/* [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('STRONA+G%C5%81%C3%93WNA'),jdecode(''),'/401.html','true',[],''],
	['PAGE','7201',jdecode('PYTANIA'),jdecode(''),'/7201.html','true',[],''],
	['PAGE','452',jdecode('KONTAKT'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('PRZEDSMAK'),jdecode(''),'/473.html','true',[],''],
	['PAGE','9701',jdecode('FOTKI'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','6201',jdecode('LINKI'),jdecode(''),'/6201.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='4D4CD2';
theSitetree.keyvisualId='606';
theSitetree.keyvisualName='federn.jpg';
theSitetree.fontsetId='26759';
theSitetree.graphicsetId='140';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Kreis',
				paletteFamily: 	'4D4CD2',
				keyvisualId: 	'606',
				keyvisualName: 	'federn.jpg',
				fontsetId: 		'26759',
				graphicsetId: 	'140',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'4D4CD2',
				b_color: 		'7794F8',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '9701',
internalId:  '10ea522c309',
customField: 'g.11qihh1pf.bq7decd368.1s'
};
var canonHostname = 'wsc2.home.net.pl';
var accountId     = 'AHPL10IN2SPK';
var companyName   = 'Smoothmusic';
var htmlTitle	  = 'SMOOTHMUSIC+muzyka+dla+Ciebie';
var metaKeywords  = 'smoothmusic+piotr+semczuk+janusz+szrom+lora+szafran+dariusz+szyma%C5%84czak+w%C5%82odzimierz+nahorny+adam+wendt+adam+lewandowski+andrzej+jagodzi%C5%84ski+zbigniew+wegehaupt+jerzy+jaros%C5%82aw+dobrzy%C5%84ski+smoothjazz+muzyka+dobta+%C5%9Bwietna+muza+wokal+wokalistka+wokalista+gitara+basowa+solowa+solowy+acapella+studio+nagra%C5%84+realizacji+my%C5%9Bli+tw%C3%B3rczych+nowa+p%C5%82yta+najlepsza+najlepsi+najlepszy+the+best+vocal+g%C4%99bofon+polska+polski+scena+muzyczna+projekt+du%C5%BCe+s';
var metaContents  = 'Strona+po%C5%9Bwi%C4%99cona+realizacji+pomys%C5%82%C3%B3w+muzycznych+pod+szyldem+smoothmusic.+Pierwszy+z+nich+zwany+Projektem+Du%C5%BCe+S%2C+to+spi%C4%99ty+klamr%C4%85+CD+zbi%C3%B3r+kilkunastu+znakomitych+utwor%C3%B3w+wykonanych+przez+cz%C5%82%C3%B3wk%C4%99+artyst%C3%B3w+polskiej+sceny+muzycznej.';
					                                                                    
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 */					                                                            

