var prefCookie=getPreferencesCookie();var subdomain=prefCookie.ps;var lang=prefCookie.pl;var currency=prefCookie["pc_"+subdomain];$(document).ready(function(){var a=ReadCookie("preferDigitalCatalog");$("a.toggle-trigger, a.toggle-default").click(function(){var f=$(this);$("a.toggle-trigger, a.toggle-default").not(f).removeClass("active").next().slideUp("fast");$(this).toggleClass("active").next().slideToggle("fast")});$("a.toggle-showall").click(function(){$("a.toggle-trigger, a.toggle-default").each(function(){$(this).addClass("active").next().slideDown("fast")
})});$("a.toggle-default").addClass("active").next().slideDown("fast");$("a.skype").click(function(){if(!CantDetect){DownloadSkype()}});var c=undefined;$("a[href^='http://']:not([href$=pdf]):not([id$='lnkDataSheet'])").click(function(){if($(this).attr("target")=="_blank"){c="/outgoing/"+jQuery.url.segment(0)+"/"+$(this).attr("href").replace("http://","");if(c!=undefined){trackLinks(c)}}});$("a[href^='http://'][href$=pdf]:not([id$='lnkDataSheet'])").click(function(){if($(this).attr("target")=="_blank"){c="/outgoing/pdf/"+$(this).attr("href").replace("http://","").replace("../","");
if(c!=undefined){trackLinks(c)}}});$("a[href$=pdf]:not([href^='http://']):not([id$='lnkDataSheet'])").click(function(){if($(this).attr("target")=="_blank"){c="/download/pdf/"+$(this).attr("href").replace("http://","").replace("../","");if(c!=undefined){trackLinks(c)}}});$("a[id$='lnkDataSheet']").click(function(){if($(this).attr("target")=="_blank"){c="/outgoing/datasheets/"+$(this).parents("tr").find("a[id$='lnkMouserPartNumber']").html()}else{c="/download/datasheets/"+$(this).parents("tr").find("a[id$='lnkMouserPartNumber']").html()
}if(c!=undefined){trackLinks(c)}});$(".quickview").quickview();$(".tooltip").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250});$("div[id^='popup'] a").click(function(){c="/popup/"+$(this).parents("tr").find("a[id$='lnkMouserPartNumber']").html();if(c!=undefined){trackLinks(c)}});if($("div[id*='FindSimilarPnl']").length>0){findsimilar("init");if($("input[id*='btnfindsimilar']").length>0){if($("input[id*='btnfindsimilar']").val()=="Find Similar"){$("input[id*='btnfindsimilar']").attr("value","Show Similar")
}}}$("td[class^='find-similar'] input").click(findsimilar);if($("span[id$='ContentMain_lblNoResults']").text()=="NO RESULTS FOUND."){$("span[id$='ContentMain_lblNoResults']").html("An unexpected error has occurred.<br/>We are sorry for the inconvenience.")}$("a[href*='-%E2%80%93-']").each(function(){$(this).attr("href",$("a[href*='-%E2%80%93-']").attr("href").replace("-%E2%80%93-","-"))});var d=window.location.toString();if(d.indexOf("-%e2%80%93-")>0||d.indexOf("-%E2%80%93-")>0){window.location=d.replace("-%e2%80%93-","-").replace("-%E2%80%93-","-")
}if(subdomain=="mx"){LoadMXBanner()}var b=location.href;if((subdomain=="ca")&&(b.toLowerCase().indexOf("catalog")!=-1)&&($("select#ctl00_NavHeader_ddlCurrencies").val()=="CAD")){$('div#pdf_details ul li a[href*="../catalogindex_usd/"]').attr("href","../catalogindex_cad/")}if(location.pathname.indexOf("contact")>0){LoadElektra()}if(b.indexOf("/ProjectManager/ProjectDetail")!=-1){$("#ctl00_ContentMain_btnRequestQuote").hide()}if(b.indexOf(".com/knowledge/")!=-1){$.ajax({url:"../flash/pkcbanner.html",context:document.body,success:function(f){$("#sidebar a").after(f)
}})}$("div.navbar ul li:not(ul.subnav li)").hover(function(){$(this).find("ul").show();$(this).addClass("mm_white_nav");$(this).find("a:first").addClass("mm_white_nav_a");$("#search-block").addClass("z-fix");$("#account").addClass("z-fix")},function(){$(this).find("ul").hide();$(this).removeClass("mm_white_nav");$(this).find("a:first").removeClass("mm_white_nav_a");$("#search-block").removeClass("z-fix");$("#account").removeClass("z-fix")});if(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPad")>-1||navigator.userAgent.indexOf("iPod")>-1||navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Blackberry")>-1||navigator.userAgent.indexOf("Blackberry Torch")>-1||navigator.userAgent.indexOf("Palm")>-1||navigator.userAgent.indexOf("Symbian")>-1){var d=$('ul.topnav li a[href*="catalogviewer"]').attr("href");
var e="/mobilecatalog.aspx"+d.substring(d.indexOf("?"));$('ul.topnav li a[href*="catalogviewer"]').attr("href",e);if(window.location.pathname.indexOf("servicesandtools")>0){var d=$('div.st_head a[href*="catalogviewer"]').attr("href");var e="/mobilecatalog.aspx";$('div.st_head a[href*="catalogviewer"]').attr("href",e)}}if(subdomain=="th"&&b.toLowerCase().indexOf("catalog")!=-1&&lang=="th-TH"){$("#cat_content").css("font-size","12px");$("#cat_content").css("height","1050px");$(".cat_launch_btn").css("font-size","16px");
$(".cat_launch_btn").css("font-weight","normal");$(".cat_jump").css("font-size","12px")}else{if(subdomain=="cn2"&&b.toLowerCase().indexOf("catalog")!=-1&&lang=="zh-CN"){$("#cat_content").css("font-size","12px");$(".cat_launch_btn").css("font-size","16px");$(".cat_launch_btn").css("font-weight","normal");$(".cat_jump").css("font-size","12px");$(".cat_jump").css("width","170px");$('#pdf_details ul li a[href*="catalogindex_usd"]').attr("href","../catalogindex")}}$("#slp_keyword").keydown(function(f){if(f.keyCode==13){slp_SubmitSearch();
return false}});$("#slp_keyword").focus(function(){$("#search-block input[type=text]").val("")});$("#slp_Search, #slp_btnSearch").click(function(){slp_SubmitSearch()});if($(".btn-notify").length>0||$(".btn-notify").length>0){$(".btn-notify").notifyme()}$("input[id*='btnfindsimilar']").click(function(){var f="/Search/Refine.aspx?FS=TRUE&N=1323043";$("table[id$=dlspec] input[type=checkbox]:checked").each(function(){var g=$(this).attr("id");if(g!=null){f+="+"+g.substr(g.lastIndexOf("_")+1)}});document.location.href=f;
return false})});function getPreferencesCookie(){var a=$.ooCookie("preferences");a.getCookie();return a}function slp_SubmitSearch(){if(($("#search-block input[type=text]").val()==""||$("#search-block input[type=text]").val()==undefined)&&($("#slp_keyword").val()!="")){location.href="../search/refine.aspx?N="+$("input[name=N]").val()+"&Keyword="+$("#slp_keyword").val()}}function trackLinks(b){try{pageTracker._trackPageview(b)}catch(a){}}function findsimilar(a){var b="";var c=0;$("td[class^='find-similar'] input").each(function(){if($(this).attr("checked")){var d=$(this).attr("id").split("_");
b=b+d[d.length-1]+"+";c++}else{if(a=="init"){if(c==2){$(this).attr("checked",true);var d=$(this).attr("id").split("_");b=b+d[d.length-1]+"+"}a="ready"}}});if(b==""){$("#lblfindsimilarcount").remove();$("div[id*='divfindsimilarhelp']").remove();$("input[id*='btnfindsimilar']").after("<div id='divfindsimilarhelp'  style='text-align:left'><img border='0' id = 'imghelp' src='http://www.mouser.com/Images/help-icon.png' ></img>&nbsp;To show similar products, select at least one checkbox and click the show similar button.</div>");
return}else{if($("div[id$='divselectiontxt']").text()==""){$("div[id*='divfindsimilarhelp']").html("<div id='divselectiontxt' style='float:right;text-align:right;padding-top:5px;'>Per above selection(s)</div><img border='0' id = 'imghelp' src='http://www.mouser.com/Images/help-icon.png' ></img>&nbsp;Show stocked product(s), check and uncheck the boxes above.")}}b=b+"1323038+1323043";if($("#divfindsimilarhelp").length==0){$("input[id*='btnfindsimilar']").after("<div id='divfindsimilarhelp'  style='text-align:left'><div id='divselectiontxt' style='float:right;text-align:right;padding-top:5px;'>Per above selection(s)</div><img border='0' id = 'imghelp' src='http://www.mouser.com/Images/help-icon.png' ></img>&nbsp;Show stocked product(s), check and uncheck the boxes above.</div>")
}$("input[id*='btnfindsimilar']").before("<img border='0' style='vertical-align:middle' id = 'imgspinner' src='http://www.mouser.com/Images/spinner.gif' />");$.ajax({url:"/ajax/parametricoutput.ashx",data:"N="+b,success:function(d){$("#lblfindsimilarcount").remove();d=d.split(" ")[0];if(d!="0"){d=d-1}if(d=="0"&&a=="ready"){if($("td[class^='find-similar'] input:first").attr("checked")){$("td[class^='find-similar'] input:first").attr("checked",false);findsimilar("ready")}else{if($("td[class^='find-similar'] input:eq(2)").attr("checked")){$("td[class^='find-similar'] input:eq(2)").attr("checked",false);
findsimilar("ready")}}}if(d=="0"){$("div[id$='divselectiontxt']").text("Refine above selection(s)")}else{$("div[id$='divselectiontxt']").text("Per above selection(s)")}$("input[id*='btnfindsimilar']").after("<div id='lblfindsimilarcount' style='text-align:left'><div style='float:right;text-align:right;padding-top:0px;'><span class='red' style='text-align:right'>Found: "+d+"</span></div><div class='red' style=''>Show Stocked Products With Similar Attributes.</div></div>");$("span[id$='lblhiddenfindsimilarcount']").val(d);
$("#imgspinner").remove()},error:function(d){$("#imgspinner").remove()}})}function clickButton(c,b){var a=document.getElementById(b);if(typeof a=="object"){if(navigator.appName.indexOf("Netscape")>(-1)){if(c.keyCode==13){a.click();return false}}if(navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){if(event.keyCode==13){a.click();return false}}}}function writeCookie(b,c,a){createCookie(b,c,a)}function setCookie(b,c,a){createCookie(b,c,a)}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));
var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}function ReadCookie(d){var b=""+document.cookie;var c=b.indexOf(d);if(c==-1||d==""){return""}var a=b.indexOf(";",c);if(a==-1){a=b.length}return unescape(b.substring(c+d.length+1,a))}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function DeleteCookie(a){document.cookie=a+"=;path=/; expires=Thu, 01-Jan-70 00:00:01 GMT;"
}function eraseCookie(a){createCookie(a,"",-1)}function OpenCatalogViewer(){var b="http://"+document.location.host+"/catalogviewer.aspx?utm_source=homepageTile&utm_medium=Enhanced+Catalog&tm_campaign=Home+Page+Enhanced+Catalog";var a=document.createElement("a");if(typeof(a.click)=="undefined"){location.href=b}else{a.href=b;document.body.appendChild(a);a.click()}writeCookie("preferDigitalCatalog",1,365)}function LoadElektra(){var a=lang=="en-US"?"MM-190x190.jpg":"MM-190x190_"+lang+".jpg";$(".quickInfo:last").after('<div class="quickInfo-banner"><a href="../mousermobile?cm_sp=contactus-_-contactus-_-mousermobile-_-na"><img src="../images/'+a+'" title=""/></a></div>')
}function OpenFooterAd(){$("a.footerSlideButton").trigger("click")}function loadjscssfile(a,b){if(b=="js"){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",a)}else{if(b=="css"){var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",a)}}if(typeof c!="undefined"){document.getElementsByTagName("head")[0].appendChild(c)}}function LoadMXBanner(){if(subdomain=="mx"){var e=readCookie("seenFooterAd");
var d=getUSDmImageUrl(lang,"expand");var a=getUSDmImageUrl(lang,"contract");var c=(lang=="es-MX"?c="Cerrar":"Close");var b=(lang=="es-MX"?b="Abrir":"Open");$("form#aspnetForm").append('<div id="footerSlideContainer"><div id="footerSlideButton" class="footerSlideDown"></div><div id="footerSlideContent"><img class="img-expand" src="'+d+'"/><img class="img-contract" src="'+a+'"/></div></div>');$("#footerSlideContainer, #mx-cart-msg, a.footerSlideButton").toggle(function(){$("#footerSlideContent").css("text-align","left");
$(".img-expand").show();$(".img-contract").hide();$("#footerSlideButton").text(c);$("#footerSlideContent").animate({height:"250px"});$("#footerSlideButton").addClass("footerSlideUp").removeClass("footerSlideDown")},function(){$("#footerSlideContent").css("text-align","center");$(".img-expand").hide();$("#footerSlideButton").text(b);$(".img-contract").fadeIn("fast");$("#footerSlideContent").animate({height:"25px"});$("#footerSlideButton").addClass("footerSlideDown").removeClass("footerSlideUp");writeCookie("seenFooterAd",1,365)
});if(e!="1"){$("#footerSlideButton").trigger("click")}else{$("#footerSlideButton").text(b)}}}function LoadCNBanner(){var c=readCookie("hideCNFooterAd");var f=readCookie("seenCNFooterAd");if(c=="1"){return}var d=getRMBImageUrl(lang,"expand");var a=getRMBImageUrl(lang,"contract");$("form#aspnetForm").append('<map name="rmbmap">	<area shape="rect" class="gotoRMB" coords="715,175,875,220" href="http://mouser.cn" title="China RMB" />	<area shape="rect" class="stopShowing" href="" coords="10,245,145,265"  /></map> <div id="footerSlideContainer"><div id="footerSlideContent" style="background:#0b5b9e;text-align:left;"><img class="img-expand" useMap="#rmbmap" src="'+d+'"/><img class="img-contract" useMap="#rmbmap" src="'+a+'"/></div></div>');
var e=$("#footerSlideContent");var b=$("#footerRMBSlideButton");e.toggle(function(){e.animate({height:"270px"});$(".img-expand").show();$(".img-contract").hide();e.css({background:"#0b5b9e"})},function(){e.animate({height:"25px"},500,function(){$("#footerSlideContent").css({background:"#ED1B24"});$(".img-expand").hide();$(".img-contract").fadeIn("fast")});writeCookie("seenCNFooterAd",1,365)});if(f!="1"){e.trigger("click")}else{e.css({background:"#ED1B24"})}$(".stopShowing").click(function(){writeCookie("hideCNFooterAd",1,365);
$("#footerSlideContainer").remove();return false});$(".gotoRMB").click(function(){ChangeSubdomain("cn2");window.location="http://mouser.cn";return true})}function getUSDmImageUrl(d,c){var b;var a;if(c=="expand"){switch(d){case"es-MX":b="/images/usdm_exp_span.png";break;default:b="/images/usdm_exp_eng.png"}}else{switch(d){case"es-MX":b="/images/usdm_col_span.png";break;default:b="/images/usdm_col_eng.png"}}return $.url.attr("protocol")+"://"+$.url.attr("host")+b}function getRMBImageUrl(d,c){var b;var a;if(c=="expand"){switch(d){case"zh-CHS":b="/images/RMB7a-chinese.jpg";
break;default:b="/images/RMB7a-english.jpg"}}else{switch(d){case"zh-CHS":b="/images/RMB7a-chinese-collapse.jpg";break;default:b="/images/RMB7a-english-collapse.jpg"}}return $.url.attr("protocol")+"://"+$.url.attr("host")+b}function InsertBanManCode(a,c){var d=navigator.appName;var f=1;var h=a;var k=(new Date()).getTime();var l=lang!=""?lang:"en-US";var i=subdomain!=""?subdomain:"www";var g=currency!=""?currency:"USD";var e="";c!=undefined?e="&amp;keywords="+c:"";var j=(("https:"==document.location.protocol)?"https://":"http://");
var b=(("https:"==document.location.protocol)?"&amp;Secure=True":"");if(d=="Netscape"){document.write('<script language="javascript" src="'+j+"www.mouser.com/banners/a.aspx?ZoneID="+h+"&amp;Task=Get&amp;IFR=False&amp;Browser=NETSCAPE4&amp;PageID=95246&amp;SiteID="+f+b+"&amp;Random="+k+"&amp;DG1="+l+"&amp;DG2="+i+"&amp;DG3="+g+e+'">');document.write("<\/script>")}if(d!="Netscape"){document.write('<script language="javascript" src="'+j+"www.mouser.com/banners/a.aspx?ZoneID="+h+"&amp;Task=Get&amp;IFR=False&amp;PageID=95246&amp;SiteID="+f+b+"&amp;Random="+k+"&amp;DG1="+l+"&amp;DG2="+i+"&amp;DG3="+g+e+'">');
document.write("<\/script>")}};
