//-- Коректировка отображения картинок в формате 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]);
        };
      };
    };
  };
};

window.onload=function(){
  if(/MSIE (5|6).+Win/.test(navigator.userAgent)){
    if(document.getElementsByTagName){
      source=document.getElementsByTagName('IMG');
      for(object=0;object<source.length;object++){
        //fixPNG(source[object]);
      };
    };
  };
};

