/* [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','9128',jdecode('%DCber+uns'),jdecode(''),'/9128.html','true',[],''],
	['PAGE','9155',jdecode('Service'),jdecode(''),'/9155.html','true',[],''],
	['PAGE','9182',jdecode('News'),jdecode(''),'/9182/index.html','true',[ 
		['PAGE','50907',jdecode('Finnlines'),jdecode(''),'/9182/50907.html','true',[],''],
		['PAGE','51724',jdecode('Fantasy-Cruise'),jdecode(''),'/9182/51724/index.html','true',[ 
			['PAGE','52109',jdecode('Fantasy-Cruise+%28Folgeseite%29'),jdecode(''),'/9182/51724/52109.html','false',[],'']
		],'']
	],''],
	['PAGE','52812',jdecode('F%E4hrverbindungen'),jdecode(''),'/52812.html','true',[],''],
	['PAGE','52844',jdecode('Color-Line'),jdecode(''),'/52844/index.html','true',[ 
		['PAGE','54703',jdecode('Kiel+-+Oslo'),jdecode(''),'/52844/54703.html','true',[],''],
		['PAGE','54765',jdecode('Larvik-Hirtshals'),jdecode(''),'/52844/54765.html','true',[],'']
	],''],
	['PAGE','52875',jdecode('Stena+Line'),jdecode(''),'/52875/index.html','true',[ 
		['PAGE','54965',jdecode('Kiel-G%F6teborg'),jdecode(''),'/52875/54965.html','true',[],''],
		['PAGE','54996',jdecode('Fr.-havn-G%F6teborg'),jdecode(''),'/52875/54996.html','true',[],''],
		['PAGE','55058',jdecode('Grena+-+Varberg'),jdecode(''),'/52875/55058.html','true',[],''],
		['PAGE','55089',jdecode('Gro%DFbritannien+'),jdecode(''),'/52875/55089.html','true',[],'']
	],''],
	['PAGE','52968',jdecode('Scandlines'),jdecode(''),'/52968/index.html','true',[ 
		['PAGE','55533',jdecode('Puttgarden-R%F6dby'),jdecode(''),'/52968/55533.html','true',[],''],
		['PAGE','56639',jdecode('Rostock-Gedser'),jdecode(''),'/52968/56639.html','true',[],''],
		['PAGE','55564',jdecode('Rostock-Trelleborg'),jdecode(''),'/52968/55564.html','true',[],''],
		['PAGE','55595',jdecode('Sassnitz-Trelleborg'),jdecode(''),'/52968/55595.html','true',[],''],
		['PAGE','55626',jdecode('Scandlines-Routen'),jdecode(''),'/52968/55626.html','true',[],'']
	],''],
	['PAGE','52906',jdecode('TT-Line'),jdecode(''),'/52906/index.html','true',[ 
		['PAGE','55151',jdecode('Travem%FCnde-Trelleborg'),jdecode(''),'/52906/55151.html','true',[],''],
		['PAGE','55182',jdecode('Rostock-Trelleborg'),jdecode(''),'/52906/55182.html','true',[],'']
	],''],
	['PAGE','52999',jdecode('Superfast-Ferries'),jdecode(''),'/52999/index.html','true',[ 
		['PAGE','55471',jdecode('Rostock+-+Hanko'),jdecode(''),'/52999/55471.html','true',[],'']
	],''],
	['PAGE','55120',jdecode('Finnlines'),jdecode(''),'/55120/index.html','true',[ 
		['PAGE','55502',jdecode('Travem%FCnde-Helsinki'),jdecode(''),'/55120/55502.html','true',[],'']
	],''],
	['PAGE','53507',jdecode('Silja+Line'),jdecode(''),'/53507/index.html','true',[ 
		['PAGE','55244',jdecode('Stockholm-Turku'),jdecode(''),'/53507/55244.html','true',[],''],
		['PAGE','55275',jdecode('Stockholm-Helsinki'),jdecode(''),'/53507/55275.html','true',[],'']
	],''],
	['PAGE','53538',jdecode('Viking+Line'),jdecode(''),'/53538/index.html','true',[ 
		['PAGE','55306',jdecode('Stockholm-Helsinki'),jdecode(''),'/53538/55306.html','true',[],''],
		['PAGE','55337',jdecode('Stockholm+-+Turku'),jdecode(''),'/53538/55337.html','true',[],'']
	],''],
	['PAGE','53030',jdecode('Rundreisen+im+Norden'),jdecode(''),'/53030/index.html','true',[ 
		['PAGE','53061',jdecode('Fjordnorwegen'),jdecode(''),'/53030/53061.html','true',[],''],
		['PAGE','53092',jdecode('Hauptst%E4dte'),jdecode(''),'/53030/53092.html','true',[],''],
		['PAGE','55671',jdecode('Lofoten'),jdecode(''),'/53030/55671.html','true',[],''],
		['PAGE','53123',jdecode('Eisenbahnrundreise'),jdecode(''),'/53030/53123.html','true',[],'']
	],''],
	['PAGE','9236',jdecode('Kontakt'),jdecode(''),'/9236/index.html','true',[ 
		['PAGE','46270',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/9236/46270.html','false',[],'']
	],''],
	['PAGE','51009',jdecode('Fotoalbum'),jdecode(''),'/51009/index.html','true',[ 
		['PAGE','53724',jdecode('Norwegen'),jdecode(''),'/51009/53724.html','true',[],''],
		['PAGE','53759',jdecode('D%E4nemark'),jdecode(''),'/51009/53759.html','true',[],''],
		['PAGE','53794',jdecode('Schweden'),jdecode(''),'/51009/53794.html','true',[],''],
		['PAGE','53829',jdecode('Finnland'),jdecode(''),'/51009/53829.html','true',[],'']
	],''],
	['PAGE','50669',jdecode('Forum'),jdecode(''),'/50669.html','true',[],''],
	['PAGE','14041',jdecode('G%E4stebuch'),jdecode(''),'/14041/index.html','true',[ 
		['PAGE','14042',jdecode('Eintr%E4ge'),jdecode(''),'/14041/14042.html','true',[],'']
	],''],
	['PAGE','58525',jdecode('Kontakt'),jdecode(''),'/58525/index.html','true',[ 
		['PAGE','58882',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/58525/58882.html','false',[],'']
	],''],
	['PAGE','58552',jdecode('AGB%B4s'),jdecode(''),'/58552.html','true',[],'']];
var siteelementCount=53;
theSitetree.topTemplateName='Square';
					                                                                    
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 */					                                                            

