(function($) {
  $.fn.imageresize=function()
  {
    var h=$(window).height();
    var w=($(window).width())+30;
    var xh;
    var xw;
  
    var pomer_w=10;
    var pomer_h=6;
    var header=0;
        
    if(((h/pomer_h)*pomer_w)>w)
    {
      xh=h;
      xw=pomer_w*(h/pomer_h);
    }else{
      xw=w;
      xh=(pomer_h*(w/pomer_w));
    }
  
    $("body,html").css("height",h);
    $("#sc_detail").css({"height":h,"width":w});
    $("#sc_detail_img").attr({'width':xw, 'height':xh});
  };
})(jQuery);

$("#sc_detail").ready(function()
{  
  $(document).imageresize();
  $(window).resize(function()
  {
    $(document).imageresize();
  }); 
  
});

$(document).ready(function()
{
  $('img.hoverover').hover(function(){
    $(this).fadeTo(100,0.5);
  },function(){
    $(this).fadeTo(100,1);
  });
})


