    $(document).ready(function(){
		// Superfish menuhover
        $("#nav ul")
        .superfish({
	        animation : { opacity:"show",height:"show"},
	        speed     : "fast",
	        delay		: 300
        })
        .find(">li:has(ul)") /* .find(">li[ul]") in jQuery less than v1.2 */
	        .mouseover(function(){
		        //$("ul", this).bgIframe({opacity:false});
	        })
	        .find("a")
		        .focus(function(){
			        $("ul", $("#nav>li:has(ul)")).bgIframe({opacity:false});
		        });
        
		
		//Adds and removes imHovering class
		$('#nav ul li ul li').hover(
			function () {
				$(this).parent().parent().attr("id", "imHovering");},
			function () {
				$(this).parent().parent().attr("id", ""); }
		);
		  
		$('#nav ul li').hover(
			function() { $(this).attr("id", "imHovering"); },
			function() { $(this).attr("id", ""); });
			
		
		  
        // removes border from last list items
		$("#footer ul li:last-child").addClass("noborder");
		$("#leftcol div:last-child").addClass("noborder");
		$("#rightcol div:last-child").addClass("noborder");
		
		// Adds Mega Dropdown
		function addMega(){
			$(this).addClass("hovering");
		}

		function removeMega(){
			$(this).removeClass("hovering");
		}

		var megaConfig = {
			 interval: 100,
			 sensitivity: 4,
			 over: addMega,
			 timeout: 300,
			 out: removeMega
		};

		$("li.mega").hoverIntent(megaConfig);		
		
		
		
		
    });
	
	function addFun() {
		$("#imHovering").attr("class", "TESLKTJLKD");;
	}
