<!-- Rotating Banner Script -->
<!-- For more scripts visit http://www.netpedia.com -->
<!-- Original script modified -->
<!-- START OF SCRIPT -->

function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
}

// Array for random ads
// Note the max value of i is the total number of ads.
// If more ads are added, the max value of i needs to
// be reset accordingly for all ads to be displayed.
ads = new Array()
for(var i=1; i<=5; i++) { ads[i] = new create() }

ads[1].width = "468"
ads[1].height = "60"
ads[1].src = "http://cognigen.net/banners/png1.gif"
ads[1].href = "http://ld.net/products/?product=png&cogid=widowsmites"

ads[2].width = "468"
ads[2].height = "60"
ads[2].src = "http://cognigen.net/banners/cell003.gif"
ads[2].href = "http://cognigen.net/cellular/?widowsmites"

// These next three ads are duplicates and can be switched
// or extended to a greater number quite easily. Just be
// sure that you coordinate the number of ads with the
// rest of the rotation script.
ads[3].width = "468"
ads[3].height = "60"
ads[3].src = "http://cognigen.net/banners/png1.gif"
ads[3].href = "http://ld.net/products/?product=png&cogid=widowsmites"

ads[4].width = "468"
ads[4].height = "60"
ads[4].src = "http://cognigen.net/banners/cell003.gif"
ads[4].href = "http://cognigen.net/cellular/?widowsmites"

ads[5].width = "468"
ads[5].height = "60"
ads[5].src = "http://cognigen.net/banners/png1.gif"
ads[5].href = "http://ld.net/products/?product=png&cogid=widowsmites"

// Random number generator
// Note value of n.charAt needs to equal the number of ads.
// Correct this value when more advertisements are added.
var n = Math.random() + ''
n = parseInt(n.charAt(5))
// Note that the number greater than n is the number of ads.
// Correct this value when more advertisements are added.
if(n >5) {
        n = n - 5
}
// Note that the number added to n here is the number of ads.
// Correct this value when more advertisements are added.
else if(n==0) {
        n = n + 5
}
n += ""

// Add link and image source
var image = ads[n]
var ad = ""
ad += '<A HREF="' + image.href + '" TARGET="_blank" onMouseOver="self.status=\'Advertisement\'; return true;" onMouseOut="self.status=\'\'; return true;">'
ad += '<IMG SRC="' + image.src + '" WIDTH=' + image.width + ' HEIGHT=' + image.height + ' BORDER="0" ALT="Advertisement"></a>'

<!-- END OF SCRIPT -->