
//----------------------------------------------------------------------------------------------------

function showdivbyid(idshow,classgroup) 
{
	var myregexp = new RegExp(classgroup);
	var divs = document.getElementsByTagName('div');
	for(i=0;i<divs.length;i++)
	{
		if (myregexp.exec(divs[i].className)) // if the div classname matches the given class then decide whether to show or hide it
		{
			if(divs[i].id.match(idshow)) //if the div ID equals the idshowed value then show it
			{
				if (document.getElementById) // DOM3 = IE5, NS6
					divs[i].style.display="block";// show/hide
				else
					if (document.layers) // Netscape 4
						document.layers[divs[i]].display = 'block';
					else // IE 4
						document.all.divs[i].display = 'block';
			} 
			else //otherwise hide it
			{
				if (document.getElementById)
					divs[i].style.display="none";
				else
					if (document.layers) // Netscape 4
						document.divs[i].display = 'none';
					else // IE 4
						document.all.divs[i].display = 'none';
			}
		}
	}
}

function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
	
function ReplayFlashMovie(mname) {
if (getInternetExplorerVersion()>1)
	{
		document.getElementById(mname).Rewind();
		document.getElementById(mname).Play();
	}
	showdivbyid('homeFlash','homeBlock');
}
