/* [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','18401',jdecode('Home'),jdecode(''),'/18401.html','true',[],''],
	['PAGE','18417',jdecode('Kopfbedeckungen+und+Gewandung'),jdecode(''),'/18417/home.html','true',[ 
		['PAGE','25306',jdecode('Mittelalter'),jdecode(''),'/18417/25306.html','true',[],''],
		['PAGE','25311',jdecode('Renaissance'),jdecode(''),'/18417/25311.html','true',[],''],
		['PAGE','25316',jdecode('Andere+Epochen%2FFantasy'),jdecode(''),'/18417/25316.html','true',[],''],
		['PAGE','18407',jdecode('Ich+%C3%BCber+mich'),jdecode(''),'/18417/18407.html','true',[],'']
	],''],
	['PAGE','33514',jdecode('Galerie%2FReferenzen'),jdecode(''),'/33514.html','true',[],''],
	['PAGE','25326',jdecode('Verkauf%2FVerleih%2FTermine'),jdecode(''),'/25326.html','true',[],''],
	['PAGE','18422',jdecode('Kontakt%2FImpressum'),jdecode(''),'/18422.html','true',[],''],
	['PAGE','21101',jdecode('Links'),jdecode(''),'/21101.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Inspiration';
theSitetree.paletteFamily='A99797';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='104';
theSitetree.graphicsetId='124';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='A99797';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Inspiration',
				paletteFamily: 	'A99797',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'104',
				graphicsetId: 	'124',
				contentColor: 	'FFFFFF',
				contentBGColor: 'A99797',
				a_color: 		'A99797',
				b_color: 		'C5BAB6',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-107338ed18f']={
webappId:    '1007',
documentId:  '33514',
internalId:  '107338ed18f',
customField: 'g.10sporln5.p0264u7jkc.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20090326-092345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25326',
internalId:  '',
customField: '20090326-092453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18417',
internalId:  '',
customField: '20080310-194353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25311',
internalId:  '',
customField: '20080801-100512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25306',
internalId:  '',
customField: '20080801-100923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25316',
internalId:  '',
customField: '20090308-165447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33514',
internalId:  '',
customField: '20070914-172550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18407',
internalId:  '',
customField: '20051027-205658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18422',
internalId:  '',
customField: '20090121-101826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20090326-092035'
};
var canonHostname = 'cfawrk10.aul.t-online.de';
var accountId     = 'ATOIX0IN2IWR';
var companyName   = 'Atelier+Hennin';
var htmlTitle	  = 'Atelier+Hennin-+Textile+Kunst';
var metaKeywords  = 'Ilona+Bernstetter%2C+Der+Hennin%2C+Atelier+Hennin%2C+Historische+Kopfbedeckungen%2C+Kopfbedeckung%2C+Haube%2C+M%C3%BCtze%2C+M%C3%BCtzen%2C+Kappe%2C+Kappen%2C+Hauben%2C+Kopfschmuck%2C+Kleid%2C+Gewandung%2C+Balzo%2C++French+Hood%2C+Tudorhaube%2C+Stuarthaube%2C+Mittelalter%2C+Renaissance%2C+Fantasy%2C+Gothic%2C+Larp%2C+Reenactment%2C+M%C3%A4rchen%2C+Theater%2C+Film%2C+Fernsehen%2C+Kost%C3%BCmausstattung%2C+Anfertigung%2C+Verleih%2C+Verkauf%2C+Kruseler';
var metaContents  = 'Kopfbedeckungen+und+Gewandung+nach+historischen+Vorbildern+sowie+f%C3%BCr+LARP+und+Fantasy.+';
					                                                                    
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 */					                                                            
