if(typeof UHC=="undefined"){var UHC={};}(function(){UHC.namespace=function(){var c=arguments;var g;var l;var b;var f;var h;var k=null;g=c.length;for(var f=0;f<g;f++){l=c[f].split(".");k=UHC;b=l.length;if(l[0]=="UHC"){h=1;}else{h=0;}for(var e=h;e<b;e++){k[l[e]]=k[l[e]]||{};k=k[l[e]];}}return k;};UHC.namespace("util");
UHC.util.gup=function(b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var a="[\\?&]"+b+"=([^&#]*)";var d=new RegExp(a);var c=d.exec(window.location.href);if(c==null){return false;}else{return c[1];}};UHC.util.randomNum=function(){return Math.random()*10000000000000000;};UHC.util.isUndefined=function(a){if(!(a)||a=="undefined"||a==false||a=="false"||a==""||a==null||a=="null"){return true;
}else{return false;}};window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;if(this.console){console.log(Array.prototype.slice.call(arguments));}};(function(e){function h(){}for(var g="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;
f=g.pop();){e[f]=e[f]||h;}})(window.console=window.console||{});})();UHC.namespace("UHC.lobby");(function(){UHC.lobby.app=null;var a=function(c){var f=this;var b;var g=UHC.util.isUndefined(c)?{}:c;j();function j(){k();d();e();i();h();}function k(){if(UHC.util.isUndefined(g["mainNavContent"])){g["mainNavContent"]=UHC.lobby.MAIN_NAV_CONTENT;
}if(UHC.util.isUndefined(g["mainNavRotatorContent"])){g["mainNavRotatorContent"]=UHC.lobby.MAIN_NAV_ROTATOR_CONTENT;}if(UHC.util.isUndefined(g["loginNavContent"])){g["loginNavContent"]=UHC.lobby.LOGIN_NAV_CONTENT;}}function d(){}function e(){b=new UHC.lobby.MainNavigation("#main-nav",{contentPath:g["mainNavContent"],fmaContentPath:g["mainNavRotatorContent"]});
_loginNav=new UHC.lobby.LoginNavigation("#login-nav",{contentPath:g["loginNavContent"]});}function i(){}function h(){}};UHC.lobby.main=function(b){if(UHC.util.isUndefined(UHC.lobby.app)){UHC.lobby.app=new a(b);}};UHC.lobby.MAIN_NAV_CONTENT="lob_main_nav_content.html";UHC.lobby.MAIN_NAV_ROTATOR_CONTENT="lob_main_nav_fma_rotator_content.html";
UHC.lobby.LOGIN_NAV_CONTENT="lob_login_nav_content.html";})();UHC.namespace("UHC.lobby.FMARotator");(function(a){UHC.lobby.FMARotator=function(e,m){var h=a(e);var d=this;var b={};var g;var i=a.extend(true,b,m||{});function l(){f();}this.previous=function(){var n=h.tabs("option","selected");n--;if(n<0){n=h.tabs("length")-1;
}h.tabs("select",n);h.tabs("rotate",0);};this.next=function(){var n=h.tabs("option","selected");n++;if(n>=h.tabs("length")){n=0;}h.tabs("select",n);h.tabs("rotate",0);};function f(){h.load(i.contentPath,c);}function c(){k();j();}function k(){h.tabs({fx:{opacity:"toggle",duration:"slow"}}).tabs("rotate",6000,false);
}function j(){a("#fma-prev").live("click",d.previous);a("#fma-next").live("click",d.next);jQuery(".ie6-hover").hover(function(){a(this).addClass("hover");},function(){a(this).removeClass("hover");});}l();};})(jQuery);UHC.namespace("UHC.lobby.MainNavigation");(function(a){UHC.lobby.MainNavigation=function(e,m){var h=a(e);
var d=this;var b={SELECTORS:{FMAROTATOR:"fma-rotator"},IDS:{TOP:"main-nav-top",MIDDLE:"main-nav-middle",BOTTOM:"main-nav-bottom"}};var g;var i=a.extend(true,b,m||{});function l(){f();}function f(){h.load(i.contentPath,c);}function c(){k();j();}function k(){g=new UHC.lobby.FMARotator("#main-nav-bottom .fma-rotator",{contentPath:i.fmaContentPath});
}jQuery.fn.ForceNumericOnly=function(){return this.each(function(){a(this).keydown(function(o){var n=o.charCode||o.keyCode||0;return(n==8||n==9||n==46||(n>=37&&n<=40)||(n>=48&&n<=57)||(n>=96&&n<=105));});});};function j(){var n=Math.floor(Math.random()*6)+1;jQuery("#main").removeClass("");jQuery("#main").addClass("main-bg"+n);
jQuery("#main-header-text-"+n).removeClass("hidden");jQuery(".main-nav-item").addClass("main-nav-item-inactive");jQuery(".error-message").hide();jQuery(".main-nav-item").click(function(o){jQuery(".top-nav-divider").show();jQuery(".mid-nav-divider").show();if(o.target.id!="family-plans-nav"){if(jQuery(this).siblings(".main-nav-flyout").is(":visible")){jQuery("#main-header").show();
jQuery(this).siblings(".top-nav-divider").hide();jQuery(this).parent().prev().children(".top-nav-divider").hide();if(jQuery(this).attr("id")=="brokers"){jQuery("#mid-nav-divider-below").hide();}jQuery(".main-nav-item").removeClass("main-nav-item-active");jQuery(".main-nav-item").addClass("main-nav-item-inactive");
jQuery(this).siblings(".main-nav-flyout").hide();jQuery(this).siblings(".main-nav-flyout-active").hide();}else{jQuery("#main-header").hide();jQuery(this).siblings(".top-nav-divider").hide();jQuery(this).parent().prev().children(".top-nav-divider").hide();if(jQuery(this).attr("id")=="brokers"){jQuery("#mid-nav-divider-below").hide();
}jQuery(".main-nav-flyout").hide();jQuery(this).siblings(".main-nav-flyout").show();jQuery(".main-nav-flyout-active").hide();jQuery(this).siblings(".main-nav-flyout-active").show();jQuery(".main-nav-item").removeClass("main-nav-item-active");jQuery(".main-nav-item").addClass("main-nav-item-inactive");
jQuery(this).addClass("main-nav-item-active");jQuery(this).removeClass("main-nav-item-inactive");}}});jQuery(".ie6-hover").hover(function(){a(this).addClass("hover");},function(){a(this).removeClass("hover");});jQuery(".main-nav-top-item").hover(function(){jQuery(this).siblings(".top-nav-divider").hide();
jQuery(this).parent().prev().children(".top-nav-divider").hide();},function(){jQuery(".top-nav-divider").show();jQuery(".main-nav-item-active").siblings(".top-nav-divider").hide();jQuery(".main-nav-item-active").parent().prev().children(".top-nav-divider").hide();});jQuery(".main-nav-mid-item").hover(function(){if(jQuery(this).attr("id")=="providers"){jQuery(".mid-nav-divider").hide();
}else{jQuery("#mid-nav-divider-below").hide();}},function(){if(jQuery(".main-nav-mid-item").hasClass("main-nav-item-active")){if(jQuery(".main-nav-item-active").attr("id")!="providers"){jQuery("#mid-nav-divider-above").show();}}else{jQuery(".mid-nav-divider").show();}});jQuery("#main-header-button").click(function(){jQuery("#top-nav-top").trigger("click");
});jQuery("#main-header-button").hover(function(){jQuery(".lrg-button").css("backgroundPosition","0px -0px");},function(){jQuery(".lrg-button").css("backgroundPosition","0px -28px");});jQuery("#top-nav-top").click(function(){jQuery(".explore-content").hide();jQuery("#family-plans-nav").trigger("click");
});jQuery(".explore-item").click(function(){jQuery("#explore-content-area").show();jQuery(".explore-content").hide();jQuery(".explore-item").removeClass("explore-item-active");jQuery(".explore-item").addClass("explore-item-inactive");jQuery(this).addClass("explore-item-active");jQuery(this).removeClass("explore-item-inactive");
jQuery(".explore-item-arrow").removeClass("explore-item-arrow-show");jQuery(this).find(".explore-item-arrow").addClass("explore-item-arrow-show");});jQuery("#family-plans-nav").click(function(){jQuery("#family-plans").show();jQuery("#family-landing").show();jQuery("#family-medical").hide();});jQuery("#family-medical-nav").click(function(){jQuery("#family-landing").hide();
jQuery("#family-medical").show();});jQuery("#family-landing-nav").click(function(){jQuery("#family-medical").hide();jQuery("#family-landing").show();});jQuery(".enter-zip").click(function(){jQuery(this).val("");});jQuery("#family-search").click(function(o){if(jQuery("#family-zip").val().length!=5){jQuery("#family-search-error").show();
o.preventDefault();}else{jQuery("#family-search-error").hide();dcsMultiTrack("DCS.dcssip","www.UHC.com","DCS.dcsuri","/GoToGetAQuote.evt","DCS.dscqry","GRConv=1","WT.ti","EXTERNAL: To GetAQuote","WT.dl","0");jQuery(this).attr("href","https://www.uhone.com/Quote/QuotePerson.aspx?LeadSourceName=UHC-website&GAIQLP&zipcode="+jQuery("#family-zip").val());
}});jQuery("#view-plans-search").click(function(o){if(jQuery("#view-plans-zip").val().length!=5){jQuery("#view-plans-search-error").show();o.preventDefault();}else{jQuery("#view-plans-search-error").hide();dcsMultiTrack("DCS.dcssip","www.UHC.com","DCS.dcsuri","/ GoToUHCMedicareSolutions.evt","DCS.dscqry","GRConv=1","WT.ti","EXTERNAL: To UHCMedicareSolutions","WT.dl","0");
jQuery(this).attr("href","https://www.uhcmedicaresolutions.com/health-plans?WT.mc_id=880332&zipcode="+jQuery("#view-plans-zip").val());}});jQuery("#choose-plan-search").click(function(o){if(jQuery("#choose-plan-zip").val().length!=5){jQuery("#choose-plan-search-error").show();o.preventDefault();}else{jQuery("#choose-plan-search-error").hide();
dcsMultiTrack("DCS.dcssip","www.UHC.com","DCS.dcsuri","/ GoToUHCMedicareSolutions.evt","DCS.dscqry","GRConv=1","WT.ti","EXTERNAL: To UHCMedicareSolutions","WT.dl","0");jQuery(this).attr("href","https://www.uhcmedicaresolutions.com/medicare-plans?WT.mc_id=880332&zipcode="+jQuery("#choose-plan-zip").val());
}});jQuery("#medicaid-zip-search").click(function(o){if(jQuery("#medicaid-zip").val().length!=5){jQuery("#medicaid-zip-search-error").show();o.preventDefault();}else{jQuery("#medicaid-zip-search-error").hide();dcsMultiTrack("DCS.dcssip","www.UHC.com","DCS.dcsuri","/GoToUHCCommunityPlan.evt","DCS.dscqry","GRConv=1","WT.ti","EXTERNAL: To UHCCommunityPlan","WT.dl","0");
jQuery(this).attr("href","http://www.uhccommunityplan.com/plan/zip/"+jQuery("#medicaid-zip").val()+"/find-plans");}});jQuery("#medicare-plans-nav").click(function(){jQuery("#medicare-plans").show();});jQuery("#medicaid-plans-nav").click(function(){jQuery("#medicaid-plans").show();});jQuery("#employer-plans-nav").click(function(){jQuery("#employer-plans").show();
});jQuery(".enter-zip").ForceNumericOnly();}l();};})(jQuery);UHC.namespace("UHC.lobby.LoginNavigation");(function(a){UHC.lobby.LoginNavigation=function(g,o){var j=a(g);var f=this;var e={SELECTORS:{LABELBUTTON:"div .label"},IDS:{CONTENTCONTAINER:"login-nav-content"}};var h=false;var c;var k=a.extend(true,e,o||{});
function n(){i();}this.toggleNavContent=function(p){p.preventDefault();if(h==false){h=true;c.show("blind").accordion("activate",0);jQuery(".main-nav-item").removeClass("main-nav-item-active");jQuery(".main-nav-flyout").hide();jQuery(".main-nav-flyout-active").hide();jQuery("#main-header").show();jQuery("#login-arrow-up").show();
jQuery("#login-arrow-down").hide();}else{h=false;c.hide("blind");jQuery("#login-arrow-up").hide();jQuery("#login-arrow-down").show();}};this.hideNavContent=function(p){p.preventDefault();if(h==true){h=false;c.hide("blind");}};function i(){j.load(k.contentPath,d);}function d(){c=a("#"+k.IDS.CONTENTCONTAINER);
m();l();}function m(){b();c.hide();}function b(){c.accordion({collapsible:false,autoHeight:false,active:0});}function l(){a("#"+j[0].id+" > "+k.SELECTORS.LABELBUTTON).live("click",f.toggleNavContent);a(".bottom-shadow").live("click",f.toggleNavContent);a(".main-nav-item").live("click",f.hideNavContent);
jQuery(".ie6-hover").hover(function(){a(this).addClass("hover");},function(){a(this).removeClass("hover");});}n();};})(jQuery);var cookieValue=randomString();var isCookieExists=false;checkCookie();function randomString(){var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var e=12;var c="";
for(var b=0;b<e;b++){var a=Math.floor(Math.random()*d.length);c+=d.substring(a,a+1);}return c;}function setCookie(a,d,b){var e=new Date();e.setDate(e.getDate()+b);var c=escape(d)+((b==null)?"":"; expires="+e.toUTCString());document.cookie=a+"="+c;}function getCookie(b){var c,a,e,d=document.cookie.split(";");
for(c=0;c<d.length;c++){a=d[c].substr(0,d[c].indexOf("="));e=d[c].substr(d[c].indexOf("=")+1);a=a.replace(/^\s+|\s+$/g,"");if(a==b){return unescape(e);}}}function checkCookie(){var a=getCookie("uhcvisitor");if(a!=null&&a!=""&&a!="undefined"&&a!="-"){isCookieExists=true;}else{setCookie("uhcvisitor",cookieValue,365);
}}
