﻿<!--
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="' + wmode + '" 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 searchSubmit()
{
  if(document.getElementById("s_key").value.replace(/请输入产品关键字!/g,"").trim()=="")
    {
        document.getElementById("s_key").value="请输入产品关键字!";
    }
	else
    {
        location.href="products.aspx?key="+escape(document.getElementById("s_key").value);
    }
}

function verifyImg(byid)
{
	var timenow = new Date().getTime();
	url="VerifyImage.aspx?t="+ timenow;
	document.getElementById(byid).src=url;
}

//UPTOP
var uptopFor;
function IntoUPTop() 
{
  var uptopY;
  var cNo=50;
  if (document.documentElement && document.documentElement.scrollTop)
  {
    uptopY = document.documentElement.scrollTop;
  }
  else if (document.body)
  {
    uptopY = document.body.scrollTop
  }
  if (uptopY - cNo <= 0) 
  {
      if (document.documentElement && document.documentElement.scrollTop)
      {
        document.documentElement.scrollTop= 0;
      }
      else if (document.body)
      {
        document.body.scrollTop= 0;
      }
      window.clearTimeout(uptopFor);
  }
  else 
  {
      if (document.documentElement && document.documentElement.scrollTop)
      {
        document.documentElement.scrollTop= uptopY - cNo;
      }
      else if (document.body)
      {
        document.body.scrollTop= uptopY - cNo;
      }
      uptopFor = window.setTimeout(IntoUPTop, 1);
  }
}

function user_goto_login()
{
   uptopFor = window.setTimeout(IntoUPTop, 1);
}

//-->