// MAIN MENU code for IE because it doesnt know :hover
sfHover = function() {
	var sfEls = document.getElementById("ulGlbMainMenu").getElementsByTagName("li");     
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}     
	} 
} 
if (window.attachEvent) window.attachEvent("onload", sfHover); 


function toggleDiv(whichDiv)
{
	var theDiv = document.getElementById(whichDiv);
	if(theDiv.style.display == 'block')
	{
		theDiv.style.display = 'none';
	} else {
		theDiv.style.display = 'block';	
	}
}

//Email this page
function emailPage() {
    var URL = location.href;
    var theEmail = "";
    theEmail += "mailto:?subject=An Interesting Page From Tannehill, Carmean and McKenzie";
    theEmail += "&body=%0D%0AHere is a link to a page from Tannehill, Carmean and McKenzie.%0D%0A%0D%0A";
    theEmail += "Click on the link to view the page, or cut and paste it into a browser: %0D%0A%0D%0A";
    theEmail += escape(URL);

    window.location = theEmail;
}
//Print This Page
function printThis() {
    window.print();
}
