/* [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','4558',jdecode('Startseite'),jdecode(''),'/4558.html','true',[],''],
	['PAGE','5518',jdecode('Service'),jdecode(''),'/5518.html','true',[],''],
	['PAGE','21302',jdecode('Produkte'),jdecode(''),'/21302/index.html','true',[ 
		['PAGE','5932',jdecode('Sonnenschutzfolien'),jdecode(''),'/21302/5932.html','true',[],''],
		['PAGE','20029',jdecode('Folien+f%FCr+Kunststoffe'),jdecode(''),'/21302/20029.html','true',[],''],
		['PAGE','67399',jdecode('Sichtschutzfolien'),jdecode(''),'/21302/67399.html','true',[],''],
		['PAGE','20056',jdecode('UV-Schutzfolie'),jdecode(''),'/21302/20056.html','true',[],''],
		['PAGE','41001',jdecode('Splitterschutzfolien'),jdecode(''),'/21302/41001.html','true',[],''],
		['PAGE','20083',jdecode('Weitere+Folien'),jdecode(''),'/21302/20083.html','true',[],''],
		['PAGE','20487',jdecode('Blendschutzrollos'),jdecode(''),'/21302/20487.html','true',[],''],
		['PAGE','67430',jdecode('Lamellen'),jdecode(''),'/21302/67430.html','true',[],'']
	],''],
	['PAGE','60639',jdecode('Bildergalerie'),jdecode(''),'/60639.html','true',[],''],
	['PAGE','67461',jdecode('Referenzliste'),jdecode(''),'/67461/index.html','true',[ 
		['PAGE','49401',jdecode('Referenzliste+f%FCr+Folien'),jdecode(''),'/67461/49401.html','true',[],''],
		['PAGE','49432',jdecode('Referenzen+f%FCr+Rollos'),jdecode(''),'/67461/49432.html','true',[],''],
		['PAGE','49301',jdecode('Referenzliste+f%FCr+Lamellen'),jdecode(''),'/67461/49301.html','true',[],'']
	],''],
	['PAGE','7603',jdecode('Impressum'),jdecode(''),'/7603.html','true',[],''],
	['PAGE','67239',jdecode('Online-Shop'),jdecode(''),'/67239.html','true',[],''],
	['PAGE','5599',jdecode('Kontakt'),jdecode(''),'/5599/index.html','true',[ 
		['PAGE','39605',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/5599/39605.html','false',[],'']
	],''],
	['PAGE','39801',jdecode('Jobs'),jdecode(''),'/39801/index.html','true',[ 
		['PAGE','40104',jdecode('Kontakt-Formular'),jdecode(''),'/39801/40104/index.html','true',[ 
			['PAGE','40408',jdecode('Kontakt-Formular+%28Folgeseite%29'),jdecode(''),'/39801/40104/40408.html','false',[],'']
		],'']
	],''],
	['PAGE','35202',jdecode('Informationen'),jdecode(''),'/35202/index.html','true',[ 
		['PAGE','10602',jdecode('Wissenswertes'),jdecode(''),'/35202/10602.html','true',[],''],
		['PAGE','5653',jdecode('Fragen+%26+Antworten'),jdecode(''),'/35202/5653.html','true',[],'']
	],''],
	['PAGE','5626',jdecode('Technische+Daten'),jdecode(''),'/5626/index.html','true',[ 
		['PAGE','13002',jdecode('Rollofolien'),jdecode(''),'/5626/13002.html','true',[],''],
		['PAGE','13029',jdecode('Flachglasfolien'),jdecode(''),'/5626/13029.html','true',[],'']
	],''],
	['PAGE','13302',jdecode('%DCbersicht'),jdecode(''),'/13302.html','true',[],''],
	['PAGE','5986',jdecode('Weitere+Produkte'),jdecode(''),'/5986.html','true',[],''],
	['PAGE','5905',jdecode('Kassetten-Rollos'),jdecode(''),'/5905.html','true',[],''],
	['PAGE','20514',jdecode('Rollo+ohne+Kassette'),jdecode(''),'/20514.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            

