');this.$body.append(this.$elm);remove=function(event,modal){modal.elm.remove();};this.showSpinner();el.trigger($.modalMMG.AJAX_SEND);$.get(target).done(function(html){if(!$.modalMMG.isActive())return;el.trigger($.modalMMG.AJAX_SUCCESS);var current=getCurrent();current.$elm.empty().append(html).on($.modalMMG.CLOSE,remove);current.hideSpinner();current.open();el.trigger($.modalMMG.AJAX_COMPLETE);}).fail(function(){el.trigger($.modalMMG.AJAX_FAIL);var current=getCurrent();current.hideSpinner();modals.pop();el.trigger($.modalMMG.AJAX_COMPLETE);});}}else{this.$elm=el;this.$body.append(this.$elm);this.open();}};$.modalMMG.prototype={constructor:$.modalMMG,open:function(){var m=this;this.block();if(this.options.doFade){setTimeout(function(){m.show();},this.options.fadeDuration*this.options.fadeDelay);}else{this.show();}
$(document).off('keydown.modalMMG').on('keydown.modalMMG',function(event){var current=getCurrent();if(event.which==27&¤t.options.escapeClose)current.close();});if(this.options.clickClose)
this.$blocker.click(function(e){if(e.target==this)
$.modalMMG.close();});},close:function(){modals.pop();this.unblock();this.hide();if(!$.modalMMG.isActive())
$(document).off('keydown.modalMMG');},block:function(){this.$elm.trigger($.modalMMG.BEFORE_BLOCK,[this._ctx()]);this.$body.css('overflow','hidden');this.$blocker=$('
').appendTo(this.$body);selectCurrent();if(this.options.doFade){this.$blocker.css('opacity',0).animate({opacity:1},this.options.fadeDuration);}
this.$elm.trigger($.modalMMG.BLOCK,[this._ctx()]);},unblock:function(now){if(!now&&this.options.doFade)
this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,true));else{this.$blocker.children().appendTo(this.$body);this.$blocker.remove();this.$blocker=null;selectCurrent();if(!$.modalMMG.isActive())
this.$body.css('overflow','');}},show:function(){this.$elm.trigger($.modalMMG.BEFORE_OPEN,[this._ctx()]);if(this.options.showClose){this.closeButton=$('
'+this.options.closeText+'');this.$elm.append(this.closeButton);}
this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker);if(this.options.doFade){this.$elm.css('opacity',0).show().animate({opacity:1},this.options.fadeDuration);}else{this.$elm.show();}
this.$elm.trigger($.modalMMG.OPEN,[this._ctx()]);},hide:function(){this.$elm.trigger($.modalMMG.BEFORE_CLOSE,[this._ctx()]);if(this.closeButton)this.closeButton.remove();var _this=this;if(this.options.doFade){this.$elm.fadeOut(this.options.fadeDuration,function(){_this.$elm.trigger($.modalMMG.AFTER_CLOSE,[_this._ctx()]);});}else{this.$elm.hide(0,function(){_this.$elm.trigger($.modalMMG.AFTER_CLOSE,[_this._ctx()]);});}
this.$elm.trigger($.modalMMG.CLOSE,[this._ctx()]);},showSpinner:function(){if(!this.options.showSpinner)return;this.spinner=this.spinner||$('
').append(this.options.spinnerHtml);this.$body.append(this.spinner);this.spinner.show();},hideSpinner:function(){if(this.spinner)this.spinner.remove();},_ctx:function(){return{elm:this.$elm,$blocker:this.$blocker,options:this.options};}};$.modalMMG.close=function(event){if(!$.modalMMG.isActive())return;if(event)event.preventDefault();var current=getCurrent();current.close();return current.$elm;};$.modalMMG.isActive=function(){return modals.length>0;}
$.modalMMG.defaults={closeExisting:true,escapeClose:true,clickClose:true,closeText:'Close',closeClass:'',modalClass:"modalMMG",spinnerHtml:null,showSpinner:true,showClose:false,fadeDuration:400,fadeDelay:0};$.modalMMG.BEFORE_BLOCK='modal:before-block';$.modalMMG.BLOCK='modal:block';$.modalMMG.BEFORE_OPEN='modal:before-open';$.modalMMG.OPEN='modal:open';$.modalMMG.BEFORE_CLOSE='modal:before-close';$.modalMMG.CLOSE='modal:close';$.modalMMG.AFTER_CLOSE='modal:after-close';$.modalMMG.AJAX_SEND='modal:ajax:send';$.modalMMG.AJAX_SUCCESS='modal:ajax:success';$.modalMMG.AJAX_FAIL='modal:ajax:fail';$.modalMMG.AJAX_COMPLETE='modal:ajax:complete';$.fn.modalMMG=function(options){if(this.length===1){new $.modalMMG(this,options);}
return this;};$(document).on('click.modalMMG','a[rel="modal:close"]',$.modalMMG.close);$(document).on('click.modalMMG','a[rel="modal:open"]',function(event){event.preventDefault();$(this).modalMMG();});})(jQuery);;var boldchat_enabled_ind=false;document.getElementsByClassName=function(cl){var retnode=[];var myclass=new RegExp('\\b'+cl+'\\b');var elem=this.getElementsByTagName('*');for(var i=0;i
1)?urlParts[1]:null;}
function setReferrerCookie(){var nowDate=new Date();var expiresDate=new Date();expiresDate.setTime(expiresDate.getTime()+(referrerCookieExpirationDays*24*60*60*1000));var cookieValue="REF="+escape(REF)+":REFD="+escape(nowDate.toGMTString())+":CID="+escape(CID)+":SRC="+escape(LAND)+"; expires="+expiresDate.toGMTString()+"; path=/"+"; domain="+domain;document.cookie=cookieValue;}
function isReferrerCookieSet(){return(document.cookie.indexOf("REF=")==-1);}
function isValidReferrerDomain(){var invalidDomainsRE=new RegExp("paypal\\.com|^https?:\\/\\/(www\\.)?"+domain+"","gi");return!invalidDomainsRE.test(REF);}
function isValidPPCSrc(src){var validPPCRE=new RegExp("\\?(as|aw|as&.*|aw&.*|az|ar|biz|be|ci|dt|ls|msn|msn&.*|my|nt|ov|pg|pr|ps|pt|pw|sd|sm|sp|y|source=CashbackShopping)(&zmam=2134960&zmas=1&zmac=[0-9]+&zmap=.*?)?$");return validPPCRE.test(src);}
function isValidAffiliateSrc(src){var validAffiliateRE=new RegExp("\\?aff-(isv)-(.+)$","i");return validAffiliateRE.test(src);}
if(isReferrerCookieSet()){setReferrerCookie();}else{var cookieREF=unescape(document.cookie.replace(/.*REF=([^:]*).*/g,"$1"));var cookieLAND=unescape(document.cookie.replace(/.*SRC=([^;]*).*/g,"$1"));if(isValidReferrerDomain()&&!isValidAffiliateSrc(cookieLAND)&&(isValidPPCSrc(LAND)||isValidAffiliateSrc(LAND)||((cookieREF=="")&&!isValidAffiliateSrc(cookieLAND)&&!isValidPPCSrc(cookieLAND)))){setReferrerCookie();}}
if(document.cookie.indexOf("CID=")==-1){var REF=unescape(document.cookie.replace(/.*REF=([^:]*).*/g,"$1"));var LAND=unescape(document.cookie.replace(/.*SRC=([^;]*).*/g,"$1"));setReferrerCookie();}
var CID=unescape(document.cookie.replace(/.*CID=([^:]*).*/g,"$1"));var REMOTE_HOST="(none)";var availablehtml="Orders ship same day (including overnight and expediated delivery options) if placed by 2pm Central time during business days. Please call customer service or your account manager for exceptions.";var unavailablehtml="We are experiencing extended lead times for certain products. We will contact you with the expected delivery date when available.";var directcosthtml="If lead time is longer, we will contact you.";var addtocartpricehtml="Some manufacturers don't allow us to advertise our low prices. Add this item to your cart to see our lowest available price.";var loginpricehtml="Some manufacturers don't allow us to advertise our low prices. By creating an account or logging in, you'll have access to all our best prices across the site.";var configurationshtml="We carry a number of options or configurations of this product (for example, different interfaces or different included cables, etc).
Products marked TOP SELLING are the most popular configurations with our customers.";var freeshippinghover="Enjoy free Super Saver Shipping to the lower 48 United States";var truesupporthtml="Your Zero-Hassle Solution to Device Support - Lightning-Fast Response and Uptime
- Hardware Helpdesk Support
- RMA Repair Facilitation
- OEM Service Contract Management
- Premium Phone & Email Support
";function addChecked(classname,link,main_part,qty,form_key=''){var cartlink=link;var addtocart=document.getElementsByClassName(classname);var addtnqtystr='';for(var i=0;i1){if(filtertd){if(jQuery.trim(boxbodycheck[1].innerHTML)==""){filters.style.display='none';filtertd.style.display='none';filter_loader.style.display='none';}
else{filters.style.display='block';filtertd.style.display='block';filter_loader.style.display='none';}}}
else if(typeof display_only_search_results!=='undefined'){if(filtertd){if(boxbodycheck.length&&jQuery.trim(boxbodycheck[0].innerHTML)==""){filters.style.display='block';filtertd.style.display='block';if(narrow_your_search){narrow_your_search.style.display='none';narrow_your_search.style.display='none';}
filter_loader.style.display='none';}
else{if(narrow_your_search){narrow_your_search.style.display='block';narrow_your_search.style.display='block';}
filters.style.display='block';filtertd.style.display='block';filter_loader.style.display='none';}}}
else{if(cat_description&&resultsshadow){cat_description.style.width='700px';resultsshadow.style.width='950px';resultsshadow.style.background='url(/images/shadow_mainimage.png) center 0 no-repeat';filter_loader.style.display='none';}
if(filterspace){filterspace.style.paddingLeft='8px';filter_loader.style.display='none';}}}
function showFilters(){var filtercats=document.getElementById('filter_categories'),filter_loader=document.getElementById('filter-loader');if(filtercats){filtercats.style.display='block';filter_loader.style.display='none';}}
function modelPageResizer(){var productimages=document.getElementById('product-images');var modeldetails=document.getElementById('model-details');var modelinfo=document.getElementById('model-info');if(!productimages){jQuery(modeldetails).width(jQuery(modelinfo).width());}}
function switchFilterGroupNav(nav_obj,group,switch_from,switch_to)
{document.getElementById("filter_group_nav_"+group+"_"+switch_from).className="filter_group_nav_off";nav_obj.className="filter_group_nav_on";document.getElementById("filter_"+group+"_"+switch_from).style.display="none";document.getElementById("filter_"+group+"_"+switch_to).style.display="block";}
function toggleHiddenDivs(arg)
{var callingA=document.getElementById("Control_"+arg);var displayTABLE=document.getElementById("DT_"+arg);var titleTD=document.getElementById("BARTD_"+arg);var blocksToHide=getElementsByClass("HE_"+arg,displayTABLE,"tr");var message="";if(titleTD.style.display=="")
{titleTD.style.display="none";message="+ All descriptions";}
else
{titleTD.style.display="";message="- One description";}
for(var i in blocksToHide)
{if(blocksToHide[i].style.display=="")
{blocksToHide[i].style.display="none";}
else
{blocksToHide[i].style.display="";}}
while(callingA.hasChildNodes())
{callingA.removeChild(callingA.childNodes[0]);}
callingA.appendChild(document.createTextNode(message));}
function getElementsByClass(searchClass,node,tag)
{var classElements=new Array();if(node==null)
node=document;if(tag==null)
tag='*';var els=node.getElementsByTagName(tag);var elsLen=els.length;var pattern=new RegExp("(^|\\s)"+searchClass+"(\\s|$)");for(i=0,j=0;i");$("body").append($tempInput);$tempInput.val(copy_text).select();document.execCommand("copy");$tempInput.remove();}
function stockChecker(partnum,stockcode){data=new Object();show_nimax_row_ind=1;data.partnum=partnum;data.stockcode=stockcode
$.ajax({url:"https://"+window.location.hostname+"/stockchecker.htm",type:"POST",dataType:"json",data:data,'beforeSend':function(){$('.stockbtn'+data.partnum).hide();$('.loading'+data.partnum).show();},error:function(jqXHR,textStatus,error){$('.stockbtn'+data.partnum).show();$('.loading'+data.partnum).hide();},success:function(response){$('.stockbtn'+data.partnum).show();$('.loading'+data.partnum).hide();$.each(response,function(rootlv){if(rootlv!='updatetime'&&rootlv!='partnum'){var stocknum=response[rootlv].stocknum;var costnum=response[rootlv].costnum;if((rootlv=='ScanSource'||rootlv=='BlueStar')&&stocknum>0){show_nimax_row_ind=0;}
if(response[rootlv].authError==false){$('#'+rootlv+'Stock'+response.partnum).html(stocknum);}
if(response[rootlv].authError==false&&costnum!=0&&costnum!=''){$('#'+rootlv+'Cost'+response.partnum).html(costnum);}}});if(show_nimax_row_ind){$('#nimax_stock_row').css("display","table-row");}
if(response.updatetime){$('#lastref'+response.partnum).html(response.updatetime);}}});}
function marketoSubscribe(email){data=new Object();data.email=email;var returnhash=null;var retval=true;if(window.location.protocol!="https:"){var prefix="http";}
else{var prefix="https";}
jQuery.ajax({url:prefix+"://"+window.location.hostname+"/marketohash.htm",type:"POST",dataType:"json",data:data,success:function(response){mktoMunchkin("498-VDY-741");mktoMunchkinFunction('associateLead',{Email:email,LeadSource:'Subscribers - BarcodesInc'},response);},error:function(response){retval=false;}});return retval;}
function searchRedirect(searchtext,perlfect){var redirstr="/search.htm?";if(perlfect){redirstr+="q=";}
window.location.replace(redirstr+searchtext);}
var tooltip=function(){var id='tt';var top=3;var left=3;var maxw=300;var speed=10;var timer=20;var endalpha=95;var alpha=0;var tt,t,c,b,h,tooltipWIdth;var ie=document.all?true:false;return{show:function(v,w){if(tt==null){tt=document.createElement('div');tt.setAttribute('id',id);t=document.createElement('div');t.setAttribute('id',id+'top');c=document.createElement('div');c.setAttribute('id',id+'cont');b=document.createElement('div');b.setAttribute('id',id+'bot');tt.appendChild(t);tt.appendChild(c);tt.appendChild(b);document.body.appendChild(tt);tt.style.opacity=0;tt.style.filter='alpha(opacity=0)';document.onmousemove=this.pos;}
tt.style.display='block';c.innerHTML=v;tt.style.width=w?w+'px':'auto';;if(!w&&ie){t.style.display='none';b.style.display='none';tt.style.width=tt.offsetWidth;t.style.display='block';b.style.display='block';}
tooltipWIdth=tt.offsetWidth;if(tt.offsetWidth>maxw){tt.style.width=maxw+'px';tooltipWIdth=maxw;}
h=parseInt(tt.offsetHeight)+top;clearInterval(tt.timer);tt.timer=setInterval(function(){tooltip.fade(1)},timer);},pos:function(e){var u=ie?event.clientY+document.documentElement.scrollTop:e.pageY;var l=ie?event.clientX+document.documentElement.scrollLeft:e.pageX;if(window.innerWidth>tooltipWIdth+l+left){tt.style.left=(l+left)+'px';}
else{tt.style.right=10+'px';tt.style.left='auto';}
tt.style.top=(u-h)+'px';},fade:function(d){var a=alpha;if((a!=endalpha&&d==1)||(a!=0&&d==-1)){var i=speed;if(endalpha-a