/* [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','701',jdecode('Italiano'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','7401',jdecode('Benvenuti'),jdecode(''),'/701/7401.html','true',[],''],
		['PAGE','7422',jdecode('Villaggio+Piscina'),jdecode(''),'/701/7422.html','true',[],''],
		['PAGE','815',jdecode('L%26%23x27%3Bappartamento'),jdecode(''),'/701/815.html','true',[],''],
		['PAGE','12601',jdecode('Servizi'),jdecode(''),'/701/12601.html','true',[],''],
		['PAGE','857',jdecode('Disponibilit%C3%A0'),jdecode(''),'/701/857.html','true',[],''],
		['PAGE','53801',jdecode('Come+arrivare'),jdecode(''),'/701/53801.html','true',[],''],
		['PAGE','79001',jdecode('Contatti'),jdecode(''),'/701/79001.html','true',[],'']
	],''],
	['PAGE','752',jdecode('English'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','7464',jdecode('Welcome'),jdecode(''),'/752/7464.html','true',[],''],
		['PAGE','7506',jdecode('Residence-Pool'),jdecode(''),'/752/7506.html','true',[],''],
		['PAGE','7485',jdecode('Apartment'),jdecode(''),'/752/7485.html','true',[],''],
		['PAGE','12622',jdecode('Services'),jdecode(''),'/752/12622.html','true',[],''],
		['PAGE','7548',jdecode('Availability'),jdecode(''),'/752/7548.html','true',[],''],
		['PAGE','8001',jdecode('As+to+arrive'),jdecode(''),'/752/8001.html','true',[],''],
		['PAGE','79301',jdecode('Contacts'),jdecode(''),'/752/79301.html','true',[],'']
	],''],
	['PAGE','72201',jdecode('Spiagge-Beaches'),jdecode(''),'/72201.html','true',[],''],
	['PAGE','26301',jdecode('Links'),jdecode(''),'/26301.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Plains';
theSitetree.paletteFamily='4690CA';
theSitetree.keyvisualId='7897';
theSitetree.keyvisualName='11.swf';
theSitetree.fontsetId='16926';
theSitetree.graphicsetId='12303';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Plains',
				paletteFamily: 	'4690CA',
				keyvisualId: 	'7897',
				keyvisualName: 	'11.swf',
				fontsetId: 		'16926',
				graphicsetId: 	'12303',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20080308-015345'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20080119-164651'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20080710-013319'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20081024-134124'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20081024-130637'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20080308-015402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7548',
internalId:  '',
customField: '20081024-133702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20081024-130611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53801',
internalId:  '',
customField: '20080126-202520'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79001',
internalId:  '',
customField: '20081024-133323'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20080710-013352'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7506',
internalId:  '',
customField: '20080120-215533'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7485',
internalId:  '',
customField: '20081024-134006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12622',
internalId:  '',
customField: '20081024-133749'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20080126-203828'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79301',
internalId:  '',
customField: '20081024-133621'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20080311-143633'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '72201',
internalId:  '',
customField: '20080311-105301'
};
var canonHostname = 'fe1.cm4all.tiscali.sys';
var accountId     = 'ATC020INX20T';
var companyName   = 'Affitto+Trilocale+San+Teodoro';
var htmlTitle	  = 'Affitto+Trilocale+a+San+Teodoro+-+Sardegna';
var metaKeywords  = 'affitto%2C+san+teodoro%2C+appartamento%2C+trilocale';
var metaContents  = 'san+teodoro%2C+soggiorno+san+teodoro%2C+vacanza+san+teodoro%2C+appartamento+san+teodoro%2C+appartamenti+san+teodoro%2C+affitto+san+teodoro%2C+affitti+san+teodoro%2C+sardegna+affitto%2C+sardegna+affittasi%2C+vacanze+sardegna+affitto%2C+vacanze+sardegna+affittasi%2C+trilocale+san+teodoro%2C+trilocale+sardegna+affittasi%2C+trilocale+sardegna+affitto%2C+tri+locale+san+teodoro%2C+tri+locale+sardegna+affittasi%2C+tri+locale+sardegna+affitto';
					                                                                    
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 */					                                                            

