﻿ $(document).ready(function(){
 //Start code ******************************************
    
    /*kill inline styles for image buttons*/
    jQuery(".genericButton").removeAttr("style");
    
    /*hide the HTML buttons in global naviagtion*/
    jQuery("#globalNavigation .genericHtmlButton").hide();
    
    /*PNG fix for IE*/
    jQuery(document).pngFix();
    
   /*hack for icon link*/
   jQuery(".iconLink").after("<span class=\"arrowFix\"></span>");
   jQuery(".iconLinkUp").before("<span class=\"arrowFixUp\"></span>");
   jQuery(".iconLinkAlt").before("<span class=\"arrowFixAlt\"></span>");
   
   /*a hard rule with faded PNG edges.  This is the mother af all hacks - Stuart Johnston 17/04/08*/
   jQuery("hr").wrap("<div class=\"genericRuler\"></div>").before("<div class=\"leftFade\"></div><div class=\"solidRule\"></div><div class=\"rightFade\"></div>");
    
   /*the last item of the secondary navigation - no divider*/
   jQuery("#secondaryNavigation .parent:first").addClass("first");
   jQuery("#secondaryNavigation .parent:last").addClass("last");
   
   //add a hover class for IE in the primary navigation
   if(jQuery.browser.msie){
   jQuery("#primaryNavigation li").hover(
      function () {
        $(this).addClass("sfhover");
      }, 
      function () {
        $(this).removeClass("sfhover");
      }
    );};
  
 //end code ******************************************
 });

