var strCurrentPage = location.pathname.split('/')[location.pathname.split('/').length - 1];
strCurrentPage = strCurrentPage.split('_')[0];

var strCurrentSection = location.pathname.split('/')[location.pathname.split('/').length - 1];
strCurrentSection = strCurrentSection.split('_')[0] + '_' + strCurrentSection.split('_')[1];

var strSubnav = "";

switch (strCurrentPage)
{
 case "aspercreme":
  strSubnav = 
   '<img src="../images/spacer.gif" width="165" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("aspercreme_regular" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="aspercreme_regular_en.html">Regular Strength</a>' +
   '<img src="../images/spacer.gif" width="36" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("aspercreme_extra" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="aspercreme_extra_en.html">Extra Strength</a>' +
   '<img src="../images/spacer.gif" width="36" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("aspercreme_testimonials" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="aspercreme_testimonials_en.html">Testimonials</a>';
  break;

 case "goldbond":
  strSubnav = 
   '<img src="../images/spacer.gif" width="24" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("goldbond_bodylotion" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="goldbond_bodylotion_main_en.html">Body Lotions</a>' +
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("goldbond_bodypowder" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="goldbond_bodypowder_main_en.html">Body Powders</a>' +
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("goldbond_footpowder" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="goldbond_footpowder_main_en.html">Foot/Cream Powder</a>' +
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("goldbond_antiitch" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="goldbond_antiitch_main_en.html">Anti-Itch Cream/Lotion</a>' ;
  break;

 case "flexall":
  break;

 case "pamprin":
  strSubnav = 
   '<img src="../images/spacer.gif" width="322" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("pamprin_multi" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="pamprin_multi_en.html">Multi-Symptom</a>' +
   '<img src="../images/spacer.gif" width="49" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("pamprin_pms" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="pamprin_pms_en.html">PMS</a>';
  break;

 case "phisoderm":
  var strCurrentSection = location.pathname.split('/')[location.pathname.split('/').length - 1];
  var strCurrentSubSection = strCurrentSection.split('_')[1] + '_' + strCurrentSection.split('_')[2];
  var strPhisodermSection = strCurrentSection.split('_')[1];

  switch (strPhisodermSection)
  {
   case "phisoderm":
    strSubnav = 
     '<img src="../images/spacer.gif" width="270" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("phisoderm_main" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_phisoderm_main_en.html">Overview</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("phisoderm_original" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_phisoderm_original_en.html">Original</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("phisoderm_sensitive" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_phisoderm_sensitive_en.html">Sensitive</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("phisoderm_plus" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_phisoderm_plus_en.html">Plus</a>';
   break;

   case "cc":
    strSubnav = 
     '<img src="../images/spacer.gif" width="40" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("cc_main" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_cc_main_en.html">Overview</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("cc_facialclenser" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_cc_facialclenser_en.html">Facial Cleanser</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("cc_bodywash" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_cc_bodywash_en.html">Body Wash</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("cc_masque" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_cc_masque_en.html">Mask</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("cc_astringent" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_cc_astringent_en.html">Astringent</a>' +
     '<img src="../images/spacer.gif" width="20" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="' + (("cc_scrub" == strCurrentSubSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="phisoderm_cc_scrub_en.html">Scrub</a>';
   break;

   default:
    strSubnav = 
     '<img src="../images/spacer.gif" width="150" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="subnav_item" href="phisoderm_phisoderm_main_en.html">Phisoderm Original</a>' +
     '<img src="../images/spacer.gif" width="50" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
     '<a class="subnav_item" href="phisoderm_cc_main_en.html">Phisoderm Clear Confidence</a>';
  } // end switch (strPhisodermSection)

  break;

 case "selsun":
  strSubnav = 
   '<a class="' + (("selsun_25" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="selsun_25_en.html">2.5%</a>' +
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("selsun_no" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="selsun_no_en.html">Normal-Oily Hair</a>' +
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("selsun_dry" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="selsun_dry_en.html">Moisturizing</a>' +
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("selsun_2in1" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="selsun_2in1_en.html">2 in 1</a>' +
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("selsun_itchydryscalp" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="selsun_itchydryscalp_en.html">Itchy Dry Scalp</a>' + 
   '<img src="../images/spacer.gif" width="12" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("selsun_botanicals" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="selsun_botanicals_en.html">Botanicals</a>';
  break;

 case "sunin":
  strSubnav = 
   '<img src="../images/spacer.gif" width="330" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("sunin_super" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="sunin_super_en.html">Super</a>' +
   '<img src="../images/spacer.gif" width="39" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("sunin_lemon" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="sunin_lemon_en.html">Super With Lemon</a>';
  break;

 case "ultraswim":
  strSubnav = 
   '<img src="../images/spacer.gif" width="351" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("ultraswim_shampoo" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="ultraswim_shampoo_en.html">Shampoo</a>' +
   '<img src="../images/spacer.gif" width="33" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("ultraswim_conditioner" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="ultraswim_conditioner_en.html">Conditioner</a>';
  break;
  
 case "icyhot":
  strSubnav = 
   '<img src="../images/spacer.gif" width="72" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("icyhot_patches" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="icyhot_patches_en.html">Medicated Patches</a>' +
   '<img src="../images/spacer.gif" width="29" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("icyhot_sleeves" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="icyhot_sleeves_en.html">Medicated Sleeves</a>' +
   '<img src="../images/spacer.gif" width="29" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
   '<a class="' + (("icyhot_cream" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="icyhot_cream_en.html">Pain Relieving Cream</a>';
  break;

 case "chattem":
  strSubnav = 
    '<img src="../images/spacer.gif" width="260" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
    '<a class="' + (("chattem_history" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="chattem_history_en.html">History</a>' +
    '<img src="../images/spacer.gif" width="23" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
    '<a class="' + (("chattem_company" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="chattem_company_en.html">The Company</a>' +
    '<img src="../images/spacer.gif" width="23" height="1" alt="" style="float: left; margin: 0px; padding: 0px; border: 0px;" />' +
    '<a class="' + (("chattem_international" == strCurrentSection) ? 'subnav_item_depressed' : 'subnav_item') + '" href="chattem_international_en.html">International</a>' 
  break;

 case "contact":
  break;

 case "privacy":
  strSubnav = 
      '<a class="subnav_item_depressed" href="privacy_en.html">Privacy Policy</a>' +
      '<img src="../images/spacer.gif" alt="" width="36" height="27" style="float: left;" />' +
      '<a class="subnav_item"  href="disclaimer_en.html">Disclaimer</a>';
  break;

 case "disclaimer":
  strSubnav = 
      '<a class="subnav_item" href="privacy_en.html">Privacy Policy</a>' +
      '<img src="../images/spacer.gif" alt="" width="36" height="27" style="float: left;" />' +
      '<a class="subnav_item_depressed"  href="disclaimer_en.html">Disclaimer</a>';
  break;


 default:
}

document.write(strSubnav);