var menustate="on";

window.onerror = ferror;

if (parseInt(navigator.appVersion)<4) {
 var menutype="text";
 var menupos="none";
 var MenuVerticalCentered="static"; }
 else {
var menutype=null;
var menupos=null;
var search = "menutype=";
if (document.cookie.length > 0) { 
offset = document.cookie.indexOf(search);
  if (offset != -1) {  
  offset += search.length; 
  end = document.cookie.indexOf(";", offset); 
   if (end == -1) end = document.cookie.length;       
   menutype=unescape(document.cookie.substring(offset, end)); } }
if (menutype==null) menutype="graph"; }

if (menutype=="graph") {
var menupos=null;
var search = "menupos=";
if (document.cookie.length > 0) {   // if there is a cookie
offset = document.cookie.indexOf(search);
  if (offset != -1) {  // menupos is in cookie
  offset += search.length; 
  end = document.cookie.indexOf(";", offset); 
   if (end == -1) end = document.cookie.length;       
   menupos=unescape(document.cookie.substring(offset, end)); } }
if (menupos==null) menupos="rel";
if (menupos=="abs") var MenuVerticalCentered="top";
else var MenuVerticalCentered="static"; } 

function ponload() {
if (document.images) {
prev1=new Image();
prev1.src="arrowrciaprev1.gif";
prev2=new Image();
prev2.src="arrowrciaprev2.gif";
next1=new Image();
next1.src="arrowrcianext1.gif";
next2=new Image();
next2.src="arrowrcianext2.gif"; }}

function ferror(){
  return true; }
  
function menunotice() {
document.write('<font color="#990000">For faster browsing in the RCIA section, hide the menu by clicking on the button that appears at the bottom of this and every page.  Note that cookies must be enabled in your browser for this option to work.</font>'); }

function checktextmenu() {
menustate="on";
var search = "menustate=";
if (document.cookie.length > 0) {   // if there is a cookie
offset = document.cookie.indexOf(search);
  if (offset != -1) {  // there menustate is in cookie
  offset += search.length; 
  end = document.cookie.indexOf(";", offset); 
   if (end == -1) end = document.cookie.length;       
   menustate=unescape(document.cookie.substring(offset, end)); } } }
   
function selectmenubutton() {
if (menustate=="on")
document.write('<a href="javascript:psetmenu()"><img src="bhidemenu.gif" border=0></a>'); 
if (menustate=="off")
document.write('<a href="javascript:psetmenu()"><img src="bshowmenu.gif" border=0></a>'); }

function psetmenu() {
if (menustate=="on") mvalue="off";
if (menustate=="off") mvalue="on";
document.cookie="menustate="+escape(mvalue)+""; 
window.history.go(0); }
  
function menuwrite() {
if (menustate=="on" && menutype=="graph")
{document.write("<script language='JavaScript1.1' type='text/javascript'>function Go(){return}</script>");
document.write("<script language='JavaScript1.1' type='text/javascript' src='menu.js'></script>"); } }

function ponmouseover(dir) {
if (navigator.appVersion.indexOf("Macintosh")>1 && navigator.appName=="Netscape" && parseInt(navigator.appVersion)<4) return false; 
else
{ if (document.images) {
document.images[dir].src = eval(dir+"2.src");
return true} } }

function ponmouseout(dir) {
if (navigator.appVersion.indexOf("Macintosh")>1 && navigator.appName=="Netscape" && parseInt(navigator.appVersion)<4) return false;
else
{ if (document.images) {
document.images[dir].src= eval(dir+"1.src");
return true } } }

