var framecount	= 0;
var maxframes 	= 3000;
var if_time 	= 000;
var started 	= 0;
var starttime   = 2000;
var theImage;
var camName	= "SeaWorlds Shamu!";

function msiesetalarm(obj) {
	if(!started) {
		++started;
		theImage = obj;
		setTimeout("msiestreamer(theImage);", starttime);
		return;
	}
	if(framecount != -1) msiestreamer(obj);
}

function msiestreamer(obj) {
	var now	= new Date();
	++framecount
	secs = now.getTime()
	if (framecount <= maxframes) {
		var camzone = "http://shamu.os.camzone.com:8879/still?cam=0&i=" + framecount + ":" + secs + ":" + if_time;
		obj.src = camzone
	} else {
		var camzone = "http://www.camzone.com/trailer.jpg";
		obj.src = camzone
		framecount = -1
		return
	}
}
window.status = camName + "...";
document.write('<img NAME="ieanim" src="http://www.camzone.com:80/intro.jpg" width="320" height="237" alt="' + camName + '" name="' + camName + '" border="0" onLoad="msiesetalarm(this)" onClick="window.open(\'http://www.camzone.com\',\'\',\'dependent=no\')">')
