var g_device,EnumCurState={PREVIEW:"PREVIEW",PLAYBACK:"PLAYBACK",LOGIN:"LOGIN",LOADING:"LOADING",DOWNLOAD:"DOWNLOAD",INFO:"INFO",CONFIG:"CONFIG"},EnumPTZMode={NONE:0,AF:1,PTZ:2},EnumLoginType={IP:0,UID:1},EnumLoginResult={SUCCESS:0,FAIL:-1,PASSWORD_ERROR:-2},EnumChannelStatus={CLOSED:0,PLAYING:1},EnumViewStatus={CLOSED:0,PAUSED:1,PLAYING:2,ERROR:3,BUFFERING:4},EnumScreenMode={ONE:1,FOUR:4,NINE:9,SIXTEEN:16},EnumStreamType={FLUENT:0,BALANCED:1,CLEAR:2,AUTO:3,CLIP:4,TRACK_FLUENT:5,TRACK_CLEAR:6},EnumRTMPStreamType=[1,2,0,0,3,5,4],EnumHSBType={HUE:0,SATURATION:1,BRIGHTNESS:2,CONTRAST:3},EnumIsAutoStream={AUTO:!0,MANUAL:!1},EnumPreRightItem={CHANNELS:0,PTZ:1,TRACKLIMIT:2,IMG:3,ADV:4,CROP:5,STITCH:6},EnumPrePresetMenuType={PRESET:0,CRUISE:1,GUARD:2},EnumPbShowFileType={SCHEDULE:1,MANUAL:2,ALARM:4,ALL:8},EnumPbChannelMode={ONE:0,FOUR:1},EnumPBPlayState={PLAYING:0,IDLE:1,PAUSED:2},EnumPTZType={NONE:0,AF:1,PTZ:2,PT:3,PTZS:4,GM8136S_PTZ:5},EnumPatrolType={NONE:0,NORMAL:1},g_flashMode=!1,g_sliderIsMouseDown=!1,EnumCGIError={"-3":"Failed to recognize the file format.","-5":"No more available connections.","-4":"Wrong input, please check again.","-6":"Session expired, please log in again.","-7":"Invalid username or password.","-8":"Operation timeout! Please try again later.","-9":"The upgrade method is not supported.","-12":"Failed to get configuration, please try again.","-13":"Failed to verify configuration, please try again.","-20":"No enough memory for urgrade.","-26":"You are not allowed to do this.","-27":"Your account is invalid, please login again.","-28":"The new user name has been taken.","-29":"Failed to add more users because you’ve reached the max number limit.","-30":"Failed to upgrade as the selected package is identical with the current version.","-31":"Device is busy, please try again later.","-32":"Specific network address is conficted with other machine.","-33":"Please type in the CAPTCHA in the image.","-34":"Require binding email address","-35":"Failed to bind","-36":"Network timeout","-37":"Incorrect Password","-38":"UID is not valid","-39":"The cloud account doesn't exist.","-41":"Sorry,cloud storage is not available.","-43":"Fail to bind","-44":"An unknown error has occurred.","-45":"Please type in the CAPTCHA in the image.","-99":"device offline","-100":"Configuration test failed.","-200":"FTP Login Failed.","-201":"FTP Create Dir Failed.","-202":"FTP Upload Failed.","-203":"FTP Connect Server Failed.","-220":"Download Rec.","-221":"Download Rec Busy.","-222":"Download Rec Not Exist.","-500":"Maximum number of IP reached.","-501":"This account is invalid.","-502":"Incorrect Password","-503":"Login denied.","-505":"Uninitialized device","-506":"Your account has been locked. Please try again later.","-507":"Maximum number of concurrent users reached.",4294967290:"Location is changed.",4294967295:"Fatal error: Device responsed with an unexpected command result.",4294967294:"Fatal error: Device returned a result with the invalid format..",4294967292:"Fatal error: Failed to recognize data from the device.",4294967293:"Network error: Unable to connect to device.",4294967291:"Network error: Request timeout."},EnumStreamFullNames=["sub","extern","main","main","clip","sub","main"],EnumFlvStatus={normal:0,loading:1,disconnect:2,pause:3,stop:4,nofile:5},EnumFlvStretching={exactfit:0,screen:1},EnumPtzCheckState={NEED_CHECK:0,CHECKING:1,CHECKED:2};