/* [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','44',jdecode('Home'),jdecode(''),'/44.html','true',[],''],
	['PAGE','44090',jdecode('%C3%9Cber+mich'),jdecode(''),'/44090.html','true',[],''],
	['PAGE','44513',jdecode('Historischer+Roman'),jdecode(''),'/44513.html','true',[],''],
	['PAGE','45662',jdecode('Jugendbuch%2C+historisch'),jdecode(''),'/45662.html','true',[],''],
	['PAGE','48801',jdecode('M%C3%A4dchenroman'),jdecode(''),'/48801.html','true',[],''],
	['PAGE','44035',jdecode('Jugendroman'),jdecode(''),'/44035.html','true',[],''],
	['PAGE','46027',jdecode('Anthologien'),jdecode(''),'/46027.html','true',[],''],
	['PAGE','43728',jdecode('Kontakt'),jdecode(''),'/43728.html','true',[],''],
	['PAGE','43626',jdecode('G%C3%A4stebuch'),jdecode(''),'/43626/home.html','true',[ 
		['PAGE','43625',jdecode('Eintr%C3%A4ge'),jdecode(''),'/43626/43625.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Hochzeit12';
theSitetree.paletteFamily='86A4CC';
theSitetree.keyvisualId='8710';
theSitetree.keyvisualName='kv_8710.jpg';
theSitetree.fontsetId='17821';
theSitetree.graphicsetId='12612';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='86A4CC';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Hochzeit12',
				paletteFamily: 	'86A4CC',
				keyvisualId: 	'8710',
				keyvisualName: 	'kv_8710.jpg',
				fontsetId: 		'17821',
				graphicsetId: 	'12612',
				contentColor: 	'FFFFFF',
				contentBGColor: '86A4CC',
				a_color: 		'000000',
				b_color: 		'fbd690',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-43626atoix0i7k0cy']={
webappId:    '1002',
documentId:  '43626',
internalId:  '43626atoix0i7k0cy',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-43626atoix0i7k0cy']={
webappId:    '1002',
documentId:  '43625',
internalId:  '43626atoix0i7k0cy',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20111116-192210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44035',
internalId:  '',
customField: '20111027-142734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45662',
internalId:  '',
customField: '20111027-100404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44090',
internalId:  '',
customField: '20111026-111256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44513',
internalId:  '',
customField: '20111116-192642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43728',
internalId:  '',
customField: '20111027-144852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43626',
internalId:  '',
customField: '20111027-104324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43625',
internalId:  '',
customField: '20060621-085427'
};
webappMappings['1008']=webappMappings['1008-73813611']={
webappId:    '1008',
documentId:  '43728',
internalId:  '73813611',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46027',
internalId:  '',
customField: '20111027-101508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48801',
internalId:  '',
customField: '20111216-222321'
};
webappMappings['1501']=webappMappings['1501-27423826']={
webappId:    '1501',
documentId:  '44',
internalId:  '27423826',
customField: '1501'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7K0CY';
var companyName   = 'Martina+Sahler';
var htmlTitle	  = 'Martina+Sahler+und+ihre+B%C3%BCcher';
var metaKeywords  = 'Martina+Sahler%2C+Cyberschokolade%2C+erste+Liebe%2C+Jugendb%C3%BCcher%2C+Lesestoff%2C+Lesungen%2C+historische+Romane%2C+Sommerb%C3%BCcher%2C+Schm%C3%B6ker%2C+Jugendliteratur%2C+Thienemann%2C+Bestseller%2C+Kinderb%C3%BCcher%2C+M%C3%A4dchenb%C3%BCcher%2C+freche+M%C3%A4dchen%2C+freche+B%C3%BCcher%2C+Internet%2C+Teenager%2C+Ich+bin+Ich%2C+Chat%2C+Cyberspace%2C+Schokolade%2C+Prick%2C+Gofferj%C3%A9%2C+Both%2C+Bollwahn%2CLesesommer%2C+Lieblingsb%C3%BCcher+';
var metaContents  = 'Martina+Sahler+-+Biographie%2C+B%C3%BCcher%2C+Verlage%2C+Aktuelles%2C+Kontakt.';
					                                                                    
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 */					                                                            

