// global variables ---------- var isNav, isIE, isNavSix; var coll = ""; var styleObj = ""; var exitText = "By selecting this link, you will be leaving RISEsupport.com and going to a site that is not controlled by or affiliated with Genentech, Inc. or Biogen Idec Inc. Genentech and Biogen Idec are neither affiliated with nor endorse any of the aforementioned organizations. The information provided by Genentech and Biogen Idec or these organizations is meant for informational purposes only and is not meant to replace your doctor's medical advice."; var navIdOn=""; // Nav item to be set to On State //---------------------------- // Prevent page from being framed by another site if (self != top) { if (document.images) top.location.replace(window.location.href); else top.location.href = window.location.href; } //-------------------------------- if (parseInt(navigator.appVersion) >= 4) { if (navigator.appName == "Netscape") { isNav = true; if (parseInt(navigator.appVersion) >= 5) { isNavSix = true; } } else { isIE = true; coll = "all."; styleObj = ".style"; } } // Preload nav images MM_preloadImages( 'images/nav/community.gif', 'images/nav/community_on.gif', 'images/nav/community_over.gif', 'images/nav/home.gif', 'images/nav/home_on.gif', 'images/nav/home_over.gif', 'images/nav/lifestyle.gif', 'images/nav/lifestyle_on.gif', 'images/nav/lifestyle_over.gif', 'images/nav/treatment.gif', 'images/nav/treatment_on.gif', 'images/nav/treatment_over.gif', 'images/nav/nav_bottom.gif', 'images/nav/nav_bottom_on.gif', 'images/nav/seperator.gif', 'images/nav/seperator_bottom_on.gif', 'images/nav/seperator_on.gif', 'images/nav/seperator_over.gif', 'images/nav/seperator_top_on.gif'); //************************************************************ //Change the class of left-nav element //************************************************************ function chgClass(navId, theClass) { if (navId===navIdOn) { return; } if (theClass=='nav-on' || theClass=='nav-on-last') { navIdOn=navId; document.getElementById(navId).className = theClass; } else { document.getElementById(navId).className = theClass; } } // convert object name string or object reference into a valid object reference function getObject(obj) { var theObj; if (typeof obj == "string") { theObj = eval("document." + coll + obj + styleObj); } else { theObj = obj; } if (isNavSix) { theObj = document.getElementById(obj).style } return theObj; } // show object function show(obj) { var theObj = getObject(obj); theObj.visibility = "visible"; } // hide object function hide(obj) { var theObj = getObject(obj); theObj.visibility = "hidden"; } //show object function showDiv(id) { var theDiv = document.getElementById(id); theDiv.style.display="block"; } // hide object function hideDiv(id) { var theDiv = document.getElementById(id); theDiv.style.display="none"; } // move object function move(obj,x,y) { var theObj = getObject(obj); if (isIE) { theObj.pixelLeft = x; theObj.pixelTop = y; } else if (isNav) { theObj.moveTo(x,y);//x,y in pixels } } // rollover function chgImg(imgName, imgSrc) { document.images[imgName].src = imgSrc; } // open window function openWin(arg_url, arg_name, arg_width, arg_height, arg_scroll, arg_resize) { var win = window.open(arg_url,arg_name,'scrollbars=' + arg_scroll + ',resizable=' + arg_resize + ',width=' + arg_width + ',height=' + arg_height); } // close window function closeWin() { window.close(); } // print window function printWin() { window.print(); } // set cookie function setCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name + "=" + value + expires +"; path=/"; } // get cookie function getCookie(name) { var nameEQ = 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 c.substring(nameEQ.length, c.length); } return null; } // check text size cookie function checkCookie() { var cookie = getCookie("screensize"); var className = cookie != null ? changeTextSize(cookie) : changeTextSize("screenlarge", 1); } // check cookie on window load window.onload = function (e) { checkCookie(); } // change text size via css with optional cookie parameter function changeTextSize(cssClass, setC) { if (document.getElementById) { // if this is not a printer friendly version if (document.getElementById("globalbody")) { document.getElementById("globalbody").className = cssClass; // Set class on layered window to force re-size var items = document.getElementsByName("divlayer"); for (var i=0; i-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) return this } bw=new checkBrowser() //With nested layers for netscape, this function hides the layer if it's visible and visa versa function showHide(div,nest){ obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; if(obj.visibility=='visible' || obj.visibility=='show') obj.visibility='hidden' else obj.visibility='visible' } //Shows the div function show(div,nest){ obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; obj.visibility='visible' /* var posx = 0; var posy = 0; if (!e) var e = window.event; if (e.pageX || e.pageY) { posx = e.pageX; posy = e.pageY; } else if (e.clientX || e.clientY) { posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } obj.left = posx-30; obj.top = posy+10; */ } //Hides the div function hide(div,nest){ obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; obj.visibility='hidden' } function displayGlossary(term) { var definitionBegin = "
" + " " + "
"; var definition = ""; var definitionEnd = "
"; switch (term){ case "glossary_rituxan": definition = "Rituxan® (rituximab)
A prescription medicine for adults with moderate to severe RA who have not been helped enough by other treatments. It is used along with another medicine called methotrexate to reduce pain and symptoms, prevent further joint damage, and improve the ability to perform daily activities. Individual results may vary. People with serious infections should not receive Rituxan. Common side effects include infections and infusion reactions. For more information, visit www.Rituxan.com."; definition = definition + "

