/*********************************************************************** * 3M.com Corporate JavaScript v 4.09 * Copyright (c) 3M 2011. All rights reserved * Last Modified: 10/06/2011 * Asset ID: 1273678258924 * Authors: @A1RQLZZ, @US338674 * to see unminified version view /3MContentRetrievalAPI/BlobServlet?locale=en_US&lmd=1307134823000&assetId=1273678258924&assetType=MMM_Image&blobAttribute=ThumbnailImage ************************************************************************/ function getUrlVars(){var a=[],b,c=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),d;for(d=0;d-1},e="gecko",f="webkit",g="safari",h="opera",i="mobile",j=document.documentElement,k=[!/opera|webtv/i.test(b)&&/msie\s(\d)/.test(b)?"ie ie"+RegExp.$1:d("firefox/2")?e+" ff2":d("firefox/3.5")?e+" ff3 ff3_5":d("firefox/3.6")?e+" ff3 ff3_6":d("firefox/3")?e+" ff3":d("gecko/")?e:d("opera")?h+(/version\/(\d+)/.test(b)?" "+h+RegExp.$1:/opera(\s|\/)(\d+)/.test(b)?" "+h+RegExp.$2:""):d("konqueror")?"konqueror":d("blackberry")?i+" blackberry":d("android")?i+" android":d("chrome")?f+" chrome":d("iron")?f+" iron":d("applewebkit/")?f+" "+g+(/version\/(\d+)/.test(b)?" "+g+RegExp.$1:""):d("mozilla/")?e:"",d("j2me")?i+" j2me":d("iphone")?i+" iphone":d("ipod")?i+" ipod":d("ipad")?i+" ipad":d("mac")?"mac":d("darwin")?"mac":d("webtv")?"webtv":d("win")?"win"+(d("windows nt 6.0")?" vista":""):d("freebsd")?"freebsd":d("x11")||d("linux")?"linux":"","js"];return c=k.join(" "),j.className+=" "+c,c}function showDiv(what,which,numdivs){$debug("ShowDiv: what="+what+", which="+which+", numdivs"+numdivs);var fullImage=document.getElementById("tab"+which),current,current2;for(i=0;iul:not(:has(.selected))").not(jQuery(".selected").next()).css({display:"none"}),jQuery("#mmmlsnwrap a.activator").css({top:"0px"}),!jQuery("#mmmlsnwrap h5:has(.selected)")&&!jQuery("#mmmlsnwrap h5.selected")&&jQuery('a[href="'+jQuery("#cShellBcrumb a").last().attr("href")+'"]').last().parent().show().next().show();if(c.cap==!1)try{$debug("Contextual Nav Cap Hide"),jQuery("#mmmlsnwrap h4:first a").hide()}catch(d){$debug("Contextual Nav Cap Hide FAILED: "+d.message)}}catch(d){$debug("Contextual Nav FAILED: "+d.message)}}try{var e=jQuery("#mmmlsnwrap");e.length>0&&setActuators(document.getElementById("mmmlsnwrap"))}catch(d){$debug("Call to Set Actuators Failed: "+d.message)}return this.each(function(){$this=jQuery(this)})}})(jQuery)}catch(a){$debug("Loading LSNify Failed: "+a.message)}try{$debug("Loading Placeholdize Plug-in"),function(a){a.fn.placeHoldize=function(){function c(c){var d=a(this);if(!c&&(b||!d.attr("placeholder"))&&!d.is("textarea"))return;var e=d.attr("placeholder");d.val().length<=0||d.val()==e?(d.val(""),d.removeAttr("placeholder").addClass("placeholder-visible"),d.val(e)):d.removeClass("placeholder-visible").addClass("placeholder-hidden"),d.addClass("placeholdized"),d.focus(function(){var b=a(this);b.val()===e&&(b.val(""),b.removeClass("placeholder-visible").addClass("placeholder-hidden"))}),d.blur(function(){var b=a(this);b.val()===""?(b.val(e),b.removeClass("placeholder-hidden").addClass("placeholder-visible")):b.removeClass("placeholder-visible").addClass("placeholder-hidden")})}function d(b){var c=b.closest("form");return c.submit(function(){var b=a(this);if(b.data("placeHoldize.submitHandlerCalled"))return;b.find(".placeholder-visible").val("").data("placeHoldize.submitHandlerCalled",!0)}),!0}var b=function(a){return a.placeholder===""&&a.placeholder!==undefined}(document.createElement("input"));return function(a){return this.each(function(){c.call(this,a)}),d(this),this}}()}(jQuery)}catch(a){$debug("Loading Placeholdize FAILED: "+a.message)}try{$debug("Loading Scrollbar Height Fix Plug-in"),function(a){a.fn.fixScrollbarHeight=function(){var c=a(window).height(),d=a("body>div").height(),e=b();d0&&setActuators(document.getElementById("mmmlsnwrap"))}catch(a){$debug("Call to Set Actuators Failed: "+a.message)}try{$debug("CSS Browser Selector Triggered: "+navigator.userAgent),css_browser_selector(navigator.userAgent)}catch(a){$debug("CSS Browser Selector Failed: "+a.message)}try{$debug("Fix Scrollbar Height Triggered"),jQuery(document).fixScrollbarHeight()}catch(a){$debug("Fix ScrollbarHeight Failed: "+a.message)}try{$debug("Placeholder Text Triggered"),jQuery("input[placeholder], textarea[placeholder]").placeHoldize()}catch(a){$debug("Placeholdize Failed: "+a.message)}try{$debug("Button 1 Trigger"),jQuery(".primarybutton,.secondarybutton,.tertiarybutton").button()}catch(a){$debug("Primary - Tertiary Buttons Failed: "+a.message)}try{$debug("Button 2 Trigger"),jQuery(".productsearchbutton").button({text:!1,icons:{primary:"ui-icon-search"}}).addClass("secondarybutton")}catch(a){$debug("Product Buttons Failed: "+a.message)}try{$debug("Carousel Left Trigger"),jQuery(".carouselleftbutton").button({text:!1,icons:{primary:"ui-icon-triangle-1-w"}}).addClass("secondarybutton")}catch(a){$debug("Carousel Left Button Failed: "+a.message)}try{$debug("Carousel Right Trigger"),jQuery(".carouselrightbutton").button({text:!1,icons:{primary:"ui-icon-triangle-1-e"}}).addClass("secondarybutton")}catch(a){$debug("Carousel Right Button Failed: "+a.message)}try{$debug("3M Tabs Triggered"),jQuery(".tabs3m").tabs()}catch(a){$debug("Tabs Failed: "+a.message)}try{$debug("Accordion"),jQuery(".accordion3m").accordion({autoHeight:!1,clearStyle:!0,icons:{header:"ui-icon-plus",headerSelected:"ui-icon-minus"},collapsible:!0})}catch(a){$debug("Accordion Failed: "+a.message)}try{$debug("Mobile link cookie setting Triggered"),$(".mobileLink").length&&($debug("There is a mobile link, FYI"),$(".mobileLink").click(function(){document.cookie="mobilePref=mobile; path=/; domain=."+document.domain.substr(document.domain.indexOf(".")+1)}))}catch(a){$debug("Setting mobile link cookie failed: "+a.message)}try{$(".desktopLink").length&&($debug("There is a desktop link, FYI"),$(".desktopLink").click(function(){document.cookie="mobilePref=desktop; path=/; domain=."+document.domain.substr(document.domain.indexOf(".")+1)}))}catch(a){$debug("Setting desktop link cookie failed: "+a.message)}try{$debug("seperating admin links"),$adminlinks=jQuery(".adminlinks").detach(),$pershello=jQuery("#personalization p").detach(),$perslinks=jQuery("#personalization ul").detach(),jQuery("#personalization").append($adminlinks).append($perslinks).append($pershello),$persblock=jQuery("#personalization").detach(),jQuery("#masterwrap").prepend($persblock),jQuery("#masterwrap").addClass("persTop"),jQuery("#psnwrap").css("display")!=="none"&&jQuery("#mmmheader").css("background-image").search("header_bg_full")>0&&jQuery("#mmmheader").addClass("psnOn")}catch(a){$debug("Seperating Admin Links FAILED: "+a.message)}jQuery(".actuator").live("click",function(){$debug("Actuator Clicked: "+jQuery(this).next().text());var a=this.parentNode;if(a.className.indexOf("locked")!==-1){$debug("Actuator Debug: Parent Class = Locked");return}$debug("Actuator Debug: Parent Class != Locked"),childMenu=a.getElementsByTagName("ul")[0],$debug("Actuator Debug: Child Menu: "+childMenu),$debug("Actuator Debug: Child Menu Display: "+childMenu.style.display),childMenu.style.display==="block"||childMenu.style.display===""?(jQuery(childMenu).slideUp("fast"),this.getElementsByTagName("img")[0].src=$lsnSettings.actuatorOff,$debug("Actuator Debug: Slide Up, Src="+$lsnSettings.actuatorOff)):(jQuery(childMenu).slideDown("fast"),this.getElementsByTagName("img")[0].src=$lsnSettings.actuatorOn,$debug("Actuator Debug: Slide Down, Src="+$lsnSettings.actuatorOn))}),function(a){function g(a,b){try{$debug("trying running appendNewLinks"),dropdown=a.find(".mmmdropdown"),dropdown.length||(b.children?($debug("there is no dropdown and this item has children: "+b.UniqueName+", so create the ul for them","dropdowns"),a.addClass("mmmhasdropdown"),dropdown=$('
    ').appendTo(a)):$debug("there is no dropdown and this item does not have children: "+b.UniqueName+", so no ul created","dropdowns"));if(b.children){$.each(b.children,function(){$debug("creating dropdown list item for child: "+this.title,"dropdowns"),dropdown.append('
  • '+this.title+"
  • ")});var c=a,d=a.find("a"),e=c.find(".mmmdropdown");h(e,d,c)}}catch(f){$debug("running appendNewLinks FAILED: "+f.message)}}function h(a,b,c){if(a.outerWidth()>0)try{$debug("running appendDropdownCSS"),windowHeight=$(window).height()-200,siteTotalWidth=$("#tablewrap").width(),twoCols=!1,$debug("working on item "+c.attr("id"),"dropdowns");if(a.height()>=windowHeight){twoCols=!0,$debug("too long - need 2 cols","dropdowns");var d=null,e=null,f=0,g=a.width();f=g-a.css("padding-left").replace("px","")-a.css("padding-right").replace("px","")-a.css("border-left-width").replace("px","")-a.css("border-right-width").replace("px",""),$debug("widestWidth="+f,"dropdowns"),a.find("li").each(function(){$(this).width=f}),a.css({width:f*2+20,"max-width":"none"}),a.find("li").css({"float":"left",margin:"5px 0",width:f}),c.find("li:nth-child(2n+1)").css({"padding-right":"10px"})}currDropdownTotalWidth=c.outerWidth(),currDropdownContainerTotalWidth=a.outerWidth(),$debug("currDropdownTotalWidth="+currDropdownTotalWidth,"dropdowns"),$debug("currDropdownContainerTotalWidth="+currDropdownContainerTotalWidth,"dropdowns"),currDropdownTotalWidth>currDropdownContainerTotalWidth&&(a.css({width:c.width()-a.css("padding-left").replace("px","")-a.css("padding-right").replace("px","")-a.css("border-left-width").replace("px","")-a.css("border-right-width").replace("px",""),"max-width":"none"}),currDropdownContainerTotalWidth=a.width(),twoCols===!1?(a.find("li").css({width:"auto","max-width":"none"}),a.find("li a").css({width:"auto","max-width":"none"})):(newLiWidthRoundedDown=(currDropdownContainerTotalWidth/2-.5).toFixed(0),newLiWidth=newLiWidthRoundedDown-5-a.find("li").css("padding-left").replace("px","")-1,a.find("li").css({width:newLiWidth})),a.addClass("mmmdropdownrectangle"),$debug("dropdown was narrower than PSN item - fixed to rectangle","dropdowns")),currDropdownContainerOffset=c.position().left+currDropdownContainerTotalWidth,$debug("currDropdown.position()="+c.position().left,"dropdowns"),$debug("currDropdownTotalWidth="+currDropdownTotalWidth,"dropdowns"),$debug("currDropdownContainerTotalWidth="+currDropdownContainerTotalWidth,"dropdowns"),$debug("currDropdownContainerOffset="+currDropdownContainerOffset,"dropdowns"),currDropdownContainerOffset+20>=siteTotalWidth&&(twoCols===!0?$debug("dropdown allowed to go out of the boundaries of the content because it is 2 cols wide","dropdowns"):(a.css({left:-(currDropdownContainerTotalWidth-(currDropdownTotalWidth-c.css("padding-right").replace("px","")-c.css("border-right-width").replace("px","")))}).addClass("mmmdropdownleft"),$debug("dropdown was going to go out of the boundaries of the content - fixed","dropdowns")))}catch(h){$debug("running appendDropdownCSS FAILED: "+h.message)}else $debug("for some reason there is no currDropdownContainer - fail ")}jQuery.fn.hoverIntent=function(a,b){var c={sensitivity:1,interval:$settings.mouseOverSensitivity,timeout:$settings.mouseOutSensitiivty};c=$.extend(c,b?{over:a,out:b}:a);var d,e,f,g,h=function(a){d=a.pageX,e=a.pageY},i=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);if(Math.abs(f-d)+Math.abs(g-e) li").hoverIntent(function(){var c=$(this),d=$(this).find("a"),e=c.find(".mmmdropdown"),f=$("#psn > li");f.each(function(c){$(this).hasClass("PSNactive")&&($debug("this already has PSNactives"),a.mouseOutSensitivity=6e3,$(this).removeClass("PSNactive"),$(this).find(".mmmdropdown").slideUp(b/2))}),windowHeight=$(window).height()-200,siteTotalWidth=$("#tablewrap").width(),twoCols=!1,e.height()>=windowHeight?e.css({overflow:"auto",height:windowHeight-320}):!1,c.hasClass("mmmhasdropdown")?(d.addClass("PSNlinkActive"),c.find("ul").slideDown(b)):c.find("ul").css({display:"block"})},function(){var c=$(this),d=$(this).find("a");c.removeClass("PSNactive"),d.removeClass("PSNlinkActive"),a.animation==!0?c.find("ul").slideUp(b):c.find("ul").css({display:"none"})}):$("#psn > li").hover(function(){var a=$(this),b=$(this).find("a"),c=a.find(".mmmdropdown");windowHeight=$(window).height()-200,siteTotalWidth=$("#tablewrap").width(),twoCols=!1,c.height()>=windowHeight?c.css({overflow:"auto",height:windowHeight-320}):!1,a.hasClass("mmmhasdropdown")&&(b.addClass("PSNlinkActive"),a.find("ul").css({display:"block"}))},function(){var a=$(this),b=$(this).find("a");b.removeClass("PSNlinkActive"),a.hasClass("mmmhasdropdown")&&a.find("ul").css({display:"none"})})}catch(c){$debug("running createHoverInteraction FAILED: "+c.message)}}}}(this)}),$debug("End Corp JS")