<!--
/*	JavaScript to alter and return colour of hyperlinks on pages.
	Use <font id="colour" color="#colour"> around the text of the hyperlink.
	This is needed to ensure Netscape colours the link as well.
	Hover function only active for MSIE
*/

var browser_type=navigator.appName;
var browser_version=parseInt(navigator.appVersion);

function link_over() //Change colour of link when mouse over
{
	//Only works on MSIE
	if (browser_type == "Microsoft Internet Explorer")
	{
		with (window.event.srcElement)
		{
			if (id=="grnorglink")
			{
				color="#ff6600";
			}
			else if (id=="blueredlink")
			{
				color="#ff0000";
			}
			else if (id=="yellorglink")
			{
				color="#ff6600";
			}
			else if (id=="blkredlink")
			{
				color="#ff0000";
			}
		}
	}
}

function link_out() //Return colour of link after mouse over
{
	// Only works for MSIE
	if (browser_type == "Microsoft Internet Explorer")
	{
		with (window.event.srcElement)
		{
			if (id=="grnorglink")
			{
				color="#008000";
			}
			else if (id=="blueredlink")
			{
				color="#0000ff";
			}
			else if (id=="yellorglink")
			{
				color="#ffff00";
			}
			else if (id=="blkredlink")
			{
				color="#000000";
			}
		}
	}
}

function image_over(img_name)
{
	var img_url = document.images[img_name].src; //get the url of the image
	var search_exp = /.gif/i;
	var over_img_url = img_url.replace(search_exp, "_over.gif");
	
	document.images[img_name].src=over_img_url;
}

function image_out(img_name)
{
	var img_url = document.images[img_name].src; //get the url of the image
	var search_exp = /_over.gif/i;
	var over_img_url = img_url.replace(search_exp, ".gif");
	
	document.images[img_name].src=over_img_url;
}

//-->