  $(document).ready(function(){
    if((gBrowser.ie && gBrowser.isMac) || (gBrowser.ns)) {
      window.location.href = "/consumer/wsreq/index.htm";
    }  
    
    $('a[rel=external]').attr('target', '_blank');
    $("#toolbar").css('opacity', '0.6');
    
    $("input[type='submit']").hover(
      function(){
        $(this).css('background-position','0px 100%');
      }, 
      function() {
        $(this).css('background-position','0px 0px');
      }
    );
    $("input[type='button']").hover(
      function(){
        $(this).css('background-position','0px 100%');
      }, 
      function() {
        $(this).css('background-position','0px 0px');
      }
    );    

    $("#search_box").click(function(){
      $(this).attr('value','');
    });
    $("#search_box").blur(function(){
      if ($(this).attr('value') == '') {
        $(this).attr('value', 'Search');
      } 
    });    
    if ($('#home #welcome_rotator') != null) {
      $('#home #welcome_rotator').css('background-image', 'url(../home/images/rotator' + Math.ceil(Math.random() * 4) + '.jpg)');
    }
  });
  

