//-- Коректировка отображения картинок в формате PNG --//
function fixPNG(object,source){
  if(/MSIE (5|6).+Win/.test(navigator.userAgent)){
    if(source){
      object.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+source+"',sizingMethod='scale')";
    }else{
      if(object.tagName=='IMG'){
        if(/\.png$/.test(source=object.src)){
          object.src="/images/1x1.gif"; fixPNG(object,source);
          with(object.runtimeStyle){
            width=object.width+'px'; height=object.height+'px';
          }
        };
      }else{
        source=object.currentStyle.backgroundImage;
        if((source)&&(source=source.match(/url\("(.+\.png)"\)/i))){
          object.runtimeStyle.backgroundImage="none"; fixPNG(object,source[1]);
        };
      };
    };
  };
};

$(document).ready(function(){
  $("#body > div.body table[border=1]").addClass("table").find("tr:nth-child(odd) td").addClass("odd");
});

function error(){
  alert("Для сакчивания файла необходима регистрация.");
  return false;
};

