// JavaScript Document

function Pix(){ //constructor
this.items=new Array;
this.add=addPix;
this.get=getPix;
}

function addPix(pixURL,pixCaption){ //method to add record
var rec=new Object;
rec.url=pixURL;
rec.cap=pixCaption;
var itemCount=this.items.length;
this.items[itemCount]=rec;
}

function getPix(){ //method to get record
var itemCount=this.items.length;
var idx=Math.round(Math.random()*(itemCount-1));
var rec=this.items[idx];
var buf='<img src="' + rec.url + '" alt="Picture of the Day">';
buf+='<div>' + rec.cap + '</div>';
return buf;
}

var pic=new Pix; //create your list
pic.add('/collegedepts/economics/img/pic1.jpg','<p><strong style="color: #ee1022;">Spotlight on Ben Gettler</strong><br />A 1945 UC Economics graduate named for high honors and elected to Phi Beta Kapa, Gettler earned his law degree in 1948 from Harvard Law School, and served our country as a member of the US Army.  In 2003, Mr. Gettler was awarded an honorary doctoral degree from UC.  Gettler is the CEO of Vulcan International, Inc.</p>');
pic.add('/collegedepts/economics/img/pic2.jpg','<p><strong style="color: #ee1022;">Spotlight on Phil Yeager</strong><br />A 1951 UC Economics graduate, Yeager founded and served for many years as chairman of the board of Hub Group, Inc., an intermodal marketing company and full-service transportation provider that offers intermodal, truck brokerage, and comprehensive logistics services.  He passed away on September 29, 2008.</p>');
pic.add('/collegedepts/economics/img/pic3.jpg','<p><strong style="color: #ee1022;">Spotlight on John Schneider</strong><br />A 1970 UC Economics graduate, Schneider&apos;s investments in commercial and residential real estate led some of the early revitalization efforts in Corryville, Over-the-Rhine, and downtown Cincinnati.  Having overseen large developments in three cities, he is currently managing director of First Valley Corp.</p>');
pic.add('/collegedepts/economics/img/pic4.jpg','<p><strong style="color: #ee1022;">Spotlight on Jim Kautz</strong><br />Kautz graduated from the University of Cincinnati in 1953.  He went on to serve in the 25th Infantry Division in Korea and Hawaii between 1953 and 1955.  In 1957, he graduated from the Wharton School of the University of Pennsylvania with his MBA.   Kautz worked for Procter and Gamble and later Main Supply, Inc.  He joined Goldman, Sachs, and Co. in 1966, and he became a partner in 1978.</p>');