//IMAGE ROTATE SCRIPT
var imgArray = new Array();

//Place image names here:

imgArray[0] = "looking_at_buildings.jpg";
imgArray[1] = "alumni_group_of_4.jpg";
imgArray[2] = "bodies_speaker_audience.jpg";
imgArray[3] = "howl_male_speaker.jpg";
imgArray[4] = "alumni_group_of_7.jpg";
imgArray[5] = "bodies_people_reading.jpg";
imgArray[6] = "howl_female_speaker.jpg";
imgArray[7] = "bodies_audience_participation.jpg";
imgArray[8] = "three_men_talking.jpg";
imgArray[9] = "alumni_on_beach.jpg";
imgArray[10] = "bodies_speaker_audience_2.jpg";

var numImgs=imgArray.length;
var randNum = Math.floor(Math.random() * numImgs);

//FUNCTION TO OPEN A URL IN NEW BROWSER WINDOW
function openURL(url,winname,w,h) {
        topWin = (screen.availHeight - h) / 2;
        leftWin = (screen.availWidth - w) / 2;
                if (navigator.platform.indexOf('mac') != -1){
                props = "width="+w+",height="+h+",top="+topWin+",screenY="+topWin+",left="+leftWin+",screenX="+leftWin+",resizable=yes,scrollbars=yes"; }
                else {
                props = "width="+w+",height="+h+",top="+topWin+",screenY="+topWin+",left="+leftWin+",screenX="+leftWin+",resizable=yes,scrollbars=yes"; }
        var myWin = window.open(url,winname,props);
        myWin.focus();
}

//FUNCTION TO OPEN A NEW BROWSER WINDOW
function openWin(url,winname,w,h) { 
topWin = (screen.availHeight - h) / 2;
leftWin = (screen.availWidth - w) / 2;
props = "statusbar,menubar,width="+w+",height="+h+",top="+topWin+",screenY="+topWin+",left="+leftWin+",screenX="+leftWin+",resizable,scrollbars"; 
var myWin = window.open(url,winname,props);
myWin.focus();
}