/* [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','93801',jdecode('Home'),jdecode(''),'/93801/index.html','true',[ 
		['PAGE','93852',jdecode('Kontakt'),jdecode(''),'/93801/93852.html','true',[],''],
		['PAGE','93873',jdecode('Dokumenty'),jdecode(''),'/93801/93873.html','true',[],''],
		['PAGE','93894',jdecode('Transport'),jdecode(''),'/93801/93894.html','true',[],''],
		['PAGE','93501',jdecode('O+nas'),jdecode(''),'/93801/93501.html','true',[],'']
	],''],
	['PAGE','1373',jdecode('Imprezy'),jdecode(''),'/1373/index.html','true',[ 
		['PAGE','8101',jdecode('Wycieczki'),jdecode(''),'/1373/8101.html','true',[],''],
		['PAGE','8122',jdecode('Pielgrzymki'),jdecode(''),'/1373/8122.html','true',[],''],
		['PAGE','25522',jdecode('Inne+Imprezy'),jdecode(''),'/1373/25522.html','true',[],''],
		['PAGE','25501',jdecode('First+Minute'),jdecode(''),'/1373/25501.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Layers';
theSitetree.paletteFamily='82B3CD';
theSitetree.keyvisualId='652';
theSitetree.keyvisualName='justizia.jpg';
theSitetree.fontsetId='26764';
theSitetree.graphicsetId='148';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E6EAEF';
var theTemplate={
				name: 			'Layers',
				paletteFamily: 	'82B3CD',
				keyvisualId: 	'652',
				keyvisualName: 	'justizia.jpg',
				fontsetId: 		'26764',
				graphicsetId: 	'148',
				contentColor: 	'000000',
				contentBGColor: 'E6EAEF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'006699',
				b_color: 		'CCCCCC',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '93894',
internalId:  '13437992',
customField: 'pl:PL:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20080315-173540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1373',
internalId:  '',
customField: '20080315-173204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93501',
internalId:  '',
customField: '20080315-173118'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93801',
internalId:  '',
customField: '20080315-172719'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93852',
internalId:  '',
customField: '20080315-172826'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93873',
internalId:  '',
customField: '20080315-172929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93894',
internalId:  '',
customField: '20080315-173026'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20080315-173302'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8122',
internalId:  '',
customField: '20080315-173356'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25522',
internalId:  '',
customField: '20080315-173446'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '25522',
internalId:  '12654952',
customField: 'pl:PL:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '8101',
internalId:  '12654893',
customField: 'pl:PL:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '8122',
internalId:  '12654828',
customField: 'pl:PL:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '25501',
internalId:  '12655011',
customField: 'pl:PL:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '93852',
internalId:  '12195420',
customField: 'pl:PL:'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10IN3RLM';
var companyName   = 'Sun+Destination+Travel';
var htmlTitle	  = 'BP+Sun+Destination%2Csundestination%2Csundestination.eu';
var metaKeywords  = 'Ukraina%2C+Litwa%2C+%C5%81otwa%2C+Estonia%2C+Krym%2C+Rosja%2C+Republika+Czeska%2C+S%C5%82owacja%2C+W%C4%99gry%2C+Austria%2C+oferta+dla+parafii%2C+oferta+dla+biur+podr%C3%B3%C5%BCy%2C+oferta+dla+instytucji%2C+ubezpieczenia+turystyczne%2C+organizator+i+po%C5%9Brednik+turystyczny%2C+rezerwacja+hoteli+i+kamping%C3%B3w%2C+promocje%2C+stali+klienci%2C+W%C5%82ochy%2C+pielgrzymki%2C+last+minute%2C+wczasy%2C+wycieczki+objazdowe%2C+obozy+m%C5%82odzie%C5%BCowe%2C+Wilno+%2C+Roma%2C+Rzym%2C+podr%C3%B3%C5%BCe%2C+W%C5%82ochy+wczasy%2C+W%C5%82ochy+wycieczki%2C+W%C5%82ochy+wycieczki+objazdowe%2C+W%C5%82ochy+podr%C3%B3%C5%BCe%2C+W%C5%82ochy+last+minute%2C+W%C5%82ochy+pielgrzymki%2C+Italia%2C+Italia+podr%C3%B3%C5%BCe%2C+Italia+pielgrzymki%2C+Italia+wycieczki+objazdowe%2C+Wilno+wczasy%2C+Wilno+wycieczki%2C+Wilno+wycieczki+objazdowe%2C+Wilno+podr%C3%B3%C5%BCe%2C+Wilno+last+minute%2C+Wilno+pielgrzymki%2C+Rzym+wczasy%2C+Rzym+wycieczki%2C+Rzym+wycieczki+objazdowe%2C+Rzym+podr%C3%B3%C5%BCe%2C+Rzym+pielgrzymki%2C+Rzym+noclegi%2C+Watykan%2C+Watykan+pielgrzymki%2C+Watykan+wycieczki%2C+Watykan+wycieczki+objazdowe%2C+Watykan+last+minute%2C+Watykan+grupy+zorganizowane%2C+Rzym+last+minute%2C+Lourdes+wycieczki%2C+Lourdes+pielgrzymki%2C+Lourdes+wycieczki+objazdowe%2C+Lourdes+podr%C3%B3%C5%BCe%2C+Lourdes+last+minute%2C+Lourdes+noclegi%2C+Fatima+wycieczki%2C+Fatima+pielgrzymki%2C+Fatima+wycieczki+objazdowe%2C+Fatima+podr%C3%B3%C5%BCe%2C+Fatima+noclegi%2C+Fatima+last+minute%2C+Portugalia+wycieczki%2C+Potrugalia+wycieczki+objazdowe%2C+Potrugalia+pielgrzymki%2C+Potrugalia+last+minute%2C+Portugalia+objazd+i+wypoczynek%2C';
var metaContents  = 'BP+Sun+Destination%2C+sundestination%2C+sundestination.eu%2C+Sun+Destination%2C+polskie+Biuro+Podr%C3%B3%C5%BCy%2C+pielgrzymki%2C+podr%C3%B3%C5%BCe%2C+wycieczki%2C+wycieczki+objazdowe%2C+last+minute%2C+turystyka+kwalifikowana%2C+wczasy%2C+W%C5%82ochy%2C+obozy+m%C5%82odzie%C5%BCowe%2C+ubezpieczenia+turystyczne%2C+incentive+travel%2C+wycieczki+m%C5%82odzie%C5%BCowe%2C+zielone+szko%C5%82y%2C+Lw%C3%B3w%2C+Wilno%2C+Rzym%2C+Watykan%2C+Monte+Cassino%2C+Neapol%2C+Anzio%2C+Capri%2C+Asy%C5%BC%2C+Gaeta%2C+Wiede%C5%84%2C+Klagenfurt%2C+imprezy+pobytowe%2C+objazd+i+wypoczynek%2C+ubezpieczenia+turystyczne%2C+wynajem+autokar%C3%B3w.+Specializing+in+Poland+and+central-eastern+Europe+pilgrimages+and+tours.+We+offer+travel+packages+to+Poland+including+Wroclaw%2C+Sudety+Mountains+-+Karkonosze%2C+G%C3%B3ry+Sowie%2C+Masyw+%C5%9Anie%C5%BCnika+%E2%80%A6++Zapraszamy+serdecznie+...+';
					                                                                    
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 */					                                                            
