/* [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','32',jdecode('Quem+somos'),jdecode(''),'/32.html','true',[],'',''],
	['PAGE','41',jdecode('Onde+estamos'),jdecode(''),'/41.html','true',[],'',''],
	['PAGE','1618',jdecode('Amigos+e+Parceiros'),jdecode(''),'/1618.html','true',[],'',''],
	['PAGE','166025',jdecode('Nossos+Clientes+'),jdecode(''),'/166025.html','true',[],'',''],
	['PAGE','1407',jdecode('Decora%C3%A7%C3%A3o+Infantil+'),jdecode(''),'/1407.html','true',[],'',''],
	['PAGE','43701',jdecode('Decora%C3%A7%C3%A3o+Casamento'),jdecode(''),'/43701.html','true',[],'',''],
	['PAGE','141659',jdecode('***+DJ+***'),jdecode(''),'/141659.html','true',[],'',''],
	['PAGE','140059',jdecode('Buffet+a+Domic%C3%ADlio'),jdecode(''),'/140059.html','true',[],'',''],
	['PAGE','133355',jdecode('kit+Buffetzinho+'),jdecode(''),'/133355.html','true',[],'',''],
	['PAGE','108634',jdecode('Barraquinhas'),jdecode(''),'/108634.html','true',[],'',''],
	['PAGE','162292',jdecode('kit+Escolar+'),jdecode(''),'/162292.html','true',[],'',''],
	['PAGE','41501',jdecode('Churrascos+%2F+Jantares'),jdecode(''),'/41501.html','true',[],'',''],
	['PAGE','9247',jdecode('Mesas+de+Guloseimas'),jdecode(''),'/9247.html','true',[],'',''],
	['PAGE','8756',jdecode('Convites+e+lembran%C3%A7as+'),jdecode(''),'/8756.html','true',[],'',''],
	['PAGE','28101',jdecode('Brinquedos+'),jdecode(''),'/28101.html','true',[],'',''],
	['PAGE','7094',jdecode('Recrea%C3%A7%C3%A3o+'),jdecode(''),'/7094.html','true',[],'',''],
	['PAGE','168725',jdecode('Cabeleireiro+Fashion+'),jdecode(''),'/168725.html','true',[],'',''],
	['PAGE','159859',jdecode('Caricaturista'),jdecode(''),'/159859.html','true',[],'',''],
	['PAGE','1564',jdecode('Dicas'),jdecode(''),'/1564.html','true',[],'',''],
	['PAGE','7962',jdecode('Atendimento+'),jdecode(''),'/7962.html','true',[],'',''],
	['PAGE','1600',jdecode('Mensagens+'),jdecode(''),'/1600.html','true',[],'',''],
	['PAGE','68',jdecode('Contato'),jdecode(''),'/68.html','true',[],'',''],
	['PAGE','2012',jdecode('Agradecimentos'),jdecode(''),'/2012.html','true',[],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Sonnemond';
theSitetree.paletteFamily='D7E1FC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10759';
theSitetree.graphicsetId='10815';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D7E1FC';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sonnemond',
				paletteFamily: 	'D7E1FC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10759',
				graphicsetId: 	'10815',
				contentColor: 	'000000',
				contentBGColor: 'D7E1FC',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5C5898',
				e_color: 		'ED4747',
				f_color: 		'437D3B',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1007522']={
webappId:    '1501',
documentId:  '11',
internalId:  '1007522',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1618',
internalId:  '',
customField: '20100630-164222'
};
webappMappings['1002']=webappMappings['1002-1600AVEC10IN2IYL']={
webappId:    '1002',
documentId:  '1600',
internalId:  '1600AVEC10IN2IYL',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159859',
internalId:  '',
customField: '20100630-164658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168725',
internalId:  '',
customField: '20100630-164624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20100831-161156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100630-164118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41',
internalId:  '',
customField: '20100630-164155'
};
webappMappings['7060']=webappMappings['7060-a97b017d97931b2eefe3d871855bba7e']={
webappId:    '7060',
documentId:  '1407',
internalId:  'a97b017d97931b2eefe3d871855bba7e',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43701',
internalId:  '',
customField: '20100630-164445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1407',
internalId:  '',
customField: '20100831-162340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133355',
internalId:  '',
customField: '20100630-164842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166025',
internalId:  '',
customField: '20100826-173936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28101',
internalId:  '',
customField: '20100630-164510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7094',
internalId:  '',
customField: '20100630-164540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8756',
internalId:  '',
customField: '20100630-164727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108634',
internalId:  '',
customField: '20100630-164748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141659',
internalId:  '',
customField: '20100630-165017'
};
webappMappings['7008']=webappMappings['7008-7132']={
webappId:    '7008',
documentId:  '68',
internalId:  '7132',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140059',
internalId:  '',
customField: '20100630-164904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20100630-164955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9247',
internalId:  '',
customField: '20100630-164932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1564',
internalId:  '',
customField: '20100630-165040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7962',
internalId:  '',
customField: '20100709-215847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1600',
internalId:  '',
customField: '20081209-101415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2012',
internalId:  '',
customField: '20080422-104928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68',
internalId:  '',
customField: '20060318-061459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162292',
internalId:  '',
customField: '20100630-164822'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2IYL';
var companyName   = 'BIA%27S+FESTAS';
var htmlTitle	  = 'BIAS+FESTAS+DECORA%C3%87%C3%83O+E+BUFFET++';
var metaKeywords  = 'festas+infantis%2C+kit+festas%2C+buffet%2C+festas%2C+decora%C3%A7%C3%A3o%2C+Bias+Festas%2Cdecora%C3%A7%C3%A3o+infantil%2Cbrinquedos+%2C+maquiagem+infantil%2Cchurrasco%2C+escultura+de+bal%C3%B5es%2Cbuffet+domicilio%2C+beth+boop%2C+backyardigans%2C+piratas+do+caribe%2C+halooween%2C+barbie+princesa+da+ilha%2Cmesas+tem%C3%A1ticas%2C+mesas+infantis%2C+mesas+decoradas%2C+palmeiras%2C+corinthians%2C+s%C3%A3o+paulo%2C+ursinhos+carinhosos%2C+pizzas%2C+dj%2C+brinquedos+infl%C3%A1veis%2C+almo%C3%A7os+e+jantares%2C+kit+festa%2C+decora%C3%A7%C3%A3o+com+bal%C3%B5es%2Cdiscovery+kids%2C+enfeites+de+festas.thomas+e+seus+amigos.cascata+de+chocolate%2Cpucca%2Csal%C3%A3o+fashion';
var metaContents  = 'festas+infantis%2C+decora%C3%A7%C3%A3o+festas%2C+festas%2C+kit+festas%2Cdecora%C3%A7%C3%A3o%2C+buffet%2C+decora%C3%A7%C3%A3o+de+casamento%2C+aluguel+de+festas+infantis%2C+buffet%2C+Bias+Festas%2C+brinquedos%2C+anima%C3%A7%C3%A3o%2CDJ%2Cconvites%2C+fotos%2C+filmagens%2C+lembran%C3%A7inhas%2Ccoffee+break%2C+churrasco%2C+maquiagem+infantil%2C+palha%C3%A7o%2Cbrinquedos+%2C+sal%C3%A3o+fashion%2C+recrea%C3%A7%C3%A3o+%2Cchurrasco%2C+escultura+bal%C3%B5es%2C+buffet+a+domicilio%2C+festa+da+Beth+boop%2C+halloween%2C+barbie+princesa+da+ilha%2Cbackyardigans%2C+piratas+do+caribe%2C+mesas+tem%C3%A1ticas%2C+mesas+infantis+%2C+mesas+decoradas%2C+palmeiras%2C+corinthians%2C+s%C3%A3o+paulo%2C+ursinhos+carinhosos%2Cpizzas%2C+brinquedos+infl%C3%A1veis%2C+almo%C3%A7os+e+jantares%2Ckit+festa%2C+decora%C3%A7%C3%A3o+com+bal%C3%B5es%2Cdiscovery+kids%2C+thomas+e+seus+amigos%2Ccascata+de+chocolate%2Cpucca';
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();
};
