/* [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','1101',jdecode('O+NAS'),jdecode(''),'/1101.html','true',[],''],
	['PAGE','1173',jdecode('UPRAWNIENIA'),jdecode(''),'/1173.html','true',[],''],
	['PAGE','1194',jdecode('ZAKRES+US%C5%81UG'),jdecode(''),'/1194/index.html','true',[ 
		['PAGE','19201',jdecode('Transport+osobowy'),jdecode(''),'/1194/19201.html','true',[],''],
		['PAGE','19222',jdecode('Naprawa+pojazd%C3%B3w'),jdecode(''),'/1194/19222.html','true',[],'']
	],''],
	['PAGE','1215',jdecode('POJAZDY'),jdecode(''),'/1215.html','true',[],''],
	['PAGE','1236',jdecode('CENNIK'),jdecode(''),'/1236.html','true',[],''],
	['PAGE','1257',jdecode('ROZK%C5%81AD+JAZDY'),jdecode(''),'/1257.html','true',[],''],
	['PAGE','14801',jdecode('KONTAKT'),jdecode(''),'/14801.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Aeskulap';
theSitetree.paletteFamily='012253';
theSitetree.keyvisualId='2496';
theSitetree.keyvisualName='labor.jpg';
theSitetree.fontsetId='27047';
theSitetree.graphicsetId='483';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Aeskulap',
				paletteFamily: 	'012253',
				keyvisualId: 	'2496',
				keyvisualName: 	'labor.jpg',
				fontsetId: 		'27047',
				graphicsetId: 	'483',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20080401-173948'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1173',
internalId:  '',
customField: '20080401-215547'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1194',
internalId:  '',
customField: '20080401-174137'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1215',
internalId:  '',
customField: '20080401-183203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19222',
internalId:  '',
customField: '20080401-182157'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1236',
internalId:  '',
customField: '20080401-183420'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1257',
internalId:  '',
customField: '20080401-181751'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20080401-174440'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20080401-181636'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1101',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10INX3PQ';
var companyName   = 'FIRMA+TRANSPORTOWA++s.c.+%E2%80%9EWUJDA%E2%80%9D';
var htmlTitle	  = 'Firma+Transportowa+S.C.+Wujda';
var metaKeywords  = 'Soko%C5%82owsko%2C+Wa%C5%82brzych%2C+Bogusz%C3%B3w+Gorce%2C+Mierosz%C3%B3w%2C+Unis%C5%82aw+%C5%9Al%C4%85ski%2C+Rybnica+Le%C5%9Bna%2C+Kowalowa%2C+Nowe+Siod%C5%82o%2C+%C5%81%C4%85czna%2C+R%C3%B3%C5%BCana%2C+transport+autobusowy%2C+przewozy+autokarowe%2C+naprawy+mechaniczne+samochod%C3%B3w%2C+pojazd%C3%B3w%2C+wulkanizacja+opon%2C+ko%C5%82a+samochodowe%2C+mikrobusy%2C+autobusy%2C+us%C5%82ugi+transportowe%2C';
var metaContents  = 'Firma+Transportowa+Wujda+s.c.+od+1999+roku+zajmuje+si%C4%99+transportem+os%C3%B3b+w+przewozach+regularnych+i+okoliczno%C5%9Bciowych+w%C5%82asnym+taborem.+Zajmuje+si%C4%99+r%C3%B3wnie%C5%BC+us%C5%82ugami+w+zakresie+naprawy+pojazd%C3%B3w+i+wulkanizacji.';
					                                                                    
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 */					                                                            

