robotreplay={version:8.5,more_info:"http://www.robotreplay.com",copyright:"(c) Foresee Results Inc., 2006-2009",patent_notice:"Patents Pending.",corporate_url:"http://www.foreseeresults.com",replay_js_file:"foresee-replay.js",playback_server:"http://replayportal.foreseeresults.com/replay/",playback_css:"http://replayportal.foreseeresults.com/stylesheets/playback/robotreplay.playback.css",images:"/images/",js_build_date:"Mon Jun 15 15:44:12 -0400 2009",is_debug_build:false,swf_url:"http://foresee.swf.s3.amazonaws.com/transport.swf",secure_swf_url:"https://replay.foreseeresults.com/transport.swf",domain_blacklist:["staging.defenselink","preview.defenselink"],domains:{'ajc.com':'ajc.com','accessatlanta.com':'accessatlanta.com'},rTimHBTime:15000,hiddenFieldClassName:"fsrHidden",hiddenBlockOpenTag:"fsrHiddenBlockStart",hiddenBlockCloseTag:"fsrHiddenBlockEnd"};robotreplay.href=window.location.href;robotreplay.String={inverseArraySearch:function(searchArray,searchString){for(var i=0;i<searchArray.length;i++){if(searchString.indexOf(searchArray[i])!=-1)return true}return false},isEmpty:function(h){var e=true;for(var i in h){e=false;break}return e},decode:function(s){return s.replace(/\(rrt\)/g,'~').replace(/\(rrs\)/g,'*').replace(/\(rru\)/g,'_').replace(/\(rra\)/g,"'").replace(/\(rr_ln\)/,'\n').replace(/\(rram\)/g,'&')},encode:function(s){return s.replace(/\~/g,'(rrt)').replace(/\*/g,'(rrs)').replace(/\_/g,'(rru)').replace(/\'/g,'(rra)').replace(/\n/,'(rr_ln)').replace(/\&/g,'(rram)')},trim:function(str){if(str){return str.replace(/^\s+|\s+$/,'')}else{return""}}};robotreplay.Html={getOuterHtml:function(node){if(robotreplay.browser=="ie")return node.outerHTML;else{var html='';switch(node.nodeType){case Node.ELEMENT_NODE:html+='<';html+=node.nodeName.toLowerCase();if(!robotreplay.Html.specialElements[node.nodeName]){for(var a=0;a<node.attributes.length;a++){if(node.attributes[a].nodeName.toLowerCase()!="_moz-userdefined"){html+=' '+node.attributes[a].nodeName.toLowerCase()+'="'+node.attributes[a].nodeValue+'"'}}html+='>';if(!robotreplay.Html.emptyElements[node.nodeName]){html+=node.innerHTML;html+='<\/'+node.nodeName.toLowerCase()+'>'}}else switch(node.nodeName){case'TEXTAREA':for(var a=0;a<node.attributes.length;a++)if(node.attributes[a].nodeName.toLowerCase()!='value')html+=' '+node.attributes[a].nodeName.toUpperCase()+'="'+node.attributes[a].nodeValue+'"';else var content=node.attributes[a].nodeValue;html+='>';html+=content;html+='<\/'+node.nodeName+'>';break}break;case Node.TEXT_NODE:html+=node.nodeValue;break;case Node.COMMENT_NODE:html+='<!'+'--'+node.nodeValue+'--'+'>';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<events.length;i++){var e=events[i];if(!e.notified){e.subscribeOnce(f)}else{i--}}if(i==0){handler.call(context)}};robotreplay.Subject=function(type){this.type=type;this.handlers={};this.guid=0;this.setEnabled(true);this.notified=false};robotreplay.Subject.prototype.subscribe=function(method,context,guid){if(method==null)return;var func=method;if(typeof(method)=="string"){var s=method;s=s.replace(/\#\&lt\;\#/g,"<").replace(/\#\&gt\;\#/g,">").replace(/\#\&amp;lt\;\#/g,"<").replace(/\#\&amp;gt\;\#/g,">").replace(/\/\*EQ\*\//g,"=").replace(/\#\Q\#/g,"\"").replace(/\#\&amp\;\#/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=50;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&&currentBlockData.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+"&request_id="+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"&&name!="request_id"){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={SESSIONGROUPID:"rr_group_id",SESSIONID:"rr_session_id",ISRESP:"rr_is_respondent",RECCANCELLED:"reccancelled",namespace:'foresee.analytics',cookiesOn:function(){this.setCookie("rr_ctest","123",5000);if(this.getCookie("rr_ctest")=="123"){this.delCookie("rr_ctest");return true}else return false},setCookie:function(name,value,expires,path,domain){robotreplay.Cookies.delCookie(name);path=path||"/";domain=(domain=="localhost"?"":domain);if(!expires)expires=3600000;var expires_date=new Date((new Date()).getTime()+(expires));var cookieData=name+"="+value+((expires&&expires!=-1)?"; expires="+expires_date.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"");document.cookie=cookieData},setNSCookie:function(name,value,expires,path,domain,ns){var c=this.getJSONCookie(ns);c[name]=value;if(value==""||value==null){delete c[name]}this.setCookie(ns||this.namespace,escape(robotreplay.JSON.stringify(c)),expires,path,domain)},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)},getNSCookie:function(name,ns){var o=this.getJSONCookie(ns);if(typeof o[name]!="undefined"){return o[name]}else{return""}},getJSONCookie:function(name){var c=this.getCookie(name||this.namespace);if(c!=null&&c!=""){return robotreplay.JSON.parse(unescape(c))}else{return{}}},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=/"}};robotreplay.Swf={so:{},swfObjectID:"rr_swfContainer",swfSize:{w:5,h:5},addTransportSwf:function(){if(!robotreplay.rps){var rs=robotreplay.Swf;var scr=document.createElement('div');var scrs=scr.style;scrs.position="absolute";scrs.top="1px";scrs.left="1px";scrs.width=(rs.swfSize.w+1)+"px";scrs.height=(rs.swfSize.h+1)+"px";scrs.padding="0px";scrs.margin="0px";scrs.display="block";scrs.visibility="visible";scr.id=rs.swfObjectID;document.body.appendChild(scr);var so=new rs.so.SWFObject((window.location.protocol==="https:"?robotreplay.secure_swf_url:robotreplay.swf_url),rs.swfObjectID+"m",rs.swfSize.w,rs.swfSize.h,"9.0.0","");so.addParam("quality","high");so.addParam("wmode","transparent");so.addParam("allowScriptAccess","always");so.write(rs.swfObjectID);robotreplay.Swf.repositionMovie()}},getMovie:function(){return document.getElementById(robotreplay.Swf.swfObjectID+"m")},isAlive:function(){var isAlive=false;var fObj=this.getMovie();try{isAlive=new Boolean(fObj.isAlive())}catch(e){isAlive=false}return isAlive},repositionMovie:function(){try{var winpos=robotreplay.Geometry.getScrollPosition();var flObj=this.getMovie();flObj.style.left=(winpos.scrollLeft+1)+"px";flObj.style.top=(winpos.scrollTop+1)+"px"}catch(e){robotreplay.Session.flashAvailable=false}},isInstalled:function(){var v=robotreplay.Swf.so.SWFObjectUtil.getPlayerVersion();return(v.major!=0||v.minor!=0||v.rev!=0)}};if(typeof robotreplay.Swf.so.util=="undefined"){robotreplay.Swf.so.util=new Object()}if(typeof robotreplay.Swf.so.SWFObjectUtil=="undefined"){robotreplay.Swf.so.SWFObjectUtil=new Object()}robotreplay.Swf.so.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=robotreplay.Swf.so.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1)}if(id){this.setAttribute("id",id)}if(w){this.setAttribute("width",w)}if(h){this.setAttribute("height",h)}if(_5){this.setAttribute("version",new robotreplay.Swf.so.PlayerVersion(_5.toString().split(".")))}this.installedVer=robotreplay.Swf.so.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){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="<embed style=\"position:absolute;top:1px;left:1px;\" type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" "}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\""}_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />"}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />"}_19+="</object>"}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.major<fv.major){return false}if(this.major>fv.major){return true}if(this.minor<fv.minor){return false}if(this.minor>fv.minor){return true}if(this.rev<fv.rev){return false}return true};robotreplay.Swf.so.util={getRequestParameter:function(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1))}}}return""}};robotreplay.Swf.so.SWFObjectUtil.cleanupSWFs=function(){var _2d=document.getElementsByTagName("OBJECT");for(var i=_2d.length;i>0;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;i<ob.options.length;i++)if(ob.options[i].selected){selected.push(i)}return selected},getCheckedValue:function(radioObj){if(!radioObj)return"";var radioLength=radioObj.length;if(radioLength==undefined)if(radioObj.checked)return radioObj.value;else return"";for(var i=0;i<radioLength;i++){if(radioObj[i].checked){return radioObj[i].value}}return""},queryRequest:function(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return"";else return results[1]},isIFrame:function(){return(self!==this.getTop())},getTop:function(){try{if(top.ntbtestdoc!=null){return top.ntbtestdoc}}catch(e){}return top},watch:function(selector,watchsize,callback){var n=robotreplay.Dom.query.select(selector);for(var i=0;i<n.length;i++){var id=n[i].id;if(id){robotreplay.Dom.watchId(id,watchsize,callback)}}},watchId:function(id,watchsize,callback){var timeout=500;setTimeout(robotreplay.close(this,function(id,html,width,height){var n=document.getElementById(id);if(n!=null){var h=n.innerHTML;if(html!=null&&html!=h){robotreplay.Log.push('ce',{fn:'try{document.getElementById("'+id+'").innerHTML=unescape("'+escape(h.replace(/\r\n/g,''))+'");}catch(e){}'});robotreplay.Capture.indexElements(true);if(typeof(callback)=="function"){callback.call(this,n)}}html=h;if(watchsize&&watchsize==true){var w=n.offsetWidth;var h=n.offsetHeight;if((w&&h)&&(w!=width&&h!=height)){robotreplay.Log.push('ce',{fn:'try{var kjds = document.getElementById("'+id+'"); kjds.style.height=\''+h+'px\';kjds.style.width=\''+w+'px\';}catch(e){}'});robotreplay.Capture.indexElements(true)}}setTimeout(robotreplay.close(this,arguments.callee,[id,html,w,h]),timeout)}},[id,null]),timeout)},getDocType:function(){var dc='';var pre='<!DOCTYPE HTML PUBLIC "-//W3C//DTD ';var hs='HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';var hl='HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';var hx='HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd>';var xs='XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';var xt='XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';var x='XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';try{var cdt='';if(robotreplay.browser=='ie'){cdt=document.childNodes[0].nodeValue}else{cdt=document.doctype.systemId}cdt=cdt.toLowerCase();dc=pre+hl;if(cdt.indexOf('html4')>0&&cdt.indexOf('strict')>0){dc=pre+hs}else if(cdt.indexOf('html40')>0&&cdt.indexOf('loose')>0){dc=pre+hx}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}}catch(e){dc=""}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;i<l;i++){a[a.length]=b[i]}return a}function byTag(cs,tagName){if(cs.tagName||cs==document){cs=[cs]}if(!tagName){return cs}var r=[],ri=-1;tagName=tagName.toLowerCase();for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){r[++ri]=ci}}return r};function byId(cs,attr,id){if(cs.tagName||cs==document){cs=[cs]}if(!id){return cs}var r=[],ri=-1;for(var i=0,ci;ci=cs[i];i++){if(ci&&ci.id==id){r[++ri]=ci;return r}}return r};function byAttribute(cs,attr,value,op,custom){var r=[],ri=-1,st=custom=="{";var f=robotreplay.Dom.query.operators[op];for(var i=0,ci;ci=cs[i];i++){var a;if(st){a=robotreplay.Dom.query.getStyle(ci,attr)}else if(attr=="class"||attr=="className"){a=ci.className}else if(attr=="for"){a=ci.htmlFor}else if(attr=="href"){a=ci.getAttribute("href",2)}else{a=ci.getAttribute(attr)}if((f&&f(a,value))||(!f&&a)){r[++ri]=ci}}return r};function byPseudo(cs,name,value){return robotreplay.Dom.query.pseudos[name](cs,value)};var isIE=window.ActiveXObject?true:false;eval("var batch = 30803;");var key=30803;function nodupIEXml(cs){var d=++key;cs[0].setAttribute("_nodup",d);var r=[cs[0]];for(var i=1,len=cs.length;i<len;i++){var c=cs[i];if(!c.getAttribute("_nodup")!=d){c.setAttribute("_nodup",d);r[r.length]=c}}for(var i=0,len=cs.length;i<len;i++){cs[i].removeAttribute("_nodup")}return r}function nodup(cs){if(!cs){return[]}var len=cs.length,c,i,r=cs,cj,ri=-1;if(!len||typeof cs.nodeType!="undefined"||len==1){return cs}if(isIE&&typeof cs[0].selectSingleNode!="undefined"){return nodupIEXml(cs)}var d=++key;cs[0]._nodup=d;for(i=1;c=cs[i];i++){if(c._nodup!=d){c._nodup=d}else{r=[];for(var j=0;j<i;j++){r[++ri]=cs[j]}for(j=i+1;cj=cs[j];j++){if(cj._nodup!=d){cj._nodup=d;r[++ri]=cj}}return r}}return r}function quickDiffIEXml(c1,c2){var d=++key;for(var i=0,len=c1.length;i<len;i++){c1[i].setAttribute("_qdiff",d)}var r=[];for(var i=0,len=c2.length;i<len;i++){if(c2[i].getAttribute("_qdiff")!=d){r[r.length]=c2[i]}}for(var i=0,len=c1.length;i<len;i++){c1[i].removeAttribute("_qdiff")}return r}function quickDiff(c1,c2){var len1=c1.length;if(!len1){return c2}if(isIE&&c1[0].selectSingleNode){return quickDiffIEXml(c1,c2)}var d=++key;for(var i=0;i<len1;i++){c1[i]._qdiff=d}var r=[];for(var i=0,len=c2.length;i<len;i++){if(c2[i]._qdiff!=d){r[r.length]=c2[i]}}return r}function quickId(ns,mode,root,id){if(ns==root){var d=root.ownerDocument||root;return d.getElementById(id)}ns=getNodes(ns,mode,"*");return byId(ns,null,id)}return{getStyle:function(el,name){return el.style[name]},compile:function(path,type){type=type||"select";var fn=["var f = function(root){\n var mode; ++batch; var n = root || document;\n"];var q=path,mode,lq;var tk=robotreplay.Dom.query.matchers;var tklen=tk.length;var mm;var lmode=q.match(modeRe);if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';q=q.replace(lmode[1],"")}while(path.substr(0,1)=="/"){path=path.substr(1)}while(q&&lq!=q){lq=q;var tm=q.match(tagTokenRe);if(type=="select"){if(tm){if(tm[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tm[2]+'");'}else{fn[fn.length]='n = getNodes(n, mode, "'+tm[2]+'");'}q=q.replace(tm[0],"")}else if(q.substr(0,1)!='@'){fn[fn.length]='n = getNodes(n, mode, "*");'}}else{if(tm){if(tm[1]=="#"){fn[fn.length]='n = byId(n, null, "'+tm[2]+'");'}else{fn[fn.length]='n = byTag(n, "'+tm[2]+'");'}q=q.replace(tm[0],"")}}while(!(mm=q.match(modeRe))){var matched=false;for(var j=0;j<tklen;j++){var t=tk[j];var m=q.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i]});q=q.replace(m[0],"");matched=true;break}}if(!matched){throw'Error parsing selector, parsing failed at "'+q+'"';}}if(mm[1]){fn[fn.length]='mode="'+mm[1].replace(trimRe,"")+'";';q=q.replace(mm[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},select:function(path,root,type){if(!root||root==document){root=document}if(typeof root=="string"){root=document.getElementById(root)}var paths=path.split(",");var results=[];for(var i=0,len=paths.length;i<len;i++){var p=paths[i].replace(trimRe,"");if(!cache[p]){cache[p]=robotreplay.Dom.query.compile(p);if(!cache[p]){throw p+" is not a valid selector";}}var result=cache[p](root);if(result&&result!=document){results=results.concat(result)}}if(paths.length>1){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<elList.length;i++){if(elList[i].id&&elList[i].id.indexOf(idString)!=-1){resList.push(elList[i])}}return resList};robotreplay.User={id:84.0,rec_servers:{amf:'http://replay.foreseeresults.com/rec/amfservice/amf',script:'http://replay.foreseeresults.com/rec/scriptservice'},known_doms:{'f8859713a561d0b8d87b7f91ff096412':true,'5f5783ab52c872513b6596f37a3a57ea':true,'9f7594869b0c2de9158c2ea72a858be9':true,'b9e43245a026e460d48b2cd011c25f01':true,'1dd56f919e485d54e984cf442f73f95c':true,'b05d878213ffc422cfe4d26dc41db148':true,'71e29b9eb207cf98f3085a77327b2a93':true,'f7374a55ad7fc61bfe77caabcf8e2c25':true,'4ad11ccca2d3eca76acede4979ce7ca6':true,'b9c5024674000e41921419c32adfe320':true,'9c80be29003fa5b3aa5f5b3cf969c7cb':true,'2b21e05152c6ff357f19d4a1757cf0f1':true,'a1498ca799f7000f33cc84a0148419a1':true,'b5989c57192a8587d1b587c143e92062':true,'5ac2c88d4ef3831eab217a288b2c60d5':true,'bf7db704995176537bf216feaf57b7c3':true,'d15b1385585fcb63485350033f9f6186':true,'eda54d8ccddea11938c39e9d2434b6f8':true,'bcc0ed1547cf6d7195d829b3634118d1':true,'117b379a61e6fbf2fcf325ec7f0c93f8':true,'038cbcaa96e6217f15cad1752e9c0044':true,'365a30c8f936d2c5953f8838604a9cdb':true,'f1290b16303bdda6d8838f435bfdffc3':true,'17ba7b2d09e97c2b984c3c9a305b69b8':true,'c2f7eabe504c8914334e78a748680023':true,'28062d948ebfc986d293424bdd9cbba8':true,'176f21c214e9e561f6373d840277679e':true,'91575ae341063c232519ac85b66c31e2':true,'b66a618dc222bf18a1df39c3eca05e24':true,'5e80f464245bc31ba0b2cffe6ab43a40':true,'84ebe7b065da9bcb69278a950e807247':true,'59fa0ae3145c829f10650fb1592247ce':true,'39b18e62a8b99c03fc5a22ba94c546ac':true,'1beff6bd526655e414597bfaa53d2902':true,'26705edb7b97c3e14d4a095cd0d75f7e':true,'0819abc70e380d7c9de17e5a41f98b09':true,'d05fa8512da5c9da42e3d265ea3cd2f0':true,'899d65b5bca1d2dc33ad862dea54c8f7':true,'49c2d74f48314f9d8b103d15d8d93e73':true,'50b424ca7ba52372f71bb45285194eba':true,'2bb6d272b9ea13855ed5ccfd787cdc82':true,'8a8c4cfc85257061de0e44e93336b6bc':true,'7ff3ff6c58ed079ea43c59911dcb0388':true,'fd0972c246ce403229fec8cf7d6b6584':true,'f5e5f9ea34209441fa6c09ad6672d057':true,'82d6f16d028b5426050e80c62681de24':true,'cd8462f709038c7b917ebf43aa3a0633':true,'5c86ca981524ae5fb9ab3c3cec8ce04d':true,'38d1675dd9b08816c727839372c44d36':true,'1040032b3637f739994398fb06e2d2c5':true,'8e61c85770564201df48b6899ba8345b':true,'682a63ba5a65553f6a72b35d26faf0bf':true,'4dba0a85fc01c122dc694fffa24f7705':true,'45f417392f41adf79d52fb259ed0ac45':true,'ec86ccf5dd7621a686aeb71028e75dea':true,'35d2caf4de4702b0a04f1e7b63f562aa':true,'e4e7c740cd75e8f4e6fdf096a3a9bdd0':true,'781b551a20b62e59292be7a53d314b24':true,'0e1910b455bee0dcddd30387a3ce402b':true,'9aaec4cbabaa65b85144fd4bb062b101':true,'01691a68f1c3a67fdb728f60bac65e2e':true,'3f37815a7e32daf979038e6482ac12c7':true,'715bdc961f390bece12c627aebd5f3b7':true,'cb1da3205690ddc4450227e82b49b3ca':true,'8094767633779bcf871c5904701bf04f':true,'f1812c3bf37cee98ae5daeaf28e0395e':true,'28ffcbbe640fadb30c158187b0934362':true,'2999fb98aaa41a556a1ddaa65f993e4d':true,'745bfafc5c091306ba6dde9ff89bd917':true,'77e0d376698773ca46c320e675cbfbd6':true,'9065e7da396a1a6460343f8c3dded6aa':true,'fcb19ce923913b831806cf66990f2625':true,'545436917f1881da7869b30c95b18fcf':true,'51229a0a16743d6778384be822a19df4':true}};robotreplay.Domready={didExecute:false,onDomready:"",emergencyExec:null,setupEvent:function(fn){var rd=robotreplay.Domready;if(document.addEventListener){if((navigator.vendor)&&(navigator.vendor.indexOf('Apple')>-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){jscode_to_eval='try { '+jscode_to_eval+' } catch(e) {};';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+='try { '+jscode_to_eval+' } catch(e) {};'},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,flashAvailable:false,getSessionId:function(){return this.rr_session_id},initSessionId:function(){if(this.rr_session_id==null){var S=robotreplay.Storage;var C=robotreplay.Cookies;var id=S.read(S.SESSIONID,"")||C.getNSCookie(C.SESSIONID);if(this.isSessionStale()){S.clearAll();S.write(S.DOMAINKEY,this.getDomain(),true);C.setNSCookie(C.DOMAINKEY,this.getDomain(),-1,'/',this.getDomain());S.write(S.VERSIONKEY,robotreplay.version,true);id=((new Date())-0)+"_"+Math.round(Math.random()*10000);S.write(S.SESSIONID,id,true);C.setNSCookie(C.SESSIONID,id,-1,'/',this.getDomain());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=C.SESSIONGROUPID;var id=C.getNSCookie(name);if(!id||id==null||id==''){id=((new Date())-0)+"_"+Math.round(Math.random()*10000);C.setNSCookie(name,id,-1,'/',this.getDomain())}this.rr_group_session_id=id}},isSessionStale:function(){var S=robotreplay.Storage,C=robotreplay.Cookies,db=robotreplay.is_debug_build,h=window.location.href;if(S.read(S.SESSIONID,'')==''&&C.getNSCookie(C.SESSIONID)==''){if(db){alert('Session id invalid. '+h)}return true}var od=S.read(S.DOMAINKEY,''),d=this.getDomain();if(od!=d&&robotreplay.domains[od]==null&&C.getNSCookie(C.DOMAINKEY)==''){if(db){alert('Domain ('+d+') changed from ('+od+'). '+h)}return true}var ov=S.read(S.VERSIONKEY,''),v=robotreplay.version;if(v>ov||ov==''){if(db){alert('JS version ('+v+') changed from ('+ov+'). '+h)}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;");this.rec_server=rec_svr=ru.rec_servers[Math.round(Math.random()*(ru.rec_servers.length-1))];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;i<rrr.search_engines.length;i++){var se=rrr.search_engines[i];try{regex.compile('^http://(www\\.)?'+se[0],'i')}catch(e){}var match=referrer.match(regex);if(match){this.search_engine=this.extractDomain(referrer);var result;if(isNaN(se[1])){result=rrr.decodeReferrerQS(referrer,se[1])}else{result=match[se[1]+1]}if(result){result=decodeURIComponent(result);if(se.length>2&&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<chars.length;i++){if(wl.indexOf(chars[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<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;this.versionSearchString2=data[i].versionSearch2||this.versionSearchString;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)return data[i].identity}else if(dataProp)return data[i].identity}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1){index=dataString.indexOf(this.versionSearchString2);if(index==-1)return;this.versionSearchString=this.versionSearchString2};var vstring=dataString.substring(index+this.versionSearchString.length);if(vstring.indexOf(' ')>-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<length;i+=1){partial[i]=str(i,value)||'null'}v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v}if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v)}}}}v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v}}if(typeof JSON==='undefined'||typeof JSON.stringify!=='function'){robotreplay.JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' '}}else if(typeof space==='string'){indent=space}rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('robotreplay.JSON.stringify');}return str('',{'':value})}}else{robotreplay.JSON.stringify=JSON.stringify}if(typeof JSON==='undefined'||typeof JSON.parse!=='function'){robotreplay.JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4)})};if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j};throw new SyntaxError('robotreplay.JSON.parse');}}else{robotreplay.JSON.parse=JSON.parse}})();robotreplay.MD5=function(){};robotreplay.MD5.hexcase=0;robotreplay.MD5.b64pad="";robotreplay.MD5.chrsz=8;robotreplay.MD5.skipRate=2;robotreplay.MD5.init=function(){var size=document.body.innerHTML.length;var skipRate=Math.ceil(size/45000)*5;this.skipRate=(isNaN(skipRate)?2:skipRate)};robotreplay.MD5.hash=function(s,sr){if(sr==null){this.init()}else{this.skipRate=sr}return this.binl2hex(this.core_md5(this.str2binl(s),s.length/this.skipRate*this.chrsz))};robotreplay.MD5.core_md5=function(x,len){x[len>>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<x.length;i+=16*this.skipRate){var olda=a;var oldb=b;var oldc=c;var oldd=d;a=this.ff(a,b,c,d,x[i+0],7,-680876936);d=this.ff(d,a,b,c,x[i+1],12,-389564586);c=this.ff(c,d,a,b,x[i+2],17,606105819);b=this.ff(b,c,d,a,x[i+3],22,-1044525330);a=this.ff(a,b,c,d,x[i+4],7,-176418897);d=this.ff(d,a,b,c,x[i+5],12,1200080426);c=this.ff(c,d,a,b,x[i+6],17,-1473231341);b=this.ff(b,c,d,a,x[i+7],22,-45705983);a=this.ff(a,b,c,d,x[i+8],7,1770035416);d=this.ff(d,a,b,c,x[i+9],12,-1958414417);c=this.ff(c,d,a,b,x[i+10],17,-42063);b=this.ff(b,c,d,a,x[i+11],22,-1990404162);a=this.ff(a,b,c,d,x[i+12],7,1804603682);d=this.ff(d,a,b,c,x[i+13],12,-40341101);c=this.ff(c,d,a,b,x[i+14],17,-1502002290);b=this.ff(b,c,d,a,x[i+15],22,1236535329);a=this.gg(a,b,c,d,x[i+1],5,-165796510);d=this.gg(d,a,b,c,x[i+6],9,-1069501632);c=this.gg(c,d,a,b,x[i+11],14,643717713);b=this.gg(b,c,d,a,x[i+0],20,-373897302);a=this.gg(a,b,c,d,x[i+5],5,-701558691);d=this.gg(d,a,b,c,x[i+10],9,38016083);c=this.gg(c,d,a,b,x[i+15],14,-660478335);b=this.gg(b,c,d,a,x[i+4],20,-405537848);a=this.gg(a,b,c,d,x[i+9],5,568446438);d=this.gg(d,a,b,c,x[i+14],9,-1019803690);c=this.gg(c,d,a,b,x[i+3],14,-187363961);b=this.gg(b,c,d,a,x[i+8],20,1163531501);a=this.gg(a,b,c,d,x[i+13],5,-1444681467);d=this.gg(d,a,b,c,x[i+2],9,-51403784);c=this.gg(c,d,a,b,x[i+7],14,1735328473);b=this.gg(b,c,d,a,x[i+12],20,-1926607734);a=this.hh(a,b,c,d,x[i+5],4,-378558);d=this.hh(d,a,b,c,x[i+8],11,-2022574463);c=this.hh(c,d,a,b,x[i+11],16,1839030562);b=this.hh(b,c,d,a,x[i+14],23,-35309556);a=this.hh(a,b,c,d,x[i+1],4,-1530992060);d=this.hh(d,a,b,c,x[i+4],11,1272893353);c=this.hh(c,d,a,b,x[i+7],16,-155497632);b=this.hh(b,c,d,a,x[i+10],23,-1094730640);a=this.hh(a,b,c,d,x[i+13],4,681279174);d=this.hh(d,a,b,c,x[i+0],11,-358537222);c=this.hh(c,d,a,b,x[i+3],16,-722521979);b=this.hh(b,c,d,a,x[i+6],23,76029189);a=this.hh(a,b,c,d,x[i+9],4,-640364487);d=this.hh(d,a,b,c,x[i+12],11,-421815835);c=this.hh(c,d,a,b,x[i+15],16,530742520);b=this.hh(b,c,d,a,x[i+2],23,-995338651);a=this.ii(a,b,c,d,x[i+0],6,-198630844);d=this.ii(d,a,b,c,x[i+7],10,1126891415);c=this.ii(c,d,a,b,x[i+14],15,-1416354905);b=this.ii(b,c,d,a,x[i+5],21,-57434055);a=this.ii(a,b,c,d,x[i+12],6,1700485571);d=this.ii(d,a,b,c,x[i+3],10,-1894986606);c=this.ii(c,d,a,b,x[i+10],15,-1051523);b=this.ii(b,c,d,a,x[i+1],21,-2054922799);a=this.ii(a,b,c,d,x[i+8],6,1873313359);d=this.ii(d,a,b,c,x[i+15],10,-30611744);c=this.ii(c,d,a,b,x[i+6],15,-1560198380);b=this.ii(b,c,d,a,x[i+13],21,1309151649);a=this.ii(a,b,c,d,x[i+4],6,-145523070);d=this.ii(d,a,b,c,x[i+11],10,-1120210379);c=this.ii(c,d,a,b,x[i+2],15,718787259);b=this.ii(b,c,d,a,x[i+9],21,-343485551);a=this.safe_add(a,olda);b=this.safe_add(b,oldb);c=this.safe_add(c,oldc);d=this.safe_add(d,oldd)}return new Array(a,b,c,d)};robotreplay.MD5.cmn=function(q,a,b,x,s,t){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a,q),this.safe_add(x,t)),s),b)};robotreplay.MD5.ff=function(a,b,c,d,x,s,t){return this.cmn((b&c)|((~b)&d),a,b,x,s,t)};robotreplay.MD5.gg=function(a,b,c,d,x,s,t){return this.cmn((b&d)|(c&(~d)),a,b,x,s,t)};robotreplay.MD5.hh=function(a,b,c,d,x,s,t){return this.cmn(b^c^d,a,b,x,s,t)};robotreplay.MD5.ii=function(a,b,c,d,x,s,t){return this.cmn(c^(b|(~d)),a,b,x,s,t)};robotreplay.MD5.safe_add=function(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)};robotreplay.MD5.bit_rol=function(num,cnt){return(num<<cnt)|(num>>>(32-cnt))};robotreplay.MD5.str2binl=function(str){var bin=new Array();var mask=(1<<this.chrsz)-1;for(var i=0;i<str.length*this.chrsz;i+=this.chrsz*this.skipRate)bin[i>>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<binarray.length*4;i++){str+=hex_tab.charAt((binarray[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&&!r.Log.isCancelled){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)}},stripHiddenDomMaterial:function(html){var r=robotreplay;html=this.superReplace(html,new RegExp("<!--(\\W)*"+r.hiddenBlockOpenTag+"[\\w\\W]*?"+r.hiddenBlockCloseTag+"(\\W)*-->","mig"),this.maskBlock);html=this.superReplace(html,new RegExp("<(\\W)*input[^>]*?"+r.hiddenFieldClassName+"[\\w\\W]*?>","mig"),this.maskValue);return this.superReplace(html,new RegExp("<(\\W)*textarea[^>]*?"+r.hiddenFieldClassName+"[\\w\\W]*?<(\\W)*/(\\W)*textarea(\\W)*>","mig"),this.maskBlock)},superReplace:function(html,regx,handleFn){var result;var res="";var currentPos=0;while((result=regx.exec(html))!=null){res+=html.substring(currentPos,result.index);var newStr=handleFn(result[0]);res+=newStr;currentPos=result.index+result[0].length}res+=html.substring(currentPos,html.length);return res},maskValue:function(html){return html.replace(new RegExp("value=\"([^\"]*)\"","gim"),function(str,p1){return"value=\""+p1.replace(/[^\W]/g,"*")+"\""})},maskBlock:function(html){var res=html;if(html.length>0){res="";var currentPos=-1;var lastPos=-1;while(currentPos<html.length){lastPos=currentPos;currentPos=html.indexOf("<",currentPos+1);if(currentPos>-1){res+=html.substring(lastPos,currentPos).replace("<","").replace(">","").replace(/[^\W]/g,"*");res+=html.substring(currentPos,html.indexOf(">",currentPos)+1);currentPos=html.indexOf(">",currentPos)}else currentPos=html.length}res+=html.substring(lastPos,html.length).replace("<","").replace(">","").replace(/[^\W]/g,"*")}return res},normalizeDom:function(){var r=robotreplay;var dom=r.Html.getOuterHtml(document.getElementsByTagName("html")[0]);dom=this.stripHiddenDomMaterial(dom);dom=dom.replace(/<input.*?name=["']?__VIEWSTATE["']?.*?\/?>/gi,"");dom=dom.replace(/<noscript>[\s\S]*?<\/noscript>/gi,"");if(r.browser=='ie'){var os=document.getElementsByTagName('object');for(var i=0;i<os.length;i++){dom=this.fixObjectTag(dom,os[i])}}dom=r.Dom.getDocType()+'\n'+dom;return dom},fixObjectTag:function(dom,o){var id=o.id;var re=new RegExp('(<object[^>]*id=[\'"]?'+id+'[\'"]?.*?>)([\\s\\S]*?)(\<\/object\>)','im');return dom.replace(re,function($0,$1,$2,$3){var params='';var other='';for(var j=0;j<o.childNodes.length;j++){var p=o.childNodes[j];if(p.tagName=='PARAM'){params+=p.outerHTML}else{other+=p.outerHTML}}return $1+params+other+$3})},normalizeDomForHash:function(dom){dom=dom.replace(/<!--(.*?)-->/gim,"");return dom},sendHashList:function(){var r=robotreplay;var S=r.Storage;if((r.Log.getOKTransmit()||S.isDomsFull())&&!r.Log.isCancelled){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;i<hashList.length;i++){this.removeDomFromStorage(hashList[i])}this.serializeDoms()},serializeDoms:function(){var S=robotreplay.Storage;var doms=S.read(S.DOMKEY,{});var urlList=S.read(S.URLLISTKEY,{});for(var hash in urlList){var dom=doms[hash];var url=urlList[hash]||{url:'',url_md5:''};this.serializeDom(dom,hash,url)}},serializeDom:function(dom,hash,url){if(dom&&dom.length>0){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",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={requestId:1,maxRetries:10,enabled:true,data:"",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<timeBefore){indexArr--;if(indexArr<=0){timeCount=timeBefore}else{var entryArray=this.entryDetails(timeline[indexArr]);timeCount+=entryArray[1]}}timeCount-=timeBefore;var finalString=this.generateEventString(eventType,eventData,skipEncode,forceTimeIndex,timeCount);this.data='';for(i=0;i<indexArr;i++){this.data+=timeline[i]+'~'}this.data+=finalString;finalString='';if(indexArr<timeline.length-1){var entryArray=this.entryDetails(timeline[indexArr]);entryArray[1]-=timeCount;entryArray[1]="("+entryArray[1]+")";finalString+=entryArray.join('*')+'~';this.data+=finalString;for(i=indexArr+1;i<timeline.length-1;i++){this.data+=timeline[i]+'~'}var itemIndex=indexArr;if(itemIndex<0)itemIndex=0}else{var itemIndex=timeline.length-1;if(itemIndex<0)itemIndex=0}}else{var finalString=this.generateEventString(eventType,eventData,skipEncode,forceTimeIndex);this.data+=finalString;var itemIndex=this.data.split('~').length-2}this.handleTransmissionAndStorage();return itemIndex}}else{return 0}},generateEventString:function(eventType,eventData,skipEncode,forceTimeIndex,setTimeInterval){var rl=robotreplay.Log;try{var isSetTimeInterval=false;if(setTimeInterval>=0)isSetTimeInterval=true;var eventString='';var skipenc=((skipEncode)||(skipEncode==true));if(eventData.constructor==Array){for(var ic=0,b=eventData.length;ic<b;ic++){if(ic>0)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;i<eAL;i++){if(eventArray[i].indexOf('*')>0){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(){if(typeof this.isSeparate!="undefined"){var qc=robotreplay_startup.Capture;this.lastTime=qc.lastTime;this.startTime=qc.startTime;this.isFirstMouseMove=qc.isFirstMouseMove}var r=robotreplay;var C=r.Cookies;var L=r.Log;L.startTime=new Date();if(window.rr_begintime)L.startTime=window.rr_begintime;L.lastTime=this.startTime;L.syncBucket=0;L.setHeartbeat(r.rTimHBTime);L.isCancelled=C.getNSCookie(C.RECCANCELLED);if(L.isCancelled===""){L.isCancelled=false}L.push("ph",true);L.getOKTransmit();L.push("tk",(new Date()).getTime())},getOKTransmit:function(){var r=robotreplay;var S=r.Storage;var C=r.Cookies;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=C.getNSCookie(C.ISRESP);if(id&&id!=null&&id.length>0){isresp=true;S.write(S.ISRESP,true,true)}}if(isresp){rl.doTransmit=true}}return rl.doTransmit},setOKTransmit:function(){var r=robotreplay;var C=r.Cookies;if(C.cookiesOn()&&!r.Log.isCancelled){var rl=r.Log;var S=r.Storage;rl.doTransmit=true;C.setNSCookie(C.ISRESP,"true",-1,'/',r.Session.getDomain());S.write(S.ISRESP,true,true);this.onInviteAccepted.notify()}},doTransmit:false,isCancelled: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){var transport=r.TransportFactory.getTransport(justForceSend);var datastream=S.read(S.EVENTSKEY,"")+L.data;if((new Date()-L.lastTransmission>L.minTransmissionDelay||justForceSend)&&!r.Log.isCancelled&&transport!==null&&datastream!=''){L.lastTransmission=new Date();if(!L.getOKTransmit()&&!S.isEventsFull()){S.write(S.EVENTSKEY,L.data)}else{if(S.read(S.NEWSESSIONKEY,"0")=="1"){L.createSession()}if(justForceSend&&transport.type=='script'){S.write(S.EVENTSKEY,L.data)}this.sendEvents(transport,datastream)}L.data=""}}},sendEvents:function(transport,datastream){var r=robotreplay;var S=r.Storage;var L=r.Log;var data={data:datastream,client_timestamp:new Date().getTime(),version:(r.version||'0'),url:window.location.href,url_md5:r.MD5.hash(window.location.href,1),session_id:r.Session.getSessionId(),request_id:r.Log.requestId++,retries:0};if(transport.type=='flash'){var queued=S.read(S.QUEUED,{});queued[transport.id]=data;S.write(S.QUEUED,queued,true,true);S.clear(S.EVENTSKEY,true);S.commit()}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();if(transport!==null){var data={client_timezone:r.Session.getTimezone(),version:(r.version||'0'),session_id:r.Session.getSessionId(),group_session_id:r.Session.getGroupSessionId(),user_id:r.User.id,user_domain:r.Session.getDomain(),browser:"",start_time:S.read(S.STARTTIME,''),metadata:r.Log.getOKTransmit()};transport.onResponse.subscribeOnce(function(e){var r=robotreplay;var S=r.Storage;var L=r.Log;var retries=S.read(S.SESSIONRETRIESKEY,0);if(typeof e.message.status!="undefined"&&e.message.status==0){S.write(S.SESSIONRETRIESKEY,++retries,true);if(retries>L.maxRetries){L.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;var RS=r.Session;if(C.cookiesOn()){C.setNSCookie(C.ISRESP,'',-1,'/',RS.getDomain());C.setNSCookie(C.RECCANCELLED,true,-1,'/',RS.getDomain())}S.clearAll();r.Log.doTransmit=false;r.Log.isCancelled=true}};robotreplay.siteSpecificCode={'ajc.com':function(){window.rrSetupFn=function(){if(robotreplay.browser=="ie"){try{$('ul.nav a').each(function(e,o){robotreplay.Event.attach(o,"mouseover",robotreplay.Capture.mouseOverEl,true);robotreplay.Event.attach(o,"mouseout",robotreplay.Capture.mouseOutEl,true)})}catch(e){setTimeout(window.rrSetupFn,1000)}}};robotreplay.Domready.attach("setTimeout(window.rrSetupFn, 1000);");window.rrSetupScrollFn=function(){if($('.scrollButtons').length>0){robotreplay.Capture.indexElements(false)}else{setTimeout(window.rrSetupScrollFn,1000)}};window.rrBeginTrackingOldHeight=20;window.rrBeginTrackingAdSpace=function(){var asp=robotreplay.Dom.query.select(".ajc-ad");if(asp.length>0){if(asp[0].offsetHeight!=window.rrBeginTrackingOldHeight){window.rrBeginTrackingOldHeight=asp[0].offsetHeight;robotreplay.Log.push("ce",{fn:"window.rrSetBannerHeight('"+asp[0].offsetHeight+"')"})}}setTimeout(window.rrBeginTrackingAdSpace,500)};robotreplay.Domready.attach("setTimeout(window.rrSetupScrollFn, 1000);");robotreplay.Domready.attach("setTimeout(window.rrBeginTrackingAdSpace, 100);")},'accessatlanta.com':function(){window.rrSetupFnAA=function(){var r=robotreplay;var elList=r.Dom.query.idQuery("div","adx_ld");for(var i=0;i<elList.length;i++){r.Dom.watch('#'+elList[i].id,true)}};robotreplay.Domready.attach("window.rrSetupFnAA();")}};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,onIndexingComplete:new robotreplay.Subject(),setMouseOverList:function(){var S=robotreplay.SiteSpecific;if(S.skipFromMouseOver){robotreplay.Capture.skipFromMouseOver=S.skipFromMouseOver}},init:function(skipAttach){var r=robotreplay;if(this.initialized==false)if(!document||!document.body){r.Debug.logError("NoDocument","Skipped the capture init.");setTimeout(r.Capture.init,50)}else{var re=r.Event;var rl=r.Log;var rb=r.Browser;var rf=r.Referrer;var rs=r.Session;r.Capture.setMouseOverList();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){r.Debug.logError("Error in capture init",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)){r.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;k<l;k++){if(k>0){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:{"h1":"","h2":"","h3":"","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;k<l;k++){var elem=eList[k];if(!elem.id&&elem.robotreplay_ignore!='true'){var newid="rr"+tagName+elCount++;if(tagName=="a")newid="rrta"+tagName+(elCount-1);if(elem.name){if((tagName=="input")&&(elem.type.toLowerCase()=="radio")){}else{}}elem.id=newid;foundNewItems=true}if(this.specialEventTagList[tagName]!=null&&elem.rr_eventAdded==null){if(!skipAttach){elem.rr_eventAdded=true;if((tagName=="textarea")&&(br=="mozilla")&&(Br.maj<3)){if(elem.rr_recheck==null){elem.rr_recheck=true;this.constantReCheckingList[this.constantReCheckingList.length]=elem}}else{re.attach(elem,"scroll",robotreplay.Capture.scrollEl)}if((tagName=="textarea")||(tagName=="text")||(tagName=="input")||(tagName=="select")){re.attach(elem,"focus",this.focusBlurEl,true);re.attach(elem,"blur",this.focusBlurEl,true);re.attach(elem,"click",this.focusBlurEl,true)}if(this.formFieldTypes[tagName]!=null){if(elem.type=="radio"){radios.push(elem.checked)}else{robotreplay.Log.push("sf",this.serializeFormField(elem))}}if(this.isTextField(elem)){re.attach(elem,"click",this.textFieldWatcher,true);re.attach(elem,"keydown",this.keyType,true);re.attach(elem,"keyup",this.keyType,true)}if(tagName=="select"){re.attach(elem,"change",this.changeSelect,true)}if(tagName=="form"){this.saveForm(elem)}}}}this.elArray[tagName]=elCount}if(radios.length>0){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;i<j;i++){if(this.frameHistory[i]==currentFrame){pastIndexed=true}}if(currentFrame){foundNewItems=this.performIndexing(currentFrame,null,skipAttach);if(pastIndexed==false&&!skipAttach){var frameBody=currentFrame.body;re.attach(frameBody,"mouseover",this.mouseOverEl,true);re.attach(frameBody,"mouseout",this.mouseOutEl,true);re.attach(frameBody,"mousedown",this.mouseDownUp,true);re.attach(frameBody,"mouseup",this.mouseDownUp,true);re.attach(frameBody,"click",this.mouseDownUp,true);re.attach(frameBody,"dblclick",this.mouseDownUp,true);re.attach(frameBody,"contextmenu",this.mouseDownUp,true)}}if(!pastIndexed){this.frameHistory.push(currentFrame);if(currentFrameIndex>0){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;i<j;i++){try{if(iList[i].contentWindow.rr_domready){frameArray.push(iList[i].contentWindow.document);windowArray.push(iList[i].contentWindow)}}catch(e){}}}}try{if(windowArray[currentFrameIndex].rr_domready){windowArray[currentFrameIndex].robotreplay.saveIFrame()}}catch(e){}currentFrameIndex++}if(foundNewItems==true){robotreplay.Log.push("ei",[1],true,false);if(this.constantReCheckingList.length>0){this.periodicEventCheck()}}this.onIndexingComplete.notify()},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;i<k;i++){if(tl[i].tagName.toLowerCase()=="textarea"){if((maj<3)&&(rb="mozilla")){if(!tl[i].scrollInfo){tl[i].scrollInfo={top:0,left:0}}if((tl[i].scrollInfo.top!=tl[i].scrollTop)||(tl[i].scrollInfo.left!=tl[i].scrollLeft)){tl[i].scrollInfo.top=tl[i].scrollTop;tl[i].scrollInfo.left=tl[i].scrollLeft;var myEvent={target:tl[i]};this.scrollEl(myEvent)}}}}this.periodicEventHandle=setTimeout(function(){robotreplay.Capture.periodicEventCheck()},this.periodicCheckInterval)},changeSelect:function(event){var rc=robotreplay.Capture;var rd=robotreplay.Dom;var L=robotreplay.Log;var targetElement=(event.target||event.toElement||event.srcElement);var myElId=rd.getiFrameReference(targetElement);var newEl=rc.serializeFormField(targetElement,true);newEl.value=rc.serialFormRecords[myElId].value;if(rd.objectsSame(newEl,rc.serialFormRecords[myElId])==false){L.push("sf",rc.serializeFormField(targetElement))}else{L.push("sv",{el:myElId,val:rc.serializeFormField(targetElement).value})}rc.serializeFormField(targetElement)},keyType:function(event){var rc=robotreplay.Capture;var rd=robotreplay.Dom;var L=robotreplay.Log;var targetElement=(event.target||event.toElement||event.srcElement);var myElId=rd.getiFrameReference(targetElement);var oldVer=rc.serialFormRecords[myElId];var skipRecord=false;var kk=event.keyCode;if(((Math.abs(oldVer.value.length-targetElement.value.length)>1)||((rc.lastTextFieldCaret.end-rc.lastTextFieldCaret.start)==1))||(kk==13)){L.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);if(targetElement.className.indexOf(robotreplay.hiddenFieldClassName)!=-1){val=val.replace(/./g,'*')}L.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"){L.push("sk",{el:myElId,c:kk,s:cp.start,end:cp.end})}else{L.push("c",{el:myElId,s:cp.start,e:cp.end,c:cp.caret,st:targetElement.scrollTop,sl:targetElement.scrollLeft},true)}}}rc.serializeFormField(targetElement,false)},lastMouseDown:{x:0,y:0},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 L=robotreplay.Log;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"){rc.lastMouseDown.x=x;rc.lastMouseDown.y=y;L.push("md",{el:myElId,x:x,y:y},false,false)}else if(event.type=="mouseup"){L.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){L.push("ck",{el:myElId,x:rc.lastMouseDown.x,y:rc.lastMouseDown.y},false,false)}}else{L.push("ck",{el:myElId,x:rc.lastMouseDown.x,y:rc.lastMouseDown.y},false,false)}}else if(event.type=="dblclick"){L.push("dk",{el:myElId,x:x,y:y},false,false)}else if(event.type=="contextmenu"){L.push("cm",{el:myElId,x:x,y:y},false,false)}}else{if(event.type=="mousedown"){L.push("md",{x:x,y:y},false,false)}else if(event.type=="mouseup"){L.push("mu",{x:x,y:y},false,false)}else if(event.type=="click"){L.push("ck",{x:x,y:y},false,false)}else if(event.type=="dblclick"){L.push("dk",{x:x,y:y},false,false)}else if(event.type=="contextmenu"){L.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;var L=robotreplay.Log;robotreplay.Capture.serializeCompareForm(targetElement);var myElId=rd.getiFrameReference(targetElement);if(event.type=="reset"){L.push("fr",{el:myElId})}else if(event.type=="submit"){L.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;var L=robotreplay.Log;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){L.push("sf",rc.serializeFormField(targetElement))}}if(targetElement.form){rc.serializeCompareForm(targetElement)}L.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){L.push("sf",rc.serializeFormField(targetElement))}}L.push("bl",{el:myElId},true,false)}else if(event.type=="click"){if(targetElement.type&&(targetElement.type=="checkbox"||targetElement.type=="radio")){L.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"){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=rd.getiFrameReference(fO);sD.value=fO.value;if(fO.className.indexOf(robotreplay.hiddenFieldClassName)!=-1){sD.value=sD.value.replace(/./g,'*')}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;i<k;i++){if(i>0){sD.options+=","}sD.options+=rle((fO.options[i].value==""?fO.options[i].text:fO.options[i].value))+";"+rle(fO.options[i].text)}sD.options+="]"};if(fO.type=="select-multiple"){sD.value=rd.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<fO.length;i++){var myElId=rd.getiFrameReference(fO[i]);if(rc.formFieldTypes[fO[i].type]!=null){if(rd.objectsSame(rc.serialFormRecords[myElId],rc.serializeFormField(fO[i],true))==false){robotreplay.Log.push("sf",rc.serializeFormField(fO[i]))}}}},setPage:function(){var L=robotreplay.Log;if(!window.rr_begintime){window.rr_begintime=new Date()}if(typeof robotreplay_startup!="undefined"){var C=robotreplay_startup.Capture;L.data+=C.dataStream;C.dataStream=""}else{L.push("sp",L.encodeRRCharacters(robotreplay.Session.url),false,null,(new Date()-window.rr_begintime))}},emergencySave:function(e){e=e||window.event;if(e!=null){var elem=e.target||e.srcElement;if(elem!=null&&e.type=='mousedown'){var type=elem.type||'';if(elem.tagName=='HTML'||(elem.tagName=='INPUT'&&type=='text')){return}}}var r=robotreplay;var S=r.Storage;r.Log.handleTransmissionAndStorage(true);var m=r.Capture.lastMouseCoords;S.write(S.MOUSEPOS,m.clientX+","+m.clientY,true)},handleDOMUpdate:function(e){}};robotreplay.init=function(){var R=robotreplay;if(document.body&&window.rr_test!=true&&R.Swf.isInstalled()&&R.Session.getDomain()){if(!R.Replay){if(!R.Dom.isIFrame()){if(R.Session.isPageRecordable()){R.Log.init();R.Log.onInviteAccepted.subscribeOnce(function(){R.onFlashReady.subscribeOnce(R.Serializer.sendHashList,R.Serializer)});R.onFlashReady.subscribeOnce(R.Log.sendQueued,R.Log);R.Onunload.attach("robotreplay.Log.close();");R.Onunload.attach("robotreplay.Capture.uninstall();");R.Serializer.onInit.subscribeOnce(function(hash){var h=window.location.href;R.Log.push("ds",{md5:hash,url:h,urlmd5:robotreplay.MD5.hash(h,1)})});if(R.Browser.browser.basetype=="ie"){R.Capture.init();R.Domready.attach("robotreplay.Capture.indexElements();");R.Domready.attach("robotreplay.Serializer.init();");R.Domready.attach("robotreplay.Swf.addTransportSwf();")}else{R.Domready.attach("robotreplay.Capture.init();");R.Domready.attach("robotreplay.Capture.indexElements();");R.Domready.attach("robotreplay.Swf.addTransportSwf();");R.Domready.attach("robotreplay.Serializer.init();")}}else{R.Log.isFirstEvent=false;R.Log.init();R.Onunload.attach("robotreplay.Log.close();");var serializer=R.Serializer;R.Domready.attach("robotreplay.Swf.addTransportSwf();");R.Domready.attach("robotreplay.transmitSkipPage();")}}else{if(R.Session.isPageRecordable()){R.Domready.attach("robotreplay.initIFrame();")}}}}else{setTimeout(robotreplay.init,300)}};robotreplay.initIFrame=function(i){window.rr_domready=true;i=i||1;var t=(robotreplay.Dom.getTop());if(t.robotreplay&&t.robotreplay.Capture&&t.robotreplay.Capture.initialized===true){t.robotreplay.Capture.indexElements()}else{if(i<20){setTimeout(function(){robotreplay.initIFrame.call(robotreplay,i+1)},200)}}};robotreplay.saveIFrame=function(){var R=robotreplay;if(R.Dom.isIFrame()&&R.Session.isPageRecordable()){R.Serializer.onInit.subscribeOnce(function(hash){var h=window.location.href;(R.Dom.getTop()).robotreplay.Log.push('is',{md5:hash,url:h,urlmd5:R.MD5.hash(h,1)})});R.Swf.addTransportSwf();R.Serializer.init()}};robotreplay.initRetry=function(){try{var R=robotreplay;R.Log.sendOldLog();R.Onunload.attach("robotreplay.Log.close();");R.Onunload.attach("robotreplay.Capture.uninstall();");R.Domready.attach("robotreplay.Capture.indexElements();")}catch(e){setTimeout(robotreplay.initRetry,200)}};robotreplay.transmitSkipPage=function(){wg=robotreplay.Geometry.getWindowSize();robotreplay.Log.push("pr",[wg.windowWidth,wg.windowHeight],true,false,500);robotreplay.Log.push("nr",{url:window.location.href},true)};if(robotreplay.Session.getDomain()){robotreplay.Session.init()}robotreplay.Domready.attach("try {robotreplay_startup.Init.shutdown();} catch(e) {} ");var specialrec=robotreplay.Dom.queryRequest("rr_rps");if(!specialrec||specialrec.length==0)robotreplay.init();robotreplay_startup={version:8.5};robotreplay_startup.Capture={dataStream:"",isSeparate:false,init:function(){this.isSeparate=(typeof robotreplay=="undefined");var rc=robotreplay_startup.Capture;rc.dataStream=robotreplay_startup.Capture.getNameData();rc.setP();rc.attachCriticals();if(window.addEventListener){window.addEventListener("unload",function(){robotreplay_startup.Capture.unloadDump()},true)}else{window.attachEvent("onunload",function(){robotreplay_startup.Capture.unloadDump()})}},shutdown:function(){var rc=robotreplay_startup.Capture;rc.detachCriticals();rc.killNameData()},unloadDump:function(){if(typeof robotreplay=="undefined"||robotreplay.Domready.didExecute==false){robotreplay_startup.Capture.rewriteNameData(robotreplay_startup.Capture.dataStream)}},getNameData:function(){var al=window.name.toString().indexOf("|rr_preld::");if(al>-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(){if(this.isSeparate==false){robotreplay.Event.attachWindowEvent('mousemove',robotreplay_startup.Capture.mouseMove)}else{this.attachWindowEvent('mousemove',robotreplay_startup.Capture.mouseMove)}},detachCriticals:function(){if(this.isSeparate==false){robotreplay.Event.removeWindowEvent('mousemove',robotreplay_startup.Capture.mouseMove,true)}else{this.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 mouse={};if(this.isSeparate==false){var sg=robotreplay.Geometry.getScrollPosition();mouse.clientX=event.clientX+sg.scrollLeft;mouse.clientY=event.clientY+sg.scrollTop}else{mouse.clientX=event.clientX;mouse.clientY=event.clientY}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(){var rl=this;if(this.isSeparate==false)rl=robotreplay.Log;robotreplay_startup.Capture.dataStream+="sp*(0)*"+rl.encodeRRCharacters(window.location)+"~";robotreplay_startup.Capture.rewriteNameData(robotreplay_startup.Capture.dataStream)},lastTime:new Date(),startTime:new Date(),isFirstMouseMove:true,pushM:function(x,y){var rl=robotreplay.Log;if(this.isSeparate==true)rl=this;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();
