/* [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','60801',jdecode('Wir+sind+im+Fernsehen'),jdecode(''),'/60801.html','true',[],''],
	['PAGE','14001',jdecode('Home'),jdecode(''),'/14001.html','true',[],''],
	['PAGE','24301',jdecode('News'),jdecode(''),'/24301/home.html','true',[ 
		['PAGE','36901',jdecode('NACHRICHTEN+des+Tages'),jdecode(''),'/24301/36901.html','true',[],'']
	],''],
	['PAGE','24122',jdecode('Service'),jdecode(''),'/24122/home.html','true',[ 
		['PAGE','24201',jdecode('Werkstatt'),jdecode(''),'/24122/24201.html','true',[],'']
	],''],
	['PAGE','14064',jdecode('Brillen'),jdecode(''),'/14064.html','true',[],''],
	['PAGE','24101',jdecode('Sonnenbrille+Maui+Jim'),jdecode(''),'/24101.html','true',[],''],
	['PAGE','24143',jdecode('Orthokeratologie'),jdecode(''),'/24143.html','true',[],''],
	['PAGE','14085',jdecode('Contactlinsen'),jdecode(''),'/14085.html','true',[],''],
	['PAGE','25301',jdecode('Mineralien'),jdecode(''),'/25301.html','true',[],''],
	['PAGE','25801',jdecode('Optische+Artikel'),jdecode(''),'/25801.html','true',[],''],
	['PAGE','14127',jdecode('Kontakt'),jdecode(''),'/14127/home.html','true',[ 
		['PAGE','36501',jdecode('Anfahrt'),jdecode(''),'/14127/36501.html','true',[],'']
	],''],
	['PAGE','14148',jdecode('Impressum'),jdecode(''),'/14148.html','true',[],''],
	['PAGE','47901',jdecode('LINKS+'),jdecode(''),'/47901.html','true',[],''],
	['PAGE','64301',jdecode('Otho-k-Film'),jdecode(''),'/64301.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='FDBC3F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10896';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'FDBC3F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10896',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FDBC3F',
				e_color: 		'FDBC3F',
				f_color: 		'FDBC3F',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14064',
internalId:  '',
customField: '20110927-165804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20111204-232755'
};
webappMappings['1501']=webappMappings['1501-28304558']={
webappId:    '1501',
documentId:  '14001',
internalId:  '28304558',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '36501',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1011']=webappMappings['1011-ddp-vermischtes']={
webappId:    '1011',
documentId:  '36901',
internalId:  'ddp-vermischtes',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24122',
internalId:  '',
customField: '20111119-133253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20061011-101353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20111203-125334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20060904-095320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20101011-235147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14085',
internalId:  '',
customField: '20090723-160551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24143',
internalId:  '',
customField: '20111204-210013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20111204-121159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20070123-144145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47901',
internalId:  '',
customField: '20120112-172959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14127',
internalId:  '',
customField: '20111119-134423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14148',
internalId:  '',
customField: '20070516-143301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20060819-093155'
};
webappMappings['1008']=webappMappings['1008-28174705']={
webappId:    '1008',
documentId:  '14127',
internalId:  '28174705',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20111207-145319'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14001',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-61106b4ae1375581e802d4ce33e31076']={
webappId:    '7060',
documentId:  '64301',
internalId:  '61106b4ae1375581e802d4ce33e31076',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64301',
internalId:  '',
customField: '20120127-190130'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IN2IP3';
var companyName   = 'Augenoptik+Schweiger';
var htmlTitle	  = 'Augenoptik+Schweiger';
var metaKeywords  = 'Bogner%2C+Brille%2C+Fassung%2C+Gl%C3%A4sser%2C+Glas%2C+Brillenfassung%2C+Augenoptik%2C+Optik%2C+Schweiger%2C+Orthokeratologie%2C+Rodenstock%2C+Ray+Ban%2C+Maui+Jim%2C+Augenoptik+Schweiger%2C+Optik+Schweiger%2C+Contactlinsen%2C+Kontaktlinsen%2C+Lenses%2C+Frames%2C+Glases%2C+Medical%2C+Eye%2C+Auge%2C+Augen%2C+N%C3%BCrnberg%2C+Mineralien%2C+';
var metaContents  = 'Augenoptik+Schweiger%2C+Stephanstr.+35%2C+90478+N%C3%BCrnberg.++Wir+f%C3%BChren+Brillenfassungen+von%3A+Rodenstock%2C+Bogner%2C+Fishbone...%3B+Maui+Jim%2C+Ray+Ban+Sonnenbrillen%2C+Ortho-K+Linsen%2C+Contactlinsen.';
					                                                                    
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 */					                                                            

