(function(){ var _1=false; if(typeof wptheme==="undefined"||!wptheme){ wptheme={}; } i$.mash(wptheme,{togglePageMode:function(_2,_3,_4,_5){ var _6=i$.byId("wpthemeModeToggle"); i$.addClass(_6,"wpthemeEditControlLoading"); return i$.modules.loadDeferred().then(function(){ var _7=i$.fromPath("com.ibm.mashups"),_8=_7?com.ibm.mashups.builder.model.Factory.getRuntimeModel():null,_9=_7?com.ibm.mashups.enabler.user.Factory.getUserModel():null,_6=i$.byId("wpthemeModeToggle"),_a=i$.byId("wpthemeModeToggleImg"),_b=i$.byId("wpthemeModeToggleAccess"),_c=i$.byId("wpthemeModeToggleAltText"),_d=document.getElementsByTagName("body")[0],_e=function(_f){ if(_7){ com.ibm.mashups.services.ServiceManager.getService("eventService").broadcastEvent("com.ibm.mashups.builder.changePageMode",_f); _8.getCurrentPage().setPageMode(_f); } i$.fireEvent("wptheme/contextMenu/invalidate/all"); i$.removeClass(_6,"wpthemeEditControlLoading"); }; if((!_7&&!i$.hasClass(_d,"edit-mode"))||(_7&&_9.getAnonymousMode()!=com.ibm.mashups.enabler.user.AnonymousMode.ANONYMOUS&&_8.getCurrentPage().getPageMode()!="edit")){ _6.title=_a.alt=_3; _b.innerHTML=_4; _c.innerHTML=_3; if(!_1){ dojo.publish("/com/ibm/mashups/livetext/livetextchanged",[i$.byId("wpthemeComplementaryContent"),true]); if(!i$.isIE&&!i$.isOpera&&_7){ window.onbeforeunload=function(){ if(com.ibm.mashups.builder.model.Factory.getRuntimeModel().getCurrentPage().isDirty()){ return com.ibm.mm.builder.coreWidgetsStrings.I_PAGE_SAVE_WARNING; } }; } _1=true; } _e("edit"); i$.addClass(_d,"edit-mode"); }else{ _6.title=_a.alt=_2; _b.innerHTML=_5; _c.innerHTML=_2; _e("view"); i$.removeClass(_d,"edit-mode"); } },function(err){ console.log("Error: "+err); }); }}); })(); //To resolve INC307705 - open the Login box with the cursor placed in the username field function show_login() { $('li.login').addClass('show'); $('#username').focus(); } //Added to resolve INC307705 - close the Login box function hide_login() { $('li.login').removeClass('show'); } // Show search box when clicking on the search icon function show_search() { $('#secondary li.search_hover .secondary_sub').addClass('show'); $('#searchText').focus(); } function hide_search() { $('#secondary li.search_hover .secondary_sub').removeClass('show') } $(document).ready(function () { //To resolve INC307705 - open Login if the "Log In" link is clicked $('li.login > a').click(function() { show_login(); }); $('li.search_hover').click(function() { show_search(); }); //To resolve INC307705 - close Login if a user clicks anywhere outside of Login box $(document).on('click', function (e) { if ($(e.target).closest('li.login').length === 0) { hide_login(); } if ($(e.target).closest('li.search_hover').length === 0) { hide_search(); } }); //preload constituents image. if ($(".const .people").length) { $('').src = $(".const .people").css("background-image").replace('url(','').replace(')','').replace('"','').replace('"',''); } // Make form submit when pressing enter $('#loginform input[type=text], #loginform input[type=password]').keypress(function (e) { if(e.which === 13) { $("#loginform").submit(); } }); if ($("#searchlbl").length) { $("#searchlbl").inFieldLabels(); $(".infieldLabel > label").inFieldLabels(); } }); /* Javascript to display wait message pop-up for long running operations. - To use for a clickable element such as an anchor tag, just add class attribute with a value of "progress" Example: Click Here - To add a custom message call the displayWaitMessage() function from the onclick event with your own text. Example: Click Here - To call from a form where validation needs to happens first, call the showProgress() function from the onsubmit event. Example:
- To add a custom message call the displayWaitMessage() function from the onclick event of the submit button with your own text. Example: */ var mvpWaitMessage = "Loading..."; $(document).ready(function() { $(".progress").click(function() { startProgress(); }); }); /* Function: displayWaitMessage Description: Overrides default wait message to be displayed. Arguments: myMessage: Message to be displayed in body with spinner image. */ function displayWaitMessage(myMessage) { mvpWaitMessage = myMessage; } /* Function: showProgress Description: Populates the Wait Message with the mark up to display the please wait message. */ function startProgress() { var msg = '
' + mvpWaitMessage + '
'; $("#wait").html(msg); $("#wait").show(); $(".fade").show(); mvpWaitMessage = "Loading..."; } /* Function: showProgressOnSubmit Description: This is called by the onsubmit event handler on forms that need to display the please wait message. This is needed because Firefox will not animate a .gif file when using jquery's .html() function. */ function showProgress() { var isIE = navigator.userAgent.match(/msie/i); if (isIE) { startProgress(); } else { $("#waitMessage").text(mvpWaitMessage); $("#waitImage").attr("src", "/MVPThemesSkins/themes/html/mvpincludes/images/loading.gif"); $("#wait").show(); mvpWaitMessage = "Loading..."; } } /* add pdf label to all pdf links */ $(document).ready(function(){ $("a[href$='.pdf?MOD=AJPERES']").addClass("pdf"); $( ".pdf" ).after( document.createTextNode( " (PDF)" ) ); }); /* added 2016.10.07 Sirius CAG: Toggles the side navigation for mobile view */ $(document).ready(function(){ if ($('#left_nav_toggle').length && $('#left_nav').length) { var resizeTimer; $(window).on('resize', function (e) { clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { if (window.innerWidth > 740) { $('#left_nav').show(); } else { if (!$('#left_nav_toggle').hasClass('hidden')) { $('#left_nav').hide(); } } }, 250); }); $('#left_nav_toggle').click(function(e){ e.preventDefault(); $(this).toggleClass("hidden"); $('#left_nav').toggle('slide'); }); } if ($('#search_form').length) { var resizeTimer; // if (window.innerWidth < 740) { $("#search_form").trigger("sticky_kit:detach"); $("#results .header").trigger("sticky_kit:detach"); // } $(window).on('resize', function (e) { clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { if (window.innerWidth > 900) { $('#claimSearch').show(); $('#search_form > div.info_box').show() // $("#search_form").stick_in_parent(); // $("#results .header").stick_in_parent(); } else { // $("#search_form").trigger("sticky_kit:detach"); // $("#results .header").trigger("sticky_kit:detach"); if (!$('#search_form').hasClass('hidden')) { $('#search_form > div.info_box').hide(); $('#claimSearch').hide(); } } }, 250); }); $('#search_form').click(function(e){ if (e.target == this) { e.preventDefault(); $(this).toggleClass("hidden"); $('#search_form > div.info_box').slideToggle(); $('#claimSearch').slideToggle(); } }); } }); var outage = { init: function (o) { outage.id = o.id; outage.minDelay = 2000; outage.data = null; if (o.outageCheck === true) { alert('check status'); } }, check: function () { $.getJSON('/wps/wcm/connect/mvp_design/json/json_outages?t=' + new Date().getTime(), null, function(data) { $.each(data.outages, function (i, item) { outage.data = item; }) outage.build(); } ); }, display: function() { $('#'+outage.id).css('opacity',0).slideDown(500).animate({ opacity: 1}, {queue: false, duration: 1000}); }, build: function() { noticediv = document.createElement('div'); $(noticediv).attr('id', outage.id); sd = document.createElement('div'); td = document.createElement('div'); $(td).addClass('text'); $(sd).append(td); $(noticediv).append(sd); $('body').prepend(noticediv); var today = new Date(); if ((today > outage.convertDate(outage.data.warning_start)) && (today < outage.convertDate(outage.data.outage_start))) { if (outage.data.outage_id != outage.getCookie()) { $(td).html(outage.data.warning_overview); $('#' + outage.id + '> div').prepend('X'); $('#notice_close').click( function () { outage.close(); return false;}); outage.display(); } } else if ((today > outage.convertDate(outage.data.outage_start)) && (today < outage.convertDate(outage.data.outage_end))) { $(td).html(outage.data.outage_overview); outage.display(); } }, close: function () { $('#' + outage.id).css('opacity',1).slideUp(500).animate({ opacity: 0}, {queue: false, duration: 1000}); document.cookie = "outage=" + outage.data.outage_id + '; expires='+ outage.convertDate(outage.data.outage_end).toGMTString() + "; path=/"; }, getCookie: function() { var name = "outage="; var ca = document.cookie.split(';'); for (var i=0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c=c.substring(1,c.length); if (c.indexOf(name) == 0) return c.substring(name.length, c.length); } }, convertDate: function (t) { //for old ie, didn't want dependency on date.js var dateRE = /(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)/; var match = t.match(dateRE); var nums = [], item, date; if (match) { for (var i = 1; i < match.length; i++) { // alert(match[i]); nums.push(parseInt(match[i], 10)); } if (nums[7] < 0) { nums[8] *= -1; } return(new Date(nums[0], nums[1] - 1, nums[2], nums[3], nums[4], nums[5])); } } }; var mvp_mobile= { mobileHome: '/mobile/index.html', isPhone: function() { var a = navigator.userAgent.toLowerCase(); if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) return true; return false; }, redirect: function(o) { /* If cookie exists already redirected to mobile web site once, don't do again */ if (!testCookie("mvpRedirect")) { if (this.isPhone()) { setRedirectCookie(); document.location.href = o != null && o.page ? o.page : this.mobileHome; } } } } function setRedirectCookie() { /* Session cookie only, want redirect repeated if user is in new session */ var today = new Date(); var expire = new Date(); var cookieName = "mvpRedirect"; var cookieValue = "true"; document.cookie = cookieName+"="+escape(cookieValue); } function testCookie(name) { var nameEQ = escape(name) + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) === 0) return unescape(c.substring(nameEQ.length, c.length)); } return null; } // searchEngine.js: 2012-09-13 // Search Engine Functions - Currently Google Custom Search Engine /* * This function should be called in the search form's "onsubmit". * This function should be customized based on what parameters the existing search engine requires (e.g. search form action and search form inputs). */ function gs_handleSearch(searchForm) { searchForm.action = "https://www.mvphealthcare.com/SearchEngine/SearchEngineResults.html"; }(function(){ var _1=false; if(typeof wptheme==="undefined"||!wptheme){ wptheme={}; } i$.mash(wptheme,{togglePageMode:function(_2,_3,_4,_5){ var _6=i$.byId("wpthemeModeToggle"); i$.addClass(_6,"wpthemeEditControlLoading"); return i$.modules.loadDeferred().then(function(){ var _7=i$.fromPath("com.ibm.mashups"),_8=_7?com.ibm.mashups.builder.model.Factory.getRuntimeModel():null,_9=_7?com.ibm.mashups.enabler.user.Factory.getUserModel():null,_6=i$.byId("wpthemeModeToggle"),_a=i$.byId("wpthemeModeToggleImg"),_b=i$.byId("wpthemeModeToggleAccess"),_c=i$.byId("wpthemeModeToggleAltText"),_d=document.getElementsByTagName("body")[0],_e=function(_f){ if(_7){ com.ibm.mashups.services.ServiceManager.getService("eventService").broadcastEvent("com.ibm.mashups.builder.changePageMode",_f); _8.getCurrentPage().setPageMode(_f); } i$.fireEvent("wptheme/contextMenu/invalidate/all"); i$.removeClass(_6,"wpthemeEditControlLoading"); }; if((!_7&&!i$.hasClass(_d,"edit-mode"))||(_7&&_9.getAnonymousMode()!=com.ibm.mashups.enabler.user.AnonymousMode.ANONYMOUS&&_8.getCurrentPage().getPageMode()!="edit")){ _6.title=_a.alt=_3; _b.innerHTML=_4; _c.innerHTML=_3; if(!_1){ dojo.publish("/com/ibm/mashups/livetext/livetextchanged",[i$.byId("wpthemeComplementaryContent"),true]); if(!i$.isIE&&!i$.isOpera&&_7){ window.onbeforeunload=function(){ if(com.ibm.mashups.builder.model.Factory.getRuntimeModel().getCurrentPage().isDirty()){ return com.ibm.mm.builder.coreWidgetsStrings.I_PAGE_SAVE_WARNING; } }; } _1=true; } _e("edit"); i$.addClass(_d,"edit-mode"); }else{ _6.title=_a.alt=_2; _b.innerHTML=_5; _c.innerHTML=_2; _e("view"); i$.removeClass(_d,"edit-mode"); } },function(err){ console.log("Error: "+err); }); }}); })(); //To resolve INC307705 - open the Login box with the cursor placed in the username field function show_login() { $('li.login').addClass('show'); $('#username').focus(); } //Added to resolve INC307705 - close the Login box function hide_login() { $('li.login').removeClass('show'); } // Show search box when clicking on the search icon function show_search() { $('#secondary li.search_hover .secondary_sub').addClass('show'); $('#searchText').focus(); } function hide_search() { $('#secondary li.search_hover .secondary_sub').removeClass('show') } $(document).ready(function () { //To resolve INC307705 - open Login if the "Log In" link is clicked $('li.login > a').click(function() { show_login(); }); $('li.search_hover').click(function() { show_search(); }); //To resolve INC307705 - close Login if a user clicks anywhere outside of Login box $(document).on('click', function (e) { if ($(e.target).closest('li.login').length === 0) { hide_login(); } if ($(e.target).closest('li.search_hover').length === 0) { hide_search(); } }); //preload constituents image. if ($(".const .people").length) { $('').src = $(".const .people").css("background-image").replace('url(','').replace(')','').replace('"','').replace('"',''); } // Make form submit when pressing enter $('#loginform input[type=text], #loginform input[type=password]').keypress(function (e) { if(e.which === 13) { $("#loginform").submit(); } }); if ($("#searchlbl").length) { $("#searchlbl").inFieldLabels(); $(".infieldLabel > label").inFieldLabels(); } }); /* Javascript to display wait message pop-up for long running operations. - To use for a clickable element such as an anchor tag, just add class attribute with a value of "progress" Example: Click Here - To add a custom message call the displayWaitMessage() function from the onclick event with your own text. Example: Click Here - To call from a form where validation needs to happens first, call the showProgress() function from the onsubmit event. Example: - To add a custom message call the displayWaitMessage() function from the onclick event of the submit button with your own text. Example: */ var mvpWaitMessage = "Loading..."; $(document).ready(function() { $(".progress").click(function() { startProgress(); }); }); /* Function: displayWaitMessage Description: Overrides default wait message to be displayed. Arguments: myMessage: Message to be displayed in body with spinner image. */ function displayWaitMessage(myMessage) { mvpWaitMessage = myMessage; } /* Function: showProgress Description: Populates the Wait Message with the mark up to display the please wait message. */ function startProgress() { var msg = '
' + mvpWaitMessage + '
'; $("#wait").html(msg); $("#wait").show(); $(".fade").show(); mvpWaitMessage = "Loading..."; } /* Function: showProgressOnSubmit Description: This is called by the onsubmit event handler on forms that need to display the please wait message. This is needed because Firefox will not animate a .gif file when using jquery's .html() function. */ function showProgress() { var isIE = navigator.userAgent.match(/msie/i); if (isIE) { startProgress(); } else { $("#waitMessage").text(mvpWaitMessage); $("#waitImage").attr("src", "/MVPThemesSkins/themes/html/mvpincludes/images/loading.gif"); $("#wait").show(); mvpWaitMessage = "Loading..."; } } /* add pdf label to all pdf links */ $(document).ready(function(){ $("a[href$='.pdf?MOD=AJPERES']").addClass("pdf"); $( ".pdf" ).after( document.createTextNode( " (PDF)" ) ); }); /* added 2016.10.07 Sirius CAG: Toggles the side navigation for mobile view */ $(document).ready(function(){ if ($('#left_nav_toggle').length && $('#left_nav').length) { var resizeTimer; $(window).on('resize', function (e) { clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { if (window.innerWidth > 740) { $('#left_nav').show(); } else { if (!$('#left_nav_toggle').hasClass('hidden')) { $('#left_nav').hide(); } } }, 250); }); $('#left_nav_toggle').click(function(e){ e.preventDefault(); $(this).toggleClass("hidden"); $('#left_nav').toggle('slide'); }); } if ($('#search_form').length) { var resizeTimer; // if (window.innerWidth < 740) { $("#search_form").trigger("sticky_kit:detach"); $("#results .header").trigger("sticky_kit:detach"); // } $(window).on('resize', function (e) { clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { if (window.innerWidth > 900) { $('#claimSearch').show(); $('#search_form > div.info_box').show() // $("#search_form").stick_in_parent(); // $("#results .header").stick_in_parent(); } else { // $("#search_form").trigger("sticky_kit:detach"); // $("#results .header").trigger("sticky_kit:detach"); if (!$('#search_form').hasClass('hidden')) { $('#search_form > div.info_box').hide(); $('#claimSearch').hide(); } } }, 250); }); $('#search_form').click(function(e){ if (e.target == this) { e.preventDefault(); $(this).toggleClass("hidden"); $('#search_form > div.info_box').slideToggle(); $('#claimSearch').slideToggle(); } }); } }); var outage = { init: function (o) { outage.id = o.id; outage.minDelay = 2000; outage.data = null; if (o.outageCheck === true) { alert('check status'); } }, check: function () { $.getJSON('/wps/wcm/connect/mvp_design/json/json_outages?t=' + new Date().getTime(), null, function(data) { $.each(data.outages, function (i, item) { outage.data = item; }) outage.build(); } ); }, display: function() { $('#'+outage.id).css('opacity',0).slideDown(500).animate({ opacity: 1}, {queue: false, duration: 1000}); }, build: function() { noticediv = document.createElement('div'); $(noticediv).attr('id', outage.id); sd = document.createElement('div'); td = document.createElement('div'); $(td).addClass('text'); $(sd).append(td); $(noticediv).append(sd); $('body').prepend(noticediv); var today = new Date(); if ((today > outage.convertDate(outage.data.warning_start)) && (today < outage.convertDate(outage.data.outage_start))) { if (outage.data.outage_id != outage.getCookie()) { $(td).html(outage.data.warning_overview); $('#' + outage.id + '> div').prepend('X'); $('#notice_close').click( function () { outage.close(); return false;}); outage.display(); } } else if ((today > outage.convertDate(outage.data.outage_start)) && (today < outage.convertDate(outage.data.outage_end))) { $(td).html(outage.data.outage_overview); outage.display(); } }, close: function () { $('#' + outage.id).css('opacity',1).slideUp(500).animate({ opacity: 0}, {queue: false, duration: 1000}); document.cookie = "outage=" + outage.data.outage_id + '; expires='+ outage.convertDate(outage.data.outage_end).toGMTString() + "; path=/"; }, getCookie: function() { var name = "outage="; var ca = document.cookie.split(';'); for (var i=0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c=c.substring(1,c.length); if (c.indexOf(name) == 0) return c.substring(name.length, c.length); } }, convertDate: function (t) { //for old ie, didn't want dependency on date.js var dateRE = /(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)/; var match = t.match(dateRE); var nums = [], item, date; if (match) { for (var i = 1; i < match.length; i++) { // alert(match[i]); nums.push(parseInt(match[i], 10)); } if (nums[7] < 0) { nums[8] *= -1; } return(new Date(nums[0], nums[1] - 1, nums[2], nums[3], nums[4], nums[5])); } } }; var mvp_mobile= { mobileHome: '/mobile/index.html', isPhone: function() { var a = navigator.userAgent.toLowerCase(); if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) return true; return false; }, redirect: function(o) { /* If cookie exists already redirected to mobile web site once, don't do again */ if (!testCookie("mvpRedirect")) { if (this.isPhone()) { setRedirectCookie(); document.location.href = o != null && o.page ? o.page : this.mobileHome; } } } } function setRedirectCookie() { /* Session cookie only, want redirect repeated if user is in new session */ var today = new Date(); var expire = new Date(); var cookieName = "mvpRedirect"; var cookieValue = "true"; document.cookie = cookieName+"="+escape(cookieValue); } function testCookie(name) { var nameEQ = escape(name) + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) === 0) return unescape(c.substring(nameEQ.length, c.length)); } return null; } // searchEngine.js: 2012-09-13 // Search Engine Functions - Currently Google Custom Search Engine /* * This function should be called in the search form's "onsubmit". * This function should be customized based on what parameters the existing search engine requires (e.g. search form action and search form inputs). */ function gs_handleSearch(searchForm) { searchForm.action = "https://www.mvphealthcare.com/SearchEngine/SearchEngineResults.html"; }/** * jquery-match-height master by @liabru * http://brm.io/jquery-match-height/ * License: MIT */ ;(function(factory) { // eslint-disable-line no-extra-semi 'use strict'; if (typeof define === 'function' && define.amd) { // AMD define(['jquery'], factory); } else if (typeof module !== 'undefined' && module.exports) { // CommonJS module.exports = factory(require('jquery')); } else { // Global factory(jQuery); } })(function($) { /* * internal */ var _previousResizeWidth = -1, _updateTimeout = -1; /* * _parse * value parse utility function */ var _parse = function(value) { // parse value and convert NaN to 0 return parseFloat(value) || 0; }; /* * _rows * utility function returns array of jQuery selections representing each row * (as displayed after float wrapping applied by browser) */ var _rows = function(elements) { var tolerance = 1, $elements = $(elements), lastTop = null, rows = []; // group elements by their top position $elements.each(function(){ var $that = $(this), top = $that.offset().top - _parse($that.css('margin-top')), lastRow = rows.length > 0 ? rows[rows.length - 1] : null; if (lastRow === null) { // first item on the row, so just push it rows.push($that); } else { // if the row top is the same, add to the row group if (Math.floor(Math.abs(lastTop - top)) <= tolerance) { rows[rows.length - 1] = lastRow.add($that); } else { // otherwise start a new row group rows.push($that); } } // keep track of the last row top lastTop = top; }); return rows; }; /* * _parseOptions * handle plugin options */ var _parseOptions = function(options) { var opts = { byRow: true, property: 'height', target: null, remove: false }; if (typeof options === 'object') { return $.extend(opts, options); } if (typeof options === 'boolean') { opts.byRow = options; } else if (options === 'remove') { opts.remove = true; } return opts; }; /* * matchHeight * plugin definition */ var matchHeight = $.fn.matchHeight = function(options) { var opts = _parseOptions(options); // handle remove if (opts.remove) { var that = this; // remove fixed height from all selected elements this.css(opts.property, ''); // remove selected elements from all groups $.each(matchHeight._groups, function(key, group) { group.elements = group.elements.not(that); }); // TODO: cleanup empty groups return this; } if (this.length <= 1 && !opts.target) { return this; } // keep track of this group so we can re-apply later on load and resize events matchHeight._groups.push({ elements: this, options: opts }); // match each element's height to the tallest element in the selection matchHeight._apply(this, opts); return this; }; /* * plugin global options */ matchHeight.version = 'master'; matchHeight._groups = []; matchHeight._throttle = 80; matchHeight._maintainScroll = false; matchHeight._beforeUpdate = null; matchHeight._afterUpdate = null; matchHeight._rows = _rows; matchHeight._parse = _parse; matchHeight._parseOptions = _parseOptions; /* * matchHeight._apply * apply matchHeight to given elements */ matchHeight._apply = function(elements, options) { var opts = _parseOptions(options), $elements = $(elements), rows = [$elements]; // take note of scroll position var scrollTop = $(window).scrollTop(), htmlHeight = $('html').outerHeight(true); // get hidden parents var $hiddenParents = $elements.parents().filter(':hidden'); // cache the original inline style $hiddenParents.each(function() { var $that = $(this); $that.data('style-cache', $that.attr('style')); }); // temporarily must force hidden parents visible $hiddenParents.css('display', 'block'); // get rows if using byRow, otherwise assume one row if (opts.byRow && !opts.target) { // must first force an arbitrary equal height so floating elements break evenly $elements.each(function() { var $that = $(this), display = $that.css('display'); // temporarily force a usable display value if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') { display = 'block'; } // cache the original inline style $that.data('style-cache', $that.attr('style')); $that.css({ 'display': display, 'padding-top': '0', 'padding-bottom': '0', 'margin-top': '0', 'margin-bottom': '0', 'border-top-width': '0', 'border-bottom-width': '0', 'height': '100px', 'overflow': 'hidden' }); }); // get the array of rows (based on element top position) rows = _rows($elements); // revert original inline styles $elements.each(function() { var $that = $(this); $that.attr('style', $that.data('style-cache') || ''); }); } $.each(rows, function(key, row) { var $row = $(row), targetHeight = 0; if (!opts.target) { // skip apply to rows with only one item if (opts.byRow && $row.length <= 1) { $row.css(opts.property, ''); return; } // iterate the row and find the max height $row.each(function(){ var $that = $(this), style = $that.attr('style'), display = $that.css('display'); // temporarily force a usable display value if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') { display = 'block'; } // ensure we get the correct actual height (and not a previously set height value) var css = { 'display': display }; css[opts.property] = ''; $that.css(css); // find the max height (including padding, but not margin) if ($that.outerHeight(false) > targetHeight) { targetHeight = $that.outerHeight(false); } // revert styles if (style) { $that.attr('style', style); } else { $that.css('display', ''); } }); } else { // if target set, use the height of the target element targetHeight = opts.target.outerHeight(false); } // iterate the row and apply the height to all elements $row.each(function(){ var $that = $(this), verticalPadding = 0; // don't apply to a target if (opts.target && $that.is(opts.target)) { return; } // handle padding and border correctly (required when not using border-box) if ($that.css('box-sizing') !== 'border-box') { verticalPadding += _parse($that.css('border-top-width')) + _parse($that.css('border-bottom-width')); verticalPadding += _parse($that.css('padding-top')) + _parse($that.css('padding-bottom')); } // set the height (accounting for padding and border) $that.css(opts.property, (targetHeight - verticalPadding) + 'px'); }); }); // revert hidden parents $hiddenParents.each(function() { var $that = $(this); $that.attr('style', $that.data('style-cache') || null); }); // restore scroll position if enabled if (matchHeight._maintainScroll) { $(window).scrollTop((scrollTop / htmlHeight) * $('html').outerHeight(true)); } return this; }; /* * matchHeight._applyDataApi * applies matchHeight to all elements with a data-match-height attribute */ matchHeight._applyDataApi = function() { var groups = {}; // generate groups by their groupId set by elements using data-match-height $('[data-match-height], [data-mh]').each(function() { var $this = $(this), groupId = $this.attr('data-mh') || $this.attr('data-match-height'); if (groupId in groups) { groups[groupId] = groups[groupId].add($this); } else { groups[groupId] = $this; } }); // apply matchHeight to each group $.each(groups, function() { this.matchHeight(true); }); }; /* * matchHeight._update * updates matchHeight on all current groups with their correct options */ var _update = function(event) { if (matchHeight._beforeUpdate) { matchHeight._beforeUpdate(event, matchHeight._groups); } $.each(matchHeight._groups, function() { matchHeight._apply(this.elements, this.options); }); if (matchHeight._afterUpdate) { matchHeight._afterUpdate(event, matchHeight._groups); } }; matchHeight._update = function(throttle, event) { // prevent update if fired from a resize event // where the viewport width hasn't actually changed // fixes an event looping bug in IE8 if (event && event.type === 'resize') { var windowWidth = $(window).width(); if (windowWidth === _previousResizeWidth) { return; } _previousResizeWidth = windowWidth; } // throttle updates if (!throttle) { _update(event); } else if (_updateTimeout === -1) { _updateTimeout = setTimeout(function() { _update(event); _updateTimeout = -1; }, matchHeight._throttle); } }; /* * bind events */ // apply on DOM ready event $(matchHeight._applyDataApi); // update heights on load and resize events $(window).bind('load', function(event) { matchHeight._update(false, event); }); // throttled update heights on resize events $(window).bind('resize orientationchange', function(event) { matchHeight._update(true, event); }); }); /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */ window.matchMedia || (window.matchMedia = function() { "use strict"; // For browsers that support matchMedium api such as IE 9 and webkit var styleMedia = (window.styleMedia || window.media); // For those that don't support matchMedium if (!styleMedia) { var style = document.createElement('style'), script = document.getElementsByTagName('script')[0], info = null; style.type = 'text/css'; style.id = 'matchmediajs-test'; script.parentNode.insertBefore(style, script); // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers info = ('getComputedStyle' in window) && window.getComputedStyle(style, null) || style.currentStyle; styleMedia = { matchMedium: function(media) { var text = '@media ' + media + '{ #matchmediajs-test { width: 1px; } }'; // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers if (style.styleSheet) { style.styleSheet.cssText = text; } else { style.textContent = text; } // Test if media query is true or false return info.width === '1px'; } }; } return function(media) { return { matches: styleMedia.matchMedium(media || 'all'), media: media || 'all' }; }; }()); //jQuery.noConflict(); (function($) { // @codekit-prepend "jquery.matchHeight.js"; // @codekit-prepend "matchMedia.js"; /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ $(window).load(function() { $("body").removeAttr("id"); }); $(document).ready(function(){ var mq = window.matchMedia( "(min-width: 56.250em)" ); // 900 var mq_last = mq.matches; var windowWidth = $(window).width(); /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /* MOBILE NAV */ /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ //slidedown mobile nav - marginTop also in navopenclose function var navHeight = $("nav").innerHeight(); var topperHeight = $(".topper").innerHeight(); var signinHeight = $(".signin-menu-link .colorbar-top").innerHeight(); var noticeHeight = $("#notice:visible").innerHeight(); if (mq.matches){ $("nav").css({ marginTop: 0, top: 0 }); /*if ( $("html").hasClass("js") ){ $("#nav-signin").click(function(e){ e.preventDefault(); $( ".signin-menu-link .colorbar-top" ).slideToggle("fast"); }); }*/ } else { $("nav").css("marginTop", - (navHeight + noticeHeight + topperHeight) ); } //animated hamburger and trigger menu slide $(".hamburger").click(function(e) { e.preventDefault(); $(this).toggleClass("is-active"); navopenclose(); }); $('body').on('click', '#overlay', function() { navopenclose(); $(".hamburger").toggleClass("is-active"); //console.log('overlay clicked'); return false; }); mobilesubnav(); /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ // Accordion open/close $("ul.list-accordion").on('click', '.trigger', function () { var $this = $(this); $this.toggleClass("active").next(".expand").slideToggle("fast"); }).on('click', '.close', function () { var $this = $(this); $this.parents('li').find('.trigger').toggleClass("active").next(".expand").slideToggle("fast"); return false; }); // Footer - mobile expanding menus if (!mq.matches){ $(".footernav > div > p").click(function() { $(this).next("ul").slideToggle(); }); } // IE9 needs help if ( $("html").hasClass("ie9") ){ $('.matchheight-container').matchHeight(); } // Handle menus on resize $(window).resize(function() { var navHeight = $("nav").innerHeight(); var topperHeight = $(".topper").innerHeight(); var noticeHeight = $("#notice:visible").innerHeight(); var mq = window.matchMedia( "(min-width: 56.250em)" );// 900px if (mq_last != mq.matches) { if (mq.matches){ $("nav").removeAttr("style"); if ( $("nav").hasClass("open") ){ $("nav").removeClass("open"); $(".hamburger").removeClass("is-active"); $("#overlay").remove(); } $(".footernav > div > p").off('click'); if ( $(".footernav > div > p + ul:hidden") ){ $(".footernav > div > p + ul").show(); } } else { //console.info("mobile"); $("nav").hide(); $("nav").css("marginTop", - (navHeight + noticeHeight + topperHeight)); $("nav").show(); $(".signin-menu-link .colorbar-top").hide(); $(".footernav > div > p").off('click').on('click',function() { $(this).next("ul").slideToggle(); }); } mq_last = mq.matches; } else { if (!mq.matches){ var mq = window.matchMedia( "(min-width: 56.250em)" );// 900px //keep top of mobile nav at bottom of topper because logo scales and topper height changes topperHeight = $(".topper").innerHeight(); $( "nav" ).css("top", topperHeight + noticeHeight - 3); $(".footernav > div > p").off('click').on('click',function() { $(this).next("ul").slideToggle(); }); } } mobilesubnav(); }); //animate open/close of mobile nav function navopenclose(){ var docHeight = $(document).height(); var navHeight = $("nav").innerHeight(); var topperHeight = $(".topper").innerHeight(); var noticeHeight = $("#notice:visible").innerHeight(); if ( $("nav").hasClass("open")){ $("#overlay").remove(); $( "nav" ).animate({ marginTop: - (navHeight + noticeHeight + topperHeight) }, 350, function() { $(this).toggleClass("open"); }); } else { $( "nav" ).animate({ marginTop: "0", top: topperHeight + noticeHeight - 3 }, 350, function() { $(this).toggleClass("open"); }); $("body").append("
"); $("#overlay") .height(docHeight) .css({ 'position': 'absolute', 'top': 0, 'left': 0, 'background-color': '#8d827a', 'opacity' : 0.7, 'width': '100%', 'z-index': 899, 'cursor': 'pointer' }); } } // Expanding of mobile subnav function mobilesubnav() { var mq = window.matchMedia( "(min-width: 56.250em)" );// 900px var $topLevel = $('.toplevel'); if (!mq.matches){ $topLevel.off('click').on('click', function (e) { e.preventDefault(); $("+ .subnav", this).slideToggle(); }).find("a").off('click').on("click", function(e) { e.preventDefault(); }); $("#nav-signin").off('click').on("click",function(e){ e.preventDefault(); $(".signin-menu-link .colorbar-top").slideToggle(); }); } else { $topLevel.off('click'); $('.toplevel a').off('click'); } } //////////////////////// (function(doc) { var addEvent = 'addEventListener', type = 'gesturestart', qsa = 'querySelectorAll', scales = [1, 1], meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : []; function fix() { meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1]; doc.removeEventListener(type, fix, true); } if ((meta = meta[meta.length - 1]) && addEvent in doc) { fix(); scales = [.25, 1.6]; doc[addEvent](type, fix, true); } }(document)); /* * jQuery Extended Selectors plugin. (c) Keith Clark freely distributable under the terms of the MIT license. * Adds missing -of-type pseudo-class selectors to jQuery * github.com/keithclark/JQuery-Extended-Selectors - twitter.com/keithclarkcouk - keithclark.co.uk */ (function(g){function e(a,b){for(var c=a,d=0;a=a[b];)c.tagName==a.tagName&&d++;return d}function h(a,b,c){a=e(a,c);if(b=="odd"||b=="even")c=2,a-=b!="odd";else{var d=b.indexOf("n");d>-1?(c=parseInt(b,10)||parseInt(b.substring(0,d)+"1",10),a-=(parseInt(b.substring(d+1),10)||0)-1):(c=a+1,a-=parseInt(b,10)-1)}return(c<0?a<=0:a>=0)&&a%c==0}var f={"first-of-type":function(a){return e(a,"previousSibling")==0},"last-of-type":function(a){return e(a,"nextSibling")==0},"only-of-type":function(a){return f["first-of-type"](a)&& f["last-of-type"](a)},"nth-of-type":function(a,b,c){return h(a,c[3],"previousSibling")},"nth-last-of-type":function(a,b,c){return h(a,c[3],"nextSibling")}};g.extend(g.expr[":"],f)})(jQuery); }); })(jQuery);