View Full Glossary"; break; case "glossary_ra": definition = "rheumatoid arthritis (RA)
A chronic disease that occurs when the immune system attacks the body's joints and other tissues in the body."; definition = definition + "

View Full Glossary"; break; case "glossary_ra2": definition = "rheumatoid arthritis (RA)
A chronic disease that occurs when the immune system attacks the body's joints and other tissues in the body."; definition = definition + "

View Full Glossary"; break; case "glossary_ra3": definition = "rheumatoid arthritis (RA)
A chronic disease that occurs when the immune system attacks the body's joints and other tissues in the body."; definition = definition + "

View Full Glossary"; break; case "glossary_symptoms": definition = "symptom
A sign or an indication of a disorder or disease, especially when experienced by an individual as a change from normal function, sensation, or appearance."; definition = definition + "

View Full Glossary"; break; case "glossary_flares": definition = "flare
A term used to describe times when RA is at its worst."; definition = definition + "

View Full Glossary"; break; case "glossary_rheu": definition = "rheumatologist
A physician who pursues additional training after medical school and specializes in the diagnosis, treatment, and prevention of arthritis and other rheumatic disorders."; definition = definition + "

View Full Glossary"; break; case "glossary_dmard": definition = "disease-modifying antirheumatic drugs (DMARDs)
A category of drugs used in RA to slow down the development of the disease (eg, methotrexate, leflunomide, hydroxychloroquine sulfate)."; definition = definition + "

View Full Glossary"; break; case "glossary_symptoms": definition = "symptom
A sign or an indication of a disorder or disease, especially when experienced by an individual as a change from normal function, sensation, or appearance."; definition = definition + "

View Full Glossary"; break; case "glossary_brm": definition = "biologic
A treatment made from proteins produced in living cells."; definition = definition + "

View Full Glossary"; break; case "glossary_tnf": definition = "tumor necrosis factor (TNF)
A chemical messenger of the immune system that is involved in RA."; definition = definition + "

View Full Glossary"; break; case "glossary_inflame": definition = "inflammation
The reaction of body tissues to injury such as irritation in the lining of the joints. Inflammation is characterized by pain, heat, redness, swelling, and loss of function."; definition = definition + "

View Full Glossary"; break; case "glossary_antitnf": definition = "anti-TNFs (or TNF inhibitors)
A class of biologic DMARDs that targets TNF, one of the chemical messengers involved in RA (eg, adalimumab, etanercept, infliximab)."; definition = definition + "

View Full Glossary"; break; case "glossary_bcelltherapy": definition = "targeted B-cell therapy
A treatment that selectively reduces the number of specific B-cells in the blood (eg, Rituximab)."; definition = definition + "

View Full Glossary"; break; case "glossary_bcells": definition = "B-cell
A type of white blood cell that is made in the bone marrow, where it matures through different stages into a plasma cell. Plasma cells are involved in fighting infections by producing antibodies that bring about an immune response. Mature B-cells are found within the blood, lymph, and connective tissue."; definition = definition + "

