/* [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('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','40327',jdecode('Produkte'),jdecode(''),'/40327/home.html','true',[ 
		['PAGE','42131',jdecode('Smoker+-+Smoky+Fun'),jdecode(''),'/40327/42131.html','true',[],''],
		['PAGE','41240',jdecode('Keramikgrills+-+Monolith'),jdecode(''),'/40327/41240.html','true',[],''],
		['PAGE','41683',jdecode('Gasgrills+-+Napoleon'),jdecode(''),'/40327/41683.html','false',[],''],
		['PAGE','40382',jdecode('Hitzefeste+Lacke'),jdecode(''),'/40327/40382.html','true',[],''],
		['PAGE','41998',jdecode('RITCO+Lacke'),jdecode(''),'/40327/41998.html','true',[],''],
		['PAGE','41174',jdecode('Heizungen+%26+Zubeh%C3%B6r'),jdecode(''),'/40327/41174.html','true',[],'']
	],''],
	['PAGE','42331',jdecode('Unsere+Ausstellung'),jdecode(''),'/42331.html','true',[],''],
	['PAGE','40456',jdecode('Kontakt'),jdecode(''),'/40456.html','true',[],''],
	['PAGE','40583',jdecode('Downloads'),jdecode(''),'/40583.html','true',[],''],
	['PAGE','40555',jdecode('Impressum'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','42432',jdecode('NEWS'),jdecode(''),'/42432.html','false',[],''],
	['PAGE','42444',jdecode('Wie+wird+das+Wetter%3F'),jdecode(''),'/42444.html','false',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Spiegelwand';
theSitetree.paletteFamily='C1C5BC';
theSitetree.keyvisualId='10909';
theSitetree.keyvisualName='kv_10909.jpg';
theSitetree.fontsetId='31889';
theSitetree.graphicsetId='13692';
theSitetree.contentColor='444641';
theSitetree.contentBGColor='C1C5BC';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Spiegelwand',
				paletteFamily: 	'C1C5BC',
				keyvisualId: 	'10909',
				keyvisualName: 	'kv_10909.jpg',
				fontsetId: 		'31889',
				graphicsetId: 	'13692',
				contentColor: 	'444641',
				contentBGColor: 'C1C5BC',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1007']=webappMappings['1007-127cfe693ac']={
webappId:    '1007',
documentId:  '42131',
internalId:  '127cfe693ac',
customField: 'g.14v7u8gf3.k7ug222kel.3o'
};
webappMappings['1008']=webappMappings['1008-49094435']={
webappId:    '1008',
documentId:  '40456',
internalId:  '49094435',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41683',
internalId:  '',
customField: '20110615-105407'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41240',
internalId:  '',
customField: '20110628-164734'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '42331',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20111109-084350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40327',
internalId:  '',
customField: '20110701-143845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40382',
internalId:  '',
customField: '20110628-165443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20111109-085119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40456',
internalId:  '',
customField: '20110405-144739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41998',
internalId:  '',
customField: '20100319-092040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40583',
internalId:  '',
customField: '20110628-165102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42131',
internalId:  '',
customField: '20111109-085235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41174',
internalId:  '',
customField: '20100105-194412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42331',
internalId:  '',
customField: '20111109-085513'
};
webappMappings['1011']=webappMappings['1011-ddp-wirtschaft']={
webappId:    '1011',
documentId:  '42432',
internalId:  'ddp-wirtschaft',
customField: 'language:de;country:DE;'
};
webappMappings['1011']=webappMappings['1011-ddp-wetter-hes']={
webappId:    '1011',
documentId:  '42444',
internalId:  'ddp-wetter-hes',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42432',
internalId:  '',
customField: '20100719-125518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42444',
internalId:  '',
customField: '20100719-125618'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INPAVW';
var companyName   = 'RIT-CO+e.K.';
var htmlTitle	  = 'RIT-CO+e.K.';
var metaKeywords  = 'Ritter%2C+hochhitzefest%2C+hitzefest%2C+hitzefeste+Farbe%2C+Farben%2C+hochhitzebest%C3%A4ndig%2C+Lack%2C+Thermodur%2C+Kamin%2C+Ofen%2C+Kaminlack%2C+Lacke%2C+Farbe%2C+Farben%2C+Ritter-Color%2C+Rembrandtin%2C+Langg%C3%B6ns%2C+Oberkleen%2C+Ritter-Color%2C+Hitze%2C+Ofen%2C+Senotherm%2C+Weilburger%2C+Heizungen%2C+Solaranlagen%2C+Energie%2C+Beratung%2C+Handel%2C+%C3%96fen%2C+Kessel%2C+Buderus%2C+Sieger%2C+Heiztechnik%2C+Energiepass%2C+Heizungsbauer%2C+Senotherm%2C+RITCO%2C+RIT-CO%2C+Auspuff%2C+hitzebest%C3%A4ndig%2C+Ofenlack%2C+Kaminlack%2C+Rauchrohre%2C+Lackfabrik%2C+W%C3%A4rme%2C+Langg%C3%B6ns%2C+Brennholz%2C+Ofenanz%C3%BCnder%2C+Grills%2C+Smoker%2C+farmergrill%2C+Big+Green+Egg%2C+BGE%2C+Grillzubeh%C3%B6r%2C+Hessen%2C+Grillkohle';
var metaContents  = 'Grossh%C3%A4ndler+f%C3%BCr+Grills%2C+Smoker+und+Keramikgrills+sowie+Hochhitzefeste+Lacke+bis+600%C2%B0C%2C+Acryllacke%2C+Grundierungen+sowie+Heizungen+und+Zubeh%C3%B6r.';
					                                                                    
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 */					                                                            

