/* [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','41012',jdecode('Kamin%C3%B6fen'),jdecode(''),'/41012.html','true',[],''],
	['PAGE','41084',jdecode('Kachel%C3%B6fen'),jdecode(''),'/41084.html','true',[],''],
	['PAGE','41057',jdecode('Heizkamine'),jdecode(''),'/41057.html','true',[],''],
	['PAGE','41030',jdecode('Grund%C3%B6fen'),jdecode(''),'/41030.html','true',[],''],
	['PAGE','41021',jdecode('Stilkamine'),jdecode(''),'/41021.html','true',[],''],
	['PAGE','41039',jdecode('Schornsteine'),jdecode(''),'/41039.html','true',[],''],
	['PAGE','41048',jdecode('Solaranlagen'),jdecode(''),'/41048.html','true',[],''],
	['PAGE','41066',jdecode('Kontakt'),jdecode(''),'/41066.html','true',[],''],
	['PAGE','41075',jdecode('Impressum'),jdecode(''),'/41075.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='4A587F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10449';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='4A587F';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'4A587F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10449',
				contentColor: 	'FFFFFF',
				contentBGColor: '4A587F',
				a_color: 		'4A587F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				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: '20081117-162122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41084',
internalId:  '',
customField: '20081117-152720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41012',
internalId:  '',
customField: '20081117-152656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41021',
internalId:  '',
customField: '20081117-152815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41030',
internalId:  '',
customField: '20081117-152748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41039',
internalId:  '',
customField: '20081117-152849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41048',
internalId:  '',
customField: '20081117-152924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41057',
internalId:  '',
customField: '20081117-160246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41066',
internalId:  '',
customField: '20081117-152952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41075',
internalId:  '',
customField: '20100428-143633'
};
webappMappings['1008']=webappMappings['1008-35859088']={
webappId:    '1008',
documentId:  '41066',
internalId:  '35859088',
customField: 'de:DE:'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I73AIR';
var companyName   = 'Herzlich+Willkommen+-+Ihr+Ofenberater+Torsten+Hein';
var htmlTitle	  = 'Ihr+Ofenberater+Torsten+Hein+-+Ofenstudio-direkt+-+Kachel%C3%B6fen%2C+Kamin%C3%B6fen%2C+Heizkamine%2C+Grund%C3%B6fen%2C+Schornsteine%2C+Solaranlagen';
var metaKeywords  = '+Kaminofen%2C+Kamin%C3%B6fen%2C+Kachel%C3%B6fen%2C+Kachelofen%2C+Grund%C3%B6fen%2C+Grundofen%2C+Schornstein%2C+Schornsteinen%2C+Heizkamine%2C+Heizkamin%2C+Solaranlagen%2C+Solar%2C+Solaranlage%2C+Kamine%2C+Kaminkehrer%2C+Ofenbesteck%2C+behagliche+W%C3%A4rme%2C+Kamin%2C+Heizung%2C+Finanzierung%2C+Heizungstausch%2C+Energie+sparen%2C+Brennholz%2C+Kaminbesteck%2C+Ofenberatung%2C+Ofen%2C+%C3%96fen%2C+Ofenstudio%2C+Baus%C3%A4tze%2C+individuelle+Beratung%2C+individuelle+Planung%2C+Kacheln%2C+Naturstein%2C+Ofenbau%2C+Schamott%2C+Schn%C3%A4ppchen%2C+Angebote%2C+Aktionstage%2C+Miltenberg%2C+Obernburg%2C+Aschaffenburg%2C+Wertheim%2C+Gro%C3%9Fheubach%2C+Torsten+Hein%2C+Specksteinofen%2C+Speckstein%C3%B6fen%2C+Schedenofen%2C+Schweden%C3%B6fen%2C+Ethanolofen%2C+Ethanol%C3%B6fen%2C+%C3%96fen+ohne+Schornstein%2C+Stilkamin%2C+Stilkamine';
var metaContents  = 'Herzlich+Willkommen+bei+Ofenstudio-direkt.de.+Wir+bieten+Ihnen+individuellen+Service+und+kompetenten+Beratung+rund+um+Ihren+Ofen.+Wir+sorgen+f%C3%BCr+behagliche+W%C3%A4rme+in+Ihren+eigenen+vier+W%C3%A4nden.+Informieren+Sie+sich+%C3%BCber+unser+Angebot+an+Kamin%C3%B6fen%2C+Kachel%C3%B6fen%2C+Grund%C3%B6fen%2C+Schornsteinen%2C+Heizkaminen+und+Solaranlagen%21Beachten+Sie+unsere+Angebote+-+es+lohnt+sich%21Wir+planen+F%C3%BCr+SIe+individuell+und+kreativ%21+Und+das+alles+zu+Spitzenpreisen%21';
					                                                                    
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 */					                                                            

