var timeout	= 100;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 



var currentdate = 0;
var core = 0;

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' ';

  }
}

image = new StringArray(11);


var ran = 60/image.length;

function ranimage() {
  currentdate = new Date();
  core = currentdate.getSeconds();
  core = Math.floor(core/ran);
    return(image[core]);
}


<!-- 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/side_image.jpg'
theImages[1] = '/images/side_image2.jpg'
theImages[2] = '/images/side_image3.jpg'
theImages[3] = '/images/side_image4.jpg'
theImages[4] = '/images/side_image5.jpg'
theImages[5] = '/images/side_image6.jpg'
theImages[6] = '/images/side_image7.jpg'
theImages[7] = '/images/side_image8.jpg'
theImages[8] = '/images/side_image9.jpg'
theImages[9] = '/images/side_image10.jpg'
theImages[10] = '/images/side_image11.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 showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


var r_text = new Array ();
r_text[0] = "Many professors are knowledgeable, fascinating, and on top of new developments in the computer field";
r_text[1] = "CS professors at KSU prepare you for the future by introducing students to the ever changing reality of the field";
r_text[2] = "The CS Department is a good partner with industry in order to get jobs and internships for students";
r_text[3] = "KSU's CS Department has a unique student centric approach, and offers many useful and entertaining courses";


var i = Math.floor(4*Math.random())

function writeText()
{
	document.write(r_text[i]);
}


function isIE()
{
	return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);

}