/* [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','148977',jdecode('HOME+-+%22TACKS-SITE%22'),jdecode(''),'/148977.html','true',[],''],
	['PAGE','14326',jdecode('Lago+di+Garda'),jdecode(''),'/14326.html','true',[],''],
	['PAGE','288677',jdecode('Camping+auf+%22LaCa%22'),jdecode(''),'/288677.html','true',[],''],
	['PAGE','222077',jdecode('%22+Das+Boot+%22'),jdecode(''),'/222077.html','true',[],''],
	['PAGE','379277',jdecode('Odenwald-Tour+2009'),jdecode(''),'/379277.html','true',[],''],
	['PAGE','374477',jdecode('Vogesen+-+KM-Tour+2009'),jdecode(''),'/374477.html','true',[],''],
	['PAGE','332977',jdecode('Touren+-2008'),jdecode(''),'/332977.html','true',[],''],
	['PAGE','288698',jdecode('Touren+-2007'),jdecode(''),'/288698.html','true',[],''],
	['PAGE','78674',jdecode('Touren+%22Tacks%22+2006'),jdecode(''),'/78674.html','true',[],''],
	['PAGE','223298',jdecode('Stammtisch-Touren+2006'),jdecode(''),'/223298.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='TOI_Waves_1';
theSitetree.paletteFamily='A4A3A7';
theSitetree.keyvisualId='10836';
theSitetree.keyvisualName='kv_10836.jpg';
theSitetree.fontsetId='31849';
theSitetree.graphicsetId='13644';
theSitetree.contentColor='121212';
theSitetree.contentBGColor='bbc7d3';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Waves_1',
				paletteFamily: 	'A4A3A7',
				keyvisualId: 	'10836',
				keyvisualName: 	'kv_10836.jpg',
				fontsetId: 		'31849',
				graphicsetId: 	'13644',
				contentColor: 	'121212',
				contentBGColor: 'bbc7d3',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '148977',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '148977',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '379277',
internalId:  '',
customField: '20090718-212629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222077',
internalId:  '',
customField: '20090701-203139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14326',
internalId:  '',
customField: '20090701-204227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78674',
internalId:  '',
customField: '20080328-221917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223298',
internalId:  '',
customField: '20090919-205721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148977',
internalId:  '',
customField: '20090407-202455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288698',
internalId:  '',
customField: '20090328-233045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288677',
internalId:  '',
customField: '20090701-203441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '332977',
internalId:  '',
customField: '20090315-002013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '374477',
internalId:  '',
customField: '20090627-125435'
};
var canonHostname = 'cfawrk06.aul.t-online.de';
var accountId     = 'ATOIX0INEWBN';
var companyName   = 'WILLKOMMEN+BEI+DEN+%22TACKS%22';
var htmlTitle	  = 'Tacks-Site';
var metaKeywords  = 'Gardasee%2C+Pfaelzer%2C+Tourenfahrer%2C+Tack%2C+Lago+di+Garda%2C+BMW+%2C+1150GS%2C+F650%2C+Brig+Falcon+450%2C+';
var metaContents  = 'Aktivitaeten+der+Familie+Tack+-+mit+zusaetzlichen+Informationen+ueber+den+Motorradfahrer+-+Stammtisch+der+Pfaelzer+Tourenfahrer';
					                                                                    
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 */					                                                            
