    adImages = new Array(
		"/images/banner_dvo.jpg",
		"/images/banner_lei.jpg",
		"/images/banner_log.jpg",
		"/images/banner_noc.jpg"
		)
	adURL = new Array(
		"http://www.dvo.org.uk",
		"http://leioc.org.uk",
		"http://www.logonline.org.uk",
		"http://www.noc-uk.org/NOC.aspx"
		)
	thisAd = 0
    imgCt = adImages.length
    firstTime = true

 function rotate() {
    if (document.images) {
        if (firstTime) {
            thisAd = Math.floor((Math.random() * imgCt))
            firstTime = false
        }
		else {
			if (document.adBanner.complete) {
		        thisAd++
				if (thisAd == imgCt) {
					thisAd = 0
				}
			}
			document.adBanner.src=adImages[thisAd]
			}
          setTimeout("rotate()", 5 * 1000)
    }
 }

 function newLocation(){
	document.location.href = adURL[thisAd]
 }