	/* commented because of a change i decided to impliment in the navigation so images dont need to be reloaded on mouse over
	
	function activeNav(obj) {
		obj.style.backgroundImage = "url('/images/hm_" + obj.id + "_on.gif')";
	}
	function inActiveNav(obj) {
		obj.style.backgroundImage = "url('/images/hm_" + obj.id + ".gif')";
	}
	*/
	
	function activeNavImg(curr) {
		imageOn = document.getElementById(curr+'ImgOn');
		imageOff = document.getElementById(curr+'ImgOff');
		imageOn.style.display = 'block';
		imageOff.style.display = 'none';
		classOn = document.getElementById(curr+'Class');
		classOn.className='leftNavMainBold';
	}
	function inActiveNavImg(curr) {
		imageOn = document.getElementById(curr+'ImgOn');
		imageOff = document.getElementById(curr+'ImgOff');
		imageOn.style.display = 'none';
		imageOff.style.display = 'block';
		classOn = document.getElementById(curr+'Class');
		classOn.className='';		
	}
	
	function activeOsteoporosisOnImg(curr) {
		imageOn = document.getElementById('bodyOsteoporosisImgOn');
		imageOff = document.getElementById('bodyOsteoporosisImgOff');
		imageOn.style.display = 'block';
		imageOff.style.display = 'none';		
	}
	function inActiveOsteoporosisOnImg() {
		imageOn = document.getElementById('bodyOsteoporosisImgOn');
		imageOff = document.getElementById('bodyOsteoporosisImgOff');
		imageOn.style.display = 'none';
		imageOff.style.display = 'block';
	}	
	
	
	function activeActonelOnImg() {
		imageOn = document.getElementById('bodyActonelImgOn');
		imageOff = document.getElementById('bodyActonelImgOff');
		imageOn.style.display = 'block';
		imageOff.style.display = 'none';
		
	}
	function inActiveActonelOnImg() {
		imageOn = document.getElementById('bodyActonelImgOn');
		imageOff = document.getElementById('bodyActonelImgOff');
		imageOn.style.display = 'none';
		imageOff.style.display = 'block';		
	}
	
	function writeRiskFlash() {
		movie = '/multimedia/risk_webra.swf';
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="570" height="330" id="risk" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+movie+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="#ffffff" />');
		document.write('<embed src="'+movie+'" quality="high" bgcolor="#ffffff" width="570" height="330" name="risk" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}
	
	function writeHomeFlash(sNumber) {
		movie = '/multimedia/home2.swf?tournum='+sNumber+'" ';
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="617" height="270" id="risk" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+movie+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="#000000" />');
		document.write('<embed src="'+movie+'" quality="high" bgcolor="#000000" width="617" height="270" name="risk" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}
	
	function writeHomeFlashVideo(filename, sNumber) {
		
		movie = '/multimedia/'+filename+'.swf?tournum='+sNumber+'" ';
		alert(movie);
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="617" height="270" id="risk" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+movie+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="#000000" />');
		document.write('<embed src="'+movie+'" quality="high" bgcolor="#000000" width="617" height="270" name="risk" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}
	
	function writeHomeFlashSkipIntro() {
		movie = '/multimedia/home2.swf?skipintro=1';
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="617" height="270" id="risk" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+movie+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="#000000" />');
		document.write('<embed src="'+movie+'" quality="high" bgcolor="#000000" width="617" height="270" name="risk" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}
	
	function writeMainFlash(sNumber) {
		movie = '/multimedia/main.swf?tournum='+sNumber+'" ';
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="617" height="460" id="risk" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+movie+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="#ffffff" />');
		document.write('<embed src="'+movie+'" quality="high" bgcolor="#ffffff" width="617" height="460" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	} 

	 function writeOAMMainFlash() {
		movie = '/multimedia/movie1.swf';
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="617" height="460" id="risk" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+movie+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="#ffffff" />');
		document.write('<embed src="'+movie+'" quality="high" bgcolor="#ffffff" width="617" height="460" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	} 

	/*********************************************************************************************
	     Detect if Flash component installed on Browser
	     2: Flash installed 
	     1: Flash not installed 
	     0: Unknown if Flash is installed    
	*********************************************************************************************/
	var flashVersion = 0;
	function getFlashVersion()	{	
		var dontKnow = false;
		var agent = navigator.userAgent.toLowerCase(); 
		// NS3+ and Opera3+ (support plugin array):  check for Flash plugin in plugin array
		if (navigator.plugins != null && navigator.plugins.length > 0) {
			var flashPlugin = navigator.plugins['Shockwave Flash'];
			if (typeof flashPlugin == 'object') { 
				for (i=25;i>0;i--)	{
					if (flashPlugin.description.indexOf(i+'.') != -1)	{ 
						flashVersion = i;
					}
				}
			}
		}
		// IE4+ on Win32:  attempt to create an ActiveX object using VBScript
		else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
			document.write('<scr' + 'ipt language="VBScript"\> \n');
			document.write('on error resume next \n');
			document.write('if IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")) then flashVersion = 8 \n');
			document.write('if flashVersion < 8 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")) then flashVersion = 7 \n');
			document.write('if flashVersion < 7 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")) then flashVersion = 6 \n');
			document.write('if flashVersion < 6 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")) then flashVersion = 5 \n');
			document.write('if flashVersion < 5 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")) then flashVersion = 4 \n');
			document.write('if flashVersion < 4 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")) then flashVersion = 3 \n');     
			document.write('</scr' + 'ipt\> \n'); 
		}
		// WebTV 2.5 supports flash 3
		else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;
		// older WebTV supports flash 2
		else if (agent.indexOf("webtv") != -1) flashVersion = 2;
		// Can't detect in all other cases
		else {
			flashVersion = flashVersion_DONTKNOW;
			dontKnow = true;
		}
		return flashVersion;
	}
	flashVersion_DONTKNOW = -1;
	
	<!--
	var requiredVersion = 8;
	var flashVersion = getFlashVersion();
	/**********************************************************************************************/
	if (flashVersion >= requiredVersion)	{

		document.write('<style type="text/css">');
		document.write('#homeFlashDiv {display:block;}');
		document.write('#homeNoFlashDiv {display:none;}');
		document.write('</style>');
	}
	else	{
	
		document.write('<style type="text/css">');
		document.write('#homeFlashDiv {display:none;}');
		document.write('#homeNoFlashDiv {display:block;}');
		document.write('</style>');
	}
	/*********************************************************************************************/
	
// Connection Speed check
	var datasize=31468; // in Bytes
	var startTime=0;
	var endTime=0;
	var date=0;
	var textMessage="";
	function calcThroughput() {
	    var diffTimeMilliseconds = endTime - startTime;
	    var diffTimeSeconds = diffTimeMilliseconds/1000;
	    var bits = (datasize*8);   // convert Bytes to bits,
	    var kbits = bits/1024;     // convert bits to kbits
	    var throughput = kbits/(diffTimeSeconds);
	    throughput = throughput * .93;  // account for IP packet header overhead - averages about 7%
		if (throughput >= 56 && flashVersion >= requiredVersion)	
		{
			document.write('<style type="text/css">');
			document.write('#homeFlashDiv {display:block;}');
			document.write('#homeNoFlashDiv {display:none;}');
			document.write('</style>');
		}
		else	
		{
			document.write('<style type="text/css">');
			document.write('#homeFlashDiv {display:none;}');
			document.write('#homeNoFlashDiv {display:block;}');
			document.write('</style>');
		}
    }

//-->