/* [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','25501',jdecode('Zapraszamy'),jdecode(''),'/25501.html','true',[],''],
	['PAGE','28901',jdecode('Rezerwacja+pobytu'),jdecode(''),'/28901.html','true',[],''],
	['PAGE','36301',jdecode('Fotogaleria'),jdecode(''),'/36301.html','true',[],''],
	['PAGE','17585',jdecode('Pytania+online'),jdecode(''),'/17585.html','true',[],''],
	['PAGE','23601',jdecode('Informacje'),jdecode(''),'/23601.html','true',[],''],
	['PAGE','23622',jdecode('Kontakt'),jdecode(''),'/23622.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='AD1D1D';
theSitetree.keyvisualId='5821';
theSitetree.keyvisualName='kv_5821.jpg';
theSitetree.fontsetId='27815';
theSitetree.graphicsetId='11868';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5821',
				keyvisualName: 	'kv_5821.jpg',
				fontsetId: 		'27815',
				graphicsetId: 	'11868',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20070514-120046'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20080430-084854'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '36301',
internalId:  '112ffe85f6c',
customField: 'g.12bvtr5ki.1j4dc1sqli.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17585',
internalId:  '',
customField: '20060927-142306'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20070701-111521'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23622',
internalId:  '',
customField: '20080428-121851'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '28901',
internalId:  '2189226',
customField: 'pl:PL:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20070611-122904'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10INX2YF';
var companyName   = 'Kwatera+%22Na+zagrodzie%22+-+tanie+spanie+w+przy+Puszczy+Bia%C5%82owieskiej';
var htmlTitle	  = '.%3A%3A+Bia%C5%82owie%C5%BCa+Agroturystyka+Na+Zagrodzie+%3A%3A.+Tanie+i+smaczne+spanie+przy+Puszczy+Bia%C5%82owieskiej.';
var metaKeywords  = 'Bia%C5%82owie%C5%BCa+Spanie+Noclegi+Agroturystyka+Puszcza+Wycieczki+Hajn%C3%B3wka+Bialowieza+Pobyt+W+';
var metaContents  = 'Szukasz+noclegu+w+otulinie+Puszczy+Bia%C5%82owieskiej+-+zapraszamy+do+Nas.+Tu+znajdziesz+cisz%C4%99%2C+spok%C3%B3j+i+wspania%C5%82e+warunki+do+wypoczynku.+Polecamy+wspania%C5%82e+jedzenie+i+atrakcyjne+specja%C5%82y+reginalne.+Zapraszamy+do+kwatery+agroturystycznej++Na+Zagrodzie+we+wsi+Nowoberezowo+-+kresy+wschodnie+na+Podlasiu.';
					                                                                    
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 */					                                                            

