function addbookmark()
{
bookmarkurl="http://ansi.okstate.edu"
bookmarktitle="Dept of Animal Science at OSU "
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function tpopup(s)
{
msg=window.open(s, "rblPopup", "scrollbars=yes,status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,width=400,height=400");
}

function cpopup(s,wdth,hght)
{
msg=window.open(s, "rblPopup", "scrollbars=yes,status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,width="+wdth+",height="+hght);
}

function getMilli(){
var d = new Date();
return d.getMilliseconds();
}

var aryImages = new Array(9);

aryImages[0] = "images/bigpigshowOYE.jpg";
aryImages[1] = "images/pic-strip.jpg";
aryImages[2] = "images/sheepshow.jpg";
aryImages[3] = "images/steershow.jpg";




  for (i=0; i < aryImages.length; i++) {
    var preload = new Image();
    preload.src = aryImages[i];
  }


var timeDelay = 3; // change delay time in seconds
var Pix = new Array
("images/bigpigshowOYE.jpg" 
,"images/pic-strip.jpg" 
,"images/sheepshow.jpg" 
,"images/steershow.jpg" 
);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
//  

if(window.attachEvent)
window.attachEvent('onload',startPix);
else
window.addEventListener('load',startPix,false);