var reloadURL   = "Festival Fairbanks.htm"
var zoomiURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?rzoom=+1000"
var zoomoURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?rzoom=-1000"
var focusCURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?autofocus=off&rfocus=-2500"
var focusFURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?autofocus=off&rfocus=+2500"
var AfocusURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?autofocus=on"
var PanLURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?move=left"
var PanRURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?move=right"
var HomeURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?move=home"
var UpURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?move=up"
var DownURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?move=down"
var IrisURL = "http://66.230.99.215:8043/axis-cgi/com/ptz.cgi?autoiris=on"
var picURL =  "http://66.230.99.215:8043/view/snapshot.shtml?picturepath=/jpg/image.jpg&width=640&height=480"
//var picURL = "snapshot.htm" //"http://66.230.99.215:8043/view/snapshot.shtml?picturepath=/jpg/image.jpg&width=640&height=480"


function reloader() {
	alert("reloading.");
	I1.location.href = "about::blank";
	I1.location.href = "http://66.230.99.215:8043/view/snapshot.shtml?picturepath=/jpg/image.jpg&width=640&height=480";
}
function reload() {
//history.go(0)
I1.location.href = "about::blank";
I1.location.href = "pagewithin.html";

}
function zoomin() {
setTimeout('reload()',delay);
location = zoomiURL;

}
function zoomout() {
setTimeout('reload()',delay);
location = zoomoURL;
}
function focusClose() {
setTimeout('reload()',delay);
location = focusCURL;
}
function focusFar() {
setTimeout('reload()',delay);
location = focusFURL;
}
function autoFocus() {
setTimeout('reload()',delay);
location = AfocusURL;
}
function PanLeft() {
setTimeout('reload()',delay);
location = PanLURL;
}
function PanRight() {
setTimeout('reload()',delay);
location = PanRURL;
}
function ViewHome() {
setTimeout('reload()',delay);
location = HomeURL;
}
function ViewUp() {
setTimeout('reload()',delay);
location = UpURL;
}
function ViewDown() {
setTimeout('reload()',delay);
location = DownURL;
}
function takePicture() {
setTimeout('reload()',delay);
window.open(picURL, "", 'width = 670, height = 535, location = no, marginwidth = 0, marginheight = 0')
}
function AutoIris() {
setTimeout('reload()',delay);
location = IrisURL;
}
