/* [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','452',jdecode('Como+somos'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','8801',jdecode('Softwares'),jdecode(''),'/8801/index.html','true',[ 
		['PAGE','25901',jdecode('Atlantis+M%C3%A9dic'),jdecode(''),'/8801/25901.html','true',[],'',''],
		['PAGE','122901',jdecode('SCCVE'),jdecode(''),'/8801/122901.html','true',[],'','']
	],'',''],
	['PAGE','66201',jdecode('Joguinhos'),jdecode(''),'/66201/index.html','true',[ 
		['PAGE','67301',jdecode('Football'),jdecode(''),'/66201/67301.html','true',[],'',''],
		['PAGE','67322',jdecode('Diamonds'),jdecode(''),'/66201/67322.html','true',[],'',''],
		['PAGE','67343',jdecode('Speartoo'),jdecode(''),'/66201/67343.html','true',[],'',''],
		['PAGE','68301',jdecode('Rocknrocket'),jdecode(''),'/66201/68301.html','true',[],'','']
	],'',''],
	['PAGE','494',jdecode('%C3%81lbum+de+fotos'),jdecode(''),'/494.html','true',[],'',''],
	['PAGE','119501',jdecode('Hor%C3%A1rios'),jdecode(''),'/119501.html','true',[],'',''],
	['PAGE','114901',jdecode('Servi%C3%A7os'),jdecode(''),'/114901.html','true',[],'',''],
	['PAGE','17401',jdecode('Promo%C3%A7%C3%B5es'),jdecode(''),'/17401.html','true',[],'',''],
	['PAGE','29001',jdecode('VOIP'),jdecode(''),'/29001/index.html','true',[ 
		['PAGE','29801',jdecode('O+que+%C3%A9'),jdecode(''),'/29001/29801.html','true',[],'',''],
		['PAGE','29822',jdecode('Terra+VOIP'),jdecode(''),'/29001/29822.html','true',[],'',''],
		['PAGE','29843',jdecode('Regulamenta%C3%A7%C3%A3o'),jdecode(''),'/29001/29843.html','true',[],'','']
	],'',''],
	['PAGE','98101',jdecode('V%C3%ADdeos'),jdecode(''),'/98101.html','true',[],'',''],
	['PAGE','536',jdecode('Contato'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','17306',jdecode('F%C3%B3rum'),jdecode(''),'/17306/index.html','true',[ 
		['PAGE','17301',jdecode('Entradas+do+Forum'),jdecode(''),'/17306/17301.html','false',[],'','']
	],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='0A2447';
theSitetree.keyvisualId='2416';
theSitetree.keyvisualName='digital.jpg';
theSitetree.fontsetId='394';
theSitetree.graphicsetId='444';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0A2447';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Amaze',
				paletteFamily: 	'0A2447',
				keyvisualId: 	'2416',
				keyvisualName: 	'digital.jpg',
				fontsetId: 		'394',
				graphicsetId: 	'444',
				contentColor: 	'FFFFFF',
				contentBGColor: '0A2447',
				a_color: 		'0A2447',
				b_color: 		'081B35',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-2413']={
webappId:    '7008',
documentId:  '536',
internalId:  '2413',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100626-033251'
};
webappMappings['1002']=webappMappings['1002-17306avec10inei5f']={
webappId:    '1002',
documentId:  '17306',
internalId:  '17306avec10inei5f',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100627-185206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20091230-075232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66201',
internalId:  '',
customField: '20080406-153043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67301',
internalId:  '',
customField: '20080406-153419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67322',
internalId:  '',
customField: '20080406-153732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67343',
internalId:  '',
customField: '20080406-153831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68301',
internalId:  '',
customField: '20080406-154303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20100221-085528'
};
webappMappings['1501']=webappMappings['1501-2248211']={
webappId:    '1501',
documentId:  '401',
internalId:  '2248211',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20100221-085911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25901',
internalId:  '',
customField: '20100221-090052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20070304-181046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20070304-064749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29822',
internalId:  '',
customField: '20070304-065253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29843',
internalId:  '',
customField: '20070304-070042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114901',
internalId:  '',
customField: '20100221-085251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080406-142720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17306',
internalId:  '',
customField: '20091212-043254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20070126-073536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98101',
internalId:  '',
customField: '20100627-120829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119501',
internalId:  '',
customField: '20090903-104652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122901',
internalId:  '',
customField: '20091218-014152'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEI5F';
var companyName   = 'Atlantis+Lan+House';
var htmlTitle	  = '';
var metaKeywords  = 'Atlantis+Lan+House+Cyber+Games+Internet+Sistemas+Programas+Medicina+Programas+Comerciais';
var metaContents  = 'Atlantis+Lan+House+Games+Internet+e+Sistemas';
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();
};
