/****************************************************************************
* Function:    detectBrowser()                                              *
* Parameters:  N/A                                                          *
* Description: Detects the browser type being used and sets the following   *
*              global variables:                                            *
*                   gvNS4 = true if using Netscape 4+ browser               *
*                   gvIE4 = true if using IE 4+ browser                     *
*                   gvSupportedBrowser = true if either gvNS4/gvIE4 = true  *
*              WebTV & Opera browsers are not supported.                    *
* Returns:     N/A                                                          *
****************************************************************************/

if ((navigator.appName == "Netscape") && 
    (navigator.userAgent.indexOf("WebTV") == -1) && 
    (navigator.userAgent.indexOf("Opera") == -1))
{
   // Only 4.x versions of Netscape are supported
   if (parseInt(navigator.appVersion) >= 4)
   {
      gvSupportedBrowser = true;
      gvNS4 = true;
   }
}
else
{
   if ((navigator.appName == "Microsoft Internet Explorer") && 
       (parseInt(navigator.appVersion) >= 4))
   {
      gvSupportedBrowser = true;
      gvIE4 = true;
   }
}


function orderMsg()
{
   alert('The Harmony shopping cart is coming soon.  Until then, you can order products by sending an email to emailorders@harmonymusic.com.');
}


function browserSpecificPage(strRedirectPage)
{
   switch(strRedirectPage)
   {
      case "products":
         if (gvIE4)
         {
            location.href = "products.asp?browser=IE";
         }
         else
         {
            location.href = "products.asp?browser=NS";
         }
   }
}