/* [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+Stra%C3%9Fenmalerei'),jdecode(''),'/4579/home.html','true',[ 
		['PAGE','195221',jdecode('Heidelberg'),jdecode(''),'/4579/195221.html','true',[],''],
		['PAGE','195242',jdecode('Frankfurt'),jdecode(''),'/4579/195242.html','true',[],'']
	],''],
	['PAGE','13701',jdecode('++Referenzen+'),jdecode(''),'/13701.html','true',[],''],
	['PAGE','195263',jdecode('Wandmalerei'),jdecode(''),'/195263/home.html','true',[ 
		['PAGE','195284',jdecode('%C3%96lbilder'),jdecode(''),'/195263/195284.html','true',[],''],
		['PAGE','195305',jdecode('Acrylbilder'),jdecode(''),'/195263/195305.html','true',[],'']
	],''],
	['PAGE','13706',jdecode('+bodypainting+'),jdecode(''),'/13706/home.html','true',[ 
		['PAGE','195326',jdecode('Airbrush-Tattoos'),jdecode(''),'/13706/195326.html','true',[],'']
	],''],
	['PAGE','196821',jdecode('Kontakt'),jdecode(''),'/196821.html','true',[],''],
	['PAGE','223421',jdecode('Anfahrt'),jdecode(''),'/223421.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='4D4CD2';
theSitetree.keyvisualId='605';
theSitetree.keyvisualName='pflanzen.jpg';
theSitetree.fontsetId='127';
theSitetree.graphicsetId='140';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Kreis',
				paletteFamily: 	'4D4CD2',
				keyvisualId: 	'605',
				keyvisualName: 	'pflanzen.jpg',
				fontsetId: 		'127',
				graphicsetId: 	'140',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'4D4CD2',
				b_color: 		'7794F8',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196821',
internalId:  '',
customField: '20120102-140052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195221',
internalId:  '',
customField: '20071030-094152'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-7908212']={
webappId:    '1501',
documentId:  '4579',
internalId:  '7908212',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20081009-110236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20071030-093745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13706',
internalId:  '',
customField: '20110907-113922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195326',
internalId:  '',
customField: '20081008-192326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195242',
internalId:  '',
customField: '20120102-141555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195263',
internalId:  '',
customField: '20081008-191925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195284',
internalId:  '',
customField: '20071030-093553'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '223421',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1008']=webappMappings['1008-35149054']={
webappId:    '1008',
documentId:  '196821',
internalId:  '35149054',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195305',
internalId:  '',
customField: '20110919-195235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223421',
internalId:  '',
customField: '20090104-181625'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INEAHN';
var companyName   = 'Manuel+Hernandez+Bastante';
var htmlTitle	  = '***+Kunstmaler+Manuel+H.Bastante%3A+Bodypainting%2C+Kunstmalerei%2C++Stra%C3%9Fenmaler+***';
var metaKeywords  = 'Airbrush%2CAusstellung%2CBodypainting%2Cevent%2Cfestival%2Cgalerie%2Cgallery%2CGem%C3%A4lde%2CGem%C3%A4ldeausstellung%2CHeidelberg%2CHeimatmaler%2CHessen%2CKleinkunst%2CK%C3%BCnstler%2Ckunstmaler%2CKunstmalerei%2CLandschaftsmaler%2CMadonnari%2CMalerei%2C%C3%96lgem%C3%A4lde%2Cpainting%2CPantomime%2CPerformance%2CPortraitmaler%2Cstra%C3%9Fenmaler%2CStrassenmaler%2CStra%C3%9Fenmalerei%2CStreetpainting%2CKunstbilder%2Cwandmalerei';
var metaContents  = 'Kunstmaler+Manuel+H.Bastante%3A+nicht+nur+Bodypainting%2C+sonder+auch+Kunstmalerei%2C+%C3%96lgem%C3%A4lde%2C+Pantomime%2C+Performance%2C+Portraitmaler%2C+Stra%C3%9Fenmaler%2C+Wandmalerei...';
					                                                                    
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 */					                                                            

