function opendemoSD(SDloc) {
  window.open(SDloc,'demo_win_SD','width=1010,height=700,scrollbars=yes')
}

function opendemoSC(SCloc) {
  window.open(SCloc,'demo_win_SC','width=1010,height=700,scrollbars=yes')
}

function fadelayer() {
  if (document.getElementById) {
    document.getElementById("fade").style.display = "block";
    var a = 0;
    incrfade(a);
  }
}

function incrfade(a) {
  var iea = a * 100 ;
  var zr = Math.round(255 * (1 - a)); var zg = Math.round(255 * (1 - a)); var zb = Math.round(255 * (1 - a));
  document.getElementById("fade").style.opacity = a;
  document.getElementById("fade").style.filter = "alpha(opacity=" + iea + ")";
  document.getElementById("allc").style.background = "rgb("+ zr +","+ zg +","+ zb +")";
  b = a + 0.02;
  if (b < 0.6) {
    setTimeout("incrfade(b)",1);
  } else {
//    document.getElementById("demoheader").style.display = "block";
  }
}

function waitfade() {
    setTimeout("fadelayer()",2000);
}
