  if (document.layers)
  {
        var docRef = "document.layers['";
        var styleRef = "']";
  }

  if (document.getElementById)
  {
        var docRef = "document.getElementById('";
        var styleRef = "').style";
  }

  if (document.all)
  {
        var docRef = "document.all.";
        var styleRef = ".style";
  }

function showimp() {
        var myObj = eval(docRef + "imp" + styleRef);
        myObj.visibility = "visible";
  }

function hideimp() {
        var myObj = eval(docRef + "imp" + styleRef);
        myObj.visibility = "hidden";
  }


function reapply(){
setTimeout("slideit()",2000)
return true
}

function slideit(){
if (!document.images)
return
if (document.all)
slide.filters.blendTrans.apply()
document.images.slide.src=eval("image"+step+".src")
if (document.all)
slide.filters.blendTrans.play()
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*1000+3000)
else
setTimeout("slideit()",speed*1000)
}

function slidelink(){
if (whichimage==1)
window.location="link1.htm"
else if (whichimage==2)
window.location="link2.htm"
else if (whichimage==3)
window.location="link3.htm"
}

