function headerImage()
{
	// For foundations, there is a certain image
	if (window.location == "http://centralhealth.nl.ca/central-northeast-health-foundation/" || window.location == "http://www.centralhealth.nl.ca/central-northeast-health-foundation/"){
		// central northeast
		var rand_no = 14;
	}
	else if (window.location == "http://centralhealth.nl.ca/south-and-central-health-foundation/" || window.location == "http://www.centralhealth.nl.ca/south-and-central-health-foundation/")
	{
		// sounth and central
		var rand_no = 18;
	}
	else if (window.location == "http://centralhealth.nl.ca/foundations/" || window.location == "http://www.centralhealth.nl.ca/foundations/")
	{
		// for both
		var rand_no = 19;
	}
	else
	{
		// else random
		var rand_no = Math.ceil(17*Math.random());
	}
	var newimage = "url(themes/centralhealth/images/header/" + rand_no + ".jpg)";

	document.getElementById('mainpic').style.backgroundImage = newimage;

}

