// IE flash activation workaround
function showflash(fileName, w, h, container, objname)
{
	if (objname==undefined)
		objname = 'myFlash';
	var html = '	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  style="z-index:-100;"'+
	'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '+
	'width="'+w+'" height="'+h+'" id="'+objname+'" align="middle"> ' +
	'<param name="allowScriptAccess" value="sameDomain" />' +
	'<param name="movie" value="'+fileName+'" />' +
	'<param name="quality" value="high" />' +
	'<param name="WMODE" value="transparent" />' +
	'<embed src="' + fileName + '" quality="high" WMODE="transparent" width="'+w+'" height="'+h+'" ' +
	'name="'+objname+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" '+
	'pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
	'</object>';
	if (container==undefined)
		document.body.innerHTML = html;
	else
		document.getElementById(container).innerHTML = html;
}

// to highlight image
function mouseOverImg(img)
{
	img.className = "mouseOver";
}

// to set image back to normal
function mouseOutImg(img)
{
	img.className = "mouseOut";
}

// hide the image used as intro and show the main table
function hideIntro()
{
	document.getElementById("mainTable").style.visibility = "visible";
	//document.getElementById("mainTableContainer").style.background = "none";
}

// gets value of a group of radio buttons
function get_radio_value(button)
{
	var retVal = null;
	
	for (var i = 0; i < button.length; i++)
	{
		if (button[i].checked)
		{
			retVal = button[i].value;
			break;
		}
	}
	
	return retVal;
}

