/* [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','4579',jdecode('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','47590',jdecode('Mitglieder'),jdecode(''),'/47590.html','true',[],''],
	['PAGE','47599',jdecode('Schottische+K%C3%B6nige'),jdecode(''),'/47599.html','true',[],''],
	['PAGE','47608',jdecode('Clan+Maskottchen+Simbi'),jdecode(''),'/47608.html','true',[],''],
	['PAGE','47617',jdecode('Schottische+Waffen'),jdecode(''),'/47617.html','true',[],''],
	['PAGE','47626',jdecode('Geschichte+des+Clan+Macleod'),jdecode(''),'/47626.html','true',[],''],
	['PAGE','47635',jdecode('Geschichte+Schottlands'),jdecode(''),'/47635.html','true',[],''],
	['PAGE','47644',jdecode('Lieder+Schottlands'),jdecode(''),'/47644.html','true',[],''],
	['PAGE','47653',jdecode('Schottische+Feste'),jdecode(''),'/47653.html','true',[],''],
	['PAGE','47662',jdecode('Zusammenkunft'),jdecode(''),'/47662.html','true',[],''],
	['PAGE','47671',jdecode('Thomas+der+Elb'),jdecode(''),'/47671.html','true',[],''],
	['PAGE','47680',jdecode('Tartan+Museum'),jdecode(''),'/47680.html','true',[],''],
	['PAGE','62501',jdecode('Mittelalterm%C3%A4rkte'),jdecode(''),'/62501.html','true',[],''],
	['PAGE','47689',jdecode('Link+und+Banner'),jdecode(''),'/47689.html','true',[],''],
	['PAGE','47698',jdecode('Elfen%2FDrachen'),jdecode(''),'/47698.html','true',[],''],
	['PAGE','48207',jdecode('Baumhoroskop'),jdecode(''),'/48207.html','true',[],''],
	['PAGE','25501',jdecode('Impressum'),jdecode(''),'/25501.html','true',[],''],
	['PAGE','14521',jdecode('Galerie'),jdecode(''),'/14521.html','true',[],''],
	['PAGE','14813',jdecode('G%C3%A4stebuch'),jdecode(''),'/14813/home.html','true',[ 
		['PAGE','14814',jdecode('Eintr%C3%A4ge'),jdecode(''),'/14813/14814.html','true',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='TOI_Interieur_02';
theSitetree.paletteFamily='E4E4E4';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33408';
theSitetree.graphicsetId='14270';
theSitetree.contentColor='F4F4F4';
theSitetree.contentBGColor='4B301E';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Interieur_02',
				paletteFamily: 	'E4E4E4',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33408',
				graphicsetId: 	'14270',
				contentColor: 	'F4F4F4',
				contentBGColor: '4B301E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Palatino Linotype, Book Antiqua, Palatino, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-497352']={
webappId:    '1501',
documentId:  '4579',
internalId:  '497352',
customField: '1501'
};
webappMappings['1007']=webappMappings['1007-1058587b71e']={
webappId:    '1007',
documentId:  '14521',
internalId:  '1058587b71e',
customField: 'g.10m2ofdov.81li49dnk4s2.6rn80'
};
webappMappings['1002']=webappMappings['1002-14813ATOIX0IN3FSU']={
webappId:    '1002',
documentId:  '14813',
internalId:  '14813ATOIX0IN3FSU',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-14813ATOIX0IN3FSU']={
webappId:    '1002',
documentId:  '14814',
internalId:  '14813ATOIX0IN3FSU',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20090828-195304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20080201-093506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14813',
internalId:  '',
customField: '20070321-150739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14814',
internalId:  '',
customField: '20040515-131805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47590',
internalId:  '',
customField: '20101203-151928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47599',
internalId:  '',
customField: '20070321-090201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47635',
internalId:  '',
customField: '20090323-111528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47626',
internalId:  '',
customField: '20090323-111544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47608',
internalId:  '',
customField: '20080827-191511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47617',
internalId:  '',
customField: '20070321-092452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47644',
internalId:  '',
customField: '20090323-111400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47653',
internalId:  '',
customField: '20090323-111316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47662',
internalId:  '',
customField: '20070323-132013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47671',
internalId:  '',
customField: '20070321-102316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47680',
internalId:  '',
customField: '20070321-204429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47689',
internalId:  '',
customField: '20090525-150046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47698',
internalId:  '',
customField: '20090325-090543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48207',
internalId:  '',
customField: '20070321-130255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62501',
internalId:  '',
customField: '20090323-111006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14521',
internalId:  '',
customField: '20080827-191631'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IN3FSU';
var companyName   = 'Clan-Pf%C3%A4lzer-Highlander';
var htmlTitle	  = 'Pf%C3%A4lzer-Highlander';
var metaKeywords  = 'Mittelalter%2CElfen%2CClans%2CSchottland%2Cclan+in+deutschland';
var metaContents  = 'Wir+sind+ein+Clan+der+indresse+am+Schottischen+mittelalter+hat..';
					                                                                    
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 */					                                                            

