////function enabling IE to hover on block level elements.
//sfHover = function()
//{
//	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
//	for (var i=0; i<sfEls.length; i++)
//	{
//		sfEls[i].onmouseover=function()
//		{
//			this.className+=" topNavActive sfhover";
//		}
//		sfEls[i].onmouseout=function()
//		{
//			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
//			this.className=this.className.replace(new RegExp(" topNavActive\\b"), "");
//			this.className=this.className.replace(new RegExp(" topNavActiveFred\\b"), "");
//		} 
//	} 
//} 
//if (window.attachEvent) window.attachEvent("onload", sfHover);



///* Andrews Fix Height Code */
///* (c) 2007 Complete Integrated Communications Ltd */
///* All rights reserved */

//function gh(d) {
//var h;

//    if (d.offsetHeight)	h=d.offsetHeight;
//	else if(d.style.pixelHeight) h=d.style.pixelHeight;
//	return h

//}

//document.getElementsByClassName = function(cl) {
//var retnode = [];
//var myclass = new RegExp('\\b'+cl+'\\b');
//var elem = this.getElementsByTagName('*');
//for (var i = 0; i < elem.length; i++) {
//var classes = elem[i].className;
//if (myclass.test(classes)) retnode.push(elem[i]);
//}
//return retnode;
//}; 


//function fixheights(cla,offset) { 
// var moving = document.getElementsByClassName(cla); 
// var h1=0
// for (var i=0; i<moving.length; i++) h1=Math.max(h1,gh(moving[i]));
// h1+=offset;
// for (var i=0; i<moving.length; i++) moving[i].style.height=h1 + "px";
// } 

//function enabling IE to hover on block level elements.
sfHover = function()
{
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++)
	{
		sfEls[i].onmouseover=function()
		{
			this.className+=" topNavActive sfhover";
		}
		sfEls[i].onmouseout=function()
		{
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			this.className=this.className.replace(new RegExp(" topNavActive\\b"), "");
			this.className=this.className.replace(new RegExp(" topNavActiveFred\\b"), "");
		} 
	} 
} 
if (window.attachEvent) window.attachEvent("onload", sfHover);
