
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Bob Simpson (webmaster@maryjanebrown.net) -->
<!-- Web Site:  http://www.maryjanebrown.net/webmaster -->

<!-- Begin
//var irotatenews = (Math.round(Math.random()*(headlines.length-2))+1); Changed by amutti on 20110317 because it wasn't showing the first item in the array.
var irotatenews = (Math.round(Math.random()*(headlines.length-2)));
var rotationspeed=0, tempdata="";
var currentsec=0;
var keepgoin=true;
var oldmacie;

//if (document.getElementById) {
//document.write('<ul><li style="background: url(img/images/defaultthumb.gif) no-repeat left 0px;" id="headlineOne" ><a href="http://www1.wne.edu/news" ><img src="img/images/news.gif" alt="News" width="57" height="17" align="left" border="0" /></a><br clear="all" /><a href="http://www1.wne.edu/news" id="linkeOne"><strong>Loading . . .</strong><a></li><li style="background-image:url(img/images/defaultthumb.gif)" id="headlineTwo" ><a href="http://www1.wne.edu/news" id="linkTwo" ><strong>Loading . . .</strong></a></li></ul>' );
//tempdata = 'MM_findObj("linkeOne").href = headlines[parseInt(irotatenews)][1];MM_findObj("headlineOne").style.backgroundImage="url(http://www1.wne.edu/images/"+headlines[parseInt(irotatenews)][2]+")";MM_findObj("linkeOne").firstChild.firstChild.nodeValue = headlines[parseInt(irotatenews++)][0];if(irotatenews == headlines.length){irotatenews = 0;};MM_findObj("linkTwo").href = headlines[parseInt(irotatenews)][1];MM_findObj("headlineTwo").style.backgroundImage="url(http://www1.wne.edu/images/"+headlines[parseInt(irotatenews)][2]+")";MM_findObj("linkTwo").firstChild.firstChild.nodeValue = headlines[parseInt(irotatenews++)][0];';
//}

if (document.getElementById) {
document.write('<ul><li style="background-image: url(http://www1.wne.edu/images/20112811041320101214151032DSC_0237.jpg); "><a href="http://www1.wne.edu/news/"><img src="img/images/news.gif" alt="News" width="57" height="17" align="left" border="0" /></a><br clear="all" /><a href=" http://www1.wne.edu/news/index.cfm?selection=doc.2507&amp;DCIid=14150"><strong>School of Pharmacy Receives Precandidate Accreditation </strong></a></li><li style="background: url(img/images/defaultthumb.gif) no-repeat left 0px;" id="headlineOne" ><a href="http://www1.wne.edu/news" id="linkeOne"><strong>Loading . . .</strong><a></li></ul>' );
tempdata = 'MM_findObj("linkeOne").href = headlines[parseInt(irotatenews)][1];MM_findObj("headlineOne").style.backgroundImage="url(http://www1.wne.edu/images/"+headlines[parseInt(irotatenews)][2]+")";MM_findObj("linkeOne").firstChild.firstChild.nodeValue = headlines[parseInt(irotatenews++)][0];if(irotatenews == headlines.length){irotatenews = 0;};MM_findObj("linkTwo").href = headlines[parseInt(irotatenews)][1];MM_findObj("headlineTwo").style.backgroundImage="url(http://www1.wne.edu/images/"+headlines[parseInt(irotatenews)][2]+")";MM_findObj("linkTwo").firstChild.firstChild.nodeValue = headlines[parseInt(irotatenews++)][0];';
}

function msgRotate() {
	if ((currentsec >= rotationspeed)&&( keepgoin==true))
		{
			if(irotatenews == headlines.length || headlines.length == 1)
				{irotatenews = 0;}
			eval(tempdata);
			rotationspeed = 55;
			
			currentsec=0;
			msgRotate();
		}
	else if (keepgoin==true)
		{
			currentsec++;
			//window.status=currentsec;
			setTimeout("msgRotate()", 500);
		}
		
	else {setTimeout("msgRotate()", 500);}
}
			


function pauseTimeout(){
	keepgoin=false;
	}

function restartTimeout(){
		keepgoin=true;
	}
//window.onload = msgRotate();
//  End -->
