/* [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','13712',jdecode('Startseite'),jdecode(''),'/13712.html','true',[],''],
	['PAGE','13723',jdecode('Die+Mk+26B'),jdecode(''),'/13723/home.html','true',[ 
		['PAGE','16212',jdecode('Kurzbeschreibung'),jdecode(''),'/13723/16212.html','true',[],''],
		['PAGE','19112',jdecode('Konstruktion'),jdecode(''),'/13723/19112.html','true',[],''],
		['PAGE','19133',jdecode('Werkzeuge'),jdecode(''),'/13723/19133.html','true',[],'']
	],''],
	['PAGE','17612',jdecode('Ha%C3%BCfig+gestellte+Fragen'),jdecode(''),'/17612.html','true',[],''],
	['PAGE','13728',jdecode('Preise'),jdecode(''),'/13728.html','true',[],''],
	['PAGE','18312',jdecode('For+Sale%2C+News%2C+Links'),jdecode(''),'/18312.html','true',[],''],
	['PAGE','21212',jdecode('Schreiben+Sie+uns'),jdecode(''),'/21212.html','true',[],''],
	['PAGE','18012',jdecode('Impressum%2FDisclaimer'),jdecode(''),'/18012.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-12645480']={
webappId:    '1501',
documentId:  '13712',
internalId:  '12645480',
customField: '1501'
};
webappMappings['1008']=webappMappings['1008-28455552']={
webappId:    '1008',
documentId:  '21212',
internalId:  '28455552',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13712',
internalId:  '',
customField: '20111125-113328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13723',
internalId:  '',
customField: '20101123-150700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16212',
internalId:  '',
customField: '20100929-134255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19112',
internalId:  '',
customField: '20100929-115453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19133',
internalId:  '',
customField: '20081217-150959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17612',
internalId:  '',
customField: '20101123-145452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13728',
internalId:  '',
customField: '20111125-113103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18312',
internalId:  '',
customField: '20110605-123653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21212',
internalId:  '',
customField: '20101005-160444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18012',
internalId:  '',
customField: '20101014-131927'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INE2VR';
var companyName   = 'SPITFIRE+Mk+26B';
var htmlTitle	  = 'Supermarine+Spitfire+Mk26';
var metaKeywords  = 'Supermarine%2C+Spitfire%2C+Mk26%2C+Experimental%2C+Selbstbau%2C+Replica%2C+Replika%2C+zweisitzig%2C+doppelsitzig%2C+Kitbuild%2C+Kit%2C+Bausatz%2C+Quickbuild%2C+Quick-Build%2C+Nachbau%2C+EAA%2C+OUV%2C+PFA%2C+Zulassung%2C+Jabiru%2C+Isuzu%2C+GM%2C+Selbstbau-Flugzeug%2C+WW+II%2C+Australien%2C+Schnellbausatz';
var metaContents  = 'Vorstellung+des+Selbstbau-Flugzeugs+Supermarine+Spitfire+Mk26+mit+Leistungsdaten%2C+Preisen%2C+Bildern+und+Beschreibunhgen.';
					                                                                    
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 */					                                                            

