(function(c,j){function g(a,b,f){if(f===j&&1===a.nodeType)if(f="data-"+b.replace(Ub,"-$1").toLowerCase(),f=a.getAttribute(f),"string"===typeof f){try{f="true"===f?!0:"false"===f?!1:"null"===f?null:e.isNumeric(f)?+f:Vb.test(f)?e.parseJSON(f):f}catch(l){}e.data(a,b,f)}else f=j;return f}function h(a){for(var b in a)if(!("data"===b&&e.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function r(a,b,f){var l=b+"defer",n=b+"queue",q=b+"mark",d=e._data(a,l);d&&(("queue"===f||!e._data(a,n))&&("mark"=== f||!e._data(a,q)))&&setTimeout(function(){!e._data(a,n)&&!e._data(a,q)&&(e.removeData(a,l,!0),d.fire())},0)}function p(){return!1}function s(){return!0}function x(a,b,f){b=b||0;if(e.isFunction(b))return e.grep(a,function(a,l){return!!b.call(a,l,a)===f});if(b.nodeType)return e.grep(a,function(a){return a===b===f});if("string"===typeof b){var l=e.grep(a,function(a){return 1===a.nodeType});if(Wb.test(b))return e.filter(b,l,!f);b=e.filter(b,l)}return e.grep(a,function(a){return 0<=e.inArray(a,b)===f})} function t(a){var b=Za.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function d(a,b){if(1===b.nodeType&&e.hasData(a)){var f,l,n;l=e._data(a);var q=e._data(b,l),d=l.events;if(d)for(f in delete q.handle,q.events={},d){l=0;for(n=d[f].length;ln;n+=2)f||(l-=parseFloat(e.css(a,"padding"+N[n]))||0),l="margin"===f? l+(parseFloat(e.css(a,f+N[n]))||0):l-(parseFloat(e.css(a,"border"+N[n]+"Width"))||0);return l+"px"}l=X(a,b);if(0>l||null==l)l=a.style[b];if(Ca.test(l))return l;l=parseFloat(l)||0;if(f)for(;4>n;n+=2)l+=parseFloat(e.css(a,"padding"+N[n]))||0,"padding"!==f&&(l+=parseFloat(e.css(a,"border"+N[n]+"Width"))||0),"margin"===f&&(l+=parseFloat(e.css(a,f+N[n]))||0);return l+"px"}function V(a){return function(b,f){"string"!==typeof b&&(f=b,b="*");if(e.isFunction(f))for(var l=b.toLowerCase().split($a),n=0,q=l.length, d,B;n").appendTo(b),l=f.css("display"); f.remove();if("none"===l||""===l){P||(P=u.createElement("iframe"),P.frameBorder=P.width=P.height=0);b.appendChild(P);if(!Z||!P.createElement)Z=(P.contentWindow||P.contentDocument).document,Z.write((e.support.boxModel?"":"")+""),Z.close();f=Z.createElement(a);Z.body.appendChild(f);l=e.css(f,"display");b.removeChild(P)}Fa[a]=l}return Fa[a]}function eb(a){return e.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var u=c.document,Zb=c.location,e,fb=function(){if(!v.isReady){try{u.documentElement.doScroll("left")}catch(a){setTimeout(fb, 1);return}v.ready()}},v=function(a,b){return new v.fn.init(a,b,gb)},$b=c.jQuery,ac=c.$,gb,bc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,hb=/\S/,ib=/^\s+/,jb=/\s+$/,cc=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,dc=/^[\],:{}\s]*$/,ec=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,fc=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gc=/(?:^|:|,)(?:\s*\[)+/g,hc=/(webkit)[ \/]([\w.]+)/,ic=/(opera)(?:.*version)?[ \/]([\w.]+)/,jc=/(msie) ([\w.]+)/,kc=/(mozilla)(?:.*? rv:([\w.]+))?/,lc=/-([a-z]|[0-9])/ig,mc=/^-ms-/, nc=function(a,b){return(b+"").toUpperCase()},oc=c.navigator.userAgent,ma,na,$,pc=Object.prototype.toString,Ga=Object.prototype.hasOwnProperty,Ha=Array.prototype.push,ga=Array.prototype.slice,kb=String.prototype.trim,lb=Array.prototype.indexOf,mb={};v.fn=v.prototype={constructor:v,init:function(a,b,f){var l;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!b&&u.body)return this.context=u,this[0]=u.body,this.selector=a,this.length=1,this;if("string"=== typeof a){if((l="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:bc.exec(a))&&(l[1]||!b)){if(l[1])return f=(b=b instanceof v?b[0]:b)?b.ownerDocument||b:u,(a=cc.exec(a))?v.isPlainObject(b)?(a=[u.createElement(a[1])],v.fn.attr.call(a,b,!0)):a=[f.createElement(a[1])]:(a=v.buildFragment([l[1]],[f]),a=(a.cacheable?v.clone(a.fragment):a.fragment).childNodes),v.merge(this,a);if((b=u.getElementById(l[2]))&&b.parentNode){if(b.id!==l[2])return f.find(a);this.length=1;this[0]=b}this.context= u;this.selector=a;return this}return!b||b.jquery?(b||f).find(a):this.constructor(b).find(a)}if(v.isFunction(a))return f.ready(a);a.selector!==j&&(this.selector=a.selector,this.context=a.context);return v.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return ga.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,f){var l=this.constructor();v.isArray(a)?Ha.apply(l,a):v.merge(l, a);l.prevObject=this;l.context=this.context;"find"===b?l.selector=this.selector+(this.selector?" ":"")+f:b&&(l.selector=this.selector+"."+b+"("+f+")");return l},each:function(a,b){return v.each(this,a,b)},ready:function(a){v.bindReady();na.add(a);return this},eq:function(a){a=+a;return-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ga.apply(this,arguments),"slice",ga.call(arguments).join(","))}, map:function(a){return this.pushStack(v.map(this,function(b,f){return a.call(b,f,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:Ha,sort:[].sort,splice:[].splice};v.fn.init.prototype=v.fn;v.extend=v.fn.extend=function(){var a,b,f,l,e,q=arguments[0]||{},d=1,B=arguments.length,c=!1;"boolean"===typeof q&&(c=q,q=arguments[1]||{},d=2);"object"!==typeof q&&!v.isFunction(q)&&(q={});B===d&&(q=this,--d);for(;df?Math.max(0,l+f):f:0;fa.indexOf("compatible")&&kc.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,l){return new a.fn.init(b,l)}v.extend(!0,a,this);a.superclass=this;a.fn= a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(f,l){l&&(l instanceof v&&!(l instanceof a))&&(l=a(l));return v.fn.init.call(this,f,l,b)};a.fn.init.prototype=a.fn;var b=a(u);return a},browser:{}});v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){mb["[object "+b+"]"]=b.toLowerCase()});ma=v.uaMatch(oc);ma.browser&&(v.browser[ma.browser]=!0,v.browser.version=ma.version);v.browser.webkit&&(v.browser.safari=!0);hb.test("\u00a0")&&(ib=/^[\s\xA0]+/, jb=/[\s\xA0]+$/);gb=v(u);u.addEventListener?$=function(){u.removeEventListener("DOMContentLoaded",$,!1);v.ready()}:u.attachEvent&&($=function(){"complete"===u.readyState&&(u.detachEvent("onreadystatechange",$),v.ready())});e=v;var nb={};e.Callbacks=function(a){var b;if(a){if(!(b=nb[a])){b=a;var f=nb[b]={},l,n;b=b.split(/\s+/);l=0;for(n=b.length;l=q&&a&&e.isFunction(a.promise)?a:e.Deferred(),g=k.promise();if(1
a";Ma=A.getElementsByTagName("*");aa=A.getElementsByTagName("a")[0];if(!Ma||!Ma.length||!aa)La={};else{oa=u.createElement("select");pa=oa.appendChild(u.createElement("option"));F=A.getElementsByTagName("input")[0];D={leadingWhitespace:3=== A.firstChild.nodeType,tbody:!A.getElementsByTagName("tbody").length,htmlSerialize:!!A.getElementsByTagName("link").length,style:/top/.test(aa.getAttribute("style")),hrefNormalized:"/a"===aa.getAttribute("href"),opacity:/^0.55/.test(aa.style.opacity),cssFloat:!!aa.style.cssFloat,checkOn:"on"===F.value,optSelected:pa.selected,getSetAttribute:"t"!==A.className,enctype:!!u.createElement("form").enctype,html5Clone:"<:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0, focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0};e.boxModel=D.boxModel="CSS1Compat"===u.compatMode;F.checked=!0;D.noCloneChecked=F.cloneNode(!0).checked;oa.disabled=!0;D.optDisabled=!pa.disabled;try{delete A.test}catch(hd){D.deleteExpando=!1}!A.addEventListener&&(A.attachEvent&&A.fireEvent)&&(A.attachEvent("onclick",function(){D.noCloneEvent=!1}),A.cloneNode(!0).fireEvent("onclick"));F=u.createElement("input"); F.value="t";F.setAttribute("type","radio");D.radioValue="t"===F.value;F.setAttribute("checked","checked");F.setAttribute("name","t");A.appendChild(F);R=u.createDocumentFragment();R.appendChild(A.lastChild);D.checkClone=R.cloneNode(!0).cloneNode(!0).lastChild.checked;D.appendChecked=F.checked;R.removeChild(F);R.appendChild(A);if(A.attachEvent)for(Na in{submit:1,change:1,focusin:1})qa="on"+Na,ba=qa in A,ba||(A.setAttribute(qa,"return;"),ba="function"===typeof A[qa]),D[Na+"Bubbles"]=ba;R.removeChild(A); R=oa=pa=A=F=null;e(function(){var a,b,f,l,n=u.getElementsByTagName("body")[0];n&&(a=u.createElement("div"),a.style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px",n.insertBefore(a,n.firstChild),A=u.createElement("div"),a.appendChild(A),A.innerHTML="
t
",ha=A.getElementsByTagName("td"),ba=0===ha[0].offsetHeight,ha[0].style.display="",ha[1].style.display= "none",D.reliableHiddenOffsets=ba&&0===ha[0].offsetHeight,c.getComputedStyle&&(A.innerHTML="",b=u.createElement("div"),b.style.width="0",b.style.marginRight="0",A.style.width="2px",A.appendChild(b),D.reliableMarginRight=0===(parseInt((c.getComputedStyle(b,null)||{marginRight:0}).marginRight,10)||0)),"undefined"!==typeof A.style.zoom&&(A.innerHTML="",A.style.width=A.style.padding="1px",A.style.border=0,A.style.overflow="hidden",A.style.display="inline",A.style.zoom=1,D.inlineBlockNeedsLayout=3===A.offsetWidth, A.style.display="block",A.style.overflow="visible",A.innerHTML="
",D.shrinkWrapBlocks=3!==A.offsetWidth),A.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;visibility:hidden;",A.innerHTML="
", b=A.firstChild,f=b.firstChild,l=b.nextSibling.firstChild.firstChild,l={doesNotAddBorder:5!==f.offsetTop,doesAddBorderForTableAndCells:5===l.offsetTop},f.style.position="fixed",f.style.top="20px",l.fixedPosition=20===f.offsetTop||15===f.offsetTop,f.style.position=f.style.top="",b.style.overflow="hidden",b.style.position="relative",l.subtractsBorderForOverflowNotVisible=-5===f.offsetTop,l.doesNotIncludeMarginInBodyOffset=1!==n.offsetTop,c.getComputedStyle&&(A.style.marginTop="1%",D.pixelMargin="1%"!== (c.getComputedStyle(A,null)||{marginTop:0}).marginTop),"undefined"!==typeof a.style.zoom&&(a.style.zoom=1),n.removeChild(a),A=null,e.extend(D,l))});La=D}qc.support=La;var Vb=/^(?:\{.*\}|\[.*\])$/,Ub=/([A-Z])/g;e.extend({cache:{},uuid:0,expando:"jQuery"+(e.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?e.cache[a[e.expando]]:a[e.expando];return!!a&&!h(a)},data:function(a,b,f,l){if(e.acceptData(a)){var n; n=e.expando;var q="string"===typeof b,d=a.nodeType,c=d?e.cache:a,k=d?a[n]:a[n]&&n,g="events"===b;if(k&&c[k]&&(g||l||c[k].data)||!(q&&f===j)){k||(d?a[n]=k=++e.uuid:k=n);c[k]||(c[k]={},d||(c[k].toJSON=e.noop));if("object"===typeof b||"function"===typeof b)l?c[k]=e.extend(c[k],b):c[k].data=e.extend(c[k].data,b);n=a=c[k];l||(a.data||(a.data={}),a=a.data);f!==j&&(a[e.camelCase(b)]=f);if(g&&!a[b])return n.events;q?(f=a[b],null==f&&(f=a[e.camelCase(b)])):f=a;return f}}},removeData:function(a,b,f){if(e.acceptData(a)){var l, n,q,d=e.expando,c=a.nodeType,k=c?e.cache:a,g=c?a[d]:d;if(k[g]){if(b&&(l=f?k[g]:k[g].data)){e.isArray(b)||(b in l?b=[b]:(b=e.camelCase(b),b=b in l?[b]:b.split(" ")));n=0;for(q=b.length;nl)return null;a=c?l:0;for(f=c?l+1:d.length;an.indexOf(":")?"on"+n:"",f){if(a.result= j,a.target||(a.target=f),b=null!=b?e.makeArray(b):[],b.unshift(a),m=e.event.special[n]||{},!(m.trigger&&!1===m.trigger.apply(f,b))){w=[[f,m.bindType||n]];if(!l&&!m.noBubble&&!e.isWindow(f)){h=m.delegateType||n;d=ub.test(h+n)?f:f.parentNode;for(g=null;d;d=d.parentNode)w.push([d,h]),g=d;g&&g===f.ownerDocument&&w.push([g.defaultView||g.parentWindow||c,h])}for(g=0;gf&&k.push({elem:this,matches:b.slice(f)});for(g=0;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,ca="sizcache"+(Math.random()+"").replace(".",""),Qa=0,yb=Object.prototype.toString,sa=!1,zb=!0,da=/\\/g,Ac=/\r\n/g,ta=/\W/;[0,0].sort(function(){zb=!1; return 0});var y=function(a,b,f,l){f=f||[];var e=b=b||u;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return f;var d,c,k,g,m,h=!0,w=y.isXML(b),j=[],r=a;do if(Pa.exec(""),d=Pa.exec(r))if(r=d[3],j.push(d[1]),d[2]){g=d[3];break}while(d);if(1":function(a,b){var f,e="string"===typeof b,d=0,c=a.length;if(e&&!ta.test(b))for(b=b.toLowerCase();df[3]-0},nth:function(a,b,f){return f[3]-0===b},eq:function(a,b,f){return f[3]-0===b}},filter:{PSEUDO:function(a,b,f,e){var d=b[1],c=z.filters[d];if(c)return c(a,f,b,e);if("contains"===d)return 0<=(a.textContent||a.innerText|| Ra([a])||"").indexOf(b[3]);if("not"===d){b=b[3];f=0;for(e=b.length;f";wa.insertBefore(va,wa.firstChild);u.getElementById(Cb)&&(z.find.ID=function(a,b,f){if("undefined"!==typeof b.getElementById&&!f)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue=== a[1]?[b]:j:[]},z.filter.ID=function(a,b){var f="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&f&&f.nodeValue===b});wa.removeChild(va);var wa=va=null,K=u.createElement("div");K.appendChild(u.createComment(""));0

";if(!(xa.querySelectorAll&&0===xa.querySelectorAll(".TEST").length)){var y=function(a,b,f,e){b=b||u;if(!e&&!y.isXML(b)){var d=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(d&&(1===b.nodeType||9===b.nodeType)){if(d[1])return I(b.getElementsByTagName(a),f);if(d[2]&&z.find.CLASS&&b.getElementsByClassName)return I(b.getElementsByClassName(d[2]), f)}if(9===b.nodeType){if("body"===a&&b.body)return I([b.body],f);if(d&&d[3]){var c=b.getElementById(d[3]);if(c&&c.parentNode){if(c.id===d[3])return I([c],f)}else return I([],f)}try{return I(b.querySelectorAll(a),f)}catch(k){}}else if(1===b.nodeType&&"object"!==b.nodeName.toLowerCase()){var d=b,g=(c=b.getAttribute("id"))||"__sizzle__",m=b.parentNode,h=/^\s*[+~]/.test(a);c?g=g.replace(/'/g,"\\$&"):b.setAttribute("id",g);h&&m&&(b=b.parentNode);try{if(!h||m)return I(b.querySelectorAll("[id='"+g+"'] "+ a),f)}catch(j){}finally{c||d.removeAttribute("id")}}}return Sa(a,b,f,e)},Ta;for(Ta in Sa)y[Ta]=Sa[Ta];xa=null}}var ya=u.documentElement,za=ya.matchesSelector||ya.mozMatchesSelector||ya.webkitMatchesSelector||ya.msMatchesSelector;if(za){var Cc=!za.call(u.createElement("div"),"div"),Db=!1;try{za.call(u.documentElement,"[test!='']:sizzle")}catch(jd){Db=!0}y.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!y.isXML(a))try{if(Db||!z.match.PSEUDO.test(b)&&!/!=/.test(b)){var f= za.call(a,b);if(f||!Cc||a.document&&11!==a.document.nodeType)return f}}catch(e){}return 0
";ea.getElementsByClassName&&0!==ea.getElementsByClassName("e").length&&(ea.lastChild.className="e",1!==ea.getElementsByClassName("e").length&&(z.order.splice(1,0,"CLASS"),z.find.CLASS=function(a,b,f){if("undefined"!==typeof b.getElementsByClassName&&!f)return b.getElementsByClassName(a[1])}, ea=null));y.contains=u.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:u.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};y.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var Bb=function(a,b,f){var e,d=[],c="";for(b=b.nodeType?[b]:b;e=z.match.PSEUDO.exec(a);)c+=e[0],a=a.replace(z.match.PSEUDO,"");a=z.relative[a]?a+"*":a;e=0;for(var k=b.length;e]*)\/>/ig,Gb=/<([\w:]+)/,Jc=/]","i"),Ib=/checked\s*(?:[^=]|=\s*.checked.)/i, Jb=/\/(java|ecma)script/i,Nc=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Va=t(u);H.optgroup=H.option;H.tbody=H.tfoot=H.colgroup=H.caption=H.thead;H.th=H.td;e.support.htmlSerialize||(H._default= [1,"div
","
"]);e.fn.extend({text:function(a){return e.access(this,function(a){return a===j?e.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(e.isFunction(a))return this.each(function(b){e(this).wrapAll(a.call(this,b))});if(this[0]){var b=e(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild; return a}).append(this)}return this},wrapInner:function(a){return e.isFunction(a)?this.each(function(b){e(this).wrapInner(a.call(this,b))}):this.each(function(){var b=e(this),f=b.contents();f.length?f.wrapAll(a):b.append(a)})},wrap:function(a){var b=e.isFunction(a);return this.each(function(f){e(this).wrapAll(b?a.call(this,f):a)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments, !0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=e.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments, !1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,e.clean(arguments));return a}},remove:function(a,b){for(var f=0,d;null!=(d=this[f]);f++)if(!a||e.filter(a,[d]).length)!b&&1===d.nodeType&&(e.cleanData(d.getElementsByTagName("*")),e.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&e.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return e.clone(this,a,b)})},html:function(a){return e.access(this,function(a){var f=this[0]||{},d=0,c=this.length;if(a===j)return 1===f.nodeType?f.innerHTML.replace(Ic,""):null;if("string"===typeof a&&!Lc.test(a)&&(e.support.leadingWhitespace||!Ua.test(a))&&!H[(Gb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Fb,"<$1>");try{for(;dm.length&&g===u&&"<"===m.charAt(0)&&!Mc.test(m)&&(e.support.checkClone||!Ib.test(m))&&(e.support.html5Clone||!Hb.test(m)))c=!0,(k=e.fragments[m])&&1!==k&&(d=k);d||(d=g.createDocumentFragment(),e.clean(a,g,d,f));c&&(e.fragments[m]=k?d:1);return{fragment:d,cacheable:c}};e.fragments={};e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before", insertAfter:"after",replaceAll:"replaceWith"},function(a,b){e.fn[a]=function(f){var d=[];f=e(f);var c=1===this.length&&this[0].parentNode;if(c&&11===c.nodeType&&1===c.childNodes.length&&1===f.length)return f[b](this[0]),this;for(var c=0,k=f.length;c")?l=a.cloneNode(!0):(l=u.createElement("div"), Va.appendChild(l),l.innerHTML=a.outerHTML,l=l.firstChild);var h=l;if((!e.support.noCloneEvent||!e.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!e.isXMLDoc(a)){k(a,h);l=m(a);c=m(h);for(g=0;l[g];++g)c[g]&&k(l[g],c[g])}if(b&&(d(a,h),f)){l=m(a);c=m(h);for(g=0;l[g];++g)d(l[g],c[g])}return h},clean:function(a,b,f,d){var c,k=[];b=b||u;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||u);for(var g=0,m;null!=(m=a[g]);g++)if("number"===typeof m&&(m+=""),m){if("string"=== typeof m)if(Kc.test(m)){m=m.replace(Fb,"<$1>");c=(Gb.exec(m)||["",""])[1].toLowerCase();var h=H[c]||H._default,w=h[0],j=b.createElement("div"),r=Va.childNodes;b===u?Va.appendChild(j):t(b).appendChild(j);for(j.innerHTML=h[1]+m+h[2];w--;)j=j.lastChild;if(!e.support.tbody){w=Jc.test(m);h="table"===c&&!w?j.firstChild&&j.firstChild.childNodes:""===h[1]&&!w?j.childNodes:[];for(c=h.length-1;0<=c;--c)e.nodeName(h[c],"tbody")&&!h[c].childNodes.length&&h[c].parentNode.removeChild(h[c])}!e.support.leadingWhitespace&& Ua.test(m)&&j.insertBefore(b.createTextNode(Ua.exec(m)[0]),j.firstChild);m=j.childNodes;j&&(j.parentNode.removeChild(j),0f;f++)d[a+N[f]+b]=e[f]||e[f- 2]||e[0];return d}}});var Uc=/%20/g,Xb=/\[\]$/,Mb=/\r?\n/g,Vc=/#.*$/,Wc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Xc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Yc=/^(?:GET|HEAD)$/,Zc=/^\/\//,Nb=/\?/,$c=/)<[^<]*)*<\/script>/gi,ad=/^(?:select|textarea)/i,$a=/\s+/,bd=/([?&])_=[^&]*/,Ob=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Pb=e.fn.load,Da={},Qb={},O,U,Rb=["*/"]+["*"];try{O=Zb.href}catch(kd){O=u.createElement("a"), O.href="",O=O.href}U=Ob.exec(O.toLowerCase())||[];e.fn.extend({load:function(a,b,f){if("string"!==typeof a&&Pb)return Pb.apply(this,arguments);if(!this.length)return this;var d=a.indexOf(" ");if(0<=d){var c=a.slice(d,a.length);a=a.slice(0,d)}d="GET";b&&(e.isFunction(b)?(f=b,b=j):"object"===typeof b&&(b=e.param(b,e.ajaxSettings.traditional),d="POST"));var k=this;e.ajax({url:a,type:d,dataType:"html",data:b,complete:function(a,b,d){d=a.responseText;a.isResolved()&&(a.done(function(a){d=a}),k.html(c? e("
").append(d.replace($c,"")).find(c):d));f&&k.each(f,[d,b,a])}});return this},serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?e.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ad.test(this.nodeName)||Xc.test(this.type))}).map(function(a,b){var f=e(this).val();return null==f?null:e.isArray(f)?e.map(f,function(a){return{name:b.name,value:a.replace(Mb,"\r\n")}}): {name:b.name,value:f.replace(Mb,"\r\n")}}).get()}});e.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){e.fn[b]=function(a){return this.on(b,a)}});e.each(["get","post"],function(a,b){e[b]=function(a,d,c,k){e.isFunction(d)&&(k=k||c,c=d,d=j);return e.ajax({type:b,url:a,data:d,success:c,dataType:k})}});e.extend({getScript:function(a,b){return e.get(a,j,b,"script")},getJSON:function(a,b,f){return e.get(a,b,f,"json")},ajaxSetup:function(a,b){b?ab(a,e.ajaxSettings): (b=a,a=e.ajaxSettings);ab(a,b);return a},ajaxSettings:{url:O,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(U[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",binary:"text/plain; charset=x-user-defined",json:"application/json, text/javascript","*":Rb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",binary:"response", text:"responseText"},converters:{"* text":c.String,"text html":!0,"text json":e.parseJSON,"text xml":e.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:V(Da),ajaxTransport:V(Qb),ajax:function(a,b){function f(a,b,f,r){if(2!==y){y=2;v&&clearTimeout(v);u=j;C=r||"";x.readyState=0a||304===a){if(d.ifModified){if(L=x.getResponseHeader("Last-Modified"))e.lastModified[w]=L;if(L=x.getResponseHeader("Etag"))e.etag[w]=L}if(304===a)r="notmodified",p=!0;else try{var Ja;if("[object ArrayBuffer]"==f.toString())Ja=f;else{L=d;E=f;L.dataFilter&&(E=L.dataFilter(E,L.dataType));var H=L.dataTypes; M={};var V,I,P=H.length,S,G=H[0],N,R,W,K,O;for(V=1;Va&&(a=0);x.status=a;x.statusText=""+(b||r);x.response=f;p?g.resolveWith(c,[s,r,x]):g.rejectWith(c,[x,r,t]);x.statusCode(h);h=j;A&&k.trigger("ajax"+(p?"Success":"Error"),[x,d,p?s:t]);m.fireWith(c,[x,r]);A&&(k.trigger("ajaxComplete",[x,d]),--e.active||e.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=j);b=b||{};var d=e.ajaxSetup({},b),c=d.context||d,k=c!==d&&(c.nodeType||c instanceof e)?e(c):e.event,g=e.Deferred(),m=e.Callbacks("once memory"),h=d.statusCode||{},w,r={},p= {},C,s,u,v,t,y=0,A,z,x={readyState:0,setRequestHeader:function(a,b){if(!y){var d=a.toLowerCase();a=p[d]=p[d]||a;r[a]=b}return this},getAllResponseHeaders:function(){return 2===y?C:null},getResponseHeader:function(a){var b;if(2===y){if(!s)for(s={};b=Wc.exec(C);)s[b[1].toLowerCase()]=b[2];b=s[a.toLowerCase()]}return b===j?null:b},overrideMimeType:function(a){y||(d.mimeType=a);return this},abort:function(a){a=a||"abort";u&&u.abort(a);f(0,a);return this}};g.promise(x);x.success=x.done;x.error=x.fail; x.complete=m.add;x.statusCode=function(a){if(a){var b;if(2>y)for(b in a)h[b]=[h[b],a[b]];else b=a[x.status],x.then(b,b)}return this};d.url=((a||d.url)+"").replace(Vc,"").replace(Zc,U[1]+"//");d.dataTypes=e.trim(d.dataType||"*").toLowerCase().split($a);null==d.crossDomain&&(t=Ob.exec(d.url.toLowerCase()),d.crossDomain=!(!t||!(t[1]!=U[1]||t[2]!=U[2]||(t[3]||("http:"===t[1]?80:443))!=(U[3]||("http:"===U[1]?80:443)))));d.data&&(d.processData&&"string"!==typeof d.data)&&(d.data=e.param(d.data,d.traditional)); S(Da,d,b,x);if(2===y)return!1;A=d.global;d.type=d.type.toUpperCase();d.hasContent=!Yc.test(d.type);A&&0===e.active++&&e.event.trigger("ajaxStart");if(!d.hasContent&&(d.data&&(d.url+=(Nb.test(d.url)?"&":"?")+d.data,delete d.data),w=d.url,!1===d.cache)){t=e.now();var Q=d.url.replace(bd,"$1_="+t);d.url=Q+(Q===d.url?(Nb.test(d.url)?"&":"?")+"_="+t:"")}(d.data&&d.hasContent&&!1!==d.contentType||b.contentType)&&x.setRequestHeader("Content-Type",d.contentType);d.ifModified&&(w=w||d.url,e.lastModified[w]&& x.setRequestHeader("If-Modified-Since",e.lastModified[w]),e.etag[w]&&x.setRequestHeader("If-None-Match",e.etag[w]));x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Rb+"; q=0.01":""):d.accepts["*"]);for(z in d.headers)x.setRequestHeader(z,d.headers[z]);if(d.beforeSend&&(!1===d.beforeSend.call(c,x,d)||2===y))return x.abort(),!1;for(z in{success:1,error:1,complete:1})x[z](d[z]);if(u=S(Qb,d,b,x)){x.readyState=1;A&&k.trigger("ajaxSend", [x,d]);d.async&&0y)f(-1,D);else throw D;}}else f(-1,"No Transport");return x},param:function(a,b){var d=[],c=function(a,b){b=e.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===j&&(b=e.ajaxSettings.traditional);if(e.isArray(a)||a.jquery&&!e.isPlainObject(a))e.each(a,function(){c(this.name,this.value)});else for(var k in a)Ea(k,a[k],b,c);return d.join("&").replace(Uc, "+")}});e.extend({active:0,lastModified:{},etag:{}});var cd=e.now(),Aa=/(\=)\?(&|$)|\?\?/i;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return e.expando+"_"+cd++}});e.ajaxPrefilter("json jsonp",function(a,b,d){b="string"===typeof a.data&&/^application\/x\-www\-form\-urlencoded/.test(a.contentType);if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&(Aa.test(a.url)||b&&Aa.test(a.data))){var k,g=a.jsonpCallback=e.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,m=c[g],h=a.url,j=a.data, w="$1"+g+"$2";!1!==a.jsonp&&(h=h.replace(Aa,w),a.url===h&&(b&&(j=j.replace(Aa,w)),a.data===j&&(h+=(/\?/.test(h)?"&":"?")+a.jsonp+"="+g)));a.url=h;a.data=j;c[g]=function(a){k=[a]};d.always(function(){c[g]=m;if(k&&e.isFunction(m))c[g](k[0])});a.converters["script json"]=function(){k||e.error(g+" was not called");return k[0]};a.dataTypes[0]="json";return"script"}});e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/}, converters:{"text script":function(a){e.globalEval(a);return a}}});e.ajaxPrefilter("script",function(a){a.cache===j&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});e.ajaxTransport("script",function(a){if(a.crossDomain){var b,d=u.head||u.getElementsByTagName("head")[0]||u.documentElement;return{send:function(e,c){b=u.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,e){if(e||!b.readyState||/loaded|complete/.test(b.readyState))b.onload= b.onreadystatechange=null,d&&b.parentNode&&d.removeChild(b),b=j,e||c(200,"success")};d.insertBefore(b,d.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var Xa=c.ActiveXObject?function(){for(var a in fa)fa[a](0,1)}:!1,dd=0,fa;e.ajaxSettings.xhr=c.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&bb()))a:{try{a=new c.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:bb;var Ya=e.ajaxSettings.xhr();e.extend(e.support,{ajax:!!Ya,cors:!!Ya&&"withCredentials"in Ya});e.support.ajax&& e.ajaxTransport(function(a){if(!a.crossDomain||e.support.cors){var b;return{send:function(d,k){var g=a.xhr(),m,h;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(h in a.xhrFields)g[h]=a.xhrFields[h];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");"binary"==a.dataType&&(g.hasOwnProperty("responseType")?g.responseType="arraybuffer":g.overrideMimeType&& g.overrideMimeType("text/plain; charset=x-user-defined"));try{for(h in d)g.setRequestHeader(h,d[h])}catch(w){}g.send(a.hasContent&&a.data||null);b=function(d,f){var c,h,w,r,p;try{if(b&&(f||4===g.readyState))if(b=j,m&&(g.onreadystatechange=e.noop,Xa&&delete fa[m]),f)4!==g.readyState&&g.abort();else{c=g.status;w=g.getAllResponseHeaders();r={};try{if((p=g.responseXML)&&p.documentElement)r.xml=p}catch(B){}try{r.text=g.responseText}catch(C){}try{r.data=g.response}catch(s){}try{h=g.statusText}catch(t){h= ""}!c&&a.isLocal&&!a.crossDomain?c=r.text?200:404:1223===c&&(c=204)}}catch(u){f||k(-1,u)}r&&k(c,h,r,w)};!a.async||4===g.readyState?b():(m=++dd,Xa&&(fa||(fa={},e(c).unload(Xa)),fa[m]=b),g.onreadystatechange=b)},abort:function(){b&&b(0,1)}}}});var Fa={},P,Z,ed=/^(?:toggle|show|hide)$/,fd=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Ba,la=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ka;e.fn.extend({show:function(a, b,d){if(a||0===a)return this.animate(Y("show",3),a,b,d);d=0;for(var c=this.length;d=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(b in g.animatedProperties)!0!==g.animatedProperties[b]&&(c=!1);if(c){null!=g.overflow&&!e.support.shrinkWrapBlocks&&e.each(["","X","Y"],function(a, b){k.style["overflow"+b]=g.overflow[a]});g.hide&&e(k).hide();if(g.hide||g.show)for(b in g.animatedProperties)e.style(k,b,g.orig[b]),e.removeData(k,"fxshow"+b,!0),e.removeData(k,"toggle"+b,!0);if(a=g.complete)g.complete=!1,a.call(k)}return!1}Infinity==g.duration?this.now=d:(a=d-this.startTime,this.state=a/g.duration,this.pos=e.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};e.extend(e.fx,{tick:function(){for(var a, b=e.timers,d=0;d=b[c]?b[d]:Math.max(a.body[c],b[c],a.body[k],b[k]);if(g===j)return a=e.css(a,b),b=parseFloat(a),e.isNumeric(b)?b:a;e(a).css(b,g)},b,a,arguments.length,null)}});c.jQuery=c.$=e;"function"===typeof define&&(define.amd&&define.amd.jQuery)&&define("jquery", [],function(){return e})})(window);"undefined"==typeof jQuery&&alert("Note -- JSmoljQuery is required for JSmol, but it's not defined."); Jmol=function(c){return{_jmolInfo:{userAgent:navigator.userAgent,version:version="Jmol-JSO 13.0"},_allowedJmolSize:[25,2048,300],_applets:{},_asynchronous:!0,_ajaxQueue:[],db:{_databasePrefixes:"$=:",_fileLoadScript:";if (_loadScript = '' && defaultLoadScript == '' && _filetype == 'Pdb') { select protein or nucleic;cartoons Only;color structure; select * };",_nciLoadScript:";n = ({molecule=1}.length < {molecule=2}.length ? 2 : 1); select molecule=n;display selected;center selected;",_pubChemLoadScript:"", _DirectDatabaseCalls:{"cactus.nci.nih.gov":"%URL","www.rcsb.org":"%URL","pubchem.ncbi.nlm.nih.gov":"%URL",$:"http://cactus.nci.nih.gov/chemical/structure/%FILE/file?format=sdf&get3d=True",$$:"http://cactus.nci.nih.gov/chemical/structure/%FILE/file?format=sdf","=":"http://www.rcsb.org/pdb/files/%FILE.pdb","==":"http://www.rcsb.org/pdb/files/ligand/%FILE.cif",":":"http://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/%FILE/SDF?record_type=3d"},_restQueryUrl:"http://www.rcsb.org/pdb/rest/search",_restQueryXml:"org.pdb.query.simple.AdvancedKeywordQueryText SearchQUERY", _restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:c,_execLog:"",_execStack:[],_isMsie:0<=navigator.userAgent.toLowerCase().indexOf("msie"),_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_serverUrl:"http://chemapps.stolaf.edu/jmol/jsmol.jsmol.php",_touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1}}(document); (function(c,j){c.$=function(d,c){return j("#"+d._id+(c?"_"+c:""))};c.$ajax=function(d){return j.ajax(d)};c.$attr=function(d,c,g){return j("#"+d).attr(c,g)};c.$bind=function(d,c,g){return g?j(d).bind(c,g):j(d).unbind(c)};c.$html=function(d,c){return j("#"+d).html(c)};c.$offset=function(d){return j("#"+d).offset()};c.$on=function(d,c){return j(window).on(d,c)};c.$resize=function(d){return j(window).resize(d)};c.$submit=function(d){return j("#"+d).submit()};c.$val=function(d,c){return j("#"+d).val(c)}; var g=jQuery,h=document;g.map(["click","mousemove","mouseup","touchmove","touchend"],function(d){var c=function(d){g(j).each(function(){var c=g(this);this!==d.target&&!c.has(d.target).length&&c.triggerHandler(m,[d.target,d])})},m=d+"outjsmol",j=g(),r=d+"."+m+"-special-event";g.event.special[m]={setup:function(){j=j.add(this);1===j.length&&g(h).bind(r,c)},teardown:function(){j=j.not(this);0===j.length&&g(h).unbind(r)},add:function(d){var c=d.handler;d.handler=function(d,k){d.target=k;c.apply(this, arguments)}}}});var r=jQuery;r.ajaxSettings.xdr=function(){return window.XDomainRequest?new window.XDomainRequest:null};var p=r.ajaxSettings.xdr();r.extend(r.support,{iecors:!!p});r.support.iecors&&r.ajaxTransport(function(d){return{send:function(c,g){var h=d.xdr();h.onload=function(){g(200,"OK",{text:h.responseText},{"Content-Type":h.contentType})};d.xhrFields&&(h.onerror=d.xhrFields.error,h.ontimeout=d.xhrFields.timeout);h.open(d.type,d.url);h.send(d.hasContent&&d.data||null)},abort:function(){xdr.abort()}}}); c._clearVars=function(){delete jQuery;delete j;delete c;java&&(delete J,delete JZ,delete java,delete Clazz,delete JavaObject,delete bhtest,delete xxxbhparams,delete xxxShowParams,delete c$,delete d$,delete w$,delete $_A,delete $_AB,delete $_AC,delete $_AD,delete $_AF,delete $_AI,delete $_AL,delete $_AS,delete $_Ab,delete $_B,delete $_C,delete $_D,delete $_E,delete $_F,delete $_G,delete $_H,delete $_I,delete $_J,delete $_K,delete $_L,delete $_M,delete $_N,delete $_O,delete $_P,delete $_Q,delete $_R, delete $_S,delete $_T,delete $_U,delete $_V,delete $_W,delete $_X,delete $_Y,delete $_Z,delete $_k,delete $_s,delete $t$)};var s=document,x=window,t={};t.ua=navigator.userAgent.toLowerCase();t.os=function(){for(var d=["linux","unix","mac","win"],c=d.length;c--;)if(-1!=t.ua.indexOf(d[c]))return d[c];return"unknown"};t.browser=function(){for(var d=t.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),g=0;gnavigator.appVersion.indexOf("MSIE 8");t.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};t._webGLtest=0;t.supportsWebGL=function(){if(!c.featureDetection._webGLtest){var d;c.featureDetection._webGLtest=x.WebGLRenderingContext&& ((d=s.createElement("canvas")).getContext("webgl")||d.getContext("experimental-webgl"))?1:-1}return 0=t.browserVersion&&"mac"==c||"webkit"==t.browserName&&125.12>t.browserVersion||"msie"==t.browserName&&"mac"==c||"konqueror"==t.browserName&&3.3>=t.browserVersion)d=!1;return d};t.isFullyCompliant=function(){return t.compliantBrowser()&&t.supportsJava()};t.useIEObject="win"==t.os()&&"msie"==t.browserName&&5.5<=t.browserVersion;t.useHtml4Object="mozilla"==t.browserName&&5<=t.browserVersion||"opera"==t.browserName&&8<=t.browserVersion|| "webkit"==t.browserName&&412.2<=t.browserVersion;c.featureDetection=t;c._ajax=function(d){if(!d.async)return c.$ajax(d).responseText;c._ajaxQueue.push(d);1==c._ajaxQueue.length&&c._ajaxDone()};c._ajaxDone=function(){var d=c._ajaxQueue.shift();d&&c.$ajax(d)};c._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"]];c._getGrabberOptions=function(d,k){if(0==c._grabberOptions.length)return"";var g='', h='';1==c._grabberOptions.length?(g=""+g+'',h=""+h):g+="
";for(var g=g+'"+h).replace(/ID/g,d._id)+(k?k:"");return"
"+g};c._saveFile=function(d,k,g,h){var j=c._serverUrl;j&&(c.$attr("__jsmolform__", "action",j+"?"+(new Date).getMilliseconds()),c.$val("__jsmoldata__",g),c.$val("__jsmolfilename__",d),c.$val("__jsmolmimetype__",k),c.$val("__jsmolencoding__",h),c.$submit("__jsmolform__"),c.$val("__jsmoldata__",""))};c._getScriptForDatabase=function(d){return"$"==d?c.db._nciLoadScript:":"==d?c.db._pubChemLoadScript:c.db._fileLoadScript};c._setInfo=function(d,c,g){var h=[],j="";if(0==g.indexOf("ERROR"))j=g;else switch(c){case "=":c=g.split("");h=["
"];for(g=1;g"),h.push("");h.push("
"+c[g].substring(0,4)+""+c[g].split("Title>")[1].split("
");j=c.length-1+" matches";break;case "$":case ":":break;default:return}d._infoHeader=j;d._info=h.join("");d._showInfo(!0)};c._loadSuccess=function(d,k){k&&(c._ajaxDone(),k(d))};c._loadError=function(d){c._ajaxDone();c.say("Error connecting to server.");null!=d&&d()};c._isDatabaseCall=function(d){return 0<=c.db._databasePrefixes.indexOf(d.substring(0, 1))};c._getDirectDatabaseCall=function(d,k){if(k&&!c.featureDetection.supportsXhr2())return d;var g=2,h,j=c.db._DirectDatabaseCalls[d.substring(0,g)];j||(j=c.db._DirectDatabaseCalls[h=d.substring(0,--g)]);j&&":"==h&&(h=d.toLowerCase(),isNaN(parseInt(d.substring(1)))?0==h.indexOf(":smiles:")?(j+="?POST?smiles="+d.substring(8),d=":smiles"):0==h.indexOf(":cid:")?d=":cid/"+d.substring(5):(0==h.indexOf(":name:")?d=d.substring(5):0==h.indexOf(":cas:")&&(d=d.substring(4)),d=":name/"+encodeURIComponent(d.substring(1))): d=":cid/"+d.substring(1));return d=j?j.replace(/\%FILE/,d.substring(g)):d};c._getRawDataFromServer=function(d,k,g,h,j,r){d="?call=getRawDataFromDatabase&database="+d+"&query="+encodeURIComponent(k)+(j?"&encoding=base64":"")+(r?"":"&script="+encodeURIComponent(c._getScriptForDatabase(d)));return c._contactServer(d,g,h)};c._getInfoFromDatabase=function(d,k,g){if("===="==k){var h=c.db._restQueryXml.replace(/QUERY/,g),h={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:c.db._restQueryUrl, data:encodeURIComponent(h)+"&req=browser",success:function(h){c._ajaxDone();c._extractInfoFromRCSB(d,k,g,h)},error:function(){c._loadError(null)},async:c._asynchronous};return c._ajax(h)}g="?call=getInfoFromDatabase&database="+k+"&query="+encodeURIComponent(g);return c._contactServer(g,function(g){c._setInfo(d,k,g)})};c._extractInfoFromRCSB=function(d,k,g,h){var j=h.length/5;if(0!=j&&4==g.length&&1!=j){g=g.toUpperCase();var r=h.indexOf(g);0r.indexOf("?")&&r==d._thisJmolModel)&&(d._thisJmolModel=r,"$"==j||":"==j?d._jmolFileType="MOL":"="==j&&(d._jmolFileType="PDB"),d._searchDatabase(g,j,h))}};c._searchDatabase=function(d,g,h,j){d._showInfo(!1);return 0<=g.indexOf("?")?(c._getInfoFromDatabase(d,h,g.split("?")[0]),!0):c.db._DirectDatabaseCalls[h]?(d._loadFile(h+g,j),!0):!1};c._syncBinaryOK="?";c._canSyncBinary=function(){if(self.VBArray)return c._syncBinaryOK=!1;if("?"!= c._syncBinaryOK)return c._syncBinaryOK;c._syncBinaryOK=!0;try{var d=new window.XMLHttpRequest;d.open("text","http://google.com",!1);d.hasOwnProperty("responseType")?d.responseType="arraybuffer":d.overrideMimeType&&d.overrideMimeType("text/plain; charset=x-user-defined")}catch(g){return System.out.println("JmolCore.js: synchronous binary file transfer is not available"),c._syncBinaryOK=!1}return!0};c._binaryTypes=".gz .jpg .png .zip .jmol .bin .smol .spartan .mrc .pse".split(" ");c._isBinaryUrl=function(d){for(var g= c._binaryTypes.length;0<=--g;)if(0<=d.indexOf(c._binaryTypes[g]))return!0;return!1};c._getFileData=function(d){var g=c._isBinaryUrl(d)?"binary":"text",h="binary"==g&&!c._canSyncBinary(),r=0<=d.indexOf("?POST?");0==d.indexOf("file:/")&&0!=d.indexOf("file:///")&&(d="file://"+d.substring(5));var p=0>d.indexOf("://")||0==d.indexOf(document.location.protocol)&&0<=d.indexOf(document.location.host),s=c._isDirectCall(d);if(!p&&j.support.iecors||h||!p&&!s)return c._getRawDataFromServer("_",d,null,null,h,!0); g={dataType:g,async:!1};r?(g.type="POST",g.url=d.split("?POST?")[0],g.data=d.split("?POST?")[1]):g.url=d;d=c.$ajax(g);return self.Clazz&&Clazz.instanceOf(d.response,self.ArrayBuffer)?d.response:d.responseText};c._isDirectCall=function(d){for(var g in c.db._DirectDatabaseCalls)if(0<=g.indexOf(".")&&0<=d.indexOf(g))return!0;return!1};c._cleanFileData=function(d){return 0<=d.indexOf("\r")&&0<=d.indexOf("\n")?d.replace(/\r\n/g,"\n"):0<=d.indexOf("\r")?d.replace(/\r/g,"\n"):d};c._getFileType=function(d){var c= d.substring(0,1);if("$"==c||":"==c)return"MOL";if("="==c)return"="==d.substring(1,2)?"LCIF":"PDB";d=d.split(".").pop().toUpperCase();return d.substring(0,Math.min(d.length,3))};c._scriptLoad=function(d,c,g,h){var j=d._isJava||!d._noscript||1h.indexOf("%"))h+="px";if("string"!==typeof j||0>j.indexOf("%"))j+="px";var r="";d._coverImage&& (r=' onclick="Jmol.coverApplet(ID, false)" title="'+d._coverTitle+'"',r='
"+('")+"
");var p=!g&& !c._formdiv?'':"";p&&(c._formdiv="__jsmolform__");return(g? '
IMG
':'
\t\t\t\t\t\t
'+ p).replace(/IMG/,r).replace(/Hpx/g,h).replace(/Wpx/g,j).replace(/ID/g,d._id)};c._documentWrite=function(d){if(c._document){if(c._isXHTML&&!c._XhtmlElement){var g=document.getElementsByTagName("script");c._XhtmlElement=g.item(g.length-1);c._XhtmlAppendChild=!1}c._XhtmlElement?c._domWrite(d):c._document.write(d);return null}return d};c._domWrite=function(d){for(var g=[0];g[0]g[0]?-1:0}if(!d||"object"!=typeof d)return[];for(var g=[],h=d.length-1;0<=h;h--)for(var j=0,r=d[h].length;jh?-1:1,0,g]);return!1});c.$bind(d,"contextmenu",function(){return!1});c.$bind(d,"mouseout",function(){d.applet._applet&&d.applet._applet.viewer.startHoverWatcher(!1)});c.$bind(d,"mouseenter",function(g){d.applet._applet&&d.applet._applet.viewer.startHoverWatcher(!0);if(0===g.buttons||0===g.which){d.isDragging=!1;g=c._jsGetXY(d,g);if(!g)return!1;d.applet._processEvent(502, g)}});d.applet._is2D&&c.$resize(function(){d.applet&&d.applet._resize()});c.$bind("body","mouseup touchend",function(){d.applet&&(d.isDragging=!1)})};c._jsUnsetMouse=function(d){d.applet=null;c.$bind(d,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter",null)};c._setDraggable=function(d){d=d.prototype;d.setContainer=function(d){this.container=d;this.ignoreMouse=this.isDragging=!1;var c=this;d.bind("mousedown touchstart",function(d){if(c.ignoreMouse)return c.ignoreMouse= !1,!0;c.isDragging=!0;c.pageX=d.pageX;c.pageY=d.pageY;return!1});d.bind("mousemove touchmove",function(d){if(c.isDragging)return c.mouseMove(d),!1});d.bind("mouseup touchend",function(d){c.mouseUp(d)})};d.mouseUp=function(d){if(this.isDragging)return this.pageX0+=d.pageX-this.pageX,this.pageY0+=d.pageY-this.pageY,this.isDragging=!1};d.setPosition=function(){if(null===c._mousePageX){var d=c.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));c._mousePageX=d.left;c._mousePageY=d.top}this.pageX0= c._mousePageX;this.pageY0=c._mousePageY;this.container.css({top:c._mousePageY+"px",left:c._mousePageX+"px"})};d.mouseMove=function(d){this.isDragging&&this.container.css({top:this.pageY0+(d.pageY-this.pageY)+"px",left:this.pageX0+(d.pageX-this.pageX)+"px"})};d.dragBind=function(d){this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol");this.container.unbind("touchendoutjsmol");if(d){var c=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol", function(d,g,h){c.mouseMove(h)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(d,g,h){c.mouseUp(h)})}}}})(Jmol,jQuery);Jmol._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"]];Jmol.say=function(c){alert(c)};Jmol._TMApplet=function(c,j,g){this._syncId=(""+Math.random()).substring(3);this._id=c;this._is2D=!0;this._isJava=!1;this._ready=!0;this._mouseDown=!1;this._jmolType="Jmol._Canvas2D (TwirlyMol)";if(g)return this;this._createCanvas(c,j);return this}; Jmol._TMApplet._getApplet=function(c,j,g){if(!Jmol.featureDetection.allowHTML5)return null;g||(g=!1);j||(j={});Jmol._addDefaultInfo(j,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://chemapps.stolaf.edu/jmol/jsmol/jsmol.php",defaultModel:"",readyFunction:null,use:"HTML5",bondWidth:5,shadeAtoms:!1,zoomScaling:1.5,pinchScaling:2,mouseDragFactor:0.5,touchDragFactor:0.15,multipleBondSpacing:4,spinRateX:0,spinRateY:0.5,spinFPS:20,spin:!1,noscript:!0,debug:!1});j=new Jmol._TMApplet(c, j,g);return g?j:Jmol._registerApplet(c,j)};Jmol.getTMApplet=Jmol._TMApplet._getApplet; (function(c){c._CPK="#FF1493 #FFFFFF #D9FFFF #CC80FF #C2FF00 #FFB5B5 #909090 #3050F8 #FF0D0D #90E050 #B3E3F5 #AB5CF2 #8AFF00 #BFA6A6 #F0C8A0 #FF8000 #FFFF30 #1FF01F #80D1E3 #8F40D4 #3DFF00 #E6E6E6 #BFC2C7 #A6A6AB #8A99C7 #9C7AC7 #E06633 #F090A0 #50D050 #C88033 #7D80B0 #C28F8F #668F8F #BD80E3 #FFA100 #A62929 #5CB8D1 #702EB0 #00FF00 #94FFFF #94E0E0 #73C2C9 #54B5B5 #3B9E9E #248F8F #0A7D8C #006985 #C0C0C0 #FFD98F #A67573 #668080 #9E63B5 #D47A00 #940094 #429EB0 #57178F #00C900".split(" ");c._elem="X H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U Np Pu Am Cm Bk Cf Es".split(" "); c._elemNo={};var j=c.prototype;j.spin=function(c){this.__Info.spin=c;this._spin(c)};j._spin=function(c){this._spinThread&&clearTimeout(this._spinThread);if(0==this.spinFPS||0==this.spinRateX&&0==this.spinRateY)c=!1;if(c){var h=this;c=1E3/this.spinFPS;this._mouseDown||(this._rotate(this.spinRateY,this.spinRateX),this._draw());this._spinThread=setTimeout(function(){h._spin(!0)},c)}};j._initParams=function(){this.zoom=this.__Info.defaultZoom||100;this.doSpin=this.__Info.spin||!1;this.center2D=[this._canvas.width/ 2,this._canvas.height/2,0];this._getCenterAndRadius();this.rotation=new c.M3;this.shadeAtoms=!1;this._setParams()};j._setParams=function(){this.bondWidth=this.__Info.bondWidth||5;this.zoomScaling=this.__Info.zoomScaling||1.5;this.pinchScaling=this.__Info.pinchScaling||1;this.mouseDragFactor=this.__Info.mouseDragFactor||0.5;this.touchDragFactor=this.__Info.touchDragFactor||0.15;this.multipleBondSpacing=this.__Info.multipleBondSpacing||4;this.spinRateX=this.__Info.spinRateX||0;this.spinRateY=this.__Info.spinRateY|| 0;this.spinFPS=this.__Info.spinFPS||0;var c=this.shadeAtoms;(this.shadeAtoms=this.__Info.shadeAtoms||!1)&&!c&&this._setAtomShades()};j._setAtomShades=function(){if(this.atoms)for(var c=this.atoms.length;0<=--c;)this.atoms[c].color50=this._getColor(this.atoms[c].color,0.5)};j._createCanvas=function(c,h){Jmol._setObject(this,c,h);this._color=this._color.replace(/0x/,"#");var j=Jmol._getWrapper(this,!0);Jmol._document?(Jmol._documentWrite(j),this._createCanvas2d(!1),j=""):j+='