function uid(){for(var t="",n=0;n<16;n++)t+=Math.floor(Math.random()*16).toString(16).toUpperCase();return t}var random;(function(n,t){function l(){var t=new String,n=new Date,i=n.getUTCDate(),r=n.getUTCMonth(),o=n.getUTCFullYear(),u=n.getUTCHours(),f=n.getUTCMinutes(),e=n.getUTCSeconds();return t=(r<10?"0":"")+r+"-"+(i<10?"0":"")+i+"-"+o,t+="Z",t+((u<10?"0":"")+u+":"+(f<10?"0":"")+f+":"+(e<10?"0":"")+e)}function p(){f="=======================================================\n| Library: detect.js\n| Version: "+v+"\n| Started: "+l()+"\n\n"}function i(t,i){t>=n.Configuration.LogLevel&&(f.length===0&&p(),f+="["+l()+"] "+i+"\n")}function w(){var t=new String(n.Object.Version.length!==0?rt:ut),i;return t=t.replace("{0}",n.Object.ID),t=t.replace("{1}",n.Object.Version),t=t.toLowerCase(),i=new String(""),i=navigator.userAgent.indexOf("MSIE")!=-1||navigator.userAgent.indexOf("Trident")!=-1?new String(et):new String(ft),i=i.replace("{0}",n.Object.ObjectTagID),i.replace("{1}",t)}function o(n){return new String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function s(){n.SystemInfo.ReferrerID=n.Configuration.ReferrerID;n.SystemInfo.ApplicationID=n.Configuration.ApplicationID;n.SystemInfo.ApiKey=n.Configuration.ApiKey;n.SystemInfo.CookiesEnabled=n.AreCookiesEnabled();n.SystemInfo.JavaEnabled=n.IsJavaEnabled();n.SystemInfo.URL=window.location.href;n.SystemInfo.UserAgent=navigator.userAgent}function a(){return'<groups><group id="71218" index="0"><value>'+n.SystemInfo.ReferrerID+'<\/value><\/group><group id="71423" index="0"><value>'+n.SystemInfo.ApplicationID+'<\/value><\/group><group id="71452" index="0"><value>'+(n.SystemInfo.CookiesEnabled?"yes":"no")+'<\/value><\/group><group id="71453" index="0"><value>'+(n.SystemInfo.JavaEnabled?"yes":"no")+'<\/value><\/group><group id="71458" index="0"><value>'+o(n.SystemInfo.URL)+'<\/value><\/group><group id="71446" index="0"><value>'+o(n.SystemInfo.UserAgent)+'<\/value><\/group><group id="71206" index="0"><value>'+o(n.SystemInfo.ClientID)+"<\/value><\/group><\/groups>"}function u(){return(i(r,"Entering isDetectionObjectLoaded."),n.Object.ObjectTagID===""||t("#"+n.Object.ObjectTagID).length===0||"undefined"==typeof t("#"+n.Object.ObjectTagID)[0].Detect)?(i(r,"Found object is not installed."),!1):(i(r,"Found object is installed."),!0)}function b(){n.EventHandler.OnLoadBegin!=null&&setTimeout(n.EventHandler.OnLoadBegin,10)}function k(){n.EventHandler.OnLoadComplete!=null&&setTimeout(n.EventHandler.OnLoadComplete,10)}function d(){n.EventHandler.OnLoadError!==null&&setTimeout(n.EventHandler.OnLoadError,10)}function g(){n.EventHandler.OnDetectBegin!==null&&setTimeout(n.EventHandler.OnDetectBegin,10)}function nt(){n.EventHandler.OnDetectComplete!==null&&setTimeout(n.EventHandler.OnDetectComplete,10)}function tt(){c=0;e=setInterval(n.LoadMonitor,500)}function it(){clearInterval(e)}var v="3.17",rt="http://content.systemrequirementslab.com/bin/srldetect_{0}_{1}.jar",ut="http://content.systemrequirementslab.com/bin/srldetect_{0}.jar",ft='<object id="{0}" style="visibility: hidden" height="0" width="0" type="application/x-java-applet" archive="{1}" ><param name="CODE" value="SystemRequirementsLab.class" ><param name="mayscript" value="true" /><param name="scriptable" value="true" /><\/object>',et='<object id="{0}" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="1" width="1"><param name="CODE" value="SystemRequirementsLab.class" ><param name="ARCHIVE" value="{1}" /><param name="mayscript" value="true" /><param name="scriptable" value="true" /><\/object>',f=new String(""),h=4,y=2,r=1,c=0,e=0;n.Configuration={ReferrerID:"",ApplicationID:"",ApiKey:"",LogLevel:6,DetectionIDs:""};n.Object={ObjectTagID:"SysReqLab",ParentTagID:"SysReqLabLibrary",ID:"cyri",Version:"",LoadTimeout:60};n.EventHandler={OnLoadBegin:null,OnLoadComplete:null,OnLoadError:null,OnDetectBegin:null,OnDetectComplete:null};n.SystemInfo={XML:"",ReferrerID:"",ApplicationID:"",ClientID:"",Version:"",ComputerID:"",URL:"",UserAgent:"",CookiesEnabled:!1,JavaEnabled:!1,ActiveXEnabled:!1};n.LastError={Code:0,Description:""};n.Configure=function(){var e,f;i(r,"Entering Configure.");s();e="<Configuration><ReferrerID>"+n.Configuration.ReferrerID+"<\/ReferrerID><ApplicationID>"+n.Configuration.ApplicationID+"<\/ApplicationID><ApiKey>"+n.Configuration.ApiKey+"<\/ApiKey><DateTime>"+n.Configuration.DateTime+"<\/DateTime><DetectionIDs>"+n.Configuration.DetectionIDs+"<\/DetectionIDs><NetworkTestUploadURL>"+n.Configuration.NetworkTestUploadURL+"<\/NetworkTestUploadURL><NetworkTestDownloadURL>"+n.Configuration.NetworkTestDownloadURL+"<\/NetworkTestDownloadURL><Trace>"+n.Configuration.LogLevel+"<\/Trace><SystemInfo>"+a()+"<\/SystemInfo><\/Configuration>";u()&&(i(y,"Configuration data: "+e),f=t("#"+n.Object.ObjectTagID)[0].Configure(e),f>0&&(n.LastError.Code=f,i(h,"Error "+f+" in method Detect.")));i(r,"Exiting Configure.")};n.Detect=function(){if(i(r,"Entering Detect."),g(),u()){var f=t("#"+n.Object.ObjectTagID)[0].Detect();f>0?(n.LastError.Code=f,i(h,"Error "+f+" in method Detect.")):n.SystemInfo.ComputerID=t("#"+n.Object.ObjectTagID)[0].ComputerID}nt();i(r,"Exiting Detect.")};n.SaveSession=function(n){i(r,"Entering SaveSession.");s();var u="<Session id='"+n+"'><SystemInfo>"+a()+"<\/SystemInfo><\/Session>";t.ajax({type:"POST",url:"http://svc-vpc.systemrequirementslab.com/services/session/"+n,data:u,success:null,contentType:"text/plain; charset=utf-8",dataType:"text"});i(r,"Exiting SaveSession.")};n.GetVersion=function(){return v};n.Init=function(){i(r,"Entering Init.");s();i(r,"Exiting Init.")};n.AreCookiesEnabled=function(){var n=navigator.cookieEnabled?!0:!1;return typeof navigator.cookieEnabled!="undefined"||n||(document.cookie="srl_testcookie",n=document.cookie.indexOf("srl_testcookie")!=-1?!0:!1),n};n.IsJavaEnabled=function(){return typeof navigator.javaEnabled!="undefined"?navigator.javaEnabled()?!0:!1:!1};n.GetLog=function(){return new String(f)};n.GetObjectLog=function(){var i=new String;return u()&&(i=t("#"+n.Object.ObjectTagID)[0].GetLog()),i};n.Load=function(){i(r,"Entering Load.");b();tt();var u=w();i(y,"Object tag declaration: \n"+u);t("#"+n.Object.ParentTagID).html(u);i(r,"Exiting Load.")};n.Stop=function(){it()};n.LoadMonitor=function(){i(r,"Entering LoadMonitor.");c>=n.Object.LoadTimeout*1e3?(i(r,"Monitor found timeout."),clearInterval(e),n.LastError.Code=1,n.LastError.Description="Object load timeout.",d()):u()?(i(r,"Monitor found done."),clearInterval(e),k()):(i(r,"Monitor will loop again."),c+=500)};n.Report=function(){if(i(r,"Entering Report."),u()){var f=t("#"+n.Object.ObjectTagID)[0].Report();f>0&&(n.LastError.Code=f,i(h,"Error "+f+" in method Report."))}i(r,"Exiting Report.")}})(window.SRL_Detection=window.SRL_Detection||{},jQuery);random=uid();var DetectionObject=function(n,t){var u="",f="",e="",o="",r="",s="",h="",c="",l="",r="",d=function(){i(a).fire()},g=function(){i(v).fire();SRL_Detection.Configure();SRL_Detection.Detect()},nt=function(){i(w).fire()},tt=function(){i(y).fire()},it=function(){SRL_Detection.Report();i(p).fire()},wt=function(){i(b).fire()},rt=function(){SRL_Detection.Configuration.LogLevel=9;SRL_Detection.Init();SRL_Detection.Object.ObjectTagID=s;SRL_Detection.Object.ParentTagID=h;SRL_Detection.Configuration.ReferrerID=e;SRL_Detection.Configuration.ApplicationID=o;SRL_Detection.Configuration.ApiKey=r;SRL_Detection.Object.Version=u;SRL_Detection.Object.ID=f;SRL_Detection.Object.LoadTimeout=60;SRL_Detection.EventHandler.OnLoadBegin=d;SRL_Detection.EventHandler.OnLoadComplete=g;SRL_Detection.EventHandler.OnDetectBegin=tt;SRL_Detection.EventHandler.OnDetectComplete=it;SRL_Detection.EventHandler.OnLoadError=nt;SRL_Detection.Load()},ut=function(){SRL_Detection.Stop()},ft=function(){},et=function(){return SRL_Detection.SystemInfo.ComputerID},a="loadBegin",v="loadComplete",y="detectionBegin",p="detectionComplete",w="loadError",b="detectionError",k={},i=function(n){var i,r=n&&k[n];return r||(i=t.Callbacks(),r={fire:i.fire,add:i.add,remove:i.remove},n&&(k[n]=r)),r},ot=function(n){return n&&(f=n),f},st=function(n){return n&&(e=n),e},ht=function(n){return n&&(o=n),o},ct=function(n){return n&&(r=n),r},lt=function(n){return n&&(c=n),c},at=function(n){return n&&(l=n),l},vt=function(n){return n&&(u=n),u},yt=function(n){return n&&(s=n),s},pt=function(n){return n&&(h=n),h};return{init:ft,start:rt,stop:ut,event:i,computerID:et,id:ot,version:vt,referrerID:st,applicationID:ht,apiKey:ct,parentTagID:pt,objectTagID:yt,data1:lt,returnUrl:at,LOAD_BEGIN:a,LOAD_COMPLETE:v,DETECTION_BEGIN:y,DETECTION_COMPLETE:p,LOAD_ERROR:w,DETECTION_ERROR:b}}(DetectionObject=DetectionObject||{},jQuery),InstructionDialog=function(n,t){var u=!1,i="",e=function(){t("#instruction-dialog").dialog("open");t("#instruction-dialog").dialog("moveToTop");SRL.logEventToGA("Instruction Dialog","Showing","",!1)},r=function(){u=!0;t("#instruction-dialog").dialog("close")},o=function(){r();PluginDetect.isMinVersion("Java","1.7,0,51",null,[0,0,0])==1||PluginDetect.isMinVersion("Java","1.7,0,25",null,[0,0,0])==-.1?setTimeout(function(){DetectionDialog.show()},50):setTimeout(function(){JavaErrorDialog.show()},50)},f=function(){r();SRL.logEventToGA("Instruction Dialog","Desktop App","",!0);var n="/cyri/download-app/?referrer-id=1046&application-id="+DetectionObject.applicationID()+"&return-url="+encodeURIComponent(DetectionObject.returnUrl());window.open(n,"_parent")},s=function(){r();SRL.logEventToGA("Instruction Dialog","View Req","",!1);window.open(i,"_parent")},h=function(){t("#instruction-dialog").dialog({title:"Computer Hardware Detection",position:"center",width:650,show:"fade",autoOpen:!1,draggable:!1,resizable:!1,modal:!0,open:function(){t(".ui-widget-overlay").css({opacity:.6,filter:"Alpha(Opacity=20)"})},close:function(){!u}});t("#dialog-begin-detection").click(function(n){n.preventDefault();o()});t("#manual-install-1").click(function(n){n.preventDefault();f()});t("#manual-install-2").click(function(n){n.preventDefault();f()});t("#view-req").click(function(n){n.preventDefault();s()})},c=function(n){return n&&(i=n),i};return{requirementsURI:c,init:h,show:e}}(InstructionDialog=InstructionDialog||{},jQuery),DetectionDialog=function(n,t){var u="",f=function(){SRL.logEventToGA("Detection Dialog","Troubleshoot Link","",!1);y();setTimeout(function(){TroubleshootDialog.show()},30)},e=function(){!r},o=function(){i(1)},s=function(){i(2)},h=function(){r=!0;t("#download-dialog").dialog("close");setTimeout(function(){TimeoutDialog.show()},50)},c=function(){i(3)},l=function(){i(4);setTimeout(function(){i(5)},3e3);r=!0;t("#download-dialog").dialog("close");SRL.dropComputerIDCookie(DetectionObject.computerID(),"0.0");window.location.href=u},a=function(){r=!0;t("#download-dialog").dialog("close")},r=!1,v=function(){t("#download-dialog").dialog("open");t("#download-dialog").dialog("moveToTop");i(0);setTimeout(function(){DetectionObject.start()},10);SRL.logEventToGA("Detection Dialog","Showing","",!1)},y=function(){DetectionObject.stop();r=!0;t("#download-dialog").dialog("close")},i=function(n){switch(n){case 0:t("#progress-bar").progressbar({value:0});t("#status").html("");break;case 1:t("#progress-bar").progressbar("option","value",25);t("#status").html("Loading ...");break;case 2:t("#progress-bar").progressbar("option","value",55);t("#status").html("Installing ...");break;case 3:t("#progress-bar").progressbar("option","value",75);t("#status").html("Detecting ...");break;case 4:t("#progress-bar").progressbar("option","value",95);t("#status").html("Completed ...");break;case 5:t("#progress-bar").progressbar("option","value",100);t("#status").html("Results ...");break;default:t("#status").html("Working...")}},p=function(){t("#download-dialog").dialog({title:"Gathering computer information",width:500,position:"center",autoOpen:!1,resizable:!1,modal:!0,close:function(){e()}});t("#download-dialog>#troubleshoot").click(function(n){n.preventDefault();f()});DetectionObject.event(DetectionObject.LOAD_BEGIN).add(o);DetectionObject.event(DetectionObject.LOAD_COMPLETE).add(s);DetectionObject.event(DetectionObject.LOAD_ERROR).add(h);DetectionObject.event(DetectionObject.DETECTION_BEGIN).add(c);DetectionObject.event(DetectionObject.DETECTION_COMPLETE).add(l);DetectionObject.event(DetectionObject.DETECTION_ERROR).add(a)};return{init:p,show:v,detectionCompleteURI:function(n){return n!=null&&(u=n),u}}}(DetectionDialog=DetectionDialog||{},jQuery),TimeoutDialog=function(n,t){var i=!1,r=function(){t("#timeout-dialog").dialog("open");t("#timeout-dialog").dialog("moveToTop");SRL.logEventToGA("Timeout Dialog","Showing","",!1)},o=function(){i=!0;t("#timeout-dialog").dialog("close")},u=function(){SRL.logEventToGA("Timeout Dialog","Update Java","",!1)},f=function(){SRL.logEventToGA("Timeout Dialog","Desktop App","",!1)},e=function(){t("#timeout-dialog").dialog({title:"Troubleshooting - Timeout",position:"center",width:700,show:"fade",autoOpen:!1,resizable:!0,modal:!0,open:function(){t(".ui-widget-overlay").css({opacity:.6,filter:"Alpha(Opacity=20)"})},close:function(){!i}});t("#timeout-dialog>#update-java").click(function(n){n.preventDefault();u()});t("#timeout-dialog>#desktop-application").click(function(n){n.preventDefault();f()})};return{init:e,show:r}}(TimeoutDialog=TimeoutDialog||{},jQuery),TroubleshootDialog=function(n,t){var i=!1,r=function(){t("#troubleshoot-dialog").dialog("open");t("#troubleshoot-dialog").dialog("moveToTop");SRL.logEventToGA("Troubleshoot Dialog","Showing","",!1)},f=function(){i=!0;t("#troubleshoot-dialog").dialog("close")},u=function(){t("#troubleshoot-dialog").dialog({title:"Troubleshooting",position:"center",width:700,show:"fade",autoOpen:!1,resizable:!0,modal:!0,open:function(){t(".ui-widget-overlay").css({opacity:.6,filter:"Alpha(Opacity=20)"})},close:function(){!i}})};return{init:u,show:r}}(TroubleshootDialog=TroubleshootDialog||{},jQuery),JavaErrorDialog=function(n,t){var i=!1,r=function(){t("#java-error-dialog").dialog("open");t("#java-error-dialog").dialog("moveToTop");SRL.logEventToGA("Java Error Dialog","Showing","",!1)},u=function(){i=!0;t("#java-error-dialog").dialog("close")},f=function(){u();SRL.logEventToGA("Java Error Dialog","Desktop App","",!1);window.open("/cyri/download-app/?referrer-id=1046","_parent")},e=function(){t("#java-error-dialog").dialog({title:"Java Error",position:"center",width:700,show:"fade",autoOpen:!1,resizable:!0,modal:!0,open:function(){t(".ui-widget-overlay").css({opacity:.6,filter:"Alpha(Opacity=20)"})},close:function(){!i}});t("#desktop-app").click(function(n){n.preventDefault();f()})};return{init:e,show:r}}(JavaErrorDialog=JavaErrorDialog||{},jQuery)