(function(y,a,t){y=y||(function(M){return{ajax:M.ajax,$:function(N){return M(N)[0]},replaceWith:function(N,R){var Q=M(N)[0];var P=Q.nextSibling,O=Q.parentNode;M(Q).remove();if(P){M(P).before(R)}else{M(O).append(R)}}}})(a.jQuery);function F(P,O){for(var N=0,M=P.length;N<M;N++){O(P[N])}}function r(M){return Object.prototype.toString.call(M)==="[object Function]"}function m(M){return Object.prototype.toString.call(M)==="[object String]"}function q(O,N,M){return Array.prototype.slice.call(O,N||0,M||O&&O.length)}function x(P,O){var M=false;F(P,N);function N(Q){return !(M=O(Q))}return M}function f(M,N){setTimeout(function(){M[N]()},1)}function g(M){this._queue=[];this._children=[];this._parent=M;if(M){M._register(this)}}g.prototype={_paused:false,push:function(M){this._queue.push(M);this._next()},pause:function(){this._paused=true},resume:function(){this._paused=false;this._next(true)},_register:function(M){this._children.push(M)},_isPaused:function(){return this._paused||x(this._children,M);function M(N){return N._isPaused()}},_next:function(M){var N;if(!this._isPaused()){if((N=this._queue.shift())){N();this._next()}else{if(this._parent){if(M){f(this._parent,"_next")}else{this._parent._next()}}}}}};function C(){}C.prototype={_html:"",open:function(){this._opened=true;if(this._delegate){this._delegate.open()}},write:function(M){if(this._closed){return}this._written=true;if(this._delegate){this._delegate.write(M)}else{this._html+=M}},writeln:function(M){this.write(M+"\n")},close:function(){this._closed=true;if(this._delegate){this._delegate.close()}},copyTo:function(M){this._delegate=M;M.foobar=true;if(this._opened){M.open()}if(this._written){M.write(this._html)}if(this._closed){M.close()}}};function s(){var P={write:a.document.write,writeln:a.document.writeln,getEl:a.document.getElementById,tempEls:[],finish:function(){F(this.tempEls,function(R){var S=a.document.getElementById(R.id);if(!S){throw"No element with id: "+R.id}F(R.el.childNodes,function(T){S.appendChild(T)});if(S.contentWindow){a.setTimeout(function(){R.el.contentWindow.document.copyTo(S.contentWindow.document)},1)}})},out:""};a.document.write=O;a.document.writeln=N;if(l.proxyGetElementById){a.document.getElementById=M}function O(R){P.out+=R}function N(R){P.out+=R+"\n"}function Q(S){var R=a.document.createElement("div");P.tempEls.push({id:S,el:R});R.contentWindow={document:new C()};return R}function M(S){var R=P.getEl.call(a.document,S);return R||Q(S)}return P}function J(M){a.document.write=M.write;a.document.writeln=M.writeln;if(l.proxyGetElementById){a.document.getElementById=M.getEl}return M.out}function D(M){return M&&M.replace(/^\s*<!(\[CDATA\[|--)/,"").replace(/(\]\]|--)>\s*$/,"")}function b(){}function d(N,M){console.error("Error",M,"executing code:",N)}var i=r(a.console&&console.error)?d:b;function H(M){var N=s();try{t(D(M))}catch(O){i(M,O)}finally{J(N)}return N}function E(N){var M=/^(\w+:)?\/\/([^\/?#]+)/.exec(N);return M&&(M[1]&&M[1]!=location.protocol||M[2]!=location.host)}function I(M){return new RegExp(M+"=(?:([\"'])(.*?)\\1|([^\\s>]+))","i")}function h(M){var N=I(M);return function(O){var P=N.exec(O)||[];return P[2]||P[3]}}var o=/(<script[\s\S]*?>)([\s\S]*?)<\/script>/ig,k=I("src"),K=h("src"),n=h("type"),L=h("language"),w="__document_write_ajax_callbacks__",v="__document_write_ajax_div-",e="window['"+w+"']['%d']();",j=a[w]={},B=0;function c(){return(++B).toString()}function A(N,O){var M;if(r(N)){M=N;N=null}N=N||{};M=M||N&&N.done;N.done=O?function(){O(M)}:M;return N}var u=new g();function G(R,P,Q){var N=Q&&new g(Q)||u;P=A(P);var O=P.done;var S="";if(r(O)){var M=c();j[M]=function(){N.push(O);delete j[M]};S='<script type="text/javascript">'+e.replace(/%d/,M)+"<\/script>"}return R.replace(o,T)+S;function T(W,af,V){var Z=K(af),Y=n(af)||"",al=L(af)||"",aj=(!Y&&!al)||Y.toLowerCase().indexOf("javascript")!==-1||al.toLowerCase().indexOf("javascript")!==-1;var ag=c(),aa=v+ag;var ae;if(!aj){return W}if(Z&&r(l.fixUrls)){Z=l.fixUrls(Z)}j[ag]=ab;function ab(){N.push(ae);delete j[ag]}if(Z){af=af.replace(k,"");if(E(Z)){ae=ak}else{if(P.asyncAll){ae=ai()}else{ae=ad}}}else{ae=ah}function ah(){U(V)}function ad(){y.ajax({url:Z,type:"GET",async:false,success:U})}function X(ao,am,an){i("<XHR for "+Z+">",an);N.resume()}function ai(){var ao,an;function am(aq,ap){if(!ao){an=aq;return}try{U(aq)}catch(ar){i(aq,ar)}finally{N.resume()}}y.ajax({url:Z,type:"GET",async:true,success:am,error:X});return function(){ao=true;if(an){U(an)}else{N.pause()}}}function ak(am){var ao=s();N.pause();y.ajax({url:Z,type:"GET",dataType:"script",success:an,error:X});function an(ar,aq,ap){ac(J(ao));ao.finish();N.resume()}}function U(am){var an=H(am);ac(an.out);an.finish()}function ac(am){y.replaceWith("#"+aa,G(am,null,N))}return af+e.replace(/%d/,ag)+'<\/script><div style="display: none" id="'+aa+'"></div>'}}function z(N,O){var M=u;F(N,function(P){M.push(Q);function Q(){P.action(G(P.html,P.options,M),P)}});if(O){M.push(O)}}var p="writeCapture";var l=a[p]={_original:a[p],fixUrls:function(M){return M.replace(/&amp;/g,"&")},noConflict:function(){a[p]=this._original;return this},proxyGetElementById:false,_forTest:{Q:g,$:y,matchAttr:h,slice:q,capture:s,uncapture:J,captureWrite:H},replaceWith:function(M,O,N){y.replaceWith(M,G(O,N))},html:function(M,P,N){var O=y.$(M);O.innerHTML="<span/>";y.replaceWith(O.firstChild,G(P,N))},load:function(M,O,N){y.ajax({url:O,type:"GET",success:function(P){l.html(M,P,N)}})},sanitize:G,sanitizeSerial:z}})(this.writeCaptureSupport,this,eval);(function(g,d,n){var c={html:h};g.each(["append","prepend","after","before","wrap","wrapAll","replaceWith","wrapInner"],function(){c[this]=i(this)});function a(q){return Object.prototype.toString.call(q)=="[object String]"}function p(u,t,s,r){if(arguments.length==0){return o.call(this)}var q=c[u];if(u=="load"){return l.call(this,t,s,r)}if(!q){j(u)}return b.call(this,t,s,q)}g.fn.writeCapture=p;var k="__writeCaptureJsProxied-fghebd__";function o(){if(this[k]){return this}var r=this;function q(){var t=this,s=false;this[k]=true;g.each(c,function(v){var u=r[v];if(!u){return}t[v]=function(y,x,w){if(!s&&a(y)){try{s=true;return p.call(t,v,y,x,w)}finally{s=false}}return u.apply(t,arguments)}});this.pushStack=function(){return o.call(r.pushStack.apply(t,arguments))};this.endCapture=function(){return r}}q.prototype=r;return new q()}function b(t,s,u){var q,r=this;if(s&&s.done){q=s.done;delete s.done}else{if(g.isFunction(s)){q=s;s=null}}d.sanitizeSerial(g.map(this,function(v){return{html:t,options:s,action:function(w){u.call(v,w)}}}),q&&function(){q.call(r)}||q);return this}function h(q){g(this).html(q)}function i(q){return function(r){g(this)[q](r)}}function l(t,s,v){var r=this,q,u=t.indexOf(" ");if(u>=0){q=t.slice(u,t.length);t=t.slice(0,u)}if(g.isFunction(v)){s=s||{};s.done=v}return g.ajax({url:t,type:s&&s.type||"GET",dataType:"html",data:s&&s.params,complete:f(r,s,q)})}function f(r,s,q){return function(u,t){if(t=="success"||t=="notmodified"){var v=m(u.responseText,q);b.call(r,v,s,h)}}}var e=/jquery-writeCapture-script-placeholder-(\d+)-wc/g;function m(s,r){if(!r||!s){return s}var t=0,q={};return g("<div/>").append(s.replace(/<script(.|\s)*?\/script>/g,function(u){q[t]=u;return"jquery-writeCapture-script-placeholder-"+(t++)+"-wc"})).find(r).html().replace(e,function(u,v){return q[v]})}function j(q){throw"invalid method parameter "+q}g.writeCapture=d})(jQuery,writeCapture.noConflict());