/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','40508',jdecode('Neue+Harth'),jdecode(''),'/40508.html','true',[],''],
	['PAGE','49001',jdecode('Tagfalter'),jdecode(''),'/49001.html','true',[],''],
	['PAGE','40560',jdecode('Nachtfalter'),jdecode(''),'/40560.html','true',[],''],
	['PAGE','64901',jdecode('Bernina+Express'),jdecode(''),'/64901.html','true',[],''],
	['PAGE','109401',jdecode('Glacier+Express'),jdecode(''),'/109401.html','true',[],''],
	['PAGE','136801',jdecode('Gornergrat+Bahn'),jdecode(''),'/136801.html','true',[],''],
	['PAGE','89901',jdecode('Malediven'),jdecode(''),'/89901.html','true',[],''],
	['PAGE','42461',jdecode('Links'),jdecode(''),'/42461.html','true',[],''],
	['PAGE','41750',jdecode('Impressum'),jdecode(''),'/41750.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='174';
theSitetree.graphicsetId='206';
theSitetree.contentColor='FF0000';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Orbit',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'174',
				graphicsetId: 	'206',
				contentColor: 	'FF0000',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89901',
internalId:  '',
customField: '20070330-133841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64901',
internalId:  '',
customField: '20071002-133721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109401',
internalId:  '',
customField: '20070119-121507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136801',
internalId:  '',
customField: '20070202-191837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41750',
internalId:  '',
customField: '20070227-191153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42461',
internalId:  '',
customField: '20101015-181452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40560',
internalId:  '',
customField: '20070119-121329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20070119-121245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40508',
internalId:  '',
customField: '20070126-103042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20101104-191647'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7C80I';
var companyName   = 'Willkommen+in+refa-world+';
var htmlTitle	  = 'monge.de+-+Faulwasser%C2%B4s+Homepage';
var metaKeywords  = 'Malediven%2C+Neue+Harth+%2C+Markkleeberg%2C+Schmetterlinge%2CTagfalter%2C+Nachtfalter%2C+Schweizer+Bahnen%2C+Bernina+Express%2C+Glacier+Express%2C+Rh%C3%A4tische+Bahn%2C+Matterhorn+Gotthard+Bahn%2C+Online-Shop.';
var metaContents  = 'Informationen+und+Bilder+rund+um+die+Themen%3A+Malediven%2C+Neue+Harth+bei+Markkleeberg%2C+Schmetterlinge+-Tagfalter%2C+Nachtfalter-+und+Schweizer+Bahnen+-Bernina+Express%2C+Glacier+Express%2C+Gornergratbahn-.++';
					                                                                    
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 */					                                                            

