
// Meds Thru Canada Inc.
// JavaScript Mini-Selector for Right Hand Column
// 2005-09-09  dg
//  <20100311094402UTC>
//


// Sideitems = 18 <BR>
  var si_name = new Array(); 
  var si_text = new Array(); 
si_name[0] = "Free Envelope";
si_text[0] = "<center>To get a free<BR><b>Postage Paid</b><BR>envelope, just call us<BR>at <b>800-584-5598</b> (Promo Code #100039).<br><br>No need for you to look for an envelope or a stamp!</center>";
// -- // 
si_name[1] = "Medicare Tips";
si_text[1] = "<center><a href=medicare1.html>Click HERE</a><BR>to read about<BR><b>Medicare Part D</b><BR>and how it might affect your prescription costs.</center>";
// -- // 
si_name[2] = "Quote";
si_text[2] = "<b><i>The goal is for U.S. citizens to get a fair price for their medications.</i><br><br>Michael J. Staley<br>Meds Thru Canada</b>";
// -- // 
si_name[3] = "Is it LEGAL?";
si_text[3] = "<center><a href=legal.html>Click HERE</a><br>to find out the answer to that and other legal issues about ordering prescriptions from Canada</center>";
// -- // 
si_name[4] = "Ordering Strategy";
si_text[4] = "<center>Best strategy:<BR>ask your doctor for a <b>three-month prescription</b>, with <b>THREE additional repeats.</b> <BR><BR>This maximizes each order amount, while minimizing your total shipping costs</center>";
// -- // 
si_name[5] = "How to ORDER";
si_text[5] = "<center>Asking your doctor for a <b>THREE MONTH</b> prescription with <b>THREE REPEATS</b> means that your repeats can be filled faster!</center>";
// -- // 
si_name[6] = "WOW!";
si_text[6] = "<center>Save up to<BR><img src=../graphics/EightyPercent_WOW.gif border=0><BR> on the cost of your medications by ordering from us!</center>";
// -- // 
si_name[7] = "Random FAQ Tip";
si_text[7] = "We accept Visa, MasterCard, and Discover Card.<BR><BR>&nbsp&nbsp;<center><img src=../graphics/Visa_logo.gif border=0>&nbsp;<img src=../graphics/MasterCard2_logo.gif border=0 height=24 width=38>&nbsp;<img src=../graphics/Discover_logo.gif border=0 height=24 width=42></center>";
// -- // 
si_name[8] = "Shipping Details";
si_text[8] = "<img src=../graphics/CanadaPost_Logo.gif border=0><BR><img src=../graphics/pixel_clear.gif border=0 height=3><BR><img src=../graphics/USPS_Logo.jpg border=0 width=147><Center>Canadian orders are shipped by <b>Canada Post</b>, delivered by <b>USPS</b>, and take 5-7 days to arrive from the time of mailing.</center>";
// -- // 
si_name[9] = "Linked Orders";
si_text[9] = "<center>Two orders going to the same household can be shipped in the same box, <b>eliminating</b> one shipping charge.</center>";
// -- // 
si_name[10] = "Download Form";
si_text[10] = "<center>You need <b>Adobe&nbsp;Reader</b> to read and print the required forms for ordering.  If you don't have Adobe reader, you can get it here:<BR><BR><center><A href=http://www.adobe.com/products/acrobat/readstep2.html target=new><img src=../graphics/get_adobe_reader.gif border=0></a></center>";
// -- // 
si_name[11] = "Privacy";
si_text[11] = "<center>We are committed to maintaining the <a href=disclaimer.html>privacy</a> and confidentiality of your medical information.</center>";
// -- // 
si_name[12] = "Safe Drugs";
si_text[12] = "MedsThruCanada only provides drugs that are certified by <b>Health&nbsp;Canada</b>.<BR> <center><img src=../graphics/CAN.jpg border=0></center>";
// -- // 
si_name[13] = "Original Rx";
si_text[13] = "<center>You will be required to send in your <b>original prescription</b> from your doctor so we can verify its authenticity.</center>";
// -- // 
si_name[14] = "Customer Quote";
si_text[14] = "<b><i>Thank-you for making my medications affordable again!</i></b><BR><BR><b>P.M.<BR>Bartlesville, OK</b>";
// -- // 
si_name[15] = "$5.00 COUPON!";
si_text[15] = "<center><b>$5.00 OFF COUPON</b><BR>is available on your first order!! Just call us at <nobr><b>800-584-5598</b></nobr> <nobr>(Promo Code #100039)</nobr> and we will send you a free coupon for shipping.<BR><BR>Limit one per customer.</center>";
// -- // 
si_name[16] = "It's Easy!";
si_text[16] = "NO Restrictive Formulary!<BR>NO Complex Calculations!<BR>NO Income Restrictions!<BR>NO Doughnut Hole!<BR>NO Memberships!<img src=../graphics/nosymbol.gif border=1 align=right height=35 width=35><BR>NO Co-Pay!<BR>NO Cards!<BR>NO</b> Limits!";
// -- // 
si_name[17] = "Promo #100039";
si_text[17] = "<center>Be sure to quote<BR><b>PROMO CODE #100039</b><BR>to ensure that you get the best possible pricing.</center>";
// -- // 

