function SearchOnclick()
{
	var _1 = document.getElementById("keyword").value;
	//if(_1.length < 1 || _1.indexOf("搜索")>0 )
	//{
	//	alert("搜索关键字不能为空！");
	//}
	//else
	//{
		//var type = document.getElementById("ctl00$ContentPlaceHolder1$selType").value;
		if (document.getElementById("ctl00$ContentPlaceHolder1$selBrand")==null)
		{
			var brand = document.getElementById("ctl00_ContentPlaceHolder1_MenuControl1_ProductSearchControl1_selBrand").value;
		}
		else
		{
			var brand = document.getElementById("ctl00$ContentPlaceHolder1$selBrand").value;
		}
		
		
	    location.href="search.aspx?keyword=" + _1 + "&brand=" + brand;
	//}
}

function searchState()
{


	if(window.event.keyCode==13)
	 {
		document.forms[0]['searchbtn'].focus();
	 }


	
}

function moresel(_1)
{
	location.href="BProducts" + document.getElementById("moreselect").value + "_" + _1 + "_1.aspx";
}




sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
if(document.getElementById("navmore")!=null)
	{

	document.getElementById("home_leftnav").onmouseover= function(){Overmore()};
	document.getElementById("home_leftnav").onmouseout= function(){Outmore()};

	}
var _c;
for (var i=0; i<sfEls.length; i++) {

			sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "1");
			}




}
}

function Overmore()
{
	document.getElementById("navmore").style.display = "block";
	
}

function Outmore()
{
	document.getElementById("navmore").style.display = "none";
	
}

window.onload=sfHover;
