// JavaScript Document
//IE6 hover code - needs a line in the CSS file for the sfhover class to work
//Scoped to IE6

isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;
if (isIE6) {
	sfHover = function() {
		var sfEls = document.getElementById("navWrapper").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); 
}

// Add first-child functionality to IE6 - needs CSS rule

$(document).ready( function(){
if ($.browser.msie)  // Styles to make IE browsers fake CSS3 */
	{
	
	$("#navWrapper .AspNet-Menu-Horizontal ul.AspNet-Menu li:nth-child(9) > a").css({'padding-left':'23px', 'padding-right':'24px'});
	$("div#pageSpotlightOne h3:first-child, div#pageSpotlightTwo h3:first-child, div#pageSpotlightThree h3:first-child").addClass("first");

	//Fix for h3 at top of page - h3 is optional, so creates odd underline too far under h2
	$("#pageContent h3:nth-child(2)").css({'border-bottom':'0', 'padding':'0'});

	}  //End IE functions
	
	});





	 



