jQuery.noConflict();

jQuery(function(){
    var menuItems = jQuery("li:has(ul.sub-menu)","#main_navigation");
    
    menuItems.each(function(i,el){
        var subMenu = jQuery(el).children("ul.sub-menu");
        jQuery(el).hover(
            function(e){
                subMenu.stop(true,true).fadeIn(100);
            },
            function(e){
                subMenu.stop(true,true).fadeOut(100);
            }
        );
    });
    
});

// And I ain't talkin college!
var getDegree = function( intMax ){
  if( !intMax ){
    var intMax = 40;
  }

  if( Math.random() > 0.2 ){
    var intDegree = Math.floor( Math.random()*( Math.random()*intMax ));
    // Flip a coin.
    if( Math.random() >= 0.5 ){
      intDegree = 0-intDegree;
    }
  
    return intDegree;
  }else{
    return 0;
  }
}
