/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4655',jdecode('Wir+%C3%BCber+uns%2FAbout+us'),jdecode(''),'/4655.html','true',[],''],
	['PAGE','4898',jdecode('Aktuelles'),jdecode(''),'/4898.html','true',[],''],
	['PAGE','4736',jdecode('Kontakt%2FContact'),jdecode(''),'/4736/index.html','true',[ 
		['PAGE','4790',jdecode('N%C3%A4chste+Messetermine%2FNext+Exhibition'),jdecode(''),'/4736/4790.html','true',[],'']
	],''],
	['PAGE','5357',jdecode('Materialien%2FMaterials'),jdecode(''),'/5357.html','true',[],''],
	['PAGE','5384',jdecode('SAWACO+of+Switzerland'),jdecode(''),'/5384/index.html','true',[ 
		['PAGE','21470',jdecode('Herren%2FMen'),jdecode(''),'/5384/21470.html','true',[],''],
		['PAGE','18111',jdecode('Damen%2FWoman'),jdecode(''),'/5384/18111.html','true',[],'']
	],''],
	['PAGE','4817',jdecode('HOCOSA+of+Switzerland'),jdecode(''),'/4817/index.html','true',[ 
		['PAGE','24498',jdecode('B%C3%A9b%C3%A9%2FBaby'),jdecode(''),'/4817/24498.html','true',[],''],
		['PAGE','24525',jdecode('Kinder%2FKids'),jdecode(''),'/4817/24525.html','true',[],''],
		['PAGE','23966',jdecode('Herren%2FMen'),jdecode(''),'/4817/23966.html','true',[],''],
		['PAGE','23993',jdecode('Damen%2FWoman'),jdecode(''),'/4817/23993.html','true',[],'']
	],''],
	['PAGE','5438',jdecode('Produkte+HOCOSA+Ecological+Underwear'),jdecode(''),'/5438.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='b0cbd6';
theSitetree.keyvisualId='1970';
theSitetree.keyvisualName='fitness.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'b0cbd6',
				keyvisualId: 	'1970',
				keyvisualName: 	'fitness.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'b0cbd6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4598',
internalId:  '2141891',
customField: '1501'
};
var canonHostname = 'support.hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXVNA';
var companyName   = 'SAWACO+of+Switzerland+';
var htmlTitle	  = 'Welcom+of+the+world+of+SAWACO+and+HOCOSA++of+Switzerland+the+finest+ecological+underwear+for+all';
var metaKeywords  = 'w%C3%A4sche%2Cunterw%C3%A4sche%2Cwolle%2Cwolle%2Fseide%2C+natur%2C+natura%2Cnaturel%2Ceco%2Cnachtw%C3%A4sche%2Cunderwear%2Cnightwear%2Ckinderw%C3%A4sche%2Cb%C3%A9b%C3%A9w%C3%A4sch%2Csport%2Csportw%C3%A4sche%2Ctagw%C3%A4sche%2Clingerie%2Cerwunderwear%2Cslip%2Cseide%2Cbaumwolle%2Cproduktion%2Chocosa%2Csawaco%2Cdemeter%2Chess-natur%2Codlo%2Ctriumpf%2Coekoprodukte%2C+ecologico%2C+oeko%2Ccalida%2Cmedima%2Cmay%2Czimmerli%2Cadidas%2Cnick%2C';
var metaContents  = '';
					                                                                    
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 */					                                                            

