/* [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('www.herg.ch'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4655',jdecode('Pharmacology'),jdecode(''),'/4655.html','true',[],''],
	['PAGE','4682',jdecode('ICH+Guidelines'),jdecode(''),'/4682.html','true',[],''],
	['PAGE','4736',jdecode('LQTS+Drugs'),jdecode(''),'/4736.html','true',[],''],
	['PAGE','4790',jdecode('Publications'),jdecode(''),'/4790.html','true',[],''],
	['PAGE','4817',jdecode('HERG+Services'),jdecode(''),'/4817.html','true',[],''],
	['PAGE','76638',jdecode('Network+Forum'),jdecode(''),'/76638.html','true',[],''],
	['PAGE','8347',jdecode('About+%26+Contact'),jdecode(''),'/8347.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='2041';
theSitetree.keyvisualName='partner.jpg';
theSitetree.fontsetId='338';
theSitetree.graphicsetId='391';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='990000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'990000',
				keyvisualId: 	'2041',
				keyvisualName: 	'partner.jpg',
				fontsetId: 		'338',
				graphicsetId: 	'391',
				contentColor: 	'DDDDDD',
				contentBGColor: '990000',
				a_color: 		'990000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
var canonHostname = 'webomat';
var accountId     = 'Ahp010INEUX4';
var companyName   = 'Swiss+HERG+Competence+Center';
var htmlTitle	  = 'The+HERG+Association';
var metaKeywords  = 'herg%2C+glp+herg%2C+herg+glp%2C+herg+channel%2C+herg+potassium+channel%2C+cardiac+ion+channel%2C+rapid+delayed+rectifier+current%2C+ICH+guidelines%2C+ICH%2C+ICH+S7A%2C+ICH+S7B%2C+GLP%2C+long+QT+syndrome%2C+cardiac+action+potential%2C+APD%2C+QT+prolongation%2C+pharmacology%2C+safety+pharmacology%2C+herg+screening%2C+Swissmedic%2C+CPMP%2C+Points+to+Consider+Document%2C+telemetry%2C+in+vivo%2C+in+vitro%2C+preclinical+safety+assessment%2C+patch-clamp%2C+patch+clamp%2C+IKr%2C+cisapride%2C+terfenadine%2C+astemizole%2C+grepafloxacin%2C+QT+interval%2C+cardiac+arrhythmias%2C+FDA%2C+cardiac+myocyte%2C+myocytes%2C+C-type+activation%2C+SHCC%2C+Swiss+Herg+Competence+Center%2C+The+HERG+Association%2C+herg+liability';
var metaContents  = 'SHCC+%28Swiss+HERG+Competence+Center%29+is+a+Swiss+NPO+providing+high+quality%2Fimpact+HERG+information+to+patients%2C+physicians+and+scientists.';
					                                                                    
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 */					                                                            
