﻿	function txtSearchKeyDown(event)
	{
		var key = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (key == 13)	{__doPostBack('btnSearchbtn','');}
	}
	function txtSearchKeyIn(event)
	{
		var txt = document.getElementById("xq");
		if (txt) {txt.value = document.getElementById("txtSearch").value;}
	}
	function txtSearchFocus()
	{
		var xq = document.getElementById("spanSearchOption");
		if (xq) {spanSearchOptionFocus();} 
	}
	function txtSearchBlur()
	{
		var xq = document.getElementById("spanSearchOption");
		if (xq)
		spanSearchOptionBlur();
	}
	function btnSearchOver(txt)
	{
		var xq = document.getElementById("spanSearchOptions");
		if (xq)
		{
			clearTimeout(hideSearchOptionTimer);
			document.getElementById("spanSearchOptions").style.display="";
		    var prod = document.getElementById("spanSearchOptions1");
		    var supp = document.getElementById("spanSearchOptions2");
		    var press = document.getElementById("spanSearchOptions3");
		   if (txt == "Products")
			{
				prod.style.background = "#fff";
				supp.style.background = "#fff";
				press.style.background = "#fff";
				prod.style.background="#C9E1FA";
			}
			else if (txt == "Support")
			{
				prod.style.background = "#fff";
				supp.style.background = "#fff";
				press.style.background = "#fff";
				supp.style.background="#C9E1FA";
			}
			else if (txt == "Pressroom")
			{
				prod.style.background = "#fff";
				supp.style.background = "#fff";
				press.style.background = "#fff";
				press.style.background="#C9E1FA";
			}
			spanSearchOptionFocus();
		}
	}
	function btnSearchOut()
	{
		var xq = document.getElementById("spanSearchOptions");
		if (xq)
		{
			var prod = document.getElementById("spanSearchOptions1");
		    var supp = document.getElementById("spanSearchOptions2");
		    var press = document.getElementById("spanSearchOptions3");
		    prod.style.background = "#fff";
			supp.style.background = "#fff";
			press.style.background = "#fff";
			hideSearchOptionTimer = window.setTimeout('_hideSearchOptions()',1080);
		}
	}
	function initSearch()
	{
		var bprod = document.getElementById("btnSearchProducts");
		var bsupp = document.getElementById("btnSearchSupport");
		var bpres = document.getElementById("btnSearchPressroom");
		var bsearch = document.getElementById("btnSearchbtn");
		if (bprod) {bprod.href = "javascript:__doPostBack('btnSearchProducts','')";}
		if (bsupp) {bsupp.href = "javascript:__doPostBack('btnSearchSupport','')";}
		if (bpres) {bpres.href = "javascript:__doPostBack('btnSearchPressroom','')";}
		//if (bsearch) {bsearch.style.display = "";}
	}

