/*! qQuery Helper File, (c) Copyright 2014 QVC, Inc, Last Updated 11/21/2014 1:30PM */ var qGet={id:function(a){return document.getElementById(a)},tag:function(a,c){return"undefined"!=typeof c?c.getElementsByTagName(a):document.getElementsByTagName(a)},className:function(a,c){var d=qGet.tag("*",c),e=[],f=new RegExp("(^|\\s)"+a+"(\\s|$)");for(i=0;i=d;d+=5)(function(){var e=d;setTimeout(function(){a.style.height=e/100*c+"px"},10*(e+1))})()},fadeIn:function(a){qElement.setOpacity(a,0);qElement.show(a);for(var c=0;100>=c;c+=5)(function(){var d=c;setTimeout(function(){qElement.setOpacity(a,d)},10*(d+1))})()},setClass:function(a,c){a.className= c},byId:function(a){return document.getElementById(a)},getNodeID:function(a,c){var d,e=a.childNodes.length;for(i=0;i");var c=$(a).parent();$(a).attr("readonly","readonly");var f='';$(a).before(f);var f={onSelect:changeDate,minDate:d.min,maxDate:d.max,showButtonPanel:!0,altField:a,altFormat:"M d"},g=c.children(".inputQCalendar");g.datepicker(f);g.datepicker("setDate",d.cur);for(var f='";$(a).after(f);c.children(".selQCalendar").change(function(){changeDate(new Date($(this).val()))});f='';$(a).after(f);c.children(".calendarButton").click(function(){g.datepicker("show")});$(a).focus(function(){g.datepicker("show")})})}}, qPage={height:function(){return document.body.scrollHeight},width:function(){return document.body.scrollWidth},scrollX:function(){var a=document.documentElement;return self.pageXOffset||a&&a.scrollLeft||document.body.scrollLeft},scrollY:function(){var a=document.documentElement;return self.pageYOffset||a&&a.scrollTop||document.body.scrollTop},windowHeight:function(){var a=document.documentElement;return self.innerHeight||a&&a.clientHeight||document.body.clientHeight},windowWidth:function(){var a= document.documentElement;return self.innerWidth||a&&a.clientWidth||document.body.clientWidth},blockTextSelection:function(){document.body.focus();document.onselectstart=function(){document.body.style.cursor="pointer";return!1}},unblockTextSelection:function(){document.onselectstart=function(){document.body.style.cursor="default";return!0}},isCanvasSupported:function(){var a=document.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},isCSSSupported:function(a){a=a.toLowerCase();a= a.charAt(0).toUpperCase()+a.slice(1);a=(a.toLowerCase()+"|Webkit"+a+"|Moz"+a+"|O"+a+"|ms"+a).split("|");for(i=0;i
==>   "+a}},qString={condense:function(a,c,d){a=String(a);a=a.replace(/\W/g,"").substr(0,c);return"upper"==d?a.toUpperCase():a.toLowerCase()},toCapitals:function(a){var c=a.toLowerCase().split(" ");a="";for(var d=0;dc&&0!=c?(document.getElementById(d).innerHTML="expired",setTimeout("countdown.startCounting('"+(a-1)+"', "+c+",'"+d+"');",1E3)):(document.getElementById(d).innerHTML= h+f+":"+l+g+":"+m+k,--a,0<=a?setTimeout("countdown.startCounting('"+a+"', "+c+",'"+d+"');",1E3):document.getElementById(d).innerHTML="expired")}},ajax={requestObj:null,isBusy:!1,grabFile:function(a,c,d){ajax.isBusy&&(ajax.requestObj.onreadystatechange=function(){},ajax.requestObj.abort(),ajax.data=null);ajax.requestObj=ajax.getHTTPObject();ajax.requestObj&&(ajax.requestObj.onreadystatechange=function(){ajax.parseResponse(ajax.requestObj,c,d)},ajax.requestObj.open("GET",a,!0),ajax.isBusy=!0,ajax.requestObj.send(null))}, addToCart:function(a,c,d){ajax.isBusy||(ajax.requestObj=ajax.getHTTPObject(),ajax.requestObj&&(ajax.requestObj.onreadystatechange=function(){ajax.parseCartResponse(ajax.requestObj,d)},ajax.requestObj.open("GET","/AddToCart?storeId=10251&catalogId=10151&orderId=.&URL=OrderItemDisplay?updatePrices=1&calculationUsageId=-1&orderId=.&errorViewName=CatalogItemAddErrorView&langId=-1&partNumber="+a+"&quantity="+c,!0),ajax.isBusy=!0,ajax.requestObj.send(null)))},getQA:function(a,c){ajax.isBusy||null===a|| (ajax.requestObj=ajax.getHTTPObject(),ajax.requestObj&&(ajax.requestObj.onreadystatechange=function(){ajax.parseQAResponse(ajax.requestObj,c)},ajax.requestObj.open("GET","/webapp/wcs/stores/servlet/GetResetQuestionsAjax?storeId=10251&catalogId=10151&langId=-1&emailAddress="+a,!0),ajax.isBusy=!0,ajax.requestObj.send(null)))},getHTTPObject:function(){var a=!1;if(window.XMLHttpRequest)a=new XMLHttpRequest;else if(window.ActiveXObject)try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){a= !1}}return a},parseResponse:function(a,c,d){4!=a.readyState||200!=a.status&&304!=a.status||(-1!=a.responseText.indexOf("parseFloat(a)||e==parseFloat(a)&&(f>parseFloat(c)||f==parseFloat(c)&&g>=parseFloat(d))? !0:!1}}},tooltip={platforms:!1,isIE6:"",isIE:"",isIE7:"",isFF:!1,isMobile:!1,isOpening:!1,isOpen:!1,currTitle:"",element:null,prevEl:null,tip:null,delay:null,alreadyTagged:[],init:function(a,c){tooltip.platforms||(tooltip.isIE6="msie"==platform.browser&&7>platform.version||!1,tooltip.isIE7="msie"==platform.browser&&8>platform.version&&(8>document.documentMode||"undefined"==typeof document.documentMode)||!1,tooltip.isIE="msie"==platform.browser||!1,0!=platform.device&&(tooltip.isMobile=!0),tooltip.platforms= !0);if("undefined"==typeof c){if(tooltip.isMobile)return}else if("click"==c){if(!tooltip.isMobile)return;null!=tooltip.element&&(tooltip.prevEl=tooltip.element)}else if("alert"==c){if(!tooltip.isMobile)return;null!=tooltip.element&&(tooltip.prevEl=tooltip.element)}else if("close"==c&&!tooltip.isOpen)return;if(!tooltip.isIE||"undefined"!=typeof c&&"close"!==c||"mouseout"!=window.event.type||tooltip.isOpen||tooltip.isOpening)tooltip.element=a,null!=tooltip.delay?(clearTimeout(tooltip.delay),tooltip.delay= null,tooltip.isOpening=!1,tooltip.element.title=tooltip.currTitle):tooltip.isOpen?(tooltip.isOpen=!1,tooltip.isMobile||(tooltip.element.title=tooltip.currTitle),tooltip.close(),tooltip.element!=tooltip.prevEl&&tooltip.init(tooltip.element,"click")):tooltip.isMobile&&"alert"==c?(tooltip.currTitle=tooltip.element.title,tooltip.alert()):tooltip.isMobile||"alert"==c?(tooltip.currTitle=tooltip.element.title,tooltip.open()):tooltip.isOpening||(tooltip.currTitle=tooltip.element.title,tooltip.element.title= "",tooltip.isOpening=!0,tooltip.delay=setTimeout(tooltip.open,500))},open:function(){tooltip.delay=null;tooltip.isOpen=!0;tooltip.isOpening=!1;tooltip.build()},close:function(){document.body.removeChild(tooltip.tip);tooltip.tip=null},alert:function(){alert(tooltip.currTitle)},tag:function(){var a=tooltip.element.getAttribute("manual_cm_sp");if(""!=a&&null!=a){for(i=0;i=e-20?(a.style.left=qElement.findX(tooltip.element)+qElement.fullWidth(tooltip.element)- qElement.fullWidth(a)+13+"px",c.style.left=qElement.findX(a)+qElement.fullWidth(a)-26+"px",d.style.left=qElement.findX(a)+qElement.fullWidth(a)-26+"px"):(a.style.left=qElement.findX(tooltip.element)-13+"px",c.style.left=qElement.findX(a)+12+"px",d.style.left=qElement.findX(a)+12+"px");qElement.findY(tooltip.element)-qElement.fullHeight(a)-20<=qPage.scrollY()?(a.style.top=qElement.findY(tooltip.element)+qElement.fullHeight(tooltip.element)+10+"px",c.style.borderTop="none",d.style.borderTop="none", c.style.borderBottom="7px solid #EEEDF7",d.style.borderBottom="7px solid #CFD5E3",c.style.top=tooltip.isFF?qElement.findY(a)-6+"px":tooltip.isIE7?qElement.findY(a)-20+"px":qElement.findY(a)-5+"px",d.style.top=tooltip.isIE7?qElement.findY(a)-22+"px":qElement.findY(a)-7+"px"):(a.style.top=qElement.findY(tooltip.element)-qElement.fullHeight(a)-12+"px",c.style.top=tooltip.isFF?qElement.findY(a)+qElement.fullHeight(a)-1+"px":qElement.findY(a)+qElement.fullHeight(a)-2+"px",d.style.top=qElement.findY(a)+ qElement.fullHeight(a)+"px")}},hpRecs={scrollMax:0,isBusy:!1,init:function(){var a=document.getElementById("bottomRecProds"),c=document.getElementById("bottomRecTable");null!=a&&null!=c&&(hpRecs.scrollMax=qElement.fullWidth(c)-qElement.fullWidth(a),0qPage.width()||(0=hpRecs.scrollX()%167?hpRecs.scrlLeft(hpRecs.scrollX()-hpRecs.scrollX()%167):70=hpRecs.scrollX()%167&&hpRecs.scrlRight(hpRecs.scrollX()-hpRecs.scrollX()%167+167))},checkScrollPos:function(){1>hpRecs.scrollX()?hpRecs.inActArr("left"):hpRecs.scrollX()>hpRecs.scrollMax-1?hpRecs.inActArr("right"):hpRecs.inActArr(null)}, inActArr:function(a){var c=document.getElementById("botRecLA"),d=document.getElementById("botRecRA");if("left"==a)c.className="recZoneArrow recArrLeft inactiveArr";else if("right"==a)d.className="recZoneArrow recArrRight inactiveArr";else if("recZoneArrow recArrLeft inactiveArr"==c.className||"recZoneArrow recArrRight inactiveArr"==d.className)c.className="recZoneArrow recArrLeft",d.className="recZoneArrow recArrRight"},barScroll:function(a,c){hpRecs.isBusy||("right"==a?hpRecs.scrlRight(hpRecs.scrollX()+ 167):hpRecs.scrlLeft(hpRecs.scrollX()-167))},scrlLeft:function(a){hpRecs.isBusy=!0;var c=document.getElementById("bottomRecProds");if(0>=hpRecs.scrollX())hpRecs.isBusy=!1;else{var d=hpRecs.scrollX()-a,d=d-.75*d;1>=d?(c.scrollLeft=a,hpRecs.isBusy=!1):(c.scrollLeft=hpRecs.scrollX()-d,setTimeout("hpRecs.scrlLeft("+a+",0)",25))}},scrlRight:function(a){hpRecs.isBusy=!0;var c=document.getElementById("bottomRecProds");if(hpRecs.scrollX()>=hpRecs.scrollMax)hpRecs.isBusy=!1;else{var d=a-hpRecs.scrollX(),d= d-.75*d;1>=d?(c.scrollLeft=a,hpRecs.isBusy=!1):(c.scrollLeft=d+hpRecs.scrollX(),setTimeout("hpRecs.scrlRight("+a+",0)",25))}},scrollX:function(){var a=document.getElementById("bottomRecProds");return a&&a.scrollLeft}},get={id:function(a){return document.getElementById(a)},tag:function(a,c){return"undefined"!=typeof c?c.getElementsByTagName(a):document.getElementsByTagName(a)},className:function(a,c){var d=get.tag("*",c),e=[],f=new RegExp("(^|\\s)"+a+"(\\s|$)");for(i=0;i=d;d+=5)(function(){var e=d;setTimeout(function(){a.style.height=e/100*c+"px"},10* (e+1))})()},fadeIn:function(a){element.setOpacity(a,0);element.show(a);for(var c=0;100>=c;c+=5)(function(){var d=c;setTimeout(function(){element.setOpacity(a,d)},10*(d+1))})()},setClass:function(a,c){a.className=c},byId:function(a){return document.getElementById(a)},getNodeID:function(a,c){var d,e=a.childNodes.length;for(i=0;i
==>   "+a}},string={condense:function(a,c,d){a=String(a);a=a.replace(/\W/g,"").substr(0,c);return"upper"==d?a.toUpperCase():a.toLowerCase()}};