/* [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','17101',jdecode('HOME'),jdecode(''),'/17101.html','true',[],''],
	['PAGE','17111',jdecode('SYSTEMINTEGRATION'),jdecode(''),'/17111/index.html','true',[ 
		['PAGE','17116',jdecode('PRODUKTE'),jdecode(''),'/17111/17116.html','true',[],''],
		['PAGE','22702',jdecode('BILDER+SYSTEMINTEGR.'),jdecode(''),'/17111/22702.html','true',[],'']
	],''],
	['PAGE','17106',jdecode('EVENT+TECHNIK'),jdecode(''),'/17106/index.html','true',[ 
		['PAGE','32002',jdecode('BILDER+EVENT+TECHNIK'),jdecode(''),'/17106/32002.html','true',[],'']
	],''],
	['PAGE','4701',jdecode('KONTAKT'),jdecode(''),'/4701/index.html','true',[ 
		['PAGE','15701',jdecode('%C3%9CBER+UNS'),jdecode(''),'/4701/15701.html','true',[],''],
		['PAGE','23202',jdecode('ANFAHRT'),jdecode(''),'/4701/23202.html','true',[],'']
	],''],
	['PAGE','17151',jdecode('INFO'),jdecode(''),'/17151.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='1E3A6F';
theSitetree.keyvisualId='2029';
theSitetree.keyvisualName='business.jpg';
theSitetree.fontsetId='339';
theSitetree.graphicsetId='396';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='1E3A6F';
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'1E3A6F',
				keyvisualId: 	'2029',
				keyvisualName: 	'business.jpg',
				fontsetId: 		'339',
				graphicsetId: 	'396',
				contentColor: 	'DDDDDD',
				contentBGColor: '1E3A6F',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'1E3A6F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20090511-135652'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20071015-215236'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '22702',
internalId:  '10b0bf2d9c3',
customField: 'g.11c5ukt9c.l10ffke1pt.3o'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '23202',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '17101',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '17101',
internalId:  '1501',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '32002',
internalId:  '10b15ef089f',
customField: 'g.11caunehr.4tfhriqte5b.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17106',
internalId:  '',
customField: '20090511-162310'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17111',
internalId:  '',
customField: '20090511-173304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17116',
internalId:  '',
customField: '20090511-183957'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32002',
internalId:  '',
customField: '20090511-135031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22702',
internalId:  '',
customField: '20090511-184144'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20090511-142353'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23202',
internalId:  '',
customField: '20090511-150357'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17151',
internalId:  '',
customField: '20090511-151215'
};
var canonHostname = 'cm4all.inode.at';
var accountId     = 'AIN010IN2YK8';
var companyName   = 'DELTA+plus%2C+Event+%26+Technik';
var htmlTitle	  = 'DELTA+plus+Event++Technik';
var metaKeywords  = 'Event+Eventtechnik+Veranstaltung+Veranstaltungstechnik+Messen+Messe+Broadcast+Systemintegration+Multimedia+Multimediasteuerung+Crestron+Avid+Xpress+Liquid+JVC+event+technik+multimedia+Kirchgasser+Touchpanel+Programmierung+adagio';
var metaContents  = 'Eventtechnik%2C+Veranstaltungstechnik%2C+Messen%2C+Messe%2C+Broadcast%2C+Systemintegration%2C+Multimediasteuerung%2C+Crestron%2C+Avid+Xpress%2C+Liquid%2C+JVC%2C+Kirchgasser%2C+Delta';
					                                                                    
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 */					                                                            

