// JavaScript Document
// 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 = "186"
ads[1].height = "115"
ads[1].src = "images/citylink-automated-tollway.jpg"
ads[1].href = "projects/transportation.html"
ads[1].border = "0"
ads[1].mouseover = "CityLink Automated Tollway TFMS, Melbourne, Australia"
ads[1].sponsor = "CityLink Automated Tollway TFMS, Melbourne, Australia"

ads[2].width = "186"
ads[2].height = "115"
ads[2].src = "images/devils-slide-tunnels.jpg"
ads[2].href = "projects/transportation.html"
ads[2].border = "0"
ads[2].mouseover = "Devil's Slide Tunnels, CA, USA"
ads[2].sponsor = "Devil's Slide Tunnels, CA, USA"

ads[3].width = "186"
ads[3].height = "115"
ads[3].src = "images/gwinnett-county-lanier-wtp.jpg"
ads[3].href = "projects/environmental.html"
ads[3].border = "0"
ads[3].mouseover = "Lanier WTP DCS & SCADA, GA, USA"
ads[3].sponsor = "Lanier WTP DCS & SCADA, GA, USA"

ads[4].width = "186"
ads[4].height = "115"
ads[4].src = "images/pearl-harbor-scada.jpg"
ads[4].href = "projects/energy.html"
ads[4].border = "0"
ads[4].mouseover = "Pearl Harbor Naval Base SCADA, HI, USA"
ads[4].sponsor = "Pearl Harbor Naval Base SCADA System, HI, USA"

ads[5].width = "186"
ads[5].height = "115"
ads[5].src = "images/toronto-transit-commission.jpg"
ads[5].href = "projects/transportation.html"
ads[5].border = "0"
ads[5].mouseover = "TTC SCADA System, Toronto, Canada"
ads[5].sponsor = "TTC SCADA System, Toronto, Canada"

ads[6].width = "186"
ads[6].height = "115"
ads[6].src = "images/CCMWA.jpg"
ads[6].href = "projects/environmental.html"
ads[6].border = "0"
ads[6].mouseover = "CCMWA Wyckoff WTP, GA, USA"
ads[6].sponsor = "CCMWA Wyckoff WTP, GA, USA"

ads[7].width = "186"
ads[7].height = "115"
ads[7].src = "images/NZT.jpg"
ads[7].href = "projects/transportation.html"
ads[7].border = "0"
ads[7].mouseover = "New Zealand State Highway ATMS, Auckland and Wellington, New Zealand"
ads[7].sponsor = "New Zealand State Highway ATMS, Auckland and Wellington, New Zealand"

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><br>' + image.sponsor + '</a>'