var SID="SID=8364955b89b5b5a4283f7f088c5bae4a"; var isinit=false; var imagedir = "images"; var speed=50; var controls = new Array(); var buttons = new Array(); var requested=false; var movement=false; var seq=0; var tid=0; var blackout=false; var textcolor="#ffffff"; function control(name, frame, width, height, cmd, dir, dir2){ this.name = name; this.frame = frame; this.image = newImage(imagedir+"/"+name+".gif"); this.overimage = newImage(imagedir+"/"+name+"-over.gif"); this.downimage = newImage(imagedir+"/"+name+"-down.gif"); this.width = width; this.height = height; this.cmd = cmd; this.dir = dir; this.dir2 = dir2; this.cursor = "hand"; } function button(name, frame, width, height, normal, over, label, pressed, cmd, arg, group){ this.name = name; this.frame = frame; this.image = newImage(imagedir+"/"+normal); if(!label){ this.downimage = newImage(imagedir+"/"+over); } this.width = width; this.height = height; this.cmd = cmd; this.arg = arg; this.group = group; this.pressed = pressed; if(!label) this.cursor = "hand"; else this.cursor = "default"; } function newImage(arg) { rslt = new Image(); rslt.src = arg; return rslt; } function button_press(obj) { for(var i=0;iControl time left: "+waittime+""; tid=setTimeout(chkstatus, 2000); return; } requested=true; main.document.getElementById("WaitInLine").style.visibility = "visible"; main.document.getElementById("Control").style.visibility = "hidden"; if(req=="false") { requested=false; main.document.getElementById("wilstatus").innerHTML = "
Persons in line: "+inline+"
Time to wait:"+waittime+" seconds
"; tid=setTimeout(chkstatus, 2000); return } if(req=="disabled") { requested=false; main.document.getElementById("wilstatus").innerHTML = "Public Control is Temporarily Unavailable"; tid=setTimeout(chkstatus, 2000); return } main.document.getElementById("wilstatus").innerHTML = "Persons in front of you: "+inline+"
Time till control: "+waittime+" seconds
"; tid=setTimeout(chkstatus, 2000); } function reqctrl() { if(requested) alert("Control has already been requested."); else data.location="pptz.php?cmd=reqctrl&"+SID; return; } function action(obj) { zmspeed=speed; for(var i=0;i