/* [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','4579',jdecode('Home+%2F+Kontakt'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','13802',jdecode('%C3%BCber+uns+%2F+Impressum'),jdecode(''),'/13802.html','true',[],''],
	['PAGE','86427',jdecode('Top+20+%2F+Neues'),jdecode(''),'/86427.html','true',[],''],
	['PAGE','13829',jdecode('T%C3%A4nze'),jdecode(''),'/13829.html','true',[],''],
	['PAGE','59139',jdecode('Videos+%2F+Fotos'),jdecode(''),'/59139/home.html','true',[ 
		['PAGE','19202',jdecode('Fotos'),jdecode(''),'/59139/19202.html','true',[],'']
	],''],
	['PAGE','13910',jdecode('Training+%2F+Schrittlexikon'),jdecode(''),'/13910.html','true',[],''],
	['PAGE','20622',jdecode('G%C3%A4stebuch'),jdecode(''),'/20622/home.html','true',[ 
		['PAGE','20623',jdecode('Eintr%C3%A4ge'),jdecode(''),'/20622/20623.html','true',[],'']
	],''],
	['PAGE','29571',jdecode('Links'),jdecode(''),'/29571.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10466';
theSitetree.graphicsetId='10916';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stars',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10466',
				graphicsetId: 	'10916',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-501405']={
webappId:    '1501',
documentId:  '4579',
internalId:  '501405',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-20622ATOIX0IN3PJ9']={
webappId:    '1002',
documentId:  '20622',
internalId:  '20622ATOIX0IN3PJ9',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-20622ATOIX0IN3PJ9']={
webappId:    '1002',
documentId:  '20623',
internalId:  '20622ATOIX0IN3PJ9',
customField: 'action=list'
};
webappMappings['7091']=webappMappings['7091-46627']={
webappId:    '7091',
documentId:  '13910',
internalId:  '46627',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20110128-140027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13829',
internalId:  '',
customField: '20120203-161440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13910',
internalId:  '',
customField: '20120203-171035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13802',
internalId:  '',
customField: '20120102-184404'
};
webappMappings['1008']=webappMappings['1008-70126376']={
webappId:    '1008',
documentId:  '4579',
internalId:  '70126376',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59139',
internalId:  '',
customField: '20100519-111038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19202',
internalId:  '',
customField: '20111114-133522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20622',
internalId:  '',
customField: '20100109-170017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20623',
internalId:  '',
customField: '20030408-191508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29571',
internalId:  '',
customField: '20120113-202634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86427',
internalId:  '',
customField: '20120203-170445'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IN3PJ9';
var companyName   = 'Forty+Fours+Sindelfingen%2FGermany';
var htmlTitle	  = 'Line+Dance+Gruppe+Forty+Fours';
var metaKeywords  = 'Tanz%2C+Line+Dance%2C+Couple+Dance%2C+Country+Dance%2C+Forty+Fours%2C+Sindelfingen%2C+Formationstanz%2C+Gruppentanz';
var metaContents  = 'Formationstanz+Line+Dance%2C+Lernen+nach+choreografierten+T%C3%A4nzen%2Cunsere+T%C3%A4nze%2C+Training+';
					                                                                    
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 */					                                                            

