/* [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(''),'/146401.html','true',[],'',''],
	['PAGE','50',jdecode('Sobre+Dan%C3%A7as+Circulares'),jdecode(''),'/50.html','true',[],'',''],
	['PAGE','68',jdecode('ONDE+DAN%C3%87AR'),jdecode(''),'/68.html','true',[],'',''],
	['PAGE','32',jdecode('AGENDA+EVENTOS-RJ'),jdecode(''),'/32.html','true',[],'',''],
	['PAGE','86',jdecode('Treinamento+Focalizadores'),jdecode(''),'/86.html','true',[],'',''],
	['PAGE','91501',jdecode('Nossa+Roda'),jdecode(''),'/91501.html','true',[],'',''],
	['PAGE','141501',jdecode('Ciranda+das+Flores'),jdecode(''),'/141501.html','true',[],'',''],
	['PAGE','69501',jdecode('Encontros+de+FOCAS+-+RJ'),jdecode(''),'/69501.html','true',[],'',''],
	['PAGE','45301',jdecode('AGENDA-Outros+Estados'),jdecode(''),'/45301.html','true',[],'',''],
	['PAGE','161901',jdecode('Eventos%2FNot%C3%ADcias+2010'),jdecode(''),'/161901.html','true',[],'',''],
	['PAGE','11',jdecode('Eventos+2009-2008'),jdecode(''),'/11.html','true',[],'',''],
	['PAGE','53901',jdecode('Eventos+de+2007'),jdecode(''),'/53901.html','true',[],'',''],
	['PAGE','113',jdecode('Artigos'),jdecode(''),'/113/index.html','true',[ 
		['PAGE','112701',jdecode('Dan%C3%A7a+Circular+por+Patricia+Preiss'),jdecode(''),'/113/112701.html','true',[],'',''],
		['PAGE','4412',jdecode('M%C3%BAsica+e+Dan%C3%A7a%3A+Caminhos+para+a+Purifica%C3%A7%C3%A3o'),jdecode(''),'/113/4412.html','true',[],'',''],
		['PAGE','4192',jdecode('Uma+Experi%C3%AAncia+em+Findhorn'),jdecode(''),'/113/4192.html','true',[],'',''],
		['PAGE','3245',jdecode('Um+C%C3%ADrculo+de+Coopera%C3%A7%C3%A3o'),jdecode(''),'/113/3245.html','true',[],'',''],
		['PAGE','3094',jdecode('A+Dan%C3%A7a+Ora%C3%A7%C3%A3o'),jdecode(''),'/113/3094.html','true',[],'',''],
		['PAGE','2948',jdecode('Anastasia+Geng'),jdecode(''),'/113/2948.html','true',[],'','']
	],'',''],
	['PAGE','863',jdecode('A+Roda+de+Luz'),jdecode(''),'/863.html','true',[],'',''],
	['PAGE','122322',jdecode('Encontro+Brasileiro+DCS'),jdecode(''),'/122322.html','true',[],'',''],
	['PAGE','15401',jdecode('Dan%C3%A7a+S%C3%AAnior'),jdecode(''),'/15401/index.html','true',[ 
		['PAGE','41001',jdecode('Grupos+de+Dan%C3%A7a+Sr+-+RJ'),jdecode(''),'/15401/41001.html','true',[],'','']
	],'',''],
	['PAGE','1196',jdecode('Bibliografia'),jdecode(''),'/1196.html','true',[],'',''],
	['PAGE','47101',jdecode('V%C3%ADdeos'),jdecode(''),'/47101.html','true',[],'',''],
	['PAGE','1398',jdecode('Outros+Sites+Dan%C3%A7a'),jdecode(''),'/1398.html','true',[],'',''],
	['PAGE','163001',jdecode('Sites+interessantes'),jdecode(''),'/163001.html','true',[],'',''],
	['PAGE','41',jdecode('Contatos'),jdecode(''),'/41.html','true',[],'','']];
var siteelementCount=28;
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 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: '20100830-205533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100830-205654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91501',
internalId:  '',
customField: '20100801-212119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53901',
internalId:  '',
customField: '20080119-173053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50',
internalId:  '',
customField: '20091010-181222'
};
webappMappings['1501']=webappMappings['1501-1541603']={
webappId:    '1501',
documentId:  '146401',
internalId:  '1541603',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161901',
internalId:  '',
customField: '20100208-060243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163001',
internalId:  '',
customField: '20100117-193903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20071219-080304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45301',
internalId:  '',
customField: '20100307-222133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86',
internalId:  '',
customField: '20100808-214302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69501',
internalId:  '',
customField: '20100414-094045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '863',
internalId:  '',
customField: '20091019-121246'
};
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: '20100311-142532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20091217-210159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41001',
internalId:  '',
customField: '20091217-210348'
};
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: '20100126-215505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146401',
internalId:  '',
customField: '20100708-073322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141501',
internalId:  '',
customField: '20100723-195019'
};
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++Bernhard+Wosien++Sandra+Mazzoni++Patr%C3%ADcia+Azarian++Lucia+Cordeiro+++circular+integra%C3%A7%C3%A3o+f%C3%ADsica+mental+emocional+espiritual+ana+lucia+p%C3%B3+friedel+kloke+medita%C3%A7%C3%A3o+Cristina+Bonetti';
var metaContents  = 'Dan%C3%A7a+Circular+benef%C3%ADcios+das+dan%C3%A7as+hist%C3%B3ria+das+dan%C3%A7as+onde+dan%C3%A7ar+circular+treinamento+focalizadores+workshops+rodas+abertas+medita%C3%A7%C3%A3o+';
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();
};
