var ServiceTickDetection=function(){var g=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var f=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var e=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function b(){var i;var j;var k;try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");i=j.GetVariable("$version")}catch(k){}if(!i){try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");i="WIN 6,0,21,0";j.AllowScriptAccess="always";i=j.GetVariable("$version")}catch(k){}}if(!i){try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");i=j.GetVariable("$version")}catch(k){}}if(!i){try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");i="WIN 3,0,18,0"}catch(k){}}if(!i){try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");i="WIN 2,0,0,11"}catch(k){i=-1}}return i}function d(){var o=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var n=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var i=navigator.plugins["Shockwave Flash"+n].description;var m=i.split(" ");var k=m[2].split(".");var p=k[0];var j=k[1];var l=m[3];if(l==""){l=m[4]}if(l[0]=="d"){l=l.substring(1)}else{if(l[0]=="r"){l=l.substring(1);if(l.indexOf("d")>0){l=l.substring(0,l.indexOf("d"))}}}var o=p+"."+j+"."+l}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){o=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){o=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){o=2}else{if(g&&f&&!e){o=b()}}}}}return o}function h(n,l,k){versionStr=d();if(versionStr==-1){return false}else{if(versionStr!=0){if(g&&f&&!e){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var m=versionArray[0];var i=versionArray[1];var j=versionArray[2];if(m>parseFloat(n)){return true}else{if(m==parseFloat(n)){if(i>parseFloat(l)){return true}else{if(i==parseFloat(l)){if(j>=parseFloat(k)){return true}}}}}return false}}}function a(){if(g){window.attachEvent("onunload",function i(){var k=document.body.getElementsByTagName("object");for(var j=0;j<=k.length;j++){document.body.removeChild(k[j])}})}}function c(){}return{DetectFlashVer:function(j,k,i){return h(j,k,i)},GetSwfVer:function(){return d()},Version:function(){return"2.4"},setUnloadHandlerForIE:function(){a()}}}();ServiceTickDetection.setUnloadHandlerForIE();var reqFlashVersion,rec,headID,scriptBaseURL,newScript;reqFlashVersion=ServiceTickDetection.DetectFlashVer(9,0,0);if(reqFlashVersion){document.write('<object id="stflashob" class="ServiceTickHidden" width="1" height="1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">');document.write(' <param name="movie" value="'+SWFfilename+'" />');document.write(' <param name="allowScriptAccess" value="always" />');document.write(' <embed id="stflashembed" width="1" height="1" src="'+SWFfilename+'" class="ServiceTickHidden" allowscriptaccess="always" type="application/x-shockwave-flash"></embed>');document.write("</object>")}rec=document.createElement("script");rec.type="text/javascript";rec.src=window.location.protocol+"//d2oh4tlt9mrke9.cloudfront.net/Record/js/sessioncam.recorder.js";document.getElementsByTagName("head")[0].appendChild(rec);headID=document.getElementsByTagName("head")[0];if(location.protocol.toLowerCase()=="http:"){scriptBaseURL="http://integration.servicetick.com/script-repository/get-script.aspx?s="+AccountCode+"&f="}else{scriptBaseURL="https://secure.servicetick.com/script-repository/get-script.aspx?s="+AccountCode+"&f="}newScript=document.createElement("script");newScript.type="text/javascript";newScript.src=scriptBaseURL+AccountCode+".js";headID.appendChild(newScript);
