/*
 * Browser Fixes / Testing
 * fix browser related issues
 *
 * $.browser() is depreicated replaced by jQuery.support
 */

$(document).ready(function(){
  
  /*
   * Move IE6 browser warning message below page titles
   */
  var warning = $('#warning-ie6');
  if (warning.length) {
    $('h1').after(warning);
  }

  if ($.browser.msie) {
    var version = jQuery.browser.version;
    
    // IE6: change the logo from png to gif
    if (version == 6) {
      var logo = $('#logo img');
      logo.attr('src', logo.attr('src').replace('.png', '.gif'));
    }
    
    // IE8 is the only browser that needs no top margin for the help tip icons
    if (version == 8) {
      $('form fieldset .help').css('margin-top', 0);
    }
  }
});
