/* [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','42358',jdecode('Startseite'),jdecode(''),'/42358.html','true',[],''],
	['PAGE','41531',jdecode('Allg.+Infos'),jdecode(''),'/41531.html','true',[],''],
	['PAGE','41393',jdecode('Herkules+Bad'),jdecode(''),'/41393.html','true',[],''],
	['PAGE','42492',jdecode('Nationalpark+Cerna+Tal'),jdecode(''),'/42492.html','true',[],''],
	['PAGE','41432',jdecode('Soimul+Pension'),jdecode(''),'/41432.html','true',[],''],
	['PAGE','41058',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41058.html','true',[],''],
	['PAGE','41004',jdecode('Geographisch+Lage'),jdecode(''),'/41004.html','true',[],''],
	['PAGE','41013',jdecode('Links'),jdecode(''),'/41013.html','true',[],''],
	['PAGE','46701',jdecode('Kontakt'),jdecode(''),'/46701.html','true',[],''],
	['PAGE','62901',jdecode('Impressum'),jdecode(''),'/62901.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='708B50';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='447';
theSitetree.graphicsetId='500';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Moonflight',
				paletteFamily: 	'708B50',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'447',
				graphicsetId: 	'500',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'476A1E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41432',
internalId:  '',
customField: '20101208-121539'
};
webappMappings['1007']=webappMappings['1007-11038df1221']={
webappId:    '1007',
documentId:  '42492',
internalId:  '11038df1221',
customField: 'g.120scrqno.g5hqln6tih.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42492',
internalId:  '',
customField: '20101026-155219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42358',
internalId:  '',
customField: '20101208-122644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46701',
internalId:  '',
customField: '20101226-192526'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '42358',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']=webappMappings['1008-24075505']={
webappId:    '1008',
documentId:  '46701',
internalId:  '24075505',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41531',
internalId:  '',
customField: '20111023-092103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41393',
internalId:  '',
customField: '20101208-121144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41058',
internalId:  '',
customField: '20101208-113117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41013',
internalId:  '',
customField: '20110417-122703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41004',
internalId:  '',
customField: '20101208-121846'
};
webappMappings['7090']=webappMappings['7090-7348']={
webappId:    '7090',
documentId:  '41013',
internalId:  '7348',
customField: 'type:rss-2.0;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62901',
internalId:  '',
customField: '20101208-125335'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7RANQ';
var companyName   = 'Karpaten.Cerna+Tal';
var htmlTitle	  = 'Karpaten.Cerna+Tal';
var metaKeywords  = 'hercules+bad%2C+baile+herculane%2C+reise+hercules+bad%2C+cerna+tal%2C+nationalpark+cerna+tal%2C+%C3%BCbernachtung%2C+wander%2C+kletter%2C+pension%2C+karte%2Cturism%2C+herculane%2Ckarpaten';
var metaContents  = 'Herzlich+Willkommen%2C+Ihr+Abenteuer+beginnt+jetzt%21.+Der+westliche+Wander+und+Kletterparadies+Rum%C3%A4niens..+Baile+Herculane+-++Nationalpark+Cerna+Tal+.++Anreise+%C2%B7+Veranstaltungen+%C2%B7+';
					                                                                    
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 */					                                                            

