// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

function LoadMenus() {
  if (window.first) return;
  
// How Does Part D Work? Menu
window.first = new Menu("root",247,25,"Arial, Helvetica, sans-serif",16,"#FFFFFF","#FFFFFF","#000099","#B0232A","left","middle",3,1,500,-5,7,true,true,true,3,false,true);
first.addMenuItem("Introduction","location='introduction.html'");
first.addMenuItem("Top 10 Highlights","location='top_ten.html'");
first.addMenuItem("Is Part D For You?","location='is_partd_for_you.html'");
first.addMenuItem("How Part D Works","location='standard_plan.html'");
first.addMenuItem("Coverage Gap Tips","location='coverage_gap_tips.html'");
first.addMenuItem("Low Income","location='lower_income.html'");
first.addMenuItem("Formulary","location='formulary.html'");
first.addMenuItem("Current Coverage","location='current_coverage.html'");
first.addMenuItem("Getting Prepared","location='getting_prepared.html'");
first.addMenuItem("Questions","location='questions.html'");
first.addMenuItem("Resources","location='resources.html'");
first.hideOnMouseOut=true;
first.bgColor='#B0232A';
first.menuBorder=1;
first.menuLiteBgColor='#F8B8CB';
first.menuBorderBgColor='#B0232A';

 
// Benefit Overview Menu  
window.third = new Menu("root",267,25,"Arial, Helvetica, sans-serif",16,"#FFFFFF","#FFFFFF","#000099","#B0232A","left","middle",3,1,500,-5,7,true,true,true,3,false,true);
third.addMenuItem("Plan Finder","location='plan_finder.html'");
third.addMenuItem("Member Center Login",ONCLICK="openNewWindow16()");
third.addMenuItem("Plan Materials &amp; Forms","location='materials_library.html'");
third.addMenuItem("Pharmacy Finder",ONCLICK="openNewWindow14()");
third.addMenuItem("Pharmacy Directories","location='pharmacy_directories.html'");
third.addMenuItem("Need Extra Help?","location='extra_help.html'");
third.addMenuItem("Policies &amp; Procedures","location='policies_procedures.html'");
third.addMenuItem("Exceptions and Appeals","location='exceptions_appeals.html'");
third.addMenuItem("ExtraCare Health Program","location='extracare.html'");
third.hideOnMouseOut=true;
third.bgColor='#B0232A';
third.menuBorder=1;
third.menuLiteBgColor='#F8B8CB';
third.menuBorderBgColor='#B0232A';


third.writeMenus();
} // mmLoadMenus()

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function openNewWindow01()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11102.pdf','11102','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11102.pdf','11102','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow02()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11122.pdf','11122','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11122.pdf','11122','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow03()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11104.pdf','11104','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11104.pdf','11104','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow04()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11105.pdf','11105','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11105.pdf','11105','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow05()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11130.pdf','11130','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11130.pdf','11130','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow06()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11106.pdf','11106','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11106.pdf','11106','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow07()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11108.pdf','11108','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11108.pdf','11108','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow08()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11116.pdf','11116','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11116.pdf','11116','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow09()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11107.pdf','11107','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11107.pdf','11107','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow10()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11135.pdf','11135','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11135.pdf','11135','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow11()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11120.pdf','11120','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11120.pdf','11120','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow12()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11121.pdf','11121','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11121.pdf','11121','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow13()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('pdf/11116.pdf','11116','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('pdf/11116.pdf','11116','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

function openNewWindow14()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('https://app1.rxamerica.com/MemberCenter/autoLogin.do?name=MMAPlan1&page=pharmacyonly','RxaPharmLoc','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('https://app1.rxamerica.com/MemberCenter/autoLogin.do?name=MMAPlan1&page=pharmacyonly','RxaPharmLoc','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}


/*function openNewWindow15()
{
	window.open('calculator_unavailable.html','unavailable','scrollbars=yes, width=467, height=550, top=100, left=400');
}*/


function openNewWindow15()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('https://app1.rxamerica.com/calculator','BenefitCalculator','HEIGHT=650,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes');
    }
    else
    {
	window.open('https://app1.rxamerica.com/calculator','BenefitCalculator','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes');
    }
}

function openNewWindow16()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('https://app1.rxamerica.com/MemberCenter','RxaMemberServ','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('https://app1.rxamerica.com/MemberCenter','RxaMemberServ','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}

//function openNewWindow16()
//{
//    var screenWidth = screen.width;
//
//    if (screenWidth  > 1000)
//    {
//	window.open('http://app1.rxamerica.com/RxWeb','RxaMemberServ','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
//    }
//    else
//    {
//	window.open('http://app1.rxamerica.com/RxWeb','RxaMemberServ','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
//    }
//} 

function openNewWindow17()
{
    var screenWidth = screen.width;

    if (screenWidth  > 1000)
    {
	window.open('https://butch.rxamerica.com:444/RxExpert/getNewLogin.do','RxApprover','HEIGHT=600,WIDTH=990,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
    else
    {
	window.open('https://butch.rxamerica.com:444/RxExpert/getNewLogin.do','RxApprover','HEIGHT=474,WIDTH=790,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,menubar=yes');
    }
}