/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','146401',jdecode('P%C3%A1gina+Inicial'),jdecode(''), jdecode('%2F146401.html'), 'true',[],'',''],
	['PAGE','50',jdecode('Sobre+Dan%C3%A7as+Circulares'),jdecode(''), jdecode('%2F50.html'), 'true',[],'',''],
	['PAGE','863',jdecode('A+Roda+de+Luz'),jdecode(''), jdecode('%2F863.html'), 'true',[],'',''],
	['PAGE','68',jdecode('ONDE+DAN%C3%87AR'),jdecode(''), jdecode('%2F68.html'), 'true',[],'',''],
	['PAGE','32',jdecode('AGENDA+EVENTOS-RJ'),jdecode(''), jdecode('%2F32.html'), 'true',[],'',''],
	['PAGE','225034',jdecode('N%C3%93S+NA+RODA'),jdecode(''), jdecode('%2F225034.html'), 'true',[],'',''],
	['PAGE','86',jdecode('Treinamento+Focalizadores'),jdecode(''), jdecode('%2F86.html'), 'true',[],'',''],
	['PAGE','91501',jdecode('Nossa+Roda'),jdecode(''), jdecode('%2F91501.html'), 'true',[],'',''],
	['PAGE','233834',jdecode('Roda+da+Vida'),jdecode(''), jdecode('%2F233834.html'), 'true',[],'',''],
	['PAGE','141501',jdecode('Ciranda+das+Flores'),jdecode(''), jdecode('%2F141501.html'), 'true',[],'',''],
	['PAGE','234534',jdecode('Dan%C3%A7ando+Hist%C3%B3rias'),jdecode(''), jdecode('%2F234534.html'), 'true',[],'',''],
	['PAGE','233855',jdecode('Dan%C3%A7as+em+Cadeiras'),jdecode(''), jdecode('%2F233855.html'), 'true',[],'',''],
	['PAGE','203112',jdecode('Paneuritmia'),jdecode(''), jdecode('%2F203112.html'), 'true',[],'',''],
	['PAGE','190812',jdecode('Aconteceu+em+2011'),jdecode(''), jdecode('%2F190812.html'), 'true',[],'',''],
	['PAGE','161901',jdecode('Aconteceu+em+2010'),jdecode(''), jdecode('%2F161901.html'), 'true',[],'',''],
	['PAGE','11',jdecode('Aconteceu+em+2009-2008'),jdecode(''), jdecode('%2F11.html'), 'true',[],'',''],
	['PAGE','53901',jdecode('Aconteceu+em+2007'),jdecode(''), jdecode('%2F53901.html'), 'true',[],'',''],
	['PAGE','212934',jdecode('Festival+Carioca+de+DCS'),jdecode(''), jdecode('%2F212934.html'), 'true',[],'',''],
	['PAGE','187012',jdecode('Dan%C3%A7ando+pelas+%C3%81rvores'),jdecode(''), jdecode('%2F187012.html'), 'true',[],'',''],
	['PAGE','69501',jdecode('Encontros+de+FOCAS+-+RJ'),jdecode(''), jdecode('%2F69501.html'), 'true',[],'',''],
	['PAGE','122322',jdecode('Encontro+Brasileiro+DCS'),jdecode(''), jdecode('%2F122322.html'), 'true',[],'',''],
	['PAGE','180912',jdecode('Festival+das+Rodas+do+Sul'),jdecode(''), jdecode('%2F180912.html'), 'true',[],'',''],
	['PAGE','113',jdecode('Artigos'),jdecode(''), jdecode('%2F113%2Findex.html'), 'true',[ 
		['PAGE','112701',jdecode('Dan%C3%A7a+Circular+por+Patricia+Preiss'),jdecode(''), jdecode('%2F113%2F112701.html'), 'true',[],'',''],
		['PAGE','4412',jdecode('M%C3%BAsica+e+Dan%C3%A7a%3A+Caminhos+para+a+Purifica%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F113%2F4412.html'), 'true',[],'',''],
		['PAGE','4192',jdecode('Uma+Experi%C3%AAncia+em+Findhorn'),jdecode(''), jdecode('%2F113%2F4192.html'), 'true',[],'',''],
		['PAGE','3245',jdecode('Um+C%C3%ADrculo+de+Coopera%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F113%2F3245.html'), 'true',[],'',''],
		['PAGE','3094',jdecode('A+Dan%C3%A7a+Ora%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F113%2F3094.html'), 'true',[],'',''],
		['PAGE','2948',jdecode('Anastasia+Geng'),jdecode(''), jdecode('%2F113%2F2948.html'), 'true',[],'','']
	],'',''],
	['PAGE','193212',jdecode('Espa%C3%A7o+Dan%C3%A7ando+a+Vida'),jdecode(''), jdecode('%2F193212.html'), 'true',[],'',''],
	['PAGE','203133',jdecode('Dan%C3%A7as+da+Paz+Universal'),jdecode(''), jdecode('%2F203133.html'), 'true',[],'',''],
	['PAGE','15401',jdecode('Dan%C3%A7a+S%C3%AAnior'),jdecode(''), jdecode('%2F15401%2Findex.html'), 'true',[ 
		['PAGE','41001',jdecode('Grupos+de+Dan%C3%A7a+Sr+-+RJ'),jdecode(''), jdecode('%2F15401%2F41001.html'), 'true',[],'','']
	],'',''],
	['PAGE','1196',jdecode('Bibliografia'),jdecode(''), jdecode('%2F1196.html'), 'true',[],'',''],
	['PAGE','47101',jdecode('V%C3%ADdeos'),jdecode(''), jdecode('%2F47101.html'), 'true',[],'',''],
	['PAGE','1398',jdecode('Outros+Sites+Dan%C3%A7a'),jdecode(''), jdecode('%2F1398.html'), 'true',[],'',''],
	['PAGE','163001',jdecode('Sites+interessantes'),jdecode(''), jdecode('%2F163001.html'), 'true',[],'',''],
	['PAGE','41',jdecode('Contatos'),jdecode(''), jdecode('%2F41.html'), 'true',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Flowers';
theSitetree.paletteFamily='FCFAA4';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10485';
theSitetree.graphicsetId='11028';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FBFAD0';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Flowers',
				paletteFamily: 	'FCFAA4',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10485',
				graphicsetId: 	'11028',
				contentColor: 	'000000',
				contentBGColor: 'FBFAD0',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'807015',
				e_color: 		'807015',
				f_color: 		'807015',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '146401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20091228-115657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68',
internalId:  '',
customField: '20120117-083330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20120125-071928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91501',
internalId:  '',
customField: '20120117-085118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53901',
internalId:  '',
customField: '20080119-173053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187012',
internalId:  '',
customField: '20111028-060750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50',
internalId:  '',
customField: '20111124-075306'
};
webappMappings['1501']=webappMappings['1501-1541603']={
webappId:    '1501',
documentId:  '146401',
internalId:  '1541603',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161901',
internalId:  '',
customField: '20110907-140331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163001',
internalId:  '',
customField: '20110125-203115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20071219-080304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233855',
internalId:  '',
customField: '20120117-084519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86',
internalId:  '',
customField: '20111124-110858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69501',
internalId:  '',
customField: '20101128-114153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180912',
internalId:  '',
customField: '20101010-181926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '863',
internalId:  '',
customField: '20111124-081438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113',
internalId:  '',
customField: '20091010-201624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4412',
internalId:  '',
customField: '20060903-210914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4192',
internalId:  '',
customField: '20060827-091058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3245',
internalId:  '',
customField: '20060723-215334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3094',
internalId:  '',
customField: '20060701-222657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2948',
internalId:  '',
customField: '20060709-221751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1196',
internalId:  '',
customField: '20081104-162519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41',
internalId:  '',
customField: '20110131-092305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20120123-081531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41001',
internalId:  '',
customField: '20110606-133321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1398',
internalId:  '',
customField: '20100117-193952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112701',
internalId:  '',
customField: '20090412-214554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122322',
internalId:  '',
customField: '20110702-222215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146401',
internalId:  '',
customField: '20111124-112932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141501',
internalId:  '',
customField: '20111127-123539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '225034',
internalId:  '',
customField: '20111124-111322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212934',
internalId:  '',
customField: '20110801-215924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190812',
internalId:  '',
customField: '20111009-231157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193212',
internalId:  '',
customField: '20111123-084910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203112',
internalId:  '',
customField: '20111124-120342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203133',
internalId:  '',
customField: '20110330-230438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233834',
internalId:  '',
customField: '20120125-074705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234534',
internalId:  '',
customField: '20111127-122657'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2S7W';
var companyName   = 'DAN%C3%87AS+CIRCULARES+-+RJ';
var htmlTitle	  = 'DAN%C3%87AS+CIRCULARES+-+RJ';
var metaKeywords  = 'dan%C3%A7a+circular%3B++Bernhard+Wosien%3B++Sandra+Mazzoni%3B++Patr%C3%ADcia+Azarian%3B++Lucia+Cordeiro%3B+circular%3B+integra%C3%A7%C3%A3o%3B+friedel+kloke%3B+medita%C3%A7%C3%A3o%3B++Gabriela+Bessa%3B+Ana+L%C3%BAcia+P%C3%B3%3B+N%C3%B3s+na+Roda%3B+Nossa+Roda%3B+Roda+da+Vida%3B+Dan%C3%A7ando+Hist%C3%B3rias%3B';
var metaContents  = 'Dan%C3%A7a+Circular%3B+benef%C3%ADcios+das+dan%C3%A7as%3B+hist%C3%B3ria+das+dan%C3%A7as%3B+onde+dan%C3%A7ar%3B+circular%3B+treinamento+focalizadores%3B+workshops%3B+rodas+abertas%3B+medita%C3%A7%C3%A3o%3B+n%C3%B3s+na+roda%3B';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

