﻿<!--
var dropdowntimer=new Array(10);

var browser=navigator.appName  
var b_version=navigator.appVersion  
var version=b_version.split(";");  
var trim_Version=version[1].replace(/[ ]/g,"");  
if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0")  
{
  document.execCommand("BackgroundImageCache", false, true);
}

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 LoadVideo(url,xml,width,Height)
{ 
document.write(
  '<object width="' + width +'" height="' + Height + '" type="application/x-shockwave-flash" data=" '+ url +' "><param name="movie" value=" '+ url +' "/><param name="allowFullScreen" value="false" /><param name="bgColor" value="#000000" /><param name="menu" value="false"><param name="FlashVars" value="xml='+ xml +'" /></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(/请输入产品关键字!/g,"").trim()=="")
    {
        document.getElementById("s_key").value="请输入产品关键字!";

	}
	else
	{
        location.href="products.aspx?id="+document.getElementById("s_class").value+"&type="+document.getElementById("s_type").value+"&key="+escape(document.getElementById("s_key").value);
	}
}
//-->