/* [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','401',jdecode('Discover+Warsaw'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('What+to+see+in+Warsaw'),jdecode(''),'/452.html','true',[],''],
	['PAGE','24401',jdecode('Extras'),jdecode(''),'/24401.html','true',[],''],
	['PAGE','26001',jdecode('Photos'),jdecode(''),'/26001.html','true',[],''],
	['PAGE','494',jdecode('Questions+on-line'),jdecode(''),'/494.html','true',[],''],
	['PAGE','536',jdecode('Contact'),jdecode(''),'/536.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Aeskulap';
theSitetree.paletteFamily='C00405';
theSitetree.keyvisualId='2493';
theSitetree.keyvisualName='apotheke.jpg';
theSitetree.fontsetId='29116';
theSitetree.graphicsetId='487';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Aeskulap',
				paletteFamily: 	'C00405',
				keyvisualId: 	'2493',
				keyvisualName: 	'apotheke.jpg',
				fontsetId: 		'29116',
				graphicsetId: 	'487',
				contentColor: 	'000066',
				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:  '401',
internalId:  '',
customField: '20070801-075339'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20070727-191052'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '26001',
internalId:  '1141c862426',
customField: 'g.12ge7rqte.824d3dnbuv.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20070727-083439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20070730-203540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20070801-080249'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '494',
internalId:  '10499733',
customField: 'pl:PL:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20070801-075055'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10IN3J7G';
var companyName   = 'SEEWARSAW';
var htmlTitle	  = 'Warsaw+Guide';
var metaKeywords  = 'Warsaw%2C+warsaw+guide%2C+warsaw+sightseeing%2C+sights+in+warsaw%2C+warsaw+tours%2C+warsaw+in+greek%2C+greek-speaking+warsaw+guide%2C+warsaw+sightseeing+in+Greek%2C+warsaw+tours+in+English%2C+visit+warsaw%2C+guides+in+Warsaw%2C+see+warsaw%2C+';
var metaContents  = 'A+private%2C+licensed+guide+in+Warsaw+-+home+site';
					                                                                    
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 */					                                                            

