$(document).ready(function(){
//Start common code

   //fix IE hover in primary navigation 
    jQuery("#primaryNavigation li").hover(
      function () {
        jQuery(this).addClass("ieHover");
      }, 
      function () {
        jQuery(this).removeClass("ieHover");
      }
    );
    
    /*add a clone link (to the "logo") to the Branding for all but the home page*/
    jQuery(".pageContent #navHome")
        .clone()
        .insertBefore("#primaryNavigation")
        .removeAttr("id")
        .removeAttr("class")
        .attr("id", "iconHomeLinkClone")
        .attr("title","Caudex Medical Home")
        .addClass("toolip")
    ;
    
    /* activate the tooltip*/
    tooltip();
    
    /* subtle fade on mouseout - soft touch*/
    jQuery("#primaryNavigation a ").hover(
        function () {
            jQuery(this).animate({opacity: 0}, 1 );
        },
        function () {
            jQuery(this).animate({opacity: 1}, 400 );   
        }
    );
    
//End common code       
});