﻿$(document).ready(function() { Sys.Browser.WebKit = {}; if (navigator.userAgent.indexOf("WebKit/") > -1) { Sys.Browser.agent = Sys.Browser.WebKit; Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]); Sys.Browser.name = "WebKit" } $(".left_box ul li").css("background-color", "#F5F5F5"); $(".left_box ul li ul li").css("background-color", "#FFFFFF"); if (document.getElementById("logo") != null) { $("#logo").crossSlide({ sleep: 2, fade: 1 }, [{ src: "http://cloud-www.merit.com/images/biosphere-logo.jpg", href: "http://www.biospheremed.com/" }, { src: "http://cloud-www.merit.com/images/merit-endotek-logo.jpg", href: "http://endotek.merit.com/" }, { src: "http://cloud-www.merit.com/images/coatings-logo.jpg", href: "http://www.meritmedicalcoatings.com/" }, { src: "http://cloud-www.merit.com/images/merit-oem-logo.jpg", href: "http://merit-oem.com/" }, { src: "http://cloud-www.merit.com/images/merit-sensor.jpg", href: "http://www.merit-sensor.com/"}]) } $('a[href*="#"]').css("cursor", "default") }); function LoadScribdDocument(c, e, b) { var a = scribd.Document.getDoc(c, e); var d = function(f) { if (a.api.getPageCount() > 9) { $(".hide_download_lnk_html5").addClass("more_then_ten_pages") } }; a.addEventListener("docReady", d); a.addParam("jsapi_version", 2); if (b.toString().toLowerCase() == "true") { $(".media_video").removeClass("displayNone"); a.addParam("height", 358) } else { $(".embed_media_documents").removeClass("displayNone"); a.addParam("height", 865) } a.addParam("default_embed_format", "html5"); a.addParam("hide_full_screen_button", true); a.addParam("allowscriptaccess", false); a.write("embedded_doc") } function getQuerystring(b, d) { if (d == null) { d = "" } b = b.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var c = new RegExp("[\\?&]" + b + "=([^&#]*)"); var a = c.exec(window.location.href); if (a == null) { return d } else { return a[1] } } function SeoArrowClick() { $("#seo_container").slideToggle("slow", ChangeFooterArrowImage) } function ChangeFooterArrowImage() { if ($("#arrow_img").hasClass("footer_up_arrow_img")) { $("#arrow_img").removeClass("footer_up_arrow_img"); $("#arrow_img").addClass("footer_down_arrow_img") } else { $("#arrow_img").addClass("footer_up_arrow_img"); $("#arrow_img").removeClass("footer_down_arrow_img") } } function DisplayModalPopup(i, d, c, g, h, e, b, f) { var a = document.getElementById(i); a.className = "btnpopupcancelcatalogImagevisible"; var j = document.getElementById(d); j.className = "catalogImagevisible"; if (g.toString() == "true") { if ($("#" + h).val() == "") { $find(e).set_dynamicContextKey(" ") } else { $find(e).set_dynamicContextKey($("#" + h).val()) } } if (g.toString() == "false") { DecreaseIndexOfFooterAndSEO() } if (b.toString() == "true") { CheckForRequiredPluginInCareerPage(f, d) } } function CareerPopupForiOS(a, b) { var c = document.getElementById(a); c.className = "btnpopupcancelcatalogImagevisible"; DecreaseIndexOfFooterAndSEO(); var b = document.getElementById(b); b.className = "catalogImagevisible"; b.innerHTML = "<iframe class='popup_career' src='http://www.youtube.com/embed/L2xXwTw1gcI' frameborder='0' allowfullscreen='true'></iframe>" } function CheckForRequiredPluginInCareerPage(c, b) { if (Sys.Browser.name != "Opera") { if (pluginlist.indexOf(c) == -1) { DisplayNoPlugInFoundMessageInPopUp(c, b) } } else { var a = false; $.each(navigator.plugins, function(d, e) { if (e.name.toString().indexOf(c) == 0) { a = true; return false } }); if (!a) { DisplayNoPlugInFoundMessageInPopUp(c, b) } } } function DisplayNoPlugInFoundMessageInPopUp(b, a) { var c = "http://get.adobe.com/flashplayer/"; var a = document.getElementById(a); a.removeAttribute("class"); a.setAttribute("class", "noplugin_found_nomedia"); a.innerHTML = '<span class="errMsg">Oops! ' + b + ' missing!</span><br>Please <a class="downloadLink" href="' + c + '" target="_newtab">download</a> it to view this content. carrer' } function IncreaseZIndexOfElements() { var c = document.getElementById("menucontainer"); c.style.zIndex = "10000"; var b = document.getElementById("footericoncontainer"); b.style.zIndex = "10000"; var a = document.getElementById("seo_arrow"); a.style.zIndex = "10000" } function resetVideo() { var a = document.getElementById("mediaContent"); if (a.innerHTML) { org = a.innerHTML; a.innerHTML = ""; a.innerHTML = org } } function DisableSpecialCharacter(b) { var a; if (window.event) { a = window.event.keyCode } else { a = b.which } if ((a == 13) || (a > 32 && a < 48) || (a > 57 && a < 65) || (a > 90 && a < 97)) { return false } else { return true } } function DecreaseIndexOfFooterAndSEO() { var b = document.getElementById("footericoncontainer"); b.style.zIndex = "-1"; var a = document.getElementById("seo_arrow"); a.style.zIndex = "-1" } function DropDownListShown() { DecreaseIndexOfFooterAndSEO(); var b = document.getElementById("dropDownctr"); var a = document.getElementById("tmpDiv"); a.innerHTML = b.innerHTML; a.style.display = "block"; b.removeAttribute("style"); b.style.visibility = "visible"; if (a.offsetHeight >= 300) { b.style.overflowY = "auto"; if (Sys.Browser.name == "WebKit") { if (document.body.scrollTop != 0) { if ((a.offsetHeight - document.body.scrollTop) < 220) { b.style.overflowY = "hidden"; b.style.height = (Number(a.offsetHeight + 10)) + "px" } else { b.style.height = (Number(document.body.scrollTop + 300)) + "px" } } else { b.style.height = "300px" } } else { if (document.documentElement.scrollTop != 0) { if ((a.offsetHeight - document.documentElement.scrollTop) < 300) { b.style.overflowY = "hidden"; b.style.height = (Number(a.offsetHeight + 10)) + "px" } else { b.style.height = (Number(document.documentElement.scrollTop + 300)) + "px" } } else { b.style.height = "300px" } } } else { b.style.overflowY = "hidden"; b.style.height = (Number(a.offsetHeight + 10)) + "px" } a.style.display = "none" } function CheckForRequiredValue(c, a) { if (!a) { $.cookie("treePath", null) } var b = document.getElementById(c); var e = b.value.toLowerCase(); var d = e.replace(/^\s+|\s+$/g, ""); if (!a) { if (d == "enter product name" || d == "") { alert("Please enter product name."); return false } } else { if (d == "enter media name" || d == "") { alert("Please enter media name."); return false } } } function CheckForRequiredPluginInMediaControl(g, d, f, a, e) { var c = document.getElementById(g); if (Sys.Browser.name != "Opera") { if (pluginlist.indexOf(d) == -1) { DisplayInstallPluginMessage(c, d); c.className = "no_plugin_mediacontrol"; c.style.width = "650px"; $("#" + a + "").attr("value", "false"); $("#" + e + "").attr("value", "" + d + "") } else { $("#" + a + "").attr("value", "true") } } else { var b = false; $.each(navigator.plugins, function(h, i) { if (i.name.toString().indexOf(d) == 0) { b = true; return false } }); if (!b) { DisplayInstallPluginMessage(c, d); c.className = "no_plugin_mediacontrol"; c.style.width = "650px"; $("#" + a + "").attr("value", "false"); $("#" + e + "").attr("value", "" + d + "") } else { $("#" + a + "").attr("value", "true") } } } function AttachBeginAndEndRequestHandlers() { var b; var c; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(d); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(a); function d(f, e) { b = "#" + e.get_postBackElement().id; c = e.get_postBackElement().parentNode.id.substring(e.get_postBackElement().id.lastIndexOf("_") + 1) } function a(f, e) { if (e.get_error() == undefined) { if ($.cookie("isIOS").toString().toLowerCase() == "true") { LoadScribdDocument($.cookie("DocId"), $.cookie("AccessKey"), "true") } if (b.substring(b.lastIndexOf("_") + 1) == "imgMediaLink" || c == "pnlTabButtons") { $("#slider").ready(function() { $("#slider").easySlider(); $("#slider ul li input.active_img").removeClass("active_img"); if (c.toString() == "pnlTabButtons") { $("#slider ul li:first input").addClass("active_img") } else { $(b).addClass("active_img") } tabbedMediaSlider() }) } } } } function tabbedMediaSlider() { if ($(".media_thumbs input").height() > 55) { $("#prevBtn").addClass("btnMedPos"); $("#nextBtn").addClass("btnMedPos") } else { if ($(".media_thumbs input").height() < 55 && $(".media_thumbs input").height() > 0) { $("#prevBtn").addClass("btnVidPos"); $("#nextBtn").addClass("btnVidPos") } } } function DropDownListShownTopNav() { if (Sys.Browser.name = "Microsoft Internet Explorer" && Sys.Browser.version == "7") { $(".announcement_section").css("zIndex", "-1"); $("#ctl00_ContentPlaceHolder_homeBanner").css("zIndex", "-1"); $(".share_page_links").css("zIndex", "-1") } var b = document.getElementById("dropDownctrTopNav"); var a = document.getElementById("tmpDivTopNav"); a.innerHTML = b.innerHTML; a.style.display = "block"; b.removeAttribute("style"); b.style.visibility = "visible"; if (a.offsetHeight <= 240) { b.style.overflowY = "hidden"; b.style.height = a.offsetHeight + 10 + "px" } else { b.style.height = "240px"; b.style.overflowY = "auto" } a.style.display = "none" } function OnItemSelected() { $("#ipSearchResult").click() } function HandleEnterForMainSearchSuggestion(a) { var b = a.keyCode ? a.keyCode : a.which ? a.which : a.charCode; if (b == 13) { OnItemSelected(); return false } else { return true } } function CheckForRequiredPluginInMediaPage(d, c) { if (Sys.Browser.name != "Opera") { if (pluginlist.indexOf(c) == -1) { var a = document.getElementById(d); DisplayInstallPluginMessage(a, c) } } else { var b = false; $.each(navigator.plugins, function(e, f) { if (f.name.toString().indexOf(c) == 0) { b = true; return false } }); if (!b) { var a = document.getElementById(d); DisplayInstallPluginMessage(a, c) } } } function DisplayInstallPluginMessage(a, b) { var c = null; if (b == "Shockwave Flash") { c = "http://get.adobe.com/flashplayer/" } if (b == "QuickTime") { c = "http://www.apple.com/quicktime/download/" } a.innerHTML = '<p class="paddingT10"><span class="errMsg">Oops! ' + b + ' missing!</span><br>Please <a class="downloadLink" href="' + c + '" target="_newtab">download</a> it to view this content.</p>' };

