//customised addEvent function for having a proper onload function call.
function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}

function runSIFR()
{
	if(typeof sIFR == "function"){
		sIFR.replaceElement("#bannerLanding_tagline p", named({sFlashSrc: "flash/myriad_pro.swf", sColor: "#ffffff", sWmode: "transparent"}));
		//sIFR.replaceElement("#header_sitename", named({sFlashSrc: "flash/gill_sans_f8.swf", sColor: "#003038", sWmode: "transparent"}));
	};
}

function hoverCheck ()
{
	try {
		var sfEls = document.getElementById("mainContent").getElementsByTagName("ul");
		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"), ""); }
		}
	}
	catch(e) { }
}

function showHideTab (x)
{
		var getDiv = document.getElementById(x);
		getDiv.style.display = 'block';
		var getAllDivs = getElementsByClassName('', 'div', 'document');
		for(var i = 0; i < test; i++)
		{

			test[i].style.display = 'none';
		}
}


addEvent(window, 'load', runSIFR);

//if (window.attachEvent) window.attachEvent("onload", hoverCheck);
// An IE only onload event (there's no need to use the custom function as the li:hover state works with FF / IE7
						