// JavaScript Document
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.mouseover = ''
		this.text = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=5; i++) { ads[i] = new create() }

ads[1].width = "125"
ads[1].height = "99"
ads[1].src = "images/shoutouts/bperez.jpg"
ads[1].href = "shoutouts/bperez.html"
ads[1].mouseover = "Photo: Berémis Pérez"
ads[1].text = "When I came to the United States in the year 2002 I faced one of the most difficult challenges in my life."
ads[1].sponsor = ">>"

ads[2].width = "125"
ads[2].height = "99"
ads[2].src = "images/shoutouts/ygutierrez.jpg"
ads[2].href = "shoutouts/ygutierrez.html"
ads[2].mouseover = "Photo: Yesenia Gutierrez"
ads[2].text = "As an incoming freshman in 2002, I had the opportunity to join the <strong>College Discovery Club </strong>(CDers)."
ads[2].sponsor = ">>"



ads[3].width = "125"
ads[3].height = "99"
ads[3].src = "images/shoutouts/ehageman.jpg"
ads[3].href = "shoutouts/hageman.html"
ads[3].mouseover = "Photo: Eva Hageman"
ads[3].text = "In the summer of 2003 I entered BMCC after being informed that I would need to take a remedial class."
ads[3].sponsor = ">>"

ads[4].width = "125"
ads[4].height = "99"
ads[4].src = "images/shoutouts/GaryChang.JPG"
ads[4].href = "shoutouts/GaryChang.html"
ads[4].mouseover = "Photo: Gary Chang"
ads[4].text = "BMCC has been generous to me. As a quoted advertisement states, Start Here, Go Anywhere, the school has open its doors of opportunities to me and to the students who wish to achieve excellence."
ads[4].sponsor = ">>"

ads[5].width = "125"
ads[5].height = "99"
ads[5].src = "images/shoutouts/ehageman.jpg"
ads[5].href = "shoutouts/hageman.html"
ads[5].mouseover = "Photo: Eva Hageman"
ads[5].text = "In the summer of 2003 I entered BMCC after being informed that I would need to take a remedial class."
ads[5].sponsor = ">>"

var n = Math.random() + ''
n = parseInt(n.charAt(5))
if(n >5) {
        n = n - 5
}
else if(n==0) {
        n = n + 5
}
n += ""

var image = ads[n]
var ad = ""

ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height 
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'"> \n'
ad += '<br><table width="125" border="0" cellspacing="0" cellpadding="4"><tr><td width="121" bgcolor="#e6e6e6" class="rtside">' + image.text + ' \n'
ad += '<a href="' + image.href + '" \n'
ad += '\n>  ' + image.sponsor + '</a></td></tr></table>'
