function showImg(a){$("#idSlider").stop(!0,!1).animate({top:-130*a},350),$("#idNum li").eq(a).addClass("on").siblings().removeClass("on")}function nTabs(a,b){if(a.className=="focus")return;var c=a.parentNode.id,d=document.getElementById(c).getElementsByTagName("li");for(i=0;i<d.length;i++)i==b?(a.className="focus",document.getElementById(c+"_Content_"+i).style.display="block"):(d[i].className="",document.getElementById(c+"_Content_"+i).style.display="none")}function cg_cate(a,b){var c=a.parentNode.getElementsByTagName("div");for(var d=0;d<c.length;d++)d==b?c[d].className="active":c[d].className="normal";document.form1.IndexArea.value=cate[b],document.form1.txtitle.value.indexOf("\u5173\u952e\u5b57")<0?document.form1.txtitle.value=document.form1.txtitle.value:document.form1.txtitle.value=sc_notes[b]}function setStyle(){document.form1.txtitle.value.indexOf("\u5173\u952e\u5b57")>0&&(document.form1.txtitle.value="")}function nTabs(a,b){if(a.className=="active")return;var c=a.parentNode.id,d=document.getElementById(c).getElementsByTagName("li");for(i=0;i<d.length;i++)i==b?(a.className="active",document.getElementById(c+"_Content"+i).style.display="block"):(d[i].className="normal",document.getElementById(c+"_Content"+i).style.display="none")}function newsletterChk(){var a=document.newsletterorder.email,b=a.value;return b==""?(alert("\u8bf7\u586b\u5199\u60a8\u7684\u90ae\u4ef6\u5730\u5740\uff01"),a.focus(),!1):checkMail(b)?!0:(alert("\u90ae\u4ef6\u5730\u5740\u4e0d\u6b63\u786e\uff0c\u8bf7\u8fd4\u56de\u67e5\u8bc1\u540e\u518d\u63d0\u4ea4\uff01"),a.focus(),!1)}function AutoScroll(a){$(a).find("ul.scroll").animate({marginTop:"-40px"},500,function(){$(this).css({marginTop:"0px"}).find("li:first").appendTo(this)})}function duilianclose1(){var a=document.getElementById("duilian1");a.style.display="none"}function duilianclose2(){var a=document.getElementById("duilian2");a.style.display="none"}function duilianclose3(){var a=document.getElementById("duilian3");a.style.display="none"}function duilianclose4(){var a=document.getElementById("duilian4");a.style.display="none"}$(document).ready(function(){$("#pysort li").mouseover(function(){$(this).children("span").addClass("fox"),$(this).children("div").show()}),$("#pysort li").mouseout(function(){$(this).children("span").removeClass("fox"),$(this).children("div").hide()})}),$(document).ready(function(){$(".more").toggle(function(){$(this).children("span").addClass("morecat"),$(this).children("div").show()},function(){$(this).children("span").removeClass("morecat"),$(this).children("div").hide()})}),$(function(){var a=$("#idNum > li").length,b=0;$("#idNum li").mouseover(function(){b=$("#idNum li").index(this),showImg(b)}),$("#topbanner").hover(function(){c&&clearInterval(c)},function(){c=setInterval(function(){showImg(b),b++,b==a&&(b=0)},5e3)});var c=setInterval(function(){showImg(b),b++,b==a&&(b=0)},6e3)}),$(document).ready(function(){$("#sideNav dd").mouseover(function(){$(this).addClass("over")}),$("#sideNav dd").mouseout(function(){$(this).removeClass("over")})});var sc_notes=new Array;sc_notes[0]="\u641c\u7d22\u4eea\u5668\u5173\u952e\u5b57",sc_notes[1]="\u641c\u7d22\u8bd5\u5242\u540d\u79f0\u5173\u952e\u5b57",sc_notes[2]="\u641c\u7d22\u6297\u4f53\u540d\u79f0\u5173\u952e\u5b57",sc_notes[3]="\u641c\u7d22\u8017\u6750\u5173\u952e\u5b57",sc_notes[4]="\u641c\u7d22\u6280\u672f\u670d\u52a1\u5173\u952e\u5b57",sc_notes[5]="\u641c\u7d22\u516c\u53f8\u5173\u952e\u5b57",sc_notes[6]="\u641c\u7d22\u6280\u672f\u8d44\u6599\u5173\u952e\u5b57",sc_notes[7]="\u641c\u7d22\u4f9b\u6c42\u4fe1\u606f\u5173\u952e\u5b57";var cate=new Array;cate[0]="cpzs",cate[1]="reagent",cate[2]="antibody",cate[3]="consumables",cate[4]="service",cate[5]="company",cate[6]="article",cate[7]="syjh",$(document).ready(function(){$("#nav #keywords").focus().autocomplete("/php/search_autocomplete.php")}),$(document).ready(function(){setInterval('AutoScroll("#query2")',5e3)})
