/* [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','10701',jdecode('Home'),jdecode(''),'/10701.html','true',[],''],
	['PAGE','14701',jdecode('Geschichte%2FPhilosophie'),jdecode(''),'/14701.html','true',[],''],
	['PAGE','10901',jdecode('Sehen+Fern+und+Nah'),jdecode(''),'/10901.html','true',[],''],
	['PAGE','10906',jdecode('Contactlinsen'),jdecode(''),'/10906.html','true',[],''],
	['PAGE','11732',jdecode('Service+Augenoptik'),jdecode(''),'/11732.html','true',[],''],
	['PAGE','10911',jdecode('Trauringe'),jdecode(''),'/10911.html','true',[],''],
	['PAGE','10916',jdecode('Schmuck'),jdecode(''),'/10916.html','true',[],''],
	['PAGE','12801',jdecode('Schmuckverleihservice'),jdecode(''),'/12801.html','true',[],''],
	['PAGE','18401',jdecode('Goldankauf'),jdecode(''),'/18401.html','true',[],''],
	['PAGE','10921',jdecode('Uhren'),jdecode(''),'/10921.html','true',[],''],
	['PAGE','12301',jdecode('Service+Schmuck+%26+Uhren'),jdecode(''),'/12301.html','true',[],''],
	['PAGE','12602',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/12602.html','true',[],''],
	['PAGE','17701',jdecode('Kontakt'),jdecode(''),'/17701.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Toronto';
theSitetree.paletteFamily='3358C6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16882';
theSitetree.graphicsetId='12318';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3358C6';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Toronto',
				paletteFamily: 	'3358C6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16882',
				graphicsetId: 	'12318',
				contentColor: 	'FFFFFF',
				contentBGColor: '3358C6',
				a_color: 		'3358C6',
				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:  '10701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20100911-093805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20071110-105559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20110615-162727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14701',
internalId:  '',
customField: '20110502-094818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20101025-235702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10906',
internalId:  '',
customField: '20050324-103040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11732',
internalId:  '',
customField: '20091123-164607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10911',
internalId:  '',
customField: '20090309-174921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10916',
internalId:  '',
customField: '20061128-175506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20050324-120131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10921',
internalId:  '',
customField: '20060612-142218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20060213-114041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12602',
internalId:  '',
customField: '20060213-120801'
};
webappMappings['1008']=webappMappings['1008-45603815']={
webappId:    '1008',
documentId:  '17701',
internalId:  '45603815',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0INE0K1';
var companyName   = 'G%C3%B6nn+Dir+was+f%C3%BCr+ewig+-+G%C3%B6nnewig';
var htmlTitle	  = 'G%C3%B6nn+Dir+was+f%C3%BCr+ewig+-+G%C3%B6nnewig';
var metaKeywords  = 'Augenoptik%2C+Optik%2C+Schmuck%2C+Uhren%2C+Trauringe%2C+Contactlinsen%2C+Gleitsicht%2C+Gleitsichtgl%C3%A4ser%2C+Altgold%2C+Gold%2C+Silber%2C+Brillen';
var metaContents  = 'Experte+f%C3%BCr+excellentes+Sehen+und+Aussehen';
					                                                                    
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 */					                                                            

