function random_imglink(){

	var dykimages=new Array();
// Specify random images below. You can have as many or few as you wish
		dykimages[1]="http://www.stonybrook.edu/sb/facts/dyk1.gif";
		dykimages[2]="http://www.stonybrook.edu/sb/facts/dyk2.gif";
		dykimages[3]="http://www.stonybrook.edu/sb/facts/dyk3.gif";
		dykimages[4]="http://www.stonybrook.edu/sb/facts/dyk4.gif";
		dykimages[5]="http://www.stonybrook.edu/sb/facts/dyk5.gif";
		dykimages[6]="http://www.stonybrook.edu/sb/facts/dyk6.gif";
		dykimages[7]="http://www.stonybrook.edu/sb/facts/dyk7.gif";
		dykimages[8]="http://www.stonybrook.edu/sb/facts/dyk8.gif";
		dykimages[9]="http://www.stonybrook.edu/sb/facts/dyk9.gif";
		dykimages[10]="http://www.stonybrook.edu/sb/facts/dyk10.gif";
		dykimages[11]="http://www.stonybrook.edu/sb/facts/dyk11.gif";
		dykimages[12]="http://www.stonybrook.edu/sb/facts/dyk12.gif";
		dykimages[13]="http://www.stonybrook.edu/sb/facts/dyk13.gif";

// Specify corresponding links below.
// Make sure there are the same number as in the above array.
	var dyklinks=new Array();
		dyklinks[1]="http://www.stonybrook.edu/sb/arts.shtml";
		dyklinks[2]="http://www.stonybrook.edu/sb/southampton/";
		dyklinks[3]="http://www.stonybrook.edu/sb/wang/";
		dyklinks[4]="http://goseawolves.cstv.com/ ";
		dyklinks[5]="http://www.aau.edu/";
		dyklinks[6]="http://www.stonybrook.edu/journalism/";
		dyklinks[7]="http://www.stonybrook.edu/writers/";
		dyklinks[8]="http://www.stonybrookphysicians.com/news/reattaching_both_hands:_a_ny_first;_surgeons_beat_the_clock_after_factory_accident_56.asp";
		dyklinks[9]="http://turkanabasin.org/";
		dyklinks[10]="http://www.stonybrook.edu/sbccs/";
		dyklinks[11]="http://commcgi.cc.stonybrook.edu/am2/publish/General_University_News_2/Best_Values_By_Kiplingers.shtml";
		dyklinks[12]="http://www.cewit.org/";
		dyklinks[13]="http://www.stonybrook.edu/sb/impact";

	var dyktarget=new Array();
// Whether to target a new browser window or not
// _self keeps it in the same window.  _blank sends it to a new window.
// Numbers should correspsond with the above.
		dyktarget[1]="_self";
		dyktarget[2]="_self";
		dyktarget[3]="_self";
		dyktarget[4]="_blank";
		dyktarget[5]="_blank";
		dyktarget[6]="_self";
		dyktarget[7]="_self";
		dyktarget[8]="_blank";
		dyktarget[9]="_blank";
		dyktarget[10]="_self";
		dyktarget[11]="_self";
		dyktarget[12]="_blank";
		dyktarget[13]="_self";
		
		
	var sbdyk=Math.floor(Math.random()*dykimages.length)
// Double check for an error, just in case
	if (sbdyk==0) {
		sbdyk=1;
	}
// Write the link and image code
	document.write('<a href="'+dyklinks[sbdyk]+'" target="'+dyktarget[sbdyk]+'"><img src="'+dykimages[sbdyk]+'" border="0" width="220" height="226" alt="Facts about Stony Brook University"></a>');
}

