/* FILE ARCHIVED ON 0:06:17 May 6, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 0:30:00 May 1, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ robotreplay={version:8.1,more_info:"https://webarchive.library.unt.edu/eot2008/20090506000617/http://www.robotreplay.com",copyright:"(c) Foresee Results Inc., 2006-2009",patent_notice:"Patents Pending.",corporate_url:"https://webarchive.library.unt.edu/eot2008/20090506000617/http://www.foreseeresults.com",replay_js_file:"foresee-replay.js",playback_server:"https://webarchive.library.unt.edu/eot2008/20090506000617/http://replay.foreseeresults.com/replay/",playback_css:"https://webarchive.library.unt.edu/eot2008/20090506000617/http://replay.foreseeresults.com/stylesheets/playback/robotreplay.playback.css",images:"/images/",js_build_date:"Mon May 04 21:13:25 -0400 2009",is_debug_build:false,swf_url:"https://webarchive.library.unt.edu/eot2008/20090506000617/http://foresee.swf.s3.amazonaws.com/transport.swf",secure_swf_url:"https://webarchive.library.unt.edu/eot2008/20090506000617/https://replay.foreseeresults.com/transport.swf",domain_blacklist:["staging.defenselink","preview.defenselink"],domains:{'defenselink.mil':'defenselink.mil'}};robotreplay.href=window.location.href;robotreplay.String={inverseArraySearch:function(searchArray,searchString){for(var i=0;i'}}else switch(node.nodeName){case'TEXTAREA':for(var a=0;a';html+=content;html+='<\/'+node.nodeName+'>';break}break;case Node.TEXT_NODE:html+=node.nodeValue;break;case Node.COMMENT_NODE:html+='';break}return html}},specialElements:{TEXTAREA:true},emptyElements:{HR:true,BR:true,IMG:true,INPUT:true}};robotreplay.Math={distance:function(v1,v2){if(v1.x)return Math.sqrt(Math.pow(v2.y-v1.y,2)+Math.pow(v2.x-v1.x,2));else return Math.sqrt(Math.pow(v2[0]-v1[0],2)+Math.pow(v2[1]-v1[1],2))}};robotreplay.close=function(context,func,params){if(null==params){return function(){return func.apply(context,arguments)}}else{return function(){return func.apply(context,params)}}};robotreplay.sync=function(handler,events,context){var i=events.length;var f=function(){i--;if(!i){handler.call(context)}};for(var i=0;i").replace(/\#\&lt\;\#/g,"<").replace(/\#\&gt\;\#/g,">").replace(/\/\*EQ\*\//g,"=").replace(/\#\Q\#/g,"\"").replace(/\#\&\;\#/g,"&");s=s.replace(/eventArgs/g,'arguments[0]');method=robotreplay.close(context,function(){eval(s)})};if(typeof context=="object"&&method instanceof Function){func=robotreplay.close(context,method)};guid=guid||func.observer_guid||method.observer_guid||this.guid++;func.observer_guid=guid;method.observer_guid=guid;this.handlers[guid]=func;return guid};robotreplay.Subject.prototype.subscribeOnce=function(method,context){if(!method){return}var guid=null;var _this=this;var func1=function(){method.apply(context||null,arguments);_this.unSubscribe(guid)};guid=this.subscribe(func1);return guid};robotreplay.Subject.prototype.unSubscribe=function(guid){if(guid instanceof Function){guid=guid.observer_guid}this.handlers[guid]=null;delete this.handlers[guid]};robotreplay.Subject.prototype.notify=function(evtArgs){if(this.enabled){var args=arguments;if(args.length==0){args=new Array();args[0]=new robotreplay.EventArgs(null,this);args[0].event=this;args[0].source=null}else if(typeof(args[0].event)!="undefined"&&args[0].event==null){args[0].event=this}var fail=false;for(var item in this.handlers){var handler=this.handlers[item];if(handler instanceof Function){var rv=(handler.apply(this,args)==false);fail=fail||rv}}return!fail}this.notified=true;return true};robotreplay.Subject.prototype.dispose=function(){for(var handler in this.handlers){this.handlers[handler]=null};this.handlers={}};robotreplay.Subject.prototype.setEnabled=function(enabled){this.enabled=enabled};robotreplay.Subject.prototype.isEnabled=function(){return this.enabled};robotreplay.onFlashReady=new robotreplay.Subject();robotreplay.ResponseEventArgs=function(source,subject,message){this.source=source;this.subject=subject;this.message=message||{}};robotreplay.ScriptTransport=function(id){this.targetUrl="";this.onResponse=new robotreplay.Subject();this.type='script'};robotreplay.ScriptTransport.inTransit={};robotreplay.ScriptTransport.prototype.send=function(data,action){if(!data.debug){data.debug=""};var url=this.targetUrl||robotreplay.User.rec_servers.script;this.data=data.data;delete data.data;var query=this.formatQuery(data);url+="?act="+action+"&"+query;this.marshalRequests(this.data,url)};robotreplay.ScriptTransport.prototype.marshalRequests=function(data,url){var rb=robotreplay.Browser.browser;var blockIndex=0;var bufferSpace=20;var encodedData=encodeURIComponent(data);do{blockIndex+=1;var currentBlockData=encodedData;if((encodedData.length+url.length+bufferSpace)>=rb.maxurllength){for(var i=encodedData.length-1;i>21;i-=20){currentBlockData=encodedData.substr(0,i);if((currentBlockData.length+url.length+bufferSpace)<=rb.maxurllength){break}}currentBlockData=currentBlockData.substr(0,currentBlockData.lastIndexOf("~"))}encodedData=encodedData.substr(currentBlockData.length);this._send(currentBlockData,url,blockIndex)}while(encodedData.length>0&¤tBlockData.length>0)};robotreplay.ScriptTransport.prototype._send=function(data,url,blockIndex){var id=robotreplay.MD5.hash(data,1);url+="&id="+id+"&client_timestamp="+new Date().valueOf();this.id=id;var that=this;robotreplay.ScriptTransport.inTransit[id]={handleResponse:function(){that.handleResponse(id)}};if(document.getElementById(id)!=null){}var bodyElement=document.getElementsByTagName("body")[0];var scriptTag=document.createElement("script");scriptTag.type="text/javascript";scriptTag.id=id;scriptTag.setAttribute("src",url+"&data="+data+"&di="+blockIndex);if(data&&data.length>0){bodyElement.appendChild(scriptTag)}else{scriptTag=null}};robotreplay.ScriptTransport.prototype.formatQuery=function(params){var query="";for(var name in params){if(name!="client_timestamp"){var value=params[name];if(name=="url"){value=encodeURIComponent(value)}query+=name+"="+value+"&"}}query=query.replace(/&$/,"");return query};robotreplay.ScriptTransport.prototype.handleResponse=function(id){var node=document.getElementById(id);node.parentNode.removeChild(node);delete robotreplay.ScriptTransport.inTransit[id];this.onResponse.notify(new robotreplay.ResponseEventArgs(this,this.onResponse,id))};robotreplay.FlashTransport=function(id){this.id=id||"_r"+Math.round(Math.random()*10000);this.targetUrl="";this.onResponse=new robotreplay.Subject();this.type='flash'};robotreplay.FlashTransport.inTransit={};robotreplay.FlashTransport.prototype.send=function(data,action){if(!data.debug){data.debug=""};action=action||"Rec.dom";var url=this.targetUrl||robotreplay.User.rec_servers.amf;var transport=robotreplay.Swf.getMovie();this.data=data.data;robotreplay.FlashTransport.inTransit[this.id]=this;if(transport){var res=transport.sendData(robotreplay.JSON.stringify(data),url,this.id,action);if(window.dinfo){}}};robotreplay.FlashTransport.prototype.handleResponse=function(response){delete robotreplay.FlashTransport.inTransit[this.id];this.onResponse.notify(new robotreplay.ResponseEventArgs(this,this.onResponse,robotreplay.JSON.parse(response)))};robotreplay.Cookies={cookiesOn:function(){this.setCookie("rr_ctest","123",5000);if(this.getCookie("rr_ctest")=="123"){this.delCookie("rr_ctest");return true}else return false},cookiesUsed:function(){var a=document.cookie;return a.split(';').length},cookieUsed:function(name){if(document.cookie.indexOf(name+"=")>=0){return true}return false},setCookie:function(name,value,expires,path,domain,secure,skipencode){robotreplay.Cookies.delCookie(name);path="/";if(!expires)expires=600000;var expires_date=new Date((new Date()).getTime()+(expires));if(!skipencode)value=(value+'');var cookieData=name+"="+value+((expires)?";expires="+expires_date.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":"");document.cookie=cookieData},getCookie:function(name,skipdecode){if(!name)name="";var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))){return null}if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;if(!skipdecode)return decodeURIComponent(document.cookie.substring(len,end));else return document.cookie.substring(len,end)},delCookie:function(name,path,domain){var date=new Date();date.setTime(date.getTime()+(-1*24*60*60*1000));var expires="; expires="+date.toGMTString();document.cookie=name+"="+expires+"; path=/"},clearNonRRCookies:function(){try{var cArray=document.cookie.split(';');for(var i=0;i7){robotreplay.Swf.so.SWFObject.doPrepUnload=true}if(c){this.addParam("bgcolor",c)}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9)}};robotreplay.Swf.so.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true)},setAttribute:function(_e,_f){this.attributes[_e]=_f},getAttribute:function(_10){return this.attributes[_10]},addParam:function(_11,_12){this.params[_11]=_12},getParams:function(){return this.params},addVariable:function(_13,_14){this.variables[_13]=_14},getVariable:function(_15){return this.variables[_15]},getVariables:function(){return this.variables},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16.push(key+"="+_18[key])}return _16},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}_19="0){_19+="flashvars=\""+_1c+"\""}_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+=""}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+=""}_19+=""}return _19},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new robotreplay.Swf.so.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};robotreplay.Swf.so.SWFObjectUtil.getPlayerVersion=function(){var _23=new robotreplay.Swf.so.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new robotreplay.Swf.so.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new robotreplay.Swf.so.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(_23.major==6){return _23}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(axo!=null){_23=new robotreplay.Swf.so.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))}}return _23};robotreplay.Swf.so.PlayerVersion=function(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[2]):0};robotreplay.Swf.so.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true}if(this.minorfv.minor){return true}if(this.rev0;i--){_2d[i].style.display="none";for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){}}}}};if(robotreplay.Swf.so.SWFObject.doPrepUnload){robotreplay.Swf.so.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",robotreplay.Swf.so.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",robotreplay.Swf.so.SWFObjectUtil.prepUnload)}if(Array.prototype.push==null){Array.prototype.push=function(_30){this[this.length]=_30;return this.length}};robotreplay.TransportFactory=function(){};robotreplay.TransportFactory.getTransport=function(emergency,id){var r=robotreplay;var rs=r.Session;var fobj=null;if(r.Swf.isAlive()&&rs.flashAvailable==true){var fobj=new r.FlashTransport(id);fobj.targetUrl=r.User.rec_servers.amf}else if(emergency){var fobj=new r.ScriptTransport();fobj.targetUrl=r.User.rec_servers.script}if(fobj!=null&&rs.isPageSecure()&&fobj.targetUrl.indexOf('//localhost')<0){fobj.targetUrl=fobj.targetUrl.replace("http:","https:")}return fobj};robotreplay.Dom={getCoords:function(element){var lx=0;var ly=0;var eh=0;var ew=0;try{var originalElement=element;ew=element.offsetWidth;eh=element.offsetHeight;for(lx=0,ly=0;element!=null;lx+=element.offsetLeft,ly+=element.offsetTop,element=element.offsetParent){};for(;((originalElement!=document.body)&&(originalElement.documentElement==undefined));lx-=originalElement.scrollLeft,ly-=originalElement.scrollTop,originalElement=originalElement.parentNode){}}catch(e){lx=0;ly=0;eh=0;ew=0}return{x:lx,y:ly,height:eh,width:ew}},getiFrameCoords:function(element){var br=robotreplay.browser;var myC={x:0,y:0};if(br=="ie"){var iFr=element.ownerDocument.parentWindow.window.frameElement;while(iFr){var myC2=this.getCoords(iFr);myC.x+=myC2.x;myC.y+=myC2.y;iFr=iFr.ownerDocument.parentWindow.window.frameElement}}else{try{var iFr=(element.frameElement||element.ownerDocument.defaultView.frameElement)}catch(e){iFr=null}while(iFr){var myC2=this.getCoords(iFr);myC.x+=myC2.x;myC.y+=myC2.y;if(iFr.ownerDocument)iFr=iFr.ownerDocument.defaultView.frameElement;else iFr=null}};return myC},getAbsoluteCoords:function(myobj){var ac=this.getCoords(myobj);var ic=this.getiFrameCoords(myobj);ac.y+=ic.y;ac.x+=ic.x;return ac},getiFrameReference:function(frameEl){var br=robotreplay.browser;var resId=frameEl.id;if(br=="ie"){var iFr=frameEl.ownerDocument.parentWindow.window.frameElement;while(iFr){resId=iFr.id+";"+resId;var iFr=iFr.ownerDocument.parentWindow.window.frameElement}}else{var iFr=frameEl.ownerDocument.defaultView.frameElement;while(iFr){resId=iFr.id+";"+resId;var iFr=iFr.ownerDocument.defaultView.frameElement}}return resId},getCaretInfo:function(oTextarea){var docObj=oTextarea.ownerDocument;var result={start:0,end:0,caret:0};if(robotreplay.browser=="ie"){if(oTextarea.tagName.toLowerCase()=="textarea"){if(oTextarea.value.charCodeAt(oTextarea.value.length-1)<14){oTextarea.value=oTextarea.value.replace(/34/g,'')+String.fromCharCode(28)}var oRng=docObj.selection.createRange();var oRng2=oRng.duplicate();oRng2.moveToElementText(oTextarea);oRng2.setEndPoint('StartToEnd',oRng);result.end=oTextarea.value.length-oRng2.text.length;oRng2.setEndPoint('StartToStart',oRng);result.start=oTextarea.value.length-oRng2.text.length;result.caret=result.end;if(oTextarea.value.substr(oTextarea.value.length-1)==String.fromCharCode(28)){oTextarea.value=oTextarea.value.substr(0,oTextarea.value.length-1)}var startcOffset=(oTextarea.value.substr(0,result.start).split('\n').length)-1;var caretcOffset=(oTextarea.value.substr(0,result.caret).split('\n').length)-1;var endcOffset=(oTextarea.value.substr(0,result.end).split('\n').length)-1;result.caret-=caretcOffset;result.start-=startcOffset;result.end-=endcOffset}else{var range=docObj.selection.createRange();var r2=range.duplicate();result.start=0-r2.moveStart('character',-100000);result.end=result.start+range.text.length;result.caret=result.end}}else{result.start=oTextarea.selectionStart;result.end=oTextarea.selectionEnd;result.caret=result.end}if(result.start<0){result={start:0,end:0,caret:0}}return result},setCaretPos:function(ctrl,pos){if(ctrl.setSelectionRange){ctrl.focus();ctrl.setSelectionRange(pos,pos)}else if(ctrl.createTextRange){var range=ctrl.createTextRange();range.collapse(true);range.moveEnd('character',pos);range.moveStart('character',pos);range.select()}},objectsSame:function(obj1,obj2){var issame=true;for(var i in obj1){if(!obj2[i]){if(obj1[i])issame=false}else if(obj2[i]!=obj1[i])issame=false}return issame},getMulti:function(ob){selected=new Array();for(var i=0;i0&&cdt.indexOf('strict')>0){dc=pre+hs}else if(cdt.indexOf('html4')>0&&cdt.indexOf('loose')>0){dc=pre+hl}else if(cdt.indexOf('xhtml1')>0&&cdt.indexOf('strict')>0){dc=pre+xs}else if(cdt.indexOf('xhtml1')>0&&cdt.indexOf('transitional')>0){dc=pre+xt}else if(cdt.indexOf('xhtml11.dtd')>0){dc=pre+x}}return dc}};robotreplay.Dom.query=function(){var cache={},simpleCache={},valueCache={};var nonSpace=/\S/;var trimRe=/^\s+|\s+$/g;var tplRe=/\{(\d+)\}/g;var modeRe=/^(\s?[\/>+~]\s?|\s|$)/;var tagTokenRe=/^(#)?([\w-\*]+)/;var nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/;function child(p,index){var i=0;var n=p.firstChild;while(n){if(n.nodeType==1){if(++i==index){return n}}n=n.nextSibling}return null};function next(n){while((n=n.nextSibling)&&n.nodeType!=1);return n};function prev(n){while((n=n.previousSibling)&&n.nodeType!=1);return n};function children(d){var n=d.firstChild,ni=-1;while(n){var nx=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){d.removeChild(n)}else{n.nodeIndex=++ni}n=nx}return this};function byClassName(c,a,v){if(!v){return c}var r=[],ri=-1,cn;for(var i=0,ci;ci=c[i];i++){if((' '+ci.className+' ').indexOf(v)!=-1){r[++ri]=ci}}return r};function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]};function getNodes(ns,mode,tagName){var result=[],ri=-1,cs;if(!ns){return result}tagName=tagName||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(var j=0,ci;ci=cs[j];j++){result[++ri]=ci}}}else if(mode=="/"||mode==">"){var utag=tagName.toUpperCase();for(var i=0,ni,cn;ni=ns[i];i++){cn=ni.children||ni.childNodes;for(var j=0,cj;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=='*'){result[++ri]=cj}}}}else if(mode=="+"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1);if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=='*')){result[++ri]=n}}}else if(mode=="~"){for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&(n.nodeType!=1||(tagName=='*'||n.tagName.toLowerCase()!=tagName)));if(n){result[++ri]=n}}}return result};function concat(a,b){if(b.slice){return a.concat(b)}for(var i=0,l=b.length;i1){return nodup(results)}return results},selectNode:function(path,root){return robotreplay.Dom.query.select(path,root)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");if(!valueCache[path]){valueCache[path]=robotreplay.Dom.query.compile(path,"select")}var n=valueCache[path](root);n=n[0]?n[0]:n;var v=(n&&n.firstChild?n.firstChild.nodeValue:null);return((v===null||v===undefined||v==='')?defaultValue:v)},selectNumber:function(path,root,defaultValue){var v=robotreplay.Dom.query.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el)}var isArray=(el instanceof Array);var result=robotreplay.Dom.query.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");if(!simpleCache[ss]){simpleCache[ss]=robotreplay.Dom.query.compile(ss,"simple")}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w-]+)/,select:'n = byClassName(n, null, " {1} ");'},{re:/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w-]+)/,select:'n = byId(n, null, "{1}");'},{re:/^@([\w-]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],operators:{"=":function(a,v){return a==v},"!=":function(a,v){return a!=v},"^=":function(a,v){return a&&a.substr(0,v.length)==v},"$=":function(a,v){return a&&a.substr(a.length-v.length)==v},"*=":function(a,v){return a&&a.indexOf(v)!==-1},"%=":function(a,v){return(a%v)==0},"|=":function(a,v){return a&&(a==v||a.substr(0,v.length+1)==v+'-')},"~=":function(a,v){return a&&(' '+a+' ').indexOf(' '+v+' ')!=-1}},pseudos:{"first-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.previousSibling)&&n.nodeType!=1);if(!n){r[++ri]=ci}}return r},"last-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.nextSibling)&&n.nodeType!=1);if(!n){r[++ri]=ci}}return r},"nth-child":function(c,a){var r=[],ri=-1;var m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a);var f=(m[1]||1)-0,l=m[2]-0;for(var i=0,n;n=c[i];i++){var pn=n.parentNode;if(batch!=pn._batch){var j=0;for(var cn=pn.firstChild;cn;cn=cn.nextSibling){if(cn.nodeType==1){cn.nodeIndex=++j}}pn._batch=batch}if(f==1){if(l==0||n.nodeIndex==l){r[++ri]=n}}else if((n.nodeIndex+l)%f==0){r[++ri]=n}}return r},"only-child":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci}}return r},"empty":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var cns=ci.childNodes,j=0,cn,empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){r[++ri]=ci}}return r},"contains":function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if((ci.textContent||ci.innerText||'').indexOf(v)!=-1){r[++ri]=ci}}return r},"nodeValue":function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci}}return r},"checked":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.checked==true){r[++ri]=ci}}return r},"not":function(c,ss){return robotreplay.Dom.query.filter(c,ss,true)},"odd":function(c){return this["nth-child"](c,"odd")},"even":function(c){return this["nth-child"](c,"even")},"nth":function(c,a){return c[a-1]||[]},"first":function(c){return c[0]||[]},"last":function(c){return c[c.length-1]||[]},"has":function(c,ss){var s=robotreplay.Dom.query.select;var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(s(ss,ci).length>0){r[++ri]=ci}}return r},"next":function(c,ss){var is=robotreplay.Dom.query.is;var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=next(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},"prev":function(c,ss){var is=robotreplay.Dom.query.is;var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r}}}}();robotreplay.Dom.query.idQuery=function(elType,idString){var elList=document.getElementsByTagName(elType);var resList=[];for(var i=0;i-1)){var state=document.readyState;if(state=='loaded'||state=='complete'){rd.didExecute=true;eval(rd.onDomready);eval(robotreplay.Onload.onLoad);robotreplay.Onload.onLoad=""}else{setTimeout(rd.setupEvent,50)}}else{document.addEventListener("DOMContentLoaded",function(){rd.didExecute=true;eval(rd.onDomready);rd.onDomready=""},false)}}else{document.onreadystatechange=function(){rd.readyState(fn)}}if("\v"=="v"){rd.IEContentLoaded(window,rd.domReadyTimerCheck);window.attachEvent("onload",function(){eval(rd.onDomready);robotreplay.Domready.didExecute=true;rd.onDomready="";eval(robotreplay.Onload.onLoad);robotreplay.Onload.onLoad=""})}},readyState:function(fn){var a=document.readyState;if(robotreplay.Domready.didExecute==false)if(a&&(a=="complete")){robotreplay.Domready.didExecute=true;eval(robotreplay.Domready.onDomready);robotreplay.Domready.onDomready=""}},attach:function(jscode_to_eval){if(robotreplay.Domready.didExecute==true){eval(jscode_to_eval)}else{robotreplay.Domready.onDomready+=jscode_to_eval}},domReadyTimerCheck:function(){eval(robotreplay.Domready.onDomready);robotreplay.Domready.onDomready="";robotreplay.Domready.didExecute=true;return true},IEContentLoaded:function(w,fn){var d=w.document,done=false,init=function(){if(!done){done=true;fn()}};(function(){try{d.documentElement.doScroll('left')}catch(e){setTimeout(arguments.callee,50);return}init()})();d.onreadystatechange=function(){if(d.readyState=='complete'){d.onreadystatechange=null;init()}}}};robotreplay.Domready.setupEvent();robotreplay.Onload={rewritten:false,reWriteOnload:function(){if(this.rewritten==false){this.rewritten=true;if(document.attachEvent){window.attachEvent("onload",function(){eval(robotreplay.Onload.onLoad);robotreplay.Onload.onLoad=""})}else{window.addEventListener("load",function(){eval(robotreplay.Onload.onLoad);robotreplay.Onload.onLoad=""},false)}}},onLoad:"",attach:function(jscode_to_eval){robotreplay.Onload.onLoad+=jscode_to_eval},loadReadyTimerCheck:function(){eval(robotreplay.Onload.onLoad);robotreplay.Onload.onLoad="";return true}};robotreplay.Domready.attach("robotreplay.Onload.reWriteOnload();");robotreplay.Onunload={rewritten:false,reWriteOnUnload:function(){var ru=robotreplay.Onunload;if(this.rewritten==false){this.rewritten=true;if(window.addEventListener){window.addEventListener("unload",function(){eval(ru.onUnLoad)},true)}else{window.attachEvent("onunload",function(){eval(ru.onUnLoad)})}}},onUnLoad:"",attach:function(jscode_to_eval){robotreplay.Onunload.onUnLoad+=jscode_to_eval}};robotreplay.Onunload.reWriteOnUnload();robotreplay.Session={rr_session_id:null,rr_group_session_id:null,m_domain:null,expiry:1800000,flashAvailable:false,getSessionId:function(){return this.rr_session_id},initSessionId:function(){if(this.rr_session_id==null){var S=robotreplay.Storage;var id=S.read(S.SESSIONID,"");if(this.isSessionStale()){S.clearAll();S.write(S.DOMAINKEY,this.getDomain(),true);S.write(S.VERSIONKEY,robotreplay.version,true);id=((new Date())-0)+"_"+Math.round(Math.random()*10000);S.write(S.SESSIONID,id,true);robotreplay.is_new_session=true;S.write(S.NEWSESSIONKEY,"1",true);S.write(S.STARTTIME,new Date().valueOf(),true)}this.rr_session_id=id}},getGroupSessionId:function(){return this.rr_group_session_id},initGroupSessionId:function(){if(this.rr_group_session_id==null){var C=robotreplay.Cookies;var name=robotreplay.Storage.SESSIONGROUPID;var id=C.getCookie(name);if(!id||id==null||id==''){id=((new Date())-0)+"_"+Math.round(Math.random()*10000);C.setCookie(name,id,this.expiry,'/',this.getDomain())}this.rr_group_session_id=id}},isSessionStale:function(){var S=robotreplay.Storage;if(S.read(S.SESSIONID,'')==''){return true}var oldDomain=S.read(S.DOMAINKEY,'');if(oldDomain!=this.getDomain()&&robotreplay.domains[oldDomain]==null){return true}var oldVersion=S.read(S.VERSIONKEY,'');if(robotreplay.version>oldVersion||oldVersion==''){return true}return false},init:function(){var ru=robotreplay.User;var rc=robotreplay.Cookies;if(rc.cookiesOn()){this.url=String(window.location).replace(/&/g,"(rram)");this.pageInitDateTime=new Date();this.pageLoadTime=0;robotreplay.Onload.attach("robotreplay.Session.pageLoadTime = (new Date())-robotreplay.Session.pageInitDateTime;");var rec_svr=rc.getCookie("rr_rec_svr");if(!rec_svr){rec_svr=ru.rec_servers[Math.round(Math.random()*(ru.rec_servers.length-1))];rc.setCookie("rr_rec_svr",rec_svr)}this.rec_server=rec_svr;this.flashAvailable=true;this.initSessionId();this.initGroupSessionId()}},isPageRecordable:function(){return window.rr_skipPage!==true},isPageSecure:function(){return(window.location.protocol==="https:")},getDomain:function(){if(this.m_domain==null){var domain=window.location.hostname;if(domain=='localhost'){this.m_domain=domain;return this.m_domain}while(domain.split('.').length>1){if(robotreplay.domains[domain]!=null){this.m_domain=domain;break}domain=domain.split('.').slice(1).join('.')}}return this.m_domain},getTimezone:function(){var tza=((new Date().getTimezoneOffset())/60).toString().split(".");var sign=(tza[0]/Math.abs(tza[0])==1)?"-":"+";var hour=(Math.abs(tza[0]).toString().length==1)?"0":"";var min=Math.abs(tza[0])+":"+(tza[1]?tza[1]*6:"00");return sign+hour+min}};robotreplay.Referrer={search_engines:[['google\\.','q'],['search\\.yahoo\\.','p'],['search\\.msn\\.','q'],['search\\.live\\.','query'],['search\\.aol\\.','userQuery'],['ask\\.com','q'],['altavista\\.','q'],['feedster\\.','q'],['search\\.lycos\\.','q'],['alltheweb\\.','q'],['technorati\\.com/search/([^\\?/]+)',1],['dogpile\\.com/info\\.dogpl/search/web/([^\\?/]+)',1,true]],decodeReferrer:function(referrer){var rrr=robotreplay.Referrer;var query=null;var regex=new RegExp('');for(var i=0;i2&&se[2])result=decodeURIComponent(result);result=result.replace(/\'|"/g,'');result=result.split(/[\s,\+\.]+/);return result}break}}return null},decodeReferrerQS:function(referrer,match){var rrr=robotreplay.Referrer;var idx=referrer.indexOf('?');var idx2;if(idx>=0){var qs=referrer.substring(idx+1);idx=0;idx2=0;while((idx>=0)&&((idx2=qs.indexOf('=',idx))>=0)){var key,val;key=qs.substring(idx,idx2);idx=qs.indexOf('&',idx2)+1;if(key==match){if(idx<=0){return qs.substring(idx2+1)}else{return qs.substring(idx2+1,idx-1)}}}}return null},init:function(){var rrr=robotreplay.Referrer;this.keywords=rrr.decodeReferrer(document.referrer)||this.keywords;this.referrer=this.extractDomain(document.referrer);if(this.referrer==null||this.referrer==""){this.referrer="Unknown"}if(this.keywords.length<1)this.keywords="None";var compareDomain=robotreplay.Session.getDomain();if(this.referrer==compareDomain){this.referrer=document.referrer.toLowerCase().replace('http://','')}},keywords:[],referrer:"",search_engine:"",previousExtractions:[],extractDomain:function(url){if(this.previousExtractions[url]){return this.previousExtractions[url]}else{var wl=url.toLowerCase().replace('http://','').replace('https://','');var chars=['/','?','#'];for(var i=0;i-1)wl=wl.substr(0,wl.indexOf(chars[i]))}if(wl.split(".").length==3){var i=(wl.indexOf(".")>=0?wl.indexOf(".")+1:0);wl=wl.substr(i)}this.previousExtractions[url]=wl;return wl}}};robotreplay.Referrer.init();robotreplay.Browser={init:function(){var rb=robotreplay.Browser;rb.xpath=!!(document.evaluate);if(window.ActiveXObject)rb.ie=window[window.XMLHttpRequest?'ie7':'ie6']=true;else if(document.childNodes&&!document.all&&!navigator.taintEnabled)rb.webkit=rb[rb.xpath?'webkit420':'webkit419']=true;else if(document.getBoxObjectFor!=null)rb.gecko=true;rb.khtml=rb.webkit;this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.isStandards=false;if(document.compatMode=="CSS1Compat"){this.isStandards=true}robotreplay.browser=this.browser.basetype;if(rb.browser.basetype=="ie"&&rb.version.maj>=8){rb.ie8=true;rb.ie7=null;rb.ie6=null;rb.ie=true;rb.maxconnections=6}if(rb.browser.basetype=="mozilla"&&rb.version.maj<3){rb.maxconnections=2}},searchString:function(data){for(var i=0;i-1)vstring=vstring.substr(0,vstring.indexOf(' '));if(vstring.indexOf(';')>-1)vstring=vstring.substr(0,vstring.indexOf(';'));var maj=0;var min=0;if(vstring.indexOf('.')>-1){var varr=vstring.split('.');maj=parseInt(varr[0]);min=parseInt(varr[varr.length-1])};if((dataString.indexOf('Safari')>-1)&&(maj>100)&&(maj<500))maj=2;return{maj:maj,min:min,fullstring:vstring}},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:{name:"OmniWeb",basetype:"webkit",maxurllength:3900,maxconnections:2}},{string:navigator.vendor,subString:"Apple",versionSearch:"Version/",versionSearch2:"Safari/",identity:{name:"Safari",basetype:"webkit",maxurllength:3900,maxconnections:4}},{prop:window.opera,versionSearch:"Opera/",identity:{name:"Opera",basetype:"opera",maxurllength:3900,maxconnections:4}},{string:navigator.vendor,subString:"iCab",versionSearch:"iCab/",identity:{name:"iCab",basetype:"webkit",maxurllength:3900,maxconnections:2}},{string:navigator.vendor,subString:"Konqueror",versionSearch:"KHTML/",identity:{name:"Konqueror",basetype:"webkit",maxurllength:3900,maxconnections:4}},{string:navigator.userAgent,subString:"Firefox",versionSearch:"Firefox/",identity:{name:"Firefox",basetype:"mozilla",maxurllength:3900,maxconnections:6}},{string:navigator.vendor,subString:"Camino",versionSearch:"Camino/",identity:{name:"Camino",basetype:"mozilla",maxurllength:3900,maxconnections:2}},{string:navigator.userAgent,subString:"Navigator",versionSearch:"Navigator/",identity:{name:"Netscape",basetype:"mozilla",maxurllength:3900,maxconnections:2}},{string:navigator.userAgent,subString:"MSIE",identity:{name:"Explorer",basetype:"ie",maxurllength:1990,maxconnections:2},versionSearch:"MSIE "},{string:navigator.userAgent,subString:"Gecko",identity:{name:"Mozilla",basetype:"mozilla",maxurllength:3900,maxconnections:2},versionSearch:"rv"},{string:navigator.userAgent,subString:"Netscape",versionSearch:"Netscape/",identity:{name:"Netscape",basetype:"mozilla",maxurllength:3900,maxconnections:2}}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};robotreplay.Browser.init();robotreplay.Geometry={scrollbarWidth:0,scrollbarHeight:0,getScrollPosition:function(){var scrollLeft=0;var scrollTop=0;var doc=robotreplay.Browser.isStandards;var client=robotreplay.browser;var maj=robotreplay.Browser.version.maj;var db=document.body;var dd=document.documentElement;if(doc==true){if((client=="ie")||(client=="mozilla")||(client=="opera")){scrollLeft=dd.scrollLeft;scrollTop=dd.scrollTop}else if(client=="webkit"){scrollLeft=db.scrollLeft;scrollTop=db.scrollTop}}else{if(db){scrollLeft=db.scrollLeft;scrollTop=db.scrollTop}}if(db&&scrollTop==0&&(db.scrollTop&&db.scrollTop>0)){scrollTop=db.scrollTop;scrollLeft=db.scrollLeft}return{scrollLeft:scrollLeft,scrollTop:scrollTop}},getWindowSize:function(){var overflowX=false;var overflowY=false;var browserWidth=0;var browserHeight=0;var bodyWidth=0;var bodyHeight=0;var dwo=robotreplay.Geometry;var doc=dwo.getCompatElement();var client=robotreplay.browser;var maj=robotreplay.Browser.version.maj;var db=document.body;var dd=document.documentElement;var msize=dwo.getScrollbarSize();if(client=="webkit"||client=="opera"||client=="presto"){browserWidth=window.innerWidth;browserHeight=window.innerHeight;bodyWidth=Math.max(doc.scrollWidth,browserWidth);bodyHeight=Math.max(doc.scrollHeight,browserHeight);overflowX=(bodyWidth>browserWidth);overflowY=(bodyHeight>browserHeight);if(overflowX==true){browserHeight-=msize.scrollbarHeight}if(overflowY==true){browserWidth-=msize.scrollbarWidth}}else{browserWidth=doc.clientWidth;browserHeight=doc.clientHeight;bodyWidth=Math.max(doc.scrollWidth,browserWidth);bodyHeight=Math.max(doc.scrollHeight,browserHeight);overflowX=(bodyWidth>browserWidth);overflowY=(bodyHeight>browserHeight)}return{windowWidth:browserWidth,windowHeight:browserHeight,bodyWidth:bodyWidth,bodyHeight:bodyHeight,overflowX:overflowX,overflowY:overflowY}},getCompatElement:function(){return(!document.compatMode||document.compatMode=='CSS1Compat')?document.getElementsByTagName('html')[0]:document.body},getScrollbarSize:function(){var rw=robotreplay.Geometry;if(rw.scrollbarWidth==0){var scr=document.createElement('div');scr.style.position='absolute';scr.style.left='-1000px';scr.style.top='-1000px';scr.style.width='100px';scr.style.height='100px';scr.style.padding='0px';scr.style.margin='0px';scr.style.overflow='scroll';scr.style.border='0px';var inn=document.createElement('div');inn.style.position='relative';inn.style.border='0px';inn.style.height='200px';inn.style.padding='0px';inn.style.margin='0px';scr.appendChild(inn);try{document.body.appendChild(scr);rw.scrollbarWidth=100-inn.offsetWidth;rw.scrollbarHeight=rw.scrollbarWidth;document.body.removeChild(scr)}catch(e){setTimeout(robotreplay.Geometry.getScrollbarSize,500)}}return{scrollbarWidth:rw.scrollbarWidth,scrollbarHeight:rw.scrollbarHeight}},init:function(){if(document.body)robotreplay.Geometry.getScrollbarSize();else setTimeout(robotreplay.Geometry.init,500)}};robotreplay.Domready.attach("robotreplay.Geometry.init();");robotreplay.Event={attach:function(obj,eventName,fnReference,direction){if(!direction)direction=false;if(window.addEventListener){obj.addEventListener(eventName,fnReference,direction)}else if(window.attachEvent){obj.attachEvent('on'+eventName,fnReference)}},remove:function(obj,eventName,fnReference,direction){if(!direction)direction=false;if(window.addEventListener){obj.removeEventListener(eventName,fnReference,direction)}else if(window.attachEvent){obj.detachEvent('on'+eventName,fnReference)}},attachWindowEvent:function(eventName,fnReference){if(robotreplay.browser=="ie"){if((eventName=="scroll")||(eventName=="resize")||(eventName=="load"))this.attach(window,eventName,fnReference);else this.attach(document,eventName,fnReference)}else this.attach(window,eventName,fnReference)},removeWindowEvent:function(eventName,fnReference){if(robotreplay.browser=="ie"){if((eventName=="scroll")||(eventName=="resize"))this.remove(window,eventName,fnReference);else this.remove(document,eventName,fnReference)}else this.remove(window,eventName,fnReference)},preventDefault:function(evt,v){if(evt==null){return}if(robotreplay.browser=="ie"){evt.returnValue=false}else{evt.preventDefault()}if(v!=null){e.keyCode=v}}};robotreplay.EventArgs=function(source,event){this.source=source;this.event=event};robotreplay.EventArgs.prototype.getSource=function(){return this.source};robotreplay.EventArgs.prototype.getEvent=function(){return this.event};robotreplay.JSON={};(function(){function f(n){return n<10?'0'+n:n}if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z'};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];if(typeof c==='string'){return c}return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key)}if(typeof rep==='function'){value=rep.call(holder,key,value)}switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null'}gap+=indent;partial=[];if(typeof value.length==='number'&&!value.propertyIsEnumerable('length')){length=value.length;for(i=0;i>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)};robotreplay.MD5.bit_rol=function(num,cnt){return(num<>>(32-cnt))};robotreplay.MD5.str2binl=function(str){var bin=new Array();var mask=(1<>5]|=(str.charCodeAt(i/this.chrsz)&mask)<<(i%32);return bin};robotreplay.MD5.binl2hex=function(binarray){var hex_tab=this.hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i>2]>>((i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF)}return str};robotreplay.Serializer={onInit:new robotreplay.Subject(),init:function(){var r=robotreplay;if(window.rr_serialize!=false){var dom=this.normalizeDom();var hash=r.MD5.hash(this.normalizeDomForHash(dom));var url=window.location.href;this.onInit.notify(hash);var S=r.Storage;var doms=S.read(S.DOMKEY,{});var urlList=S.read(S.URLLISTKEY,{});if(!doms[hash]){if(!r.User.known_doms[hash]){doms[hash]=dom;urlList[hash]={url:url,url_md5:r.MD5.hash(url,1)}}S.write(S.DOMKEY,doms,true,true);S.write(S.URLLISTKEY,urlList,true,true);S.commit()}r.onFlashReady.subscribeOnce(this.sendHashList,this)}},normalizeDom:function(){var r=robotreplay;var dom=r.Html.getOuterHtml(document.getElementsByTagName("html")[0]);dom=dom.replace(//gi,"");dom=r.Dom.getDocType()+'\n'+dom;return dom},normalizeDomForHash:function(dom){dom=dom.replace(//gim,"");return dom},sendHashList:function(){var r=robotreplay;var S=r.Storage;if(r.Log.doTransmit||S.isDomsFull()){var urlList=S.read(S.URLLISTKEY,{});if(!r.String.isEmpty(urlList)){var transport=new r.FlashTransport();transport.onResponse.subscribe(this.cleanStorage,this);transport.send({urls:urlList,session_id:robotreplay.Session.getSessionId(),version:robotreplay.version,client_timestamp:(new Date()).getTime()},"Rec.hasDoms")}}},cleanStorage:function(e){var hashList=e.message.response;for(var i=0;i0){var r=robotreplay;var transport=new r.FlashTransport();var data={html:dom,hash:hash,client_timestamp:(new Date()).getTime(),url:url.url,url_md5:url.url_md5,version:r.version,session_id:r.Session.getSessionId()};transport.onResponse.subscribeOnce(this.handleSerializeDomResponse,this);transport.send(data,"Rec.dom")}else{this.removeDomFromStorage(hash)}},handleSerializeDomResponse:function(e){if(e.message.status==0){}this.removeDomFromStorage(e.message.response)},removeDomFromStorage:function(hash){var S=robotreplay.Storage;var urlList=S.read(S.URLLISTKEY,{});var doms=S.read(S.DOMKEY,{});delete doms[hash];delete urlList[hash];S.write(S.DOMKEY,doms,true,true);S.write(S.URLLISTKEY,urlList,true,true);S.commit()}};robotreplay.Storage={cache:null,ISRESP:"rr_is_respondent",SESSIONRETRIESKEY:"sessionretries",SESSIONGROUPID:"rr_group_id",MOUSEPOS:"mousepos",DOMKEY:"domstream",EVENTSKEY:"eventstream",URLLISTKEY:"urllist",SESSIONID:"rr_session_id",DELIMITER:"__RRSTORAGE__",DOMAINKEY:"domain",STARTTIME:"timestamp",VERSIONKEY:"version",NEWSESSIONKEY:"isnewsession",QUEUED:"queued",eventStorageLimit:(robotreplay.browser=="mozilla"?250000:500000),domStorageLimit:(robotreplay.browser=="mozilla"?750000:1500000),write:function(key,value,clear,batchMode){var cache=this.getCache();if(cache[key]&&clear!==true){cache[key]+=value}else{cache[key]=value}if(batchMode!==true){this.commit()}return cache[key]},append:function(key,value,batchMode){return this.write(key,value,false,batchMode)},read:function(key,defaultValue){defaultValue=(typeof defaultValue!="undefined"?defaultValue:"");var cache=this.getCache();var value=cache[key];if(typeof value==="undefined"){value=defaultValue}return value},clear:function(key,batchMode){var cache=this.getCache();if(cache[key]){delete cache[key];if(batchMode!==true){this.commit()}}},clearAll:function(){var delimiter=robotreplay.Storage.DELIMITER;var storage=window.name;var i=storage.indexOf(delimiter);window.name=(i>=0?storage.substring(0,storage.indexOf(delimiter)):storage);this.cache={}},isDomsFull:function(){var S=robotreplay.Storage;return this._isFull(new RegExp("\""+this.DOMKEY+"\""+":{\"(.*?)\"}(?=[,}])"),this.domStorageLimit)},isEventsFull:function(){var S=robotreplay.Storage;return this._isFull(new RegExp("\""+this.EVENTSKEY+"\""+":\"(.*?)\"(?=[,}])"),this.eventStorageLimit)},_isFull:function(pattern,limit){var value=window.name.match(pattern);if(value&&value[1]&&value[1].length>limit){return true}return false},commit:function(){var delimiter=this.DELIMITER;var jsonString=delimiter+robotreplay.JSON.stringify(this.cache);var i=window.name.indexOf(delimiter);if(i>=0){window.name=window.name.substring(0,i)+jsonString}else{window.name+=jsonString}},getCache:function(){var delimiter=this.DELIMITER;if(!this.cache){try{var storage=window.name.substr(window.name.indexOf(delimiter)+delimiter.length);var b=robotreplay.Browser;if(b.browser.basetype=="mozilla"&&b.version.min<5&&b.version.maj<=3){this.cache=robotreplay.JSON.parse(storage)}else{this.cache=eval('('+storage+')')}}catch(e){this.cache={}}}return this.cache}};robotreplay.Onunload.attach("window.__flash__removeCallback = function(instance,name) { try {instance[name] = null;} catch(e) {}};");robotreplay.Log={flashRequestId:1,scriptRequestId:-1,maxRetries:10,enabled:true,data:"",onLog:null,startTime:null,lastTime:null,syncBucket:null,syncInterval:10000,onInviteAccepted:new robotreplay.Subject(),entryDetails:function(entryString){if(entryString){var adetails=entryString.split('*');if(adetails.length>1){if(adetails[1].indexOf('_')>0)adetails[1]=adetails[1].substr(0,adetails[1].indexOf('_'));adetails[1]=parseInt(adetails[1].replace('(','').replace(')','').replace('_',''))}}return adetails},lastElement:"",isFirstEvent:true,isFirstMouseMove:true,idleTimeoutId:null,idleTimeout:1800000,push:function(eventType,eventData,skipEncode,forceTimeIndex,timeBefore){var rl=robotreplay.Log;if(rl.isFirstEvent==true){setTimeout(function(){robotreplay.Capture.init();robotreplay.Capture.indexElements()},1);robotreplay.Log.isFirstEvent=false}if(eventType=="rtim"){if(this.idleTimeoutId==null&&!this.paused){this.idleTimeoutId=setTimeout(robotreplay.close(rl,rl.pauseRecord),this.idleTimeout)}else if(this.paused){return}}else{clearTimeout(this.idleTimeoutId);this.idleTimeoutId=null;this.resumeRecord()}skipEncode=false;if(!eventData||eventData=="undefined"){eventData=""}var debughelper="";if(rl.enabled==true){var skipPush=false;if(!skipEncode)skipEncode=false;var oLst="";if(eventData&&eventData.el){oLst=eventData.el;if((eventData.el==this.lastElement)&&(eventData.el.length>"rr@lst".length)){eventData.el="rr@lst"}this.lastElement=eventData.el;if(oLst.indexOf('nitobi_debug')>-1)skipPush=true}if(skipPush==false){if((timeBefore>=0)&&(this.data.indexOf('~')>-1)){var curTime=new Date();var curDiff=curTime-this.lastTime;var totalDiff=curTime-this.startTime;var timeline=this.data.split('~');var timeCount=curDiff;var indexArr=timeline.length-1;while(timeCount=0)isSetTimeInterval=true;var eventString='';var skipenc=((skipEncode)||(skipEncode==true));if(eventData.constructor==Array){for(var ic=0,b=eventData.length;ic0)eventString+="'";if(skipenc==false)eventString+=this.encodeRRCharacters(eventData[ic]);else eventString+=eventData[ic]}}else if(eventData.constructor==Object||eventData.constructor.toString().match(/object/i)!==null){var ic=0;for(var i in eventData){ic++;if(typeof eventData[i]!='function'){if(ic>1)eventString+="'";if(skipenc==false)eventString+=this.encodeRRCharacters(i)+"_"+this.encodeRRCharacters(eventData[i]);else eventString+=i+"_"+eventData[i]}}}else if(eventData.constructor==String){if(skipenc==false)eventString+=this.encodeRRCharacters(eventData);else eventString+=eventData}else if(eventData.constructor==Number){eventString+=eventData}var curTime=new Date();var curDiff=curTime-this.lastTime;if(isSetTimeInterval==true)curDiff=setTimeInterval;var totalDiff=curTime-this.startTime;if(rl.isFirstMouseMove==true){if(eventType=="m")rl.isFirstMouseMove=false;this.lastTime=curTime;this.startTime=curTime;totalDiff-=curDiff-50;if(curDiff<10000)curDiff=100}if(isSetTimeInterval==false)this.lastTime=curTime;if(isSetTimeInterval==false)this.syncBucket+=curDiff;var timeString="("+curDiff+")";if((this.syncBucket>this.syncInterval)||(forceTimeIndex&&(forceTimeIndex==true))){if(!setTimeInterval){this.syncBucket=0;timeString="("+curDiff+")"}}var finalString=eventType+"*"+timeString+"*"+eventString+"~"}catch(e){var cont="";if(eventData)cont=eventData.constructor}return finalString},encodeRRCharacters:function(value_to_encode){var rr_pref='(rr';var rr_suf=')';var string_to_encode=String(value_to_encode);string_to_encode=string_to_encode.replace(/~/g,rr_pref+'t'+rr_suf);string_to_encode=string_to_encode.replace(/\*/g,rr_pref+'s'+rr_suf);string_to_encode=string_to_encode.replace(/'/g,rr_pref+'a'+rr_suf);string_to_encode=string_to_encode.replace(/&/g,rr_pref+'am'+rr_suf);string_to_encode=string_to_encode.replace(/_/g,rr_pref+'u'+rr_suf);return string_to_encode},specialRREncoding:function(value_to_encode){var rr_pref=':';var rr_suf=':';var string_to_encode=String(value_to_encode);string_to_encode=string_to_encode.replace(/:/g,rr_pref+'fc'+rr_suf);string_to_encode=string_to_encode.replace(/;/g,rr_pref+'sc'+rr_suf);string_to_encode=string_to_encode.replace(/\[/g,rr_pref+'sbo'+rr_suf);string_to_encode=string_to_encode.replace(/\]/g,rr_pref+'sbc'+rr_suf);string_to_encode=string_to_encode.replace(/,/g,rr_pref+'cc'+rr_suf);return string_to_encode},cleanEventLog:function(eventType,startIndex,endIndex){var eventArray=this.data.split('~');if((!startIndex)||(startIndex<0))startIndex=-1;if((!endIndex)||(endIndex==0))endIndex=eventArray.length;this.data='';var timeBank=0;for(var i=0,eAL=eventArray.length;i0){var eT=eventArray[i].split('*')[0];if(((eT==eventType)||(eventType=="*"))&&((i>=startIndex)&&(i<=endIndex))){var eventDetails=this.entryDetails(eventArray[i]);timeBank+=eventDetails[1]}else{if(timeBank>0){var eventDetails=this.entryDetails(eventArray[i]);eventDetails[1]+=timeBank;eventDetails[1]="("+eventDetails[1]+")";var eventString=eventDetails.join('*');this.data+=eventString+'~';timeBank=0}else{this.data+=eventArray[i]+'~'}}}}},init:function(){var r=robotreplay;var rs=r.Storage;var rl=r.Log;this.startTime=new Date();if(window.rr_begintime)this.startTime=window.rr_begintime;this.lastTime=this.startTime;this.syncBucket=0;this.setHeartbeat(15000);rl.push("ph",true);rl.checkOKTransmit();rl.push("tk",(new Date()).getTime())},checkOKTransmit:function(){var r=robotreplay;var S=r.Storage;var rl=r.Log;if(!rl.doTransmit&&r.String.inverseArraySearch(r.domain_blacklist,window.location.href)==false){var isresp=S.read(S.ISRESP,false);if(isresp==false){var id=r.Cookies.getCookie(S.ISRESP);if(id&&id!=null&&id.length>0){isresp=true;S.write(S.ISRESP,true,true)}}if(isresp){rl.doTransmit=true}}},setOKTransmit:function(){var r=robotreplay;var rc=r.Cookies;if(rc.cookiesOn()){var rl=r.Log;var S=r.Storage;rl.doTransmit=true;rc.setCookie(S.ISRESP,"true",120000);S.write(S.ISRESP,true,true);this.onInviteAccepted.notify()}},doTransmit:false,blockStorageMethod:'',heartbeatMonitor:null,lastTransmission:(new Date())-5000,minTransmissionDelay:10000,flashLoaded:false,handleTransmissionAndStorage:function(justForceSend){var r=robotreplay;var L=r.Log;var S=r.Storage;if(!r.Replay){if(new Date()-L.lastTransmission>L.minTransmissionDelay||justForceSend){L.lastTransmission=new Date();L.checkOKTransmit();var datastream=S.read(S.EVENTSKEY,"")+L.data;if(justForceSend||!r.Log.doTransmit){datastream=S.write(S.EVENTSKEY,L.data)}L.data="";if(datastream.length>0&&(r.Log.doTransmit||S.isEventsFull())){this.sendEvents(datastream,justForceSend)}}}},sendEvents:function(datastream,force){var r=robotreplay;var S=r.Storage;var L=r.Log;var data={};data.data=datastream;data.client_timestamp=new Date().getTime();data.version=r.version||'0';data.url=window.location.href;data.url_md5=r.MD5.hash(data.url,1);data.session_id=r.Session.getSessionId();data.retries=0;var transport=r.TransportFactory.getTransport(force);if(transport!==null){data.request_id=L.scriptRequestId--;if(transport.type=='flash'){data.request_id=L.flashRequestId++;var queued=S.read(S.QUEUED,{});queued[transport.id]=data;S.write(S.QUEUED,queued,true,true);S.clear(S.EVENTSKEY,true);S.commit()}if(S.read(S.NEWSESSIONKEY,"0")=="1"){L.createSession()}transport.onResponse.subscribeOnce(L.handleResponse,L);transport.send(data,"Rec.event")}},sendQueued:function(){var r=robotreplay;var S=r.Storage;var queued=S.read(S.QUEUED,{});for(var id in queued){var transport=r.TransportFactory.getTransport(false,id);var data=queued[id];data.retries++;if(data.retries>this.maxRetries){delete queued[id];S.write(S.QUEUED,queued,true)}else{transport.onResponse.subscribeOnce(r.Log.handleResponse,r.Log);transport.send(data,"Rec.event")}}},createSession:function(){var r=robotreplay;var S=r.Storage;var transport=r.TransportFactory.getTransport();var data={};data.client_timezone=r.Session.getTimezone();data.version=r.version||'0';data.session_id=r.Session.getSessionId();data.group_session_id=r.Session.getGroupSessionId();data.user_id=r.User.id;data.user_domain=r.Session.getDomain();data.browser="";data.start_time=S.read(S.STARTTIME,'');data.metadata="";transport.onResponse.subscribeOnce(function(e){var r=robotreplay;var S=r.Storage;var retries=S.read(S.SESSIONRETRIESKEY,0);if(typeof e.message.status!="undefined"&&e.message.status==0){retries++;S.write(S.SESSIONRETRIESKEY,retries,true);if(retries>this.maxRetries){robotreplay.Log.cancelRecord()}}else{S.clear(S.NEWSESSIONKEY);r.is_new_session=false}});transport.send(data,"Rec.session")},timeStampArray:[],timeStampArray_obj:[],handleResponse:function(e){var transport=e.source;if(typeof e.message.status!="undefined"&&e.message.status==0){}else{var S=robotreplay.Storage;var queued=S.read(S.QUEUED,{});delete queued[transport.id];S.write(S.QUEUED,queued,true)}},setHeartbeat:function(time){clearInterval(this.heartbeatMonitor);this.heartbeatMonitor=setInterval(function(){robotreplay.Log.isFirstMouseMove=false;robotreplay.Log.push('rtim',(new Date()).getTime(),false)},time)},close:function(){robotreplay.Log.handleTransmissionAndStorage(true)},pauseRecord:function(){this.paused=true},resumeRecord:function(){this.paused=false},cancelRecord:function(){var r=robotreplay;var C=r.Cookies;var S=r.Storage;if(C.cookiesOn()){C.delCookie(S.ISRESP)}S.clear(S.ISRESP);r.Log.doTransmit=false}};robotreplay.siteSpecificCode={'defenselink.mil':function(){}};robotreplay.SiteSpecific={init:function(){try{var sc=robotreplay.siteSpecificCode;var ss=robotreplay.Session.getDomain();if(sc){var code=sc[ss];code.call(this)}}catch(e){}}};robotreplay.SiteSpecific.init();robotreplay.Capture={initialized:false,init:function(skipAttach){if(this.initialized==false)if(!document||!document.body){setTimeout(robotreplay.Capture.init,50)}else{var re=robotreplay.Event;var rl=robotreplay.Log;var rb=robotreplay.Browser;var rf=robotreplay.Referrer;var rs=robotreplay.Session;try{this.setPage();for(var tagName in this.formFieldTypes){this.tagList[tagName]=""}this.lastMouseTime=new Date();re.attachWindowEvent('mousemove',this.mouseMove);if(robotreplay.browser!="webkit"){re.attachWindowEvent('mouseout',this.pageFocus);re.attachWindowEvent('mouseover',this.pageFocus)}re.attachWindowEvent('resize',this.pageResize);re.attachWindowEvent('scroll',this.pageScroll);this.recordPageResize();rl.push('br',{br:rb.browser.name,bt:rb.browser.basetype,os:rb.OS,vr:rb.version.fullstring,vrj:rb.version.maj,vrn:rb.version.min});rl.push('rf',{rf:rf.referrer,kw:rf.keywords})}catch(e){}rl.push('sm',{st:rs.pageLoadTime,sd:rs.pageInitDateTime});rl.push('dt',{t:document.title});rl.push("tk",(new Date()).getTime());re.attachWindowEvent('mousedown',this.emergencySave);re.attach(document,'keydown',function(e){try{var k;if(window.event){e=window.event;k=e.keyCode}else if(e){k=e.which}if((k==115&&e.altKey)||(k==87&&e.ctrlKey)||(k==81&&e.metaKey)||(k==87&&e.metaKey)){robotreplay.Capture.emergencySave()}}catch(ex){}});this.indexElements(skipAttach);this.initialized=true}},uninstall:function(){var re=robotreplay.Event;var rc=robotreplay.Capture;re.removeWindowEvent('mousemove',rc.mouseMove);if(robotreplay.browser!="webkit"){re.removeWindowEvent('mouseout',rc.pageFocus);re.removeWindowEvent('mouseover',rc.pageFocus)}re.remove(document.body,"mouseover",rc.mouseOverEl,true);re.remove(document.body,"mouseout",rc.mouseOutEl,true)},saveForm:function(formObj){var rd=robotreplay.Dom;var ac=rd.getAbsoluteCoords(formObj);ac.name=formObj.name;ac.id=rd.getiFrameReference(formObj);for(var tagName in this.formFieldTypes){var objarray=formObj.getElementsByTagName(tagName);if(objarray.length>0){ac[tagName]=objarray.length;var acis="[";for(k=0,l=objarray.length;k0){acis+=";"}objarray[k].setAttribute("autocomplete","off");var md=rd.getAbsoluteCoords(objarray[k]);var mds=objarray[k].name.replace(/,/g,"")+","+objarray[k].id.replace(/,/g,"")+","+md.x+","+md.y+","+md.width+","+md.height;acis+=mds}acis+="]";ac[tagName+"_inf"]=acis}}robotreplay.Log.push('fd',ac)},elArray:[],tagList:{"span":"","iframe":"","div":"","img":"","form":"","button":"","ul":"","ol":"","li":"","dl":"","dd":"","dt":"","table":"","td":"","tr":"","reset":"","submit":"","a":"","embed":"","area":""},skipFromMouseOver:{"table":"","td":"","tr":"","form":"","iframe":"","checkbox":"","span":""},formFieldTypes:{"input":"","checkbox":"","fileupload":"","hidden":"","password":"","radio":"","select":"","text":"","textarea":""},specialEventTagList:{"div":"","textarea":"","input":"","checkbox":"","select":"","button":"","form":"","a":""},constantReCheckingList:[],performIndexing:function(frameContext,idprefix,skipAttach){var foundNewItems=false;var addSpecialEvents=false;var rs=robotreplay.String;var re=robotreplay.Event;var br=robotreplay.browser;var Br=robotreplay.Browser.version;var radios=[];for(var tagName in this.tagList){if(!this.elArray[tagName]){this.elArray[tagName]=0}var elCount=this.elArray[tagName];var eList=frameContext.getElementsByTagName(tagName);for(k=0,l=eList.length;k0){robotreplay.Log.push("rs",radios.join(","))}return foundNewItems},isTextField:function(fieldObj){var tagName=fieldObj.tagName.toLowerCase();var fieldType=fieldObj.type;if((tagName=="textarea")||(tagName=="text")||((tagName=="input")&&((fieldType=="text")||(fieldType=="password")))){return true}else{return false}},frameHistory:[],indexElements:function(skipAttach){var re=robotreplay.Event;var foundNewItems=false;var frameArray=[];var windowArray=[];frameArray[frameArray.length]=document;windowArray[windowArray.length]=window;var currentFrameIndex=0;var idPrefix='';while(windowArray[currentFrameIndex]!=null){var currentFrame=frameArray[currentFrameIndex];var pastIndexed=false;for(var i=0,j=this.frameHistory.length;i0){if(!skipAttach){if(robotreplay.browser=="ie"){re.attach(windowArray[currentFrameIndex].document.body,"mousemove",this.mouseMove)}else{re.attach(windowArray[currentFrameIndex],"mousemove",this.mouseMove)}}}}if(currentFrame){var iList=currentFrame.getElementsByTagName("iframe");if(iList.length>0){for(var i=0,j=iList.length;i0){this.periodicEventCheck()}}},periodicEventHandle:null,periodicCheckInterval:500,periodicEventCheck:function(){var tl=this.constantReCheckingList;var rb=robotreplay.browser;var maj=robotreplay.Browser.version.maj;clearTimeout(this.periodicEventHandle);for(var i=0,k=tl.length;i1)||((rc.lastTextFieldCaret.end-rc.lastTextFieldCaret.start)==1))||(kk==13)){robotreplay.Log.push("sf",rc.serializeFormField(targetElement));skipRecord=true}rc.textFieldWatcher(targetElement);if((skipRecord==false)&&((targetElement.value.length-oldVer.value.length)==1)){var val=targetElement.value.substr(rc.lastTextFieldCaret.caret-1,1);robotreplay.Log.push("k",{el:myElId,c:val,st:targetElement.scrollTop,sl:targetElement.scrollLeft})}else{if((kk==8)||(kk==46)||(kk==13)){var cp=rd.getCaretInfo(targetElement);if(event.type=="keydown"){robotreplay.Log.push("sk",{el:myElId,c:kk,s:cp.start,end:cp.end})}else{robotreplay.Log.push("c",{el:myElId,s:cp.start,e:cp.end,c:cp.caret,st:targetElement.scrollTop,sl:targetElement.scrollLeft},true)}}}rc.serializeFormField(targetElement,false)},mouseDownUp:function(event){var targetElement=(event.target||event.toElement||event.srcElement);if(targetElement){var tag="";try{tag=targetElement.tagName.toLowerCase()}catch(e){}var rc=robotreplay.Capture;var x=rc.lastMouseCoords.clientX;var y=rc.lastMouseCoords.clientY;if(rc.tagList[tag]!=null){var myElId=robotreplay.Dom.getiFrameReference(targetElement);if(event.type=="mousedown"){robotreplay.Log.push("md",{el:myElId,x:x,y:y},false,false)}else if(event.type=="mouseup"){robotreplay.Log.push("mu",{el:myElId,x:x,y:y},false,false)}else if(event.type=="click"){if(robotreplay.browser=="mozilla"){if(targetElement.type!="submit"||event.clientX!=0||event.clientY!=0){robotreplay.Log.push("ck",{el:myElId,x:x,y:y},false,false)}}else{robotreplay.Log.push("ck",{el:myElId,x:x,y:y},false,false)}}else if(event.type=="dblclick"){robotreplay.Log.push("dk",{el:myElId,x:x,y:y},false,false)}else if(event.type=="contextmenu"){robotreplay.Log.push("cm",{el:myElId,x:x,y:y},false,false)}}else{if(event.type=="mousedown"){robotreplay.Log.push("md",{x:x,y:y},false,false)}else if(event.type=="mouseup"){robotreplay.Log.push("mu",{x:x,y:y},false,false)}else if(event.type=="click"){robotreplay.Log.push("ck",{x:x,y:y},false,false)}else if(event.type=="dblclick"){robotreplay.Log.push("dk",{x:x,y:y},false,false)}else if(event.type=="contextmenu"){robotreplay.Log.push("cm",{x:x,y:y},false,false)}}}},formEvent:function(event){var targetElement=(event.target||event.toElement||event.srcElement);if(targetElement){var rd=robotreplay.Dom;robotreplay.Capture.serializeCompareForm(targetElement);var myElId=rd.getiFrameReference(targetElement);if(event.type=="reset"){robotreplay.Log.push("fr",{el:myElId})}else if(event.type=="submit"){robotreplay.Log.push("fb",{el:myElId})}}},focusBlurEl:function(event){var targetElement=(event.target||event.toElement||event.srcElement);if(targetElement){var tag="";try{tag=targetElement.tagName.toLowerCase()}catch(e){}var rc=robotreplay.Capture;var rs=robotreplay.String;var rd=robotreplay.Dom;if(rc.tagList[tag]!=null){var myElId=rd.getiFrameReference(targetElement);if(event.type=="focus"){if(rc.formFieldTypes[tag]!=null){if(rd.objectsSame(rc.serialFormRecords[myElId],rc.serializeFormField(targetElement,true))==false){robotreplay.Log.push("sf",rc.serializeFormField(targetElement))}}if(targetElement.form){robotreplay.Capture.serializeCompareForm(targetElement)}robotreplay.Log.push("fs",{el:myElId},true,false);if(rc.isTextField(targetElement)){rc.textFieldWatcher(targetElement)}}else if(event.type=="blur"){clearTimeout(rc.textFieldTimer);if(rc.formFieldTypes[tag]!=null){if(rd.objectsSame(rc.serialFormRecords[myElId],rc.serializeFormField(targetElement,true))==false){robotreplay.Log.push("sf",rc.serializeFormField(targetElement))}}robotreplay.Log.push("bl",{el:myElId},true,false)}else if(event.type=="click"){if(targetElement.type&&(targetElement.type=="checkbox"||targetElement.type=="radio")){robotreplay.Log.push("sf",rc.serializeFormField(targetElement))}}}}},scrollInterval:200,lastScrollTime:new Date(),lastScrollElement:null,scrollCatchTimer:null,scrollEl:function(event){var targetElement=(event.target||event.toElement||event.srcElement);if(targetElement){var rc=robotreplay.Capture;var ctime=(new Date());var tdiff=ctime-rc.lastScrollTime;if(rc.lastScrollElement!=targetElement){tdiff=rc.scrollInterval*2}else{clearTimeout(rc.scrollCatchTimer)}if(tdiff>=rc.scrollInterval){rc.lastScrollTime=ctime;rc.lastScrollElement=targetElement;var tag="";try{tag=targetElement.tagName.toLowerCase()}catch(e){}if(rc.tagList[tag]!=null){var myElId=robotreplay.Dom.getiFrameReference(targetElement);robotreplay.Log.push("se",{el:myElId,t:targetElement.scrollTop,l:targetElement.scrollLeft},true,false)}}else{rc.scrollCatchTimer=setTimeout(function(){robotreplay.Capture.scrollEl({target:targetElement})},Math.round(rc.scrollInterval*1.2))}}},mouseOverEl:function(event,overrideEl){try{var rs=robotreplay.String;var targetElement=overrideEl||event.target||event.srcElement;if(targetElement){var tag="";try{tag=targetElement.tagName.toLowerCase()}catch(e){}var rc=robotreplay.Capture;if(rc.tagList[tag]!=null&&rc.skipFromMouseOver[tag]==null){var myElId=robotreplay.Dom.getiFrameReference(targetElement);var rt=null;if(robotreplay.browser=="ie"){}else{rt=robotreplay.Dom.getiFrameReference(event.relatedTarget)}if(!myElId||myElId==""){rc.indexElements(false)}else{robotreplay.Log.push("mo",{el:myElId,rT:rt},true,false)}}}}catch(e){}},mouseOutEl:function(event,overrideEl){try{var rs=robotreplay.String;var targetElement=overrideEl||event.target||event.srcElement;if(targetElement){var tag="";try{tag=targetElement.tagName.toLowerCase()}catch(e){}var rc=robotreplay.Capture;if(rc.tagList[tag]!=null&&rc.skipFromMouseOver[tag]==null){var myElId=robotreplay.Dom.getiFrameReference(targetElement);var rt=null;if(robotreplay.browser=="ie"){}else{rt=robotreplay.Dom.getiFrameReference(event.relatedTarget)}robotreplay.Log.push("mt",{el:myElId,rT:rt},true,false)}}}catch(e){}},lastScrollCoords:{scrollLeft:0,scrollTop:0},pageScroll:function(event){var rl=robotreplay.Log;var rc=robotreplay.Capture;var ctime=(new Date());var tdiff=ctime-rc.lastScrollTime;rc.recordPageScroll();rc.lastScrollTime=ctime},recordPageScroll:function(){wg=robotreplay.Geometry.getScrollPosition();var rl=robotreplay.Log;var rc=robotreplay.Capture;var rm=rc.lastRawMouseCoords;if(!wg.scrollLeft||wg.scrollLeft.length<1){wg.scrollLeft=0}if(!wg.scrollTop||wg.scrollTop.length<1){wg.scrollTop=0}rl.push("ps",[wg.scrollLeft,wg.scrollTop],true,false);if(rc.mouseOverPage==true){if(rm.clientX==0||rm.clientY==0){var S=robotreplay.Storage;var mp=S.read(S.MOUSEPOS,rm.clientX+","+rm.clientY).split(",");if(rm.clientX==0)rm.clientX=parseInt(mp[0]);if(rm.clientY==0)rm.clientY=parseInt(mp[1])}rl.push('m',[rm.clientX+wg.scrollLeft,rm.clientY+wg.scrollTop],true)}},pageResizeThrottle:null,pageResize:function(event){var rl=robotreplay.Log;var rc=robotreplay.Capture;clearTimeout(rc.pageResizeThrottle);rc.pageResizeThrottle=setTimeout(robotreplay.Capture.recordPageResize,500)},recordPageResize:function(){wg=robotreplay.Geometry.getWindowSize();if(wg==false){setTimeout(robotreplay.Capture.recordPageResize,500)}else{robotreplay.Log.push("pr",[wg.windowWidth,wg.windowHeight],true,false,500)}},mouseInterval:150,lastMouseTime:new Date(),lastMouseCoords:{clientX:0,clientY:0},lastRawMouseCoords:{clientX:0,clientY:0},mouseOverPage:true,mouseOverPageThrottle:null,mouseOverInitialized:false,catchLastPositionCatch:null,mouseMove:function(event){var rl=robotreplay.Log;var rc=robotreplay.Capture;var ctime=(new Date());var tdiff=ctime-rc.lastMouseTime;if(rc.mouseOverPage==false){rc.setPageFocusStatus(true)}var sg=robotreplay.Geometry.getScrollPosition();var mouse={};mouse.clientX=event.clientX+sg.scrollLeft;mouse.clientY=event.clientY+sg.scrollTop;rc.lastRawMouseCoords.clientX=event.clientX;rc.lastRawMouseCoords.clientY=event.clientY;var myC={x:0,y:0};var myEl=(event.srcElement||event.currentTarget);myC=robotreplay.Dom.getiFrameCoords(myEl);if((myC.x>0)||(myC.y>0)){myC.x+=event.clientX;myC.y+=event.clientY;mouse.clientX=myC.x;mouse.clientY=myC.y;rc.lastRawMouseCoords.clientX=myC.x-sg.scrollLeft;rc.lastRawMouseCoords.clientY=myC.y-sg.scrollTop}if((mouse.clientY<0)||(mouse.clientX<0)){rc.setPageFocusStatus(false)}if(robotreplay.browser=="webkit"){var mdist=robotreplay.Math.distance([mouse.clientX,mouse.clientY],[rc.lastMouseCoords.clientX,rc.lastMouseCoords.clientY]);if((mdist>(200/(tdiff/500)))&&(tdiff>3000)){var pageLeave=rl.push("pf",[0],true,false,tdiff-10);var pageReEnter=rl.push("pf",[1],true,false);rc.lastMouseTime=ctime;rl.cleanEventLog("m",pageLeave,pageReEnter)}}clearTimeout(rc.catchLastPositionCatch);if(rc.mouseOverPage==true){if((tdiff>=rc.mouseInterval)&&(!((mouse.clientX==0)&&(mouse.clientY==0)))){rl.push("m",[mouse.clientX,mouse.clientY],true);rc.lastMouseTime=ctime}else{rc.catchLastPositionCatch=setTimeout(function(){if(robotreplay.Capture.mouseOverPage==true){robotreplay.Log.push('m',[mouse.clientX,mouse.clientY],true);if(robotreplay.Browser.browser.basetype=="webkit"){robotreplay.Capture.emergencySave()}}},rc.mouseInterval*3)}};rc.lastMouseCoords.clientX=mouse.clientX;rc.lastMouseCoords.clientY=mouse.clientY},lastPageFocusCall:false,lastBlurEvent:new Date(),setPageFocusStatus:function(isOn,actuallyRecord){var rc=robotreplay.Capture;var rl=robotreplay.Log;if(rc.lastPageFocusCall!=isOn){clearTimeout(rc.mouseOverPageThrottle)}rc.mouseOverInitialized=true;if(actuallyRecord&&actuallyRecord==true){if(this.mouseOverPage!=isOn){this.mouseOverPage=isOn;if(isOn==true){rl.push("pf",["1"],true)}rl.push("m",[rc.lastMouseCoords.clientX,rc.lastMouseCoords.clientY],true);if(isOn==false){rl.push("pf",["0"],true)}rc.lastMouseTime=(new Date())}}else{rc.mouseOverPageThrottle=setTimeout(function(){rc.setPageFocusStatus(isOn,true)},50);rc.lastPageFocusCall=isOn}if(isOn==false&&((new Date())-rc.lastBlurEvent)>500){rc.lastBlurEvent=new Date();this.emergencySave()}},pageFocus:function(event){var rc=robotreplay.Capture;var eventStatus=null;var forceInstant=false;if(robotreplay.browser=="mozilla"){if(!event.relatedTarget&&event.type!="mouseover")eventStatus="OFF";else eventStatus="ON"}else if(robotreplay.browser=="ie"){forceInstant=true;if(!event.toElement)eventStatus="OFF";else eventStatus="ON"}else if(robotreplay.browser=="opera"){forceInstant=true;if(event.toElement==document.body)eventStatus="OFF";else eventStatus="ON"}if((rc.mouseOverPage==false)&&(eventStatus=="ON")){rc.setPageFocusStatus(true,forceInstant)}if((rc.mouseOverPage==true)&&(eventStatus=="OFF")){rc.setPageFocusStatus(false,forceInstant)}},textFieldTimer:null,lastTextFieldObj:null,lastTextFieldCaret:{start:0,end:0,caret:0},textFieldWatcher:function(fieldObj){clearTimeout(this.textFieldTimer);var rc=robotreplay.Capture;var rd=robotreplay.Dom;if(!fieldObj.tagName)var fieldObj=(fieldObj.target||fieldObj.toElement||fieldObj.srcElement);var rd=robotreplay.Dom;var selo={start:0,end:0};var cp=rd.getCaretInfo(fieldObj);var rcl=rc.lastTextFieldCaret;if((rc.lastTextFieldObj!=fieldObj)||(rcl.start!=cp.start)||(rcl.end!=cp.end)||(rcl.caret!=cp.caret)){rc.lastTextFieldObj=fieldObj;rc.lastTextFieldCaret=cp;var myElId=rd.getiFrameReference(fieldObj);robotreplay.Log.push("c",{el:myElId,s:cp.start,e:cp.end,c:cp.caret,st:fieldObj.scrollTop,sl:fieldObj.scrollLeft},true)}this.textFieldTimer=setTimeout(function(){robotreplay.Capture.textFieldWatcher(fieldObj)},150);return true},serialFormRecords:[],serializeFormField:function(fO,skipCache){if(fO){var rle=robotreplay.Log.specialRREncoding;var rd=robotreplay.Dom;var sD={};sD.name=fO.name;try{sD.el=robotreplay.Dom.getiFrameReference(fO);sD.value=fO.value;if(!fO.value)sD.value='';sD.checked=fO.checked;sD.type=fO.type;if(fO.type=="radio")sD.value=rd.getCheckedValue(fO);if(fO.form)sD.form=rd.getiFrameReference(fO.form);if(skipCache&&(skipCache==true)){}else this.serialFormRecords[sD.el]=sD;if((fO.type=="select-one")||(fO.type=="select-multiple")){sD.selectedIndex=fO.selectedIndex;sD.options="[";for(var i=0,k=fO.options.length;i0)sD.options+=",";if(fO.options[i].value.length<1){fO.options[i].value=fO.options[i].text}sD.options+=rle(fO.options[i].value)+";"+rle(fO.options[i].text)}sD.options+="]"};if(fO.type=="select-multiple"){sD.value=robotreplay.Dom.getMulti(fO).toString()}}catch(e){}if(sD.name=="__VIEWSTATE")sD.value="";return sD}else return{}},serializeCompareForm:function(fO){var rs=robotreplay.String;var rc=robotreplay.Capture;var rd=robotreplay.Dom;fO=(fO.form||fO);for(var i=0;i-1){var dbl=window.name.toString().substr(al);dbl=dbl.substr(0,dbl.indexOf(":::"));dbl=dbl.replace("|rr_preld::","");dbl=dbl.replace(":::","");return dbl}else{return""}},killNameData:function(){var al=window.name.toString().indexOf("|rr_preld::");if(al>-1){var dbl=window.name.toString().substr(0,al)+window.name.toString().substr(window.name.toString().indexOf(":::")+3);window.name=dbl}},rewriteNameData:function(str){var newdb="|rr_preld::"+str+":::";robotreplay_startup.Capture.killNameData();window.name+=newdb},attachCriticals:function(){var re=robotreplay.Event;re.attachWindowEvent('mousemove',robotreplay_startup.Capture.mouseMove)},detachCriticals:function(){var re=robotreplay.Event;re.removeWindowEvent('mousemove',robotreplay_startup.Capture.mouseMove,true)},mouseInterval:75,lastMouseTime:new Date(),lastMouseCoords:{clientX:0,clientY:0},lastRawMouseCoords:{clientX:0,clientY:0},mouseMove:function(event){var rc=robotreplay_startup.Capture;var ctime=(new Date());var tdiff=ctime-rc.lastMouseTime;var sg=robotreplay.Geometry.getScrollPosition();var mouse={};mouse.clientX=event.clientX+sg.scrollLeft;mouse.clientY=event.clientY+sg.scrollTop;rc.lastRawMouseCoords.clientX=event.clientX;rc.lastRawMouseCoords.clientY=event.clientY;if((tdiff>=rc.mouseInterval)&&(!((mouse.clientX==0)&&(mouse.clientY==0)))){rc.pushM(mouse.clientX,mouse.clientY);rc.lastMouseTime=ctime};rc.lastMouseCoords.clientX=mouse.clientX;rc.lastMouseCoords.clientY=mouse.clientY},lastTime:new Date(),setP:function(){robotreplay_startup.Capture.dataStream+="sp*(0)*"+robotreplay.Log.encodeRRCharacters(window.location)+"~";robotreplay_startup.Capture.rewriteNameData(robotreplay_startup.Capture.dataStream)},pushM:function(x,y){var rl=robotreplay.Log;var rc=robotreplay_startup.Capture;var nTime=new Date();if(rl.isFirstMouseMove==true){rl.isFirstMouseMove=false;rl.lastTime=nTime;rl.startTime=nTime}rc.dataStream+="m*("+(nTime-rc.lastTime)+")*"+x+"'"+y+"~";rc.lastTime=nTime;robotreplay_startup.Capture.rewriteNameData(robotreplay_startup.Capture.dataStream)}};robotreplay_startup.Init={init:function(){var rs=robotreplay_startup;rs.Capture.init()},shutdown:function(){var rs=robotreplay_startup;rs.Capture.shutdown()}};robotreplay_startup.Init.init();