/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40836',jdecode('Geschichte+des+Square+Dance'),jdecode(''),'/40836.html','true',[],''],
	['PAGE','40555',jdecode('%C3%9Cber+meine+Person'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','40628',jdecode('Termine+%2F+F+L+Y+E+R+'),jdecode(''),'/40628/home.html','true',[ 
		['PAGE','42661',jdecode('Pressemitteilungen'),jdecode(''),'/40628/42661.html','true',[],'']
	],''],
	['PAGE','40659',jdecode('Bildergalerie'),jdecode(''),'/40659/home.html','true',[ 
		['PAGE','40671',jdecode('Freizeit%2FFamilie%2FSquaredance'),jdecode(''),'/40659/40671.html','true',[],'']
	],''],
	['PAGE','42074',jdecode('Video'),jdecode(''),'/42074.html','true',[],''],
	['PAGE','40564',jdecode('Kontakt'),jdecode(''),'/40564.html','true',[],''],
	['PAGE','40573',jdecode('Impressum'),jdecode(''),'/40573.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='TOI_Segel_1';
theSitetree.paletteFamily='B32B16';
theSitetree.keyvisualId='10722';
theSitetree.keyvisualName='kv_10722.jpg';
theSitetree.fontsetId='31819';
theSitetree.graphicsetId='13592';
theSitetree.contentColor='595959';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Segel_1',
				paletteFamily: 	'B32B16',
				keyvisualId: 	'10722',
				keyvisualName: 	'kv_10722.jpg',
				fontsetId: 		'31819',
				graphicsetId: 	'13592',
				contentColor: 	'595959',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20111217-202720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42074',
internalId:  '',
customField: '20091107-173808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42661',
internalId:  '',
customField: '20110531-130457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20111217-201539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20110204-210145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40573',
internalId:  '',
customField: '20110724-112656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40659',
internalId:  '',
customField: '20090519-114320'
};
webappMappings['1007']=webappMappings['1007-11adb88b3ce']={
webappId:    '1007',
documentId:  '40671',
internalId:  '11adb88b3ce',
customField: 'g.13bdoaoi1.ucrt4mg3b.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40671',
internalId:  '',
customField: '20111217-194412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40628',
internalId:  '',
customField: '20120118-214852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40836',
internalId:  '',
customField: '20111217-195405'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRME8D';
var companyName   = 'Square+Dance+mit+Gaby';
var htmlTitle	  = 'Square+Dance+mit+Gaby';
var metaKeywords  = 'Roman+Sandals%2C+Gaby+Szpadzinski%2C+Square+Dance%2C+Squaredance%2C+Caller%2C+callen%2C+ecta%2C+eaasdc%2Cwww.gabyszpadzinski.de%2C+gaby+szpadzinski';
var metaContents  = 'Square+Dance+mit+Gaby.+Hier+kannst+du+mich+au%C3%9Ferhalb+der+Clubabende+bei+meinem+Heimatverein%2C+den+Roman+Sandals+aus+Xanten%2C+besuchen+und+einiges+%C3%BCber+mich+und+mein+Tun+erfahren.';
					                                                                    
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 */					                                                            

