var theImages = new Array() // do not change this
var theSubImages = new Array() // do not change this
var theLinks = new Array() // do not change this
var theTargets = new Array() // do not change this

// To add more image files, continue with the

// pattern below, adding to the array.



theImages[0] = 'images/features/reinaldo_talk_01.jpg'

theImages[1] = 'images/features/patt_talk_01.jpg'

theImages[2] = 'images/features/haigh_wilkerson_talk_01.jpg'

theImages[3] = 'images/features/cecs_open_house_1_01.jpg'

theImages[4] = 'images/features/cecs_open_house_2_01.jpg'

theImages[5] = 'images/features/hakhu_visit_01.jpg'

theImages[6] = 'images/features/scess_2003_2_01.jpg'

theImages[21] = 'images/features/arvind_talk_01.jpg'

theImages[22] = 'images/features/rajiv_talk_01.jpg'

theImages[23] = 'images/features/palsberg_talk_01.jpg'

theImages[24] = 'images/features/hu_talk_01.jpg'

theImages[11] = 'images/features/open_house_2004_01.jpg'

theImages[12] = 'images/features/open_house_2004_2_01.jpg'

theImages[13] = 'images/features/zhu_talk_01.jpg'

theImages[14] = 'images/features/briggs_talk_01.jpg'

theImages[15] = 'images/features/vahid_eblocks_01.gif'

theImages[16] = 'images/features/chou_wireless_01.jpg'

theImages[17] = 'images/features/gajski_SCDE_01.jpg'

theImages[18] = 'images/features/bozorgzadeh_timing_01.jpg'

theImages[19] = 'images/features/gathering_2007_01.jpg'

theImages[20] = 'images/features/fujita_talk_01.jpg'

theImages[7] = 'images/features/cecs_potluck_2008_02.jpg'

theImages[8] = 'images/features/cecs_potluck_2008_03.jpg'

theImages[9] = 'images/features/cecs_potluck_2008_05.jpg'

theImages[10] = 'images/features/cecs_potluck_2008_05.jpg'

theImages[25] = 'images/features/cecs-open-house-2008-01a.jpg'

theImages[26] = 'images/features/cecs-open-house-2008-01b.jpg'

theImages[27] = 'images/features/cecs-open-house-2008-01c.jpg'

theImages[28] = 'images/features/cecs-open-house-2008-01d.jpg'

theImages[29] = 'images/features/cecs-open-house-2008-01e.jpg'

theImages[30] = 'images/features/airb_building_01a.jpg'

theImages[31] = 'images/features/airb_building_01b.jpg'

theImages[32] = 'images/features/airb_building_01c.jpg'

theImages[33] = 'images/features/airb_building_02a.jpg'





theSubImages[0] = 'images/features/reinaldo_talk_02.gif'

theSubImages[1] = 'images/features/patt_talk_02.gif'

theSubImages[2] = 'images/features/haigh_wilkerson_talk_02.gif'

theSubImages[3] = 'images/features/cecs_open_house_1_02.gif'

theSubImages[4] = 'images/features/cecs_open_house_2_02.gif'

theSubImages[5] = 'images/features/hakhu_visit_02.gif'

theSubImages[6] = 'images/features/scess_2003_2_02.gif'

theSubImages[21] = 'images/features/arvind_talk_02.gif'

theSubImages[22] = 'images/features/rajiv_talk_02.gif'

theSubImages[23] = 'images/features/palsberg_talk_02.gif'

theSubImages[24] = 'images/features/hu_talk_02.gif'

theSubImages[11] = 'images/features/open_house_2004_02.gif'

theSubImages[12] = 'images/features/open_house_2004_2_02.gif'

theSubImages[13] = 'images/features/zhu_talk_02.gif'

theSubImages[14] = 'images/features/briggs_talk_02.gif'

theSubImages[15] = 'images/features/vahid_eblocks_02.gif'

theSubImages[16] = 'images/features/chou_wireless_02.gif'

theSubImages[17] = 'images/features/gajski_SCDE_02.gif'

theSubImages[18] = 'images/features/bozorgzadeh_timing_02.gif'

theSubImages[19] = 'images/features/gathering_2007_02.gif'

theSubImages[20] = 'images/features/fujita_talk_02.gif'

theSubImages[7] = 'images/features/cecs_potluck_2008.gif'

theSubImages[8] = 'images/features/cecs_potluck_2008.gif'

theSubImages[9] = 'images/features/cecs_potluck_2008.gif'

theSubImages[10] = 'images/features/cecs_potluck_2008.gif'

theSubImages[25] = 'images/features/cecs_open_house_2008_02.gif'

theSubImages[26] = 'images/features/cecs_open_house_2008_02.gif'

theSubImages[27] = 'images/features/cecs_open_house_2008_02.gif'

theSubImages[28] = 'images/features/cecs_open_house_2008_02.gif'

theSubImages[29] = 'images/features/cecs_open_house_2008_02.gif'

theSubImages[30] = 'images/features/airb_building_02.gif'

theSubImages[31] = 'images/features/airb_building_02.gif'

theSubImages[32] = 'images/features/airb_building_02.gif'

theSubImages[33] = 'images/features/airb_building_02.gif'





theLinks[0] = 'eve_lec_and_sem_details/lec_bergamaschi_overview.htm'

theLinks[1] = 'eve_lec_and_sem_details/lec_patt_overview.htm'

theLinks[2] = 'eve_lec_and_sem_details/lec_haigh_wilkerson_overview.htm'

