/* [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','36801',jdecode('Home'),jdecode(''),'/36801.html','true',[],'',''],
	['PAGE','37722',jdecode('Pari'),jdecode(''),'/37722/index.html','true',[ 
		['PAGE','108201',jdecode('Folheto+Utilidades'),jdecode(''),'/37722/108201.html','true',[],'',''],
		['PAGE','111001',jdecode('Folheto+Dia+das+Crian%C3%A7as'),jdecode(''),'/37722/111001.html','true',[],'',''],
		['PAGE','38022',jdecode('Produtos'),jdecode(''),'/37722/38022.html','true',[],'',''],
		['PAGE','38001',jdecode('Sobre+a+Semaan'),jdecode(''),'/37722/38001.html','true',[],'',''],
		['PAGE','38064',jdecode('Lojas'),jdecode(''),'/37722/38064.html','true',[],'',''],
		['PAGE','43001',jdecode('Folheto+Dezembro+2009'),jdecode(''),'/37722/43001.html','false',[],'',''],
		['PAGE','38043',jdecode('Fa%C3%A7a+seu+pedido'),jdecode(''),'/37722/38043.html','true',[],'',''],
		['PAGE','41201',jdecode('Formas+de+Pagamento'),jdecode(''),'/37722/41201.html','true',[],'',''],
		['PAGE','40901',jdecode('Perguntas+Frequentes'),jdecode(''),'/37722/40901.html','true',[],'',''],
		['PAGE','40301',jdecode('Assessoria+de+Imprensa'),jdecode(''),'/37722/40301.html','true',[],'',''],
		['PAGE','40601',jdecode('Atendimento+ao+Cliente'),jdecode(''),'/37722/40601.html','true',[],'','']
	],'',''],
	['PAGE','36901',jdecode('25+de+Mar%C3%A7o'),jdecode(''),'/36901/index.html','true',[ 
		['PAGE','44401',jdecode('Sobre+a+Semaan'),jdecode(''),'/36901/44401.html','true',[],'',''],
		['PAGE','44464',jdecode('Lojas'),jdecode(''),'/36901/44464.html','true',[],'',''],
		['PAGE','44422',jdecode('Produtos'),jdecode(''),'/36901/44422.html','true',[],'',''],
		['PAGE','44506',jdecode('Semaan+na+Internet'),jdecode(''),'/36901/44506.html','true',[],'',''],
		['PAGE','49401',jdecode('Colecionadores'),jdecode(''),'/36901/49401.html','true',[],'',''],
		['PAGE','101301',jdecode('Divulga%C3%A7%C3%A3o+de+Evento'),jdecode(''),'/36901/101301.html','false',[],'',''],
		['PAGE','49701',jdecode('Sites+Patrocinados'),jdecode(''),'/36901/49701.html','true',[],'',''],
		['PAGE','50001',jdecode('coleciona.com.br'),jdecode(''),'/36901/50001.html','true',[],'',''],
		['PAGE','44485',jdecode('Assessoria+de+Imprensa'),jdecode(''),'/36901/44485.html','true',[],'',''],
		['PAGE','44443',jdecode('Atendimento+ao+Cliente'),jdecode(''),'/36901/44443.html','true',[],'','']
	],'',''],
	['PAGE','37701',jdecode('Distribuidora+Hasbro'),jdecode(''),'/37701/index.html','true',[ 
		['PAGE','44527',jdecode('Sobre+a+Semaan'),jdecode(''),'/37701/44527.html','true',[],'',''],
		['PAGE','46301',jdecode('Show+Room'),jdecode(''),'/37701/46301.html','true',[],'',''],
		['PAGE','44548',jdecode('Produtos'),jdecode(''),'/37701/44548.html','true',[],'',''],
		['PAGE','44590',jdecode('Representantes'),jdecode(''),'/37701/44590.html','true',[],'',''],
		['PAGE','45901',jdecode('Assessoria+de+Imprensa'),jdecode(''),'/37701/45901.html','true',[],'',''],
		['PAGE','44569',jdecode('Atendimento+ao+Cliente'),jdecode(''),'/37701/44569.html','true',[],'','']
	],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Comic';
theSitetree.paletteFamily='071A5E';
theSitetree.keyvisualId='9983';
theSitetree.keyvisualName='kv2.swf';
theSitetree.fontsetId='17761';
theSitetree.graphicsetId='13130';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Comic',
				paletteFamily: 	'071A5E',
				keyvisualId: 	'9983',
				keyvisualName: 	'kv2.swf',
				fontsetId: 		'17761',
				graphicsetId: 	'13130',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-14663245']={
webappId:    '1501',
documentId:  '36801',
internalId:  '14663245',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20100720-134126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20091207-224130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38001',
internalId:  '',
customField: '20091207-214432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37701',
internalId:  '',
customField: '20100208-142756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37722',
internalId:  '',
customField: '20100720-132757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38022',
internalId:  '',
customField: '20100823-180307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38043',
internalId:  '',
customField: '20091120-084605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38064',
internalId:  '',
customField: '20091123-074251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101301',
internalId:  '',
customField: '20091204-120505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20091123-055843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40601',
internalId:  '',
customField: '20091207-211620'
};
webappMappings['7008']=webappMappings['7008-13146']={
webappId:    '7008',
documentId:  '40601',
internalId:  '13146',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20091207-212331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41201',
internalId:  '',
customField: '20091207-215049'
};
webappMappings['7060']=webappMappings['7060-86c073a94cab1b7bc1bcd72a0399c506']={
webappId:    '7060',
documentId:  '111001',
internalId:  '86c073a94cab1b7bc1bcd72a0399c506',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-cb439527313feae0a041554a6153e162']={
webappId:    '7060',
documentId:  '43001',
internalId:  'cb439527313feae0a041554a6153e162',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43001',
internalId:  '',
customField: '20091120-101032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44401',
internalId:  '',
customField: '20091128-081620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44527',
internalId:  '',
customField: '20091123-082425'
};
webappMappings['7008']=webappMappings['7008-13217']={
webappId:    '7008',
documentId:  '44443',
internalId:  '13217',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-13218']={
webappId:    '7008',
documentId:  '44569',
internalId:  '13218',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44443',
internalId:  '',
customField: '20091207-211528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44569',
internalId:  '',
customField: '20091207-211410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44485',
internalId:  '',
customField: '20091123-060630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20091123-060955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44464',
internalId:  '',
customField: '20091123-075148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20091123-074553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44590',
internalId:  '',
customField: '20091123-064840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44548',
internalId:  '',
customField: '20091123-071102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44422',
internalId:  '',
customField: '20091207-220718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44506',
internalId:  '',
customField: '20091123-080343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49401',
internalId:  '',
customField: '20091204-124412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49701',
internalId:  '',
customField: '20091207-220956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50001',
internalId:  '',
customField: '20091123-094103'
};
webappMappings['7060']=webappMappings['7060-41d7a48230094223aa172159bb14704b']={
webappId:    '7060',
documentId:  '108201',
internalId:  '41d7a48230094223aa172159bb14704b',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108201',
internalId:  '',
customField: '20100720-131225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111001',
internalId:  '',
customField: '20100823-165932'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INZ9AT';
var companyName   = 'Bem+Vindo+%C3%A0+Semaan+%21';
var htmlTitle	  = 'Semaan';
var metaKeywords  = '';
var metaContents  = '';
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();
};
