/*
 * Define browsers that require nifty corners:
 * IE6, IE7
 * FF2, Opera 9 & 9.5
*/

function loadCorners () {
  if ( typeof Nifty != "function" ) return;
  var loadCheck = false;

  if ( BrowserDetect.browser == 'Explorer' )
    loadCheck = true;
  if ( BrowserDetect.browser == 'Opera' )
    loadCheck = true;
  if ( BrowserDetect.browser == 'Firefox' )
    if ( BrowserDetect.version < 2 )
      loadCheck = true;

  if ( loadCheck ) {
    Nifty("div.rounded");
    Nifty("div.top-rounded", "big top");
    Nifty("h1.rounded");
    Nifty("h2.rounded");
    Nifty("ul.rounded");
    if ( BrowserDetect.browser != 'Opera' ) {
    Nifty("span.left-rounded", "left");
    Nifty("span.right-rounded", "right");
    }
  }
}

loadCorners();
/*
function initCorners() {
  loadCorners();
};

var curr_onload = window.onload;
if(typeof(curr_onload)=='function')
  window.onload=function(){curr_onload();initCorners()};
else
  window.onload=function(){initCorners()};
*/