theLinks[3] = '#'

theLinks[4] = '#'

theLinks[5] = '#'

theLinks[6] = 'eve_symposiums_details/scess_2003.htm'

theLinks[21] = 'eve_lec_and_sem_details/lec_arvind_overview.htm'

theLinks[22] = 'eve_colloquium_details/lec_gupta_overview.htm'

theLinks[23] = 'eve_colloquium_details/lec_palsberg_overview.htm'

theLinks[24] = 'eve_colloquium_details/lec_hu_overview.htm'

theLinks[11] = 'openHouse'

theLinks[12] = 'openHouse'

theLinks[13] = 'eve_lec_and_sem_details/lec_zhu_overview.htm'

theLinks[14] = 'eve_lec_and_sem_details/lec_briggs_overview.htm'

theLinks[15] = 'pro_vahid.htm'

theLinks[16] = 'pro_chou.htm'

theLinks[17] = 'pro_gajski.htm'

theLinks[18] = 'pro_bozorgzadeh.htm'

theLinks[19] = 'misc_files/cecs_student_faculty_2007.htm'

theLinks[20] = 'eve_lec_and_sem_details/lec_fujita_08_overview.pdf'

theLinks[7] = '#'

theLinks[8] = '#'

theLinks[9] = '#'

theLinks[10] = '#'

theLinks[25] = '#'

theLinks[26] = '#'

theLinks[27] = '#'

theLinks[28] = '#'

theLinks[29] = '#'

theLinks[30] = '#'

theLinks[31] = '#'

theLinks[32] = '#'

theLinks[33] = '#'


theTargets[0] = '_self'

theTargets[1] = '_self'

theTargets[2] = '_self'

theTargets[3] = '_self'

theTargets[4] = '_self'

theTargets[5] = '_self'

theTargets[6] = '_self'

theTargets[21] = '_self'

theTargets[22] = '_self'

theTargets[23] = '_self'

theTargets[24] = '_self'

theTargets[11] = '_self'

theTargets[12] = '_self'

theTargets[13] = '_self'

theTargets[14] = '_self'

theTargets[15] = '_self'

theTargets[16] = '_self'

theTargets[17] = '_self'

theTargets[18] = '_self'

theTargets[19] = '_self'

theTargets[20] = '_blank'

theTargets[7] = '_self'

theTargets[8] = '_self'

theTargets[9] = '_self'

theTargets[10] = '_self'

theTargets[25] = '_self'

theTargets[26] = '_self'

theTargets[27] = '_self'

theTargets[28] = '_self'

theTargets[29] = '_self'

theTargets[30] = '_self'

theTargets[31] = '_self'

theTargets[32] = '_self'

theTargets[33] = '_self'

// do not edit anything below this line



var j = 0

var p = theImages.length;
var q = theSubImages.length;
var s = theLinks.length;

var preBuffer = new Array()
var preSubBuffer = new Array()
var preLinkBuffer = new Array()

for (i = 0; i < p; i++){

   preBuffer[i] = new Image()

   preBuffer[i].src = theImages[i]

}

for (i = 0; i < q; i++){

   preSubBuffer[i] = new Image()

   preSubBuffer[i].src = theSubImages[i]

}

for (i = 0; i < s; i++){

   preLinkBuffer[i] = new Image()

   preLinkBuffer[i].src = theLinks[i]

}

var whichImage = p-1;
randomPic();

function randomPic(){
var randomnumber=Math.floor(Math.random()*101);
   if (randomnumber <=35)
		   whichImage = Math.round(Math.random()*(p-9))
	   else if ((randomnumber > 35) && (randomnumber <= 41))
	       whichImage = p-8;
	   else if ((randomnumber > 41) && (randomnumber <= 47))
	       whichImage = p-7;
	   else if ((randomnumber > 47) && (randomnumber <= 55))
	       whichImage = p-6;
	   else if ((randomnumber > 55) && (randomnumber <= 66))
	       whichImage = p-5;
	   else if ((randomnumber > 66) && (randomnumber <= 74))
	       whichImage = p-4;
       else if ((randomnumber > 74) && (randomnumber <= 83))
           whichImage = p-3;
	   else
	       whichImage = p-2;

}

function showImage(){

if (theLinks[whichImage] == "#")
{
document.write('<img src="'+theImages[whichImage]+'" border="0">');
}
else if (theLinks[whichImage] == "openHouse")
{
document.write('<a href="javascript:void(0);" onClick="window.open(\'openHouse/openHousePop2004.html\',\'openHousePop2004\',\'width=500,height=300\')"><img src="'+theImages[whichImage]+'" border="0"></a>')
}
else
{
document.write('<a href="'+theLinks[whichImage]+'" target="'+theTargets[whichImage]+'"><img src="'+theImages[whichImage]+'" border="0"></a>');
}
}

function showSubImage(){

if (theLinks[whichImage] == "#")
{
document.write('<img src="'+theSubImages[whichImage]+'" border="0">');
}
else if (theLinks[whichImage] == "openHouse")
{
document.write('<a href="javascript:void(0);" onClick="window.open(\'openHouse/openHousePop2004.html\',\'openHousePop2004\',\'width=500,height=300\')"><img src="'+theSubImages[whichImage]+'" border="0"></a>')
}
else
{
document.write('<a href="'+theLinks[whichImage]+'" target="'+theTargets[whichImage]+'"><img src="'+theSubImages[whichImage]+'" border="0"></a>');
}
}
