// JavaScript Document
sfHover = function() {
	var sfEls = document.getElementById("patient_services").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);


$(document).ready(function() {
      
	  function showMember(){
			//get effect type from 
			var selectedEffect = "slide";
			var options = {direction: "left", left: "233"}; //{direction: 'up'};
			
			//run the effect
			$("#services_dropdown").css({left: 233, top: -54});
			$("#services_dropdown").show(selectedEffect,options,500);
		};
		function hideMember(){
			//get effect type from 
			var selectedEffect = "slide";
			var options = {direction: 'left', left: "233"};
			
			//run the effect
			$("#services_dropdown").css({left: 233, top: -54});
			$("#services_dropdown").hide(selectedEffect,options,500);
		};
	  
	  
	  
      function addMega(){
        $(this).addClass("hovering");
		showMember();
        }

      function removeMega(){
        $(this).removeClass("hovering");
		hideMember();
        }

    var megaConfig = {
         interval: 100,
         sensitivity: 7,
         over: addMega,
         timeout: 200,
         out: removeMega
    };

    $("li.mega").hoverIntent(megaConfig)

      
    });
