/* [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','40983',jdecode('Matratzen'),jdecode(''),'/40983/home.html','true',[ 
		['PAGE','40578',jdecode('Taschenfederkern'),jdecode(''),'/40983/40578.html','true',[],''],
		['PAGE','40587',jdecode('Kaltschaum'),jdecode(''),'/40983/40587.html','true',[],''],
		['PAGE','40596',jdecode('Bonnell-Federkern'),jdecode(''),'/40983/40596.html','true',[],''],
		['PAGE','40605',jdecode('Viskoschaum'),jdecode(''),'/40983/40605.html','true',[],'']
	],''],
	['PAGE','40841',jdecode('Betten'),jdecode(''),'/40841.html','true',[],''],
	['PAGE','40614',jdecode('Lattenroste'),jdecode(''),'/40614.html','true',[],''],
	['PAGE','40623',jdecode('Matratzenkunde'),jdecode(''),'/40623.html','true',[],''],
	['PAGE','40993',jdecode('Ladenlokal'),jdecode(''),'/40993.html','true',[],''],
	['PAGE','40632',jdecode('Geschichte'),jdecode(''),'/40632.html','true',[],''],
	['PAGE','40641',jdecode('Kontakt'),jdecode(''),'/40641.html','true',[],''],
	['PAGE','40764',jdecode('Anfahrt'),jdecode(''),'/40764.html','true',[],''],
	['PAGE','40650',jdecode('Impressum'),jdecode(''),'/40650.html','true',[],''],
	['PAGE','40818',jdecode('Test'),jdecode(''),'/40818.html','false',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Trend';
theSitetree.paletteFamily='929192';
theSitetree.keyvisualId='7972';
theSitetree.keyvisualName='kv_7972.jpg';
theSitetree.fontsetId='16910';
theSitetree.graphicsetId='12327';
theSitetree.contentColor='555455';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Trend',
				paletteFamily: 	'929192',
				keyvisualId: 	'7972',
				keyvisualName: 	'kv_7972.jpg',
				fontsetId: 		'16910',
				graphicsetId: 	'12327',
				contentColor: 	'555455',
				contentBGColor: 'FFFFFF',
				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: '20110826-114455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40983',
internalId:  '',
customField: '20110826-114625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40623',
internalId:  '',
customField: '20100729-102231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40632',
internalId:  '',
customField: '20100729-102258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40641',
internalId:  '',
customField: '20100712-173247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40578',
internalId:  '',
customField: '20110826-114852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40587',
internalId:  '',
customField: '20110826-115103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40596',
internalId:  '',
customField: '20100729-102041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40605',
internalId:  '',
customField: '20100729-102109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40614',
internalId:  '',
customField: '20100729-102205'
};
webappMappings['1008']=webappMappings['1008-72261129']={
webappId:    '1008',
documentId:  '40641',
internalId:  '72261129',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40650',
internalId:  '',
customField: '20110817-170802'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40764',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40764',
internalId:  '',
customField: '20100713-143033'
};
webappMappings['1007']=webappMappings['1007-129efd62d7e']={
webappId:    '1007',
documentId:  '40818',
internalId:  '129efd62d7e',
customField: 'g.157nt7r40.jbgurudgdb.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40818',
internalId:  '',
customField: '20100720-143118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40841',
internalId:  '',
customField: '20100729-102141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40993',
internalId:  '',
customField: '20110826-112337'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRSYIX';
var companyName   = 'Saarbr%C3%BCcker+Matratzenfabrik';
var htmlTitle	  = 'Matratzenfabrik-Saarbr%C3%BCcken+%7C+Herstellung+und+Verkauf+von+Matratzen%2C+Lattenrosten%2C+Betten%2C+etc.';
var metaKeywords  = 'Helmut%2C+Gro%C3%9F%2C+GmbH%2C+Saarbr%C3%BCcker%2C+Matratzenfabrik%2C+Handel%2C+Katalog%2C+Handwerk%2C+Fabrikation%2C+Matratzen%2C+Bettwaren%2C+Ma%C3%9Fanfertigung++';
var metaContents  = 'Willkommen+bei+Ihr+Helmut+Gro%C3%9F+GmbH%2C+Saarbr%C3%BCcker+Matratzenfabrik%2C+Fabrikation+von+Matratzen+und+Bettwaren%2C+Ma%C3%9Fanfertigung+z.B.+antike+Betten%2C+Boote%2C+Wohnwagen.+Lieferung%3A+Saarlandweit+kostenlos.+Rappoltsweilerstr.+9%2C+D+-+66113+Saarbr%C3%BCcken%2C+0681+-+72087';
					                                                                    
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 */					                                                            

