/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','3601',jdecode('Kunst-Reproduktionen'),jdecode(''),'/3601/index.html','true',[ 
		['PAGE','3622',jdecode('klassische+%26+moderne+Kunst'),jdecode(''),'/3601/3622.html','true',[],''],
		['PAGE','3664',jdecode('gemalte+Fotografien'),jdecode(''),'/3601/3664.html','true',[],'']
	],''],
	['PAGE','3706',jdecode('%C3%96ffnungszeiten+%2F+Presse'),jdecode(''),'/3706.html','true',[],''],
	['PAGE','3727',jdecode('Kontakt'),jdecode(''),'/3727/index.html','true',[ 
		['PAGE','5601',jdecode('Kontakt+-+%C3%96ffnungszeiten+%28Folgeseite%29'),jdecode(''),'/3727/5601.html','false',[],'']
	],''],
	['PAGE','3685',jdecode('So+finden+Sie+uns'),jdecode(''),'/3685.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
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: 		'10555',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '3727',
internalId:  'ahopt0inezjl113077bd0d3',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5601',
internalId:  'ahopt0inezjl113077bd0d3',
customField: 'followUp'
};
var canonHostname = 'webomat';
var accountId     = 'AHOPT0INEZJL';
var companyName   = 'SPL%C3%9CGEN-GALLERY';
var htmlTitle	  = 'Spl%C3%BCgen-Gallery+044+201+05+34';
var metaKeywords  = 'alden+hotel+spl%C3%BCgenschloss+++architektur++art++contemporary++exhibition++galerie++galleries++gallery++reproduction++reproduktion+kunstkopie+kunstf%C3%A4lschung+Van+Gogh+Monet+Lempicka+Hodler++atelier++ber%C3%BChmte+k%C3%BCnstler++fotos++gem%C3%A4lde++bildergalerie++bilderrahmen++expressionismus++fotografie++z%C3%BCrich+gallery++hand+painted++handpainted++++klimt++picasso++kunst+++kunstwerke++++kunstgeschichte+++k%C3%BCnstler++kunstmaler++landschaft++landschaften++leinwand++malen++maler++malerei++picture+gallery+pop-art++portrait++lichtenstein++schiele++schweizer+secession+spluegen-gallery++splugen++spl%C3%BCgen++spl%C3%BCgen+galerie++spl%C3%BCgenstr++spl%C3%BCgenstrasse+z%C3%BCrich+++++++++++++++++++';
var metaContents  = 'Galerie+f%C3%BCr+Kunstreproduktionen+und+gemalter+Fotografien+++Gallery+for+hand+painted+art+reproductions+++Ausstellungen+junger+K%C3%BCnstlerInnen++Exibitions+of+young+artists';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
