﻿<!--
var dropdowntimer=new Array(10);

function trim() {
return this.replace(/\s+$|^\s+/g,"");
}
String.prototype.trim=trim;

function LoadFlash(url,wmode,width,Height)
{ 
document.write(
  '<object width="' + width +'" height="' + Height + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"><param name="movie" value="' + url + '"><param name="wmode" value="'+wmode+'"><param name="quality" value="autohigh"><param name="menu" value="false"><embed width="' + width +'" height="' + Height + '" src="' + url + '"  quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>');   
}

function dropdown_onclick(byid)
{
  if(document.getElementById(byid).style.display=="none")
  {
    document.getElementById(byid).style.display="block";
  }
  else 
  {
    document.getElementById(byid).style.display="none";
  }
}
function dropdown_mouseover(byid)
{
  if(document.getElementById(byid).style.display=="block")
	{
	  window.clearTimeout(dropdowntimer[byid]);
	}
}
function dropdown_mouseout(byid)
{
  if(document.getElementById(byid).style.display=="block")
	{
	  dropdowntimer[byid] = setTimeout("document.getElementById('"+byid+"').style.display='none';", 1000);
	}
}
function dropdown_select(byhd,byrd,byt,byn,byi)
{
  document.getElementById(byhd).style.display="none";
  document.getElementById(byrd).innerHTML=byn;
  document.getElementById(byt).value=byi;
}
function searchSubmit()
{
  if(document.getElementById("s_key").value.replace(/Please Input Keyword!/g,"").trim()=="")
    {
        document.getElementById("s_key").value="Please Input Keyword!";

	}
	else
	{
        location.href="/en/products.aspx?id="+document.getElementById("s_class").value+"&key="+escape(document.getElementById("s_key").value);
	}
}
//-->
