/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41341',jdecode('Service'),jdecode(''),'/41341.html','true',[],''],
	['PAGE','44571',jdecode('Unser+Angebot'),jdecode(''),'/44571.html','true',[],''],
	['PAGE','43739',jdecode('Veranstaltungen+'),jdecode(''),'/43739.html','true',[],''],
	['PAGE','44810',jdecode('Bilder+2011'),jdecode(''),'/44810.html','true',[],''],
	['PAGE','43908',jdecode('Fotoalbum'),jdecode(''),'/43908.html','false',[],''],
	['PAGE','43748',jdecode('Online-Bestellung'),jdecode(''),'/43748.html','true',[],''],
	['PAGE','44524',jdecode('Kontakt'),jdecode(''),'/44524.html','true',[],''],
	['PAGE','43762',jdecode('Anfahrt'),jdecode(''),'/43762.html','true',[],''],
	['PAGE','41386',jdecode('Impressum'),jdecode(''),'/41386.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Curve';
theSitetree.paletteFamily='BDBDBD';
theSitetree.keyvisualId='5776';
theSitetree.keyvisualName='kv_5776.jpg';
theSitetree.fontsetId='11086';
theSitetree.graphicsetId='11857';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D5D4D4';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Curve',
				paletteFamily: 	'BDBDBD',
				keyvisualId: 	'5776',
				keyvisualName: 	'kv_5776.jpg',
				fontsetId: 		'11086',
				graphicsetId: 	'11857',
				contentColor: 	'000000',
				contentBGColor: 'D5D4D4',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20120118-143435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44524',
internalId:  '',
customField: '20110519-120853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43748',
internalId:  '',
customField: '20110522-164825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41341',
internalId:  '',
customField: '20111216-192042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43762',
internalId:  '',
customField: '20100305-212016'
};
webappMappings['1007']=webappMappings['1007-1329180ecf8']={
webappId:    '1007',
documentId:  '44810',
internalId:  '1329180ecf8',
customField: 'g.16a8n77pm.6fmevhcgljh.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43739',
internalId:  '',
customField: '20120118-144724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41386',
internalId:  '',
customField: '20110522-164938'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '43762',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1007']=webappMappings['1007-1273014293c']={
webappId:    '1007',
documentId:  '43908',
internalId:  '1273014293c',
customField: 'g.14so06esi.3tp6cdfa2q.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43908',
internalId:  '',
customField: '20100305-221355'
};
webappMappings['1008']=webappMappings['1008-43039566']={
webappId:    '1008',
documentId:  '44524',
internalId:  '43039566',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44571',
internalId:  '',
customField: '20120118-143941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44810',
internalId:  '',
customField: '20110922-165701'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7P3Q7';
var companyName   = 'Borchers%2C+Lesen+%26+Schenken+in+Bad+Nenndorf';
var htmlTitle	  = 'Buchhandlung+Borchers%2C+Bad+Nenndorf';
var metaKeywords  = 'Borchers%2C+lesen%2C+schenken%2C+schreiben%2C+Bad+Nenndorf%2C+Maren%2C+B%C3%BCcher%2C+Buchhandlung%2C+Hauptstrasse%2C+Weihnachtsgeschenke%2C+Kinderb%C3%BCcher%2C+Romane%2C+Krimis%2C+Sachb%C3%BCcher%2C++Jugendb%C3%BCcher%2C+Lesungen%2C+Buchladen%2C+B%C3%BCcherei%2C+Kochb%C3%BCcher%2C+Kochbuch%2C+Kalender%2C+B%C3%BCrobedarf%2C+Garten%2C+Reisef%C3%BChrer%2C+Esoterik%2C+Gesundheit%2C+Science+fiction%2C+Nenndorf%2C+Buch%2C+Harry+Potter%2C+Funke%2C+Sch%C3%BCnemann%2C+Bilderb%C3%BCcher%2C+Notizb%C3%BCcher%2C+Adressb%C3%BCcher%2C+Lesezeichen%2C+Geschenkpapier%2C+Spiele%2C+H%C3%B6rb%C3%BCcher%2C+Lieferservice%2C+Pferdeb%C3%BCcher%2C+Fu%C3%9Fball%2C+Sport%2C+Erotik%2C+Antiquariat%2C++Schleich%2C+Hannover96%2C+Schulhefte%2C+Schulb%C3%BCcher';
var metaContents  = 'Willkommen+bei+Borchers+-+Lesen++und+Schenken%2C+ihre+Buchhandlung+in+Bad+Nenndorf.+Bei+uns+erhalten+Sie+B%C3%BCcher%2C+Schreibwaren+und+Geschenkartikel+f%C3%BCr+Jung+und+Alt.+++++';
					                                                                    
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 */					                                                            

