/* [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','18060',jdecode('Home'),jdecode(''),'/18060.html','true',[],''],
	['PAGE','27902',jdecode('Deco+%26Design+Shop'),jdecode(''),'/27902.html','true',[],''],
	['PAGE','19402',jdecode('Holz+Design'),jdecode(''),'/19402.html','true',[],''],
	['PAGE','18117',jdecode('Kontakt'),jdecode(''),'/18117.html','true',[],''],
	['PAGE','18144',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/18144.html','true',[],''],
	['PAGE','18171',jdecode('Angebote'),jdecode(''),'/18171.html','true',[],''],
	['PAGE','27201',jdecode('Impressum'),jdecode(''),'/27201.html','true',[],''],
	['PAGE','28178',jdecode('AGB'),jdecode(''),'/28178.html','true',[],''],
	['PAGE','29473',jdecode('G%C3%A4stebuch'),jdecode(''),'/29473/home.html','false',[ 
		['PAGE','29472',jdecode('Eintr%C3%A4ge'),jdecode(''),'/29473/29472.html','false',[],'']
	],''],
	['PAGE','30228',jdecode('Partner+Firmen'),jdecode(''),'/30228.html','true',[],''],
	['PAGE','30587',jdecode('Blog'),jdecode(''),'/30587.html','true',[],''],
	['PAGE','30719',jdecode('Multimedia+Show+1'),jdecode(''),'/30719.html','true',[],''],
	['PAGE','40901',jdecode('Anfahrt'),jdecode(''),'/40901.html','true',[],''],
	['PAGE','53401',jdecode('Referenzen'),jdecode(''),'/53401.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Puzzle02';
theSitetree.paletteFamily='5E7ABF';
theSitetree.keyvisualId='10860';
theSitetree.keyvisualName='kv_10860.jpg';
theSitetree.fontsetId='31866';
theSitetree.graphicsetId='13664';
theSitetree.contentColor='DCE5FC';
theSitetree.contentBGColor='5E7ABF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Puzzle02',
				paletteFamily: 	'5E7ABF',
				keyvisualId: 	'10860',
				keyvisualName: 	'kv_10860.jpg',
				fontsetId: 		'31866',
				graphicsetId: 	'13664',
				contentColor: 	'DCE5FC',
				contentBGColor: '5E7ABF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30587',
internalId:  '',
customField: '20070426-224148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18060',
internalId:  '',
customField: '20111223-094950'
};
webappMappings['1002']=webappMappings['1002-29473atoix0in3fd2']={
webappId:    '1002',
documentId:  '29473',
internalId:  '29473atoix0in3fd2',
customField: 'action=form&icq=false'
};
webappMappings['1007']=webappMappings['1007-10582a72594']={
webappId:    '1007',
documentId:  '19402',
internalId:  '10582a72594',
customField: 'g.10m1ae9ck.43f7p1imkkpvs.6rn80'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18060',
internalId:  '1006',
customField: '1006'
};
webappMappings['4001']=webappMappings['4001-Ml5r_oTo2_Duaq_r']={
webappId:    '4001',
documentId:  '27902',
internalId:  'Ml5r_oTo2_Duaq_r',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20081208-234446'
};
webappMappings['1002']=webappMappings['1002-29473atoix0in3fd2']={
webappId:    '1002',
documentId:  '29472',
internalId:  '29473atoix0in3fd2',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27902',
internalId:  '',
customField: '20091105-155309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29473',
internalId:  '',
customField: '20051220-231952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18144',
internalId:  '',
customField: '20110108-113231'
};
webappMappings['7050']=webappMappings['7050-1']={
webappId:    '7050',
documentId:  '30587',
internalId:  '1',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18117',
internalId:  '',
customField: '20110704-145140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18171',
internalId:  '',
customField: '20101026-084342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19402',
internalId:  '',
customField: '20061108-121111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30228',
internalId:  '',
customField: '20110108-112935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20110704-144952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28178',
internalId:  '',
customField: '20090104-170702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29472',
internalId:  '',
customField: '20051220-231952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53401',
internalId:  '',
customField: '20100708-093753'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40901',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['7060']=webappMappings['7060-aa7e145eea7d4d5632dca181fe3c108e']={
webappId:    '7060',
documentId:  '30719',
internalId:  'aa7e145eea7d4d5632dca181fe3c108e',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30719',
internalId:  '',
customField: '20070713-094140'
};
webappMappings['1008']=webappMappings['1008-56176542']={
webappId:    '1008',
documentId:  '18060',
internalId:  '56176542',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IN3FD2';
var companyName   = 'Ralfs+Holzschmiede';
var htmlTitle	  = 'Holz+Design';
var metaKeywords  = 'holz%2Cdeco%2Csternenhimmel%2Cweinverschluss%2Cdesign%2Ckunsthandwerk%2Centwicklung%2Cwohnraum%2Cgarten%2Ceinzelanfertigung%2Cdeutschland%2Cerkenschwick%2C+shop%2CZielonka%2C';
var metaContents  = 'deco+und+design+aus+holz%2Cf%C3%BCr+den+wohnraum+und+garten%2Centwicklung+und+eigene+herstellung+einzelanfertigung+%2Creperatur+und+aufarbeitung+von+m%C3%B6beln+und+st%C3%BChlen+%2Cumgestalltung%2C+eigene+produktion%2C';
					                                                                    
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 */					                                                            

