function AC_AddExtension(src,ext){if(src.indexOf('?')!=-1) return src.replace(/\?/,ext+'?');else return src+ext;}
function AC_Generateobj(objAttrs,params, embedAttrs){var str='<object';for(var i in objAttrs) str+=i+'="'+objAttrs[i]+'" ';str+='>';for(var i in params) str+='<param name="'+i+'" value="'+params[i]+'" /> ';str+='<embed ';for(var i in embedAttrs) str+=i+'="'+embedAttrs[i]+'" ';str+=' ></embed></object>';document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_SW_RunContent(){var ret=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for (var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch (currArg){case "classid":break;case "pluginspage":ret.embedAttrs[args[i]] = args[i+1];break;case "src":case "movie":args[i+1]=AC_AddExtension(args[i+1], ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":
case "onbeforedeactivate":case "ondeactivate":case "type":case "codebase":ret.objAttrs[args[i]] = args[i+1];break;case "width":case "height":case "align":case "vspace": case "hspace":case "class":case "title":case "accesskey":case "name":case "id":
case "tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}ret.objAttrs["classid"]=classid;if(mimeType) ret.embedAttrs["type"]=mimeType;return ret;}

function D(ImgD,x){var flag=false;var image=new Image();var iwidth=x;var iheight=x;image.src=ImgD.src;if(image.width>0&&image.height>0){flag=true;if(image.width/image.height>=iwidth/iheight){if(image.width>iwidth){ImgD.width=iwidth;ImgD.height=(image.height*iwidth)/image.width;
}else{ImgD.width=image.width;ImgD.height=image.height;}}else{if(image.height>iheight){ImgD.height=iheight;ImgD.width=(image.width*iheight)/image.height;}else{ImgD.width=image.width;ImgD.height=image.height;}}}}

function setH1(){if(document.getElementsByTagName("marquee")[0]){var o=document.getElementsByTagName("marquee")[0];o.scrollAmount=3;o.scrolldelay=0;o.onmouseover=function(){this.stop()};o.onmouseout=function(){this.start()};}}

function createToTop(){var scrollDiv=document.createElement("div");var q1,q2,q3;scrollDiv.setAttribute("id","fl");if(online[0]==0) q1="<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=19542978&Site=在线咨询&Menu=no' title='该客服不在线，请留言' onfocus='this.blur();'><img src=images/QQON2.gif></a>";else q1="<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=19542978&Site=在线咨询&Menu=no' title='咨询在线客服' onfocus='this.blur();'><img src=images/QQON1.gif></a>";if(online[1]==0) q2="<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=401478914&Site=在线咨询&Menu=no' title='客服不在线，请留言' onfocus='this.blur();'><img src=images/QQON2.gif></a>";else q2="<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=401478914&Site=在线咨询&Menu=no' title='在线超市在线咨询' onfocus='this.blur();'><img src=images/QQON1.gif></a>";if(online[2]==0) q3="<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=149561420&Site=在线咨询&Menu=no' title='该客服不在线，请留言' onfocus='this.blur();'><img src=images/QQON2.gif></a>";else q3="<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=149561420&Site=在线咨询&Menu=no' title='咨询在线客服' onfocus='this.blur();'><img src=images/QQON1.gif></a>";scrollDiv.innerHTML="<img src='images/quick01.gif'><a href='buyproduct.asp?action=show' onfocus='this.blur();'><img src='images/quick03_h.gif'></a>"+q1+q2+q3+"<a href='help.asp?action=fukuan' target='_blank' onfocus='this.blur();'><img src='images/quick03_zfb.gif'></a><a href='user.asp?action=myinfo' onfocus='this.blur();'><img src='images/quick04_h.gif'></a><a href='#' onfocus='this.blur()'><img src='images/new_top.gif'></a>";scrollDiv.style.left=(document.body.clientWidth-834)/2+834+"px";document.body.appendChild(scrollDiv);}

function scrollToTop(o){var y=document.body.scrollTop;var oo=document.getElementById(o);oo.style.top=y+121+"px";}

function navHover(){if(document.getElementById("navmenu")){var lis=document.getElementById("navmenu").getElementsByTagName("li");var lisLen=lis.length;for(var i=0;i<lisLen;i++){lis[i].onmouseover=function(){this.className+=" iehover";};lis[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" iehover\\b"),"");}}}}

window.onload=function(){setH1();navHover();createToTop();this.onscroll=function(){scrollToTop("fl");}}
window.onresize=function(){document.getElementById("fl").style.left=(document.body.clientWidth-834)/2+834+"px";}