/* [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','12601',jdecode('Home'),jdecode(''),'/12601.html','true',[],''],
	['PAGE','23101',jdecode('HISTORIA'),jdecode(''),'/23101/index.html','true',[ 
		['PAGE','44601',jdecode('2008'),jdecode(''),'/23101/44601.html','true',[],''],
		['PAGE','15401',jdecode('2007'),jdecode(''),'/23101/15401.html','true',[],''],
		['PAGE','18101',jdecode('2006'),jdecode(''),'/23101/18101.html','true',[],'']
	],''],
	['PAGE','46101',jdecode('KONKURS'),jdecode(''),'/46101.html','true',[],''],
	['PAGE','15464',jdecode('Kontakt'),jdecode(''),'/15464.html','true',[],''],
	['PAGE','38601',jdecode('Ulubione+linki'),jdecode(''),'/38601.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Vista';
theSitetree.paletteFamily='727171';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='29392';
theSitetree.graphicsetId='12114';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='727171';
var theTemplate={
				name: 			'Vista',
				paletteFamily: 	'727171',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'29392',
				graphicsetId: 	'12114',
				contentColor: 	'FFFFFF',
				contentBGColor: '727171',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'B0AFAF',
				e_color: 		'B0AFAF',
				f_color: 		'B0AFAF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '12601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20080610-165557'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20080610-154559'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20071209-210608'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20070405-000031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20070906-233759'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15464',
internalId:  '',
customField: '20070304-103413'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44601',
internalId:  '',
customField: '20080610-154355'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20080326-131140'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10IN23PQ';
var companyName   = 'GALERIA+FOTOGRAFII+PROSPERO';
var htmlTitle	  = 'GALERIA+FOTOGRAFII+PROSPERO';
var metaKeywords  = 'galeria+lublin+zdj%C4%99cia+zdj%C4%99cia+lublin+prospero+galeria+fotografii+prospero+galeria+prospero+foto+zdj%C4%99cia+fotografia+galeria+fotografii+galeria+foto+galeria+prospero+galeria+lublin+galeria+foto+lublin+galeria+fotografii+lublin';
var metaContents  = 'Galeria+Fotografii+Prospero+w+Lublinie.+Prezentacja+i+sprzeda%C5%BC+fotografii+znanych+artyst%C3%B3w+polskich+i+zagranicznych.';
					                                                                    
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 */					                                                            
