/* [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','10601',jdecode('Home'),jdecode(''),'/10601.html','true',[],''],
	['PAGE','16514',jdecode('Galerie'),jdecode(''),'/16514/home.html','true',[ 
		['PAGE','14814',jdecode('Elmar+Bambach+'),jdecode(''),'/16514/14814.html','true',[],''],
		['PAGE','71014',jdecode('Lisa+Biedlingmaier'),jdecode(''),'/16514/71014.html','true',[],''],
		['PAGE','25514',jdecode('Veronica+Brovall+'),jdecode(''),'/16514/25514.html','true',[],''],
		['PAGE','66514',jdecode('Michael+Grudziecki'),jdecode(''),'/16514/66514.html','true',[],''],
		['PAGE','68314',jdecode('April+Gertler+'),jdecode(''),'/16514/68314.html','true',[],''],
		['PAGE','10612',jdecode('Eva+K%C3%B6stner'),jdecode(''),'/16514/10612.html','true',[],''],
		['PAGE','28814',jdecode('Gertler+I+Plefka+I+Wolter'),jdecode(''),'/16514/28814.html','true',[],''],
		['PAGE','14619',jdecode('Monika+Romstein'),jdecode(''),'/16514/14619.html','true',[],''],
		['PAGE','67414',jdecode('Cristina+Szilly'),jdecode(''),'/16514/67414.html','true',[],''],
		['PAGE','69914',jdecode('Wintersalon+2008'),jdecode(''),'/16514/69914.html','true',[],''],
		['PAGE','77914',jdecode('Wintersalon+2010'),jdecode(''),'/16514/77914.html','true',[],'']
	],''],
	['PAGE','18114',jdecode('Kunstberatung'),jdecode(''),'/18114.html','true',[],''],
	['PAGE','46214',jdecode('Kuratierte+Ausstellungen'),jdecode(''),'/46214.html','true',[],''],
	['PAGE','57114',jdecode('News'),jdecode(''),'/57114.html','true',[],''],
	['PAGE','54414',jdecode('Editionen'),jdecode(''),'/54414.html','true',[],''],
	['PAGE','10607',jdecode('Kontakt'),jdecode(''),'/10607.html','true',[],''],
	['PAGE','10627',jdecode('Impressum'),jdecode(''),'/10627.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16514',
internalId:  '',
customField: '20110701-112136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10627',
internalId:  '',
customField: '20080121-105706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20111019-155516'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10607',
internalId:  '',
customField: '20100220-155403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14814',
internalId:  '',
customField: '20100816-135609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25514',
internalId:  '',
customField: '20080204-211005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14619',
internalId:  '',
customField: '20100816-140219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28814',
internalId:  '',
customField: '20100816-135927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18114',
internalId:  '',
customField: '20100816-151016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57114',
internalId:  '',
customField: '20100818-115502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10612',
internalId:  '',
customField: '20051115-132505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46214',
internalId:  '',
customField: '20100221-143224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66514',
internalId:  '',
customField: '20110805-161925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67414',
internalId:  '',
customField: '20100611-143154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71014',
internalId:  '',
customField: '20100220-154843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69914',
internalId:  '',
customField: '20100220-152618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54414',
internalId:  '',
customField: '20100220-172739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68314',
internalId:  '',
customField: '20100220-150422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77914',
internalId:  '',
customField: '20110120-105806'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0INEX72';
var companyName   = 'Kunstberatung';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

