// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/top_t_1n2.jpg'
// theImages[1] = 'images/top_b_1n2.jpg'
// theImages[2] = 'images/top_p_1n2.jpg'
theImages[1] = 'images/top_2wb_1n2.jpg'


// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showRandomImage()
{
showImage(theImages[whichImage]);
}	
	
function showImage(image)
{
document.write('<img src="'+ image +'"><img src="images/top_t_3.jpg"><img src="images/top_t_4.jpg"><img src="images/top_t_5.jpg">');
}	

function showOnroadBanner()
{
document.write('<table width="100%" height="150" border="0" cellpadding="0" cellspacing="0" id="top_header">');
document.write('<tr>');
document.write('<td background="images/top_sideline_bg.jpg" align="center"><script language="JavaScript">showImage(theImages[0]);</script></td>');
document.write('</tr>');
document.write('</table>');
}

function showOffroadBanner()
{
document.write('<table width="100%" height="150" border="0" cellpadding="0" cellspacing="0" id="top_header">');
document.write('<tr>');
document.write('<td background="images/top_sideline_bg.jpg" align="center"><script language="JavaScript">showImage(theImages[1]);</script></td>');
document.write('</tr>');
document.write('</table>');
}

function showBanner()
{
document.write('<table width="100%" height="150" border="0" cellpadding="0" cellspacing="0" id="top_header">');
document.write('<tr>');
document.write('<td background="images/top_sideline_bg.jpg" align="center"><script language="JavaScript">showRandomImage()</script></td>');
document.write('</tr>');
document.write('</table>');
}

function showHitCounter()
{
document.write('<DIV ALIGN="CENTER"><img src="http://xyz.freeweblogger.com/counter/index.php?u=bmcc&s=scoreboard" ALIGN="middle" HSPACE="4" VSPACE="2"><script src=http://xyz.freeweblogger.com/counter/script.php?u=bmcc></script></DIV>');
}