<!--
//<![CDATA[
/*  You can get this script and many others 
    by visiting JavaScript City at: http://www.javascriptcity.com . */

pic_width=222;   /*change to match the height of all your images */
pic_height=93;   /* change to match the width of all your images */
border_size=0;   /* change to the border size you want on the images */
alignment=0;      /* 0=left,1=center */

/* define image urls */

if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic1.src="/banner/USUcampus.jpg";  
     pic2= new Image(pic_width,pic_height); 
     pic2.src="/banner/hersh.jpg"; 
     pic3= new Image(pic_width,pic_height);
     pic3.src="/banner/mailbox.jpg";
	 pic4= new Image(pic_width,pic_height);
     pic4.src="/banner/topaz.jpg";
	 pic5= new Image(pic_width,pic_height);
     pic5.src="/banner/bear.jpg";
 	 pic6= new Image(pic_width,pic_height);
     pic6.src="/banner/journal.jpg";
	 pic7= new Image(pic_width,pic_height);
     pic7.src="/banner/warriors.jpg";
	 pic8= new Image(pic_width,pic_height);
     pic8.src="/banner/grouse.jpg";
	 pic9= new Image(pic_width,pic_height);
     pic9.src="/banner/ridgeway.jpg";
 	 pic10= new Image(pic_width,pic_height);
     pic10.src="/banner/elusive.jpg";

 }    

/* define banner urls */

urlad1="usu.php";
urlad2="death.php";
urlad3="fife.php";
urlad4="topaz.php";
urlad5="bear.php";
urlad6="lnews.php";
urlad7="warriors.php";
urlad8="grouse.php";
urlad9="ridgway.php";
urlad10="elusive.php";


/* define descriptions */

dscript1="Utah State University Historical<br>Photo Collection";
dscript2="Death Valley Region<br>Photo Collection";
dscript3="Fife Slide Collection of<br>Western US Vernacular Architecture";
dscript4="Topaz Japanese-American<br>Relocation Center<br>Digital Collection";
dscript5="Bear River Watershed";
dscript6="Logan’s Historical Newspaper Collection";
dscript7="Facing the color line:<br/> race &amp; ethnicity in Cache Valley";
dscript8="Grouse Creek Cultural Survey:<br/> Mormon Buckaroo Territory, 1985";
dscript9="The Ridgway Brothers:<br/> Explorers, Scientists, and Illustrators";
dscript10="Utah's Most Elusive:<br/> Hard-to-find Government & Scientific Reports";


/* alt descriptions */

alt1="Autumn view of Old Main and the Quad looking west from the Merrill Library, 1950s";
alt2="Horse-drawn hearse in Aurora, Nevada.";
alt3="Mailbox in form of covered wagon with wheels; scroll metal name: 'L. M. Argyle.'";
alt4="Cover from Trek, a quarterly literary magazine produced by residents of the Topaz Center";
alt5="early prototype of a swamp buggy, stuck in the mud";
alt6="inmage of the The Journal with a ad for patrons";
alt7="image of chemistry instruments. picture cropped from the front of the 1954 USU Buzzer";
alt8="two cowboys looking over a field";
alt9="many items, coat button, fountain pen ends, buttons, shell";
alt10="steam boat on the great salke lake";

d2script1=" A century’s worth of images from Utah State University’s past (1880s-1980s)";
d2script2="Black and white photographs of the Death Valley area (Nev. and Calif.) in the 1920s featuring scenes from the ghost towns of Rhyolite, Aurora, and Calico.";
d2script3="Mailboxes, quilts, murals, tree bark graffiti, fences, gravestones, and festivals are among the many examples of folklife and material culture visually recorded by folklorists Austin and Alta Fife and presented in this digital collection.";
d2script4="In 1942 shortly after the bombing of Pearl Harbor, over 110,000 people of Japanese ancestry were forcibly removed from California, Oregon, and Washington and confined to relocation centers.";
d2script5="The Bear River Watershed&rsquo;s geography, history, and development are the primary focus of this collection of images, maps, papers, and reports.";
d2script6="Before becoming today&rsquo;s Herald Journal, Logan&rsquo;s newspaper had four different titles: Logan Leader (1879-1882), Utah Journal (1882-1889), Logan Journal (1889-1891), and Journal (1892-1931).  This digitized collection begins in1879 with the Logan Leader and ends in 1898 with the Journal.";
d2script7="What was it like to be a minority in Cache Valley during the Civil Rights era?";
d2script8="Welcome to Grouse Creek, home of the Mormon Buckaroo.";
d2script9="This digital collection highlights the art work, correspondence, and research of the Ridgway brothers, John and Robert, late nineteenth century naturalists and illustrators of the American West.";
d2script10="Brings to light many elusive reports on Utah 's history, geography, natural resources, politics, society, economy, etc.";

/* no need to edit past this point (unless you want to add more image and url slots) */

 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
  var choose_one= get_random(10);  
  choose_one = choose_one - 1;

  var pics= new Array(10) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src;
   pics[5]=pic6.src;
   pics[6]=pic7.src;
   pics[7]=pic8.src;
   pics[8]=pic9.src;
   pics[9]=pic10.src;

  var aurl= new Array(10)
  aurl[0]=urlad1;
  aurl[1]=urlad2;
  aurl[2]=urlad3;
  aurl[3]=urlad4;
  aurl[4]=urlad5;
  aurl[5]=urlad6;
  aurl[6]=urlad7;
  aurl[7]=urlad8;
  aurl[8]=urlad9;
  aurl[9]=urlad10;
  
  var dscript= new Array(10)
  dscript[0]=dscript1;
  dscript[1]=dscript2;
  dscript[2]=dscript3;
  dscript[3]=dscript4;
  dscript[4]=dscript5;
  dscript[5]=dscript6;
  dscript[6]=dscript7;
  dscript[7]=dscript8;
  dscript[8]=dscript9;
  dscript[9]=dscript10;
  
  var altd= new Array(10)
  altd[0]=alt1;
  altd[1]=alt2;
  altd[2]=alt3;
  altd[3]=alt4;
  altd[4]=alt5;
  altd[5]=alt6;
  altd[6]=alt7;
  altd[7]=alt8;
  altd[8]=alt9;
  altd[9]=alt10;
  
  var d2script= new Array(10)
  d2script[0]=d2script1;
  d2script[1]=d2script2;
  d2script[2]=d2script3;
  d2script[3]=d2script4;
  d2script[4]=d2script5;
  d2script[5]=d2script6;
  d2script[6]=d2script7;
  d2script[7]=d2script8;
  d2script[8]=d2script9;
  d2script[9]=d2script10;

  document.write("<center><a href='"+aurl[choose_one]+"'><img src='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' alt='"+altd[choose_one]+"'></a><br />"+dscript[choose_one]+"</center>");
  document.write("<br /><div id='script2'>"+d2script[choose_one]+"</div>");
 }
}
//]]>
//-->

