
// Define pics in the following array.  It's set up for ten pics now, but can be modified.
var pics = ["placeholder. don't modify me. the zero item in the array is never called upon",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/1.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/2.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/3.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/4.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/5.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/6.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/7.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/8.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/9.gif width=100% height=100 border=0></a>",
			"<a href=http://www.bxma.org/inprojects/ingraffiti/index.html target=_blank><img src=img/carts/10.gif width=100% height=100 border=0></a>"]

// This calculates the random number.
var randomNumber = Math.ceil(Math.random() * 10);

// This is a patch, the random number output is 0-10.  This would need to be modified (by changing the greater than # in the if line and the # to subtract from random number in the line that follows) if more pics are added.
if (randomNumber > 10) {
	randomNumber = randomNumber-10;
}

