$(document).ready(function(){

  if ($('#news').height() > $('content').height()){
    $('#middle').css('height',$('#news').height());
  } else {
    $('#middle').css('height',$('#content').height()+20);
  }

  my_url = window.location;
  my_url = my_url.toString();
  if (my_url.indexOf("news") != -1){
    $('#news').css('display','none');
    $('#content').css('width','99%');
  }
  /*
  IE='\v'=='v';
  if (IE){
    DD_belatedPNG.fix('*');
  }
*/
  $('.items').hover(function(){
    jQuery(this).css('border-bottom', 'solid 2px #FF7F50');
  }, function(){
    jQuery(this).css('border', 'none');
  });
  
  $('.revers').hover(function(){
    url = jQuery(this).attr('src');
    file = jQuery.url.setUrl(url).attr("file");
    spot = file.indexOf('.');
    name = file.substring(0,spot);
    jQuery(this).attr('src', '/img/gallery/'+name+'r.jpg');
  }, function(){
    url = jQuery(this).attr('src');
    file = jQuery.url.setUrl(url).attr("file");
    spot = file.indexOf('.');
    name = file.substring(0,spot-1);
    jQuery(this).attr('src', '/img/gallery/'+name+'.jpg');
  });
}); 