/* [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','4201',jdecode('Home'),jdecode(''),'/4201.html','true',[],''],
	['PAGE','4252',jdecode('About+Kaedrich'),jdecode(''),'/4252.html','true',[],''],
	['PAGE','28423',jdecode('Events'),jdecode(''),'/28423.html','true',[],''],
	['PAGE','22323',jdecode('Transformation'),jdecode(''),'/22323.html','true',[],''],
	['PAGE','4273',jdecode('Articles'),jdecode(''),'/4273/index.html','true',[ 
		['PAGE','21723',jdecode('Runes+Today'),jdecode(''),'/4273/21723.html','true',[],''],
		['PAGE','23723',jdecode('Shape+of+Things...'),jdecode(''),'/4273/23723.html','true',[],'']
	],''],
	['PAGE','27823',jdecode('Blog'),jdecode(''),'/27823.html','true',[],''],
	['PAGE','23023',jdecode('Videos'),jdecode(''),'/23023.html','true',[],''],
	['PAGE','4315',jdecode('Links'),jdecode(''),'/4315.html','true',[],''],
	['PAGE','4336',jdecode('Contact'),jdecode(''),'/4336.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='AAA0CD';
theSitetree.keyvisualId='1733';
theSitetree.keyvisualName='vertrag.jpg';
theSitetree.fontsetId='301';
theSitetree.graphicsetId='346';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='AAA0CD';
var theTemplate={
				name: 			'Architekt',
				paletteFamily: 	'AAA0CD',
				keyvisualId: 	'1733',
				keyvisualName: 	'vertrag.jpg',
				fontsetId: 		'301',
				graphicsetId: 	'346',
				contentColor: 	'000066',
				contentBGColor: 'AAA0CD',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'AAA0CD',
				b_color: 		'3E3361',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20080414-232102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4252',
internalId:  '',
customField: '20080414-232704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21723',
internalId:  '',
customField: '20080414-223237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4273',
internalId:  '',
customField: '20080415-112958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4315',
internalId:  '',
customField: '20080627-120313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4336',
internalId:  '',
customField: '20080414-214614'
};
webappMappings['7008']=webappMappings['7008-2501']={
webappId:    '7008',
documentId:  '4336',
internalId:  '2501',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22323',
internalId:  '',
customField: '20080415-225044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23023',
internalId:  '',
customField: '20080415-225137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23723',
internalId:  '',
customField: '20080415-112858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28423',
internalId:  '',
customField: '20080727-170403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27823',
internalId:  '',
customField: '20080727-163510'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2OZ5';
var companyName   = '+++++++++++Among+the+Runes';
var htmlTitle	  = 'Among+the+Runes';
var metaKeywords  = 'Kaedrich+Olsen%2C+Runes%2C+Transformation%2C+Success%2C+Mantra%2C+Galdr%2C+Galrdathula%2C+Rune%2C+Runic%2C+Rune+Lore%2C+mysteries%2C+rune+magick%2C+magic%2C+rune+magic%2C+runelore%2C+asatru%2C+Northern+Tradition%2C+pagan%2C+heathen%2C+heathenry%2C+asgard%2C+yggdrasil%2C+viking%2C+norse%2C+odin%2C+futhark%2C+futhork%2C+fu%C3%BEark%2C+fu%C3%BEorc%2C+divination%2C+occult%2C+magic%2C+magick%2C+transformation%2C+manifestation%2C+The+runes+of+the+Elder+Futhark%2C+uses+in+writing%2C+divination%2C+magic+during+the+Norse+Viking+world%2C+charms%2C+history%2C+mythology%2C+edda%2C+saga%2C+Scandinavia%2C+nornsmeta+name%3Dverify-v1+content%3D%2BiJuxi8QnpZXamkeBIDOqDl9ZA4FOhjLU7n5aG24md4%3D+%2F';
var metaContents  = 'Kaedrich+Olsen+and+the+Runes+for+Transformation.+Learn+more+about+Kaedrich+and+the+unique+way+he+helps+people+acheive+their+ideal+lives+using+the+power+of+the+runes.';
					                                                                    
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 */					                                                            
