/* [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','13801',jdecode('Home'),jdecode(''),'/13801.html','true',[],''],
	['PAGE','13807',jdecode('News'),jdecode(''),'/13807.html','true',[],''],
	['PAGE','13822',jdecode('+Whisky+Highlight+%C2%B4s'),jdecode(''),'/13822/home.html','true',[ 
		['PAGE','45201',jdecode('Voting'),jdecode(''),'/13822/45201.html','true',[],''],
		['PAGE','73701',jdecode('Anfahrt'),jdecode(''),'/13822/73701.html','true',[],'']
	],''],
	['PAGE','48801',jdecode('Veranstaltungskalender'),jdecode(''),'/48801.html','true',[],''],
	['PAGE','14216',jdecode('G%C3%A4stebuch'),jdecode(''),'/14216/home.html','true',[ 
		['PAGE','14217',jdecode('Eintr%C3%A4ge'),jdecode(''),'/14216/14217.html','true',[],'']
	],''],
	['PAGE','14615',jdecode('Bilder'),jdecode(''),'/14615.html','true',[],''],
	['PAGE','17610',jdecode('Links'),jdecode(''),'/17610.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='D30303';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10575';
theSitetree.graphicsetId='10527';
theSitetree.contentColor='FF0000';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cable',
				paletteFamily: 	'D30303',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10575',
				graphicsetId: 	'10527',
				contentColor: 	'FF0000',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-14216atoix0inevr2']={
webappId:    '1002',
documentId:  '14216',
internalId:  '14216atoix0inevr2',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-14216atoix0inevr2']={
webappId:    '1002',
documentId:  '14217',
internalId:  '14216atoix0inevr2',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-12830510']={
webappId:    '1501',
documentId:  '13801',
internalId:  '12830510',
customField: '1501'
};
webappMappings['1007']=webappMappings['1007-10398967b73']={
webappId:    '1007',
documentId:  '14615',
internalId:  '10398967b73',
customField: 'g.10ec965f9.64oquvuneh.3o'
};
webappMappings['1005']=webappMappings['1005-10b9a119140.59286c55']={
webappId:    '1005',
documentId:  '45201',
internalId:  '10b9a119140.59286c55',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20110303-104052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13807',
internalId:  '',
customField: '20110326-174938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13822',
internalId:  '',
customField: '20110131-144302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48801',
internalId:  '',
customField: '20110319-185637'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '73701',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45201',
internalId:  '',
customField: '20081127-172820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14216',
internalId:  '',
customField: '20090628-233711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14217',
internalId:  '',
customField: '20090206-170849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14615',
internalId:  '',
customField: '20070114-195456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17610',
internalId:  '',
customField: '20110313-220050'
};
webappMappings['7091']=webappMappings['7091-25173']={
webappId:    '7091',
documentId:  '13801',
internalId:  '25173',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['7091']=webappMappings['7091-17630']={
webappId:    '7091',
documentId:  '13822',
internalId:  '17630',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['7091']=webappMappings['7091-57538']={
webappId:    '7091',
documentId:  '13801',
internalId:  '57538',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20110318-091001'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INEVR2';
var companyName   = 'Whisky+-+Treff+-+Wattenscheid';
var htmlTitle	  = 'Homepage+des+Whisky+-Treff+-+Wattenscheids';
var metaKeywords  = 'Whisky%2C+Whiskey+und+Wattenscheid.';
var metaContents  = 'Fan+-+Site+der+Whiskyfreunde+Wattenscheids%2C+Veranstalltungen%2C+Events+und+pers%C3%B6nliche+Informationen.';
					                                                                    
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 */					                                                            

