var images = new Array();
var caption = new Array();


images[0] = "images/Home Page Photos/2008 Serrao Pristina Airport Kosovo.jpg";
images[1] = "images/Home Page Photos/2008 Serrao Mongolian Airport.jpg";
images[2] = "images/Home Page Photos/2008 Serrao Kosovo.jpg";
images[3] = "images/Home Page Photos/2008 2nd State of RS Law audience.jpg";
images[4] = "images/Home Page Photos/2007 Jun China Beijing 3.jpg";
images[5] = "images/Home Page Photos/2008 Galloway Event participants.jpg";
images[6] = "images/Home Page Photos/2008 Galloway Event live blogging.jpg";
images[7] = "images/Home Page Photos/2008 Gabrynowicz and Blount.jpg";
images[8] = "images/Home Page Photos/2009 Lachs Moot Court Team.jpg";
images[9] = "images/Home Page Photos/2009 Semester wrap up.jpg";
images[10] = "images/Home Page Photos/2009 Pacific Rim National Space Law Summit.jpg";


caption[0] = "Prof. Serrao in front of the Pristina Airport, Kosovo, after completing drafting the Kosovo Aviation Law.";
caption[1] = "Prof. Serrao in front of the entrance to the Ulaanbaatar Buyant Uhaa Airport in Mongolia, after advising Eznis Airways (regional Mongolian carrier), and the Government of Mongolia, on aviation law and policy.";
caption[2] = "Prof. Serrao with members of the Aviation Advisory and Technical Services team, and Mohammed A. Alkatheeri from the Department of Transport, Abu Dhabi, U.A.E.";
caption[3] = "The Second International Conference on the State of Remote Sensing Law, Oxford, MS.";
caption[4] = "Prof. Gabrynowicz presents Aerospace Law in Education in Mississippi at the International Forum on Air and Space Law in Beijing, China.";
caption[5] = "Third Eilene M. Galloway Symposium on Critical Issues in Space Law 2008.";
caption[6] = "Prof. Blount live blogging for the Res Communis blog.";
caption[7] = "The 59th International Astronautical Congress - Prof. Gabrynowicz (left), H.E. Judge Abdul G. Koroma (center) and Prof. Blount (right).";
caption[8] = "University of Mississippi Team places Second and wins Best Brief at the 2009 Manfred Lachs Space Moot Court Event  - Nicolas Welly (far left), Prof. Gabrynowicz (left), Jason Crook (center), Gretchen Harris (right), and Prof. Blount (far right).";
caption[9] = "Center faculty, staff and students share ideas in Spring 2009 semester wrap up.";
caption[10] = "Pacific Rim National Space Law Summit, East-West Center, Honolulu, HI.";

function ShowImg() {
var number = images.length;
increment = Math.floor(Math.random() * number);
var strTemp ='<img src="' + images[increment] + '" alt="' + caption[increment] +'">';
document.write(strTemp);
}
function ShowCap() {
var text_cap = '<div style="font-size:.7em; margin:0 20px 0 20px;">' + caption[increment] + '</div>';
document.write(text_cap);
}

var rotate = 5000; 
var count = 0;

function RotateImg(myImage){
 myImage.src=images[count];
 count++;
 if(count==images.length){count = 0;}
 setTimeout("RotateImg(myImage)",rotate);
} 
