image1= new Image(); 
image1.src="/images/btn_home_hover.jpg";

image2= new Image(); 
image2.src="/images/btn_about_hover.jpg"; 

image3= new Image(); 
image3.src="/images/btn_wlsurgery_hover.jpg"; 

image4= new Image(); 
image4.src="/images/btn_membership_hover.jpg"; 

image5= new Image(); 
image5.src="/images/btn_resources_hover.jpg"; 

image6= new Image(); 
image6.src="/images/btn_community_hover.jpg"; 

image7= new Image(); 
image7.src="/images/btn_contact_hover.jpg"; 

image8= new Image(); 
image8.src="/images/dropback.jpg";

	function startList()
	{
		if (document.all && document.getElementById)
		{
			navRoot = document.getElementById("mainMenu");
			for (i=0; i<navRoot.childNodes.length; i++)
			{
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI")
				{
					node.onmouseover=function()
					{
						this.className+=" over";
					}
					node.onmouseout=function()
					{
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
	



/************************************************************************************************************
	(C) www.dhtmlgoodies.com, October 2005
	
	This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	
	
	Terms of use:
	You are free to use this script as long as the copyright message is kept intact. However, you may not
	redistribute, sell or repost it without our permission.
	
	Thank you!
	
	www.dhtmlgoodies.com
	Alf Magne Kalleland
	
	************************************************************************************************************/
		
	var useCm = false; 	// Using centimetre for height, false = inch
	var useKg = false;	// Using kilos for weight, false = pounds
	var graphColors = ['#ceddf3','#9db8de','#6a91c9','#4571B0'];
	var graphLabels = ['Below 18.5: Underweight','18.5 - 24.9: Normal','25.0 - 29.9: Overweight','30 and above: Obese'];
	var labelsPerRow = 1;	/* Help labels above graph */
	var barHeight = 300; 	// Total height of bar
	var barWidth = 250;		// Width of bars */
	
	// Don't change anything below this point */
	
	var calculatorObj;
	var calculatorGraphObj;
	var bmiArray = [0,18.5,25,30,60];	/* BMI VALUES */
	var weightDiv = false;
		
	function calculateBMI()
	{
		var height = document.bmi_calculator.bmi_height.value;	
		var weight = document.bmi_calculator.bmi_weight.value;	
		height = height.replace(',','.');
		weight = weight.replace(',','.');
		if(!useKg)weight = weight / 2.2;
		if(!useCm)height = height * 2.54;
		
		if(isNaN(height))return;
		if(isNaN(weight))return;
		
		height = height / 100;
		var bmi = weight / (height*height);
		createWeightBar(bmi);		
	}
	
	function createWeightBar(inputValue){
		
		if(!weightDiv){
			self.status = Math.random();
			weightDiv = document.createElement('DIV');
			weightDiv.style.width = barWidth + 'px';
			weightDiv.className='barContainer';
			weightDiv.style.left = Math.round((calculatorGraphObj.offsetWidth/2) + ((calculatorGraphObj.offsetWidth/2) /2) - (barWidth/2)) + 'px';
			calculatorGraphObj.appendChild(weightDiv);
			var span = document.createElement('SPAN');
			weightDiv.appendChild(span);
			
			var innerSpan = document.createElement('SPAN');
			innerSpan.className='labelSpan';
			span.appendChild(innerSpan);			
		}else{
			span = weightDiv.getElementsByTagName('SPAN')[0];
			innerSpan = weightDiv.getElementsByTagName('SPAN')[1];
		}
		var color = graphColors[graphColors.length-1];
		for(var no = bmiArray.length-1;no>0;no--){
			if(bmiArray[no]>inputValue)weightDiv.style.backgroundColor = graphColors[no-1];
		}
		if(inputValue/1>1){
			innerSpan.innerHTML = inputValue.toFixed(2); 
			span.style.display='inline';
		}else span.style.display='none';
		var height = Math.min(Math.round(barHeight * (inputValue / bmiArray[bmiArray.length-1])),barHeight-10);
		span.style.lineHeight = Math.round(height) + 'px';
		weightDiv.style.height = height + 'px';
		
	}
	
	
	function validateField()
	{
		this.value = this.value.replace(/[^0-9,\.]/g,'');
		
	}
	
	function initBmiCalculator()
	{
		calculatorObj = document.getElementById('dhtmlgoodies_bmi_calculator');	
		calculatorGraphObj = document.getElementById('bmi_calculator_graph');	
		if(!useCm)document.getElementById('bmi_label_height').innerHTML = 'inches';
		if(!useKg)document.getElementById('bmi_label_weight').innerHTML = 'pounds';
		
		var heightInput = document.getElementById('bmi_height');
		heightInput.onblur = validateField; 
		var widthInput = document.getElementById('bmi_height');
		widthInput.onblur = validateField; 
		
		var labelDiv = document.createElement('DIV');
		labelDiv.className = 'graphLabels';
		calculatorGraphObj.appendChild(labelDiv);
		for(var no=graphLabels.length-1;no>=0;no--){
			var colorDiv = document.createElement('DIV');
			colorDiv.className='square';
			colorDiv.style.backgroundColor = graphColors[no];
			colorDiv.innerHTML = '<span></span>';
			labelDiv.appendChild(colorDiv);
			
			var labelDivTxt = document.createElement('DIV');
			labelDivTxt.innerHTML = graphLabels[no];
			labelDiv.appendChild(labelDivTxt);
			labelDivTxt.className='label';
			
			if((no+1)%labelsPerRow==0){
				var clearDiv = document.createElement('DIV');
				clearDiv.className='clear';
				labelDiv.appendChild(clearDiv);				
			}		
		}
		var clearDiv = document.createElement('DIV');
		clearDiv.className='clear';
		labelDiv.appendChild(clearDiv);	
						
		var graphDiv = document.createElement('DIV');
		graphDiv.className='barContainer';
		graphDiv.style.width = barWidth + 'px';
		graphDiv.style.left = Math.round(((calculatorGraphObj.offsetWidth/2) /2) - (barWidth/2)) + 'px';
		graphDiv.style.height = barHeight;
		calculatorGraphObj.appendChild(graphDiv);
		
		var totalHeight = 0;
		for(var no=bmiArray.length-1;no>0;no--){
			var aDiv = document.createElement('DIV');
			aDiv.style.backgroundColor = graphColors[no-1];
			aDiv.innerHTML = '<span></span>';
			var height = Math.round(barHeight * (bmiArray[no] - bmiArray[no-1]) / bmiArray[bmiArray.length-1]) - 1;
			aDiv.style.height = height + 'px';
			graphDiv.appendChild(aDiv);	
			
		}		
		
		createWeightBar(1);
	}