/* [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','4481',jdecode('HOME'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','135277',jdecode('TERMINE'),jdecode(''),'/135277.html','true',[],''],
	['PAGE','22550',jdecode('SEGELTURN+MIT+CHRISTIAN+%22MOTOR%22+POLANSEK+%2F+SUPERSTAR'),jdecode(''),'/22550/index.html','true',[ 
		['PAGE','114771',jdecode('Herzl+Weinstube+2008'),jdecode(''),'/22550/114771.html','true',[],''],
		['PAGE','14112',jdecode('Franz+Polansek'),jdecode(''),'/22550/14112.html','true',[],''],
		['PAGE','94081',jdecode('Videos'),jdecode(''),'/22550/94081.html','true',[],''],
		['PAGE','10835',jdecode('Eintr%E4ge'),jdecode(''),'/22550/10835.html','true',[],''],
		['PAGE','10834',jdecode('G%E4stebuch'),jdecode(''),'/22550/10834.html','true',[],''],
		['PAGE','97495',jdecode('WEBLOG'),jdecode(''),'/22550/97495.html','true',[],''],
		['PAGE','81550',jdecode('Neue+Mongos'),jdecode(''),'/22550/81550.html','true',[],''],
		['PAGE','71825',jdecode('Der+Mann+ohne+Hirn'),jdecode(''),'/22550/71825.html','true',[],''],
		['PAGE','76950',jdecode('Aviation'),jdecode(''),'/22550/76950.html','true',[],''],
		['PAGE','33536',jdecode('Meine+Freunde'),jdecode(''),'/22550/33536.html','true',[],''],
		['PAGE','30256',jdecode('Frische+K%F6pfe'),jdecode(''),'/22550/30256.html','true',[],''],
		['PAGE','24050',jdecode('B%FCcher'),jdecode(''),'/22550/24050.html','true',[],''],
		['PAGE','81457',jdecode('B%FCcher+%28Folgeseite%29'),jdecode(''),'/22550/81457.html','false',[],''],
		['PAGE','65825',jdecode('Logos%2FBuchcovers%2FIcons'),jdecode(''),'/22550/65825.html','true',[],''],
		['PAGE','16849',jdecode('Archiv'),jdecode(''),'/22550/16849.html','true',[],''],
		['PAGE','122271',jdecode('Refreshing+Area+Party+2009'),jdecode(''),'/22550/122271.html','true',[],''],
		['PAGE','121471',jdecode('Gabriella+Salas+in+Graz+16+01+2009'),jdecode(''),'/22550/121471.html','true',[],''],
		['PAGE','113071',jdecode('THE+NEW+YORK+SESSIONS+2008'),jdecode(''),'/22550/113071.html','true',[],''],
		['PAGE','106127',jdecode('Kulturfr%FChschoppen+04.05.2008'),jdecode(''),'/22550/106127.html','true',[],''],
		['PAGE','100707',jdecode('Bruck+an+der+Leitha+2008'),jdecode(''),'/22550/100707.html','true',[],''],
		['PAGE','99594',jdecode('Refreshing+Area+Party++2008'),jdecode(''),'/22550/99594.html','true',[],''],
		['PAGE','90981',jdecode('6.+Mai+2007'),jdecode(''),'/22550/90981.html','true',[],''],
		['PAGE','85181',jdecode('Spiegelgasse+2'),jdecode(''),'/22550/85181.html','true',[],''],
		['PAGE','59980',jdecode('Fr%FChlingsball+2006'),jdecode(''),'/22550/59980.html','true',[],''],
		['PAGE','61542',jdecode('Segelturn+2006'),jdecode(''),'/22550/61542.html','true',[],''],
		['PAGE','65030',jdecode('F%FCrth+2006'),jdecode(''),'/22550/65030.html','true',[],''],
		['PAGE','67256',jdecode('Augarten+2006'),jdecode(''),'/22550/67256.html','true',[],''],
		['PAGE','68452',jdecode('Der+Bertl-Veit+2006'),jdecode(''),'/22550/68452.html','true',[],''],
		['PAGE','70425',jdecode('Xenia+Hausner+2006'),jdecode(''),'/22550/70425.html','true',[],''],
		['PAGE','72350',jdecode('Beim+Kurier+2006'),jdecode(''),'/22550/72350.html','true',[],''],
		['PAGE','79034',jdecode('Atelierbesuch+%2F+Staudinger+2006'),jdecode(''),'/22550/79034.html','true',[],''],
		['PAGE','38716',jdecode('Meine+Freunde+%28Folgeseite%29'),jdecode(''),'/22550/38716.html','false',[],''],
		['PAGE','93113',jdecode('K%FCnstlerb%FCcher+%28Folgeseite%29'),jdecode(''),'/22550/93113.html','false',[],'']
	],''],
	['PAGE','62399',jdecode('PRESSESTIMMEN'),jdecode(''),'/62399.html','true',[],''],
	['PAGE','9254',jdecode('KONTAKT+%2F++IMPRESSUM'),jdecode(''),'/9254/index.html','true',[ 
		['PAGE','127871',jdecode('DESIGN'),jdecode(''),'/9254/127871.html','true',[],''],
		['PAGE','128771',jdecode('PFK'),jdecode(''),'/9254/128771.html','true',[],''],
		['PAGE','129871',jdecode('IDJEVAN'),jdecode(''),'/9254/129871.html','true',[],'']
	],''],
	['PAGE','134671',jdecode('CHMP+DIE+AGENTUR'),jdecode(''),'/134671.html','true',[],'']];
var siteelementCount=42;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            

