/*! * jQuery JavaScript Library v1.10.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-24T18:39Z */ !function(m,k){function s(e){var t=e.length,n=Ae.type(e);return!Ae.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&0").css("cssText","display:block !important")).appendTo(t.documentElement))[0].contentWindow||lt[0].contentDocument).document).write(""),t.close(),n=A(e,t),lt.detach()),bt[e]=n),n}function A(e,t){var n=Ae(t.createElement(e)).appendTo(t.body),r=Ae.css(n[0],"display");return n.remove(),r}function D(n,e,r,i){var t;if(Ae.isArray(e))Ae.each(e,function(e,t){r||Nt.test(n)?i(n,t):D(n+"["+("object"==typeof t?e:"")+"]",t,r,i)});else if(r||"object"!==Ae.type(e))i(n,e);else for(t in e)D(n+"["+t+"]",e[t],r,i)}function L(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(fe)||[];if(Ae.isFunction(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function H(t,i,o,a){function s(e){var r;return l[e]=!0,Ae.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||l[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),s(n),!1)}),r}var l={},u=t===Wt;return s(i.dataTypes[0])||!l["*"]&&s("*")}function q(e,t){var n,r,i=Ae.ajaxSettings.flatOptions||{};for(r in t)t[r]!==k&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&Ae.extend(!0,e,n),e}function F(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),i===k&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}function _(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function M(){try{return new m.XMLHttpRequest}catch(e){}}function O(){try{return new m.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function R(){return setTimeout(function(){Gt=k}),Gt=Ae.now()}function B(e,t,n){for(var r,i=(nn[t]||[]).concat(nn["*"]),o=0,a=i.length;o)[^>]*|#([\w-]*))$/,he=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,me=/^[\],:{}\s]*$/,ge=/(?:^|:|,)(?:\s*\[)+/g,ye=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ve=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,be=/^-ms-/,xe=/-([\da-z])/gi,we=function(e,t){return t.toUpperCase()},Te=function(e){(G.addEventListener||"load"===e.type||"complete"===G.readyState)&&(ke(),Ae.ready())},ke=function(){G.addEventListener?(G.removeEventListener("DOMContentLoaded",Te,!1),m.removeEventListener("load",Te,!1)):(G.detachEvent("onreadystatechange",Te),m.detachEvent("onload",Te))};Ae.fn=Ae.prototype={jquery:ne,constructor:Ae,init:function(e,t,n){var r,i;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):Ae.isFunction(e)?n.ready(e):(e.selector!==k&&(this.selector=e.selector,this.context=e.context),Ae.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:de.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof Ae?t[0]:t,Ae.merge(this,Ae.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:G,!0)),he.test(r[1])&&Ae.isPlainObject(t))for(r in t)Ae.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((i=G.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return n.find(e);this.length=1,this[0]=i}return this.context=G,this.selector=e,this},selector:"",length:0,toArray:function(){return oe.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=Ae.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Ae.each(this,e,t)},ready:function(e){return Ae.ready.promise().done(e),this},slice:function(){return this.pushStack(oe.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&nA.cacheLength&&delete n[r.shift()],n[e]=t}var r=[];return n}function l(e){return e[I]=!0,e}function r(e){var t=M.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t,n){for(var r,i=(e=e.split("|")).length,o=n?null:t;i--;)(r=A.attrHandle[e[i]])&&r!==t||(A.attrHandle[e[i]]=o)}function a(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:!0===e[t]?t.toLowerCase():null}function s(e,t){return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}function u(e){if("input"===e.nodeName.toLowerCase())return e.defaultValue}function c(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Z)-(~e.sourceIndex||Z);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function f(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function p(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function d(a){return l(function(o){return o=+o,l(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function m(e,t){var n,r,i,o,a,s,l,u=Y[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=A.preFilter;a;){for(o in n&&!(r=he.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=me.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(de," ")}),a=a.slice(n.length)),A.filter)!(r=xe[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?w.error(e):Y(e,s).slice(0)}function g(e){for(var t=0,n=e.length,r="";t+~]|"+le+")"+le+"*"),ge=new RegExp(le+"*[+~]"),ye=new RegExp("="+le+"*([^\\]'\"]*)"+le+"*\\]","g"),ve=new RegExp(pe),be=new RegExp("^"+ce+"$"),xe={ID:new RegExp("^#("+ue+")"),CLASS:new RegExp("^\\.("+ue+")"),TAG:new RegExp("^("+ue.replace("w","w*")+")"),ATTR:new RegExp("^"+fe),PSEUDO:new RegExp("^"+pe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+le+"*(even|odd|(([+-]|)(\\d*)n|)"+le+"*(?:([+-]|)"+le+"*(\\d+)|))"+le+"*\\)|)","i"),bool:new RegExp("^(?:"+se+")$","i"),needsContext:new RegExp("^"+le+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+le+"*((?:-\\d)?\\d*)"+le+"*\\)|)(?=[^-]|$)","i")},we=/^[^{]+\{\s*\[native \w/,Te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ke=/^(?:input|select|textarea|button)$/i,Ce=/^h\d$/i,Ne=/'|\\/g,Se=new RegExp("\\\\([\\da-f]{1,6}"+le+"?|("+le+")|.)","ig"),Ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{ie.apply(te=oe.call(z.childNodes),z.childNodes),te[z.childNodes.length].nodeType}catch(je){ie={apply:te.length?function(e,t){re.apply(e,oe.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}for(S in L=w.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},E=w.support={},_=w.setDocument=function(e){var l=e?e.ownerDocument||e:z;return l!==M&&9===l.nodeType&&l.documentElement?(O=(M=l).documentElement,R=!L(l),E.attributes=r(function(e){return e.innerHTML="",o("type|href|height|width",s,"#"===e.firstChild.getAttribute("href")),o(se,a,null==e.getAttribute("disabled")),e.className="i",!e.getAttribute("className")}),E.input=r(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}),o("value",u,E.attributes&&E.input),E.getElementsByTagName=r(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),E.getElementsByClassName=r(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),E.getById=r(function(e){return O.appendChild(e).id=I,!l.getElementsByName||!l.getElementsByName(I).length}),E.getById?(A.find.ID=function(e,t){if(typeof t.getElementById!==K&&R){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},A.filter.ID=function(e){var t=e.replace(Se,Ee);return function(e){return e.getAttribute("id")===t}}):(delete A.find.ID,A.filter.ID=function(e){var n=e.replace(Se,Ee);return function(e){var t=typeof e.getAttributeNode!==K&&e.getAttributeNode("id");return t&&t.value===n}}),A.find.TAG=E.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==K)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},A.find.CLASS=E.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==K&&R)return t.getElementsByClassName(e)},P=[],B=[],(E.qsa=t(l.querySelectorAll))&&(r(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||B.push("\\["+le+"*(?:value|"+se+")"),e.querySelectorAll(":checked").length||B.push(":checked")}),r(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&B.push("[*^$]="+le+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||B.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),B.push(",.*:")})),(E.matchesSelector=t($=O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(e){E.disconnectedMatch=$.call(e,"div"),$.call(e,"[s!='']:x"),P.push("!=",pe)}),B=B.length&&new RegExp(B.join("|")),P=P.length&&new RegExp(P.join("|")),W=t(O.contains)||O.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E.sortDetached=r(function(e){return 1&e.compareDocumentPosition(l.createElement("div"))}),Q=O.compareDocumentPosition?function(e,t){if(e===t)return G=!0,0;var n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return n?1&n||!E.sortDetached&&t.compareDocumentPosition(e)===n?e===l||W(z,e)?-1:t===l||W(z,t)?1:F?ae.call(F,e)-ae.call(F,t):0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(e===t)return G=!0,0;if(!i||!o)return e===l?-1:t===l?1:i?-1:o?1:F?ae.call(F,e)-ae.call(F,t):0;if(i===o)return c(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?c(a[r],s[r]):a[r]===z?-1:s[r]===z?1:0},l):M},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if((e.ownerDocument||e)!==M&&_(e),t=t.replace(ye,"='$1']"),E.matchesSelector&&R&&(!P||!P.test(t))&&(!B||!B.test(t)))try{var n=$.call(e,t);if(n||E.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(je){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Se,Ee),e[3]=(e[4]||e[5]||"").replace(Se,Ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||w.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return xe.CHILD.test(e[0])?null:(e[3]&&e[4]!==i?e[2]=e[4]:n&&ve.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Se,Ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=V[e+" "];return t||(t=new RegExp("(^|"+le+")"+e+"("+le+"|$)"))&&V(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==K&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=w.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1
a",e=c.getElementsByTagName("*")||[],!(t=c.getElementsByTagName("a")[0])||!t.style||!e.length)return o;a=(r=G.createElement("select")).appendChild(G.createElement("option")),n=c.getElementsByTagName("input")[0],t.style.cssText="top:1px;float:left;opacity:.5",o.getSetAttribute="t"!==c.className,o.leadingWhitespace=3===c.firstChild.nodeType,o.tbody=!c.getElementsByTagName("tbody").length,o.htmlSerialize=!!c.getElementsByTagName("link").length,o.style=/top/.test(t.getAttribute("style")),o.hrefNormalized="/a"===t.getAttribute("href"),o.opacity=/^0.5/.test(t.style.opacity),o.cssFloat=!!t.style.cssFloat,o.checkOn=!!n.value,o.optSelected=a.selected,o.enctype=!!G.createElement("form").enctype,o.html5Clone="<:nav>"!==G.createElement("nav").cloneNode(!0).outerHTML,o.inlineBlockNeedsLayout=!1,o.shrinkWrapBlocks=!1,o.pixelPosition=!1,o.deleteExpando=!0,o.noCloneEvent=!0,o.reliableMarginRight=!0,o.boxSizingReliable=!0,n.checked=!0,o.noCloneChecked=n.cloneNode(!0).checked,r.disabled=!0,o.optDisabled=!a.disabled;try{delete c.test}catch(f){o.deleteExpando=!1}for(u in(n=G.createElement("input")).setAttribute("value",""),o.input=""===n.getAttribute("value"),n.value="t",n.setAttribute("type","radio"),o.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),(i=G.createDocumentFragment()).appendChild(n),o.appendChecked=n.checked,o.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,c.attachEvent&&(c.attachEvent("onclick",function(){o.noCloneEvent=!1}),c.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})c.setAttribute(s="on"+u,"t"),o[u+"Bubbles"]=s in m||!1===c.attributes[s].expando;for(u in c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===c.style.backgroundClip,Ae(o))break;return o.ownLast="0"!==u,Ae(function(){var e,t,n,r="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",i=G.getElementsByTagName("body")[0];i&&((e=G.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",i.appendChild(e).appendChild(c),c.innerHTML="
t
",(n=c.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",o.reliableHiddenOffsets=l&&0===n[0].offsetHeight,c.innerHTML="",c.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",Ae.swap(i,null!=i.style.zoom?{zoom:1}:{},function(){o.boxSizing=4===c.offsetWidth}),m.getComputedStyle&&(o.pixelPosition="1%"!==(m.getComputedStyle(c,null)||{}).top,o.boxSizingReliable="4px"===(m.getComputedStyle(c,null)||{width:"4px"}).width,(t=c.appendChild(G.createElement("div"))).style.cssText=c.style.cssText=r,t.style.marginRight=t.style.width="0",c.style.width="1px",o.reliableMarginRight=!parseFloat((m.getComputedStyle(t,null)||{}).marginRight)),typeof c.style.zoom!==Y&&(c.innerHTML="",c.style.cssText=r+"width:1px;padding:1px;display:inline;zoom:1",o.inlineBlockNeedsLayout=3===c.offsetWidth,c.style.display="block",c.innerHTML="
",c.firstChild.style.width="5px",o.shrinkWrapBlocks=3!==c.offsetWidth,o.inlineBlockNeedsLayout&&(i.style.zoom=1)),i.removeChild(e),e=c=n=t=null)}),e=r=i=a=t=n=null,o}({});var Ne=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Se=/([A-Z])/g;Ae.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?Ae.cache[e[Ae.expando]]:e[Ae.expando])&&!u(e)},data:function(e,t,n){return r(e,t,n)},removeData:function(e,t){return n(e,t)},_data:function(e,t,n){return r(e,t,n,!0)},_removeData:function(e,t){return n(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&Ae.noData[e.nodeName.toLowerCase()];return!t||!0!==t&&e.getAttribute("classid")===t}}),Ae.fn.extend({data:function(e,t){var n,r,i=null,o=0,a=this[0];if(e!==k)return"object"==typeof e?this.each(function(){Ae.data(this,e)}):1]","i"),Je=/^\s+/,Ge=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Qe=/<([\w:]+)/,Ke=/\s*$/g,at={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:Ae.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},st=g(G).appendChild(G.createElement("div"));at.optgroup=at.option,at.tbody=at.tfoot=at.colgroup=at.caption=at.thead,at.th=at.td,Ae.fn.extend({text:function(e){return Ae.access(this,function(e){return e===k?Ae.text(this):this.empty().append((this[0]&&this[0].ownerDocument||G).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||f(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?Ae.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||Ae.cleanData(x(n)),n.parentNode&&(t&&Ae.contains(n.ownerDocument,n)&&b(x(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&Ae.cleanData(x(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&Ae.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Ae.clone(this,e,t)})},html:function(e){return Ae.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===k)return 1===t.nodeType?t.innerHTML.replace(Ve,""):k;if("string"==typeof e&&!et.test(e)&&(Ae.support.htmlSerialize||!Ye.test(e))&&(Ae.support.leadingWhitespace||!Je.test(e))&&!at[(Qe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Ge,"<$1>");try{for(;n")?o=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(o=st.firstChild)),!(Ae.support.noCloneEvent&&Ae.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Ae.isXMLDoc(e)))for(r=x(o),s=x(e),a=0;null!=(i=s[a]);++a)r[a]&&d(i,r[a]);if(t)if(n)for(s=s||x(e),r=r||x(o),a=0;null!=(i=s[a]);a++)p(i,r[a]);else p(e,o);return 0<(r=x(o,"script")).length&&b(r,!l&&x(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,f=e.length,p=g(t),d=[],h=0;h")+c[2],i=c[0];i--;)s=s.lastChild;if(!Ae.support.leadingWhitespace&&Je.test(o)&&d.push(t.createTextNode(Je.exec(o)[0])),!Ae.support.tbody)for(i=(o="table"!==l||Ke.test(o)?""!==c[1]||Ke.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)Ae.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(Ae.merge(d,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else d.push(t.createTextNode(o));for(s&&p.removeChild(s),Ae.support.appendChecked||Ae.grep(x(d,"input"),w),h=0;o=d[h++];)if((!r||-1===Ae.inArray(o,r))&&(a=Ae.contains(o.ownerDocument,o),s=x(p.appendChild(o),"script"),a&&b(s),n))for(i=0;o=s[i++];)rt.test(o.type||"")&&n.push(o);return s=null,p},cleanData:function(e,t){for(var n,r,i,o,a=0,s=Ae.expando,l=Ae.cache,u=Ae.support.deleteExpando,c=Ae.event.special;null!=(n=e[a]);a++)if((t||Ae.acceptData(n))&&(o=(i=n[s])&&l[i])){if(o.events)for(r in o.events)c[r]?Ae.event.remove(n,r):Ae.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==Y?n.removeAttribute(s):n[s]=null,te.push(i))}},_evalUrl:function(e){return Ae.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),Ae.fn.extend({wrapAll:function(t){if(Ae.isFunction(t))return this.each(function(e){Ae(this).wrapAll(t.call(this,e))});if(this[0]){var e=Ae(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return Ae.isFunction(n)?this.each(function(e){Ae(this).wrapInner(n.call(this,e))}):this.each(function(){var e=Ae(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=Ae.isFunction(t);return this.each(function(e){Ae(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){Ae.nodeName(this,"body")||Ae(this).replaceWith(this.childNodes)}).end()}});var lt,ut,ct,ft=/alpha\([^)]*\)/i,pt=/opacity\s*=\s*([^)]*)/,dt=/^(top|right|bottom|left)$/,ht=/^(none|table(?!-c[ea]).+)/,mt=/^margin/,gt=new RegExp("^("+ce+")(.*)$","i"),yt=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),vt=new RegExp("^([+-])=("+ce+")","i"),bt={BODY:"block"},xt={position:"absolute",visibility:"hidden",display:"block"},wt={letterSpacing:0,fontWeight:400},Tt=["Top","Right","Bottom","Left"],kt=["Webkit","O","Moz","ms"];Ae.fn.extend({css:function(e,t){return Ae.access(this,function(e,t,n){var r,i,o={},a=0;if(Ae.isArray(t)){for(i=ut(e),r=t.length;a").append(Ae.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},Ae.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Ae.fn[t]=function(e){return this.on(t,e)}}),Ae.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dt,type:"GET",isLocal:Mt.test(At[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Ae.parseJSON,"text xml":Ae.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?q(q(e,Ae.ajaxSettings),t):q(Ae.ajaxSettings,e)},ajaxPrefilter:L($t),ajaxTransport:L(Wt),ajax:function(e,t){function n(e,t,n,r){var i,o,a,s,l,u=t;2!==w&&(w=2,p&&clearTimeout(p),h=k,f=r||"",T.readyState=0'),s='';o!==p&&i!==p&&(s+=''),r&&a.attr("target",r),a.hide().append(s).appendTo("body"),a.submit()},disableFormElements:function(e){e.find(d.disableSelector).each(function(){var e=f(this),t=e.is("button")?"html":"val";e.data("ujs:enable-with",e[t]()),e[t](e.data("disable-with")),e.prop("disabled",!0)})},enableFormElements:function(e){e.find(d.enableSelector).each(function(){var e=f(this),t=e.is("button")?"html":"val";e.data("ujs:enable-with")&&e[t](e.data("ujs:enable-with")),e.prop("disabled",!1)})},allowAction:function(e){var t,n=e.data("confirm"),r=!1;return!n||(d.fire(e,"confirm")&&(r=d.confirm(n),t=d.fire(e,"confirm:complete",[r])),r&&t)},blankInputs:function(e,t,n){var r,i=f(),o=t||"input,textarea",a=e.find(o);return a.each(function(){if(r=f(this),!(r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):r.val())==!n){if(r.is("input[type=radio]")&&a.filter('input[type=radio]:checked[name="'+r.attr("name")+'"]').length)return!0;i=i.add(r)}}),!!i.length&&i},nonBlankInputs:function(e,t){return d.blankInputs(e,t,!0)},stopEverything:function(e){return f(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(e){e.data("ujs:enable-with",e.html()),e.html(e.data("disable-with")),e.bind("click.railsDisable",function(e){return d.stopEverything(e)})},enableElement:function(e){e.data("ujs:enable-with")!==p&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable")}},d.fire(f(document),"rails:attachBindings")&&(f.ajaxPrefilter(function(e,t,n){e.crossDomain||d.CSRFProtection(n)}),f(document).delegate(d.linkDisableSelector,"ajax:complete",function(){d.enableElement(f(this))}),f(document).delegate(d.linkClickSelector,"click.rails",function(e){var t=f(this),n=t.data("method"),r=t.data("params");if(!d.allowAction(t))return d.stopEverything(e);if(t.is(d.linkDisableSelector)&&d.disableElement(t),t.data("remote")===p)return t.data("method")?(d.handleMethod(t),!1):void 0;if((e.metaKey||e.ctrlKey)&&(!n||"GET"===n)&&!r)return!0;var i=d.handleRemote(t);return!1===i?d.enableElement(t):i.error(function(){d.enableElement(t)}),!1}),f(document).delegate(d.buttonClickSelector,"click.rails",function(e){var t=f(this);return d.allowAction(t)?(d.handleRemote(t),!1):d.stopEverything(e)}),f(document).delegate(d.inputChangeSelector,"change.rails",function(e){var t=f(this);return d.allowAction(t)?(d.handleRemote(t),!1):d.stopEverything(e)}),f(document).delegate(d.formSubmitSelector,"submit.rails",function(e){var t=f(this),n=t.data("remote")!==p,r=d.blankInputs(t,d.requiredInputSelector),i=d.nonBlankInputs(t,d.fileInputSelector);if(!d.allowAction(t))return d.stopEverything(e);if(r&&t.attr("novalidate")==p&&d.fire(t,"ajax:aborted:required",[r]))return d.stopEverything(e);if(n){if(i){setTimeout(function(){d.disableFormElements(t)},13);var o=d.fire(t,"ajax:aborted:file",[i]);return o||setTimeout(function(){d.enableFormElements(t)},13),o}return d.handleRemote(t),!1}setTimeout(function(){d.disableFormElements(t)},13)}),f(document).delegate(d.formInputClickSelector,"click.rails",function(e){var t=f(this);if(!d.allowAction(t))return d.stopEverything(e);var n=t.attr("name"),r=n?{name:n,value:t.val()}:null;t.closest("form").data("ujs:submit-button",r)}),f(document).delegate(d.formSubmitSelector,"ajax:beforeSend.rails",function(e){this==e.target&&d.disableFormElements(f(this))}),f(document).delegate(d.formSubmitSelector,"ajax:complete.rails",function(e){this==e.target&&d.enableFormElements(f(this))}),f(function(){var e=f("meta[name=csrf-token]").attr("content"),t=f("meta[name=csrf-param]").attr("content");f('form input[name="'+t+'"]').val(e)}))}(jQuery),$(function(){$(document).ready(function(){$(".tree ul:first > li:first").addClass("branch_start"),$(".tree ul").find("li:last").addClass("branch_end"),$("ul.tristate").tristate(),$(".tree").delegate(".toggle","click",function(e){e.preventDefault();var t=$(this).parents("li:first"),n=t.find(".icon.toggle"),r=t.find(".nested");n.hasClass("expanded")?(n.removeClass("expanded"),r.slideUp()):(n.addClass("expanded"),r.slideDown())})})}),function(o){o.fn.tristate=function(e){var i={selector:o(this).selector,checked:null,container:null,siblings:null};o.extend(i,e);return this.each(function(){var r,e=o(this),t=r={init:function(){o('input[type="checkbox"]',e).change(function(){i.checked=o(this).prop("checked"),i.container=o(this).parent(),i.siblings=i.container.siblings(),i.container.find('input[type="checkbox"]').prop({indeterminate:!1,checked:i.checked}),r.checkSiblings(i.container)}),o("input[type=checkbox]:checked",e).each(function(){r.checkSiblings(o(this).parent())})},checkSiblings:function(e){var t=e.parent().parent(),n=!0;e.siblings().each(function(){return n=o(this).children('input[type="checkbox"]').prop("checked")===i.checked}),n&&i.checked?(t.children('input[type="checkbox"]').prop({indeterminate:!1,checked:i.checked}),r.checkSiblings(t)):n&&!i.checked?(t.children('input[type="checkbox"]').prop("checked",i.checked),t.children('input[type="checkbox"]').prop("indeterminate",0'),$("body").append(''))};