$(document).ready(function() {
      
      function addMega(){
        $($(this).find("a")).addClass("hover");         
        $($(this).find("div")).show("fast");
        }

      function removeMega(){
        $($(this).find("a")).removeClass("hover"); 
        $($(this).find("div")).hide("fast");
        }

    var megaConfig = {
         interval: 200,
         sensitivity: 1,
         over: addMega,
         timeout: 200,
         out: removeMega
    };

    $("li.mega").hoverIntent(megaConfig)

      
      
      
$(window).scroll(function(){
 if ($(window).scrollTop() > $(".smartBannerIdentifier").offset({ scroll: false }).top){
 $(".banner").css("position", "fixed");
 $(".banner").css("top", "0");
 }

 if ($(window).scrollTop() <= $(".smartBannerIdentifier").offset({ scroll: false }).top){
 $(".banner").css("position", "relative");
 $(".banner").css("top", $(".smartBannerIdentifier").offset);
 }
 });

  
      
      
      
    });


