/* [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','40967',jdecode('Home'),jdecode(''),'/40967.html','true',[],''],
	['PAGE','40987',jdecode('Anreise'),jdecode(''),'/40987.html','true',[],''],
	['PAGE','40996',jdecode('Das+Ferienhaus+Nr.48'),jdecode(''),'/40996/home.html','true',[ 
		['PAGE','41005',jdecode('Innenansicht'),jdecode(''),'/40996/41005.html','true',[],''],
		['PAGE','41014',jdecode('Au%C3%9Fenansicht'),jdecode(''),'/40996/41014.html','true',[],'']
	],''],
	['PAGE','42073',jdecode('Freizeit+und+Ausflugstips'),jdecode(''),'/42073.html','false',[],''],
	['PAGE','42182',jdecode('Fotoimpressionen'),jdecode(''),'/42182.html','true',[],''],
	['PAGE','41023',jdecode('Preise+und+buchen'),jdecode(''),'/41023/home.html','true',[ 
		['PAGE','42392',jdecode('befreundete+Vermieter'),jdecode(''),'/41023/42392.html','true',[],'']
	],''],
	['PAGE','41050',jdecode('Impressum'),jdecode(''),'/41050.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Clearline';
theSitetree.paletteFamily='C7C6C5';
theSitetree.keyvisualId='3290';
theSitetree.keyvisualName='kv_3290.jpg';
theSitetree.fontsetId='10589';
theSitetree.graphicsetId='10718';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Clearline',
				paletteFamily: 	'C7C6C5',
				keyvisualId: 	'3290',
				keyvisualName: 	'kv_3290.jpg',
				fontsetId: 		'10589',
				graphicsetId: 	'10718',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'C7C6C5',
				e_color: 		'989696',
				f_color: 		'989696',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40967',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40967',
internalId:  '',
customField: '20090616-133353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40987',
internalId:  '',
customField: '20080510-092135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42073',
internalId:  '',
customField: '20070405-074507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40996',
internalId:  '',
customField: '20070708-125856'
};
webappMappings['1007']=webappMappings['1007-113c389c41c']={
webappId:    '1007',
documentId:  '42182',
internalId:  '113c389c41c',
customField: 'g.12f1ocm88.hu0gc3sahn.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41050',
internalId:  '',
customField: '20091029-092021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41005',
internalId:  '',
customField: '20091029-091914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41014',
internalId:  '',
customField: '20080322-103957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41023',
internalId:  '',
customField: '20090616-133010'
};
webappMappings['1008']=webappMappings['1008-35983750']={
webappId:    '1008',
documentId:  '41023',
internalId:  '35983750',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42182',
internalId:  '',
customField: '20070720-184441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42392',
internalId:  '',
customField: '20090516-101843'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7BXVU';
var companyName   = 'Stahlbrode+-+im+Herzen+Vorpommers';
var htmlTitle	  = 'Urlaub+im+Herzen+Vorpommerns';
var metaKeywords  = 'ostsee+stahlbrode+ferienhaus+r%C3%BCgen+usedom+zingst+dar%C3%9F+stralsund+greifswald+mecklenburg+vorpommern+bungalow+urlaub+ferien+';
var metaContents  = 'Urlaub+im+komfortablen+Ferienhaus+am+Strelasund+mit+eigenem+Garten.';
					                                                                    
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 */					                                                            

