/* [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/home.html','true',[ 
		['PAGE','42525',jdecode('Impressum'),jdecode(''),'/44/42525.html','true',[],''],
		['PAGE','42401',jdecode('G%C3%A4stebuch'),jdecode(''),'/44/42401.html','true',[],''],
		['PAGE','42400',jdecode('Eintr%C3%A4ge'),jdecode(''),'/44/42400.html','true',[],'']
	],''],
	['PAGE','41256',jdecode('Anreise'),jdecode(''),'/41256.html','true',[],''],
	['PAGE','41274',jdecode('Fahrr%C3%A4der+%26+Laden'),jdecode(''),'/41274.html','true',[],''],
	['PAGE','41649',jdecode('Unterk%C3%BCnfte'),jdecode(''),'/41649/home.html','true',[ 
		['PAGE','49901',jdecode('Bilder+Bungalow'),jdecode(''),'/41649/49901.html','false',[],''],
		['PAGE','50901',jdecode('Bilder+Fewo+S'),jdecode(''),'/41649/50901.html','false',[],'']
	],''],
	['PAGE','43059',jdecode('Insel-Impressionen'),jdecode(''),'/43059.html','true',[],''],
	['PAGE','41292',jdecode('Links'),jdecode(''),'/41292.html','true',[],''],
	['PAGE','45005',jdecode('Shop'),jdecode(''),'/45005/home.html','false',[ 
		['PAGE','48601',jdecode('Ansichtskarten'),jdecode(''),'/45005/48601.html','true',[],'']
	],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2251';
theSitetree.keyvisualName='reise1.jpg';
theSitetree.fontsetId='365';
theSitetree.graphicsetId='415';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='93A6CC';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2251',
				keyvisualName: 	'reise1.jpg',
				fontsetId: 		'365',
				graphicsetId: 	'415',
				contentColor: 	'FFFFFF',
				contentBGColor: '93A6CC',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-42401atoix0i71b61']={
webappId:    '1002',
documentId:  '42401',
internalId:  '42401atoix0i71b61',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-42401atoix0i71b61']={
webappId:    '1002',
documentId:  '42400',
internalId:  '42401atoix0i71b61',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41649',
internalId:  '',
customField: '20120123-103104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20110408-215645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42525',
internalId:  '',
customField: '20081011-093609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41256',
internalId:  '',
customField: '20080525-185718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41274',
internalId:  '',
customField: '20120123-102834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41292',
internalId:  '',
customField: '20111227-185944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20060427-131549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42400',
internalId:  '',
customField: '20060427-131549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50901',
internalId:  '',
customField: '20110408-213957'
};
webappMappings['1007']=webappMappings['1007-10fb0d4753f']={
webappId:    '1007',
documentId:  '43059',
internalId:  '10fb0d4753f',
customField: 'g.11uoc4btd.98emu4jgr5.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43059',
internalId:  '',
customField: '20070510-130248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45005',
internalId:  '',
customField: '20110219-232007'
};
webappMappings['1007']=webappMappings['1007-12e40077ff1']={
webappId:    '1007',
documentId:  '48601',
internalId:  '12e40077ff1',
customField: 'g.15p0071d8.2g8rdvhmb7s.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48601',
internalId:  '',
customField: '20110219-232556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49901',
internalId:  '',
customField: '20110319-224106'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I71B61';
var companyName   = 'Grieben+auf+Hiddensee';
var htmlTitle	  = 'Grieben+auf+Hiddensee';
var metaKeywords  = 'Hiddensee%2C+Grieben%2C+Wenzlaff%2C+Insel%2C+Grieben+oder+Hiddensee%2C+Quartiere+';
var metaContents  = 'Willkommen+in+Grieben%2C+dem+kleinsten+und+%C3%A4ltesten+Ort+der+Insel+Hiddensee.';
					                                                                    
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 */					                                                            

