/* [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','301',jdecode('Strona+g%C5%82%C3%B3wna'),jdecode(''),'/301.html','true',[],''],
	['PAGE','352',jdecode('Us%C5%82ugi'),jdecode(''),'/352.html','true',[],''],
	['PAGE','373',jdecode('Gabinet+i+Godziny+otwarcia'),jdecode(''),'/373.html','true',[],''],
	['PAGE','394',jdecode('Cennik+i+formy+p%C5%82atno%C5%9Bci'),jdecode(''),'/394.html','true',[],''],
	['PAGE','436',jdecode('Kontakt'),jdecode(''),'/436.html','true',[],''],
	['PAGE','11601',jdecode('Mapa+-+zaplanuj+dojazd'),jdecode(''),'/11601.html','true',[],''],
	['PAGE','478',jdecode('Laserowe+usuwanie+%C5%BCylak%C3%B3w+%21%21'),jdecode(''),'/478.html','true',[],''],
	['PAGE','14601',jdecode('Nasi+lekarze'),jdecode(''),'/14601.html','true',[],''],
	['PAGE','16101',jdecode('Chirurg+Onkolog'),jdecode(''),'/16101.html','true',[],''],
	['PAGE','24501',jdecode('Lukas'),jdecode(''),'/24501.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1754';
theSitetree.keyvisualName='krankenhaus.jpg';
theSitetree.fontsetId='28833';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1754',
				keyvisualName: 	'krankenhaus.jpg',
				fontsetId: 		'28833',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003390',
				b_color: 		'000000',
				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:  '301',
internalId:  '',
customField: '20080408-030443'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20080211-201946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20080408-015848'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20080219-020604'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20080427-140050'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20080404-032056'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20080404-032420'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '478',
internalId:  '',
customField: '20080210-232537'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20080219-014330'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20080216-224007'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10INVWGN';
var companyName   = 'Centrum+Medyczne+LASER-MED';
var htmlTitle	  = '%3ALASER-MED%3AProfesjonalna+Pracownia+USG+oraz+Laserowe+usuwanie+%C5%BCylak%C3%B3w+%3ALASER-MED%3A';
var metaKeywords  = 'USG%2C+laser-med%2C+doppler%2C+dopplerowskie%2C+K%C4%99dzierzyn-Ko%C5%BAle%2C+Opole%2C+Strzelce+Opolskie%2C+G%C5%82ubczyce%2C+Krapkowice%2C+jama+brzuszna%2C+tarczyca%2C+piersi%2C+Color+Doppler%2C+Power+Doppler%2C+ultrasonografia%2C+przep%C5%82ywy%2C+t%C4%99tnice+szyjne%2C+ko%C5%84czyny+dolne%2C+laser%2C+%C5%BCy%C5%82y%2C+t%C4%99tnice%2C+%C5%BCylaki%2C+skleroterapia%2C+usuwanie+%C5%BCylak%C3%B3w%2C+onkolog';
var metaContents  = 'USG%2C+laser-med%2C+doppler%2C+dopplerowskie%2C+K%C4%99dzierzyn-Ko%C5%BAle%2C+Opole%2C+Strzelce+Opolskie%2C+G%C5%82ubczyce%2C+Krapkowice%2C+jama+brzuszna%2C+tarczyca%2C+piersi%2C+Color+Doppler%2C+Power+Doppler%2C+ultrasonografia%2C+przep%C5%82ywy%2C+t%C4%99tnice+szyjne%2C+ko%C5%84czyny+dolne%2C+laser%2C+%C5%BCy%C5%82y%2C+t%C4%99tnice%2C+%C5%BCylaki%2C+skleroterapia%2C+usuwanie+%C5%BCylak%C3%B3w%2C+onkolog';
					                                                                    
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 */					                                                            

