You\'re seeing this message because you originally came to MiBCN.com, the website for Blue Care Network.
We recently combined MiBCN.com with the Blue Cross Blue Shield of Michigan website. BCBSM.com is your new destination to find a doctor, choose an insurance plan, or get help with your HMO coverage.
We appreciate your patience during this transition. Please contact us if you have any questions.
';
$('body').prepend(modalMarkup);
// setCookie("mibcnVisit", "0", new Date(Date.parse("Jan 1, 2050")));
$("#mibcnModal").modal();
}
*/
// Inject OO_Feedback Javascript Link
function injectFeedback() {
$('a[href*="inject_feedback"]').attr('onclick', 'oo_feedback.show()').attr(
'href', '#');
}
// Standard Code to set/retrieve/delete cookies
function setCookie(sName, sValue, oExpires) {
var sCookie = sName + ("=" + sValue);
if (oExpires) {
nowTime = (new Date).getTime();
sCookie += "; expires=" + oExpires.toGMTString() + "; " + nowTime;
}
document.cookie = sCookie;
}
function getCookie(sName) {
var sRE = "(?:; )?" + sName + "=([^;]*);?";
var oRE = new RegExp(sRE);
if (oRE.test(document.cookie)) {
return decodeURIComponent(RegExp.$1);
} else {
//console.log("Setting a cookie");
return "";
}
}
function deleteCookie(sName) {
setCookie(sName, "", new Date(0));
}
// Get URL Parameters
$.extend({
getUrlVars: function () {
var vars = [],
hash;
var hashes = window.location.href.slice(window.location.href.indexOf(
'?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
},
getUrlVar: function (name) {
return $.getUrlVars()[name];
}
});
$(document).ready(function () {
msieversion();
// check for mibcn referrer and show modal
//mibcnCheck();
// inject Online Opinion Website Feedback
injectFeedback();
var imagePath = '/content/dam/public/shared/documents/img/';
$.expr[':'].external = function (obj) {
return (obj.hostname != location.hostname);
};
$('.backToTop').click(function () {
$('body,html').animate({
scrollTop: $('#content').offset().top - 20
}, 800);
});
//Set variables for search page and the search string
var searchPage = '/content/public/en/search.html'; //the name/location of the search page
var searchUrl = 'http://search.bcbsm.com/search?q='; //The GSA search source
var searchTerm = $.getUrlVar('q'); //Pull the search term from the URL
var searchSite = '&site=pub'; //default site is the BCBSM site...
var searchOutput = '&output=xml_no_dtd'; //this can't change, unless you want to break the search
var start = 0; //Start at the first result
var fullUrl = searchUrl + searchTerm + searchSite + searchOutput +
'&start=' + start; //All together now!
// Pass query string to search page for top/bottom search boxes on form submita
$('.siteSearchTop').submit(function (ev) {
var queryString = $('.siteSearchTop');
document.location = '/content/public/en/search.html' + queryString;
});
$.doSearch = function () {
if ($('.search-query').val() == '') {
$('.search-query').val(searchTerm);
} else {
searchTerm = $('.search-query').val();
}
$('.searchResults').empty();
$('.searchResults').hide();
$('.searchResults').fadeIn();
fullUrl = searchUrl + searchTerm + searchSite + searchOutput +
'&start=' + start;
$('body,html').animate({
scrollTop: 0
}, 800);
$.showSearch();
};
// Search nav button functionality
$('.searchPager').click(function () {
$('.searchPager').css("font-size", "12px");
$('.searchPager').css("font-weight", "normal");
$('.searchPager').removeClass("searchActive");
$('.searchPager').addClass("searchPager");
$(this).addClass("searchPager searchActive");
$("#endOfRoad").remove();
});
$('#search1').click(function () {
start = 0;
$.doSearch();
});
$('#search2').click(function () {
start = 11;
$.doSearch();
});
$('#search3').click(function () {
start = 21;
$.doSearch();
});
$('#search4').click(function () {
start = 31;
$.doSearch();
});
$('#search5').click(function () {
start = 41;
$.doSearch();
});
$('#search6').click(function () {
start = 51;
$.doSearch();
});
$('#search7').click(function () {
start = 61;
$.doSearch();
});
$('#search8').click(function () {
start = 71;
$.doSearch();
});
$('#search9').click(function () {
start = 81;
$.doSearch();
});
$('#search10').click(function () {
start = 91;
$.doSearch();
$(".searchResults").after(
'
In order to show you the most relevant content, we have omitted some results. If you like, you can try your search again.
');
});
$('#searchBack').click(function () {
$.goBack();
});
$('#searchNext').click(function () {
$.goNext();
});
$.goBack = function () {
if (start == 11) {
$('#search1').click();
} else if (start == 21) {
$('#search2').click();
} else if (start == 31) {
$('#search3').click();
} else if (start == 41) {
$('#search4').click();
} else if (start == 51) {
$('#search5').click();
} else if (start == 61) {
$('#search6').click();
} else if (start == 71) {
$('#search7').click();
} else if (start == 81) {
$('#search8').click();
} else if (start == 91) {
$('#search9').click();
}
}
$.goNext = function () {
if (start == 0) {
$('#search2').click();
} else if (start == 11) {
$('#search3').click();
} else if (start == 21) {
$('#search4').click();
} else if (start == 31) {
$('#search5').click();
} else if (start == 41) {
$('#search6').click();
} else if (start == 51) {
$('#search7').click();
} else if (start == 61) {
$('#search8').click();
} else if (start == 71) {
$('#search9').click();
} else if (start == 81) {
$('#search10').click();
}
}
$.showSearch = function () {
(function ($) {
$.extend({
_prepareYQLQuery: function (query, params) {
$.each(
params, function (key) {
var name = "#{" + key + "}";
var value = $.trim(this);
if (!value.match(/^[0-9]+$/)) {
value = '"' + value + '"';
}
while (query.search(name) > -1) {
query = query.replace(name, value);
}
var name = "@" + key;
var value = $.trim(this);
if (!value.match(/^[0-9]+$/)) {
value = '"' + value + '"';
}
while (query.search(name) > -1) {
query = query.replace(name, value);
}
});
return query;
},
yql: function (query) {
var $self = this;
var successCallback = null;
var errorCallback = null;
if (typeof arguments[1] == 'object') {
query = $self._prepareYQLQuery(query, arguments[1]);
successCallback = arguments[2];
errorCallback = arguments[3];
} else if (typeof arguments[1] == 'function') {
successCallback = arguments[1];
errorCallback = arguments[2];
}
var doAsynchronously = successCallback != null;
var yqlJson = {
url: "http://query.yahooapis.com/v1/public/yql",
dataType: "jsonp",
success: successCallback,
async: doAsynchronously,
data: {
q: query,
format: "json",
env: 'store://datatables.org/alltableswithkeys',
callback: "?"
}
};
$.ajax(yqlJson);
return $self.toReturn;
}
});
$.yql('select * from xml where url="' + fullUrl + '"',
function (data) {
// Default behavior if the search returns no results...
if (data.query.results.GSP.RES == null) {
var title = 'Your search for "' + searchTerm +
'" did not match any pages or documents.
'
$(".noResults").append(title + 'Suggestions:
' +
'
Make sure all words are spelled correctly.
' +
'
Try different keywords.
' +
'
Try more general keywords
');
} else {
count = data.query.results.GSP.RES.M;
data = data.query.results.GSP.RES.R;
var x = 0;
// Set variables for the results counts at the top and bottom of the search
if (start == 0) {
range = '1-10';
} else if (start == 11) {
range = '11-20';
} else if (start == 21) {
range = '21-30';
} else if (start == 31) {
range = '31-40';
} else if (start == 41) {
range = '41-50';
} else if (start == 51) {
range = '51-60';
} else if (start == 61) {
range = '61-70';
} else if (start == 71) {
range = '71-80';
} else if (start == 81) {
range = '81-90';
} else if (start == 91) {
range = '91-100';
}
//Default behavior if there is no query string in the URL...
// Hide Best Match Results
$("#bestMatch").hide();
if (!searchTerm) {
/*
var title = 'Please Enter your Search Term: ';
$(".searchResults").append(title +'');
*/
$(".results").hide();
} else {
$(".results").html('' + range +
' of about ' + count +
' for ' +
searchTerm + '.');
// Best Match Library and functions
//var match1 = "reform";
//var match2 = "member+portal";
//var match3 = "dental";
//var match4 = "optical";
//var match5 = "vision";
$.doMatch = function () {
var title = 'Best Match Results:';
$("#bestMatch").fadeIn();
$("#bestMatch").html('
' + title + '
' +
'' +
'Looking for information on ' +
searchTerm + '? ' +
matchMessage + '');
};
/* Disabled -cmc 11/26/2012 1632
if(searchTerm.indexOf(match1) != -1){
var matchUrl = "http://www.bcbsm.com/healthreform/";
var matchMessage = "Health Reform";
$.doMatch();
} else if(searchTerm.indexOf(match2) != -1){
var matchUrl = "http://www.bcbsm.com";
var matchMessage = "BCBSM Homepage";
$.doMatch();
}
*/
// iterate through and output the results
while (x < data.length) {
if (data[x].MIME == 'application/pdf') {
var stdLink = '' + data[
x].T + '';
} else {
var stdLink = '' + data[
x].T + '';
}
$(".searchResults").append(
'
');
x++;
}
$('#searchMore').fadeIn();
// replace the "+" symbol with a space inside the best match and search results spans
$('.termSpan').html($('.termSpan').html().replace(
/[%2B,+]/g, " "));
}
}
});
})(jQuery);
}
// Load functions that need to run on body load
$(function () {
// check for mibcn referrer and show modal
//mibcnCheck();
//when doc is ready, load accordion contents
accordionLoader();
$.kickStart();
// Create tooltips for all Anchors and Spans with 'rel="tooltip"' in the tag
// Changed the way tooltips are invoked to account for dynamic content
//and a bug in IE that shows original title attribute tooltip -bbenvenuti
$(document).on('mouseenter', 'a[rel=tooltip]', function() {
var $e = $(this);
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
}
$e.tooltip('show');
});
//Find all links on a page and check to see if they are internal/external
$.expr[':'].external = function (obj) {
return (obj.hostname != location.hostname);
};
});
// Load content from external page into tabs, accordions or modal popups
var loadImg = '.tabLoad';
var errorLoadingContent =
'
Sorry but there was an error ' +
'loading the requested content Please check back soon.
';
$.kickStart = function () {
//updated 11052012 1019 cmc, correct link, missing quotes
//updated 03192013 LZ, Removed first visit drawer
//updated 07252013 Brad B, update for new member banner dropdown
var panel = $('#panel'),
handle = $('.handle-container');
if ( panel.length > 0 && handle.length > 0 ){
//needed in cq-->
panel.prependTo('body');
handle.prependTo('#main_bg');
//setup event handlers
memberBanner.setupEvents();
if (!getCookie("firstVisitMemberBanner")) {
//initial open - delay 1 second
setTimeout( function() {
$('html, body').animate({ scrollTop: 0 }, 'slow' );
memberBanner.toggle();
}, 1000);
//set cookie to stop opening automatically
setCookie("firstVisitMemberBanner", "0", new Date(Date.parse("Jan 1, 2050")));
}
}
//$('#fvToggle').click(function () {
//$("#firstVisit").slideToggle('slow');
// slideDown(600).delay(5000).slideUp(600); // Replaced with toggle
//});
//not related to member banner... not sure what this is for -brad
if ($('.ajLink')) {
var tabLink = $('.ajLink:first');
tabLink.tab('show');
c = tabLink.attr('rel');
e = '#tabContent';
$.loadContentFirst();
}
}
// Specifically for Tabbed Content
$('.ajLink[data-toggle="tab"]').click(function (event) {
event.preventDefault();
event.stopPropagation();
$(this).tab('show');
});
$(document).on('shown.bs.tab', '.ajLink[data-toggle="tab"]', function (event) {
c = $(this).attr('rel');
e = '#tabContent';
$.loadContentFirst();
});
//go to and open function-begin
$(document).ready(function(){
var doc = self.document.location.hash;
if(doc.substring() == "#FindYourPlan"){
var el = $("a[href='"+ doc.substring() +"']");
$('html,body').animate({scrollTop: el.offset().top-10},'slow');
el.click();
}
});
//go to and open function-end
// Collapse Content
$('[data-toggle="collapse"]').click(function (event) {
event.preventDefault();
event.stopPropagation();
$(this).collapse('show');
$($(this).attr('href')).toggleClass('in');
if(medicareDynamicDateParam){
dynamicDate();
}
});
$(document).on('shown.bs.collapse', '[data-toggle="collapse"]', function (event) {
c = $(this).attr('rel');
e = $(this).attr('href');
$.loadContentFirst(medicareDynamicDateParam);
});
// Specifically for the green Get a Quote buttons
// $(".getQuoteButton").click(function () {
// if(/silver/.test(window.location.pathname)|| /gold/.test(window.location.pathname)){
// if(/multi-state-ppo/.test(window.location.pathname)){
// c = '/content/public/en/index/plans/michigan-health-insurance/get-a-quote/new-renew-modal.html #modalContent';
// e = '.modal-body';
// $.loadContent();
// $("#modalWindow").modal();
// }
// }
// });
//Get JSON data for login/registration popup
var loginData = {};
$.getJSON("/content/dam/public/shared/documents/login-form-config.json", function (
data) {
loginData = data;
})
.error(function () {
console.log(
'Failed to load login-form-config.json. Login popup and registration links not loaded!');
})
.complete(function () {
// Login Popup Window and Forms Functionality and Content
var memberRegMessage =
'Not Registered? Get access to your online account. Register Now',
employerRegMessage =
'Not Registered? Get access to your employer portal. Register Now',
agentRegMessage =
'Not Registered? Get access to your agent portal. Register Now',
providerRegMessage =
'Learn more about registering for our web tools. Register Now.';
// Populate the login popup and form elements with the correct titles and links, etc.
$(".username").html(loginData.username_text);
$(".password").html(loginData.password_text);
$("#loginTitle").html(loginData.title_text);
// Populate the "Forgot your username or password?" links for each constituency
$("#forgotMember").html('Forgot your username or password?');
$("#forgotEmployer").html('Forgot your username or password?');
$("#forgotAgent").html('Forgot your username or password?');
$("#forgotProvider").html('Forgot your username or password?');
// Add the constituency names to the tabs
$("#tab-member").html('' + loginData[CURR_ENV].member.title +
'');
$("#tab-group").html('' + loginData[CURR_ENV].employer.title +
'');
$("#tab-agent").html('' + loginData[CURR_ENV].agent.title +
'');
$("#tab-provider").html('' + loginData[CURR_ENV].provider.title +
'');
// Code to use cookies to set the default login tab and form content that is displayed
$('.loginTabs ul li').removeClass('active');
$('.loginForm').hide();
if (getCookie("loginURL") == "0") {
$('#tab-member').addClass('active');
$('#formMember').show();
$('#registerMessage').html(memberRegMessage);
var UserId="#j_username";
var EmpId="#memberlogin";
//IFocus(EmpId,UserId);
} else if (getCookie("loginURL") == "1") {
$('#tab-agent').addClass('active');
$('#formAgent').show();
$('#registerMessage').html(agentRegMessage);
var UserId="#userId";
var EmpId="#agentlogin";
//IFocus(EmpId,UserId);
} else if (getCookie("loginURL") == "2") {
$('#tab-group').addClass('active');
$('#formEmployer').show();
$('#registerMessage').html(employerRegMessage);
/* var UserId="#userId";
var EmpId="#employerlogin";
//IFocus(EmpId,UserId); */
} else if (getCookie("loginURL") == "3") {
$('#tab-provider').addClass('active');
$('#formProvider').show();
$('#registerMessage').html(providerRegMessage);
var UserId="#user";
var EmpId="#providerlogin";
//IFocus(EmpId,UserId);
} else {
$('#tab-member').addClass('active');
$('#formMember').show();
$('#registerMessage').html(memberRegMessage);
var UserId="#j_username";
var EmpId="#memberlogin";
//IFocus(EmpId,UserId);
}
// moved to onload fuction
$("#tab-member").click(function () {
$('.loginTabs ul li').removeClass('active');
$(this).addClass('active');
$('.loginForm').hide();
$('#formMember').fadeIn('slow');
$('#registerMessage').html(memberRegMessage);
setCookie("loginURL", "0", new Date(Date.parse("Jan 1, 2050")));
var UserId="#j_username";
var EmpId="#memberlogin";
//alert("On-Click Event MEM");
setTimeout(function(){ IFocus(EmpId,UserId); }, 50);
});
$("#tab-group").click(function () {
$('.loginTabs ul li').removeClass('active');
$(this).addClass('active');
$('.loginForm').hide();
$('#formEmployer').fadeIn('slow');
$('#registerMessage').html(employerRegMessage);
setCookie("loginURL", "2", new Date(Date.parse("Jan 1, 2050")));
var UserId="#userId";
var EmpId="#employerlogin";
//alert("On-Click Event EMP");
setTimeout(function(){ IFocus(EmpId,UserId); }, 50);
});
$("#tab-provider").click(function () {
$('.loginTabs ul li').removeClass('active');
$(this).addClass('active');
$('.loginForm').hide();
$('#formProvider').fadeIn('slow');
$('#registerMessage').html(providerRegMessage);
setCookie("loginURL", "3", new Date(Date.parse("Jan 1, 2050")));
var UserId="#user";
var EmpId="#providerlogin";
//alert("On-Click Event Provider");
setTimeout(function(){ IFocus(EmpId,UserId); }, 50);
});
$("#tab-agent").click(function () {
$('.loginTabs ul li').removeClass('active');
$(this).addClass('active');
$('.loginForm').hide();
$('#formAgent').fadeIn('slow');
$('#registerMessage').html(agentRegMessage);
setCookie("loginURL", "1", new Date(Date.parse("Jan 1, 2050")));
var UserId="#userId";
var EmpId="#agentlogin";
//alert("On-Click Event Agent");
setTimeout(function(){ IFocus(EmpId,UserId); }, 50);
});
//End
// Login box popup functionality
$(".login").click(function () {
//alert('login disabled for testing...');
$("#loginPopup").fadeIn('fast');
$("#loginClose").show('fast');
//e.preventDefault();
$('.loginTabs ul li.active').find('a').focus();
$('.loginTabs ul li.active').find('a').click();
});
$(".loginOpen").click(function () {
$("#loginPopup").fadeOut('fast');
$("#loginClose").hide('fast');
});
/* Removed -- we don't want the login box to fade out on mouse-out
$("#loginClose").mouseover(function() {
$("#loginPopup").fadeOut('fast');
$("#loginClose").hide('fast');
});
*/
});
// function to enable smooth scrolling back to top
$('.floatToTop').bind('click', function () {
$('html, body').animate({
scrollTop: 0
}, $(window).scrollTop() / 3);
return false;
});
//Temporaritly rewrite connecture links, until link is available.
//jQuery("a[href='https://bcbsmibu.healthinsurance-asp.com']").attr("href", "/content/public/en/index/common/get-a-quote-outage.html");
//call function that rewrites modal page paths on document ready -cmc 11/30/2012 1935
modalPathRewrite();
});
//Scripts that need to run after everything else has loaded -cmc 11/30/2012 1215pm
$(document).ready(function () {
//call external link handler last
if($('body.medicare').length===0){
externalLinkHandler();
}
$('#modal-content').on('shown.bs.modal', function() {
$("#txtname").focus();
})
$(document).on('shown.bs.modal', '#modalWindow', function (event) {
$(this).removeClass('hide');
})
//Handle contact us link change for employer, provider, agent, ibu pages
$(function() {
var url = window.location.href,
contactUsLink = $('#mainContactUsLink'),
employersExp = new RegExp("\/employers(|/|\.html)", "g"),
employerExp = new RegExp("\/employer(|/|\.html)", "g"),
agentExp = new RegExp("\/agents(|/|\.html)", "g"),
providerExp = new RegExp("\/providers(|/|\.html)", "g");
ibuParentNodeStr = "michigan-health-insurance"; // IBU parent & child pages
if ( url.match(employerExp) || url.match(employersExp) || [].length >= 1 ){
contactUsLink.attr('href', '/content/public/en/employers/help/contacts.html');
}
else if ( url.match(agentExp)||[].length >= 1 ){
contactUsLink.attr('href', '/content/public/en/agents/help/contacts.html');
}
else if ( url.match(providerExp)||[].length >= 1 ){
contactUsLink.attr('href', '/content/public/en/providers/help/contact-us.html');
}
else if ( url.indexOf(ibuParentNodeStr) >= 1 ){
contactUsLink.attr('href', '/content/public/en/index/plans/michigan-health-insurance/contact-us.html');
}
});
});
//MEMBER BANNER JS
/*********************************** EASING ***********************************/
//this is here to fix jquery UI easing... remove when member banner is removed.
(function() {
// based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
var baseEasings = {};
$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
baseEasings[ name ] = function( p ) {
return Math.pow( p, i + 2 );
};
});
$.extend( baseEasings, {
Sine: function ( p ) {
return 1 - Math.cos( p * Math.PI / 2 );
},
Circ: function ( p ) {
return 1 - Math.sqrt( 1 - p * p );
},
Elastic: function( p ) {
return p === 0 || p === 1 ? p :
-Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 );
},
Back: function( p ) {
return p * p * ( 3 * p - 2 );
},
Bounce: function ( p ) {
var pow2,
bounce = 4;
while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}
return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );
}
});
$.each( baseEasings, function( name, easeIn ) {
$.easing[ "easeIn" + name ] = easeIn;
$.easing[ "easeOut" + name ] = function( p ) {
return 1 - easeIn( 1 - p );
};
$.easing[ "easeInOut" + name ] = function( p ) {
return p < 0.5 ?
easeIn( p * 2 ) / 2 :
1 - easeIn( p * -2 + 2 ) / 2;
};
});
})();
var memberBanner = memberBanner || {
el: $('#panel'),
handleEl: $('.handle-container'),
setupEvents: function () {
//open/close on click
$("#handle").on( 'click', function(){
memberBanner.toggle();
});
//action button animation
$('.action-link').on( 'mouseover', function() {
$('.action-button').stop().animate( { opacity: 0.35 }, { duration: 500 });
}).on( 'mouseout', function(){
$('.action-button').stop().animate( { opacity: 0.2 }, { duration: 500 });
});
//close button
$('a.panel-close-button').on( 'click', function(){
memberBanner.toggle();
});
},
toggle: function () {
$("#panel").slideToggle("slow", function(){
//closing panel
if ($(this).is(":hidden")){
$('.handleToggle').removeClass('minus');
$('.browser, .headings, .action-link, .action-button, #panel .drawer-content').each(function(index, el){
$(el).attr("style", "");
});
}
//opening panel
else{
$('.handleToggle').addClass('minus');
//fade in background image
$('#panel .drawer-container').fadeIn();
//animate browser windows
$('.browser').each( function(index, el){
setTimeout( function () {
/*$(el).animate(
{"bottom" : '-5px'},
{ easing: 'easeOutBounce', duration: 2000 }
);*/
$(el).animate( { 'bottom': '15px' }, 900, 'easeInSine' ).animate( { 'bottom': '-5px' }, 500, 'easeOutBounce' );
}, (300 * (index + 3)) - 1000);
});
//hashes that define each heading's vertical and horizontal position
var verticalHashes = {
0: 331,
1: 285,
2: 239,
3: 155,
4: 30
},
horizontalHashes = {
0: 690,
1: 690,
2: 690,
3: 665,
4: 665
};
//animate headings
$('.headings').each(function(index, el){
setTimeout(function () {
$(el).animate(
{"left": horizontalHashes[index] + "px", "top": verticalHashes[index] + "px"},
{ easing: 'easeInOutQuint', duration: 1200 }
);
}, 500 - (index * 200));
});
//fade in action button
var buttonPositions = {
0: '60px',
1: '50px'
}
$('.action-link, .action-button').each( function(index, el){
setTimeout(function () {
$(el).fadeIn().animate({
"bottom" : buttonPositions[index]
}, {easing: 'easeOutBounce', duration: 1000});
}, 1800);
});
}
});
}
};
//END MEMBER BANNER JS
setTimeout(function(){
$('body').tooltip({
delay: { show: 300, hide: 0 },
placement: function(tip, element) { //$this is implicit
var position = $(element).position();
if (position.left > 515) {
return "left";
}
if (position.left < 515) {
return "right";
}
if (position.top < 110) {
return "bottom";
}
return "top";
},
selector: '[rel=tooltip]:not([disabled])'
},1000);
});
function msieversion() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0) {
$('body').addClass('ext-ie');
}
return false;
}
/********** Header-Login-Tabbing - Sai Krishna & Dhana ****************/
$(document).ready(function() {
$("p#registerMessage").on("keydown", "a#member-register", function (e) {
var keyCode = e.keyCode || e.which;
if(keyCode == 9) {
if(!e.shiftKey) {
e.preventDefault();
$('#log-in-employer').focus();
}
}
});
$("p#registerMessage").on("keydown", "a#provider-register", function (e) {
var keyCode = e.keyCode || e.which;
if (keyCode == 9) {
if(!e.shiftKey) {
e.preventDefault();
$('#log-in-agent').focus();
}
}
});
$("p#registerMessage").on("keydown", "a#employer-register", function (e) {
var keyCode = e.keyCode || e.which;
if(keyCode == 9) {
if(!e.shiftKey) {
e.preventDefault();
$('#log-in-provider').focus();
}
}
});
$("p#registerMessage").on("keydown", "a#agent-register", function (e) {
var keyCode = e.keyCode || e.which;
if(keyCode == 9) {
if(!e.shiftKey) {
e.preventDefault();
$('a.loginOpen').focus();
}
}
});
$('a#log-in-employer').on("keydown",function (e) {
var keyCode = e.keyCode || e.which;
if(e.shiftKey) {
if(keyCode == 9) {
e.preventDefault();
$('#log-in-member').focus();
}
}
});
$('a#log-in-member').on("keydown",function (e) {
var keyCode = e.keyCode || e.which;
if(e.shiftKey) {
if(keyCode == 9) {
e.preventDefault();
$('a.loginOpen').focus();
}
}
});
$('a#log-in-agent').on("keydown",function (e) {
var keyCode = e.keyCode || e.which;
if(e.shiftKey) {
if(keyCode == 9) {
e.preventDefault();
$('#log-in-provider').focus();
}
}
});
$('a#log-in-provider').on("keydown",function (e) {
var keyCode = e.keyCode || e.which;
if(e.shiftKey) {
if(keyCode == 9) {
e.preventDefault();
$('#log-in-employer').focus();
}
}
});
});
function IFocus(id1,id2) {
var iframe = $(""+id1+"")[0];
if ($.browser.msie) {
document.getElementById('+id1+').contentWindow.document.focus();
}else{
iframe.contentWindow.focus();
}
$('input:text[id=""+id2+""]:visible:enabled:first').focus();
}
/************** END *******************/
})(jQuery);
/* Placeholders.js v4.0.1 */
/*!
* The MIT License
*
* Copyright (c) 2012 James Allardice
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
!function(a){"use strict";function b(){}function c(){try{return document.activeElement}catch(a){}}function d(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return!0;return!1}function e(a,b,c){return a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):void 0}function f(a,b){var c;a.createTextRange?(c=a.createTextRange(),c.move("character",b),c.select()):a.selectionStart&&(a.focus(),a.setSelectionRange(b,b))}function g(a,b){try{return a.type=b,!0}catch(c){return!1}}function h(a,b){if(a&&a.getAttribute(B))b(a);else for(var c,d=a?a.getElementsByTagName("input"):N,e=a?a.getElementsByTagName("textarea"):O,f=d?d.length:0,g=e?e.length:0,h=f+g,i=0;h>i;i++)c=f>i?d[i]:e[i-f],b(c)}function i(a){h(a,k)}function j(a){h(a,l)}function k(a,b){var c=!!b&&a.value!==b,d=a.value===a.getAttribute(B);if((c||d)&&"true"===a.getAttribute(C)){a.removeAttribute(C),a.value=a.value.replace(a.getAttribute(B),""),a.className=a.className.replace(A,"");var e=a.getAttribute(I);parseInt(e,10)>=0&&(a.setAttribute("maxLength",e),a.removeAttribute(I));var f=a.getAttribute(D);return f&&(a.type=f),!0}return!1}function l(a){var b=a.getAttribute(B);if(""===a.value&&b){a.setAttribute(C,"true"),a.value=b,a.className+=" "+z;var c=a.getAttribute(I);c||(a.setAttribute(I,a.maxLength),a.removeAttribute("maxLength"));var d=a.getAttribute(D);return d?a.type="text":"password"===a.type&&g(a,"text")&&a.setAttribute(D,"password"),!0}return!1}function m(a){return function(){P&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)?f(a,0):k(a)}}function n(a){return function(){l(a)}}function o(a){return function(){i(a)}}function p(a){return function(b){return v=a.value,"true"===a.getAttribute(C)&&v===a.getAttribute(B)&&d(x,b.keyCode)?(b.preventDefault&&b.preventDefault(),!1):void 0}}function q(a){return function(){k(a,v),""===a.value&&(a.blur(),f(a,0))}}function r(a){return function(){a===c()&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)&&f(a,0)}}function s(a){var b=a.form;b&&"string"==typeof b&&(b=document.getElementById(b),b.getAttribute(E)||(e(b,"submit",o(b)),b.setAttribute(E,"true"))),e(a,"focus",m(a)),e(a,"blur",n(a)),P&&(e(a,"keydown",p(a)),e(a,"keyup",q(a)),e(a,"click",r(a))),a.setAttribute(F,"true"),a.setAttribute(B,T),(P||a!==c())&&l(a)}var t=document.createElement("input"),u=void 0!==t.placeholder;if(a.Placeholders={nativeSupport:u,disable:u?b:i,enable:u?b:j},!u){var v,w=["text","search","url","tel","email","password","number","textarea"],x=[27,33,34,35,36,37,38,39,40,8,46],y="#ccc",z="placeholdersjs",A=new RegExp("(?:^|\\s)"+z+"(?!\\S)"),B="data-placeholder-value",C="data-placeholder-active",D="data-placeholder-type",E="data-placeholder-submit",F="data-placeholder-bound",G="data-placeholder-focus",H="data-placeholder-live",I="data-placeholder-maxlength",J=100,K=document.getElementsByTagName("head")[0],L=document.documentElement,M=a.Placeholders,N=document.getElementsByTagName("input"),O=document.getElementsByTagName("textarea"),P="false"===L.getAttribute(G),Q="false"!==L.getAttribute(H),R=document.createElement("style");R.type="text/css";var S=document.createTextNode("."+z+" {color:"+y+";}");R.styleSheet?R.styleSheet.cssText=S.nodeValue:R.appendChild(S),K.insertBefore(R,K.firstChild);for(var T,U,V=0,W=N.length+O.length;W>V;V++)U=Va;a++)U=a 1)) {
$(".checkbox.section").attr("role", "group");
}
});
/*--------Lisa Noble Accessibility change ----Adding alt tag alternative to plan network overview background image for Network size range ----*/
/*$(document).ready(function() {
if ($(this).hasClass(".size5")) {
$("div.plan-accessible-alt").html("
Blah Blah Size5
");
} else if ($(this).hasClass(".size4")) {
alert('TEST!!!');
$("div.plan-accessible-alt").html("
Blah Blah Size4
");
} else if ($(this).hasClass(".size3")) {
$("div.plan-accessible-alt").html("
Blah Blah Size3
");
} else if ($(this).hasClass(".size2")) {
$("div.plan-accessible-alt").html("
Blah Blah Size2
");
} else {
$("div.plan-accessible-alt").html("
Blah Blah Size1
");
}
});*/
/* Else if code to add html dependent on class name
$(document).ready(function() {
if ($(".plan-network-overview").hasClass("size5")) {
$("div.plan-accessible-alt").html("
Blah Blah Size5
");
} else if
($(".plan-network-overview").hasClass("size4")) {
$("div.plan-accessible-alt").html("
Blah Blah Size4
");
} else if
($(".plan-network-overview").hasClass("size3")) {
$("div.plan-accessible-alt").html("
Blah Blah Size3
");
} else if
($(".plan-network-overview").hasClass("size2")) {
$("div.plan-accessible-alt").html("
Blah Blah Size2
");
} else if
($(".plan-network-overview").hasClass("size1")) {
$("div.plan-accessible-alt").html("
Blah Blah Size1
");
}
}); */
/*
$(document).ready(function() {
if ($(".plan_network").hasClass("size5")) {
($('.plan_network.size5').attr("role", "img") && $(
'.plan_network.size5').attr("aria-label",
"Network size is 5 out of 5 bars"));
} else
if ($(".plan_network").hasClass("size4")) {
($('.plan_network.size4').attr("role", "img") && $(
'.plan_network.size4').attr("aria-label",
"Network size is 4 out of 5 bars"));
} else
if ($(".plan_network ").hasClass("size3")) {
($('.plan_network.size3').attr("role", "img") && $(
'.plan_network.size3').attr("aria-label",
"Network size is 3 out of 5 bars"));
} else
if ($(".plan_network").hasClass("size2")) {
($('.plan_network.size2').attr("role", "img") && $(
'.plan_network.size2').attr("aria-label",
"Network size is 2 out of 5 bars"));
} else
if ($(".plan_network").hasClass("size1")) {
($('.plan_network.size1').attr("role", "img") && $(
'.plan_network.size1').attr("aria-label",
"Network size is 1 out of 5 bars"));
}else
if ($(".plan-network-overview").hasClass("size5")) {
($('.plan-network-overview.size5').attr("role", "img") && $(
'.plan-network-overview.size5').attr("aria-label",
"Network size is 5 out of 5 bars"));
} else
if ($(".plan-network-overview").hasClass("size4")) {
($('.plan-network-overview.size4').attr("role", "img") && $(
'.plan-network-overview.size4').attr("aria-label",
"Network size is 4 out of 5 bars"));
} else
if ($(".plan-network-overview ").hasClass("size3")) {
($('.plan-network-overview.size3').attr("role", "img") && $(
'.plan-network-overview.size3').attr("aria-label",
"Network size is 3 out of 5 bars"));
} else
if ($(".plan-network-overview").hasClass("size2")) {
($('.plan-network-overview.size2').attr("role", "img") && $(
'.plan-network-overview.size2').attr("aria-label",
"Network size is 2 out of 5 bars"));
} else
if ($(".plan-network-overview").hasClass("size1")) {
($('.plan-network-overview.size1').attr("role", "img") && $(
'.plan-network-overview.size1').attr("aria-label",
"Network size is 1 out of 5 bars"));
}
});*/
// IBU print and PDF code 10/28/2016 Shalini Nalakonda
var newString = document.title;
var newStringTitle = newString.replace(/\s+/g,'-');
var PageUrl = newStringTitle.replace(/\|/g, '');
var pageStr = window.location.href;
if(pageStr.indexOf("costshare") > -1){
var pageStrSearch = window.location.search.replace("?", "");
}
if(pageStrSearch == undefined){var PageNameWithoutaddingHTML = PageUrl;}
else {var PageNameWithoutaddingHTML = PageUrl+"-"+pageStrSearch;}
var newpageUrl = PageNameWithoutaddingHTML.replace(/--/g,'-');
var newpagetotalUrl = newpageUrl .replace(/--/g,'-').replace(/-bcbsm.com/,'').toLowerCase();
function pdfFunction() {
window.open("/content/dam/public/shared/documents/plan-pages/"+newpagetotalUrl +".pdf");
};
function printFunction() {
window.open("/content/dam/public/shared/documents/plan-pages/"+newpagetotalUrl +"print.pdf");
};
//end of print pdf code
//IBU webchat 12/19/2016 shalini Nalakonda
$( document ).ready(function() {
var eGainWebChatAgentAvailabilityEndpoint = 'https://webchatv15.bcbsm.com/system/egain/chat/entrypoint/capacity/1001';
$.ajax({
url: eGainWebChatAgentAvailabilityEndpoint,
dataType: "xml",
success: function(xml) {
var availableSlots = $(xml).find('availableSlots').first().text();
if(availableSlots != 0){
$('.eGainWebChatServiceAvailable').show();
$('.eGainWebChatServiceUnavailable').remove();
}
else{
$('.eGainWebChatServiceUnavailable').show();
$('.eGainWebChatServiceAvailable').remove();
}
}
});
});
//IBU webchat
//Sai Krishna
//RR-12018 - Redirect m.bcbsm Individual and Family to public bcbsm.com IBU landing page
$("#redirectLogo").on("click", function(){
var urlValue = document.location.hostname;
var width = $(window).width();
var url ="";
if(urlValue.includes("www")){
url="http://m.bcbsm.com";
}else{
url = 'http://m.'+urlValue;
}
if (width <= 800) {
$("#redirectLogo").attr("href", url);
window.location.href = url;
return false;
}
});
/*------Change for the Media resources page 3-colctrl component to stack in the same row- Sanjana Gitta ----*/
$('document').ready(function(){
if($('#contentBody2').width() == 723){
$('.cq-colctrl-lt1-c0').width("32.33%");
$('.cq-colctrl-lt1-c1').width("32.33%");
$('.cq-colctrl-lt1-c2').width("32.33%");
}
});