/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','263348',jdecode('Hist%C3%B3ria'),jdecode(''),'/263348.html','true',[],'',''],
	['PAGE','15801',jdecode('Sai+Baba%2C+o+Ser'),jdecode(''),'/15801/index.html','true',[ 
		['PAGE','126201',jdecode('Avatar'),jdecode(''),'/15801/126201.html','true',[],'',''],
		['PAGE','178937',jdecode('Ecumenismo'),jdecode(''),'/15801/178937.html','true',[],'',''],
		['PAGE','205437',jdecode('Sai+Baba+e+a+Fam%C3%ADlia'),jdecode(''),'/15801/205437.html','true',[],'',''],
		['PAGE','115001',jdecode('Pensamentos'),jdecode(''),'/15801/115001.html','true',[],'',''],
		['PAGE','117801',jdecode('Contos'),jdecode(''),'/15801/117801.html','true',[],'',''],
		['PAGE','118601',jdecode('Humor'),jdecode(''),'/15801/118601.html','true',[],'','']
	],'',''],
	['PAGE','12901',jdecode('Devo%C3%A7%C3%A3o'),jdecode(''),'/12901/index.html','true',[ 
		['PAGE','78601',jdecode('S%C3%ADmbolos'),jdecode(''),'/12901/78601.html','true',[],'',''],
		['PAGE','125401',jdecode('Mantras'),jdecode(''),'/12901/125401.html','true',[],'',''],
		['PAGE','159001',jdecode('PJSS'),jdecode(''),'/12901/159001.html','true',[],'',''],
		['PAGE','70001',jdecode('Festivais'),jdecode(''),'/12901/70001.html','true',[],'',''],
		['PAGE','104822',jdecode('Ganesha'),jdecode(''),'/12901/104822.html','true',[],'',''],
		['PAGE','104864',jdecode('Dasara'),jdecode(''),'/12901/104864.html','true',[],'',''],
		['PAGE','148101',jdecode('Dipavali'),jdecode(''),'/12901/148101.html','true',[],'',''],
		['PAGE','104843',jdecode('Shiva'),jdecode(''),'/12901/104843.html','true',[],'',''],
		['PAGE','109801',jdecode('Krishna'),jdecode(''),'/12901/109801.html','true',[],'',''],
		['PAGE','109822',jdecode('Rama'),jdecode(''),'/12901/109822.html','true',[],'',''],
		['PAGE','238437',jdecode('Yagnas'),jdecode(''),'/12901/238437.html','true',[],'','']
	],'',''],
	['PAGE','13222',jdecode('Educa%C3%A7%C3%A3o'),jdecode(''),'/13222.html','true',[],'',''],
	['PAGE','13243',jdecode('Servi%C3%A7o'),jdecode(''),'/13243.html','true',[],'',''],
	['PAGE','94301',jdecode('Alimenta%C3%A7%C3%A3o'),jdecode(''),'/94301.html','true',[],'',''],
	['PAGE','117401',jdecode('Meio+Ambiente'),jdecode(''),'/117401/index.html','true',[ 
		['PAGE','120301',jdecode('Pensamentos'),jdecode(''),'/117401/120301.html','true',[],'',''],
		['PAGE','155901',jdecode('Baba+e+os+animais'),jdecode(''),'/117401/155901.html','true',[],'','']
	],'',''],
	['PAGE','133901',jdecode('Peregrina%C3%A7%C3%A3o'),jdecode(''),'/133901/index.html','true',[ 
		['PAGE','138801',jdecode('Prashanti+Nilayam'),jdecode(''),'/133901/138801.html','true',[],'',''],
		['PAGE','138822',jdecode('Brindavan'),jdecode(''),'/133901/138822.html','true',[],'',''],
		['PAGE','138843',jdecode('Kodaikanal'),jdecode(''),'/133901/138843.html','true',[],'','']
	],'',''],
	['PAGE','194637',jdecode('Fale+conosco%21'),jdecode(''),'/194637.html','true',[],'',''],
	['PAGE','12806',jdecode('Livro+de+visitas'),jdecode(''),'/12806/index.html','true',[ 
		['PAGE','12801',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''),'/12806/12801.html','false',[],'','']
	],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='FF6600';
theSitetree.keyvisualId='9239';
theSitetree.keyvisualName='kv1.swf';
theSitetree.fontsetId='17363';
theSitetree.graphicsetId='12762';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'FF6600',
				keyvisualId: 	'9239',
				keyvisualName: 	'kv1.swf',
				fontsetId: 		'17363',
				graphicsetId: 	'12762',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-12806avec10inlhnn']={
