// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=7; i++) { ads[i] = new create() }

ads[1].width = "200"
ads[1].height = "240"
ads[1].src = "/Crcweb/images/CRCSlides01.jpg"
ads[1].border = "0"

ads[2].width = "200"
ads[2].height = "240"
ads[2].src = "/Crcweb/images/CRCSlides02.jpg"
ads[2].border = "0"

//ads[3].width = "200"
//ads[3].height = "240"
//ads[3].src = "/Crcweb/images/CRCSlides03.jpg"
//ads[3].border = "0"

ads[3].width = "200"
ads[3].height = "240"
ads[3].src = "/Crcweb/images/CRCSlides04.jpg"
ads[3].border = "0"

ads[4].width = "200"
ads[4].height = "240"
ads[4].src = "/Crcweb/images/CRCSlides05.jpg"
ads[4].border = "0"

ads[5].width = "200"
ads[5].height = "240"
ads[5].src = "/Crcweb/images/CRCSlides06.jpg"
ads[5].border = "0"

ads[6].width = "200"
ads[6].height = "240"
ads[6].src = "/Crcweb/images/CRCSlides07.jpg"
ads[6].border = "0"

ads[7].width = "200"
ads[7].height = "240"
ads[7].src = "/Crcweb/images/CRCSlides08.jpg"
ads[7].border = "0"

var n = Math.random() + ''
n = parseInt(n.charAt(7))
if(n >7) {
        n = n - 7
}
else if(n==0) {
        n = n + 7
}
n += ""

var image = ads[n]
var ad = ""
ad += '<a href="' + image.href + '" \n'
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'"> \n'
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
ad += '\n> ' + image.sponsor + '</a>'