var activeLink_onload
var host = "http://www.hcr.co.uk"
var host_ssl = "https://www.hcr.co.uk"
var host_short = "http://hcr.co.uk"
var host_short_ssl = "https://hcr.co.uk"

if ( window.onload )
{
	activeLink_onload = window.onload
}
window.onload = activateLink
function activateLink()

{

	var currentURL = document.location.href

	var subNav = document.getElementById("related")

	if (subNav)

	{

		var links = subNav.getElementsByTagName("A")

		for (var c=0; c<links.length; c++)

		{

			if (links[c].href== currentURL) links[c].className="active"
		}

	}
	
	
	
	if (activeLink_onload)
	{
		activeLink_onload()
	}



	var links = document.getElementsByTagName("A")
	for (c=0;c<links.length;c++)
	{
		var link = links[c]
		if ((link.href.substring(0,7)=="http://" || link.href.substring(0,8)=="https://") 
		&& links[c].href.substring(0,host.length)!=host 
		&& links[c].href.substring(0,host_ssl.length)!=host_ssl
		&& links[c].href.substring(0,host_short.length)!=host_short
		&& links[c].href.substring(0,host_short_ssl.length)!=host_short_ssl) 
		{
			links[c].target="_blank"
		}
	}
}



