$(document).ready(function(){
  $('div#belowBannerUpper li').addClass('ui-state-default').hover(function(){
    $(this).toggleClass('ui-state-default');
    $(this).toggleClass('ui-state-hover');
  }).focusin(function(){
    $(this).toggleClass('ui-state-default');
    $(this).toggleClass('ui-state-focus');
  }).focusout(function(){
    $(this).toggleClass('ui-state-default');
    $(this).toggleClass('ui-state-focus');
  });
  $('div#belowBannerUpper li').each(function(){
    if($(this).hasClass('current')){
      $(this).removeClass('ui-state-default').removeClass('ui-state-focus').addClass('ui-state-active');
    }
  });
  if(browser!="Microsoft Internet Explorer"&&browser!="Opera"){//if(!uselessBrowser&&!opera)
    //if the browser isn't useless or isn't Opera, use the following code to make the page look prettier
    $('div#main-body div#content').corner('keep round 15px');
    $('div#belowBannerUpper li').corner('5px');
    $('div.layoutAdmin li').corner('5px');
    $('div.layoutPhotos dl').corner('10px');

    $('fieldset').corner('10px');
    $('.submit input').corner('5px');

    $('input.cloneElement').corner('5px');
    $('input.removeElement').corner('5px');

    $("div.layoutPhotos dl.photos dt.image img").hover(function () {
      $(this).css({'border' : '2px solid #9b8763'});
    }, function () {
      var cssObj = {
        'border-color' : '#867455'
      }
      $(this).css(cssObj);
    });
  }//endif(!uselessBrowser)
  else if(msiVersion[1]=="8.0"){
    //if the browser is mostly useless, do the following code
    $('div.layoutPhotos dl').corner('10px');
  }
  else if(browser=="Opera"){
    //if the browser is Opera
    $("div.layoutPhotos dl.photos dt.image img").hover(function () {
      $(this).css({'border' : '2px solid #9b8763'});
    }, function () {
      var cssObj = {
        'border-color' : '#867455'
      }
      $(this).css(cssObj);
    });
  }else{//else(uselessBrowser)
    //else, if the browser is useless, do the following
    DD_roundies.addRule('div#content', '8px');
  }//endelse(uselessBrowser)
});