/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],''],
	['PAGE','46206',jdecode('bi%C3%9Fchen+Kunst'),jdecode(''),'/46206/index.html','true',[ 
		['PAGE','20801',jdecode('Tretbootflotte+'),jdecode(''),'/46206/20801.html','true',[],''],
		['PAGE','46725',jdecode('Tischzwerge'),jdecode(''),'/46206/46725.html','true',[],'']
	],''],
	['PAGE','207',jdecode('%C3%9Cber+Britta+Dinzl'),jdecode(''),'/207/index.html','true',[ 
		['PAGE','212',jdecode('Lieblin-ks+%28private%29'),jdecode(''),'/207/212.html','true',[],'']
	],''],
	['PAGE','63501',jdecode('Alte+H%C3%BCte'),jdecode(''),'/63501/index.html','true',[ 
		['PAGE','81301',jdecode('Im+Keller+07'),jdecode(''),'/63501/81301.html','true',[],'']
	],''],
	['PAGE','51801',jdecode('Spannende+K%C3%BCnstler'),jdecode(''),'/51801.html','true',[],''],
	['PAGE','217',jdecode('Kontakt'),jdecode(''),'/217/index.html','true',[ 
		['PAGE','6402',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/217/6402.html','false',[],''],
		['PAGE','19302',jdecode('restricted'),jdecode(''),'/217/19302.html','true',[],'']
	],''],
	['PAGE','26002',jdecode('Anfahrt'),jdecode(''),'/26002.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Simple';
theSitetree.paletteFamily='B5A694';
theSitetree.keyvisualId='2562';
theSitetree.keyvisualName='computer.jpg';
theSitetree.fontsetId='10753';
theSitetree.graphicsetId='10457';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='b5a694';
var theTemplate={
				name: 			'Simple',
				paletteFamily: 	'B5A694',
				keyvisualId: 	'2562',
				keyvisualName: 	'computer.jpg',
				fontsetId: 		'10753',
				graphicsetId: 	'10457',
				contentColor: 	'000000',
				contentBGColor: 'b5a694',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'857157',
				e_color: 		'FFFFFF',
				f_color: 		'817E7E',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '19302',
internalId:  '10158d186c8',
customField: 'g.105cbod0c.dh987mproa.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20100416-151457'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '217',
internalId:  'ain010in21mb10042154f56',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6402',
internalId:  'ain010in21mb10042154f56',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63501',
internalId:  '',
customField: '20081215-090811'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46206',
internalId:  '',
customField: '20081202-230518'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20081204-222900'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100418-202215'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '26002',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46725',
internalId:  '',
customField: '20081204-222831'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '212',
internalId:  '',
customField: '20090227-135508'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51801',
internalId:  '',
customField: '20100325-145905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20100412-170251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6402',
internalId:  '',
customField: '20041116-165200'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19302',
internalId:  '',
customField: '20050109-195339'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26002',
internalId:  '',
customField: '20070202-164605'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81301',
internalId:  '',
customField: '20080312-091642'
};
var canonHostname = 'cm4all.inode.at';
var accountId     = 'AIN010IN21MB';
var companyName   = 'BRITTA+DINZL+bisschen+Kunst+%28a+little+Art%29';
var htmlTitle	  = 'Britta+Dinzl+++bisschen+Kunst';
var metaKeywords  = 'Salzburg+Britta+Dinzl+M%C3%B6nchsberg+Kunst+Austria+%C3%96sterreich+Kunst+und+Kuh+Mozartkugel+Biennale+Florenz';
var metaContents  = 'Kunst+Bilder+Britta+Dinzl';
					                                                                    
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 */					                                                            
