/* [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','801',jdecode('Home'),jdecode(''),'/801.html','true',[],''],
	['PAGE','936',jdecode('Podstawowe+informacje'),jdecode(''),'/936.html','true',[],''],
	['PAGE','873',jdecode('Praktyka'),jdecode(''),'/873.html','true',[],''],
	['PAGE','894',jdecode('Najcz%C4%99stsze+pytania'),jdecode(''),'/894.html','true',[],''],
	['PAGE','915',jdecode('Dzieci+niepe%C5%82onosprawne'),jdecode(''),'/915.html','true',[],''],
	['PAGE','957',jdecode('O+mnie'),jdecode(''),'/957.html','true',[],''],
	['PAGE','978',jdecode('Kontakt'),jdecode(''),'/978.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Aeskulap';
theSitetree.paletteFamily='C00405';
theSitetree.keyvisualId='2498';
theSitetree.keyvisualName='optiker.jpg';
theSitetree.fontsetId='27047';
theSitetree.graphicsetId='488';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Aeskulap',
				paletteFamily: 	'C00405',
				keyvisualId: 	'2498',
				keyvisualName: 	'optiker.jpg',
				fontsetId: 		'27047',
				graphicsetId: 	'488',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20071205-232130'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20071129-002806'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '957',
internalId:  '',
customField: '20071129-002806'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '978',
internalId:  '',
customField: '20071202-182507'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '978',
internalId:  '12292471',
customField: 'pl:PL:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20071129-002806'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20071129-002806'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '936',
internalId:  '',
customField: '20071202-183958'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10IN3FYB';
var companyName   = 'Aby+Twoje+Dziecko+widzia%C5%82o+lepiej';
var htmlTitle	  = 'Alicja+Krawczyk+-+badanie+okulistyczne+niemowl%C4%85t%2C+dzieci+niepe%C5%82nosprawnych+i+s%C5%82abowidz%C4%85cych.';
var metaKeywords  = 'Alicja+Krawczyk%2C+dzieci+niepe%C5%82nosprawne%2C+badanie+okulistyczne+dzieci%2C+zez%2C+okulary+dla+dzieci%2C+retinopatia+wcze%C5%9Bniak%C3%B3w%2C+ROP%2C+oczopl%C4%85s%2C+widzenie+obuoczne%2C+astygmatyzm%2C+nadwzroczno%C5%9B%C4%87%2C+kr%C3%B3tkowzroczno%C5%9B%C4%87%2C+r%C3%B3%C5%BCnowzroczno%C5%9B%C4%87%2C+wady+wzroku+u+dzieci%2C+za%C4%87ma%2C+bezsoczewkowo%C5%9B%C4%87%2C+bezocze%2C+ma%C5%82oocze%2C+ubytek+t%C4%99cz%C3%B3wki%2C+logmar%2C+tablice+w+skali+logmar%2C+Lea%2C+symbole+Lea%2C+test+widzenia+preferencyjnego%2C+widzenie+w+obni%C5%BConym+kontra%C5%9Bcie%2C+widzenie+barw+u+dzieci%2C+zas%C5%82anianie+oka%2C+protezy+oka%2C+ekspandery+oczodo%C5%82u%2C+badanie+oczu%2C+ocena+widzenia+u+dzieci';
var metaContents  = 'Strona+po%C5%9Bwi%C4%99cona+zagadnieniom+okulistyki+dzieci%C4%99cej.+Dr+Alicja+Krawczyk+specjalista+chor%C3%B3b+oczu+przedstawia+i+omawia+r%C3%B3%C5%BCne+aspekty+funkcjonowania+wzrokowego+niemowl%C4%85t+i+dzieci%2C+tak%C5%BCe+dzieci+niepe%C5%82nosprawnych.+Rodzice+i+opiekunowie+znajd%C4%85+tu+wiele+informacji+dotycz%C4%85cych+szeroko+rozumianego+funkcjonowania+wzrokowego+ze+szczeg%C3%B3lnym+uwzgl%C4%99dnieniem+dzieci+ma%C5%82ych%2C+niem%C3%B3wi%C4%85cych+i+niepe%C5%82nosprawnych.';
					                                                                    
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 */					                                                            

