//  email the staff

function send_it(form)  {    
    
      var menu_choice = form.destination.options[form.destination.selectedIndex].value;

       if (menu_choice == "nothing")  {
            form.destination.options[0].selected = true;
            form.destination.options[1].selected = true;   
       }
       else {  self.location = menu_choice; }
       
}
// end function


//    image caching

function imageCache() {
   
    var images = new Array();
    var x = imageCache.arguments.length
    for (var i=0;  i<x;  i++) {
        images[i] = new Image();
        images[i].src = "files/" + imageCache.arguments[i];    
    }
    
}     
// end function


//   random image swap

var num  =0;

function randomNumber() {
                 var numLast = num;
                 num = Math.round(Math.abs(Math.random()) *40);  
                 if (num == numLast) {  randomNumber();  }
                 swapPic();
 }  
 //end randomNumber


function swapPic() {
                 if (num>37 || num==0) {  randomNumber();  }
                 else { 
                              var  choice = "images/campus/" + num + ".jpg";
                              document.campus.src = choice; 
                              window.setTimeout('randomNumber();',15000);
                 }         
}   
//end function