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

";if(!(za.querySelectorAll&&0===za.querySelectorAll(".TEST").length)){var w=function(a,b,f,e){b=b||s;if(!e&&!w.isXML(b)){var c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(c&&(1===b.nodeType||9===b.nodeType)){if(c[1])return M(b.getElementsByTagName(a),f);if(c[2]&&B.find.CLASS&&b.getElementsByClassName)return M(b.getElementsByClassName(c[2]), f)}if(9===b.nodeType){if("body"===a&&b.body)return M([b.body],f);if(c&&c[3]){var j=b.getElementById(c[3]);if(j&&j.parentNode){if(j.id===c[3])return M([j],f)}else return M([],f)}try{return M(b.querySelectorAll(a),f)}catch(h){}}else if(1===b.nodeType&&"object"!==b.nodeName.toLowerCase()){var c=b,d=(j=b.getAttribute("id"))||"__sizzle__",m=b.parentNode,l=/^\s*[+~]/.test(a);j?d=d.replace(/'/g,"\\$&"):b.setAttribute("id",d);l&&m&&(b=b.parentNode);try{if(!l||m)return M(b.querySelectorAll("[id='"+d+"'] "+ a),f)}catch(g){}finally{j||c.removeAttribute("id")}}}return Sa(a,b,f,e)},Ta;for(Ta in Sa)w[Ta]=Sa[Ta];za=null}}var Aa=s.documentElement,Ba=Aa.matchesSelector||Aa.mozMatchesSelector||Aa.webkitMatchesSelector||Aa.msMatchesSelector;if(Ba){var Ac=!Ba.call(s.createElement("div"),"div"),Bb=!1;try{Ba.call(s.documentElement,"[test!='']:sizzle")}catch(hd){Bb=!0}w.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!w.isXML(a))try{if(Bb||!B.match.PSEUDO.test(b)&&!/!=/.test(b)){var f= Ba.call(a,b);if(f||!Ac||a.document&&11!==a.document.nodeType)return f}}catch(e){}return 0
";ga.getElementsByClassName&&0!==ga.getElementsByClassName("e").length&&(ga.lastChild.className="e",1!==ga.getElementsByClassName("e").length&&(B.order.splice(1,0,"CLASS"),B.find.CLASS=function(a,b,f){if("undefined"!==typeof b.getElementsByClassName&&!f)return b.getElementsByClassName(a[1])}, ga=null));w.contains=s.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:s.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};w.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var zb=function(a,b,f){var e,c=[],j="";for(b=b.nodeType?[b]:b;e=B.match.PSEUDO.exec(a);)j+=e[0],a=a.replace(B.match.PSEUDO,"");a=B.relative[a]?a+"*":a;e=0;for(var h=b.length;e]*)\/>/ig,Eb=/<([\w:]+)/,Hc=/]","i"),Gb=/checked\s*(?:[^=]|=\s*.checked.)/i, Hb=/\/(java|ecma)script/i,Lc=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Va=j(s);K.optgroup=K.option;K.tbody=K.tfoot=K.colgroup=K.caption=K.thead;K.th=K.td;h.support.htmlSerialize||(K._default= [1,"div
","
"]);h.fn.extend({text:function(a){return h.access(this,function(a){return a===k?h.text(this):this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(h.isFunction(a))return this.each(function(b){h(this).wrapAll(a.call(this,b))});if(this[0]){var b=h(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 h.isFunction(a)?this.each(function(b){h(this).wrapInner(a.call(this,b))}):this.each(function(){var b=h(this),f=b.contents();f.length?f.wrapAll(a):b.append(a)})},wrap:function(a){var b=h.isFunction(a);return this.each(function(f){h(this).wrapAll(b?a.call(this,f):a)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(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=h.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,h.clean(arguments));return a}},remove:function(a,b){for(var f=0,e;null!=(e=this[f]);f++)if(!a||h.filter(a,[e]).length)!b&&1===e.nodeType&&(h.cleanData(e.getElementsByTagName("*")),h.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&h.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 h.clone(this,a,b)})},html:function(a){return h.access(this,function(a){var b=this[0]||{},f=0,e=this.length;if(a===k)return 1===b.nodeType?b.innerHTML.replace(Gc,""):null;if("string"===typeof a&&!Jc.test(a)&&(h.support.leadingWhitespace||!Ua.test(a))&&!K[(Eb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Db,"<$1>");try{for(;fm.length&&d===s&&"<"===m.charAt(0)&&!Kc.test(m)&&(h.support.checkClone||!Gb.test(m))&&(h.support.html5Clone||!Fb.test(m)))c=!0,(j=h.fragments[m])&&1!==j&&(e=j);e||(e=d.createDocumentFragment(),h.clean(a,d,e,f));c&&(h.fragments[m]=j?e:1);return{fragment:e,cacheable:c}};h.fragments={};h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before", insertAfter:"after",replaceAll:"replaceWith"},function(a,b){h.fn[a]=function(f){var e=[];f=h(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,j=f.length;c")?c=a.cloneNode(!0):(c=s.createElement("div"), Va.appendChild(c),c.innerHTML=a.outerHTML,c=c.firstChild);var m=c;if((!h.support.noCloneEvent||!h.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!h.isXMLDoc(a)){r(a,m);c=f(a);j=f(m);for(d=0;c[d];++d)j[d]&&r(c[d],j[d])}if(b&&(q(a,m),e)){c=f(a);j=f(m);for(d=0;c[d];++d)q(c[d],j[d])}return m},clean:function(a,b,f,e){var c,d=[];b=b||s;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||s);for(var m=0,l;null!=(l=a[m]);m++)if("number"===typeof l&&(l+=""),l){if("string"=== typeof l)if(Ic.test(l)){l=l.replace(Db,"<$1>");c=(Eb.exec(l)||["",""])[1].toLowerCase();var g=K[c]||K._default,k=g[0],q=b.createElement("div"),A=Va.childNodes;b===s?Va.appendChild(q):j(b).appendChild(q);for(q.innerHTML=g[1]+l+g[2];k--;)q=q.lastChild;if(!h.support.tbody){k=Hc.test(l);g="table"===c&&!k?q.firstChild&&q.firstChild.childNodes:""===g[1]&&!k?q.childNodes:[];for(c=g.length-1;0<=c;--c)h.nodeName(g[c],"tbody")&&!g[c].childNodes.length&&g[c].parentNode.removeChild(g[c])}!h.support.leadingWhitespace&& Ua.test(l)&&q.insertBefore(b.createTextNode(Ua.exec(l)[0]),q.firstChild);l=q.childNodes;q&&(q.parentNode.removeChild(q),0f;f++)c[a+P[f]+b]=e[f]||e[f- 2]||e[0];return c}}});var Sc=/%20/g,Vb=/\[\]$/,Kb=/\r?\n/g,Tc=/#.*$/,Uc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Vc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Wc=/^(?:GET|HEAD)$/,Xc=/^\/\//,Lb=/\?/,Yc=/)<[^<]*)*<\/script>/gi,Zc=/^(?:select|textarea)/i,$a=/\s+/,$c=/([?&])_=[^&]*/,Mb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Nb=h.fn.load,Fa={},Ob={},R,U,Pb=["*/"]+["*"];try{R=Xb.href}catch(id){R=s.createElement("a"), R.href="",R=R.href}U=Mb.exec(R.toLowerCase())||[];h.fn.extend({load:function(a,b,f){if("string"!==typeof a&&Nb)return Nb.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e){var c=a.slice(e,a.length);a=a.slice(0,e)}e="GET";b&&(h.isFunction(b)?(f=b,b=k):"object"===typeof b&&(b=h.param(b,h.ajaxSettings.traditional),e="POST"));var j=this;h.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),j.html(c? h("
").append(e.replace(Yc,"")).find(c):e));f&&j.each(f,[e,b,a])}});return this},serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?h.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Zc.test(this.nodeName)||Vc.test(this.type))}).map(function(a,b){var f=h(this).val();return null==f?null:h.isArray(f)?h.map(f,function(a){return{name:b.name,value:a.replace(Kb,"\r\n")}}): {name:b.name,value:f.replace(Kb,"\r\n")}}).get()}});h.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){h.fn[b]=function(a){return this.on(b,a)}});h.each(["get","post"],function(a,b){h[b]=function(a,f,e,c){h.isFunction(f)&&(c=c||e,e=f,f=k);return h.ajax({type:b,url:a,data:f,success:e,dataType:c})}});h.extend({getScript:function(a,b){return h.get(a,k,b,"script")},getJSON:function(a,b,f){return h.get(a,b,f,"json")},ajaxSetup:function(a,b){b?G(a,h.ajaxSettings): (b=a,a=h.ajaxSettings);G(a,b);return a},ajaxSettings:{url:R,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","*":Pb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",binary:"response", text:"responseText"},converters:{"* text":b.String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:C(Fa),ajaxTransport:C(Ob),ajax:function(a,b){function f(a,b,p,q){if(2!==G){G=2;t&&clearTimeout(t);C=k;A=q||"";y.readyState=0a||304===a){if(e.ifModified){if(D=y.getResponseHeader("Last-Modified"))h.lastModified[g]=D;if(D=y.getResponseHeader("Etag"))h.etag[g]=D}if(304===a)q="notmodified",u=!0;else try{var L;if("[object ArrayBuffer]"==p.toString())L=p;else{D=e;I=p;D.dataFilter&&(I=D.dataFilter(I,D.dataType));var Ja=D.dataTypes; N={};var K,M,S=Ja.length,Q,W=Ja[0],P,T,X,O,R;for(K=1;Ka&&(a=0);y.status=a;y.statusText=""+(b||q);y.response=p;u?d.resolveWith(c,[r,q,y]):d.rejectWith(c,[y,q,z]);y.statusCode(l);l=k;w&&j.trigger("ajax"+(u?"Success":"Error"),[y,e,u?r:z]);m.fireWith(c,[y,q]);w&&(j.trigger("ajaxComplete",[y,e]),--h.active||h.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=k);b=b||{};var e=h.ajaxSetup({},b),c=e.context||e,j=c!==e&&(c.nodeType||c instanceof h)?h(c):h.event,d=h.Deferred(),m=h.Callbacks("once memory"),l=e.statusCode||{},g,q={},u= {},A,r,C,t,s,G=0,w,v,y={readyState:0,setRequestHeader:function(a,b){if(!G){var f=a.toLowerCase();a=u[f]=u[f]||a;q[a]=b}return this},getAllResponseHeaders:function(){return 2===G?A:null},getResponseHeader:function(a){var b;if(2===G){if(!r)for(r={};b=Uc.exec(A);)r[b[1].toLowerCase()]=b[2];b=r[a.toLowerCase()]}return b===k?null:b},overrideMimeType:function(a){G||(e.mimeType=a);return this},abort:function(a){a=a||"abort";C&&C.abort(a);f(0,a);return this}};d.promise(y);y.success=y.done;y.error=y.fail; y.complete=m.add;y.statusCode=function(a){if(a){var b;if(2>G)for(b in a)l[b]=[l[b],a[b]];else b=a[y.status],y.then(b,b)}return this};e.url=((a||e.url)+"").replace(Tc,"").replace(Xc,U[1]+"//");e.dataTypes=h.trim(e.dataType||"*").toLowerCase().split($a);null==e.crossDomain&&(s=Mb.exec(e.url.toLowerCase()),e.crossDomain=!(!s||!(s[1]!=U[1]||s[2]!=U[2]||(s[3]||("http:"===s[1]?80:443))!=(U[3]||("http:"===U[1]?80:443)))));e.data&&(e.processData&&"string"!==typeof e.data)&&(e.data=h.param(e.data,e.traditional)); F(Fa,e,b,y);if(2===G)return!1;w=e.global;e.type=e.type.toUpperCase();e.hasContent=!Wc.test(e.type);w&&0===h.active++&&h.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(Lb.test(e.url)?"&":"?")+e.data,delete e.data),g=e.url,!1===e.cache)){s=h.now();var B=e.url.replace($c,"$1_="+s);e.url=B+(B===e.url?(Lb.test(e.url)?"&":"?")+"_="+s:"")}(e.data&&e.hasContent&&!1!==e.contentType||b.contentType)&&y.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(g=g||e.url,h.lastModified[g]&& y.setRequestHeader("If-Modified-Since",h.lastModified[g]),h.etag[g]&&y.setRequestHeader("If-None-Match",h.etag[g]));y.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+Pb+"; q=0.01":""):e.accepts["*"]);for(v in e.headers)y.setRequestHeader(v,e.headers[v]);if(e.beforeSend&&(!1===e.beforeSend.call(c,y,e)||2===G))return y.abort(),!1;for(v in{success:1,error:1,complete:1})y[v](e[v]);if(C=F(Ob,e,b,y)){y.readyState=1;w&&j.trigger("ajaxSend", [y,e]);e.async&&0G)f(-1,D);else throw D;}}else f(-1,"No Transport");return y},param:function(a,b){var f=[],e=function(a,b){b=h.isFunction(b)?b():b;f[f.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===k&&(b=h.ajaxSettings.traditional);if(h.isArray(a)||a.jquery&&!h.isPlainObject(a))h.each(a,function(){e(this.name,this.value)});else for(var c in a)y(c,a[c],b,e);return f.join("&").replace(Sc, "+")}});h.extend({active:0,lastModified:{},etag:{}});var ad=h.now(),Ca=/(\=)\?(&|$)|\?\?/i;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return h.expando+"_"+ad++}});h.ajaxPrefilter("json jsonp",function(a,f,e){f="string"===typeof a.data&&/^application\/x\-www\-form\-urlencoded/.test(a.contentType);if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&(Ca.test(a.url)||f&&Ca.test(a.data))){var c,j=a.jsonpCallback=h.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,d=b[j],m=a.url,l=a.data, g="$1"+j+"$2";!1!==a.jsonp&&(m=m.replace(Ca,g),a.url===m&&(f&&(l=l.replace(Ca,g)),a.data===l&&(m+=(/\?/.test(m)?"&":"?")+a.jsonp+"="+j)));a.url=m;a.data=l;b[j]=function(a){c=[a]};e.always(function(){b[j]=d;if(c&&h.isFunction(d))b[j](c[0])});a.converters["script json"]=function(){c||h.error(j+" was not called");return c[0]};a.dataTypes[0]="json";return"script"}});h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/}, converters:{"text script":function(a){h.globalEval(a);return a}}});h.ajaxPrefilter("script",function(a){a.cache===k&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});h.ajaxTransport("script",function(a){if(a.crossDomain){var b,f=s.head||s.getElementsByTagName("head")[0]||s.documentElement;return{send:function(e,c){b=s.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,f&&b.parentNode&&f.removeChild(b),b=k,e||c(200,"success")};f.insertBefore(b,f.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var Xa=b.ActiveXObject?function(){for(var a in ha)ha[a](0,1)}:!1,bd=0,ha;h.ajaxSettings.xhr=b.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&D()))a:{try{a=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(f){}a=void 0}return a}:D;var Ya=h.ajaxSettings.xhr();h.extend(h.support,{ajax:!!Ya,cors:!!Ya&&"withCredentials"in Ya});h.support.ajax&& h.ajaxTransport(function(a){if(!a.crossDomain||h.support.cors){var f;return{send:function(e,c){var j=a.xhr(),d,m;a.username?j.open(a.type,a.url,a.async,a.username,a.password):j.open(a.type,a.url,a.async);if(a.xhrFields)for(m in a.xhrFields)j[m]=a.xhrFields[m];a.mimeType&&j.overrideMimeType&&j.overrideMimeType(a.mimeType);!a.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");"binary"==a.dataType&&(j.hasOwnProperty("responseType")?j.responseType="arraybuffer":j.overrideMimeType&& j.overrideMimeType("text/plain; charset=x-user-defined"));try{for(m in e)j.setRequestHeader(m,e[m])}catch(l){}j.send(a.hasContent&&a.data||null);f=function(b,e){var m,l,g,q,u;try{if(f&&(e||4===j.readyState))if(f=k,d&&(j.onreadystatechange=h.noop,Xa&&delete ha[d]),e)4!==j.readyState&&j.abort();else{m=j.status;g=j.getAllResponseHeaders();q={};try{if((u=j.responseXML)&&u.documentElement)q.xml=u}catch(A){}try{q.text=j.responseText}catch(r){}try{q.data=j.response}catch(C){}try{l=j.statusText}catch(F){l= ""}!m&&a.isLocal&&!a.crossDomain?m=q.text?200:404:1223===m&&(m=204)}}catch(V){e||c(-1,V)}q&&c(m,l,q,g)};!a.async||4===j.readyState?f():(d=++bd,Xa&&(ha||(ha={},h(b).unload(Xa)),ha[d]=f),j.onreadystatechange=f)},abort:function(){f&&f(0,1)}}}});var Ga={},S,aa,cd=/^(?:toggle|show|hide)$/,dd=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Da,na=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ma;h.fn.extend({show:function(a, b,f){if(a||0===a)return this.animate(Z("show",3),a,b,f);f=0;for(var e=this.length;f=j.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();j.animatedProperties[this.prop]=!0;for(b in j.animatedProperties)!0!==j.animatedProperties[b]&&(e=!1);if(e){null!=j.overflow&&!h.support.shrinkWrapBlocks&&h.each(["","X","Y"],function(a, b){c.style["overflow"+b]=j.overflow[a]});j.hide&&h(c).hide();if(j.hide||j.show)for(b in j.animatedProperties)h.style(c,b,j.orig[b]),h.removeData(c,"fxshow"+b,!0),h.removeData(c,"toggle"+b,!0);if(a=j.complete)j.complete=!1,a.call(c)}return!1}Infinity==j.duration?this.now=f:(a=f-this.startTime,this.state=a/j.duration,this.pos=h.easing[j.animatedProperties[this.prop]](this.state,a,0,1,j.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};h.extend(h.fx,{tick:function(){for(var a, b=h.timers,f=0;f=b[e]?b[f]:Math.max(a.body[e],b[e],a.body[c],b[c]);if(j===k)return a=h.css(a,b),b=parseFloat(a),h.isNumeric(b)?b:a;h(a).css(b,j)},b,a,arguments.length,null)}});b.jQuery=b.$=h;"function"===typeof define&&(define.amd&&define.amd.jQuery)&&define("jquery", [],function(){return h})})(window); (function(b){b.ajaxSettings.xdr=function(){return window.XDomainRequest?new window.XDomainRequest:null};var k=b.ajaxSettings.xdr();b.extend(b.support,{iecors:!!k});b.support.iecors&&b.ajaxTransport(function(b){return{send:function(d,c){var l=b.xdr();l.onload=function(){c(200,"OK",{text:l.responseText},{"Content-Type":l.contentType})};b.xhrFields&&(l.onerror=b.xhrFields.error,l.ontimeout=b.xhrFields.timeout);l.open(b.type,b.url);l.send(b.hasContent&&b.data||null)},abort:function(){xdr.abort()}}})})(jQuery); "undefined"==typeof jQuery&&alert("Note -- JSmoljQuery is required for JSmol, but it's not defined."); Jmol=function(b){return{_jmolInfo:{userAgent:navigator.userAgent,version:version="Jmol-JSO 13.0"},_serverUrl:"http://chemapps.stolaf.edu/jmol/jsmol.jsmol.php",_asynchronous:!0,_document:b,_debugAlert:!1,_isMsie:0<=navigator.userAgent.toLowerCase().indexOf("msie"),_isXHTML:!1,_XhtmlElement:null,_XhtmlAppendChild:!1,_applets:{},_lastAppletID:null,_ajaxQueue:[],_execStack:[],_execLog:"",_mousePageX:null,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"},_allowedJmolSize:[25,2048,300]}}(document); (function(b){b._setJmolParams=function(c,d,a){for(var e in d)if(0<="'progressbar','progresscolor','boxbgcolor','boxfgcolor','boxmessage',\t\t\t\t\t\t\t\t\t'messagecallback','pickcallback','animframecallback','appletreadycallback','atommovedcallback',\t\t\t\t\t\t\t\t\t'echocallback','evalcallback','hovercallback','language','loadstructcallback','measurecallback',\t\t\t\t\t\t\t\t\t'minimizationcallback','resizecallback','scriptcallback','statusform','statustext','statustextarea',\t\t\t\t\t\t\t\t\t'synccallback','usecommandthread'".indexOf("'"+ e.toLowerCase()+"'")&&("language"!=e||b.featureDetection.supportsLocalization()))a?c.put(e,d[e]):c[e]=d[e]};b._registerApplet=function(c,d){return b._applets[c]=b._applets[d]=d};b._readyCallback=function(c,d,a,e){var j=c.split("_object")[0];b._applets[j]._readyCallback(c,d,a,e)};b._ajax=function(c){if(!c.async)return jQuery.ajax(c).responseText;b._ajaxQueue.push(c);1==b._ajaxQueue.length&&b._ajaxDone()};b._ajaxDone=function(){var c=b._ajaxQueue.shift();c&&jQuery.ajax(c)};b._grabberOptions=[["$","NCI(small molecules)"], [":","PubChem(small molecules)"],["=","RCSB(macromolecules)"]];b._getGrabberOptions=function(c,d){if(!jQuery||0==b._grabberOptions.length)return"";var a='',e='';1==b._grabberOptions.length?(a=""+a+'',e=""+e):a+="
";for(var a=a+'"+e).replace(/ID/g,c._id)+(d?d:"");return"
"+a};b._getWrapper=function(c,d){var a=c._height,e=c._width;if("string"!==typeof a||0>a.indexOf("%"))a+="px";if("string"!==typeof e||0>e.indexOf("%"))e+="px";var j=c._coverImage?'
':"",g=!d&&!b._formdiv?'': "";g&&(b._formdiv="__jsmolform__");return(d?'
IMG
':'
\t\t\t\t\t\t
'+ g).replace(/IMG/,j).replace(/Hpx/g,a).replace(/Wpx/g,e).replace(/ID/g,c._id)};b._saveFile=function(c,d,a,e){var j=b._serverUrl;j&&($("#__jsmolform__").attr("action",j+"?"+(new Date).getMilliseconds()),$("#__jsmoldata__").val(a),$("#__jsmolfilename__").val(c),$("#__jsmolmimetype__").val(d),$("#__jsmolencoding__").val(e),$("#__jsmolform__").submit(),$("#__jsmoldata__").val(""))};b._getScriptForDatabase=function(c){return"$"==c?b.db._nciLoadScript:":"==c?b.db._pubChemLoadScript:b.db._fileLoadScript}; b._setInfo=function(b,d,a){var e=[],j="";if(0==a.indexOf("ERROR"))j=a;else switch(d){case "=":d=a.split("");e=["
"];for(a=1;a"),e.push("");e.push("
"+d[a].substring(0,4)+""+d[a].split("Title>")[1].split("
");j=d.length-1+" matches";break;case "$":case ":":break;default:return}b._infoHeader=j;b._info=e.join("");b._showInfo(!0)}; b._loadSuccess=function(c,d){d&&(b._ajaxDone(),d(c))};b._loadError=function(c){b._ajaxDone();b.say("Error connecting to server.");null!=c&&c()};b._isDatabaseCall=function(c){return 0<=b.db._databasePrefixes.indexOf(c.substring(0,1))};b._getDirectDatabaseCall=function(c,d){if(d&&!b.featureDetection.supportsXhr2())return c;var a=2,e,j=b.db._DirectDatabaseCalls[c.substring(0,a)];j||(j=b.db._DirectDatabaseCalls[e=c.substring(0,--a)]);j&&":"==e&&(e=c.toLowerCase(),isNaN(parseInt(c.substring(1)))?0==e.indexOf(":smiles:")? (j+="?POST?smiles="+c.substring(8),c=":smiles"):0==e.indexOf(":cid:")?c=":cid/"+c.substring(5):(0==e.indexOf(":name:")?c=c.substring(5):0==e.indexOf(":cas:")&&(c=c.substring(4)),c=":name/"+encodeURIComponent(c.substring(1))):c=":cid/"+c.substring(1));return c=j?j.replace(/\%FILE/,c.substring(a)):c};b._getRawDataFromServer=function(c,d,a,e,j,g){c="?call=getRawDataFromDatabase&database="+c+"&query="+encodeURIComponent(d)+(j?"&encoding=base64":"")+(g?"":"&script="+encodeURIComponent(b._getScriptForDatabase(c))); return b._contactServer(c,a,e)};b._getInfoFromDatabase=function(c,d,a){if("===="==d){var e=b.db._restQueryXml.replace(/QUERY/,a),e={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:b.db._restQueryUrl,data:encodeURIComponent(e)+"&req=browser",success:function(e){b._ajaxDone();b._extractInfoFromRCSB(c,d,a,e)},error:function(){b._loadError(null)},async:b._asynchronous};return b._ajax(e)}a="?call=getInfoFromDatabase&database="+d+"&query="+encodeURIComponent(a);return b._contactServer(a, function(a){b._setInfo(c,d,a)})};b._extractInfoFromRCSB=function(c,d,a,e){var j=e.length/5;if(0!=j&&4==a.length&&1!=j){a=a.toUpperCase();var g=e.indexOf(a);0=d.browserVersion&&"mac"==l||"webkit"==d.browserName&&125.12>d.browserVersion||"msie"==d.browserName&& "mac"==l||"konqueror"==d.browserName&&3.3>=d.browserVersion)b=!1;return b};d.isFullyCompliant=function(){return d.compliantBrowser()&&d.supportsJava()};d.useIEObject="win"==d.os()&&"msie"==d.browserName&&5.5<=d.browserVersion;d.useHtml4Object="mozilla"==d.browserName&&5<=d.browserVersion||"opera"==d.browserName&&8<=d.browserVersion||"webkit"==d.browserName&&412.2<=d.browserVersion;b.featureDetection=d;b._documentWrite=function(c){if(b._document){if(b._isXHTML&&!b._XhtmlElement){var d=document.getElementsByTagName("script"); b._XhtmlElement=d.item(d.length-1);b._XhtmlAppendChild=!1}b._XhtmlElement?b._domWrite(c):b._document.write(c);return null}return c};b._domWrite=function(c){for(var d=[0];d[0]b[0]?-1:0}if(!b||"object"!=typeof b)return[];for(var a=[],e=b.length-1;0<=e;e--)for(var j=0,g=b[e].length;jc.indexOf("://")||0==c.indexOf(document.location.protocol)&&0<=c.indexOf(document.location.host),g=b._isDirectCall(c);if(!j&&jQuery.support.iecors||a||!j&&!g)return b._getRawDataFromServer("_",c,null,null,a,!0);d={dataType:d,async:!1};e?(d.type="POST",d.url=c.split("?POST?")[0],d.data=c.split("?POST?")[1]):d.url=c;c=jQuery.ajax(d); return Clazz.instanceOf(c.response,self.ArrayBuffer)?c.response:c.responseText};b._isDirectCall=function(c){for(var d in b.db._DirectDatabaseCalls)if(0<=d.indexOf(".")&&0<=c.indexOf(d))return!0;return!1};b._setDraggable=function(c){c=c.prototype;c.setContainer=function(b){this.container=b;this.ignoreMouse=this.isDragging=!1;var a=this;b.bind("mousedown touchstart",function(b){if(a.ignoreMouse)return a.ignoreMouse=!1,!0;a.isDragging=!0;a.pageX=b.pageX;a.pageY=b.pageY;return!1});b.bind("mousemove touchmove", function(b){if(a.isDragging)return a.mouseMove(b),!1});b.bind("mouseup touchend",function(b){a.mouseUp(b)})};c.mouseUp=function(b){if(this.isDragging)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1};c.setPosition=function(){if(null===b._mousePageX){var c=$("#"+(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"))).offset();b._mousePageX=c.left;b._mousePageY=c.top}this.pageX0=b._mousePageX;this.pageY0=b._mousePageY;this.container.css({top:b._mousePageY+ "px",left:b._mousePageX+"px"})};c.mouseMove=function(b){this.isDragging&&this.container.css({top:this.pageY0+(b.pageY-this.pageY)+"px",left:this.pageX0+(b.pageX-this.pageX)+"px"})};c.dragBind=function(b){this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol");this.container.unbind("touchendoutjsmol");if(b){var a=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(b,j,c){a.mouseMove(c)});this.container.bind("mouseupoutjsmol touchendoutjsmol", function(b,j,c){a.mouseUp(c)})}}}})(Jmol); (function(b,k,g){b.map(["click","mousemove","mouseup","touchmove","touchend"],function(d){var c=function(e){b(a).each(function(){var a=b(this);this!==e.target&&!a.has(e.target).length&&a.triggerHandler(l,[e.target,e])})},l=d+g,a=b(),e=d+"."+l+"-special-event";b.event.special[l]={setup:function(){a=a.add(this);1===a.length&&b(k).bind(e,c)},teardown:function(){a=a.not(this);0===a.length&&b(k).unbind(e)},add:function(a){var b=a.handler;a.handler=function(a,f){a.target=f;b.apply(this,arguments)}}}})})(jQuery, document,"outjsmol"); (function(b){b._getCanvas=function(k,g,d,c,l){var a=null;c&&b.featureDetection.supportsWebGL()&&(b._Canvas3D.prototype=b._jsSetPrototype(new b._Applet(k,g,"",!0)),GLmol.setRefresh(b._Canvas3D.prototype),a=new b._Canvas3D(k,g,null,d));l&&null==a&&(b._Canvas2D.prototype=b._jsSetPrototype(new b._Applet(k,g,"",!0)),a=new b._Canvas2D(k,g,null,d));return a};b._Canvas2D=function(k,g,d,c){this._syncId=(""+Math.random()).substring(3);this._id=k;this._is2D=!0;this._isJava=!1;this._aaScale=1;this._jmolType= "Jmol._Canvas2D (JSmol)";this._platform="J.awtjs2d.Platform";if(c)return this;window[k]=this;this._createCanvas(k,g,d,null);if(!b._document||this._deferApplet)return this;this._init();return this};b._jsGetMouseModifiers=function(b){var g=0;switch(b.button){case 0:g=J.api.Event.MOUSE_LEFT;break;case 1:g=J.api.Event.MOUSE_MIDDLE;break;case 2:g=J.api.Event.MOUSE_RIGHT}b.shiftKey&&(g+=J.api.Event.SHIFT_MASK);b.altKey&&(g+=J.api.Event.ALT_MASK);b.ctrlKey&&(g+=J.api.Event.CTRL_MASK);return g};b._jsGetXY= function(k,g){if(!k.applet._ready)return!1;g.preventDefault();var d=$("#"+k.id).offset(),c,l=g.originalEvent;b._mousePageX=g.pageX;b._mousePageY=g.pageY;l.targetTouches&&l.targetTouches[0]?(c=l.targetTouches[0].pageX-d.left,d=l.targetTouches[0].pageY-d.top):l.changedTouches?(c=l.changedTouches[0].pageX-d.left,d=l.changedTouches[0].pageY-d.top):(c=g.pageX-d.left,d=g.pageY-d.top);return void 0==c?null:[Math.round(c),Math.round(d),b._jsGetMouseModifiers(g)]};b._gestureUpdate=function(b,g){g.stopPropagation(); g.preventDefault();var d=g.originalEvent;if(!d.touches||2!=d.touches.length)return!1;switch(g.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var c=$("#"+b.id).offset();b._touches[0].push([d.touches[0].pageX-c.left,d.touches[0].pageY-c.top]);b._touches[1].push([d.touches[1].pageX-c.left,d.touches[1].pageY-c.top]);2<=b._touches[0].length&&b.applet._applet.viewer.mouse.processTwoPointGesture(b._touches)}return!0};b._jsSetMouse=function(k){var g=$(k);g.bind("mousedown touchstart",function(d){d.stopPropagation(); d.preventDefault();k.isDragging=!0;if("touchstart"==d.type&&b._gestureUpdate(k,d))return!1;b._setConsoleDiv(k.applet._console);var c=b._jsGetXY(k,d);if(!c)return!1;2!=d.button&&k.applet._popups&&b.Menu.hidePopups(k.applet.popups);k.applet._applet.viewer.handleOldJvm10Event(J.api.Event.MOUSE_DOWN,c[0],c[1],c[2],System.currentTimeMillis());return!1});g.bind("mousemove touchmove",function(d){d.stopPropagation();d.preventDefault();if("touchmove"==d.type&&b._gestureUpdate(k,d))return!1;d=b._jsGetXY(k, d);if(!d)return!1;k.applet._applet.viewer.handleOldJvm10Event(k.isDragging?J.api.Event.MOUSE_DRAG:J.api.Event.MOUSE_MOVE,d[0],d[1],k.isDragging?d[2]:0,System.currentTimeMillis());return!1});g.bind("mouseup touchend",function(d){d.stopPropagation();d.preventDefault();k.isDragging=!1;if("touchend"==d.type&&b._gestureUpdate(k,d))return!1;d=b._jsGetXY(k,d);if(!d)return!1;k.applet._applet.viewer.handleOldJvm10Event(J.api.Event.MOUSE_UP,d[0],d[1],d[2],System.currentTimeMillis());return!1});g.bind("DOMMouseScroll mousewheel", function(d){d.stopPropagation();d.preventDefault();k.isDragging=!1;var c=d.originalEvent,c=c.detail?c.detail:c.wheelDelta;d=b._jsGetMouseModifiers(d);k.applet._applet.viewer.handleOldJvm10Event(-1,0>c?-1:1,0,d,System.currentTimeMillis());return!1});g.bind("contextmenu",function(){return!1});g.bind("mouseout",function(){k.applet._applet.viewer.startHoverWatcher(!1)});g.bind("mouseenter",function(d){k.applet._applet.viewer.startHoverWatcher(!0);if(0===d.buttons||0===d.which){k.isDragging=!1;d=b._jsGetXY(k, d);if(!d)return!1;k.applet._applet.viewer.handleOldJvm10Event(J.api.Event.MOUSE_UP,d[0],d[1],d[2],System.currentTimeMillis())}});k.applet._is2D&&$(window).resize(function(){if(k.applet){var d="__resizeTimeout_"+k.applet._id;b[d]&&clearTimeout(b[d]);b[d]=setTimeout(function(){b._repaint(k.applet,!0);b[d]=null},100)}});$("body").bind("mouseup touchend",function(){k.applet&&(k.isDragging=!1)})};b._jsUnsetMouse=function(b){b.applet=null;$(b).unbind("mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter")}; b._jsSetPrototype=function(k){k._init=function(){this._setupJS();this._showInfo(!0);this._disableInitialConsole&&this._showInfo(!1)};k._cover=function(g){if(g||!this._deferApplet)this._displayCoverImage(g);else{var d=this._coverScript?this._coverScript:"";this._coverScript="";this._deferUncover&&(d+=";refresh;javascript "+this._id+"._displayCoverImage(false)");this._script(d,!0);this._deferUncover&&"activate 3D model"==this._coverTitle&&(b._getElement(this,"coverimage").title="3D model is loading..."); this._start();this._deferUncover||this._displayCoverImage(g);this._init&&this._init()}};k._displayCoverImage=function(g){this._coverImage&&this._isCovered!=g&&(this._isCovered=g,b._getElement(this,"coverdiv").style.display=g?"block":"none")};k._createCanvas=function(g,d,c,l){b._setObject(this,g,d);l&&(this._GLmol=l,this._GLmol.applet=this,this._GLmol.id=this._id);l=b._getWrapper(this,!0);this._deferApplet||(b._document?(b._documentWrite(l),this._getCanvas(!1),l=""):(this._deferApplet=!0,l+='