/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],''],
	['PAGE','9701',jdecode('Aktualno%C5%9Bci'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','8601',jdecode('Po%C5%82%C4%85czenia+sta%C5%82e'),jdecode(''),'/8601/index.html','true',[ 
		['PAGE','252',jdecode('Szamotu%C5%82y-Obrzycko'),jdecode(''),'/8601/252.html','true',[],'']
	],''],
	['PAGE','273',jdecode('Dane+firmy+i+kontakt'),jdecode(''),'/273.html','true',[],''],
	['PAGE','4701',jdecode('Flota'),jdecode(''),'/4701.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='F5F5F5';
theSitetree.keyvisualId='2179';
theSitetree.keyvisualName='transport.jpg';
theSitetree.fontsetId='26962';
theSitetree.graphicsetId='407';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F5F5F5';
var theTemplate={
				name: 			'Medium',
				paletteFamily: 	'F5F5F5',
				keyvisualId: 	'2179',
				keyvisualName: 	'transport.jpg',
				fontsetId: 		'26962',
				graphicsetId: 	'407',
				contentColor: 	'000000',
				contentBGColor: 'F5F5F5',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F5F5F5',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '4701',
internalId:  '1126fe2ae50',
customField: 'g.129ntbnul.87ldrccne5g.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20070824-133741'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '252',
internalId:  '',
customField: '20070824-123841'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '273',
internalId:  '',
customField: '20070824-123329'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20070509-101256'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '273',
internalId:  '8962746',
customField: 'pl:PL:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20070824-134046'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20070824-133657'
};
var canonHostname = 'wsc2.home.net.pl';
var accountId     = 'AHPL10INEFAG';
var companyName   = 'Matmich-BUS';
var htmlTitle	  = 'Matmich-BUS%2C+Przew%C3%B3z+os%C3%B3b';
var metaKeywords  = 'przew%C3%B3z%2C+os%C3%B3b%2C+autobus%2C+autokar%2C+wycieczki%2C+dow%C3%B3z%2C+bus%2C+pielgrzymki';
var metaContents  = 'Firma+%C5%9Bwiadczy+us%C5%82ugi+przewozu+os%C3%B3b+indywidualnych+oraz+grup+zorganizowanych.+Oferujemy+m.in.%3A+-+wycieczki+szkolne%2C+-+wycieczki+firmowe%2C+-+dow%C3%B3z+pracownik%C3%B3w%2C+-+przejazdy+na+imprezy+okoliczno%C5%9Bciowe+i+rodzinne+%28wesela%2C+przysi%C4%99gi%2C+koncerty%29%2C+-+imprezy+sportowe+%28przew%C3%B3z+grup+sportowych%29%2C+-+pielgrzymki%2C+-+inne%2C+np.+targi%2C+wystawy%2C+konferencje%2C+szkolenia%2C+firmowe+imprezy+integracyjne.++Oferujemy+bezpieczny%2C+komfortowy+i+tani+przejazd.+Busy+marki+Mercedes-Benz+posiadaj%C4%85%3A+-+klimatyzacj%C4%99%2C+-+telewizor+%2B+DVD+%2B+VHS%2C+-+nag%C5%82o%C5%9Bnienie+%2B+mikrofon%2C+-+szerokie+i+wygodne+siedzenia.+Liczba+miejsc%3A+22.++Posiadamy+Licencj%C4%99+na+transport+drogowy+os%C3%B3b+oraz+Certyfikat+Kompetencji+Zawodowych.';
					                                                                    
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 */					                                                            

