/* [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','601',jdecode('Inici'),jdecode(''),'/601.html','true',[],''],
	['PAGE','694',jdecode('Les+cases'),jdecode(''),'/694/index.html','true',[ 
		['PAGE','715',jdecode('Llevant'),jdecode(''),'/694/715.html','true',[],''],
		['PAGE','736',jdecode('Ponent'),jdecode(''),'/694/736.html','true',[],''],
		['PAGE','757',jdecode('L%26%23x27%3BEra'),jdecode(''),'/694/757.html','true',[],''],
		['PAGE','778',jdecode('L%26%23x27%3Bavi'),jdecode(''),'/694/778.html','true',[],'']
	],''],
	['PAGE','1177',jdecode('Preus'),jdecode(''),'/1177/index.html','true',[ 
		['PAGE','7601',jdecode('Prices+and+booking+%28follow+up+page%29'),jdecode(''),'/1177/7601.html','false',[],'']
	],''],
	['PAGE','5801',jdecode('Activitats'),jdecode(''),'/5801/index.html','true',[ 
		['PAGE','5822',jdecode('Que+fer'),jdecode(''),'/5801/5822.html','true',[],''],
		['PAGE','5843',jdecode('On+anar'),jdecode(''),'/5801/5843.html','true',[],'']
	],''],
	['PAGE','673',jdecode('Per+arribar'),jdecode(''),'/673.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1737';
theSitetree.keyvisualName='blumen.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='333F65';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1737',
				keyvisualName: 	'blumen.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'DDDDDD',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20091028-162908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20090328-202105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20090328-171644'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20090329-174311'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20090328-194320'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20090329-174636'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20090329-175211'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20090329-175823'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20090329-180439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1177',
internalId:  '',
customField: '20090329-181649'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5843',
internalId:  '',
customField: '20090328-202213'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1177',
internalId:  'aars20invzqc1203334e3a7',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7601',
internalId:  'aars20invzqc1203334e3a7',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20090323-130125'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INVZQC';
var companyName   = 'Turisme+rural+a+la+Garrotxa.';
var htmlTitle	  = 'Turisme+rural+a+la+Garrotxa.+Ca+la+Coixa.';
var metaKeywords  = 'peaceful%2C+peacefully%2C+healthy%2C+apartments%2Cholidays%2C+spain%2C+lodging%2C+self-contained%2C+self-catering%2C+accommodation%2C+house%2C+cottage%2C+catalonia%2C+garrotxa%2C+Girona%2C+Natural+Park%2C+Pyrenees%2C+rural%2C+farmhouse%2C+beach%2C+Costa+Brava%2C+hiking%2C+volcano%2C+mountain';
var metaContents  = 'Self-catering+accommodation+in+Girona+%28Spain%29%2C+enjoy+nature+in+confortable+independent+lodging.+Swimming-pool.The+4+apartments+have+central+heating+and+hot+water+by+diesel.+There+is+a+washing-machine+on+guests+disposal+in+a+room+away+from+the+apartments.+All+the+apartments+are+fully+provided+with+linen%2C+blankets%2C+towells%2Ctoilet+paper%2Ckitchen+utensils+and+cleaning+products+stock.+Every+kitchen+is+fully+equipped+with+electric+devices+offering+the+comfort+you+are+looking+for+in+your+holidays%3A+microwave+oven%2C+dish-washer+machine%2C+fridge%2C+cooker%2C+bread-toaster%2C+stem+blender.';
					                                                                    
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 */					                                                            
