jQuery.noConflict();

// Fade in index page elements
jQuery(window).load(
    function(){
        jQuery("#mainDiv.index #galleryContent").fadeIn(1500,
            function(){
                jQuery("#mainDiv").hover(
                    function(){jQuery("#galleryContent").fadeIn("slow")},
                    function(){jQuery("#galleryContent").fadeOut("slow")}
                );
            }
        )
    }
);

// Fix the border radius when we have scrollbars
jQuery(window).load(
  function(){
    boxHeight = jQuery('#contentArea3').height();
    jQuery('#contentArea3').height('auto');
    totalHeight = jQuery('#contentArea3').height();
    jQuery('#contentArea3').height(boxHeight);
    if (totalHeight > boxHeight) {
      jQuery('#contentArea').css('-moz-border-radius-topright','0em');
      jQuery('#contentArea').css('-moz-border-radius-bottomright','0em');
      jQuery('#contentArea').css('-webkit-border-top-right-radius','0em');
      jQuery('#contentArea').css('-webkit-border-bottom-right-radius','0em');
      jQuery('#contentArea').css('border-top-right-radius','0em');
      jQuery('#contentArea').css('border-bottom-right-radius','0em');
    }
  }
);
