/* [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','65901',jdecode('NEUIGKEITEN+BLOG'),jdecode(''),'/65901.html','true',[],''],
	['PAGE','40958',jdecode('%C3%9CBERBLICK'),jdecode(''),'/40958.html','true',[],''],
	['PAGE','43046',jdecode('EINTRITTSKARTEN'),jdecode(''),'/43046.html','true',[],''],
	['PAGE','43064',jdecode('GLS+Paket+Shop'),jdecode(''),'/43064.html','true',[],''],
	['PAGE','43055',jdecode('EBAY+Service'),jdecode(''),'/43055.html','true',[],''],
	['PAGE','43100',jdecode('INTERNET+%2B+HANDY'),jdecode(''),'/43100.html','true',[],''],
	['PAGE','41023',jdecode('LOTTO'),jdecode(''),'/41023.html','true',[],''],
	['PAGE','46501',jdecode('WICHTIGE+LINKS'),jdecode(''),'/46501.html','true',[],''],
	['PAGE','41059',jdecode('KONTAKT'),jdecode(''),'/41059/home.html','true',[ 
		['PAGE','44290',jdecode('Anfahrt'),jdecode(''),'/41059/44290.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Surround';
theSitetree.paletteFamily='C12C21';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10514';
theSitetree.graphicsetId='11132';
theSitetree.contentColor='FEA7A1';
theSitetree.contentBGColor='C12C21';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Surround',
				paletteFamily: 	'C12C21',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10514',
				graphicsetId: 	'11132',
				contentColor: 	'FEA7A1',
				contentBGColor: 'C12C21',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FEA7A1',
				e_color: 		'FEA7A1',
				f_color: 		'FEA7A1',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40958',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40958',
internalId:  '',
customField: '20110317-090906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41023',
internalId:  '',
customField: '20090806-122204'
};
webappMappings['1501']=webappMappings['1501-29772547']={
webappId:    '1501',
documentId:  '40958',
internalId:  '29772547',
customField: '1501'
};
webappMappings['7050']=webappMappings['7050-1']={
webappId:    '7050',
documentId:  '65901',
internalId:  '1',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43046',
internalId:  '',
customField: '20110929-122046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41059',
internalId:  '',
customField: '20090806-122548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65901',
internalId:  '',
customField: '20110303-153229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43055',
internalId:  '',
customField: '20100325-145823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43064',
internalId:  '',
customField: '20100325-151813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43100',
internalId:  '',
customField: '20090806-122008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46501',
internalId:  '',
customField: '20110317-093004'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '44290',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44290',
internalId:  '',
customField: '20070126-104924'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7BUJ2';
var companyName   = 'Kartenvorverkauf+%2B+Ticket+Shop+%2B+Ebay+Service+%2B+GLS+%2B+Internet+%2B+Lotto';
var htmlTitle	  = 'Haas+Lotterie+%26++Mehr+in+Isen+%2B+Tickets+%2B+Ebay+Service+%2B+GLS+%2B+Lotto';
var metaKeywords  = 'Haas%2CIsen%2CLotterie%2CKartenvorverkauf%2CLotto%2CTicket%2CShop%2CPaket%2CInternet%2CGLS%2CVeranstaltung%2CEbay%2CService%2CSchmuck%2CBrotZeit++Spiele+ABO+2011%2CKlement';
var metaContents  = 'Kartenvorverkauf+%C3%BC+ber+M%C3%BCnchen+Ticket%2C+Erstellung+und+Verkauf+von+Eintrittskarten+f%C3%BCr+regionale+Veranstaltungen%2C+Ebay+Service%2C+GLS+uvm.';
					                                                                    
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 */					                                                            

