/* [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','11',jdecode('Home'),jdecode(''),'/11.html','true',[],'',''],
	['PAGE','91901',jdecode('Dani+na+m%C3%ADdia'),jdecode(''),'/91901.html','true',[],'',''],
	['PAGE','41',jdecode('Quem+sou'),jdecode(''),'/41.html','true',[],'',''],
	['PAGE','6332',jdecode('Contato'),jdecode(''),'/6332/index.html','true',[ 
		['PAGE','7712',jdecode('contato+%28p%C3%A1gina+seguir%29'),jdecode(''),'/6332/7712.html','false',[],'','']
	],'',''],
	['PAGE','76901',jdecode('Localiza%C3%A7%C3%A3o'),jdecode(''),'/76901.html','true',[],'',''],
	['PAGE','7888',jdecode('Enfeite+maternidade'),jdecode(''),'/7888.html','true',[],'',''],
	['PAGE','7879',jdecode('Lembrancinhas'),jdecode(''),'/7879.html','true',[],'',''],
	['PAGE','110201',jdecode('Batizado'),jdecode(''),'/110201.html','true',[],'',''],
	['PAGE','110222',jdecode('Casamento'),jdecode(''),'/110222.html','true',[],'',''],
	['PAGE','110243',jdecode('Anivers%C3%A1rio'),jdecode(''),'/110243.html','true',[],'',''],
	['PAGE','7861',jdecode('Abajur%2Clustres.....'),jdecode(''),'/7861.html','true',[],'',''],
	['PAGE','7870',jdecode('kits+de+beb%C3%AA'),jdecode(''),'/7870.html','true',[],'',''],
	['PAGE','110264',jdecode('Noivinhos+p%2F+bolos%2Cetc...'),jdecode(''),'/110264.html','true',[],'',''],
	['PAGE','108001',jdecode('Puxadores'),jdecode(''),'/108001.html','true',[],'',''],
	['PAGE','47501',jdecode('Rel%C3%B3gios'),jdecode(''),'/47501.html','true',[],'',''],
	['PAGE','7852',jdecode('Espelho+p%2F+interruptor'),jdecode(''),'/7852.html','true',[],'',''],
	['PAGE','40243',jdecode('Beb%C3%AAs+e+personagens'),jdecode(''),'/40243.html','true',[],'',''],
	['PAGE','102801',jdecode('Presentes'),jdecode(''),'/102801.html','true',[],'',''],
	['PAGE','108022',jdecode('P%C3%A1scoa'),jdecode(''),'/108022.html','true',[],'',''],
	['PAGE','91922',jdecode('Decora%C3%A7%C3%A3o+de+natal'),jdecode(''),'/91922.html','true',[],'',''],
	['PAGE','94701',jdecode('Quadros+e+outros'),jdecode(''),'/94701.html','true',[],'',''],
	['PAGE','40222',jdecode('Caixinhas+e+ba%C3%BAs'),jdecode(''),'/40222.html','true',[],'',''],
	['PAGE','7897',jdecode('Border'),jdecode(''),'/7897.html','true',[],'',''],
	['PAGE','76922',jdecode('Apostilas+digitais'),jdecode(''),'/76922.html','true',[],'',''],
	['PAGE','26106',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''),'/26106/index.html','true',[ 
		['PAGE','26101',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''),'/26106/26101.html','false',[],'','']
	],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='School';
theSitetree.paletteFamily='FEC2EB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10496';
theSitetree.graphicsetId='11098';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FEC2EB';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'School',
				paletteFamily: 	'FEC2EB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10496',
				graphicsetId: 	'11098',
				contentColor: 	'000000',
				contentBGColor: 'FEC2EB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1098277']={
webappId:    '1501',
documentId:  '11',
internalId:  '1098277',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94701',
internalId:  '',
customField: '20091021-204744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102801',
internalId:  '',
customField: '20100208-160938'
};
webappMappings['1501']=webappMappings['1501-1584906']={
webappId:    '1501',
documentId:  '11',
internalId:  '1584906',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-26106avec10in2s7j']={
webappId:    '1002',
documentId:  '26106',
internalId:  '26106avec10in2s7j',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20100209-190032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7888',
internalId:  '',
customField: '20100527-005010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7870',
internalId:  '',
customField: '20100527-000500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7879',
internalId:  '',
customField: '20100526-233226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47501',
internalId:  '',
customField: '20100208-161536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7861',
internalId:  '',
customField: '20100526-235904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7852',
internalId:  '',
customField: '20091021-205740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40222',
internalId:  '',
customField: '20091021-205158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6332',
internalId:  '',
customField: '20100208-171604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7712',
internalId:  '',
customField: '20061012-114948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76901',
internalId:  '',
customField: '20100209-193538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76922',
internalId:  '',
customField: '20090904-162846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91901',
internalId:  '',
customField: '20090801-013901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91922',
internalId:  '',
customField: '20091021-212508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41',
internalId:  '',
customField: '20090904-162959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40243',
internalId:  '',
customField: '20100527-004808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7897',
internalId:  '',
customField: '20090904-165422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26106',
internalId:  '',
customField: '20090904-165646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20070710-173121'
};
webappMappings['7008']=webappMappings['7008-6960']={
webappId:    '7008',
documentId:  '6332',
internalId:  '6960',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108022',
internalId:  '',
customField: '20100209-193039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108001',
internalId:  '',
customField: '20100209-185307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110222',
internalId:  '',
customField: '20100527-003003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110201',
internalId:  '',
customField: '20100527-005056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110243',
internalId:  '',
customField: '20100527-001225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110264',
internalId:  '',
customField: '20100527-001225'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2S7J';
var companyName   = 'Atelie+Dani+decor+baby';
var htmlTitle	  = 'At%C3%AAlie+Dani+decor+baby';
var metaKeywords  = 'Decora%C3%A7%C3%A3o+para+quartos+de+beb%C3%AAs+em+biscuit+e+madeira.lembrancinhas+nascimento%2Clembrancinhas+maternidade%2Cenfeite+maternidade%2Ckits+para+beb%C3%AAs%2Cabajur%2Ckits%2Cespelho+para+interruptor%2Clustres%2Cpuxadores%2Clembrancinhas+de+casamento%2Clembrancinhas+de+batizado.';
var metaContents  = '+Decora%C3%A7%C3%B5es+de+quartos+de+beb%C3%AAs+em+biscuit+e+madeira+mdf+em+geral+como+abajur%2Cquadrinhos%2Cborder%2Cespelho+p%2F+interruptor%2Cporta+retrato%2Clixeira%2Ckit+higiene%2Cporta+fraldas%2Clembrancinhas%2C+puxadores%2Cenfeite+maternidade%2Cetc...';
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();
};