View Full Glossary"; break; case "glossary_white": definition = "white blood cell
A nearly colorless or "white" cell of the immune system that circulates mainly in the blood and lymph and participates in reactions to invading micro-organisms or foreign particles."; definition = definition + "

View Full Glossary"; break; case "glossary_side": definition = "side effect
An unwanted and potentially harmful effect of a drug."; definition = definition + "

View Full Glossary"; break; } document.write(definitionBegin + definition + definitionEnd); } function displayManetteBio() { var definitionBegin = "
" + " " + "
"; var definition = "Manette's expertise in fitness and wellness was borne out of her days as a professional dancer. While performing on Broadway, she battled several chronic injuries before a rheumatologist eventually diagnosed her with fibromyalgia—a rheumatologic condition that causes long-lasting, widespread pain.

In searching for the right treatment approach for her, Manette consulted a variety of healthcare providers, including acupuncturists, nutritionists, and physical therapists. Ultimately, she earned her certification as a Pilates instructor and developed The LaChance Method™—a combination of various fitness and wellness programs designed to help people with RA and other related conditions."; var definitionEnd = "
"; document.write(definitionBegin + definition + definitionEnd); } function toggleView(obj) { var docElem = document.getElementById(obj); if (document.lpops_registration.state.options[document.lpops_registration.state.selectedIndex].value == "CA") { document.getElementById(obj).className = "showElem"; } else { document.getElementById(obj).className = "hideElem"; } } function toggle(link, obj) { var element = document.getElementById(obj); if (element.style.display == "block") { link.className="arrowup_quiz"; element.style.display = "none"; } else { element.style.display = "block"; link.className="arrowdown_quiz"; } } function set_default_text(element,default_text){ var elem=$(element); var elem_val=elem.value; if(elem_val=="" || elem_val==" " || elem_val==default_text || elem_val==null){ elem.value=default_text; } } function hide_default_text(element,original_text){ var elem=$(element); var elem_val=elem.value; if(elem_val==original_text){ elem.value=""; } } function getUrlParameter(name) { var name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) { return ""; } else { return results[1]; } } // rollover article pager arrow function chgLinkText(action, linkId, name) { var linkObj = document.getElementById(linkId); if (linkObj.name=='') { if (action == 'over') { linkObj.style.color='#f6842d'; linkObj.style.textDecoration='underline'; } else { linkObj.style.color="#00458D"; linkObj.style.textDecoration='none'; linkObj.setAttribute("class", "article-nav"); } } } function disableAnchor(obj, disable){ if(disable){ var href = obj.getAttribute("href"); if(href && href != "" && href != null){ obj.setAttribute('href_bak', href); } obj.removeAttribute('href'); obj.style.color="gray"; } else{ obj.setAttribute('href', obj.attributes['href_bak'].nodeValue); obj.style.color="blue"; } } // IE6 Check function isIE6() { return (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("MSIE 6") !=-1); } function dimBackground(divId){ var matte = document.getElementById(divId); /** var videoOverlay = document.getElementById('video-overlay-bg'); var flashJoin = document.getElementById('flashcontent-join'); var isFF2 = detectFF2(); if (isFF2 && videoOverlay) { //bug workaround -- ff2 css opacity + flash wmode transparent doesn't work if (flashJoin) { flashJoin.innerHTML='' + ''+ 'Join'; } if (matteOn==true) { matte.style.display="block"; matte.style.visibility="visible"; } else { videoOverlay.style.display="block"; videoOverlay.style.visibility="visible"; } //videoOverlay.style.backgroundColor="#ffffff"; } else { matte.style.display="block"; matte.style.visibility="visible"; } if(isIE6){ var pageDiv=$("pageDiv"); if(pageDiv){ pageDiv.style.overflowY="hidden"; pageDiv.style.overflowX="hidden"; } } */ matte.style.display="block"; matte.style.visibility="visible"; } function restoreBackground(divId){ var matte = document.getElementById(divId); /** var videoOverlay = document.getElementById('video-overlay-bg'); var flashJoin = document.getElementById('flashcontent-join'); var isFF2 = detectFF2(); if (isFF2 && videoOverlay) { //bug workaround -- osx ff2 css opacity + flash wmode transparent doesn't work if (flashJoin) { var so = new SWFObject("swf/homepage/homepage.swf", "Homepage Video", "543", "338", "8", "#ffffff"); so.addParam("wmode", "transparent"); so.write("flashcontent-join"); } if (matteOn==true) { matte.style.display="none"; matte.style.visibility="hidden"; } else { videoOverlay.style.display="none"; videoOverlay.style.visibility="hidden"; } } else { matte.style.display="none"; matte.style.visibility="hidden"; } if(isIE6){ var pageDiv=$("pageDiv"); if(pageDiv){ pageDiv.style.overflowY="auto"; pageDiv.style.overflowX="hidden"; } } **/ matte.style.display="none"; matte.style.visibility="hidden"; } function showOverlay(){ var wellnessCallout = document.getElementById('wellness-callout'); var archiveCallout = document.getElementById('archive-callout'); var overlayDiv = document.getElementById('page-overlay'); var maskDiv = document.getElementById('wellness-mask'); var articleDiv = document.getElementById('article-body'); //matteOn=true; // for mac-ff2 dimBackground('matte2'); // gray out Manette article text articleDiv.className='article-body-overlay'; maskDiv.style.display="block"; overlayDiv.style.display="block"; overlayDiv.style.visibility="visible"; wellnessCallout.style.display="none"; wellnessCallout.style.visibility="hidden"; archiveCallout.style.display="block"; archiveCallout.style.visibility="visible"; } function closeOverlay(){ var wellnessCallout = document.getElementById('wellness-callout'); var archiveCallout = document.getElementById('archive-callout'); var overlayDiv = document.getElementById('page-overlay'); var maskDiv = document.getElementById('wellness-mask'); var articleDiv = document.getElementById('article-body'); overlayDiv.style.display="none"; overlayDiv.style.visibility="hidden"; wellnessCallout.style.display="block"; wellnessCallout.style.visibility="visible"; archiveCallout.style.display="none"; archiveCallout.style.visibility="hidden"; maskDiv.style.display="none"; articleDiv.className=''; restoreBackground('matte2'); //matteOn=false; // for mac-ff2 } function openVideo(safetyInd){ var overlayDiv = document.getElementById('video-overlay'); var spacerDiv = document.getElementById('video-spacer'); var maskDiv = document.getElementById('video-mask'); var safetyDiv = document.getElementById('flash-isi'); //matteOn=true; // for mac-ff2 dimBackground('matte'); overlayDiv.style.display="block"; overlayDiv.style.visibility="visible"; spacerDiv.style.display="block"; maskDiv.style.display="block"; if (safetyInd=='safety') { // Display ISI flash module safetyDiv.style.display="block"; } } function closeVideo(){ var overlayDiv = document.getElementById('video-overlay'); var spacerDiv = document.getElementById('video-spacer'); var safetyDiv = document.getElementById('flash-isi'); var maskDiv = document.getElementById('video-mask'); overlayDiv.style.display="none"; overlayDiv.style.visibility="hidden"; spacerDiv.style.display="none"; maskDiv.style.display="none"; restoreBackground('matte'); //matteOn=false; // for mac-ff2 safetyDiv.style.display="none"; } function showEAF(){ var div = document.getElementById('eaf-overlay'); var pageDivs = getElementsByClassName('subpage-text', 'div'); if (pageDivs.length>=1) { var obj = pageDivs[0]; if (isIE) { obj.style.filter = "alpha(opacity=" + 30 + ")"; } else { obj.style.opacity=0.3; } } div.style.display='block'; } function hideEAF(){ var div = document.getElementById('eaf-overlay'); // Restore page body background var pageDivs = getElementsByClassName('subpage-text', 'div'); if (pageDivs.length>=1) { var obj = pageDivs[0]; if (isIE) { obj.style.filter = "alpha(opacity=" + 100 + ")"; } else { obj.style.opacity=1; } } div.style.display='none'; } //Auto tabing for phone,dob fields function autoTab(e, f1, f2, f3, size){ var key = e.keyCode; var codes = "8,9,16,37,39"; // backspace, tab, shift , left arrow, right arrow if (codes.search(key)>=0) { return false; } if(document.getElementById(f1).value.length==size) { document.getElementById(f2).focus(); } else { return; } if(document.getElementById(f2).value.length==size) { document.getElementById(f3).focus(); } }