function checkIframeMobileBug(){$("#careers-iframe-container").length&&($("#navigation").hasClass("mobile-active")?$("#careers-iframe-container").css("overflow-y","hidden"):$("#careers-iframe-container").css("overflow-y","scroll"))}var MxlUtilityJS,jsUtility,winWidth,tooltipCurrentlyHovered,timeout,hoverTimeout,googleDataEvents;if(function(n){"use strict";function t(n){this.props={title:"",body:"",footer:"",modalClass:"fade",modalDialogClass:"",options:null,onCreate:null,onDispose:null,onSubmit:null};for(var t in n)this.props[t]=n[t];this.id="bootstrap-show-modal-"+i;i++;this.show()}var i=0;t.prototype.createContainerElement=function(){var t=this;this.element=document.createElement("div");this.element.id=this.id;this.element.setAttribute("class","modal "+this.props.modalClass);this.element.setAttribute("tabindex","-1");this.element.setAttribute("role","dialog");this.element.setAttribute("aria-labelledby",this.id);this.element.innerHTML='<div class="modal-dialog '+this.props.modalDialogClass+'" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"><\/h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><\/button><\/div><div class="modal-body"><\/div><div class="modal-footer"><\/div><\/div><\/div>';document.body.appendChild(this.element);this.titleElement=this.element.querySelector(".modal-title");this.bodyElement=this.element.querySelector(".modal-body");this.footerElement=this.element.querySelector(".modal-footer");n(this.element).on("hidden.bs.modal",function(){t.dispose()});if(this.props.onCreate)this.props.onCreate(this)};t.prototype.show=function(){this.element?n(this.element).modal("show"):(this.createContainerElement(),this.props.options?n(this.element).modal(this.props.options):n(this.element).modal());this.props.title?(n(this.titleElement).show(),this.titleElement.innerHTML=this.props.title):n(this.titleElement).hide();this.props.body?(n(this.bodyElement).show(),this.bodyElement.innerHTML=this.props.body):n(this.bodyElement).hide();this.props.footer?(n(this.footerElement).show(),this.footerElement.innerHTML=this.props.footer):n(this.footerElement).hide()};t.prototype.hide=function(){n(this.element).modal("hide")};t.prototype.dispose=function(){if(n(this.element).modal("dispose"),document.body.removeChild(this.element),this.props.onDispose)this.props.onDispose(this)};n.extend({showModal:function(n){return new t(n)},showAlert:function(n){return n.footer='<button type="button" class="btn btn-primary" data-dismiss="modal">OK<\/button>',this.showModal(n)},showConfirm:function(t){return t.footer='<button class="btn btn-secondary btn-false btn-cancel">'+t.textFalse+'<\/button><button class="btn btn-primary btn-true">'+t.textTrue+"<\/button>",t.onCreate=function(t){n(t.element).on("click",".btn",function(n){n.preventDefault();t.hide();t.props.onSubmit(n.target.getAttribute("class").indexOf("btn-true")!==-1,t)})},this.showModal(t)}})}(jQuery),MxlUtilityJS={isStringAllowed:function(n){for(var t=n.length-1;t>=0;--t)if("abcdefghijklmnopqrstuvwxyz .,/()#&;:ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".indexOf(n.substring(t,t+1))<0)return!1;return!0},getQueryString:function(){var t={},i=function(n){return decodeURIComponent(n.replace(/\+/g," "))},f=location.search.substring(1),r=f.split("&"),u,n;for(u in r)n=r[u].split("="),n.length>1&&(t[i(n[0])]=i(n[1]));return t},getQueryString2:function(n){var i={},r=function(n){return decodeURIComponent(n.replace(/\+/g," "))},u=n.split("&"),f,t;for(f in u)t=u[f].split("="),t.length>1&&(i[r(t[0])]=r(t[1]));return i},exportXls:function(n){var i="",r,t,u;$("#"+n+" > div").each(function(){if($(this).hasClass("table-filters"))return!0;i!=""&&(i+="\r\n");var n="";$(this).find("> div").each(function(){n!=""&&(n+=",");n+='"'+$(this).text().trim().replace('"','""')+'"'});i+=n});window.navigator.msSaveBlob?(r=new Blob([i],{type:"application/csv;charset=utf-8;"}),navigator.msSaveBlob(r,"export.csv")):(t=document.createElement("a"),u="data:attachment/csv;charset=utf-8,"+encodeURI(i),t.style="display:none",t.href=u,t.download="export.csv",document.body.appendChild(t),t.click(),document.body.removeChild(t),t.remove())},createCookie:function(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toUTCString());document.cookie=n+"="+t+u+"; path=/"},readCookie:function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}},jsUtility={getQueryString:function(){var t={},i=function(n){return decodeURIComponent(n.replace(/\+/g," "))},f=location.search.substring(1),r=f.split("&"),u,n;for(u in r)n=r[u].split("="),n.length>1&&(t[i(n[0])]=i(n[1]));return t},getQueryString2:function(n){var i={},r=function(n){return decodeURIComponent(n.replace(/\+/g," "))},u=n.split("&"),f,t;for(f in u)t=u[f].split("="),t.length>1&&(i[r(t[0])]=r(t[1]));return i}},$(function(){$("#global-search-button").click(function(n){n.preventDefault();n.stopPropagation();window.location.href="/search?text="+encodeURIComponent($("#global-search").val())});$("#global-search").keypress(function(n){n.which==13&&(window.location.href="/search?text="+encodeURIComponent($("#global-search").val()))});$("#menu-faq-card button").click(function(n){n.preventDefault();n.stopPropagation();window.location.href="/support/faq?text="+encodeURIComponent($("#menu-faq-card input[type='text']").val())});$("#menu-faq-card input[type='text']").keypress(function(n){n.which==13&&(window.location.href="/support/faq?text="+encodeURIComponent($("#menu-faq-card input[type='text']").val()))});$(".intel-link").click(function(n){n.preventDefault();n.stopPropagation();var t=$(this).attr("href");$.showConfirm({title:"You are leaving MaxLinear site",body:"We are actively working to fully integrate the former Intel Home Gateway Products into our website. At this time, information regarding this CHD device resides on Intel's website.",textTrue:"Go to Intel site",textFalse:"Cancel",onSubmit:function(n){n&&(window.location.href=t)}})})}),winWidth=$(window).width(),$(function(){function a(){winWidth=$(window).width();o()}function e(){active=$("#navigation > li > a.active");active.next().slideUp(300,function(){active.removeClass("active")});$navOverlay.removeClass("show")}function o(){if(winWidth>767)for(i=0;i<=t.length;i++)r=0,i<v.length?($(t[i]).find("li > div").each(function(){r++;$(this).css({width:1053/4})}),$(t[i]).css({width:1053/4*r+227})):($(t[i]).find("li > div").each(function(){r++;$(this).css({width:320})}),$(t[i]).css({width:320*r}))}function y(n){u=n.attr("data-nav");u=$.inArray(u,f)+1;$("#navigation").attr("data-open",u)}function c(n){setTimeout(function(){$("html, body").animate({scrollTop:n.offset().top},600)},600)}var s,f,h,n,u,l;window.onresize=function(){clearTimeout(s);s=setTimeout(a,100)};f=[];$("li a[data-nav]").each(function(){f.push($(this).attr("data-nav"))});h=window.location.pathname;pageUrl=h.split("/");n=$("#navigation .products-menu > li");pageUrl[1].length>0?$("#navigation > li:first-child > a").each(function(t,i){$(i).attr("href")==pageUrl[1]?y(i):n.eq(0).find("> a").addClass("active").next().show()}):n.eq(0).find("> a").addClass("active").next().show();$(document).ready(function(){$crossSearch=$("#nav #navigation .search-item .cross-reference-search");$("#navigation > li > a").click(function(){var n=$(this);n.hasClass("active")?$crossSearch.css("z-index","-2"):n.hasClass("active")?$crossSearch.css("z-index","0"):$crossSearch.css("z-index","0")});$(".nav-overlay").click(function(){$crossSearch.css("z-index","0")})});$navOverlay=$(".nav-overlay");$navOverlay.css({height:$("#wrapper").height()-66});$("#navigation > li > a").click(function(n){($this=$(this),$this.attr("href")==="#")&&(n.preventDefault(),$this.hasClass("active")?($navOverlay.hide(),$navOverlay.removeClass("show"),e($this)):(e(),$navOverlay.show(),$navOverlay.addClass("show"),$this.addClass("active").next().delay(100).slideDown(300)),winWidth<=1045&&c($(this)))});$("#mobile-toggle").click(function(n){n.preventDefault();$("#navigation").toggleClass("mobile-active");$navOverlay.toggleClass("mobile-show");checkIframeMobileBug()});$navOverlay.click(function(n){n.preventDefault();winWidth<=1045&&($("#navigation").removeClass("mobile-active"),$navOverlay.removeClass("mobile-show"));e()});$("#navigation").click(function(n){n.stopPropagation()});$("#navigation .products-menu > li > a").click(function(n){winWidth<=1045&&(n.preventDefault(),$(this).hasClass("mobile-active")||$("#navigation .tier_1 > li > a.mobile-active").removeClass("mobile-active"),$(this).toggleClass("mobile-active"),c($(this)))});n.find("> a").hover(function(){winWidth>1045&&($this=$(this),$this.hasClass("active")||(n.find(".active").removeClass("active").next().hide(),$this.addClass("active").next().show()))});n.find("> a").click(function(t){winWidth<=1045&&(t.preventDefault(),$this=$(this),$this.hasClass("active")||(n.find(".active").removeClass("active").next().hide(),$this.addClass("active").next().show()))});var p=$("#nav .row").width(),t=$("#navigation .sub-panel"),v=$("#navigation ul .sub-panel"),r=0;o();u=1;$(window).resize(function(){o()});l=0;$("#toolbar li .slide-out").click(function(n){$this=$(this);winWidth>767?($this.parent().hasClass("active")||($("#toolbar li").removeClass("active"),$this.parent().addClass("active")),l=1):($("#nav").toggleClass("search-open"),$("#txtSearch").focus());n.preventDefault()})}),$(function(){$("#cart").css("display")=="block"&&$("#top-bar").addClass("cart-open")}),$("#product-content").length&&($firstExpand=!0,$menuBarsHTML='<i class="fa fa-bars"><\/i>',$("#pills-tab a").click(function(){$this=$(this);$previousActive=$("#pills-tab a.active");$previousActive.removeAttr("style");$previousActive.html($previousActive.html().replace($menuBarsHTML,""));$this.html($menuBarsHTML+$this.html());winWidth<=1045?($this.parent().parent().hasClass("expanded")?$this.animate({backgroundColor:"#cde1f4"},300,function(){winWidth<=1045&&$("#pills-tab .nav-item > a:not(.active)").slideUp()}):$firstExpand?($("#pills-tab .nav-item").slideDown(),$this.parent().css("display","list-item"),$firstExpand=!1):$("#pills-tab .nav-item > a").slideDown(),$this.parent().parent().toggleClass("expanded")):($previousActive.hide(),$this.css("display","block"));$("#pills-tab .active-tab-container").removeClass("active-tab-container");$this.parent().addClass("active-tab-container")}),$activeTab=$("#pills-tab .active"),$activeTab.parent().addClass("active-tab-container"),$activeTab.html($menuBarsHTML+$activeTab.html())),$("#diagram-wrap").length){tooltipCurrentlyHovered=!1;timeout=null;$('#diagram-wrap [data-toggle="tooltip"]').each(function(){toolNum=$(this).attr("data-text");toolHTML=$("#tooltips .tooltip"+toolNum).html();$(this).attr({title:toolHTML})});$('#diagram-wrap [data-toggle="tooltip"]').tooltip({html:!0,trigger:"manual"});$('#diagram-wrap [data-toggle="tooltip"]').mouseenter(function(){$(this).tooltip("show")}).mouseleave(function(){hoverTimeout($(this));$("div.tooltip").mouseenter(function(){tooltipCurrentlyHovered=!0});$("div.tooltip").mouseleave(function(){tooltipCurrentlyHovered=!1})});$('[data-toggle="tooltip"]').on("show.bs.tooltip",function(){console.log(this.id)});hoverTimeout=function(n){timeout=setTimeout(function(){tooltipCurrentlyHovered?(clearTimeout(timeout),hoverTimeout(n)):n.tooltip("hide")},300)}}googleDataEvents={pageTracker:null,init:function(n){n.find("a[data-ga-label],area[data-ga-label],button[data-ga-label]").click(this.trackLink)},trackLink:function(){if(gtag){var n=$(this),t=n.attr("data-ga-label"),i=n.attr("data-ga-action"),r=n.attr("data-ga-category");gtag("event",i,{event_category:r,event_label:t})}}};$(document).ready(function(){googleDataEvents.init($("html"))})