﻿function $(id)			{return document.getElementById(id)?document.getElementById(id):null;}
function flash(url,w,h)		{document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+w+'" height="'+h+'"><param name="movie" value="'+url+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="menu" value="false"><embed src="'+url+'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed></object>');}
function marquee(d,w,h,s,str)	{document.write('<marquee behavior="scroll" direction="'+d+'" width="'+w+'" height="'+h+'" scrollamount="'+s+'" scrolldelay="50" onmouseover="this.stop()" onmouseout="this.start()">'+str+'</marquee>');}
function getPosition(e)		{var x = e.offsetLeft;var y = e.offsetTop;while(e = e.offsetParent){x += e.offsetLeft; y += e.offsetTop;};return {"x": x, "y": y};}
function resize(obj,w)		{if(obj.width>w)obj.width=w;}
//function s()			{if(!$("key").value){$("search_err").innerHTML='<span style="color:red">请输入产品关键词：</span>';$("key").focus();return;};self.location="products.asp?key=" + escape($("key").value);}
function showMenu(obj)		{var navH = 37;var div = obj.getElementsByTagName("div")[0];if(!div)return;if(div.style.position!='absolute')div.style.position='absolute';if(div.style.display == 'none'){div.style.display = '';var xy = getPosition(obj);div.style.left = xy.x + 'px';xy = getPosition(obj.parentNode);div.style.top = xy.y + navH + 'px';}else{div.style.display = 'none';}}
function download(id)		{self.location='down.asp?id='+id;}
