(function(){ var _1=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:${id}"; var _2=false; var _3=function(){ return i$.hasClass(document.getElementsByTagName("body")[0],"edit-mode"); }; if(typeof wptheme==="undefined"||!wptheme){ wptheme={}; } i$.mash(wptheme,{getWindowIDFromSkin:function(_4){ while((_4=_4.parentNode)!=null){ if(i$.hasClass(_4,"component-control")){ var m=_4&&(_4.className||"").match(/id-([\S]+)/); return m&&m[1]; } } return null; },getPortletState:function(_5){ var _6=i$.byId("portletState"); if(_6){ if(!_6._cache){ _6._cache=i$.fromJson(_6.innerHTML); _6._cache._defaults={"windowState":"normal","portletMode":"view"}; } if(_6._cache[_5]){ return _6._cache[_5]; }else{ return _6._cache._defaults; } } return {}; },isValidOp:function(_7){ if(_7.visibility===false){ return false; } var _8=_7.metadata||{}; switch(_7.id){ case "ibm.portal.operations.changePortletMode": return wptheme.getPortletState(_8.wid).portletMode!=_8.portletMode; case "ibm.portal.operations.changeWindowState": return wptheme.getPortletState(_8.wid).windowState!=_8.windowState; default: } return true; },operation:{changeToHelpMode:function(_9){ //var _a=window.location.protocol+"//"+window.location.hostname+window.location.pathname+escape(window.location.search); //if(_9.actionUrl){ //if(_9.actionUrl.indexOf("?")==0){ //var _b=_a.indexOf("#"); //if(_b!=-1){ //var _c=_a.substring(0,_b); //var _d=_a.substring(_b); //_a=_c+(_c.indexOf("?")==-1?"?":"&")+_9.actionUrl.substring(1); //_a+=_d; //}else{ //_a+=(_a.indexOf("?")==-1?"?":"&")+_9.actionUrl.substring(1); //} //}else{ //_a=_9.actionUrl; //} //} //window.open(_a,"","resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,width=800,height=600,screenX=10,screenY=10,top=10,left=10"); }},canImpersonate:function(){ return ibmCfg.portalConfig.canImpersonate; },contextMenu:{cache:{},css:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading"},init:function(_e,_f,_10){ _e._contextMenu=_e._contextMenu||{}; _e._contextMenu.id=_e._contextMenu.id||Math.round(Math.random()*1000000000); _e.setAttribute("id",_e._contextMenu.id); _e._contextMenu.menuId=_f; _e._contextMenu.jsonQuery=_10; var _11=_e._contextMenu; var _12=function(_13){ if(_13.displayMenu){ i$.fireEvent("wptheme/contextMenu/close/all"); if(!_11._submenu){ i$.fireEvent("wptheme/contextMenu/close/all"); wptheme.contextMenu._updateAbsolutePosition(i$.byId(_11.id)); } var _14=wptheme.contextMenu._adjustScreenPositionStart(); i$.addClass((_11.shadowNode)?_11.shadowNode:i$.byId(_11.id),wptheme.contextMenu.css.show); wptheme.contextMenu._adjustScreenPositionEnd(_14); var _15=i$.byId(_11.id)._firstSelectable; if(_15){ _15.focus(); i$.byId(_11.id)._currentSelected=_15; } i$.addListener("wptheme/contextMenu/close/all",function(){ var _16=i$.byId(_11.id); }); } }; wptheme.contextMenu._initialize(_e).then(_12,_12); _e=null; },initSubmenu:function(_17,_18,_19){ _17._contextMenu=_17._contextMenu||{}; _17._contextMenu._submenu=true; _17._contextMenu._menuitemTemplate=_19._menuitemTemplate; _17._contextMenu._subMenuTemplate=_19._subMenuTemplate; _17._contextMenu._loadingTemplate=_19._loadingTemplate; wptheme.contextMenu.init(_17,_18,_19.jsonQuery); },_findFocusNode:function(_1a){ var _1b,i,_1c; var _1d=function(_1e,_1f){ var l=_1e.childNodes.length; for(i=0;i=0;i--){ _24=_26.childNodes[i]; if(i$.hasClass(_24,wptheme.contextMenu.css.menuTemplate)){ _21=_24; continue; } if(i$.hasClass(_24,wptheme.contextMenu.css.submenuTemplate)){ _22=_24; continue; } if(i$.hasClass(_24,wptheme.contextMenu.css.loadingTemplate)){ _23=_24; continue; } if(_24.childNodes){ i=_25(_24,i); } } return _27; }; _25(_20); return {"menu":_21,"submenu":_22,"loading":_23}; },_invalidateCallback:function(){ wptheme.contextMenu.cache={}; },_initialize:function(_28){ var _29=true; var _2a=_28._contextMenu; if(wptheme.contextMenu.cache[_2a.id]||_2a._inProgress){ return i$.promise.resolved({displayMenu:_29}); } _2a._inProgress=true; i$.addListener("wptheme/contextMenu/invalidate/all",wptheme.contextMenu._invalidateCallback); var _2b,_2c,tmp=i$.createDom("div"); if(_2a._submenu){ tmp.innerHTML=_2a._subMenuTemplate.replace(/\$\{submenu-id\}/g,_2a.id+"_menu"); _28.appendChild(tmp.firstChild); _2b=i$.byId(_2a.id+"_menu"); _2c=i$.createDom("div"); _2c.innerHTML=_2a._loadingTemplate; }else{ var _2d=wptheme.contextMenu._findNodes((_2a.shadowNode)?_2a.shadowNode:_28); _2b=_2d.menu; if(!_2a._menuitemTemplate){ _2a._menuitemTemplate=i$.trim(_2b.innerHTML); } if(!_2a._loadingTemplate){ _2c=i$.createDom("div"); _2c.appendChild(_2d.loading); _2a._loadingTemplate=i$.trim(_2c.innerHTML); _2c=null; } _2c=i$.createDom("div"); _2c.innerHTML=_2a._loadingTemplate; tmp.appendChild(_2d.submenu.cloneNode(true)); if(!_2a._subMenuTemplate){ _2a._subMenuTemplate=i$.trim(tmp.innerHTML); } } while(_2b.firstChild){ _2b.removeChild(_2b.firstChild); } _2b.appendChild(_2c); var _2e; if(_2a._submenu){ _2e=_2a.shadowNode; }else{ if(_2a.shadowNode){ _2e=_2a.shadowNode; }else{ _2e=wptheme.contextMenu._transformIntoAbsolutePosition(_28); } } i$.addClass((_2e)?_2e:_28,wptheme.contextMenu.css.show); i$.bindDomEvt((_2e)?_2e:_28,"onmouseleave",function(){ if(_2a._inProgress){ _29=false; } var _2f=i$.byId(_2a.id); i$.removeClass((_2a.shadowNode)?_2a.shadowNode:_2f,wptheme.contextMenu.css.show); if(!_2a.activeAction){ var _30=_2f._currentSelected; if(_30){ _30.blur(); } var _31=wptheme.contextMenu._findFocusNode(_2f); ((_31)?_31:_2f).focus(); } }); return wptheme.contextMenu._load(_2a).then(function(_32){ var _33=wptheme.contextMenu._parseData(_32).then(function(_34){ _34=wptheme.contextMenu._filterMenu(_34); if(!_34||_34.length==0){ var tmp=i$.createDom("div"); tmp.innerHTML=wptheme.contextMenu._fromTemplate(_2a._menuitemTemplate,wptheme.contextMenu.css.error,wptheme.contextMenu.nls.NO_ITEMS_0); while(_2b.firstChild){ _2b.removeChild(_2b.firstChild); } _2b.appendChild(tmp); }else{ wptheme.contextMenu._buildMenu(_2a,_2b,_34); } _2a._inProgress=false; wptheme.contextMenu.cache[_2a.id]=true; return {displayMenu:_29}; }); return _33; },function(){ var tmp=i$.createDom("div"); tmp.innerHTML=wptheme.contextMenu._fromTemplate(_2a._menuitemTemplate,wptheme.contextMenu.css.error,wptheme.contextMenu.nls.ERROR_LOADING_0); while(_2b.firstChild){ _2b.removeChild(_2b.firstChild); } _2b.appendChild(tmp); _2a._inProgress=false; wptheme.contextMenu.cache[_2a.id]=true; return {displayMenu:_29}; }); },_load:function(_35){ var _36=_1.replace(/\$\{id\}/g,_35.menuId); if(_35.jsonQuery){ _36+=(_36.indexOf("?")==-1?"?":"&")+i$.toQuery(_35.jsonQuery); } return i$.xhrGet({url:_36,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_37){ return _37.data; },function(_38){ var _39=_38.xhr.getResponseHeader("Content-Type")||""; if((_39.indexOf("text/html")==0)||(_38.xhr.status==401)){ window.setTimeout(function(){ document.location.reload(); },0); } console.log("Error trying to load the context menu feed for '"+_35.menuId+"': "+_38); return null; }); },_parseData:function(_3a){ var _3b=[]; i$.each(_3a,function(_3c){ var _3d=i$.fromPath("moduleInfo.deferred",false,_3c)?i$.modules.loadDeferred():i$.promise.resolved(true); _3b.push(_3d.then(function(){ var _3e=wptheme.contextMenu._checkFunction(_3c,_3c.visibilityFn,_3c,(typeof _3c.visibility!="undefined")?_3c.visibility:true); var _3f=wptheme.contextMenu._checkFunction(_3c,_3c.enableFn,_3c,(typeof _3c.enabled!="undefined")?_3c.enabled:true); return i$.whenAll(_3e,_3f).then(function(_40){ _3c._visible=_40[0]; _3c._enabled=_40[1]; return _3c; }); })); }); return i$.whenAll.apply(i$,_3b); },_filterMenu:function(_41){ var _42=[],_43,_44={"type":"Separator"}; for(var i=_41.length-1;i>=0;i--){ _43=_41[i]; if(!_43._visible){ continue; } if(_43.type=="Separator"){ if(_44.type=="Separator"){ continue; } }else{ if(_43.type=="Header"){ if((_44.type=="Separator")||(_44.type=="Header")){ continue; } } } _44=_43; _42.unshift(_43); } while(_42.length>0&&_42[0].type=="Separator"){ _42=_42.slice(1); } return _42; },_buildMenu:function(_45,_46,_47){ var _48=document.createDocumentFragment(),tmp=i$.createDom("div"),_49,_4a,_4b,_4c; for(var i=0,l=_47.length;i_14){ _18=-_18; } } if(_18>0&&!this.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,0px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+_13.offsetWidth+"px)"; } } var _19=setInterval(function(){ if(_18>0&&_16+_18>_14){ _18=_14-_16; } if(_18<0&&_16+_18<_14){ _18=-(_16-_14); } if(_18<0&&!wptheme.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,"+(_13.offsetWidth-(_17-=_18))+"px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+(_17-=_18)+"px)"; } } if(_18>0&&!wptheme.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,"+(_17+=_18)+"px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+(_13.offsetWidth-(_17+=_18))+"px)"; } } if(ibmCfg.themeConfig.isRTL){ _13.style.right=(_16+=_18)+"px"; }else{ _13.style.left=(_16+=_18)+"px"; } if(_18>0&&_16>=_14||_18<0&&_16<=_14||_18==0){ clearInterval(_19); _13.style.clip=""; if(_15){ _15.call(); } } },1); },toggleMobileNav:function(id,_1a,_1b,_1c,_1d,_1e,_1f){ var _20=document.getElementById(id); var _21=document.getElementById("wpthemeNavRootLink"); var _22=document.getElementById(id+"Link"); var _23=document.getElementById(id+"Access"); var _24=document.getElementById(id+"Subnav"); var _25=document.getElementsByTagName("header")[0]; var _26=document.getElementById("layoutContainers"); if(_20){ if(_1f==0){ if(i$.hasClass(_21,"wpthemeNavOpened")){ i$.removeClass(_21,"wpthemeNavOpened"); }else{ i$.addClass(_21,"wpthemeNavOpened"); } } if(i$.hasClass(_20,_1a)){ if(id==_1d&&_1e){ this.mobileNavSideTogglingRoot=true; _20.style.top=_25.offsetHeight+"px"; _20.style.height=(window.innerHeight-_20.offsetTop)+"px"; if(ibmCfg.themeConfig.isRTL){ _20.style.right=(-_20.offsetWidth)+"px"; }else{ _20.style.left=(-_20.offsetWidth)+"px"; } this.mobileNavResizeBinding=i$.bindDomEvt(window,"resize",this.resizeMobileNavSide); } i$.removeClass(_20,_1a); _20.setAttribute("aria-expanded","true"); _22.setAttribute("aria-label",_1c); _22.title=_23.innerHTML=_1c; if(id==_1d&&_1e){ _25.style.position="fixed"; _25.style.width="100%"; _26.style.paddingTop=_25.offsetHeight+10+"px"; _25.style.zIndex="9998"; _25.style.top="0px"; this.animateMobileNavSidePanel(_20,0,function(){ if(wptheme.mobileNavSideLastExpanded.length==0){ wptheme.mobileNavSideTogglingRoot=false; } }); } if(_1e){ if(id==_1d){ for(var i=0;i=0;i--){ document.getElementById(this.mobileNavSideExpanded[i]).onclick.call(); } }else{ var _2a=id+"Link"; var i=-1; for(var j=this.mobileNavSideExpanded.length-1;j>=0;j--){ if(this.mobileNavSideExpanded[j]==_2a){ i=j; break; } } if(i!=-1){ var _2b; for(var j=this.mobileNavSideExpanded.length-1;j>=i;j--){ _2b=this.mobileNavSideExpanded.pop(); if(_2a!=_2b){ document.getElementById(_2b).onclick.call(); } } } _22.parentNode.parentNode.parentNode.onclick=null; } } if(_24&&_1e){ var _29=_24.offsetLeft; if(ibmCfg.themeConfig.isRTL){ _29=parseInt(_24.style.right); } this.animateMobileNavSidePanel(_24,_29-_24.offsetWidth,function(){ i$.addClass(_24,_1a); if(_24.parentNode!=_20){ _24=_24.parentNode.removeChild(_24); _20.appendChild(_24); } }); } if(id==_1d&&_1e){ _25.style.position="static"; _26.style.paddingTop=""; _25.style.width="auto"; _25.style.zIndex="auto"; this.animateMobileNavSidePanel(_20,-_20.offsetWidth,function(){ i$.addClass(_20,_1a); _20.setAttribute("aria-expanded","false"); _22.setAttribute("aria-label",_1b); _22.title=_23.innerHTML=_1b; wptheme.mobileNavSideTogglingRoot=false; }); i$.unbindDomEvt(this.mobileNavResizeBinding); this.mobileNavResizeBinding=null; }else{ i$.addClass(_20,_1a); _20.setAttribute("aria-expanded","false"); _22.setAttribute("aria-label",_1b); _22.title=_23.innerHTML=_1b; } } } },toggleMobileTopNav:function(_2c,_2d){ var _2e=document.getElementById("wpthemeTopNavToggleBtn"); var _2f=document.getElementById("wpthemeTopNavToggleBtnAccess"); var _30=document.getElementsByTagName("header")[0]; var _31=_30.children[0]; if(i$.hasClass(_2e,"wpthemeTopNavOpened")){ _31.style.display="none"; i$.removeClass(_2e,"wpthemeTopNavOpened"); _2e.setAttribute("aria-label",_2c); _2e.title=_2f.innerHTML=_2c; }else{ _31.style.display="block"; i$.addClass(_2e,"wpthemeTopNavOpened"); _2e.setAttribute("aria-label",_2d); _2e.title=_2f.innerHTML=_2d; } this.resizeMobileNavSide(); }}); var _32=document.getElementById("wpthemeHelpLink"); var _33=document.getElementById("wpthemeHelpOnClick"); var _34=document.getElementById("wpthemeHelpAnchor"); if(!(_32===null&&_33===null)&&_34!=null){ if(_32!=null){ var _35=_32.innerHTML; _34.onclick=function(){ window.open(_35,"wpthemeHelp","width=800,height=600"); }; }else{ if(_33!=null){ var _36=_33.innerHTML; _34.onclick=function(){ eval(_36); }; } } } })(); var ngsAttestationCookie = "ngsAttestationCookie"; var ngsAttestationDaysExpire = 30; var ngsAttestationDateExpire = 86400000 * ngsAttestationDaysExpire; var ngsLOBCookie = "ngsLOBCookie"; var ngsStateCookie = "ngsStateCookie"; var ngsLocationCookie = "ngsLocationCookie"; var ngsJuristictionCookie = "ngsJuristictionCookie"; var ngsRememberMeCookie = "ngsRememberMeCookie"; function toggle_visibility(id, isAltTheme){ if (isAltTheme == true){ if ($("#"+id).css("display") == 'block'){ $("#"+id).hide(); }else{ $(".altThemeNavMenu").each(function(index){ $(this).hide(); }); $("#"+id).show(); } }else{ $(".megamenu").each(function(index){ if (id == this.id){ $("#moremenu").hide(); }else{ this.style.display = 'none'; $("#"+this.id+"link").removeClass("ngsSelectedNode"); $("#"+this.id+"link").attr("title",$("#"+this.id+"link").attr("title").replace("collapse","expand")); } }); var e = document.getElementById(id); if(e.style.display == 'block'){ e.style.display = 'none'; $("#"+id+"link").removeClass("ngsSelectedNode"); $("#"+id+"link").attr("title","Click here to expand "+id.toLowerCase()+" menu"); }else{ e.style.display = 'block'; $("#"+id+"link").addClass("ngsSelectedNode"); $("#"+id+"link").attr("title","Click here to collapse "+id.toLowerCase()+" menu"); } } } $(document).ready( function() { var gaPageTitle = document.title; var hostname = top.location.host; _gaq.push([ '_setAccount', 'UA-49542810-1' ]); _gaq.push([ '_trackPageview' ]); _gaq.push([ '_trackPageLoadTime' ]); if (navigator.cookieEnabled == false) { showCookieError() } ngsSetPageTitle(); checkAttestation(); addThemeIcons(); setupPageTools(); if (navigator.userAgent.indexOf("MSIE") > -1 || navigator.userAgent.indexOf("Trident") > -1) { reassignLinkFocusIE() } checkBrowserVersion(); }); function getInternetExplorerVersion(){ var rv = -1; // Return value assumes failure. if (navigator.appName == 'Microsoft Internet Explorer'){ var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat( RegExp.$1 ); } return rv; } function checkBrowserVersion() { var ver = getInternetExplorerVersion(); if ( ver > -1 && ver <= 8.0) { var upgradeUrl; if (homeLobVar != undefined && homeLobVar == 'entry') { upgradeUrl="/ngs/poc/ngsmedicare?1dmy&urile=wcm%3apath%3a%2FNGSMedicareContentNEW%2FNGSMedicareNEW%2FNews-And-Alerts%2FNews-Articles%2FContent%2FUpdate%2BYour%2BInternet%2BBrowser%2Bfor%2Ban%2BOptimum%2BNGSMedicare.com%2Band%2BNGSConnex%2BExperience&LOB=DME&LOC=All%20States&ngsLOC=All%20States&ngsLOB=DME&jurisdiction=Jurisdiction%20B"; } else { upgradeUrl="/ngs/poc/ngsmedicare?1dmy&urile=wcm%3apath%3a%2FNGSMedicareContentNEW%2FNGSMedicareNEW%2FNews-And-Alerts%2FNews-Articles%2FContent%2FUpdate%2BYour%2BInternet%2BBrowser%2Bfor%2Ban%2BOptimum%2BNGSMedicare.com%2Band%2BNGSConnex%2BExperience" +"&LOB=" + getCookie(ngsLOBCookie) + "&LOC=" + getCookie(ngsLocationCookie) + "&ngsLOC=" + getCookie(ngsLocationCookie) + "&ngsLOB=" + getCookie(ngsLOBCookie) + "&jurisdiction=" + getCookie(ngsJuristictionCookie); } $( "body" ).prepend("
\ \"browser\ Get a better experience on our site by updating to the current version of your browser. Upgrade your browser\    Ignore\
"); } } function createCookie(name, value, days) { if (value != null) { var expires; if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); expires = "; expires=" + date.toGMTString() } else expires = ""; var cookieData = name + "=" + value + expires + "; path=/;"; console.log("Setting cookie with data: " + cookieData); document.cookie = cookieData } else { console.log("Cookie value was null. Did NOT create " + name + " cookie.") } } function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) { c_end = document.cookie.length } return unescape(document.cookie.substring(c_start, c_end)) } } return "" } function eraseCookie(name) { createCookie(name, "", -1) } function reassignLinkFocusIE() { var last = null; $("a").each( function(index) { if ($(this).is(":focus")) { console.log("User clicked a link as we have a :focus."); console.log($.trim($(this).text())); $(last).focus(); console.log("Changed focus to previous one: " + $.trim($(last).text())) } last = $(this) }) } function ngsSetPageTitle() { if (isAltTheme != true) { var docTitle = null; var pageTitle = null; var contentTitle = null; var lobVal = getCookie(ngsLOBCookie); if (lobVal != null) { docTitle = lobVal } $(".ngsPageTitle").each(function(index) { console.log(index + ": " + $.trim($(this).text())); if ($(this).text() != null && $.trim($(this).text()).length > 0) { if (pageTitle == null) { pageTitle = $.trim($(this).text()) } } }); $(".ngsContentTitle").each(function(index) { console.log(index + ": " + $.trim($(this).text())); if ($(this).text() != null && $.trim($(this).text()).length > 0) { if (contentTitle == null) { contentTitle = $.trim($(this).text()) } } }); if (pageTitle != null) { if (docTitle != null) { docTitle += ' - ' + pageTitle } else { docTitle = pageTitle } } if (contentTitle != null) { if (docTitle != null) { if (docTitle.indexOf(contentTitle) < 0) { console .log("Document title does NOT contain content title, adding."); docTitle += ' - ' + contentTitle } else { console .log("Document title already contains content title, skipping.") } } else { docTitle = contentTitle } } if (homeLobVar != undefined && homeLobVar == 'true') { docTitle = lobVal + ' - Welcome to NGSMedicare.com'; } if (homeLobVar != undefined && homeLobVar == 'entry') { docTitle = 'Welcome to NGSMedicare.com'; } document.title = docTitle } else { var curTitle = document.title; console.log("curTitle: " + curTitle); var contentTitle = null; $(".ngsPageTitle").each( function(index) { console.log("ngsPageTitle: " + index + ": " + $(this).text()); if ($(this).text() != null && $(this).text().length > 0) { if (contentTitle != null) { console.log(contentTitle); console.log($(this).text().trim()); if (contentTitle.trim().indexOf( $.trim($(this).text())) < 0 || curTitle.trim().indexOf( $.trim($(this).text())) < 0) { console.log("Content title index: " + $.trim(contentTitle).indexOf( $.trim($(this).text()))); console.log("Current title index: " + $.trim(curTitle).indexOf( $.trim($(this).text()))); contentTitle += ' - ' + $.trim($(this).text()) } } else { contentTitle = $.trim($(this).text()) } } }); $(".ngsContentTitle").each( function(index) { console.log("ngsContentTitle: " + index + ": " + $(this).text()); if ($(this).text() != null && $(this).text().length > 0) { if (contentTitle != null) { console.log(contentTitle); console.log($(this).text()); if (contentTitle.trim().indexOf( $.trim($(this).text())) < 0 || curTitle.trim().indexOf( $.trim($(this).text())) < 0) { console.log("Content title index: " + $.trim(contentTitle).indexOf( $.trim($(this).text()))); console.log("Current title index: " + $.trim(curTitle).indexOf( $.trim($(this).text()))); contentTitle += ' - ' + $.trim($(this).text()) } } else { contentTitle = $.trim($(this).text()) } } }); if (contentTitle != null) { if (contentTitle.indexOf(curTitle) < 0) { console .log("Content does not contain current title, appending content titles."); curTitle = curTitle + " - " + contentTitle } else { console .log("Content contains current title, use only content titles."); curTitle = contentTitle } document.title = curTitle } } } function ngsPrintPage() { window.print() } function ngsEmailPage() { $("#ngsEmailPageForm").dialog({ modal : true, height : 450, width : 400 }); $("#ngsEmailURL").val(getPOCURL()) } function ngsSendEmailPageCancel() { $("#ngsEmailPageForm").dialog("close") } function ngsSendEmailPage() { $("#ngsEmailPageErrors").hide(); var errorMessage = ""; var ngsName = $("#ngsName").val(); var ngsEmail = $("#ngsEmail").val(); var ngsReceiptName = $("#ngsReceiptName").val(); var ngsReceiptEmail = $("#ngsReceiptEmail").val(); var ngsEmailSubject = $("#ngsEmailSubject").val(); var ngsEmailMessage = $("#ngsEmailMessage").val(); if (ngsName == null || ngsName.length < 2) { errorMessage += "
Please enter your name" } if (ngsEmail == null || ngsEmail.length < 2) { errorMessage += "
Please enter your email address" } if (ngsEmail.indexOf("@") < 2 || ngsEmail.indexOf(".") < 4) { errorMessage += "
Please enter a valid email address." } if (ngsReceiptName == null || ngsReceiptName.length < 2) { errorMessage += "
Please enter the recipient's name." } if (ngsReceiptEmail == null || ngsReceiptEmail.length < 2) { errorMessage += "
Please enter the recipient's email address." } if (ngsReceiptEmail.indexOf("@") < 2 || ngsReceiptEmail.indexOf(".") < 4) { errorMessage += "
Please enter a valid recipient's email address." } if (errorMessage.length > 1) { $("#ngsEmailPageErrors") .html('

' + errorMessage + '

'); $("#ngsEmailPageErrors").show() } else { ngsEmailMessage += "
" + getPOCURL() + ""; console.log("URL to send: " + getPOCURL()); $("#ngsEmailPageWait").show(); $.ajax({ type : "POST", url : '/ngs-theme-dynamic/SendPageByEmail', data : { ngsName : ngsName, ngsEmail : ngsEmail, ngsReceiptName : ngsReceiptName, ngsReceiptEmail : ngsReceiptEmail, ngsEmailSubject : ngsEmailSubject, ngsEmailMessage : ngsEmailMessage }, success : function() { $("#ngsEmailPageWait").html( '

Email sent successfully.

'); setTimeout(function() { $("#ngsEmailPageForm").dialog("close") }, 3000) }, error : function(jqXHR, textStatus, errorThrown) { $("#ngsEmailPageWait").html( '

There was an error sending your email.

Error: ' + errorThrown + '

') }, dataType : 'text' }) } } function ngsBookmarkPage() { $("link") .each( function(index) { var rel = this.rel; if (rel != null) { if (rel == "bookmark") { var title = document.title; var url = getPOCURL(); console.log("Bookmark URL: " + url); $("#ngsBookmarkPageLink").attr('href', url); if (title != null && title.length > 0) { $("#ngsBookmarkPageLink").html(title) } else { $("#ngsBookmarkPageLink").html(url) } if (typeof recentDocumentURL != 'undefined' && recentDocumentURL != '') { $("#ngsBookmarkVerbiage1") .text( "This page is saved under 'My Recent Bookmarks' as your favorite page. " + $( "#ngsBookmarkVerbiage1") .text()); } var browser = navigator.userAgent; if (browser.indexOf("MSIE") > -1 || browser.indexOf("Trident") > -1) { $("#ngsBookmarkVerbiage2").text( "and select 'Add to Favorites'."); $("#ngsPageToolsBookmarkModal").dialog({ modal : true }) } else if (browser.indexOf("Firefox") > -1) { $("#ngsBookmarkVerbiage2").text( "and select 'Bookmark this Link'."); $("#ngsPageToolsBookmarkModal").dialog({ modal : true }) } else { $("#ngsPageToolsBookmarkModal").dialog({ modal : true }) } } } }); ngsStoreRecentDocument(); } function getPOCURL() { var hostname = window.location.hostname; var pageID = ibmPortalConfig.currentPageOID; var portalContext = ibmPortalConfig.portalContext; var serverPort = window.location.port; if (serverPort != null && serverPort.length > 0) { serverPort = ":" + serverPort } var url = ""; var contentURL = $(".ngsContentURL").text(); if (contentURL != null && contentURL.length > 0) { console.log(contentURL); url = window.location.protocol + "//" + hostname + serverPort + portalContext + "/poc/ngsmedicare" + contentURL + "&LOB=" + getCookie(ngsLOBCookie) + "&LOC=" + getCookie(ngsLocationCookie) + "&ngsLOC=" + getCookie(ngsLocationCookie) + "&ngsLOB=" + getCookie(ngsLOBCookie) + "&jurisdiction=" + getCookie(ngsJuristictionCookie) } else { url = window.location.protocol + "//" + hostname + serverPort + portalContext + "/poc/ngsmedicare?uri=wcm:path:&page=" + pageID; url += "&LOB=" + getCookie(ngsLOBCookie) + "&LOC=" + getCookie(ngsLocationCookie) + "&ngsLOC=" + getCookie(ngsLocationCookie) + "&ngsLOB=" + getCookie(ngsLOBCookie) + "&jurisdiction=" + getCookie(ngsJuristictionCookie) } var find = " "; var re = new RegExp(find, 'g'); url = url.replace(re, '%20'); console.log("Spaces converted: " + url); find = "&"; re = new RegExp(find, 'g'); url = url.replace(re, '&'); console.log("&'s converted: " + url); find = "¤t=true"; re = new RegExp(find, 'g'); url = url.replace(re, ''); console.log("Final URL with current=true removed: " + url); return url } function checkAttestation() { var homepageURL = $(".logo a").attr("href").substring(0, $(".logo a").attr("href").length - 23); console.log("homepageURL: " + homepageURL); var currentURL = window.location.toString(); var attVal = getCookie(ngsAttestationCookie); if (currentURL.indexOf(homepageURL) < 0) { console.log("Not on homepage. Check for LOB/LOC."); console.log("bypassAttestationCheck: " + bypassAttestationCheck); if (bypassAttestationCheck != null && bypassAttestationCheck == true) { } else { if (needsAttestationRefresh != null && needsAttestationRefresh == true) { console .log("needsAttestationRefresh is true, check for cookies."); var lobVal = getCookie(ngsLOBCookie); var locVal = getCookie(ngsLocationCookie); var juriVal = getCookie(ngsJuristictionCookie); if (lobVal == null || locVal == null || juriVal == null) { console.log("LOB/LOC/Juri Cookies were null."); if (isAltTheme == false) { console .log("Is not alt theme, need cookies. Redirect to homepage."); window.location = homepageURL } else { if (attVal == "Yes") { console .log("Is alt theme and has valid attestation cookie.") } else { console .log("Is alt theme but does not have valid attestation cookie."); showAttestationPopup(homepageURL) } } } else { console .log("Cookies were NOT null. Redirect with URL params to reset."); console.log("Redirecting to here: " + currentURL + "?LOB=" + lobVal + "&LOC=" + locVal + "&ngsLOC=" + locVal + "&ngsLOB=" + lobVal + "&jurisdiction=" + juriVal); window.location = currentURL + "?LOB=" + lobVal + "&LOC=" + locVal + "&ngsLOC=" + locVal + "&ngsLOB=" + lobVal + "&jurisdiction=" + juriVal } } else { console.log("HAS LOB/LOC, check Attestation cookie."); attVal = getCookie(ngsAttestationCookie); console.log("Attestation value: " + attVal); if (attVal == null || attVal == "null") { console.log("Attestation cookie is null. Show popup."); showAttestationPopup(homepageURL) } else { console.log("Has valid Attestation cookie.") } } } } else { console.log("On homepage. Does not need LOB/Attestation check.") } } function showAttestationPopup(homepageURL) { $("#attestationButtons").hide(); $("#ngsAttestationModal").dialog({ resizeable : false, modal : true, width : 425, height : 350, buttons : { "I agree" : function() { createCookie(ngsAttestationCookie, "Yes", null); $(this).dialog("close") }, Cancel : function() { window.location = homepageURL } }, close : function(event, ui) { var newAttCookie = getCookie(ngsAttestationCookie); console.log(newAttCookie); if (newAttCookie == null) { checkAttestation() } } }); $("#ngsAttestationModal #AttestationMainContentTitle").hide(); $("#ngsAttestationModal textarea").css("margin", "0"); $("#ngsAttestationModal textarea").css("font-family", "Arial") } function assignAttestation(attVal, loc, lob, juri) { console.log("attVal: " + attVal); console.log("loc: " + loc); console.log("lob: " + lob); console.log("juri: " + juri); if (attVal != null && attVal == 'Yes') { console.log("remember me was selected, setting cookies."); createCookie(ngsAttestationCookie, attVal, null); createCookie(ngsLocationCookie, loc, ngsAttestationDaysExpire); createCookie(ngsLOBCookie, lob, ngsAttestationDaysExpire); createCookie(ngsJuristictionCookie, juri, ngsAttestationDaysExpire); createCookie(ngsRememberMeCookie, attVal, ngsAttestationDaysExpire) } else { console .log("remember me was NOT selected, setting cookies as session cookies."); createCookie(ngsAttestationCookie, attVal, null); createCookie(ngsLocationCookie, loc, null); createCookie(ngsLOBCookie, lob, null); createCookie(ngsJuristictionCookie, juri, null); createCookie(ngsRememberMeCookie, "No", null) } } function addThemeIcons() { $("a") .each( function(index) { var href = this.href; if (href != null && href.length > 0 && href.toLowerCase().indexOf("javascript") < 0 && href.toLowerCase().indexOf("mailto") < 0) { $(this).addClass("webLink"); if (href.indexOf("/ngs/") > -1) { if (href.indexOf("ngsmedicare.com") < 0 && href.indexOf("wcmwidgets.com") < 0 && href.indexOf("10.8") < 0 && href.indexOf("10.180") < 0 && href.indexOf("71.122") < 0) { $(this).addClass("webLinkExternal"); $(this) .attr("title", "Go to External Site"); $(this) .attr( "onclick", "return confirm('This link will take you to an external site. Are you sure you would like to proceed?')"); } if ($(this).attr('class') != null && $(this).attr('class').toLowerCase() .indexOf("weblinkexternal") > -1) { } else { $(this).addClass("webLinkInternal") } } else { if (href.indexOf("apps.ngsmedicare.com") > -1) { $(this).addClass("webLinkInternal") } else { $(this).addClass("webLinkExternal"); $(this) .attr("title", "Go to External Site"); $(this) .attr( "onclick", "return confirm('This link will take you to an external site. Are you sure you would like to proceed?')"); } } if (href.indexOf(".pdf") > 0) { if ($(this).attr("target") != '') { $(this) .attr( "onclick", "return confirm('This link will open the file in a separate browser window. Would you like to proceed?')"); } $(this).addClass("pdfLink"); if (href.indexOf("/ngs/") > -1) { $(this).addClass("pdfLinkInternal"); $(this).attr("title", "View internally linked PDF File") } else { $(this).addClass("pdfLinkExternal"); $(this).attr("title", "View externally linked PDF File") } } else if (href.indexOf(".xls") > 0 || href.indexOf(".xlsx") > 0) { $(this).addClass("xlsNGSLink"); $(this).attr("title", "View linked Excel File") } } }) } var showStaticMenuBar = false; $(window).scroll(function() { if (showStaticMenuBar == false) { if ($(window).scrollTop() >= 200) { $('#pagetitle').addClass('fixed'); showStaticMenuBar = true } } else { if ($(window).scrollTop() < 100) { $('#pagetitle').removeClass('fixed'); showStaticMenuBar = false } } }); function setupPageTools() { $("#ngsPageToolsPrint").keypress(function(e) { if (e.keyCode == 13) { ngsPrintPage() } }); $("#ngsPageToolsEmail").keypress(function(e) { if (e.keyCode == 13) { ngsEmailPage() } }); $("#ngsPageToolsBookmark").keypress(function(e) { if (e.keyCode == 13) { ngsBookmarkPage() } }); var tabindexes = []; $("a").each(function() { var tabindex = $(this).attr("tabindex"); if (tabindex != null && tabindex.length > 0 && parseInt(tabindex) > 0) { if (parseInt(tabindex) < 10) { tabindex = "0" + tabindex } tabindexes.push(tabindex) } }); tabindexes.sort(); var lastTabIndex = parseInt(tabindexes[tabindexes.length - 1]); $("#ngsPageToolsPrint a").attr("tabindex", lastTabIndex + 1); $("#ngsPageToolsEmail a").attr("tabindex", lastTabIndex + 2); $("#ngsPageToolsBookmark a").attr("tabindex", lastTabIndex + 3); $("#searchQueryForm").submit( function() { saveSearch(this); var gaVal = $("#searchLOB").val() + ':' + $("#bannerSearchQueryQ").val(); console.log(gaVal); var gaMes = "Main banner search"; if ($("#altSuplmtl").val() != null) { console.log("CO/PWM search form event."); gaMes = "Welcome main banner search" } else { console.log("Normal search form event.") } console.log("Pushing setAccount in _ngs.js"); var setAccountReturn = _gaq.push([ '_setAccount', 'UA-49542810-1' ]); console.log("Pushing trackeevent _ngs.js: " + gaMes + " and " + gaVal); var trackEventReturn = _gaq .push([ '_trackEvent', gaMes, gaVal ]); console.log("Set account returned: " + setAccountReturn + " Track event returned: " + trackEventReturn); return true }) } function showCookieError() { var homepageURL = $(".logo a").attr("href").substring(0, $(".logo a").attr("href").length - 23); var currentURL = window.location.toString(); if (currentURL.indexOf(homepageURL) > -1) { $("#ngsNoCookies").show(); $("div.highlight.entry").css("height", "auto") } else { window.location = homepageURL } } $(document) .ready( function() { $("#bannerSearchQueryQ") .autocomplete( { minLength : 1, source : $ .proxy( function(request, response) { $ .ajax({ url : '/ngs/PA_ngs-google-search/searchProxy/suggest', type : "GET", dataType : "json", data : { max : 10, q : request.term, site : "default_collection", format : "rich", client : "default_frontend" }, success : $ .proxy( function( data) { response($ .map( data.results, function( item) { return { label : item.name, value : item.name, name : item.name } })) }, this), error : function( data) { $( '#bannerSearchQueryQ') .removeClass( 'ui-autocomplete-loading') } }) }, this), select : function(event, ui) { $(this).val(ui.item.name); return false }, open : $.proxy(function() { $(this) .removeClass( "ui-corner-all") .addClass("ui-corner-top") .css('z-index', '100') }, this), close : $.proxy(function() { $(this) .removeClass( "ui-corner-top") .addClass("ui-corner-all") }, this) }) }); function saveSearch(searchQueryForm) { if (typeof recentSearchURL != 'undefined' && recentSearchURL != '') { $.ajax({ type : "POST", async : false, cache : false, url : recentSearchURL, data : $(searchQueryForm).closest("form").serialize(), complete : function(jqXHR, textStatus) { } }); } } function ngsStoreRecentDocument() { var title = document.title; var url = getPOCURL(); if (title.length <= 0) { title = url; } if (title != null && title.length > 0 && typeof recentDocumentURL != 'undefined' && recentDocumentURL != '') { $.ajax({ type : "POST", cache : false, url : recentDocumentURL, data : { title : title, link : url }, complete : function(jqXHR, textStatus) { } }); } } var ngsSavedForm; function ngsSavedFormStatus(actionUrl, title, url, formAction, contentId) { // store the form title and link associated if (title != null && title.length > 0) { if (ngsSavedForm == null) { // console.log("STATUS::"+actionUrl+":"+title+":"+url+":"+formAction); $.ajax({ async : false, type : "POST", cache : false, url : actionUrl, data : { title : title, link : url, action : formAction }, complete : function(jqXHR, textStatus) { ngsSavedForm = $.parseJSON(jqXHR.responseText); // console.log("form saved: "+ngsSavedForm); } }); } if (ngsSavedForm != null) { var isSaved = false; if (typeof ngsSavedForm == 'object') { $.each(ngsSavedForm, function(i, itemData) { if (title == itemData.title) { isSaved = true; } }); } if (isSaved) { $("#docDelete" + contentId).css('display', 'block'); } else { $("#docSave" + contentId).css('display', 'block'); } } } } function ngsSaveOrDeleteForm(actionUrl, title, url, formAction, contentId, imgId) { // store the form title and link associated if (title != null && title.length > 0) { // console.log("STATUS::"+actionUrl+":"+title+":"+url+":"+formAction); var imgSrc = $("#" + imgId).attr("src"); $("#" + imgId).height(20).width(20); $("#" + imgId) .attr("src", "/ngs-theme-static/themes/html/ngs/images/taggingAndRating/ajax_spinner.gif"); $ .ajax({ async : true, type : "POST", cache : false, url : actionUrl, data : { title : title, link : url, action : formAction }, complete : function(jqXHR, textStatus) { $("#" + imgId).attr("src", imgSrc); var responseText = jqXHR.responseText; // console.log("myform saved status: "+responseText); if (formAction == "save") { if (responseText == 'Saved') { $("#docSave" + contentId) .css('display', 'none'); $("#docDelete" + contentId).css('display', 'block'); alert("Form Successfully " + responseText + "."); } else if (responseText == 'More than required forms') { alert("You have more than 10 forms, please remove one before saving!"); } else { alert(responseText); } } else if (formAction == "delete") { if (responseText == 'Removed') { $("#docSave" + contentId).css('display', 'block'); $("#docDelete" + contentId).css('display', 'none'); alert("Form Successfully " + responseText + "."); } else if (responseText == "Not Exist") { $("#docSave" + contentId).css('display', 'block'); $("#docDelete" + contentId).css('display', 'none'); alert("Form was not saved."); } else { alert(responseText); } } } }); } } var ngsSavedJkManual; function ngsSavedJkManualStatus(actionUrl, title, url, formAction, contentId) { // store the JkManual title and link associated if (title != null && title.length > 0) { if (ngsSavedJkManual == null) { $.ajax({ async : false, type : "POST", cache : false, url : actionUrl, data : { title : title, link : url, action : formAction }, complete : function(jqXHR, textStatus) { ngsSavedJkManual = $.parseJSON(jqXHR.responseText); } }); } if (ngsSavedJkManual != null) { var isSaved = false; if (typeof ngsSavedJkManual == 'object') { $.each(ngsSavedJkManual, function(i, itemData) { if (title == itemData.title) { isSaved = true; } }); } if (isSaved) { $("#docDelete" + contentId).css('display', 'inline'); } else { $("#docSave" + contentId).css('display', 'inline'); } } } } function ngsSaveOrDeleteJkManual(actionUrl, title, url, formAction, contentId, imgId) { // store the JkManual title and link associated if (title != null && title.length > 0) { var imgSrc = $("#" + imgId).attr("src"); $("#" + imgId).height(20).width(20); $("#" + imgId) .attr("src", "/ngs-theme-static/themes/html/ngs/images/taggingAndRating/ajax_spinner.gif"); $ .ajax({ async : true, type : "POST", cache : false, url : actionUrl, data : { title : title, link : url, action : formAction }, complete : function(jqXHR, textStatus) { $("#" + imgId).attr("src", imgSrc); var responseText = jqXHR.responseText; if (formAction == "save") { if (responseText == 'Saved') { $("#docSave" + contentId) .css('display', 'none'); $("#docDelete" + contentId).css('display', 'inline'); alert("Manual Successfully " + responseText + "."); } else if (responseText == 'More than required JK Manual') { alert("You have more than 10 manuals, please remove one before saving!"); } else { alert(responseText); } } else if (formAction == "delete") { if (responseText == 'Removed') { $("#docSave" + contentId).css('display', 'inline'); $("#docDelete" + contentId).css('display', 'none'); alert("Manual Successfully " + responseText + "."); } else if (responseText == "Not Exist") { $("#docSave" + contentId).css('display', 'inline'); $("#docDelete" + contentId).css('display', 'none'); alert("Manual was not saved."); } else { alert(responseText); } } } }); } } var ngsSavedSupplierManual; function ngsSavedSupplierManualStatus(actionUrl, title, url, formAction, contentId) { // store the SupplierManual title and link associated if (title != null && title.length > 0) { if (ngsSavedSupplierManual == null) { $.ajax({ async : false, type : "POST", cache : false, url : actionUrl, data : { title : title, link : url, action : formAction }, complete : function(jqXHR, textStatus) { ngsSavedSupplierManual = $.parseJSON(jqXHR.responseText); } }); } if (ngsSavedSupplierManual != null) { var isSaved = false; if (typeof ngsSavedSupplierManual == 'object') { $.each(ngsSavedSupplierManual, function(i, itemData) { if (title == itemData.title) { isSaved = true; } }); } if (isSaved) { $("#docDelete" + contentId).css('display', 'inline'); } else { $("#docSave" + contentId).css('display', 'inline'); } } } } function ngsSaveOrDeleteSupplierManualStatus(actionUrl, title, url, formAction, contentId, imgId) { var responseText; if (title != null && title.length > 0) { var imgSrc = $("#" + imgId).attr("src"); $("#" + imgId).height(20).width(20); $("#" + imgId) .attr("src", "/ngs-theme-static/themes/html/ngs/images/taggingAndRating/ajax_spinner.gif"); $ .ajax({ async : true, type : "POST", cache : false, url : actionUrl, data : { title : title, link : url, action : formAction }, complete : function(jqXHR, textStatus) { $("#" + imgId).attr("src", imgSrc); responseText = jqXHR.responseText; console.log("Supplier Manual saved status: " + jqXHR.responseText); if (formAction == "save") { if (responseText == 'Saved') { $("#docSave" + contentId) .css('display', 'none'); $("#docDelete" + contentId).css('display', 'inline'); alert("Supplier Manual Successfully " + responseText + "."); } else if (responseText == 'More than required Supplier Manuals') { alert("You have more than 10 Supplier Manuals, please remove one before saving!"); } else { alert(responseText); } } else if (formAction == "delete") { if (responseText == 'Removed') { $("#docSave" + contentId).css('display', 'inline'); $("#docDelete" + contentId).css('display', 'none'); alert("Manual Successfully " + responseText + "."); } else if (responseText == "Not Exist") { $("#docSave" + contentId).css('display', 'inline'); $("#docDelete" + contentId).css('display', 'none'); alert("Manual was not saved."); } else { alert(responseText); } } } }); } }$(document).ready(function() { /* Autocomplete uses an AJAX proxy (WEB-INF/proxy-config.xml) * to make calls to the SUGGEST service on the Google Search * Appliance. Results from the SUGGEST service are returned * as JSON and added to the search input text. */ $( "input[name='searchQuery\\.q']" ).autocomplete({ minLength: 1, source: $.proxy(function(request, response) { $.ajax({ url : '/ngs/PA_ngs-google-search/searchProxy/suggest', type : "GET", dataType : "json", data: { /* 'data' contains the parameters passed as a query string to * the GSA SUGGEST service. An example of the query built is: * /suggest?q=&max=&site=&client=&format=rich */ // MAX = The total number of rows allowed in the suggestion box max: 10, // Q = the partial search term that the user keyed in q: request.term, // SITE = Collection name site: "default_collection", // FORMAT = 'rich' is the Rich Output Format // http://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/xml_reference/query_suggestion.html#1080072 format: "rich", // client = The front end name client: "default_frontend" }, success : $.proxy(function(data) { response( $.map( data.results, function( item ) { return { label: item.name, value: item.name, name:item.name }; })); }, this), error : function(data) { $('#bannerSearchQueryQ').removeClass('ui-autocomplete-loading'); } }); }, this), select: function( event, ui ) { $(this).val(ui.item.name); return false; }, open: $.proxy(function() { $( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" ).css('z-index', '100'); }, this), close: $.proxy(function() { $( this ).removeClass( "ui-corner-top" ).addClass( "ui-corner-all" ); }, this) }); });