
var d=document, imgs = new Array(), zInterval = null, current=0, pause=false;
var blnEndMov = false;


  function so_init() {
    imgs = d.getElementById("lblHpPromoCont").getElementsByTagName("img");


    if(mstrBrowser == "MSIE"){
      for(i=1;i<imgs.length;i++){   imgs[i].xOpacity = 0;   }
      imgs[0].style.display = "inline";
      imgs[0].xOpacity = .99;
    } else {
      imgs[0].setAttribute("style", "display:inline");
    }
    current = 0;
    blnEndMov = false;

    if(mstrBrowser == "MSIE"){
      setTimeout(so_xfade_IE,3000);
    } else {
      setTimeout(xfade_FireF,3000);
    }
  }


  function so_xfade_IE() {
    if(blnEndMov == false){
      nIndex = current + 1;
      if(nIndex == imgs.length){   nIndex = 0;   }
      imgs[nIndex].style.display = "inline";
      imgs[current].style.display = "none";
      current = nIndex;
      setTimeout(so_xfade_IE,3000);
    }
  }
  
  
  function xfade_FireF() {
    if(blnEndMov == false){
      nIndex = current + 1;
      if(nIndex == imgs.length){   nIndex = 0;   }
      imgs[nIndex].setAttribute("style", "display:inline");
      imgs[current].setAttribute("style", "display:none");
      current = nIndex;
      setTimeout(xfade_FireF,3000);
    }
  }
