/*-----------------------------------------------------------------------------------*/
/* Begin Random Rotating CIP image */
/*-----------------------------------------------------------------------------------*/

var theVideos = new Array(3) 

/* These are the image locations for the three images */
/* Video 1 Image Location */
theVideos[0] = '/distance/odell/cip/cip_images/2007video1.jpg'
/* Video 2 Image Location */
theVideos[1] = '/distance/odell/cip/cip_images/2007video2.jpg'
/* Video 3 Administration */
theVideos[2] = '/distance/odell/cip/cip_images/2007video3.jpg'

var cc = 0
var dd = theVideos.length;

var preBuffer = new Array()
for (i = 0; i < dd; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theVideos[i]
}

var whichVideos = Math.round(Math.random()*(dd-1));

/************************************************************/
/* These are the captions and url's for the images */
/************************************************************/
if (whichVideos == 0){ 
/* Video 1 URL */
var purl = "http://marconi.umuc.edu/ramgen/cip/symposium_2007/sym_07_clip_01.rm";
/* Video 1 Alt Caption */
var pcaption = "Play Video";

}

if (whichVideos == 1){ 
/* Video 2 URL */
var purl = "http://marconi.umuc.edu/ramgen/cip/symposium_2007/sym_07_clip_02.rm";
/* Video 2 Caption */
var pcaption = "Play Video";

}

if (whichVideos == 2){ 
/* Video 3 URL */
var purl = "http://marconi.umuc.edu/ramgen/cip/symposium_2007/sym_07_clip_03.rm";
/* Video 3 Caption */
var pcaption = "Play Video";

}

function showVideos(){
document.write('<a href="'+purl+'"><img src="'+theVideos[whichVideos]+'"alt="'+pcaption+'" /></a>');
}