(function($,window,undefined){var $allDropdowns=$();$.fn.dropdownHover=function(options){$allDropdowns=$allDropdowns.add(this.parent());return this.each(function(){var $this=$(this).parent(),defaults={delay:500,instantlyCloseOthers:true},data={delay:$(this).data("delay"),instantlyCloseOthers:$(this).data("close-others")},options=$.extend(true,{},defaults,options,data),timeout;$this.hover(function(){if(options.instantlyCloseOthers===true){$allDropdowns.removeClass("open")}window.clearTimeout(timeout);$(this).addClass("open")},function(){timeout=window.setTimeout(function(){$this.removeClass("open")},options.delay)})})};$('[data-hover="dropdown"]').dropdownHover()})(jQuery,this);$(function(){$("[data-toggle='tooltip']").tooltip()});var oInfo=$("#scrollbar");var oTop=$("#scrollbar").offset().top-50;var sTop=0;$(window).scroll(function(){sTop=$(this).scrollTop();if(sTop>=oTop){$("#scrollbar").addClass("navbar-fixed-top");$("#scrollbar").addClass("addmargin")}else{$("#scrollbar").removeClass("navbar-fixed-top");$("#scrollbar").removeClass("addmargin")}});function showHideCode(){$(".disno").toggle();if($(".disno").css("display")=="none"){$("#clickbut").removeClass("notdis")}else{$("#clickbut").addClass("notdis")}}function showHideItem(id){var tid=id;var itid="i"+id;if($("#"+tid).css("overflow")=="visible"){$("#"+tid).removeClass("list-visible");$("#"+itid).removeClass("glyphicon-minus-sign").addClass("glyphicon-plus-sign");if(itid="myTab1"){$(".list-hidden-button").css("top",-42)}}else{$("#"+tid).addClass("list-visible");$("#"+itid).removeClass("glyphicon-plus-sign").addClass("glyphicon-minus-sign");if(itid="myTab1"){$(".list-hidden-button").css("top",14)}}}$(document).ready(function(){var box0=$(".zouma"),v0=1.5;Rin(box0,v0);function Rin($Box,v){var $Box_ul=$Box.find("ul"),$Box_li=$Box_ul.find("li"),$Box_li_span=$Box_li.find("span"),left=0,s=0,timer;$Box_li.each(function(index){$($Box_li_span[index]).width(362);s+=372});window.requestAnimationFrame=window.requestAnimationFrame||function(Tmove){return setTimeout(Tmove,1000/60)};window.cancelAnimationFrame=window.cancelAnimationFrame||clearTimeout;if(s>=$Box.width()){$Box_li.clone(true).appendTo($Box_ul);Tmove();function Tmove(){left-=v;if(left<=-s){left=0;$Box_ul.css("left",left)}else{$Box_ul.css("left",left)}timer=requestAnimationFrame(Tmove)}$Box_ul.hover(function(){cancelAnimationFrame(timer)},function(){Tmove()})}}if(screen.width<1201){$(".mobiletype").css("display","block");$(".pctype").css("display","none")}else{$(".mobiletype").css("display","none");$(".pctype").css("display","block")}if(screen.width<670){$(".list-hidden-button").css("display","block")}else{$(".list-hidden-button").css("display","none")}});$(document).ready(function(){$("#navmenu ul li:has(ul)").hover(function(){$(this).children("a").css({color:"#fff"});if($(this).find("li").length>0){$(this).children("ul").stop(true,true).slideDown(400)}},function(){$(this).children("a").css({color:"#b4ab93"});$(this).children("ul").stop(true,true).slideUp("fast")})});$(document).ready(function(){getsiteID=$("div.site_nav1, div.site_nav2").attr("id");$("div.site_nav dl a").each(function(){getNavClass=$(this).attr("class");if(getNavClass==getsiteID){$("div.site_nav dl a").removeClass("cur");$(this).addClass("cur")}});$("div.hot_box a.title, div.index_art li a, ul.index_resourse_list a").hover(function(){$(this).animate({paddingLeft:"20px"},300)},function(){$(this).animate({paddingLeft:"15px"},300)});$("div.tip_trigger a.img").hover(function(){$(this).parent("div.tip_trigger").css({"background":"#e23a0a","z-index":"1000"});$("#h_coolsite .block").show();tip=$(this).siblings(".tip");tip.show()},function(){$(this).parent("div.tip_trigger").css({"background":"none","z-index":"0"});$("#h_coolsite .block").hide();tip.hide()})});$(document).ready(function(){$("#respond").hover(function(){$(this).find(".set_avatar").stop(true,true).fadeIn()},function(){$(this).find(".set_avatar").stop(true,true).fadeOut()})});eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}('(5($){$.J.L=5(r){8 1={d:0,A:0,b:"h",v:"N",3:4};6(r){$.D(1,r)}8 m=9;6("h"==1.b){$(1.3).p("h",5(b){8 C=0;m.t(5(){6(!$.k(9,1)&&!$.l(9,1)){$(9).z("o")}j{6(C++>1.A){g B}}});8 w=$.M(m,5(f){g!f.e});m=$(w)})}g 9.t(5(){8 2=9;$(2).c("s",$(2).c("i"));6("h"!=1.b||$.k(2,1)||$.l(2,1)){6(1.u){$(2).c("i",1.u)}j{$(2).K("i")}2.e=B}j{2.e=x}$(2).T("o",5(){6(!9.e){$("").p("X",5(){$(2).Y().c("i",$(2).c("s"))[1.v](1.Z);2.e=x}).c("i",$(2).c("s"))}});6("h"!=1.b){$(2).p(1.b,5(b){6(!2.e){$(2).z("o")}})}})};$.k=5(f,1){6(1.3===E||1.3===4){8 7=$(4).F()+$(4).O()}j{8 7=$(1.3).n().G+$(1.3).F()}g 7<=$(f).n().G-1.d};$.l=5(f,1){6(1.3===E||1.3===4){8 7=$(4).I()+$(4).U()}j{8 7=$(1.3).n().q+$(1.3).I()}g 7<=$(f).n().q-1.d};$.D($.P[\':\'],{"Q-H-7":"$.k(a, {d : 0, 3: 4})","R-H-7":"!$.k(a, {d : 0, 3: 4})","S-y-7":"$.l(a, {d : 0, 3: 4})","q-y-7":"!$.l(a, {d : 0, 3: 4})"})})(W);',62,62,"|settings|self|container|window|function|if|fold|var|this||event|attr|threshold|loaded|element|return|scroll|src|else|belowthefold|rightoffold|elements|offset|appear|bind|left|options|original|each|placeholder|effect|temp|true|of|trigger|failurelimit|false|counter|extend|undefined|height|top|the|width|fn|removeAttr|lazyload|grep|show|scrollTop|expr|below|above|right|one|scrollLeft|img|jQuery|load|hide|effectspeed".split("|"),0,{})); function HcmsLazyload(templateUrl){if(window.XMLHttpRequest){$(function(){$("img").not("#respond_box img").lazyload({placeholder:templateUrl,effect:"fadeIn"})})}}$(document).ready(function(){$(".com_cont:not(:first)").hide();$("#new_art").show();$("ul.sj_nav li a").click(function(){var content_show=$(this).attr("title");$("ul.sj_nav li a").removeClass("active");$(this).addClass("active");$(".com_cont").hide();$("#"+content_show).show();return false})});jQuery(document).ready(function($){$body=(window.opera)?(document.compatMode=="CSS1Compat"?$("html"):$("body")):$("html,body");$("#shang").mouseover(function(){up()}).mouseout(function(){clearTimeout(fq)}).click(function(){$body.animate({scrollTop:0},400)});$("#xia").mouseover(function(){dn()}).mouseout(function(){clearTimeout(fq)}).click(function(){$body.animate({scrollTop:$(document).height()},400)});$("#comt").click(function(){$body.animate({scrollTop:$("#comments").offset().top},400)})});function up(){$wd=$(window);$wd.scrollTop($wd.scrollTop()-1);fq=setTimeout("up()",50)}function dn(){$wd=$(window);$wd.scrollTop($wd.scrollTop()+1);fq=setTimeout("dn()",50)}jQuery(document).ready(function($){var rollStart=$("#rollstart"),rollSet=$(".feed-mail,#tuijian");rollStart.before('
');var offset=rollStart.offset(),objWindow=$(window),rollBox=rollStart.prev();if(objWindow.width()>960){objWindow.scroll(function(){if(rollBox.html(null)){rollSet.clone().prependTo(".hcms_rollbox")}rollBox.show().stop().animate({top:0,paddingTop:15},400)})}});$._messengerDefaults={extraClasses:"messenger-fixed messenger-theme-future messenger-on-top messenger-on-center"};$(function(){$(".tip").tooltip();$(".tip-left").tooltip({placement:"left"});$(".tip-right").tooltip({placement:"right"});$(".tip-top").tooltip({placement:"top"});$(".tip-bottom").tooltip({placement:"bottom"});$.showBigImg();var bWidth=$(document.body).width();if(bWidth<769){$("[target=_blank]").attr("target","")}});function change_captcha(jqobj){jqobj.attr("src",gPath+"/AuthImage?&t="+Math.round(Math.random()*10000))}function openDialog(param){if(gEnFlg){var tmp=param.title||"Reminder"}else{var tmp=param.title||"提示"}tmp=""+tmp+"";$("#myModalLabel").html(tmp);tmp=param.icon||'

';$("#dlgIcon").html(tmp);if(gEnFlg){tmp=param.data||"Dialog Content"}else{tmp=param.data||"对话框内容"}$("#dlgData").html(tmp);if(gEnFlg){tmp=param.btn1||"Close"}else{tmp=param.btn1||"关闭"}$("#btn1").html(tmp);tmp=param.btn2;if(tmp!=undefined){$("#btn2").html(tmp);$("#btn2").show()}if(typeof(param.btn1Func)!="undefined"){$("#btn1").unbind();$("#btn1").click(function(){param.btn1Func()})}if(param.closeFunc!=undefined){$("#btnClose").click(function(){param.closeFunc()})}if(param.btn2Func!=undefined){$("#btn2").unbind();$("#btn2").click(function(){param.btn2Func()})}if(param.hasInput!=undefined&¶m.hasInput==true){$("#commentTxt").val("");$("#commentDiv").show()}else{$("#commentDiv").hide()}$("#myDialog").modal({backdrop:false});$("#myDialog").modal("show")}function closeDialog(id){$(id).modal("hide")}function pageJump(page){if(page==undefined){if(typeof(gPage)=="undefined"){if(gEnFlg){page="en/index.jsp"}else{page="index.jsp"}}else{page=gPage}}location.href=gPath+"/"+page}function AjaxFailed(){if(!gEnFlg){alert("Ajax调用超时,请检查网络后再尝试一次")}else{alert("Ajax call timeout. Please check your network connection and try again")}}function genPageHtml(beginP,endP,curP,total,path,endStr,type){var strHtml="";if(1==curP){if(type==0){strHtml='
  • 上一页
  • '}else{strHtml='
  • Previous
  • '}}else{if(type==0){strHtml='
  • 上一页
  • '}else{strHtml='
  • Previous
  • '}}for(var i=beginP;i<=endP;i++){if(i==curP){strHtml=strHtml+'
  • '+(curP)+"
  • "}else{strHtml=strHtml+'
  • '+i+"
  • "}}if(curP==total){if(type==0){strHtml=strHtml+'
  • 下一页
  • '}else{strHtml=strHtml+'
  • Next
  • '}}else{if(type==0){strHtml=strHtml+'
  • 下一页
  • '}else{strHtml=strHtml+'
  • Next
  • '}}if(total!=0){if(type==0){strHtml=strHtml+'
  • 共'+total+"页
  • "}else{strHtml=strHtml+'
  • Total: '+total+" pages
  • "}}var strHtmlnew=strHtml.replace(new RegExp('\\?page=1">',"g"),'">');return strHtmlnew}function initBread(dat){var eo=$("#bread");if(!dat&&typeof(dat)!="undefined"){eo.hide()}else{for(x in breadDat){eo.append('
  • '+dat[x].lab+"
  • ")}eo.show()}}function showOK(to){var eo=$(to);eo=eo.parent().parent();if(eo.is(".form-group")){eo.find(".myok").show()}}function hideOK(to){var eo=$(to);eo=eo.parent().parent();if(eo.is(".form-group")){eo.find(".myok").hide()}}function helpText(to,flag,txt){var eo=$(to); var id="#"+eo.attr("id")+1;if(flag=="hide"){$(id).hide();return}$(id).html(txt);$(id).show()}function needLogin(path){var loginUrl="login.jsp";if(gEnFlg){loginUrl="en/"+loginUrl}if(path&&typeof(path)!=undefined){loginUrl+="?retPath='"+path+"'"}pageJump(loginUrl)}function mustLogin(){gPage="index.jsp";$("#dlgLogin").modal("show")}function needAdmin(){pageJump("404.jsp")}function needAuth(){if(!gEnFlg){gPage="usermodify.jsp"}else{gPage="en/usermodify.jsp"}if(!gEnFlg){openDialog({icon:'

    ',title:"警告",data:'

    该帐号尚未认证

    点击进入邮箱认证页面

    ',btn1Func:pageJump,closeFunc:pageJump})}else{openDialog({icon:'

    ',title:"Reminder",data:'

    Please verify your email address

    Click email verification page

    ',btn1Func:pageJump,closeFunc:pageJump})}}function genAjaxPageHtml(beginP,endP,curP,total){var strHtml="";if(1==curP){if(!gEnFlg){strHtml='
  • 上一页
  • '}else{strHtml='
  • Previous
  • '}}else{if(!gEnFlg){strHtml='
  • 上一页
  • '}else{strHtml='
  • Previous
  • '}}for(var i=beginP;i<=endP;i++){if(i==curP){strHtml=strHtml+'
  • '+(curP)+"
  • "}else{strHtml=strHtml+'
  • '+i+"
  • "}}if(curP==total){if(!gEnFlg){strHtml=strHtml+'
  • 下一页
  • '}else{strHtml=strHtml+'
  • Next
  • '}}else{if(!gEnFlg){strHtml=strHtml+'
  • 下一页
  • '}else{strHtml=strHtml+'
  • Next
  • '}}if(total!=0){if(!gEnFlg){strHtml=strHtml+'
  • 共'+total+"页
  • "}else{strHtml=strHtml+'
  • Total: '+total+" pages
  • "}}return strHtml}function showError(msg){$.globalMessenger().post({message:msg,type:"error",showCloseButton:true})}function showSuccess(msg){$.globalMessenger().post({message:msg,type:"success",showCloseButton:true})}function jsSendAuthMail(url,username){$.ajax({url:url,type:"POST",data:{act:"sendAuthMail",userName:username},dataType:"html",timeout:5000,error:AjaxFailed,success:function(result){if(result=="sendAuthMailOK"){if(!gEnFlg){openDialog({title:"提示",icon:'

    ',data:"

    验证邮件已经发送到您的邮箱,请接收邮件,并立即验证您的注册邮箱。

    ",btn1:"确定",btn1Func:none})}else{openDialog({title:"Reminder",icon:'

    ',data:"

    An email has been sent to your email address, please check your email to verify the email address.

    ",btn1:"Ok",btn1Func:none})}}else{if(result=="sendAuthMailError"){if(!gEnFlg){showError("验证邮件不存在,或已经失效!")}else{showError("The verification email does not exist, or is invalid!")}}}}})}function login(){var loginName=$.trim($("#guser_name").val());var passWord=$.trim($("#gpassword").val());if(loginName==""){pageJump();return}$.ajax({url:gPath+"/RegCheck",type:"POST",data:{act:"login",login_name:loginName,password:passWord,captcha:"",flag:1,savelogin:true},dataType:"html",timeout:20000,error:AjaxFailed,success:function(result){if(result=="LoginError"){pageJump()}else{if(result=="OK"){location.reload()}}}})}function none(){return}$.showBigImg=function(){xOffset=10;yOffset=10;var s_left=0,s_top=0;$("body").off(".showbigimg").on("mouseenter.showbigimg","img.p_img",function(e){s_left=parseInt($(this).attr("s_left")||0);s_top=parseInt($(this).attr("s_top")||0);$("body").append("
    ");$("#preview").css({"position":"absolute","border":"1px solid #ccc","background":"#FFFFFF","padding":"5px","display":"none","color":"#fff","z-index":"9999"}).css("top",(e.pageY-xOffset-s_top)+"px").css("left",(e.pageX+yOffset-s_left)+"px").fadeIn("fast")});$("body").off(".hidebigimg").on("mouseout.hidebigimg","img.p_img",function(){$("#preview").remove()});$("body").off(".movebigimg").on("mousemove.movebigimg","img.p_img",function(e){$("#preview").css("top",(e.pageY+xOffset-s_top)+"px").css("left",(e.pageX+yOffset-s_left)+"px")})};function keyupNature(obj){obj.value=obj.value.replace(/[^\d]/g,"")}function keyupDigit(obj){obj.value=obj.value.replace(/[^0-9.]/g,"")}function checkCunDu(obj){obj.value=obj.value.match(/^[1-9][\d]{0,1}[.]{0,1}\d{0,8}/g);if(obj.value>=100){if(!gEnFlg){showError("纯度必须小于100.0%")}else{showError("Purity must be less than 100.0%")}obj.value=""}}function checkDate(obj){if(obj.value>365){if(!gEnFlg){showError("日期必须小于365天")}else{showError("Please enter a number less than 365")}obj.value=""}}function pressReturn(event){if(event.keyCode=="13"){doSearch()}}function checkCas(obj){if(obj.value==""){return}var flag=(/^\d+-\d+-\d+$/.test(obj.value)); if(!flag){obj.value=""}}function checkChEnDigit(obj){if(obj.value==""){return}var flag=/^[\w|\s*.,-|\u4e00-\u9fa5]+$/.test($.trim(obj.value));if(!flag){if(!gEnFlg){showError("格式不正确,产品名称由中文,英文,数字组成。")}else{showError("Support Chinese, English and number")}obj.value=""}}function checkCh(obj){if(obj.value==""){return}var flag=/^[\u4e00-\u9fa5]+$/.test($.trim(obj.value));if(!flag){if(!gEnFlg){showError("格式不正确,请用中文填写。")}else{showError("Please enter Chinese")}obj.value=""}}var typeAheadCasID={source:function(query,process){query=$.trim(query);if(query.length<3){return}var parameter={Query:query,ver:gEnFlg};$.post(gPath+"/TypeAhead",parameter,function(data){if(data!=""){bak=data}else{data=bak}process(eval(data))})},highlighter:function(item){return"-->"+item},updater:function(item){var idx=item.indexOf(" ");var data=item.substring(0,idx);return data}};function OnErrImg(obj){obj.src=gErrPic}function isIE(){if(!!window.ActiveXObject||"ActiveXObject" in window){return true}else{return false}}function confirmLogout(){if(!gEnFlg){openDialog({icon:'

    ',data:"

    是否要退出登录状态。

    ",btn1:"确认",btn2:"取消",btn1Func:logoutJump})}else{openDialog({icon:'

    ',data:"

    Do you want to sign out?

    ",btn1:"Yes",btn2:"No",btn1Func:logoutJump})}}function logoutJump(){var ver="ch";var path=gPath;if(gEnFlg){ver="en"}location.href=gPath+"/Logout"+"?ver="+ver}function startSearch(){if($("#chemSearch").val().length<1){return}var url;if(gEnFlg){url=gPath+"/en/searchResult/"}else{url=gPath+"/searchResult/"}url=url+encodeURIComponent(encodeURIComponent($.trim($("#chemSearch").val())))+"/";location.href=url}function pressSearch(event){if(event.keyCode=="13"){startSearch()}}function doJSearch(type){if(type=="0"){if($("#jName").val().length<1){return}if($("#volId").val().length<1){return}if($("#pageId").val().length<1){return}}else{if(type=="1"){if($("#jName1").val().length<1){return}if($("#volId1").val().length<1){return}if($("#pageId1").val().length<1){return}}}var url;var jName;var volId;var pageId;if(type=="0"){jName=$.trim($("#jName").val());volId=$.trim($("#volId").val());pageId=$.trim($("#pageId").val())}else{if(type=="1"){jName=$.trim($("#jName1").val());volId=$.trim($("#volId1").val());pageId=$.trim($("#pageId1").val())}}if(gEnFlg){url=gPath+"/en/doJSearch.jsp?jName="+encodeURIComponent(jName)+"&volId="+encodeURIComponent(volId)+"&pageId="+encodeURIComponent(pageId)+"&type="+type}else{url=gPath+"/doJSearch.jsp?jName="+encodeURIComponent(jName)+"&volId="+encodeURIComponent(volId)+"&pageId="+encodeURIComponent(pageId)+"&type="+type}window.open(url)}function startPaperSearch(){if($("#paperSearch").val().length<1){return}var url;if(gEnFlg){url=gPath+"/en/PaperResult/"}else{url=gPath+"/PaperResult/"}url=url+encodeURIComponent(encodeURIComponent($.trim($("#paperSearch").val())))+"/";location.href=url}function pressPaperSearch(event){if(event.keyCode=="13"){startPaperSearch()}}var typeAheadSearch={source:function(query,process){query=$.trim(query);if(query.length<3){return}var parameter={Query:query,ver:gEnFlg};$.post(gPath+"/TypeAhead",parameter,function(data){if(data!=""){bak=data}else{data=bak}process(eval(data))})},highlighter:function(item){return"-->"+item},updater:function(item){var url;if(gEnFlg){url=gPath+"/en/searchResult/"}else{url=gPath+"/searchResult/"}url=url+item+"/?type=selected";location.href=url;return item}};function LoginSubmitAct(returl){var loginName=$.trim($("#user_name").val());var passWord=$.trim($("#password").val());var captchaStr=$.trim($("#captcha1").val());var saveLogin=$("#saveLogin")[0].checked;var ErrMsg;if(loginName==""){return}$.ajax({url:gPath+"/RegCheck",type:"POST",data:{act:"login",login_name:loginName,password:passWord,captcha:captchaStr,savelogin:saveLogin},dataType:"html",timeout:5000,error:AjaxFailed,success:function(result){if(result=="LoginError"){if(gEnFlg){ErrMsg="UserName or Password is not correct"}else{ErrMsg="用户名密码错误!"}LoginErrMsg(ErrMsg)}else{if(result=="CaptchaError"){if(gEnFlg){ErrMsg="Captcha is not crrect"}else{ErrMsg="验证码输入错误!"}LoginErrMsg(ErrMsg)}else{if(result=="OK"){if(typeof(returl)!=undefined&&returl!=null){pageJump(returl)}else{if(gEnFlg){pageJump("en/index.jsp")}else{pageJump("index.jsp")}}}}}}})}function LoginErrMsg(msg){$("#conCaptcha").show();var eo=$("#forgetPsw");if(eo.next().is(".label-warning")){eo.next().remove()}var str='";eo.after(str);change_captcha($("#captcha"))}function Clear(){var ketcher=getKetcher();ketcher.setMolecule([""])}function loadMol(){var initialMolecule=GetCookie("SMILES");if(typeof(initialMolecule)=="undefined"||initialMolecule.length<10){initialMolecule=[""," Ketcher 02151213522D 1 1.00000 0.00000 0",""," 6 6 0 0 0 999 V2000"," -1.1750 1.7500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0"," -0.3090 1.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0"," -0.3090 0.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0"," -1.1750 -0.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0"," -2.0410 0.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0"," -2.0410 1.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0"," 1 2 1 0 0 0"," 2 3 2 0 0 0"," 3 4 1 0 0 0"," 4 5 2 0 0 0"," 5 6 1 0 0 0"," 6 1 2 0 0 0","M END"].join("\n") }var ketcher=getKetcher();ketcher.setMolecule(initialMolecule)}function getKetcher(){var frame=null;if("frames" in window&&"ketcherFrame" in window.frames){frame=window.frames["ketcherFrame"]}else{return null}if("window" in frame){return frame.window.ketcher}}function SubmitSmiles(types){var ketcher=getKetcher();var smiles;var molfile;if(ketcher){smiles=ketcher.getSmiles();molfile=ketcher.getMolfile()}if(smiles==""){if(!gEnFlg){showError("请先画出您要查询的结构。")}else{showError("Please enter structure first")}}else{SetCookie("SMILES",molfile);$("#molfile").val(molfile);$("#smiles").val(smiles);$("#load").show();$("#SSForm").submit()}}function SetCookie(name,value){var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(20){offset=document.cookie.indexOf(search);if(offset!=-1){offset+=search.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}returnvalue=unescape(document.cookie.substring(offset,end))}}return returnvalue}function GetSubCookie(Name,CookieValue){var search=Name+"=";var returnvalue="";if(CookieValue.length>0){offset=CookieValue.indexOf(search);if(offset!=-1){offset+=search.length;end=CookieValue.indexOf("&",offset);if(end==-1){end=CookieValue.length}returnvalue=unescape(CookieValue.substring(offset,end))}}return returnvalue}$(document).ready(function(){$("#navmenu ul li:has(ul)").hover(function(){$(this).children("a").css({color:"#fff"});if($(this).find("li").length>0){$(this).children("ul").stop(true,true).slideDown(400)}},function(){$(this).children("a").css({color:"#b4ab93"});$(this).children("ul").stop(true,true).slideUp("fast")})});$(document).ready(function(){getsiteID=$("div.site_nav1, div.site_nav2").attr("id");$("div.site_nav dl a").each(function(){getNavClass=$(this).attr("class");if(getNavClass==getsiteID){$("div.site_nav dl a").removeClass("cur");$(this).addClass("cur")}});$("div.hot_box a.title, div.index_art li a, ul.index_resourse_list a").hover(function(){$(this).animate({paddingLeft:"20px"},300)},function(){$(this).animate({paddingLeft:"15px"},300)});$("div.tip_trigger a.img").hover(function(){$(this).parent("div.tip_trigger").css({"background":"#e23a0a","z-index":"1000"});$("#h_coolsite .block").show();tip=$(this).siblings(".tip");tip.show()},function(){$(this).parent("div.tip_trigger").css({"background":"none","z-index":"0"});$("#h_coolsite .block").hide();tip.hide()})});$(document).ready(function(){$("#respond").hover(function(){$(this).find(".set_avatar").stop(true,true).fadeIn()},function(){$(this).find(".set_avatar").stop(true,true).fadeOut()})});eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}('(5($){$.J.L=5(r){8 1={d:0,A:0,b:"h",v:"N",3:4};6(r){$.D(1,r)}8 m=9;6("h"==1.b){$(1.3).p("h",5(b){8 C=0;m.t(5(){6(!$.k(9,1)&&!$.l(9,1)){$(9).z("o")}j{6(C++>1.A){g B}}});8 w=$.M(m,5(f){g!f.e});m=$(w)})}g 9.t(5(){8 2=9;$(2).c("s",$(2).c("i"));6("h"!=1.b||$.k(2,1)||$.l(2,1)){6(1.u){$(2).c("i",1.u)}j{$(2).K("i")}2.e=B}j{2.e=x}$(2).T("o",5(){6(!9.e){$("").p("X",5(){$(2).Y().c("i",$(2).c("s"))[1.v](1.Z);2.e=x}).c("i",$(2).c("s"))}});6("h"!=1.b){$(2).p(1.b,5(b){6(!2.e){$(2).z("o")}})}})};$.k=5(f,1){6(1.3===E||1.3===4){8 7=$(4).F()+$(4).O()}j{8 7=$(1.3).n().G+$(1.3).F()}g 7<=$(f).n().G-1.d};$.l=5(f,1){6(1.3===E||1.3===4){8 7=$(4).I()+$(4).U()}j{8 7=$(1.3).n().q+$(1.3).I()}g 7<=$(f).n().q-1.d};$.D($.P[\':\'],{"Q-H-7":"$.k(a, {d : 0, 3: 4})","R-H-7":"!$.k(a, {d : 0, 3: 4})","S-y-7":"$.l(a, {d : 0, 3: 4})","q-y-7":"!$.l(a, {d : 0, 3: 4})"})})(W);',62,62,"|settings|self|container|window|function|if|fold|var|this||event|attr|threshold|loaded|element|return|scroll|src|else|belowthefold|rightoffold|elements|offset|appear|bind|left|options|original|each|placeholder|effect|temp|true|of|trigger|failurelimit|false|counter|extend|undefined|height|top|the|width|fn|removeAttr|lazyload|grep|show|scrollTop|expr|below|above|right|one|scrollLeft|img|jQuery|load|hide|effectspeed".split("|"),0,{}));function HcmsLazyload(templateUrl){if(window.XMLHttpRequest){$(function(){$("img").not("#respond_box img").lazyload({placeholder:templateUrl,effect:"fadeIn"})})}}$(document).ready(function(){$(".com_cont:not(:first)").hide();$("#new_art").show();$("ul.sj_nav li a").click(function(){var content_show=$(this).attr("title");$("ul.sj_nav li a").removeClass("active");$(this).addClass("active"); $(".com_cont").hide();$("#"+content_show).show();return false})});jQuery(document).ready(function($){$body=(window.opera)?(document.compatMode=="CSS1Compat"?$("html"):$("body")):$("html,body");$("#shang").mouseover(function(){}).mouseout(function(){}).click(function(){$body.animate({scrollTop:0},400)});$("#xia").mouseover(function(){}).mouseout(function(){}).click(function(){$body.animate({scrollTop:$(document).height()},400)});$("#comt").click(function(){$body.animate({scrollTop:$("#comments").offset().top},400)})});function up(){$wd=$(window);$wd.scrollTop($wd.scrollTop()-1);fq=setTimeout("up()",50)}function dn(){$wd=$(window);$wd.scrollTop($wd.scrollTop()+1);fq=setTimeout("dn()",50)}jQuery(document).ready(function($){var rollStart=$("#rollstart"),rollSet=$(".feed-mail,#tuijian");rollStart.before('
    ');var offset=rollStart.offset(),objWindow=$(window),rollBox=rollStart.prev();if(objWindow.width()>960){objWindow.scroll(function(){if(rollBox.html(null)){rollSet.clone().prependTo(".hcms_rollbox")}rollBox.show().stop().animate({top:0,paddingTop:15},400)})}});