<!-- Begin
// 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/main1.jpg'
theImages[1] = 'images/main2.jpg'
theImages[2] = 'images/main3.jpg'
theImages[3] = 'images/main4.jpg'
theImages[4] = 'images/main5.jpg'
theImages[5] = 'images/main6.jpg'
theImages[6] = 'images/main7.jpg'
theImages[7] = 'images/main8.jpg'
theImages[8] = 'images/main9.jpg'
theImages[9] = 'images/main10.jpg'
theImages[10] = 'images/main11.jpg'
theImages[11] = 'images/main12.jpg'
theImages[12] = 'images/main13.jpg'
theImages[13] = 'images/main14.jpg'
theImages[14] = 'images/main15.jpg'
theImages[15] = 'images/main16.jpg'
theImages[16] = 'images/main17.jpg'
theImages[17] = 'images/main18.jpg'
theImages[18] = 'images/main19.jpg'
theImages[19] = 'images/main20.jpg'
theImages[20] = 'images/main21.jpg'
theImages[21] = 'images/main22.jpg'
theImages[22] = 'images/main23.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length - 1;
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));
function showImage(){
//document.write('<img src="'+theImages[whichImage]+'">');
document.getElementById("MainImage").innerHTML = "<img src='" + theImages[whichImage] + "' border='0' />";

}

// JavaScript Document
function gotoLink()
{
	var selObj = document.main.quicklinks;
	var selIndex = selObj.selectedIndex;
	//document.main.show.value = (selIndex == -1) ? '' : selObj.options[selIndex].value;
window.alert(selIndex);
	if (selIndex >= 0)
	{
		window.open(selObj.options[selIndex].value ,"_parent");
	}
}

// this js is from site 
// http://blog.amodernfable.com/2007/01/05/equal-height-100-height-columns-with-css-and-javascript/
// why re-invent the thing?
function equalColumns()
{
	var l = document.getElementById('navBar');
	var c = document.getElementById('content');
	var h = document.getElementById('headlines');

	if (c.offsetHeight >= l.offsetHeight)
	{
		if (h.offsetHeight >= c.offsetHeight)
		{
			c.style.height = h.offsetHeight + 10 + "px";
		}
		else
		{
			l.style.height = c.offsetHeight + 10 + "px";
		}
	}
	else
	{
		if (h.offsetHeight >= l.offsetHeight)
		{
			c.style.height = h.offsetHeight + 10 + "px";
		}
	}
	
	//window.alert("navBar: " + l.offsetHeight +"\n content" + c.offsetHeight +"\n headlines" + (h.offsetHeight + f.offsetHeight));
	//r.offsetHeight >= l.offsetHeight ? l.style.height = r.offsetHeight + "px" : r.style.height = l.offsetHeight + "px";
}

//  End -->