webappId:    '1002',
documentId:  '12806',
internalId:  '12806avec10inlhnn',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100127-000424'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20081209-195112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126201',
internalId:  '',
customField: '20081209-195204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178937',
internalId:  '',
customField: '20080818-154307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205437',
internalId:  '',
customField: '20080818-194442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115001',
internalId:  '',
customField: '20080615-133911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117801',
internalId:  '',
customField: '20081207-072606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118601',
internalId:  '',
customField: '20081209-201728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20100127-000610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78601',
internalId:  '',
customField: '20081209-202505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125401',
internalId:  '',
customField: '20090103-231358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159001',
internalId:  '',
customField: '20081209-203747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70001',
internalId:  '',
customField: '20081209-203856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104822',
internalId:  '',
customField: '20081209-204853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104864',
internalId:  '',
customField: '20081209-205103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148101',
internalId:  '',
customField: '20081209-205227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104843',
internalId:  '',
customField: '20081209-205323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109801',
internalId:  '',
customField: '20081209-205955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109822',
internalId:  '',
customField: '20080615-153103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238437',
internalId:  '',
customField: '20081109-160151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13222',
internalId:  '',
customField: '20100127-001210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13243',
internalId:  '',
customField: '20081207-164513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94301',
internalId:  '',
customField: '20081207-164308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117401',
internalId:  '',
customField: '20081207-160033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120301',
internalId:  '',
customField: '20080609-090309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155901',
internalId:  '',
customField: '20080607-210114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133901',
internalId:  '',
customField: '20081226-234839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138801',
internalId:  '',
customField: '20081207-161007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138822',
internalId:  '',
customField: '20081207-164056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138843',
internalId:  '',
customField: '20090928-210959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194637',
internalId:  '',
customField: '20090413-200155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12806',
internalId:  '',
customField: '20080515-161908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20071002-121014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '263348',
internalId:  '',
customField: '20100127-004737'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLHNN';
var companyName   = 'Sathya+Sai+Recife';
var htmlTitle	  = 'Centro+Sri+Sathya+Sai+Metropolitano+do+Recife';
var metaKeywords  = 'Sai+Baba+-+Recife+-+devo%C3%A7%C3%A3o+-+servi%C3%A7o+abnegado+-+educa%C3%A7%C3%A3o+valores+humanos+-+medita%C3%A7%C3%A3o+-+espiritualidade+-+grupo+de+servi%C3%A7o+volunt%C3%A1rio+-+ecumenismo+-+paz+-+amor+-+verdade+-+dharma+-+n%C3%A3o-viol%C3%AAncia+-a%C3%A7%C3%A3o+correta+-+retid%C3%A3o+-++mantras+-+bhajans+-+c%C3%A2ntico+devocional+-+OSSS+Nordeste+II+-+Comit%C3%AA+Nordeste+II+-+servi%C3%A7o+volunt%C3%A1rio+-+mantras+s%C3%A2nscrito+-+PJSS+Nordeste+II+-+namasmarana+-+medita%C3%A7%C3%A3o+na+luz+-+educa%C3%A7%C3%A3o+espiritual+-+Avatar+Nova+Era+-+Ganesha+-+Krishna+-+Shiva+-+Rama+-+Dasara+-+M%C3%A3e+Divina+-+Lakshmi+-+Dipavali+-+Prashanti+Nilayam+-+Brindavan+-+Puttaparthi+-+%C3%8Dndia+-+Kodaikanal+-+Kali+-+Hanuman';
var metaContents  = 'O+Centro+Sri+Sathya+Sai+Metropolitano+do+Recife+%C3%A9+uma+entidade+sem+fins+lucrativos%2C+afiliado+%C3%A0+Organiza%C3%A7%C3%A3o+Sri+Sathya+Sai+do+Brasil%2C+com+o+fim+de+divulgar+os+ensinamentos+do+Mestre+e+Avatar+indiano+Bhagavan+Sri+Sathya+Sai+Baba%2C+com+base+nos+valores+humanos+universais%3A+PAZ+-+AMOR+-+VERDADE+-+A%C3%87%C3%83O+CORRETA+%28RETID%C3%83O%29+e+N%C3%83O-VIOL%C3%8ANCIA.+Oferece+reuni%C3%B5es+devocionais+semanais+constantes+de+c%C3%A2nticos+%28bhajans%29+e+mantras+ecum%C3%AAnicos%2C+ora%C3%A7%C3%B5es+e+medita%C3%A7%C3%A3o.+Como+servi%C3%A7o%2C++o+Centro+mant%C3%A9m+a+Escola+Sathya+Sai+de+Pernambuco%2C+que+adota+o+Programa+Sathya+Sai+Educare+de+Educa%C3%A7%C3%A3o+em+Valores+Humanos.+Todas+as+nossas+atividades+s%C3%A3o+gratuitas.+O+Centro+e+a+Escola+se+mant%C3%AAm+com+recursos+dos+pr%C3%B3prios+devotos.+';
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();
};
