/* [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','3052',jdecode('Abre-Alas'),jdecode(''),'/3052.html','true',[],'',''],
	['PAGE','20401',jdecode('O+Editor'),jdecode(''),'/20401.html','true',[],'',''],
	['PAGE','25501',jdecode('Ordem+Desfiles'),jdecode(''),'/25501.html','true',[],'',''],
	['PAGE','39501',jdecode('Al%C3%B4%2C+al%C3%B4+Rio+%21'),jdecode(''),'/39501.html','true',[],'',''],
	['PAGE','68622',jdecode('Coluna+do+Chico+'),jdecode(''),'/68622.html','true',[],'',''],
	['PAGE','68201',jdecode('Coluna+do+Dica'),jdecode(''),'/68201.html','true',[],'',''],
	['PAGE','68643',jdecode('Coluna+do+Dinho'),jdecode(''),'/68643.html','true',[],'',''],
	['PAGE','69201',jdecode('Coluna+da+Duda'),jdecode(''),'/69201.html','true',[],'',''],
	['PAGE','68901',jdecode('Coluna+do+Evaristo+'),jdecode(''),'/68901.html','true',[],'',''],
	['PAGE','68601',jdecode('Coluna+do+Juca'),jdecode(''),'/68601.html','true',[],'',''],
	['PAGE','47301',jdecode('Personagens'),jdecode(''),'/47301/index.html','true',[ 
		['PAGE','47322',jdecode('Chapinha'),jdecode(''),'/47301/47322.html','true',[],'',''],
		['PAGE','47343',jdecode('Dig%C3%AA+Arruda'),jdecode(''),'/47301/47343.html','true',[],'',''],
		['PAGE','47364',jdecode('Gilsa+dos+Santos'),jdecode(''),'/47301/47364.html','true',[],'','']
	],'',''],
	['PAGE','3073',jdecode('O+Carnaval'),jdecode(''),'/3073.html','true',[],'',''],
	['PAGE','3199',jdecode('Samb%C3%B3dromo'),jdecode(''),'/3199.html','true',[],'',''],
	['PAGE','3115',jdecode('Hist%C3%B3rias'),jdecode(''),'/3115.html','true',[],'',''],
	['PAGE','7001',jdecode('Literatura'),jdecode(''),'/7001.html','true',[],'',''],
	['PAGE','3283',jdecode('Uesp'),jdecode(''),'/3283.html','true',[],'',''],
	['PAGE','5701',jdecode('Liga+SP'),jdecode(''),'/5701.html','true',[],'',''],
	['PAGE','3262',jdecode('SuperLiga+SP'),jdecode(''),'/3262.html','true',[],'',''],
	['PAGE','5722',jdecode('Abbc'),jdecode(''),'/5722.html','true',[],'',''],
	['PAGE','6301',jdecode('AmespBeesp'),jdecode(''),'/6301.html','true',[],'',''],
	['PAGE','5743',jdecode('Abasp'),jdecode(''),'/5743.html','true',[],'',''],
	['PAGE','51901',jdecode('Parcerias'),jdecode(''),'/51901.html','true',[],'',''],
	['PAGE','3304',jdecode('Expediente'),jdecode(''),'/3304.html','true',[],'',''],
	['PAGE','30401',jdecode('Deixe+seu+Recado'),jdecode(''),'/30401.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='FF6600';
theSitetree.keyvisualId='9242';
theSitetree.keyvisualName='kv4.swf';
theSitetree.fontsetId='17360';
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: 	'9242',
				keyvisualName: 	'kv4.swf',
				fontsetId: 		'17360',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51901',
internalId:  '',
customField: '20091017-122632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3052',
internalId:  '',
customField: '20100304-192711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3073',
internalId:  '',
customField: '20090525-075906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20100304-064305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3115',
internalId:  '',
customField: '20090526-073223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20090714-084421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68622',
internalId:  '',
customField: '20100302-084055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20090526-072925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3199',
internalId:  '',
customField: '20090823-115315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20100302-080727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3262',
internalId:  '',
customField: '20090527-081418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3283',
internalId:  '',
customField: '20090527-082237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3304',
internalId:  '',
customField: '20100118-143331'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '3052',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20090619-080233'
};
webappMappings['1002']=webappMappings['1002-30401avfl30inh10o']={
webappId:    '1002',
documentId:  '30401',
internalId:  '30401avfl30inh10o',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20090527-080733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5722',
internalId:  '',
customField: '20090527-080141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5743',
internalId:  '',
customField: '20090525-075451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20090525-075636'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3052',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20090525-080056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47301',
internalId:  '',
customField: '20091004-103814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47322',
internalId:  '',
customField: '20091004-150152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47343',
internalId:  '',
customField: '20091004-145428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47364',
internalId:  '',
customField: '20091004-145105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20100302-072432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68643',
internalId:  '',
customField: '20100302-071804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68901',
internalId:  '',
customField: '20100302-070629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69201',
internalId:  '',
customField: '20100302-070601'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH10O';
var companyName   = 'Jornal+INFORMASAMBA';
var htmlTitle	  = 'Jornal+INFORMASAMBA';
var metaKeywords  = '';
var metaContents  = '';
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();
};
