/* [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','207',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/207/index.html','true',[ 
		['PAGE','212',jdecode('Das+Unternehmen'),jdecode(''),'/207/212.html','true',[],''],
		['PAGE','217',jdecode('Unsere+Philosophie'),jdecode(''),'/207/217.html','true',[],'']
	],''],
	['PAGE','222',jdecode('Produkte%2C+Leistungen'),jdecode(''),'/222/index.html','true',[ 
		['PAGE','227',jdecode('Laserschneiden+-+Blech'),jdecode(''),'/222/227.html','true',[],''],
		['PAGE','8301',jdecode('Laserschneiden+-+Rohre'),jdecode(''),'/222/8301.html','true',[],''],
		['PAGE','232',jdecode('Abkanten'),jdecode(''),'/222/232.html','true',[],''],
		['PAGE','237',jdecode('Schweissen'),jdecode(''),'/222/237.html','true',[],''],
		['PAGE','8901',jdecode('Weitere+Fertigungstechniken'),jdecode(''),'/222/8901.html','true',[],'']
	],''],
	['PAGE','14201',jdecode('Konstruktion'),jdecode(''),'/14201.html','true',[],''],
	['PAGE','242',jdecode('Kontakt'),jdecode(''),'/242.html','true',[],''],
	['PAGE','6701',jdecode('Impressum'),jdecode(''),'/6701.html','true',[],''],
	['PAGE','16301',jdecode('AGBs'),jdecode(''),'/16301.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='2023';
theSitetree.keyvisualName='appointment.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='391';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='990000';
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'990000',
				keyvisualId: 	'2023',
				keyvisualName: 	'appointment.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'391',
				contentColor: 	'FFFFFF',
				contentBGColor: '990000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'990000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20070320-092011'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20070320-231933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '222',
internalId:  '',
customField: '20080123-143905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '227',
internalId:  '',
customField: '20070313-215952'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20080123-144346'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20080123-144544'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '212',
internalId:  '',
customField: '20070327-224336'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20070313-222738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '237',
internalId:  '',
customField: '20070313-223416'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20080127-184824'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '242',
internalId:  '',
customField: '20070313-222813'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20070313-222841'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20090427-184842'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20111021-161955'
};
var canonHostname = 'cm4all.inode.at';
var accountId     = 'AIN010IN26VX';
var companyName   = 'METALLBEARBEITUNG';
var htmlTitle	  = 'CNC+Blechbearbeitung%2C+Laserzuschnitte+und+Laserschneiden+-+Croy+GmbH+Kottingbrunn';
var metaKeywords  = 'Laserzuschnitte%2C+CNC+Blechbearbeitung%2C+Laserschneiden%2C+abkanten%2C+schweissen%2C+verzinken%2C+pulverbeschichten';
var metaContents  = 'Laserzuschnitte%2C+CNC+Blechbearbeitung%2C+Laserschneiden+-+Croy+GmbH';
					                                                                    
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 */					                                                            

