/* [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','15201',jdecode('Profile'),jdecode(''),'/15201/home.html','true',[ 
		['PAGE','62901',jdecode('Deutsch'),jdecode(''),'/15201/62901.html','true',[],'']
	],''],
	['PAGE','15207',jdecode('Services'),jdecode(''),'/15207/home.html','true',[ 
		['PAGE','21101',jdecode('Deutsch'),jdecode(''),'/15207/21101.html','true',[],'']
	],''],
	['PAGE','15217',jdecode('Terms'),jdecode(''),'/15217/home.html','true',[ 
		['PAGE','21301',jdecode('Deutsch'),jdecode(''),'/15217/21301.html','true',[],'']
	],''],
	['PAGE','15227',jdecode('Impressum'),jdecode(''),'/15227.html','true',[],''],
	['PAGE','15222',jdecode('Disclaimer'),jdecode(''),'/15222.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Bewerbung6';
theSitetree.paletteFamily='FCE2BC';
theSitetree.keyvisualId='8639';
theSitetree.keyvisualName='kv_8639.jpg';
theSitetree.fontsetId='17150';
theSitetree.graphicsetId='12559';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFF2D8';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bewerbung6',
				paletteFamily: 	'FCE2BC',
				keyvisualId: 	'8639',
				keyvisualName: 	'kv_8639.jpg',
				fontsetId: 		'17150',
				graphicsetId: 	'12559',
				contentColor: 	'000000',
				contentBGColor: 'FFF2D8',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20120125-172443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20111231-165154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15207',
internalId:  '',
customField: '20120125-171555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20120125-172234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15217',
internalId:  '',
customField: '20120125-172207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15227',
internalId:  '',
customField: '20120125-172301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15222',
internalId:  '',
customField: '20111231-165623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62901',
internalId:  '',
customField: '20111229-085743'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INEFS8';
var companyName   = 'Erwin+H%C3%B6hne+Translations+EHTS';
var htmlTitle	  = 'English+German+Translations';
var metaKeywords  = 'Erwin+H%C3%B6hne+Translation+Services%2C+Germany%2C+Translations%2C+English%2C+German%2C+Spanish%2CProduction%2C+Logistics%2C+Haircosmetics%2C+Beauty+Care%2C+Market+Surveys%2C+reliable%2C+expert';
var metaContents  = 'Professional+English+German+documentation+translation+.+Native+German+speaker.+Specializing+in+haircosmetics+and+beautycare.+Areas+foreign+trade%2C+marketing%2C+production+and+logistics.';
					                                                                    
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 */					                                                            

