/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','68801',jdecode('Startseite'),jdecode(''),'/68801.html','true',[],''],
	['PAGE','242101',jdecode('Modellbahn+Shop'),jdecode(''),'/242101.html','true',[],''],
	['PAGE','462001',jdecode('Feldbahn+von+Busch'),jdecode(''),'/462001.html','false',[],''],
	['PAGE','445401',jdecode('Rail+Com+von+Lenz'),jdecode(''),'/445401.html','true',[],''],
	['PAGE','403301',jdecode('Modell++Bahnhofspl%C3%A4ne'),jdecode(''),'/403301.html','true',[],''],
	['PAGE','456701',jdecode('Neuheiten+2012'),jdecode(''),'/456701.html','true',[],''],
	['PAGE','460301',jdecode('Ausstellungen'),jdecode(''),'/460301.html','true',[],''],
	['PAGE','427701',jdecode('125+Jahre+HSB'),jdecode(''),'/427701.html','true',[],''],
	['PAGE','446401',jdecode('Ideen+Tip+Wagenwerk'),jdecode(''),'/446401.html','true',[],''],
	['PAGE','428201',jdecode('Modellbahn+Winter'),jdecode(''),'/428201.html','true',[],''],
	['PAGE','313301',jdecode('Kleinigkeiten'),jdecode(''),'/313301.html','true',[],''],
	['PAGE','333501',jdecode('Basteltip'),jdecode(''),'/333501.html','true',[],''],
	['PAGE','438001',jdecode('Bildgalerie+2012'),jdecode(''),'/438001.html','true',[],''],
	['PAGE','195901',jdecode('Bildgalerie+++2011'),jdecode(''),'/195901.html','true',[],''],
	['PAGE','446001',jdecode('Literatur+Tip'),jdecode(''),'/446001.html','true',[],''],
	['PAGE','73901',jdecode('Link+Hersteller'),jdecode(''),'/73901.html','true',[],''],
	['PAGE','73822',jdecode('Verlinkungen'),jdecode(''),'/73822.html','true',[],''],
	['PAGE','40596',jdecode('%C3%96ffnungszeiten+%26+Kontakt'),jdecode(''),'/40596.html','true',[],''],
	['PAGE','40654',jdecode('Anfahrt'),jdecode(''),'/40654.html','true',[],''],
	['PAGE','40587',jdecode('AGB+%2F+Impressum'),jdecode(''),'/40587.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Toronto';
theSitetree.paletteFamily='3358C6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16882';
theSitetree.graphicsetId='12318';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3358C6';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Toronto',
				paletteFamily: 	'3358C6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16882',
				graphicsetId: 	'12318',
				contentColor: 	'FFFFFF',
				contentBGColor: '3358C6',
				a_color: 		'3358C6',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '68801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '403301',
internalId:  '',
customField: '20120123-100706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460301',
internalId:  '',
customField: '20120206-151028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '456701',
internalId:  '',
customField: '20120206-154938'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40654',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40654',
internalId:  '',
customField: '20101006-132911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40587',
internalId:  '',
customField: '20111024-114456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40596',
internalId:  '',
customField: '20120130-223048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '313301',
internalId:  '',
customField: '20110901-093002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '333501',
internalId:  '',
customField: '20110831-162427'
};
webappMappings['1008']=webappMappings['1008-61697870']={
webappId:    '1008',
documentId:  '40596',
internalId:  '61697870',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '446401',
internalId:  '',
customField: '20120125-134758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242101',
internalId:  '',
customField: '20120209-202305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73822',
internalId:  '',
customField: '20100926-170731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68801',
internalId:  '',
customField: '20120209-202333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73901',
internalId:  '',
customField: '20120116-195051'
};
webappMappings['1501']=webappMappings['1501-63248183']={
webappId:    '1501',
documentId:  '68801',
internalId:  '63248183',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '445401',
internalId:  '',
customField: '20120116-201543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '446001',
internalId:  '',
customField: '20120117-111320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '428201',
internalId:  '',
customField: '20111207-194320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '427701',
internalId:  '',
customField: '20111204-095641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '438001',
internalId:  '',
customField: '20120202-194049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '462001',
internalId:  '',
customField: '20120209-103006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195901',
internalId:  '',
customField: '20120101-105000'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IROPUR';
var companyName   = 'Saalfelder+Lokschuppen';
var htmlTitle	  = 'Saalfelder+Lokschuppen+-+Modelleisenbahn+%26+Zubeh%C3%B6r';
var metaKeywords  = 'Modelleisenbahn%2C+HO%3BTT%2C+HOe%2CHOm%2C+Gartenbahn%2C+IIm%2C+Modellautos%2C+Geb%C3%A4udemodelle%2C+Modelleisenbahn%2C+Modellbahnzubeh%C3%B6r%2C+Figuren%2C+Sonderangebote%2C+Geiz%2C+Billig%2C+Sonderangebote%2CPiko%2C+Roco%2C+Fleischmann%2C+Busch%2C+Viessmann%2C+Noch%2C+Preiser%2C+Auhagen%2C+Tillig%2C+TT-Club%2C+Mikro+L%C3%A4nder+Club%2C+S.e.S.%2C+Modelltec%2C+Ostalgie%2C+Deutsche+Reichsbahn%2C+Deutsche+Bundesbahn%2C+Ausl%C3%A4ndische+Bahnen%2C+%C3%96BB%2C+CD%2C+DRG%2C+Ostalgie%2C+Trabant%2C+W+50%2C+Diesellok%2C+Dampflok%2C+E-Lok%2C+Triebwagen%2C+Bahnh%C3%B6fe%2C+Signale%2C+Elektronik%2C+Digital%2C+Startset%2C+Hobby%2C+Billige+Preise';
var metaContents  = 'Willkommen+im+E-Shop+des+Saalfelder+Lokschuppen%2C+Modelleisenbahn++Zubeh%C3%B6r%2C+Bahnhofstrasse+10%2C+D-+07318+Saalfeld+%28Saale%29';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            

