// Copyright (c) 2001 Industrial Video & Control Co. LLC. All rights reserved. function doManualGainUp() { manualGainUpString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=1"; parent.sidebar.location = manualGainUpString; document.mainimage.src = document.mainimage.src; } function doManualLevelUp() { manualLevelUpString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=2"; parent.sidebar.location = manualLevelUpString; document.mainimage.src = document.mainimage.src; } function doManualGainDown() { manualGainDownString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=3"; parent.sidebar.location = manualGainDownString; document.mainimage.src = document.mainimage.src; } function doManualLevelDown() { manualLevelDownString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=4"; parent.sidebar.location = manualLevelDownString; document.mainimage.src = document.mainimage.src; } function doWhiteHot() { whiteHotString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=5"; parent.sidebar.location = whiteHotString; document.mainimage.src = document.mainimage.src; } function doBlackHot() { blackHotString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=6"; parent.sidebar.location = blackHotString; document.mainimage.src = document.mainimage.src; } function doAutoGain() { autoGainString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=7"; parent.sidebar.location = autoGainString ; document.mainimage.src = document.mainimage.src; } function doAutoLevel() { autoLevelString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=9"; parent.sidebar.location = autoLevelString ; document.mainimage.src = document.mainimage.src; } function doAutoShutterOn() { autoShutterOnString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=11"; parent.sidebar.location = autoShutterOnString ; document.mainimage.src = document.mainimage.src; } function doAutoShutterOff() { autoShutterOffString = movebaseurl+ "/cmd=setGainAndLevel&GainLevelCommand=12"; parent.sidebar.location = autoShutterOffString ; document.mainimage.src = document.mainimage.src; } function showDayNightVideo() { dayNightVideoString = movebaseurl+ "/cmd=video&function=setVideoSource&thermalPropertyIndex=0"; parent.sidebar.location = dayNightVideoString ; document.mainimage.src = document.mainimage.src; } function showThermalVideo() { thermalVideoString = movebaseurl+ "/cmd=video&function=setVideoSource&thermalPropertyIndex=1"; parent.sidebar.location = thermalVideoString ; document.mainimage.src = document.mainimage.src; } function doPolarityOn() { polarityString = movebaseurl+ "/cmd=thermal&function=setPolarity"; parent.sidebar.location = polarityString; document.mainimage.src = document.mainimage.src; } function doPolarityOff() { polarityString = movebaseurl+ "/cmd=thermal&function=resetPolarity"; parent.sidebar.location = polarityString; document.mainimage.src = document.mainimage.src; } function doDefaultSettings() { thermalSettingsString = movebaseurl+ "/cmd=thermal&function=setDefaults"; parent.sidebar.location = thermalSettingsString ; document.mainimage.src = document.mainimage.src; } function setColorPalette() { index = document.selectionForm.colorSelectionList.selectedIndex; colornumber = document.selectionForm.colorSelectionList.options[index].value; movedata = movebaseurl + "/cmd=thermal&function=setColor&thermalPropertyIndex=" + colornumber; parent.sidebar.location = movedata; setTimeout("document.selectionForm.colorSelectionList.selectedIndex=0", 2000); document.mainimage.src = document.mainimage.src; } function doAuxiliary1() { var x = parent.main.document.auxiliaryCommand1; var subString = x.substring(0, 7); if (subString .match('http://' )) { window.open(x,"name","width=900, height=500, toolbar=1, menubar=1, location=1, status=1, scrollbars=1, resizable=1"); } else { auxiliaryString = movebaseurl+ "/cmd=aux&auxCommand=1"; parent.sidebar.location = auxiliaryString; document.mainimage.src = document.mainimage.src; } } function doAuxiliary2() { var x = parent.main.document.auxiliaryCommand2; var subString = x.substring(0, 7); if (subString .match('http://' )) { window.open(x,"name","width=900, height=500, toolbar=1, menubar=1, location=1, status=1, scrollbars=1, resizable=1"); } else { auxiliaryString = movebaseurl+ "/cmd=aux&auxCommand=2"; parent.sidebar.location = auxiliaryString; document.mainimage.src = document.mainimage.src; } } function doAuxiliary3() { var x = parent.main.document.auxiliaryCommand3; var subString = x.substring(0, 7); if (subString .match('http://' )) { window.open(x,"name","width=900, height=500, toolbar=1, menubar=1, location=1, status=1, scrollbars=1, resizable=1"); } else { auxiliaryString = movebaseurl+ "/cmd=aux&auxCommand=3"; parent.sidebar.location = auxiliaryString; document.mainimage.src = document.mainimage.src; } } function doAuxiliary4() { var x = parent.main.document.auxiliaryCommand4; var subString = x.substring(0, 7); if (subString .match('http://' )) { window.open(x,"name","width=900, height=500, toolbar=1, menubar=1, location=1, status=1, scrollbars=1, resizable=1"); } else { auxiliaryString = movebaseurl+ "/cmd=aux&auxCommand=4"; parent.sidebar.location = auxiliaryString; document.mainimage.src = document.mainimage.src; } } if (useChannelDropDownBox == 1) { //maxChannels = 26; maxChannels = parent.main.numChannels + 1; document.write(''); document.write('
'); } if (usePresetDropDownBox == 1) { mini = 0; document.write(''); document.write('
'); } if (useOptionDropDownBox == 1) { scriptName = baseurl + '/info/' + parent.cameraNumber + '/getvar&lowlightenable&state_active'; text = "" parent.infoframe.document.write("" + text + "getting-info\n\n"); document.write(''); document.write('
'); } if (useSnapPictureBar == 1 && useVideoButton == 1) { //alert(parent.main.document.auxiliaryDisplayString1.length); if (parent.main.document.showVideoDumpDuration) { document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); document.write(''); document.write(''); document.write(' Saves Current Snapshot to Disk. Enter picture name in the box (optional)'); document.write(''); document.write('
'); document.write(' Saves Current Video Buffer to Disk. Enter archive name in the box (optional). Enter duration in the box to right (optional)'); document.write(' Stop Saving Current Video Buffer to Disk.'); document.write(''); document.write(''); document.write('
'); } else { document.write(''); document.write(' Saves Current Snapshot to Disk. Enter picture name in the box (optional)'); document.write(' Saves Current Video Buffer to Disk. Enter archive name in the box (optional)'); document.write('
'); } if (parent.main.document.auxiliaryDisplayString1.length >0 || parent.main.document.auxiliaryCommand1.length > 0) document.write(''); if (parent.main.document.auxiliaryDisplayString2.length >0 || parent.main.document.auxiliaryCommand2.length > 0) document.write(''); if (parent.main.document.auxiliaryDisplayString3.length >0 || parent.main.document.auxiliaryCommand3.length > 0) document.write(''); if (parent.main.document.auxiliaryDisplayString4.length >0 || parent.main.document.auxiliaryCommand4.length > 0) document.write(''); /*if(parent.main.document.auxiliaryDisplayString1.length > 0 || parent.main.document.auxiliaryCommand1.length > 0 || parent.main.document.auxiliaryDisplayString2.length > 0 || parent.main.document.auxiliaryCommand2.length > 0 || parent.main.document.auxiliaryDisplayString3.length > 0 || parent.main.document.auxiliaryCommand3.length > 0 || parent.main.document.auxiliaryDisplayString4.length > 0 || parent.main.document.auxiliaryCommand4.length > 0 ) document.write('
');*/ if (parent.main.document.quickSet == 1) { if (parent.main.document.autoGain == 0) { document.write(''); document.write(''); document.write('
'); } else { document.write(''); document.write('
'); } if (parent.main.document.autoLevel == 0) { document.write(''); document.write(''); document.write('
'); } else { document.write(''); document.write('
'); } //Buttons for white and black Hot document.write(''); document.write(''); document.write('
'); //Buttons for Auto shutter ON/OFF document.write(''); document.write(''); } if (parent.main.document.cohuThermal == 1) { document.write('
'); document.write(''); document.write('
'); //Buttons for white and black Hot document.write(''); document.write(''); document.write('
'); document.write(''); // Drop down box for setting different colors document.write(''); } } else { if (useSnapPictureBar == 1) { document.write(''); document.write(' Saves Current Snapshot to Disk. Enter picture name in the box (optional)'); document.write('
'); } if (useVideoButton == 1) { if (parent.main.document.showVideoDumpDuration) { document.write(''); document.write(' Saves Current Video Buffer to Disk. Enter archive name in the box (optional). Enter duration in the box to right (optional)'); document.write(' Stop Saving Current Video Buffer to Disk.'); document.write(''); document.write('
'); } else { document.write(''); document.write(' Saves Current Video Buffer to Disk. Enter archive name in the box (optional)'); document.write('
'); } } } //MERGE if (updateCoords == 1) { document.write(''); document.write('
'); } if (exclusiveBar == 1) { document.write(' Take Exclusive Control of this camera, so only users with management permission can control it.'); document.write(' Release Exclusive Control of this camera, allowing others to control it.'); document.write('
'); } if (useUpdateButton == 1) { document.write(' Update current image.'); document.write('
'); } if (queuingEnabled == 1) { document.write(''); }