function isIE5() { return (navigator.userAgent.indexOf("MSIE 5") > -1); }
function isIE6() { return ((navigator.userAgent.indexOf("MSIE 6") > -1) && (navigator.userAgent.indexOf("Opera") == -1)); }
function isIE() { return (isIE5() || isIE6());}
var isIE = isIE();
var urlI = "img/";
var demoWin;

function DoWin(namehtm, widthW, heightW) {
  if ((demoWin != null) && (!demoWin.closed)){demoWin.close()}
  eval("demoWin=window.open('"+namehtm+"', 'demonstrationWin', 'width="+widthW+",height="+heightW+",location=0,top=0,scrollbars=0')");
  demoWin.focus();  
}

function fixpng() {
  for (var i = 0; i < document.images.length; i++) {
    var img = document.images[i];
    imgSrc = img.src;
    if (imgSrc.substr(imgSrc.length-3).toLowerCase() == "png") {
      var w, h;
      w = img.width, h = img.height;
      img.src = "img/ill_Transpoint.gif";
      img.width = w, img.height = h;
      img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + imgSrc + "\', sizingMethod='scale');";
      img.style.visibility = "visible";
    }
  }
}

function fixpngff() {
  if (!isIE) {
  
    for (var i = 0; i < document.images.length; i++) {
      var img = document.images[i];
      imgSrc = img.src;
      if (imgSrc.substr(imgSrc.length-3).toLowerCase() == "png") img.style.visibility = "visible";
    }
    
  }
}

function doOpenNews(id) {
  document.getElementById("opn"+id).className = "opn-off";
  document.getElementById("ncont"+id).className = "ncont-on";
  document.getElementById("cls"+id).className = "opn-on";
}

function doCloseNews(id) {
  document.getElementById("cls"+id).className = "opn-off";
  document.getElementById("ncont"+id).className = "ncont-off";
  document.getElementById("opn"+id).className = "opn-on";
}

if (isIE) window.attachEvent("onload", fixpng);
