/* [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','14',jdecode('Home'),jdecode(''),'/14.html','true',[],'',''],
	['PAGE','227901',jdecode('Anivers%C3%A1rio'),jdecode(''),'/227901/index.html','true',[ 
		['PAGE','228201',jdecode('Garrafinhas+Personalizadas'),jdecode(''),'/227901/228201.html','true',[],'',''],
		['PAGE','228222',jdecode('Latinhas+Personalizadas'),jdecode(''),'/227901/228222.html','true',[],'',''],
		['PAGE','228243',jdecode('Potinhos'),jdecode(''),'/227901/228243.html','true',[],'',''],
		['PAGE','233612',jdecode('Potinhos+Personalizados'),jdecode(''),'/227901/233612.html','true',[],'',''],
		['PAGE','228264',jdecode('Porta+Recados'),jdecode(''),'/227901/228264.html','true',[],'',''],
		['PAGE','228285',jdecode('Outros+Modelos'),jdecode(''),'/227901/228285.html','true',[],'','']
	],'',''],
	['PAGE','236712',jdecode('Nascimento'),jdecode(''),'/236712/index.html','true',[ 
		['PAGE','236912',jdecode('Sach%C3%AAs'),jdecode(''),'/236712/236912.html','true',[],'',''],
		['PAGE','238929',jdecode('Caixinhas+de+acrilico'),jdecode(''),'/236712/238929.html','true',[],'',''],
		['PAGE','236733',jdecode('Latinhas+Personalizadas'),jdecode(''),'/236712/236733.html','true',[],'',''],
		['PAGE','236754',jdecode('Garrafinhas+Personalizadas'),jdecode(''),'/236712/236754.html','true',[],'',''],
		['PAGE','236775',jdecode('Potinhos+decorados'),jdecode(''),'/236712/236775.html','true',[],'',''],
		['PAGE','236796',jdecode('Potinhos+Personalizados'),jdecode(''),'/236712/236796.html','true',[],'','']
	],'',''],
	['PAGE','239640',jdecode('Batizado'),jdecode(''),'/239640.html','true',[],'',''],
	['PAGE','241540',jdecode('Ch%C3%A1+de+Cozinha'),jdecode(''),'/241540.html','true',[],'',''],
	['PAGE','247140',jdecode('Acess%C3%B3rios'),jdecode(''),'/247140.html','true',[],'',''],
	['PAGE','208701',jdecode('Presentes'),jdecode(''),'/208701.html','true',[],'',''],
	['PAGE','220201',jdecode('Kits+p%2FBeb%C3%AAs'),jdecode(''),'/220201.html','true',[],'',''],
	['PAGE','185701',jdecode('Casamento'),jdecode(''),'/185701/index.html','true',[ 
		['PAGE','245740',jdecode('Latinhas+personalizadas'),jdecode(''),'/185701/245740.html','true',[],'',''],
		['PAGE','251240',jdecode('Gravatinhas'),jdecode(''),'/185701/251240.html','true',[],'','']
	],'',''],
	['PAGE','185501',jdecode('15+Anos'),jdecode(''),'/185501.html','true',[],'',''],
	['PAGE','162101',jdecode('Or%C3%A7amento'),jdecode(''),'/162101.html','true',[],'',''],
	['PAGE','5130',jdecode('Contato'),jdecode(''),'/5130.html','true',[],'',''],
	['PAGE','161501',jdecode('Formulario+de+Dep%C3%B3sito'),jdecode(''),'/161501.html','true',[],'',''],
	['PAGE','224501',jdecode('Cart%C3%A3o+de+credito'),jdecode(''),'/224501.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFFBF2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10444';
theSitetree.graphicsetId='10823';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFBF2';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses',
				paletteFamily: 	'FFFBF2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10444',
				graphicsetId: 	'10823',
				contentColor: 	'000000',
				contentBGColor: 'FFFBF2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1269']={
webappId:    '7008',
documentId:  '161501',
internalId:  '1269',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1270']={
webappId:    '7008',
documentId:  '162101',
internalId:  '1270',
customField: 'language:pt;country:BR;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185501',
internalId:  '',
customField: '20100210-133841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14',
internalId:  '',
customField: '20100723-151019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '247140',
internalId:  '',
customField: '20100626-185858'
};
webappMappings['1501']=webappMappings['1501-1129045']={
webappId:    '1501',
documentId:  '14',
internalId:  '1129045',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-1272']={
webappId:    '7008',
documentId:  '5130',
internalId:  '1272',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-b971d83d9690f7c090d8ca7ac98a1a74']={
webappId:    '7060',
documentId:  '220201',
internalId:  'b971d83d9690f7c090d8ca7ac98a1a74',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236712',
internalId:  '',
customField: '20100723-151220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233612',
internalId:  '',
customField: '20100403-120804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236733',
internalId:  '',
customField: '20100707-205817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236754',
internalId:  '',
customField: '20100403-205558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '220201',
internalId:  '',
customField: '20100530-172328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236775',
internalId:  '',
customField: '20100723-150224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185701',
internalId:  '',
customField: '20100531-151234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236796',
internalId:  '',
customField: '20100403-135446'
};
webappMappings['7008']=webappMappings['7008-14835']={
webappId:    '7008',
documentId:  '224501',
internalId:  '14835',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251240',
internalId:  '',
customField: '20100723-151455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162101',
internalId:  '',
customField: '20081122-170534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161501',
internalId:  '',
customField: '20091120-131323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '245740',
internalId:  '',
customField: '20100531-153727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5130',
internalId:  '',
customField: '20100109-140824'
};
webappMappings['7060']=webappMappings['7060-8351197abf053d03cc78cc7c81c10364']={
webappId:    '7060',
documentId:  '185701',
internalId:  '8351197abf053d03cc78cc7c81c10364',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-5507234b8d8eed10dd944b864849c2bd']={
webappId:    '7060',
documentId:  '208701',
internalId:  '5507234b8d8eed10dd944b864849c2bd',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208701',
internalId:  '',
customField: '20100202-162336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238929',
internalId:  '',
customField: '20100404-085835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236912',
internalId:  '',
customField: '20100403-203748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224501',
internalId:  '',
customField: '20100209-182332'
};
webappMappings['7060']=webappMappings['7060-18210c85844790e6f1aafdd4cc3ec900']={
webappId:    '7060',
documentId:  '185501',
internalId:  '18210c85844790e6f1aafdd4cc3ec900',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241540',
internalId:  '',
customField: '20100531-145753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227901',
internalId:  '',
customField: '20100423-145003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228201',
internalId:  '',
customField: '20100402-191532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228222',
internalId:  '',
customField: '20100627-170403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228243',
internalId:  '',
customField: '20100403-121936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228264',
internalId:  '',
customField: '20100403-121628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228285',
internalId:  '',
customField: '20100403-122826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '239640',
internalId:  '',
customField: '20100626-190954'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN26GC';
var companyName   = 'BETH+BISCUIT';
var htmlTitle	  = 'Ateli%C3%AA+Sonhos+e+Lembran%C3%A7as';
var metaKeywords  = 'lembrancinhas+%2C+casamento+%2C+anivers%C3%A1rio+%2C+nascimento+%2C+biscuit+%2C+infantil+%2C+batizado+%2C+lembran%C3%A7as+%2C+beb%C3%AAs+%2C+festas+%2C+kit+higienico+%2C+decoupage+%2C+caixas+%2C+latinhas+%2C+vidros+%2C+caixinhas+de+vidro+%2C+tubos+%2C+potinhos+%2C+15+anos+%2C+garrafinhas+%2C+convites+%2C+porta+convites';
var metaContents  = 'Aqui+voc%C3%AA+encontra+lembrancinhas+para+v%C3%A1rias+ocasi%C3%B5es%3A+casamentos%2C+anivers%C3%A1rios%2C+nascimentos%2C+batizados%2C+ch%C3%A1+de+cozinha%2C+acessorios%2C+vidros%2C+latinhas+%2C+caixinhas+de+vidro+e+outras.+Enfeites+de+maternidade%2C+kit+Higi%C3%AAnico%2C+convite%2C+porta+convites+e+muito+mais%2C+confira+e+agora+estamos+trabalhando+tamb%C3%A9m+com+decoupage';
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();
};
