
vjo.ctype("vjo.darwin.core.sitespeed.SiteSpeed").needs(["vjo.dsf.EventDispatcher","vjo.dsf.utils.URL","vjo.dsf.cookie.VjCookieJar"]).props({params:{},gauge:function(){if(typeof(oGaugeInfo)!="undefined"){var _1=(new Date()).getTime()-oGaugeInfo.iST;this.addParam("ct21",_1);var _2=document.referrer;var _3=vjo.dsf.utils.URL.getArg(document.location.href,"ForceSiteSpeedGauge");if(_3=="true"||(_2!=null&&_2.indexOf("ebay.")>0)){if(oGaugeInfo.uldTime!=null&&oGaugeInfo.uldTime!=""){_1=(new Date()).getTime()-oGaugeInfo.uldTime;if(_1<300000){this.addParam("ex3",_1);}}}
this.gaugeInternal();}},gaugeUnload:function(){var _4=(new Date()).getTime();vjo.dsf.cookie.VjCookieJar.writeCookielet("ssg","uld",_4);if(typeof(oGaugeInfo)!="undefined"){var _5=(new Date()).getTime()-oGaugeInfo.iST;this.addParam("ex2",_5);this.gaugeInternal();}},gaugeBodyLoad:function(){if(typeof(oGaugeInfo)!="undefined"){var _6=(new Date()).getTime()-oGaugeInfo.iST;this.addParam("ctb",_6);var _7=vjo.dsf.utils.URL.getArg(document.location.href,"ForceSiteSpeedGauge");if(_7=="true"){var _8=new Image(1,1);if(_8){_8.src="http://p.ebaystatic.com/aw/pics/sitespeed/past/speedp.gif";}}}},addParam:function(_9,_a){if(_9&&_a){this.params[_9]=_a;}},getParams:function(){var rv="";for(var k in this.params){rv+="&"+k+"="+this.params[k];}
return rv;},gaugeInternal:function(){var _d=vjo.dsf.cookie.VjCookieJar,sbf=_d.readCookie("ebay","sbf");_d.writeCookielet("ebay","sbf",_d.setBitFlag(sbf,20,1));var _e=this.getParams();if(typeof(oGaugeInfo)!="undefined"&&oGaugeInfo.bFlag!=1){if(oGaugeInfo.sent===true){return;}
oGaugeInfo.sent=true;var _f=new Image(1,1);if(_f){_f.src=oGaugeInfo.sUrl.replace(/&amp;/g,"&")+_e;}}}}).inits(function(){var oCJ=vjo.dsf.cookie.VjCookieJar;sbf=oCJ.readCookie("ebay","sbf");b=(sbf)?oCJ.getBitFlag(sbf,20):0;if(typeof(oGaugeInfo)!="undefined"){oGaugeInfo.bFlag=b;oGaugeInfo.sent=false;oGaugeInfo.uldTime=oCJ.readCookie("ssg","uld");}
var scp=vjo.darwin.core.sitespeed.SiteSpeed;vjo.dsf.EventDispatcher.addEventListener(window,"load",scp.gauge,scp);vjo.dsf.EventDispatcher.addEventListener(window,"beforeunload",scp.gaugeUnload,scp);}).endType();
vjo.ctype("vjo.darwin.domain.jaguar.sitespeed.FindingSiteSpeed").needs("vjo.darwin.core.sitespeed.SiteSpeed").props({thresholdMilliseconds:10,markers:[],marks_measures:[],bulk_measures:{},other_count:1,addBulkLoad:function(_1,_2){if(typeof(this.bulk_measures[_1])!="undefined"){_2+=this.bulk_measures[_1];}
this.bulk_measures[_1]=_2;this.vj$.SiteSpeed.addParam(_1,_2);},addMarksMeasures:function(_3,_4,_5,_6){if(_3=="jseo"){_3+=this.other_count++;}
this.marks_measures.push({name:_3,evt:_4,et:_5,rt:_6});},mark:function(_7){var _8=(new Date()).getTime();this._mark(_7,_8);},_mark:function(_9,_a){this.markers[_9]={sT:_a,lT:_a};},measure:function(_b,_c){var _d=(new Date()).getTime();this._measure(_b,_c,_d);},_measure:function(_e,_f,_10){var _11,_12,_13=(typeof _e=="string"?_e:_e.type);if(_f!==null&&this.markers[_f]!==null){_11=this.markers[_f].lT;_12=_10-_11;this.markers[_f].lT=_10;}else{_11=oGaugeInfo.iST;_12=_10-_11;}
if(_12>=this.thresholdMilliseconds){if(_f!==null){this.addMarksMeasures(_f,_13,_12,_11);}else{this.markers["PageStart"]={sT:_11,lT:_10};this.addMarksMeasures("PageStart",_13,_12,_11);}}
if(_13!="unload"){if(_f==null){this.addBulkLoad(_13,_12);}else{this.addBulkLoad(_f,_12);}}},getMeasures:function(){return this.marks_measures;},clearMeasures:function(){this.marks_measures=[];this.markers=[];}}).inits(function(){if(typeof(oGaugeInfo)=="undefined"){oGaugeInfo={sUrl:"",iST:(new Date()).getTime()};}
var i;var _15=oSSM.mk.length;for(i=0;i<_15;i++){this._mark(oSSM.mk[i].r,oSSM.mk[i].t);}
var _15=oSSM.ms.length;for(i=0;i<_15;i++){this._measure(oSSM.ms[i].s,oSSM.ms[i].r,oSSM.ms[i].t);}
oSS=this;}).endType();
// en_US/e659/Finding_SiteSpeedJaguar_e65910752076_2_en_US
// b=10752076
