/* [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','45194',jdecode('Wer+bin+ich'),jdecode(''),'/45194.html','true',[],''],
	['PAGE','45203',jdecode('Buchvorstellung'),jdecode(''),'/45203.html','true',[],''],
	['PAGE','49301',jdecode('Leserkommentare'),jdecode(''),'/49301.html','true',[],''],
	['PAGE','45638',jdecode('Buchbestellung'),jdecode(''),'/45638.html','true',[],''],
	['PAGE','45264',jdecode('Leseprobe+Seite+1'),jdecode(''),'/45264.html','true',[],''],
	['PAGE','45306',jdecode('Leseprobe+Seite+2'),jdecode(''),'/45306.html','true',[],''],
	['PAGE','45511',jdecode('Unsere+Hunde'),jdecode(''),'/45511.html','true',[],''],
	['PAGE','45378',jdecode('Links'),jdecode(''),'/45378.html','true',[],''],
	['PAGE','45230',jdecode('Impressum'),jdecode(''),'/45230.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Boston';
theSitetree.paletteFamily='8BAD63';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11067';
theSitetree.graphicsetId='11841';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='66873E';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Boston',
				paletteFamily: 	'8BAD63',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11067',
				graphicsetId: 	'11841',
				contentColor: 	'FFFFFF',
				contentBGColor: '66873E',
				a_color: 		'000000',
				b_color: 		'000000',
				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:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20090718-161615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45306',
internalId:  '',
customField: '20071018-193930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45194',
internalId:  '',
customField: '20080322-114151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45203',
internalId:  '',
customField: '20080418-142139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20090718-165244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45264',
internalId:  '',
customField: '20080423-205008'
};
webappMappings['1007']=webappMappings['1007-113c655f502']={
webappId:    '1007',
documentId:  '45511',
internalId:  '113c655f502',
customField: 'g.12f34krep.57a1a7jdp0.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45230',
internalId:  '',
customField: '20070726-210333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45638',
internalId:  '',
customField: '20090103-191732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45378',
internalId:  '',
customField: '20090718-143411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45511',
internalId:  '',
customField: '20070716-144116'
};
webappMappings['1008']=webappMappings['1008-36325981']={
webappId:    '1008',
documentId:  '45638',
internalId:  '36325981',
customField: 'de:DE:'
};
var canonHostname = 'cfawrk01.aul.t-online.de';
var accountId     = 'ATOIX0I72ZZX';
var companyName   = 'brigitte-martens.de';
var htmlTitle	  = 'Hundetr%C3%A4ume-Ein+Zuhause+f%C3%BCr+immer-';
var metaKeywords  = 'Hundetr%C3%A4ume-Ein+Zuhause+f%C3%BCr+immer-+Geschenkidee%2C+Tierschutzengel-Nordhorn%2C';
var metaContents  = 'Buchvorstellung+und+Bestellmoeglichkeit.+Lesevergnuegen+fuer+Jung+und+Alt.+Vom+Erloes+provitiert+der+Tierschutz.';
					                                                                    
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 */					                                                            
