﻿ var str = window.location.href;
   str = str.toLowerCase();
   if(str.lastIndexOf("/baike")>-1)
   {
        document.getElementById("menuLi1").className="current";
   }
   else if(str.lastIndexOf("/wineplace")>-1)
   {
        document.getElementById("menuLi2").className="current";
   }
    else if(str.lastIndexOf("/video")>-1)
   {
        document.getElementById("menuLi8").className="current";
   }
   else if(str.lastIndexOf("/shequ")>-1)
   {
        document.getElementById("menuLi3").className="current";
   }
   else if (str.lastIndexOf("/product") > -1 || str.lastIndexOf("/wine") > -1)
   {
        document.getElementById("menuLi4").className="current";
   }
   else if(str.lastIndexOf("/member")>-1)
   {
    
        document.getElementById("menuLi5").className="current";
   }
    else if(str.lastIndexOf("/blog")>-1)
   {
    
        document.getElementById("menuLi6").className="current";
   }
   else if(str.lastIndexOf("/cityshop")>-1)
   {
    
        document.getElementById("menuLi7").className="current";
   }
   else
   {
        document.getElementById("menuLi0").className="current";
   }
   function AddFavorite(sURL, sTitle)
    {
   try
   {
       window.external.addFavorite(sURL, sTitle);
   }
   catch (e)
   {
       try
       {
           window.sidebar.addPanel(sTitle, sURL, "");
       }
       catch (e)
       {
           alert("加入收藏失败，请使用Ctrl+D进行添加");
       }
   }
}