/* [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','42285',jdecode('Startseite'),jdecode(''),'/42285.html','true',[],''],
	['PAGE','39994',jdecode('Startseite.alt'),jdecode(''),'/39994.html','false',[],''],
	['PAGE','40210',jdecode('Wohnraumspiegel'),jdecode(''),'/40210/home.html','true',[ 
		['PAGE','41354',jdecode('Spiegel+30+x+45+cm'),jdecode(''),'/40210/41354.html','false',[],''],
		['PAGE','41363',jdecode('Spiegel+40+x+60+cm'),jdecode(''),'/40210/41363.html','false',[],''],
		['PAGE','41372',jdecode('Spiegel+50+x+70+cm'),jdecode(''),'/40210/41372.html','true',[],''],
		['PAGE','41790',jdecode('Spiegel+60+x+80+cm'),jdecode(''),'/40210/41790.html','true',[],''],
		['PAGE','41799',jdecode('Spiegel+60+x+90+cm'),jdecode(''),'/40210/41799.html','true',[],''],
		['PAGE','41808',jdecode('Spiegel+42+x+120+cm'),jdecode(''),'/40210/41808.html','true',[],''],
		['PAGE','41817',jdecode('Spiegel+40+x+140+cm'),jdecode(''),'/40210/41817.html','true',[],''],
		['PAGE','41826',jdecode('Spiegel+50+x+150+cm'),jdecode(''),'/40210/41826.html','true',[],''],
		['PAGE','41937',jdecode('Spiegel+60+x+120+cm'),jdecode(''),'/40210/41937.html','true',[],'']
	],''],
	['PAGE','40219',jdecode('Spiegel+f%C3%BCr%60s+Bad'),jdecode(''),'/40219.html','true',[],''],
	['PAGE','41309',jdecode('Wohnaccessoires'),jdecode(''),'/41309.html','true',[],''],
	['PAGE','41318',jdecode('Bild+%26+Rahmen'),jdecode(''),'/41318.html','true',[],''],
	['PAGE','41327',jdecode('News+%26+Trends'),jdecode(''),'/41327.html','false',[],''],
	['PAGE','41336',jdecode('Internetrabatt'),jdecode(''),'/41336.html','false',[],''],
	['PAGE','41345',jdecode('Fabrikverkauf'),jdecode(''),'/41345.html','true',[],''],
	['PAGE','40228',jdecode('Sonderaktionen'),jdecode(''),'/40228.html','false',[],''],
	['PAGE','40237',jdecode('Messen%2FTermine'),jdecode(''),'/40237.html','true',[],''],
	['PAGE','40264',jdecode('Kontakt'),jdecode(''),'/40264.html','true',[],''],
	['PAGE','40273',jdecode('Impressum'),jdecode(''),'/40273/home.html','false',[ 
		['PAGE','40246',jdecode('AGB%C2%B4s'),jdecode(''),'/40273/40246.html','true',[],'']
	],''],
	['PAGE','40352',jdecode('Anfahrt'),jdecode(''),'/40352.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='9241';
theSitetree.keyvisualName='kv3.swf';
theSitetree.fontsetId='17363';
theSitetree.graphicsetId='12763';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'660000',
				keyvisualId: 	'9241',
				keyvisualName: 	'kv3.swf',
				fontsetId: 		'17363',
				graphicsetId: 	'12763',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '42285',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20070910-185456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40273',
internalId:  '',
customField: '20070723-155341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40210',
internalId:  '',
customField: '20070910-122529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40246',
internalId:  '',
customField: '20070723-134551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40228',
internalId:  '',
customField: '20070723-134551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40219',
internalId:  '',
customField: '20070910-191625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41336',
internalId:  '',
customField: '20070909-101918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41345',
internalId:  '',
customField: '20070909-131130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40237',
internalId:  '',
customField: '20080926-204708'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40352',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40264',
internalId:  '',
customField: '20080517-125830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41318',
internalId:  '',
customField: '20070909-124243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41327',
internalId:  '',
customField: '20071208-220039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40352',
internalId:  '',
customField: '20070910-165736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41363',
internalId:  '',
customField: '20070909-102453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41372',
internalId:  '',
customField: '20070910-184030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41790',
internalId:  '',
customField: '20070910-183130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41354',
internalId:  '',
customField: '20070909-102453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41309',
internalId:  '',
customField: '20070910-145755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41799',
internalId:  '',
customField: '20070910-184530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41808',
internalId:  '',
customField: '20070910-190045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41817',
internalId:  '',
customField: '20070910-190356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41826',
internalId:  '',
customField: '20070910-192400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41937',
internalId:  '',
customField: '20070910-192935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42285',
internalId:  '',
customField: '20090429-081920'
};
var canonHostname = 'cfawrk09.aul.t-online.de';
var accountId     = 'ATOIX0I72N28';
var companyName   = 'Ricker-Spiegel.de';
var htmlTitle	  = 'ricker-spiegel.de';
var metaKeywords  = 'Ihr+Name%2C+Grosshandel%2C+Handel%2C+Katalog%2C+Handwerk%2C+Ihr+Sortiment++';
var metaContents  = 'Willkommen+bei+Ricker-Spiegel%2C+Gro%C3%9Fhandel+und+Zulieferer+fuer+Ihre+Branche.+Wir+liefern+alles+von+Ihr+Sortiment.++';
					                                                                    
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 */					                                                            
