/* [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','12901',jdecode('Home'),jdecode(''), jdecode('%2F12901.html'), 'true',[],'',''],
	['PAGE','287658',jdecode('Lembran%C3%A7a+beb%C3%AA%2FInf.'),jdecode(''), jdecode('%2F287658.html'), 'true',[],'',''],
	['PAGE','304169',jdecode('Lemb.+Casamento'),jdecode(''), jdecode('%2F304169.html'), 'true',[],'',''],
	['PAGE','306369',jdecode('Lembran%C3%A7as+%C3%89poca'),jdecode(''), jdecode('%2F306369.html'), 'true',[],'',''],
	['PAGE','308069',jdecode('Convites'),jdecode(''), jdecode('%2F308069.html'), 'true',[],'',''],
	['PAGE','122301',jdecode('Conjtos.+Beb%C3%AAs+Tric%C3%B4'),jdecode(''), jdecode('%2F122301.html'), 'true',[],'',''],
	['PAGE','21401',jdecode('Fraldas+Menina'),jdecode(''), jdecode('%2F21401.html'), 'true',[],'',''],
	['PAGE','1957',jdecode('Fraldas+Menino'),jdecode(''), jdecode('%2F1957.html'), 'true',[],'',''],
	['PAGE','21422',jdecode('Fraldas+Neutras'),jdecode(''), jdecode('%2F21422.html'), 'true',[],'',''],
	['PAGE','27601',jdecode('+++Manta%2FLen%C3%A7ol++Menino'),jdecode(''), jdecode('%2F27601.html'), 'true',[],'',''],
	['PAGE','27622',jdecode('Manta%2F+Len%C3%A7ol++Menina'),jdecode(''), jdecode('%2F27622.html'), 'true',[],'',''],
	['PAGE','27643',jdecode('Manta%2FLen%C3%A7ol+Neutro'),jdecode(''), jdecode('%2F27643.html'), 'true',[],'',''],
	['PAGE','15522',jdecode('Toalhas+e+Atoalhados'),jdecode(''), jdecode('%2F15522.html'), 'true',[],'',''],
	['PAGE','264936',jdecode('Pintura+em+Tela'),jdecode(''), jdecode('%2F264936.html'), 'true',[],'',''],
	['PAGE','139412',jdecode('Acess%C3%B3rios+Inf.'),jdecode(''), jdecode('%2F139412.html'), 'true',[],'',''],
	['PAGE','1801',jdecode('Acess%C3%B3rios'),jdecode(''), jdecode('%2F1801.html'), 'true',[],'',''],
	['PAGE','122322',jdecode('Presilhas+tic+tac'),jdecode(''), jdecode('%2F122322.html'), 'true',[],'',''],
	['PAGE','1852',jdecode('Kits'),jdecode(''), jdecode('%2F1852.html'), 'true',[],'',''],
	['PAGE','15001',jdecode('Camisetas+meninas'),jdecode(''), jdecode('%2F15001.html'), 'true',[],'',''],
	['PAGE','1999',jdecode('Camisetas+meninos'),jdecode(''), jdecode('%2F1999.html'), 'true',[],'',''],
	['PAGE','15501',jdecode('Sugest%C3%B5es+Enxovais'),jdecode(''), jdecode('%2F15501.html'), 'true',[],'',''],
	['PAGE','44901',jdecode('Classificados+'),jdecode(''), jdecode('%2F44901.html'), 'true',[],'',''],
	['PAGE','7243',jdecode('An%C3%BAncios'),jdecode(''), jdecode('%2F7243.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Garden';
theSitetree.paletteFamily='EDB086';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='80';
theSitetree.graphicsetId='102';
theSitetree.contentColor='006633';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Garden',
				paletteFamily: 	'EDB086',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'80',
				graphicsetId: 	'102',
				contentColor: 	'006633',
				contentBGColor: 'FFFFFF',
				a_color: 		'EDB086',
				b_color: 		'EEAE7A',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-7350762']={
webappId:    '1501',
documentId:  '12901',
internalId:  '7350762',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-1350']={
webappId:    '7008',
documentId:  '7243',
internalId:  '1350',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '306369',
internalId:  '',
customField: '20111126-062806'
};
webappMappings['7008']=webappMappings['7008-1354']={
webappId:    '7008',
documentId:  '139412',
internalId:  '1354',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1356']={
webappId:    '7008',
documentId:  '15522',
internalId:  '1356',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1357']={
webappId:    '7008',
documentId:  '1999',
internalId:  '1357',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1358']={
webappId:    '7008',
documentId:  '15001',
internalId:  '1358',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1360']={
webappId:    '7008',
documentId:  '122301',
internalId:  '1360',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1361']={
webappId:    '7008',
documentId:  '27622',
internalId:  '1361',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1362']={
webappId:    '7008',
documentId:  '21422',
internalId:  '1362',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1363']={
webappId:    '7008',
documentId:  '1801',
internalId:  '1363',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1364']={
webappId:    '7008',
documentId:  '122322',
internalId:  '1364',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1365']={
webappId:    '7008',
documentId:  '21401',
internalId:  '1365',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-20638']={
webappId:    '7008',
documentId:  '264936',
internalId:  '20638',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20120119-052507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20111111-185020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20111101-061820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20100603-072443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287658',
internalId:  '',
customField: '20120130-121020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15522',
internalId:  '',
customField: '20110904-073328'
};
webappMappings['7008']=webappMappings['7008-2399']={
webappId:    '7008',
documentId:  '27601',
internalId:  '2399',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1999',
internalId:  '',
customField: '20111101-063205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20111101-063109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264936',
internalId:  '',
customField: '20110402-154505'
};
webappMappings['7008']=webappMappings['7008-2339']={
webappId:    '7008',
documentId:  '1852',
internalId:  '2339',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122301',
internalId:  '',
customField: '20111111-182538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27622',
internalId:  '',
customField: '20111111-185455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27643',
internalId:  '',
customField: '20111226-065946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1957',
internalId:  '',
customField: '20111004-151033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20111226-064452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21422',
internalId:  '',
customField: '20111226-065653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139412',
internalId:  '',
customField: '20091206-072213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20091206-072600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '308069',
internalId:  '',
customField: '20111224-055112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '304169',
internalId:  '',
customField: '20111025-111748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122322',
internalId:  '',
customField: '20081219-072138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44901',
internalId:  '',
customField: '20100612-144709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7243',
internalId:  '',
customField: '20080406-072902'
};
webappMappings['7008']=webappMappings['7008-2400']={
webappId:    '7008',
documentId:  '27643',
internalId:  '2400',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-2401']={
webappId:    '7008',
documentId:  '1957',
internalId:  '2401',
customField: 'language:pt;country:BR;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INZDW3';
var companyName   = 'Ateli%C3%AA+Duas+Flores%C2%AE';
var htmlTitle	  = '++++++++++++++++++SUA+VIDA+COM+MAIS+CORES';
var metaKeywords  = 'Enxoval+para+beb%C3%AAs%2C+panos+de+pratos%2C+camisetas+customisadas%2C+mantas%2C+toalha+fralda%2C+fraldas+de+pano%2C+an%C3%BAncios%2C+brincos%2C+pulseiras%2C+colares%2C+porta+%C3%B3culos%2C+porta+celular%2C+porta+documentos%2C+bijuteria%2Csach%C3%AAs%2C+lembrancinhas%2C+latinhas+mint+to+be%2C+mini+ter%C3%A7o%2C+conjuntos+beb%C3%AA%2C+tric%C3%B4%2C+bordados+%C3%A0+m%C3%A1quina%2C+lembran%C3%A7as+nascimento%2C+lembran%C3%A7as%2C+batizado%2C+primeira+eucaristia';
var metaContents  = 'Enxoval+para+beb%C3%AAs%2C+panos+de+pratos%2C+camisetas+customisadas%2C+mantas+em+flanela+e+em+tric%C3%B4+%2C+conjuntos+beb%C3%AAs+0+%C3%A0+3+meses+em+tric%C3%B4+e+fraldas+de+pano+com+apliques%2Ctoalhas+fralda%2C+conjunto+de+fraldas+e+toalhas%2C+an%C3%BAncios%2C+sugest%C3%B5es+para+o+enxoval+completo+do+beb%C3%AA%2C+e+o+que+levar+para+maternidade%2Cbijuteria%2Cporta+celular%2Cporta+documento%2Cporta+%C3%B3culos%2Cbrinco%2C+pulseiras%2Ccolares%2C+pintura+acr%C3%ADica%2C+lembracinhas%2C+latinhas+mint+to+be';
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();
};

