/* [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','601',jdecode('CLIC+DE+1+A+9++ABAIXO'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','2001',jdecode('+1%C2%BA+SERVI%C3%87OS'),jdecode(''),'/2001.html','true',[],'',''],
	['PAGE','149301',jdecode('2%C2%BA+OR%C3%87AMENTO'),jdecode(''),'/149301.html','true',[],'',''],
	['PAGE','148901',jdecode('3%C2%BA+CONFIRMA+RESERVA'),jdecode(''),'/148901.html','true',[],'',''],
	['PAGE','2106',jdecode('4%C2%BA+DOCUMENTOS+'),jdecode(''),'/2106.html','true',[],'',''],
	['PAGE','2127',jdecode('5%C2%BA+VALOR+DE+INVERNO'),jdecode(''),'/2127.html','true',[],'',''],
	['PAGE','11501',jdecode('6%C2%BA+ATENDIMENTO+ONLINE'),jdecode(''),'/11501.html','true',[],'',''],
	['PAGE','137801',jdecode('7%C2%BA+NOSSOS+CONTATO'),jdecode(''),'/137801.html','true',[],'',''],
	['PAGE','156301',jdecode('8%C2%BA+VALOR+VERAO'),jdecode(''),'/156301.html','true',[],'',''],
	['PAGE','166301',jdecode('9%C2%BA+TRNSPORTE+PASSAGEIROS'),jdecode(''),'/166301.html','true',[],'','']];
var siteelementCount=10;
theSitetree.topTemplateName='Layers';
theSitetree.paletteFamily='82B3CD';
theSitetree.keyvisualId='635';
theSitetree.keyvisualName='autofahrer.jpg';
theSitetree.fontsetId='131';
theSitetree.graphicsetId='148';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E6EAEF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Layers',
				paletteFamily: 	'82B3CD',
				keyvisualId: 	'635',
				keyvisualName: 	'autofahrer.jpg',
				fontsetId: 		'131',
				graphicsetId: 	'148',
				contentColor: 	'000000',
				contentBGColor: 'E6EAEF',
				a_color: 		'006699',
				b_color: 		'CCCCCC',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '156301',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '137801',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100614-083922'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20100126-184306'
};
webappMappings['7008']=webappMappings['7008-6397']={
webappId:    '7008',
documentId:  '149301',
internalId:  '6397',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2106',
internalId:  '',
customField: '20100610-184242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2127',
internalId:  '',
customField: '20100610-191232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156301',
internalId:  '',
customField: '20100407-191214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20100614-083526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137801',
internalId:  '',
customField: '20100201-061040'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2001',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '601',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149301',
internalId:  '',
customField: '20091215-184520'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2127',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2106',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '148901',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '149301',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-6392']={
webappId:    '7008',
documentId:  '148901',
internalId:  '6392',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148901',
internalId:  '',
customField: '20090805-091217'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '11501',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166301',
internalId:  '',
customField: '20091215-182532'
};
webappMappings['7008']=webappMappings['7008-13520']={
webappId:    '7008',
documentId:  '166301',
internalId:  '13520',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '166301',
internalId:  '',
customField: 'language:pt;country:BR;'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEY56';
var companyName   = 'kikocar+loca%C3%A7%C3%A3o+de+carros+';
var htmlTitle	  = 'DIARIA+A+PARTIR+DE+R%2438%2C00+A+R%2450%2C00+FONE++48-84614094+KIKO+';
var metaKeywords  = 'tag+rent+a+car+EM+FLORIANOPOLIS+SC%2CALQUILER+COCHES+florianopolis+SC+%2Crent+a+car+florianopolis%2C+FA%C3%87A+SEU+OR%C3%87AMENTO%2C%2C%280xx%2948+3034-5559++RENTACAR+EM+FLORIANOPOLIS%2CRENTACAR+EM+FLORIANOPOLIS+SC+OU%2C%280xx%2948+3034-5559+S%C3%83O+JOSE+SC++rent+a+car+em+florianopolis+sc+%2C+META+NAME%3Dtitle+CONTENT%3D+aluguel+de+Carro+florianopolis+%2CMETA+lang%3Dpt+content%3D+loca%C3%A7%C3%A3o+de+carros+em+florianopolis+%2C+name%3DDescription++META+lang%3Dpt+content%3D+%2C+aluguel+carros+em+florianopolis+%2C+meta+name%3Dverify-v1+content%3DAB+name%3Dabstract++META+content%3Dall+name%3DGooglebot++META+content%3D1days+name%3Drevisit-after+++aluguel+de+carros+florianopolis%2C+rentacar+em+florianopolis++locacao+de+carro+florianopolis+script+src%3Dhttp%3A%2F%2Fwww.google-analytics.com%2Furchin.js+type%3Dtext%2Fjavascript++%2Fscript++meta+name%3D%E2%80%9Drobots%E2%80%9D+content%3D%E2%80%9DINDEX%2C+FOLLOW%E2%80%9D+%2F%3Cmeta+Name%3D%E2%80%9Drobots%E2%80%9Dcontent%3D%E2%80%9Dindex%E2%80%9D%3E++Diaria+a+partir+de+r%2450%2C00+km+free+seg%3A+inc+FONES%280xx%2948-3034-5559+48-84614094+TEMOS+DOBLO+1.8+COMPLETA%2C+PALIO+FIRE+FLEX+4+PTAS+BASICO+E+COMPLETO+E+OUTROS+MODELOS+ATENDiMENTO+ONLINE%2CCONFIRME+SUA+RESERVA+SEM+MANDAR+SEUS+DOCUMENTOS+KM+FREE+++++++++';
var metaContents  = 'Diaria+a+partir+de+r%2438%2C00+km+free+seg%3A+inc+FONES%280xx%2948-3034-5559+48-84614094+TEMOS+DOBLO+1.8+COMPLETA%2C+PALIO+FIRE+FLEX+4+PTAS+BASICO+E+COMPLETO+E+OUTROS+MODELOS+ATENDiMENTO+ONLINE%2C';
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();
};