/////#####
function rhc_Selector() {              // *R*ight *H*and *C*olumn
// Input: drugsshown has the number of drugs shown on the screen for determining the number of RHC boxes
//        page has the page that called this routine

   rhccount = 1 + Math.round(drugsshown/4);       // number of RHC boxes to display, based on drugs shown
   if ( page == "home" )       { rhccount = 6;   }     // special for non-drug display page
   if ( page == "checklist" )  { rhccount = 4;   }     // special for non-drug display page
   if ( page == "faq" )        { rhccount =12;   }     // special for non-drug display page
   if ( page == "news" )       { rhccount = 6;   }     // special for non-drug display page
   if ( page == "partners" )   { rhccount = 6;   }     // special for non-drug display page
   if ( page == "contact" )    { rhccount = 3;   }     // special for non-drug display page
   if ( page == "doctors" )    { rhccount = 3;   }     // special for non-drug display page
   if ( page == "disclaimer" ) { rhccount = 1;   }     // special for non-drug display page
   if ( page == "medicare1" )  { rhccount = 5;   }     // special for non-drug display page
   if ( page == "medicare2" )  { rhccount = 4;   }     // special for non-drug display page
   if ( page == "medicare3" )  { rhccount = 3;   }     // special for non-drug display page
   if ( page == "legal" )      { rhccount = 6;   }     // special for non-drug display page
   if ( page == "mmwelcome" )  { rhccount = 1;   }     // special for non-drug display page
   if ( page == "mmcustomer" ) { rhccount = 3;   }     // special for non-drug display page
   if ( page == "mmagent" )    { rhccount = 3;   }     // special for non-drug display page
   if ( page == "sitemap" )    { rhccount = 2;   }     // special for non-drug display page
   if ( page == "config" )     { rhccount = 4;   }     // special for non-drug display page
   if ( page == "notfound" )   { rhccount = 1;   }     // special for non-drug display page

   // initial color seed
   bkgcolor = 'GRAY' ;

   for ( side = 0 ; side < rhccount ; side++) {
     var sptrrand = get_rand(0,(18-1))
     rhc_Divider();
     rhc_SideItem(sptrrand);
   }
}


/////#####
function rhc_Divider() {
   document.write("<hr width=100% color=black>");
}

/////#####
function rhc_SideItem(sptr) {
   var sptr ;
   t = "" ;
   bkgcolor = ( bkgcolor=='GRAY' ? 'BLUE' : 'GRAY' ) ;
   fntcolor = ( bkgcolor=='GRAY' ? 'BLUE' : 'GRAY' ) ;
   fntcolor = "WHITE";
   t += "<table cellpadding=5 cellspacing=0 align=center width=160 border=1>";
   t += " <tr>";
   t += "  <td align=center bgcolor="+bkgcolor+">&nbsp;<font color="+fntcolor+"><b>"+si_name[sptr]+"</b></font>&nbsp;</td>";
   t += " </tr>";
   t += " <tr>";
   t += "  <td class=EM>";
   t += "   <font color=navy>";
   t +=      si_text[sptr] ;
   t += "   </font>";
   t += "  </td>";
   t += " </tr>";
   t += "</table>";
   document.write(t);
}






/////#####
t = "" ;
function fps_Selector() {                  // *F*ront *P*age *S*elector

   var fpssubs = 7 ;                        // number of available subroutines
   var fpssub = new Array(fpssubs) ;
   fpssub[0] = "fps_CICF();" ;
   fpssub[1] = "fps_Flags();" ;
   fpssub[2] = "fps_Easy();" ;
   fpssub[3] = "fps_Easy();" ;
   fpssub[4] = "fps_Legal();" ;
   fpssub[5] = "fps_Legal();" ;
   fpssub[6] = "fps_Legal();" ;

   ptr = get_rand(0,fpssubs-1);            // pick the one we are going to show this time
   eval(fpssub[ptr]);


}



