"),$("body").append(d),k.mask=d);var e=b.color?b.color:"#808080",f=b.alpha&&"number"===$.type(b.alpha)?b.alpha:0.3,b=b.zIndex&&"number"===$.type(b.zIndex)?b.zIndex:999999;d.css({"background-color":e,"z-index":b,opacity:f,
filter:"alpha(opacity="+100*f+")",display:"block"});c&&d.css("background","none");a.css("z-index",b+10)},hide:function(){var b=k.mask;b&&b.css("display","none")}};l={center:function(b,a){var c=$(window),d=b.outerWidth({margin:!0}),e=b.outerHeight({margin:!0}),f=Math.max((c.height()-e)/2,0),h=Math.max((c.width()-d)/2,0);a?(f=Math.max(f,(c.height()-e)/2+c.scrollTop()),h=Math.max(h,(c.width()-d)/2+c.scrollLeft())):b.css("position","fixed");b.css("top",f+"px");b.css("left",h+"px")},trigger:function(b,
a,c,d){var e=a.outerHeight(),a=a.offset();$(document).scrollTop();$(document).scrollLeft();b.css("top",e+a.top+d+"px");b.css("left",a.left+c+"px")},component:function(b,a,c,d){var e=$("#"+a).outerHeight(),a=$("#"+a).offset();$(document).scrollTop();$(document).scrollLeft();b.css("top",e+a.top+d+"px");b.css("left",a.left+c+"px")},customize:function(b,a,c,d){b.css("top",a+"px");b.css("left",c+"px");d||b.css("position","fixed")},pointer:function(b,a,c,d,e,f,h){var g=b.find(".prt");g.removeClass("vert left right top bottom");
var k=$(window).height(),l=$(window).width(),n=$(document).scrollTop(),o=$(document).scrollLeft(),r=a.outerHeight({margin:!0}),p=a.outerWidth({margin:!0}),q=b.outerHeight({margin:!0}),m=b.outerWidth({margin:!0});if(a=a.offset()){var i=0,j=0;a&&("vertical"==c?(g.addClass("vert"),d?0<=a.left+m-o?(i=a.left-50,g.addClass("left")):(i=a.left-m+p,g.addClass("right")):(i=a.left-m+93,g.addClass("right")),a.top-r-n>=q&&""==e||"down"==e?(j=a.top-q,g.addClass("bottom")):(j=a.top+16+r,i+=10,g.addClass("top"))):
(a.left+p+16+m-o>=l||f?(i=a.left-16-m,f&&(i+=16),g.addClass("right")):(i=a.left+p+16,g.addClass("left")),a.top+r+q-40-n>=k?(j=a.top-q+70,g.addClass("bottom"),f&&(j-=23)):(j=a.top-40,g.addClass("top"))),f&&(j+=23),h&&(i+=p/4,g.css("left",m/2-35+"px")),b.css("left",i+"px"),b.css("top",j+"px"))}}};o={register:function(b,a){var c=null;a.mousedown(function(d){var e=b.position().left-$(window).scrollLeft(),f=b.position().top-$(window).scrollTop(),h=d.pageX-e,g=d.pageY-f;c=function(a){b.css("left",a.pageX-
h+"px");b.css("top",a.pageY-g+"px")};$("body").mousemove(c);a.css("cursor","move")});$("body").mouseup(function(){$("body").unbind("mousemove",c);a.css("cursor","auto")})}};return{events:["show","hide"],init:function(b){var a,c="";a=this.conf=$.extend(!0,{},n,b);this.pubsub=raptor.require("pubsub");this.attachBodyClkEvt=!1;this.content=a.content?$(a.content):$("#"+b.id);this.pubsub.publish("REGISTER_OVERLAY",{id:a.id});this.body=this.container=null;this.handlrBinded=this.inited=!1;this.olyId="vi_oly_"+
a.id;var d=b="",e="",f="",h=c="",g="";a.accessible&&(a.modal&&(c="role='dialog'"),c+=" tabindex='-1'",g="tabindex='0' role='button'",a.ariaDesc&&(c=c+" aria-describedby='"+this.olyId+"_desc'",e="
"+a.ariaDesc+"
"),a.ariaLable&&(c=c+" aria-labelledby='"+this.olyId+"_lbl'",f="
"+a.ariaLable+"
"),a.hasCloseButton&&a.closeTitle&&(h="
"+a.closeTitle+""));a.hasCloseButton&&
(b=a.largeCloseButton?"
":"
");"pointer"==a.position&&(d="
");a.css3Enabled?(c="
",a.accessible&&a.modal&&(c+="
"),c=c+"
"+f+e+d+b+"
"):(c=
"
",a.accessible&&a.modal&&(c+="
"),c=c+f+e+d+b+"
");a.accessible&&a.modal&&(c+="
");this.panel=$(c+"
");this.handlrBinded||this.bindHandlr()},bindHandlr:function(){this.handlrBinded=
!0;this.bindTriggerEvent();this.bindCloserEvent();this.bindKeyDownEvent()},bindKeyDownEvent:function(){var b=this,a=b.conf;a.accessible&&b.panel.keydown(function(c){var d=$("#"+b.olyId);if(27==c.which&&a.closeOnEscByLevel)0<$("#"+a.trigger).length&&$("#"+b.panel.attr("id")).is(":visible")&&$("#"+a.trigger).focus(),b.hide(),c.stopPropagation();else if(9===c.which){var e=$('[tabindex="0"],a,input,select,button',d).filter(":visible");if(!(0>=e.length)){var d=e.filter(":first"),e=e.filter(":last"),f=
c.shiftKey,h=c.target;h===e[0]&&!f?(d.focus(),c.preventDefault()):h===d[0]&&f&&(e.focus(),c.preventDefault())}}})},bindTriggerEvent:function(){var b=this,a=null,c=b.conf;"string"===$.type(c.trigger)?(a=[],a.push(c.trigger)):$.isArray(c.trigger)&&(a=c.trigger);null!=a&&$.each(a,function(a,e){var f=$("#"+e);if("click"==c.triggerMode)$("body").on("click","#"+e,function(){b.show($(this));c.roverClickTrackId&&$(document).trigger("rover",{sid:c.roverClickTrackId})});else"ready"==c.triggerMode?f.ready(function(){b.show(f)}):
"mouseover"==c.triggerMode&&(f.bind("focus",function(){f.trigger("mouseover")}),f.bind("focusout",function(){f.trigger("mouseout")}),f.mouseover(function(){if(0
e?e:d);a.body.css({height:"auto",width:d+"px"});
a.container.css({height:"auto",width:"auto"})}c.modal&&k.show(c.mask,a.panel,c.trBgMask);"trigger"==c.position?(shiftx=parseInt(c.shiftness.x),shifty=parseInt(c.shiftness.y),l.trigger(a.panel,b,shiftx,shifty)):"component"==c.position?(shiftx=parseInt(c.shiftness.x),shifty=parseInt(c.shiftness.y),l.component(a.panel,c.component,shiftx,shifty)):"customize"==c.position?l.customize(a.panel,c.top,c.left,c.noFixedPos):"pointer"==c.position?l.pointer(a.panel,b,c.pointerType,c.verticalDefaultX,c.forceVerticalPointerDirection,
c.forceRightPointerDirection,c.forceCenterPointerDirection):l.center(a.panel,c.noFixedPos);c.draggable&&o.register(a.panel,a.panel.find(".hdr"));a.showing=!0;a.notify("show",{source:a});a.pubsub.channel(c.id).publish(c.openSvcId,{ovlyCntr:a.panel});c.closeOnBodyClick&&($("html").bind("click.viOlyBodyClk"+c.id+" touchstart.viOlyBodyClk"+c.id,function(){a.attachBodyClkEvt?a.hide():a.showing&&(a.attachBodyClkEvt=!0)}),$("#"+c.id).bind("click.viOlyBodyClk"+c.id+" touchstart.viOlyBodyClk"+c.id,function(a){a.stopPropagation()}));
c.accessible&&c.enableAutoFocus&&a.focusTabbable();c.accessible&&c.modal&&$("body").children(":not(#"+a.olyId+",script,style)").attr("aria-hidden","true")},focusTabbable:function(){var b=$("#"+this.olyId);if(b&&0").text(a)},createLink:function(a,b,d){return $("").text(a).attr("href",
b).attr("_sp",d)},createIcon:function(a){return $('')},compileTextPattern:function(a,f,d,c,i,g,k){for(var f=$(),h=0;h').appendTo(a);
this.attachOverlayListeners();if(d&&d.entityType===c.ENTITY_INTEREST){$('
').insertAfter(b.find(".fol-error-icon"));d=g.OVERLAY_LABEL_EMAIL[0];var a=a.prop("id")+"-checkbox",f=$('
'),e=f.find("label");f.find("input").attr("id",a);e.attr("for",a).find(".fol-text").text(d);d=this.$checkbox=f.appendTo(b.find("ul"));b=this.$interest=b.find(".name-interest");
$('
'+g.ERROR[0]+'
').appendTo(b);this.$input=d.find("input");this.updateCheckboxState=
i(o,this);this.attachOverlayCheckboxListeners();this.attachNameInterestListeners()}},attachOverlayListeners:function(){var a=this.$el,b=$.proxy;a.on("mouseover",b(s,this));a.on("mouseenter",b(m,this));a.on("mouseleave",b(n,this));a.delegate("a","focusin",b(h,this));a.delegate("a","focusout",b(l,this))},attachOverlayCheckboxListeners:function(){var a=this.$checkbox,b=$.proxy;a.find("input").on("click",b(p,this));a.find(".fol-checkbox-icon").on("keypress",b(q,this));a.on("focusin",b(h,this));a.on("focusout",
b(l,this))},attachNameInterestListeners:function(){var a=this.$interest,b=$.proxy;a.on("click",b(this.onNameInterestClick,this));a.on("keypress",b(this.onNameInterestKeyPress,this));a.on("focusin",b(h,this))},updateInterestName:function(){var a=this.$interest.find("input"),b=a.val();b.length||(b=this.widget.getEntityName(),a.val(b));this.widget.nameInterest(b);this.trackNameInterestClick(c.NAME_INTEREST_ACTION.SAVE)},onNameInterestClick:function(a){var b=$(a.target),d=this.$interest,i=d.find(".name-wrap"),
a=d.find("input"),f=c.NAME_INTEREST_ACTION,e=this.widget;d.find(".error").hide();b.closest(".name").length||b.closest(".fol-edit-icon").length?(this.trackNameInterestClick(f.CLICK),this.toggleNameInterestContent(1),a.val(b=i.text()),a[0].setSelectionRange(0,b.length)):b.closest(".name-interest-save").length?this.updateInterestName():b.closest(".name-interest-cancel").length&&(this.trackNameInterestClick(f.CANCEL),this.toggleNameInterestContent(0),(!e.isMouseOverBtn||e.isTouch)&&this.hide(c.OVERLAY_CLICKED_HIDE_DELAY))},
toggleNameInterestContent:function(a){var b=this.$interest,d=b.find(".name-wrap"),i=b.find("input"),c=b.find(".buttons-wrap");1===a?(this.isNameInterestEditMode=!0,d.hide(),i.show(),c.show()):(this.isNameInterestEditMode=!1,d.show(),i.hide(),c.hide(),b.find(".fol-edit-icon")[0].focus())},toggleNameInterest:function(a){var b=this.$interest;b&&(1===a?b.show():b.hide())},trackNameInterestClick:function(a){$(document).trigger("rover",{sid:c.TRACKING_ID_NAME_INTEREST,act:a})},onNameInterestKeyPress:function(a){a.keyCode===
c.KEY_SPACE||a.charCode===c.KEY_SPACE?$(a.target).closest("input").length||(a.preventDefault(),this.onNameInterestClick(a)):(a.keyCode===c.KEY_ENTER||a.charCode===c.KEY_ENTER)&&this.isNameInterestEditMode&&this.updateInterestName()},cancelHide:function(){null!==this.overlayHideTimer&&(window.clearTimeout(this.overlayHideTimer),this.overlayHideTimer=null)},destroy:function(){var a=this.$el,b=this.$checkbox;a.off("mouseover mouseenter mouseleave");a.undelegate("a","focusin focusout");b.length&&(b.off("focusin"),
b.find("input").off("click"),b.find(".fol-checkbox-icon").off("keypress"),b.off("focusin focusout"))},hide:function(a){if(null===this.overlayHideTimer||!a)this.overlayHideTimer=window.setTimeout($.proxy(r,this),a||0)},show:function(a,b,d,c,f,g){var j,h=this.$el,k=e.visibleOverlay;if(this.enabled)return this.setText(b),h.find("ul").toggle(c),c&&this.updateCheckboxState(!1,!1),h.toggleClass("fol-error",f),this.wasPostClick=g,this.visible=!0,b=d.left,c=$(window).width(),400
c&&(b=c-380-50,
j=d.left+33-b):(b=30,j=d.left+30),d=d.top,c=this.$el,c.find(".fol-olay-inner-notch").css("left",j),c.find(".fol-olay-outer-notch").css("left",j),!f&&k!==this?(k&&k.hide(),e.visibleOverlay=this):f&&k===this&&(e.visibleOverlay=null),this.showTime=(new Date).getTime(),h.appendTo(a).css({left:b,top:d}).fadeIn("fast")},isVisible:function(){return this.$el.is(":visible")},isCheckboxVisible:function(){return this.$checkbox.is(":visible")},hasTabIndex:function(){return 0");var b="";if(null==a.model||null==a.model.soiFISItemList||0==a.model.soiFISItemList.length)$(this.soiInnerCntrId).hide(),$(this.soiInnerCntrNoResultsId).show(),$(this.soiInnerLnksCntrId).hide();
else{for(var c=0;c
=c?b+'':b+'',b=null!=a.model.soiFISItemList[c].pictureURL?b+(''):b+(''),b+="");b+='';$(this.soiInnerCntrId).html(b);null==a.model.soiSeeAllInCategoryUrl?($(this.soiPipeId).hide(),$(this.soiSeeCatLnkId).hide()):($(this.soiSeeCatLnkId).attr("href",a.model.soiSeeAllInCategoryUrl),null!=a.model.sameCatMatchCount&&
$(this.soiSeeCatLnkId).append($("("+a.model.sameCatMatchCount+")")),$(this.soiPipeId).show());null==a.model.soiSeeAllUrl?($(this.soiPipeId).hide(),$(this.soiSeeAllLnkId).hide()):($(this.soiSeeAllLnkId).attr("href",a.model.soiSeeAllUrl),null!=a.model.allCatsMatchCount&&$(this.soiSeeAllLnkId).append($("("+a.model.allCatsMatchCount+")")),a.model.soiSeeAllInCategoryUrl?($(this.soiPipeId).show(),$(this.soiSeeAllLnkId).parent().removeClass("vi-soi-txtrgt")):$(this.soiSeeAllLnkId).parent().addClass("vi-soi-txtrgt"))}}}});raptor.defineModule("com.ebay.raptor.vi.utils.smoothScroll",function(){return{scrollTo:function(b,c){b.preventDefault();var a=c.hash,d=$(a);$("html, body").stop().animate({scrollTop:d.offset().top},700,"swing",function(){window.location.hash=a})}}});raptor.defineClass("com.ebay.raptor.vi.zerodayhandling.timeCounter",function(){return{init:function(a){this.conf=a;this.isShowTime=this.hasHrs=!0;this.startCountdown()},startCountdown:function(){var a=this;a.interval=setInterval(function(){a.updateTime()},6E4)},updateTime:function(){this.hasHrs&&!$("#"+this.conf.hourHldr).html()&&(this.hasHrs=!1);0==this.conf.timeLeftMins?this.hasHrs?(this.conf.timeLeftMins=59,--this.conf.timeLeftHrs,0==this.conf.timeLeftHrs&&($("#"+this.conf.hourHldr).hide(),this.hasHrs=
!1)):(clearInterval(this.interval),$("#"+this.conf.containerElem).hide(),this.isShowTime=!1):0=parseInt($.browser.version,10)){var c=$("#"+a.ebpHdrId).outerWidth();$("#"+a.ebpVarWidthId).width(parseInt(c)-65);0!=a.siteId&&(c=parseInt(c)-365-20,0>c&&(c=0),$("div.vi-bg-ban").width(c))}else $("#"+a.ebpVarWidthId).width("100%");$(window).resize(function(){if($.browser.msie&&7>=parseInt($.browser.version,10)){var b=$("#"+a.ebpHdrId).outerWidth();$("#"+a.ebpVarWidthId).width(parseInt(b)-65);0!=a.siteId&&(b=parseInt(b)-365-20,0>b&&(b=0),$("div.vi-bg-ban").width(b))}})}}});raptor.defineClass("com.ebay.raptor.vi.shipping.CalculateShipping",function(){return{init:function(a){this.cfg=a;this.sendGetRatesCall();this.validateShippingSection();this.pubsub=raptor.require("pubsub")},sendGetRatesCall:function(){var a=this,b=a.cfg;a.ajaxUtil=raptor.require("com.ebay.raptor.vi.AjaxUtil");b.isPaypalAccepted&&b.isGSPEnabled&&($(".hideGspPymt").hide(),$(".pd-showGspLegal").show());b.isGSPEnabled&&a.hideReturns();$("#"+b.getRatesBtn).click(function(){ddVal=$("#"+b.countryDd).val();
zipVal=$("#"+b.zipBx).val();qtyVal=$("#"+b.qtyBx).val();a.validateCountryDDAndZip(ddVal,zipVal);var c=b.getRatesUrl;!c||a.qtyErr||a.zipError||a.ddError?(a.zipError&&($("#"+b.zipBx+"-errIcn").show(),$("#"+b.zipBx+"-errTxt").show()),a.ddError&&($("#"+b.countryDd+"-errIcn").show(),$("#"+b.countryDd+"-errTxt").show())):($("#shCost-err").hide(),$("#shCost-err2").hide(),void 0===qtyVal&&(qtyVal=""),a.isZipAvaialble(ddVal)||(zipVal=""),c=c+"&"+$.param({quantity:qtyVal,country:ddVal,zipCode:zipVal,co:"0"}),
a.triggerCall(c),a.cleanErrorMessage())})},cleanErrorMessage:function(){$("#shCost-err > B").html(" "+$("#shCountry option:selected").text())},validateCountryDDAndZip:function(a){this.ddError="-99"===a?!0:this.zipError=!1},isZipAvaialble:function(a){return this.cfg.countryZipMap[a]?!0:!1},triggerCall:function(a){this.ajaxUtil.getJSON(a,this.handleResponse,this)},isZipRequredAndZipError:function(){return"none"!=$("#shZipCodeDiv").css("display")?(""!=$("shZipCode").val(),!0):!1},handleResponse:function(a){var b=
this.cfg;if(a){var c=a.isBOPIS&&!b.isBOPIS||b.isBOPIS&&!a.isBOPIS,d=a.isEBNOnly&&!b.isEBNOnly||b.isEBNOnly&&!a.isEBNOnly,f=a.isEPLUSOnly&&!b.isEPLUSOnly||b.isEPLUSOnly&&!a.isEPLUSOnly;if(a.isPUDO&&!b.isPUDO||b.isPUDO&&!a.isPUDO||a.isPaidPUDO&&!b.isPaidPUDO||b.isPaidPUDO&&!a.isPaidPUDO||c||d||f)top.location.reload();else{$("#"+b.zipBx+"-errIcn").hide();$("#"+b.zipBx+"-errTxt").hide();$("#"+b.zipBx+"-errTxt2").hide();$("#"+b.countryDd+"-errIcn").hide();$("#"+b.countryDd+"-errTxt").hide();$("#shCost-err").hide();
$("#shCost-err2").hide();$("#freeShip").hide();$("#sh-gspLogoWrapper").hide();$("#impchSummary").hide();$("#impch_xo").hide();$("#impch_show").hide();$("#importChargeSummary").html("");var c=$(".sh-gspFirstLine"),d=$(".sh-gspSecondLine"),f=$("#impchSummary"),e=$("#contentGspLegal");c.show();d.hasClass("sh-gspSecondLineMod")&&d.removeClass("sh-gspSecondLineMod");var g=''+$("#locatedInLabel").html()+"
",h=''+$("#shipsTo").html()+"
";if(a.invalidZip||
a.invalidZipLength)$("#"+b.zipBx+"-errIcn").show(),a.invalidZip&&$("#"+b.zipBx+"-errTxt").show(),a.invalidZipLength&&$("#"+b.zipBx+"-errTxt2").show();else{a.shipCostZipError||a.shipCostError&&this.isZipRequredAndZipError()?$("#shCost-err2").show():a.shipCostError&&$("#shCost-err").show();a.shippingTable&&$("#shippingSection").html(a.shippingTable);a.deliverySummary&&$("#delSummary").html(a.deliverySummary);a.shippingSummary&&$("#shSummary").html(a.shippingSummary);(a.discounts||""===a.discounts)&&
$("#discounts").html(a.discounts);a.freeShipping?($("#freeShip").show(),this.pubsub.publish("UPDATE_PICTURE_RIBBON",{freeShipping:!0})):($("#freeShip").show(),this.pubsub.publish("RESET_PICTURE_RIBBON",{}));a.isShowGSP?($("#sh-gspLogoWrapper").show(),$("#impchSummary").show(),a.isEUShowImportChg?a.hideGspLogo?e.html($("#alternateGspLegalText2").html()):e.html($("#alternateGspLegalText1").html()):(c.hide(),d.hasClass("sh-gspSecondLineMod")||d.addClass("sh-gspSecondLineMod"),f.hide(),a.hideGspLogo?
e.html($("#alternateGspLegalText4").html()):e.html($("#alternateGspLegalText3").html())),this.pubsub.publish("IMP_CHG_SHOW"),a.importChargeCost?($("#impch_show").show(),$("#impchCost").html(a.importChargeCost)):$("#impch_xo").show(),b.isPaypalAccepted&&($(".hideGspPymt").hide(),$(".pd-showGspLegal").show()),this.hideReturns(),a.showEUMessage?($("#vi-sh-imp-nonEU").hide(),$("#vi-sh-imp-EU").show()):($("#vi-sh-imp-nonEU").show(),$("#vi-sh-imp-EU").hide()),$("#sh-gsp-wrap").css({width:"69%","float":"left"})):
($(".hideGspPymt").show(),$(".pd-showGspLegal").hide(),this.pubsub.publish("IMP_CHG_HIDE"),this.showReturns(),$("#sh-gsp-wrap").css({width:"100%","float":"none"}));a.shippingAndDeliverySummary&&$("#shSummaryOneLine").html(a.shippingAndDeliverySummary);0<$("#shSummaryOneLine #ship_Anch").length?($("#shSummaryOneLine #ship_Anch").append(g),$("#shSummaryOneLine #ship_Anch").append(h)):($("#shSummaryOneLine #del_Anch").parent().append(g),$("#shSummaryOneLine #del_Anch").parent().append(h));a.shipsToSummary&&
$("#shipsToSummary").html(a.shipsToSummary);a.shipsTo&&$("#shipsToTab").html(a.shipsTo);if(a.shipTotalCostConv&&$("#convbinPrice")&&"none"!=$("#isum-shipCostDiv").css("display"))try{$("#convbinPrice").get(0).firstChild.nodeValue=a.shipTotalCostConv,$("#convbinPrice > SPAN").show()}catch(i){}else $("#convbinPrice > SPAN").hide();this.pubsub.publish("VI_ACCORDIONS_UPDATE_SNIPPETS",{isCalculateShipping:!0})}}}else $("#shCost-err").show()},validateShippingSection:function(){var a=this,b=a.cfg,c=b.remQty;
$("#"+b.qtyBx).keyup(function(){selectedQty=$("#"+b.qtyBx).val();isInt=a.isInteger(selectedQty);selectedQty=parseInt(selectedQty,10);!isInt||1>selectedQty||selectedQty>c?($("#"+b.qtyBx+"-errIcn").show(),$("#"+b.qtyBx+"-errTxt").show(),a.qtyErr=!0):($("#"+b.qtyBx+"-errIcn").hide(),$("#"+b.qtyBx+"-errTxt").hide(),a.qtyErr=!1)});$("#"+b.countryDd).change(function(){ddVal=$("#"+b.countryDd).val();zipDiv=$("#"+b.zipBx+"Div");"-99"!=ddVal?($("#"+b.zipBx+"errIcn").hide(),$("#"+b.zipBx+"errTxt").hide(),$("#"+
b.getRatesBtn+"Div").show()):$("#"+b.getRatesBtn+"Div").hide();a.isZipAvaialble(ddVal)?$(zipDiv).show():$(zipDiv).hide()})},isInteger:function(a){if(a)for(var b=0,c=a.length;b=d))return!1}return!0},hideReturns:function(){0>=$(".bsi-c-uk-bislr").length&&($("#ret-accept").hide(),$("#ret-accept").next("div.spcr").hide(),0<$("#ret-acpt-tab-au").length?($("#rpdId").children().hide(),$(".section-sttl").show(),$(".rpSubCont .rpAUCont").show().addClass("gspReturn")):
$("#ret-acpt-tab").hide())},showReturns:function(){$("#ret-accept").show();$("#ret-accept").next("div.spcr").show();0<$("#ret-acpt-tab-au").length?($("#rpdId").children().show(),$(".rpSubCont .rpAUCont").removeClass("gspReturn")):$("#ret-acpt-tab").show()}}});raptor.defineClass("com.ebay.raptor.vi.bid.powerbid.inlineSurvey.inlineSurvey",{},function(){var e=function(a){this.cfg=a;this.initValues();this.subscribeEvents();this.attachSurveyEvents(".inlineFeedback")};e.prototype={initValues:function(){this.pubsub=raptor.require("pubsub");this.submitClicked=this.surveySubmitted=!1},subscribeEvents:function(){var a=this,b=a.cfg;a.pubsub.channel(b.linkId+"Oly").subscribe("_OLY_CLS_SVC",function(){a.submitClicked?($("#"+b.inlineFeedbackId+"_result").show(),$("#"+
b.inlineFeedbackId+"_result").focus()):$("#"+b.linkId).focus();a.submitClicked=!1},a)},attachSurveyEvents:function(a){var b=this,c=b.cfg;$("#"+c.inlineFeedbackId+"_submit").bind("click"+a,function(){var a=c.inlineFeedbackId+"_frm",d=b.getFmDoc(a);d&&(d.open(),d.write(''),
d.close());b.submitClicked=!0;b.pubsub.publish("_CLOSE_OLAY",{cmpId:c.linkId+"Oly"});b.submitForm(a);$("#powerBidSurvey").hide()});var d=c.defaultTxt;$("#"+c.inlineFeedbackId+"_comments").focus(function(){$(this).val()==d&&$(this).val("")}).blur(function(){""==$(this).val()&&$(this).val(d)});$("#"+c.inlineFeedbackId+"_cancel").bind("click",function(){b.pubsub.publish("_CLOSE_OLAY",{cmpId:c.linkId+"Oly"});$("#"+c.inlineFeedbackId+"_comments").val(d)})},encodePageDom:function(){var a=document.getElementsByTagName("html")[0].innerHTML;
return a=encodeURIComponent(""+a+"")},submitForm:function(a){var b=this.cfg,c=b.surveyName;try{iDoc=this.getFmDoc(a),iDoc.getElementById("surveyNameHidden").value=c}catch(d){return}var a=raptor.require("ebay.cookies"),e=this.convertDateToUTC(new Date);iDoc.getElementById("rateHidden").value=$("input[name="+b.inlineFeedbackId+"_radio]:checked").val();iDoc.getElementById("guidHidden").value=a.readCookie("npii","tguid");iDoc.getElementById("surveyDateHidden").value=e;iDoc.getElementById("surveyNameHidden").value=
c;iDoc.getElementById("domHidden").value=this.encodePageDom();iDoc.getElementById("pageUrlHidden").value=encodeURIComponent(location.href);b.treatments&&(iDoc.getElementById("treatmentsHidden").value=b.treatments);c=encodeURIComponent($("#"+b.inlineFeedbackId+"_comments").val());c==encodeURIComponent(b.defaultTxt)&&(c="");iDoc.getElementById("userCommentsHidden").value=c;iDoc.getElementById("surveySubmitForm").submit()},convertDateToUTC:function(a){return a.getUTCFullYear()+"-"+a.getUTCMonth()+"-"+
a.getUTCDate()+"-"+a.getUTCHours()+"-"+a.getUTCMinutes()+"-"+a.getUTCSeconds()},getFmDoc:function(a){var b=$("#"+a)[0],c;b.contentDocument?c=b.contentDocument:b.contentWindow?c=b.contentWindow.document:window.frames[a]&&(c=window.frames[a].document);return c},encodePageDom:function(){var a=document.getElementsByTagName("html")[0].innerHTML;return a=encodeURIComponent(""+a+"")}};return e});raptor.defineClass("com.ebay.raptor.vi.StatusMsg",function(){return{init:function(a){this.cfg=a;this.commonClz=a.smClz+" "+a.sizeClz},error:function(){this.cfg.isRefresh?this.addClass("vi-VR-msgMrg20-5 sm-co sm-er","gspr icmer"):this.addClass(this.commonClz+" smo-e","sm-me ebg")},notice:function(){this.cfg.isRefresh?this.addClass("vi-VR-msgMrg20-5 sm-co sm-al","gspr icmal"):this.addClass(this.commonClz+" smo-i","sm-mi ibg")},warning:function(){this.cfg.isRefresh?this.addClass("vi-VR-msgMrg20-5 sm-co sm-er",
"gspr icmer"):this.addClass(this.commonClz+" smo-w","sm-mw wbg")},confirm:function(){this.cfg.isRefresh?this.addClass("vi-VR-msgMrg20-5 sm-co sm-su","gspr icmsu"):this.addClass(this.commonClz+" smo-c","sm-mc cbg")},rmvClass:function(){var a=this.cfg;a.isRefresh?($("#"+a.outer+"_container").removeClass(),$("#"+a.outer+"_icon").removeClass()):($("#"+a.outer).removeClass(),$("#"+a.message).removeClass())},addClass:function(a,c){var b=this.cfg;this.rmvClass();b.isRefresh?($("#"+b.outer+"_container").addClass(a),
$("#"+b.outer+"_icon").addClass(c)):($("#"+b.outer).addClass(a),$("#"+b.message).addClass(c))}}});$.FlashPlayer=function(){var d=require("ebay/cookies"),e={getVersion:function(){var a=$.browser,b=-1;if(a.msie&&!a.opera)for(var a=[10,9],c=0;c'},adjustDim:function(a){if("-1"==a||"9999"==a)a="auto";return a},processDim:function(a,b,c,d){c&&a.css({width:c.match(/auto|\%/)?c:c+"px"});d&&a.css({height:d.match(/auto|\%/)?d:d+"px"});"auto"!=c&&"auto"!=d&&(b?a.css({textAlign:"left"}):a.css({overflow:"hidden"}))}});return b});raptor.require("raptor.rtm.RtmRenderer");raptor.defineClass("raptor.rtm.RtmManager",function(j){var i=j.require("ebay.cookies"),m=j.require("ebay.profiler.Profiler"),k=j.require("raptor.rtm.RtmRenderer"),l=function(){};j.extend(l,{json:null,url:"",ads:{},adsFollows:null,hasExpAds:!1,hasAdSurvey:!1,state:{},dp:{"0":!1,1:!1,2:!1,3:!1},cp:{"0":!1,1:!1,2:!1,3:!1},bRespRet:!1,timeout:3E3,delay:100,type:[],AdSurvey:null,ExpAd:null,ssGaugeVectors:{},ssSRXTimer:null,ssPlacementTimerValues:[],ssPlacementTimerDebug:0<=location.search.indexOf("ssPlacementTimerDebug"),
UITrackerDebug:0<=location.search.indexOf("UITrackerDebug"),UITrackerData:{},lazyLoad:[],scrollx:0,scrolly:0,min_scroll_time_:200,scroll_timer_:null,last_scroll_time_:0,manage:function(a){var b=this;b.json=a;b.json.UITrackingEnabled=!0;b.setupTimers();$(document).bind("RTM_INIT",function(a,d){b.buildURL(a,d)});$(document).bind("RTM_PUBLISH",function(a,d){b.paint(a,d)});$(document).bind("RTM_REGISTER_PLACEMENTS",function(a,d){b.registerPlacements(a,d)});$(document).ready(function(){$(document).trigger("RTM_PUBLISH",
{pids:b.getPids({type:1}).split(",")});$(window).bind("message",function(a,c){b.processMessage(a,c)});b.lazyLoad=b.getPids({type:5,init:2}).split(",");if(0a.min_scroll_time_&&(c=0);a.scroll_timer_=window.setTimeout(function(){a.checkScroll()},c)}},checkScroll:function(){this.last_scroll_time_=(new Date).getTime();for(var a=$(window).height(),b=0;b$("#rtm_html_"+this.lazyLoad[b][0]).offset().top-300&&(this.lazyLoad[b][2]=1,$(document).trigger("RTM_INIT",{init:2,pids:[this.lazyLoad[b][0]]}),$(document).trigger("RTM_PUBLISH",{pids:[this.lazyLoad[b][0]]}));this.scroll_timer_=null},renderLazyLoadingAd:function(a){try{if(a[0]){var b=a[0].id;k.loadAd(a[0].type,{content:a[0].content,defaultURL:"",height:a[0].height,width:a[0].width,htmlID:"rtm_html_"+b,id:b,type:a[0].type})}}catch(c){}},storeResponse:function(a){var b=
this,c;b.ssSRXTimer=(new Date).getTime()-b.ssSRXTimer;b.trackPlacementPerformance("i_7i",b.ssSRXTimer);try{if(b.bRespRet=!0,a[0]&&(c=a[0].id,b.state.d&&$.each(b.state.d.pids,function(a,d){d==c&&(b.state.d.response=!0)}),b.state.c&&$.each(b.state.c.pids,function(a,d){d==c&&(b.state.c.response=!0)})),b.mergeAds(a),b.loadExtJS(),b.onPublish(),b.type[0])for(var d=b.type.length,a=0;a").css({position:"absolute"});"undefined"===typeof a.top&&(a.top=b.ads[a.pid].height-60);c.css({top:a.top});"undefined"===typeof a.left?c.css({width:"100%",left:"0px","text-align":"center"}):c.css({width:"auto",left:a.left});
$("#rtm_html_"+a.pid).css({position:"relative",overflow:"visible"}).append(c);try{require("follow/renderer",function(){require("raptor/renderer").render("follow/renderer",{csrf:b.json.csrfToken,entityType:"interest",entityId:a.ssid,entityName:a.interestId,userId:b.json.userId,pageId:b.json.pageId,searchUrl:a.searchUrl,btnClass:"btn btn-g btn-s"+(a.ssid?" fol-followed":""),label:a.ssid?"BUTTON_FOLLOWING":"BUTTON_FOLLOW"}).appendTo(c[0])})}catch(d){b.createFollowAd(a,c)}},showFollowError:function(a){$("#"+
a).addClass("fol-error");$("#"+a+" p span").html("An internal error has occurred. Please try again later.");setTimeout(function(){$("#"+a).removeClass("fol-error").hide()},6E3)},createFollowAd:function(a,b){var c={"0":{p:"ebay.com",q:"qa"},3:{p:"ebay.co.uk",q:"uk.paradise.qa"},77:{p:"ebay.de",q:"de.paradise.qa"},15:{p:"ebay.com.au",q:"au.paradise.qa"}},d=GH.C.siteId,e="undefined"!==GH_config.qapool,f="";if(c.hasOwnProperty(d)){var f="http://www."+(e?c[d].q+".ebay.com":c[d].p),g=this,h="fol-"+b.parent().attr("id");
g.injectFollowStyles();c="
").appendTo(b).css({top:"36px",left:"20px"});c.bind("click",function(){var b=this;$(this).hasClass("fol-followed")?
(g.svcUnfollow=f+"/sch/favsearch?_efs=true&csrf="+g.json.csrfToken+"&replaceid="+a.ssid+"&mode=4&_="+(new Date).getTime(),$.ajax({url:g.svcUnfollow,method:"GET",dataType:"jsonp",success:function(a){"success"==a.model.status?($("#"+h).hide(),$(b).removeClass("fol-followed").find("span:last-child").html("Follow")):g.showFollowError(h)},error:function(b,a,c){g.showFollowError(h);window.console&&console.log&&console.log(a,c)}})):(g.svcFollow=f+"/sch/favsearch?_efs=true&emailme=0&savedsearch="+encodeURIComponent(a.searchUrl)+
"&csrf="+g.json.csrfToken+"&searchname="+a.interestId+"&ssid="+a.ssid+"&mode=2&visibility=PRIVATE&_="+(new Date).getTime(),$.ajax({url:g.svcFollow,method:"GET",dataType:"jsonp",success:function(c){"success"==c.model.status?($(b).addClass("fol-followed").find("span:last-child").html("Following"),$("#"+h+" p span").html("You'll see updates in your feed.").show(),a.ssid=c.model.m_searchId):g.showFollowError(h)},error:function(b,a,c){g.showFollowError(h);window.console&&console.log&&console.log(a,c)}}))});
c.hover(function(){$(this).hasClass("fol-followed")?($(this).addClass("fol-unfollow"),$("#"+h+" p span").html("Unfollow to stop seeing updates in your feed.")):$("#"+h+" p span").html("Follow to see more in your eBay feed.");$("#"+h).removeClass("fol-error").show()},function(){$(this).removeClass("fol-unfollow");$("#"+h).removeClass("fol-error").hide()})}},injectFollowStyles:function(){$("
",{html:''}).appendTo("body")},
getFollowing:function(a){var b=this;null!=b.adsFollows?b.getSearchUrlAndSSID(a):($.ajaxSetup({cache:!0}),$.ajax({url:b.json.jsonpSvcUrl,data:{url:b.json.followSvcUrl,data:'{"user":{"id":"'+b.json.userId+'","type":"USERNAME","convert_to":"ACCOUNT_ID"}}',method:"GET",_csrf:b.json.csrfToken},dataType:"jsonp",success:function(c){b.adsFollows=c.data.follows;b.getSearchUrlAndSSID(a)}}))},getSearchUrlAndSSID:function(a){for(var b=0;b