/**
 * Rotate Ad Version 1.1
 * Roger H. Nuttall, October 2003
 * Copyright (c) 2003-2004 R H Nuttall
 */


adImg = new Array(
  "WIP-01.jpg",         "",
  "WIP-02.jpg",       	"",
  "WIP-03.jpg",         "",
  "WIP-04.jpg",       	"",
  "WIP-05.jpg",         "",
  "WIP-06.jpg",       	"",
  "WIP-07.jpg",         "",
  "WIP-08.jpg",       	"",
  "WIP-09.jpg",         "",
  "WIP-10.jpg",         "",
  "WIP-11.jpg",       	"",
  "WIP-12.jpg",       	"",
  "WIP-13.jpg",       	"",
  "WIP-14.jpg",       	"",
  "WIP-15.jpg",       	"",
  "WIP-15.jpg",         ""
)
var adNr = -1
while (adNr/2 != Math.round(adNr/2)) adNr = Math.round((Math.random()*adImg.length-1))
function rotate() {
	if (adNr > adImg.length - 2) adNr = 0
	document.adDsp.src = "../images/WIP/" + adImg[adNr];
	adImg[adNr+1] == "" ? setLink("javascript:;","_self") : setLink(adImg[adNr+1],"_blank")
	adNr = adNr + 2
	adTimer = setTimeout("rotate()",5000)
}
function setLink(a,b) {
  with (document.all["adLnk"]) {
    href = a
    target = b
  }
}
function adJumper(){
	clearTimeout(adTimer);
}


