/* [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','16064',jdecode('Startseite'),jdecode(''),'/16064.html','true',[],''],
	['PAGE','4579',jdecode('Spieltage+%2B+Aktuelles%21'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','26701',jdecode('++++Freitag++'),jdecode(''),'/26701.html','true',[],''],
	['PAGE','27101',jdecode('++++Mittwoch+'),jdecode(''),'/27101.html','true',[],''],
	['PAGE','219401',jdecode('Termine+2012'),jdecode(''),'/219401.html','true',[],''],
	['PAGE','167901',jdecode('Bridgemate-News%21'),jdecode(''),'/167901.html','true',[],''],
	['PAGE','32301',jdecode('Lerne+Bridge+zu+spielen+..'),jdecode(''),'/32301.html','true',[],''],
	['PAGE','230401',jdecode('Sommerfest+2011%2F+2012'),jdecode(''),'/230401.html','true',[],''],
	['PAGE','229601',jdecode('Geburtstage'),jdecode(''),'/229601.html','true',[],''],
	['PAGE','51501',jdecode('Soester+Fehde-Turnier+14.08.09'),jdecode(''),'/51501.html','false',[],''],
	['PAGE','14002',jdecode('G%C3%A4stebuch'),jdecode(''),'/14002/home.html','false',[ 
		['PAGE','14003',jdecode('Eintr%C3%A4ge'),jdecode(''),'/14002/14003.html','true',[],'']
	],''],
	['PAGE','21801',jdecode('Lage%2F+Kontakt'),jdecode(''),'/21801.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Litfass';
theSitetree.paletteFamily='F8FBE8';
theSitetree.keyvisualId='11045';
theSitetree.keyvisualName='kv_11045.jpg';
theSitetree.fontsetId='32074';
theSitetree.graphicsetId='13773';
theSitetree.contentColor='696558';
theSitetree.contentBGColor='F8FBE8';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Litfass',
				paletteFamily: 	'F8FBE8',
				keyvisualId: 	'11045',
				keyvisualName: 	'kv_11045.jpg',
				fontsetId: 		'32074',
				graphicsetId: 	'13773',
				contentColor: 	'696558',
				contentBGColor: 'F8FBE8',
				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-14002ATOIX0INZAUY']={
webappId:    '1002',
documentId:  '14002',
internalId:  '14002ATOIX0INZAUY',
customField: 'action=form&icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2057042']={
webappId:    '1501',
documentId:  '4579',
internalId:  '2057042',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-14002ATOIX0INZAUY']={
webappId:    '1002',
documentId:  '14003',
internalId:  '14002ATOIX0INZAUY',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20120216-103053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16064',
internalId:  '',
customField: '20120217-222529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14002',
internalId:  '',
customField: '20040120-214452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20120221-123411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14003',
internalId:  '',
customField: '20040120-214452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20120221-123341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20110805-202713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32301',
internalId:  '',
customField: '20120204-225915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51501',
internalId:  '',
customField: '20090818-195537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219401',
internalId:  '',
customField: '20120221-123439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229601',
internalId:  '',
customField: '20111021-200808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167901',
internalId:  '',
customField: '20120210-210934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230401',
internalId:  '',
customField: '20111104-023153'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0INZAUY';
var companyName   = 'Bridgeclub+Soest';
var htmlTitle	  = 'Bridge+in+Soest';
var metaKeywords  = 'Spielergebnisse%2C+Spiellokale';
var metaContents  = 'Bridge+spielen+und+lernen';
					                                                                    
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 */					                                                            

