/* [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','4599',jdecode('Home'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','4683',jdecode('Lichtbalken+-Warntechnik'),jdecode(''),'/4683/index.html','true',[ 
		['PAGE','77877',jdecode('Polizei'),jdecode(''),'/4683/77877.html','true',[],''],
		['PAGE','77904',jdecode('Feuerwehren+-+Ambulanzen'),jdecode(''),'/4683/77904.html','true',[],''],
		['PAGE','132805',jdecode('Frontblitzer'),jdecode(''),'/4683/132805.html','true',[],''],
		['PAGE','132832',jdecode('Kennleuchten'),jdecode(''),'/4683/132832.html','true',[],''],
		['PAGE','132859',jdecode('Suchscheinwerfer'),jdecode(''),'/4683/132859.html','true',[],''],
		['PAGE','134329',jdecode('Zubeh%C3%B6r'),jdecode(''),'/4683/134329.html','true',[],'']
	],''],
	['PAGE','9920',jdecode('Zivilschutzsirenen'),jdecode(''),'/9920.html','true',[],''],
	['PAGE','10154',jdecode('Sicherheitstechnik'),jdecode(''),'/10154/index.html','true',[ 
		['PAGE','76990',jdecode('Funk+Alarmanlagen'),jdecode(''),'/10154/76990.html','true',[],''],
		['PAGE','4737',jdecode('Video%C3%BCberwachung'),jdecode(''),'/10154/4737.html','true',[],'']
	],''],
	['PAGE','131119',jdecode('Einbau-Center'),jdecode(''),'/131119.html','true',[],''],
	['PAGE','19309',jdecode('Kontakt'),jdecode(''),'/19309/index.html','true',[ 
		['PAGE','79623',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/19309/79623.html','false',[],'']
	],''],
	['PAGE','19336',jdecode('Adresse%2C+Telefon'),jdecode(''),'/19336.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='6683B6';
theSitetree.keyvisualId='2449';
theSitetree.keyvisualName='computer.jpg';
theSitetree.fontsetId='403';
theSitetree.graphicsetId='461';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'6683B6',
				keyvisualId: 	'2449',
				keyvisualName: 	'computer.jpg',
				fontsetId: 		'403',
				graphicsetId: 	'461',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'6683B6',
				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:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '19309',
internalId:  'abw0x0in2cs0cdb280d14e5fda0b',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '79623',
internalId:  'abw0x0in2cs0cdb280d14e5fda0b',
customField: 'followUp'
};
var canonHostname = 'support.hptworkderdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2CS0';
var companyName   = 'Nanzer+Kommunikationstechnik+GmbH';
var htmlTitle	  = 'NANZER+KOMMUNIKATIONSTECHNIK+GmbH';
var metaKeywords  = 'Alarmanlagen+Sicherheitstechnik+Polizei+Feuerwehr+Ambulanz+Video%C3%BCberwachung';
var metaContents  = 'Warntechnik+f%C3%BCr+Polizei+Feuerwehr+und+Ambulanz.+Sicherheitstechnik+-+ZivilschutzsirenenanlagenEinbruchalarmanlagen+%2F+Video%C3%BCberwachung%2C+Alarmanlagen';
					                                                                    
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 */					                                                            