/////#####
function fps_Flags() {
   t = "" ;
   t = t + "<table align=right cellpadding=4 cellspacing=0 border=1>";
   t = t + "<tr><td align=center><img src=../graphics/USA.jpg border=0 alt='We ship your medicine using Canada Post'></td></tr>";
   t = t + "<tr><td align=center><img src=../graphics/CAN.jpg border=0 alt='Your medicine will be delivered by USPS'></td></tr>";
   t = t + "</td></tr></table>";
   document.write(t);
}


/////#####
function fps_SLC() {
   t = "" ;
   t = t + "<table border=1 cellpadding=3 cellspacing=0 align=right>";
   t = t + " <tr bgcolor=BLUE>";
   t = t + "  <td align=center><font color=white><b>*** NEWS ***</b></font></td>";
   t = t + " </tr>";
   t = t + " <tr>";
   t = t + "  <td align=center>";
   t = t + "Come see us at<BR><a href=http://seniorexpo.org target=_blank>SeniorExpo Utah</a><BR>Booth#518<BR>Salt Lake City, UTAH<BR>Oct 21-22";
   t = t + "</td>";
   t = t + " </tr>";
   t = t + "</table>";
   document.write(t);   
}


/////#####
function fps_CICF() {
   t = "" ;
   t = t + "<table border=1 cellpadding=3 cellspacing=0 align=right>";
   t = t + " <tr bgcolor=BLUE>";
   t = t + "  <td align=center><font color=white><b>*** Breaking News ***</b></font></td>";
   t = t + " </tr>";
   t = t + " <tr>";
   t = t + "  <td align=center>";
   t = t + "You only need to complete<BR><a href='http://localhost/hsphere/local/home/dav1d/medsthrucanada.com/cgi-bin/DB-Website_039.pl?func=cicf'>one single form</a><BR>to order medications from us!";
   t = t + "</td>";
   t = t + " </tr>";
   t = t + "</table>";
   document.write(t);   
}

/////#####
function fps_Easy() {
   t = "" ;
   t = t + "<table border=1 cellpadding=3 cellspacing=0 align=right>";
   t = t + " <tr bgcolor=BLUE>";
   t = t + "  <td align=center><font color=white><b>*** It's Easy to Order ***</b></font></td>";
   t = t + " </tr>";
   t = t + " <tr>";
   t = t + "  <td align=center>";
   t = t + "   <nobr><b>NO</b> Restrictive Drug Formulary!<BR><b>NO</b> Complex Calculations!<BR><b>NO</b> Income Restrictions!<BR><b>NO</b> Doughnut Hole!<BR><b>NO</b> Memberships!<BR><img src=../graphics/nosymbol.gif align=left height=35 width=35><img src=../graphics/nosymbol.gif align=right height=35 width=35><b>NO</b> Co-Pay!<BR><b>NO</b> Cards!<BR><b>NO</b> Limits!</nobr>";
   t = t + "  </td>";
   t = t + " </tr>";
   t = t + " <tr>";
   t = t + "  <td align=center>";
   t = t + "   <nobr><b>Complete one single</b> <a href='http://localhost/hsphere/local/home/dav1d/medsthrucanada.com/cgi-bin/DB-Website_039.pl?func=cicf'><u>FORM</u></a>!</nobr>";
   t = t + "  </td>";
   t = t + " </tr>";
   t = t + "</table>";
   document.write(t);   
}


/////#####
function fps_Legal() {
   t = "" ;
   t = t + "<table border=1 cellpadding=3 cellspacing=0 align=right>";
   t = t + " <tr bgcolor=BLUE>";
   t = t + "  <td align=center><font color=white><b>*** Is it LEGAL?!? ***</b></font></td>";
   t = t + " </tr>";
   t = t + " <tr>";
   t = t + "  <td align=center>";
   t = t + "   Is it legal to order<BR>prescriptions from Canada?!?";
   t = t + "  </td>";
   t = t + " </tr>";
   t = t + " <tr>";
   t = t + "  <td align=center>";
   t = t + "   <nobr><a href=legal.html>Click HERE to find out</a>!&nbsp;<img src=../graphics/new-blink.gif border=0></nobr>";
   t = t + "  </td>";
   t = t + " </tr>";
   t = t + "</table>";
   document.write(t);   
}


