/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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 theSitetree=[ 
	['PAGE','13701',jdecode('Os+BolosFant%C3%A1sticos'),jdecode(''),'/13701.html','true',[],''],
	['PAGE','4597',jdecode('As+Informa%C3%A7%C3%B5es'),jdecode(''),'/4597.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Comedy';
theSitetree.paletteFamily='85A246';
theSitetree.keyvisualId='2798';
theSitetree.keyvisualName='schnecke.jpg';
theSitetree.fontsetId='10601';
theSitetree.graphicsetId='10719';
theSitetree.contentColor='F2F5EA';
theSitetree.contentBGColor='9EBA61';
var theTemplate={
				name: 			'Comedy',
				paletteFamily: 	'85A246',
				keyvisualId: 	'2798',
				keyvisualName: 	'schnecke.jpg',
				fontsetId: 		'10601',
				graphicsetId: 	'10719',
				contentColor: 	'F2F5EA',
				contentBGColor: '9EBA61',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'647C2F',
				e_color: 		'647C2F',
				f_color: 		'647C2F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '13701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20080109-121818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20080108-153205'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVHW0';
var companyName   = 'Bolos+Fant%C3%A1sticos';
var htmlTitle	  = 'BolosFantasticos.com';
var metaKeywords  = 'sabor+a+festa%2C+showparty%2C+sonhos+m%C3%A1gicos%2Ctvi%2C+sic%2C+rtp%2C+morangotango%2C+oeiras%2C+parede%2C+salecsianos%2C+maristas%2C+col%C3%A9gio%2C+escola%2C+tapada+de+mafra%2C+presentes%2Coficina+do+bolo%2C+moranguito%2C+sintra%2C+duxeme%2C+telebolos%2C+pinhatas%2C+doces%2C+cascais%2C+estoril%2C+alcabideche%2C+verynice%2C+magico%2C+a+minha+festa%2C+balon+art%2C+fabrica+de+eventos%2C+eventos%2C+funcenter%2C+doce%2C+directmafra%2C+quinta%2C+mafreventos%2C+kenai%2C+peterpan%2C+incriveis%2C+a+bela+e+o+monstro%2C+aladino%2C+bambi%2C+nemo%2C+101+dalmatas%2C+paraiso+da+barafunda%2C+ruca%2C+dora%2C+bob%2C+bob+o+construtor%2C+ginastica%2C+karate%2C+nbp%2C+produtora%2C+Pooh%2C+por+agua+abaixo%2C+santo+isidoro%2C+ribamar%2C+lagoa%2C+zambujal%2C+quintal%2C+igreja+nova%2C+cheleiros%2C+incriveis%2C+obelix%2C+branca+de+neve%2C+ribeira+ilhas%2C+bowling%2C+brinde%2C+Cars%2CCinderela%2C+disney%2C+princesas%2C+bebe%2C+noddy%2C+festa%2C+colegio%2C+mafra%2C+ericeira%2C+surf%2C+casamento%2C+baptizado%2C+descart%C3%A1veis%2C+anima%C3%A7ao%2C+pre-mama%2C+gravidez%2C+comunh%EF%BF%BDo%2C+crisma%2C+pais+e+filhos%2C+atl%2C+tres+tons%2C+estrela+do+mar%2C+bolo%2C+bolos%2C+natal%2C+noivos%2C+infantil%2C+infantis%2C+doces+paladares%2C+omeubolo%2C+o+meu+bolo%2C+doroteias%2C+quinta+m%EF%BF%BDgica%2C+imaginarium%2C+partyland%2C+miss%C3%A3o+possivel%2C+decora%C3%A7%C3%A3o%2C+produtoras%2C+camara+municiapl+de+mafra%2C+crian%C3%A7as%2C+noivas%2C+duxeme%2C+mr+party%2C+morangotango%2C+quinta+dos+leitoes%2C+salesianos%2C+infantario%2C+jardim+de+infancia%2C+girassol%2C+escolinha%2C+escola%2C+creche%2C+palha%C3%A7os%2C+docespaladares%2C+animadores%2C+decora%EF%BF%BD%EF%BF%BDo%2C+floribella%2C+flor%2C+floribela.+mafradigital%2C+tapada%2C+badoca%2C+bal%C3%B5es%2C+espa%C3%A7o+para+festas%2C+insuflavel%2C+insufl%C3%A1veis%2C+festa%2C+aluguer%2C+festas%2C+easybus%2C+stop++go%2C+micolandia%2C+pergunta-me%2C+riscos+e+rabiscos%2C+pau+de+giz';
var metaContents  = 'Fazemos+bolos+a+3D-dimens%C3%B5es+para+a+sua+festa+de%3A+Anivers%C3%A1rio%2C+Baptizado%2CCasamento%2C+1%C2%AA+Comunh%C3%A3o%2C+Crisma%2C+Despedida+de+Solteiro%2C+Empresariais%2C+Programas+de+TV%2C+Natal%2C+etc...Agora+delicie-se++e+demore+o+tempo+que+quiser.+.+.+.+.+.+n%C3%B3s+vamos+estar+aqui+24+horas+por+dia%2C365+dias+por+ano%21';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
