// JavaScript Document

var date = new Date();
var time = date.getSeconds();
var images = new Array();
var links = new Array();
var text = new Array();
var num_images = 19;
var message = 'This link is not active, there is no more additional information on this project.';

//var cpu = navigator.cpuClass.toLowerCase();
var browser = navigator.userAgent.toLowerCase();
broswer = browser.substr(0,11);

function check_browser()
{
	if(browser == "mozilla/4.77") 
	{
		alert("You are using an old browser.  Some portions of this site will not work and others will not look correct.  We recommend you upgrade to IE 6 or Netscape 6.");
	}

}

//Definitions of Image/Link/Text
images[0] = "01";
links[0] = "javascript:alert(message);";
text[0] = "Test 1";

images[1] = "02";
links[1] = "javascript:alert(message);";
text[1] = "Test 2";

images[2] = "03";
links[2] = "javascript:alert(message);";
text[2] = "Test 3";

images[3] = "04";
links[3] = "javascript:alert(message);";
text[3] = "Test 4";

images[4] = "05";
links[4] = "javascript:alert(message);";
text[4] = "Test 5";

images[5] = "06";
links[5] = "javascript:alert(message);";
text[5] = "Test 6";

images[6] = "07";
links[6] = "javascript:alert(message);";
text[6] = "Test 7";

images[7] = "08"
links[7] = "javascript:alert(message);";
text[7] = "Test 8";

images[8] = "09"
links[8] = "javascript:alert(message);";
text[8] = "Test 9";

images[9] = "10"
links[9] = "javascript:alert(message);";
text[9] = "Test 10";

images[10] = "11"
links[10] = "javascript:alert(message);";
text[10] = "Test 11";

images[11] = "12"
links[11] = "javascript:alert(message);";
text[11] = "Test 12";

images[12] = "13"
links[12] = "javascript:alert(message);";
text[12] = "Test 13";

images[13] = "14"
links[13] = "javascript:alert(message);";
text[13] = "Test 14";

images[14] = "15"
links[14] = "javascript:alert(message);";
text[14] = "Test 15";

images[15] = "16"
links[15] = "javascript:alert(message);";
text[15] = "Test 16";


images[16] = "17"
links[16] = "javascript:alert(message);";
text[16] = "Test 17";

images[17] = "18"
links[17] = "javascript:alert(message);";
text[17] = "Test 18";

images[18] = "19"
links[18] = "javascript:alert(message);";
text[18] = "Test 19";


function set_images(x)
{	cur_image = ((time + x) % num_images);
	document.writeln("<A href='" + links[cur_image] + "'><img border='0' src='images/homepage/" + images[cur_image] + ".jpg' alt='" + text[cur_image] + "' width='115' height='115'></a>");
}
// below was added by Keith Chugg for his personal page csi.usc.edu/chugg/
function set_kmc_images(x)
{	cur_image = ((time + x) % num_images);
	document.writeln("<A href='" + links[cur_image] + "'><img border='0' src='/chugg/images/homepage/" + images[cur_image] + ".jpg' alt='" + text[cur_image] + "  height='200'></a>");
}
