var a;
(function(d,f){function i(){if(!e.isReady){try{D.documentElement.doScroll("left")}catch(b){setTimeout(i,1);return}e.ready()}}function h(b,c){c.src?e.ajax({url:c.src,async:false,dataType:"script"}):e.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function m(b,c,g,k,j,q){var p=b.length;if(typeof c==="object"){for(var y in c)m(b,y,c[y],k,j,g);return b}if(g!==f){k=!q&&k&&e.isFunction(g);for(y=0;y<p;y++)j(b[y],c,k?g.call(b[y],y,j(b[y],c)):g,q);return b}return p?j(b[0],
c):f}function n(){return(new Date).getTime()}function s(){return false}function z(){return true}function F(b,c,g){g[0].type=b;return e.event.handle.apply(c,g)}function A(b){var c,g=[],k=[],j=arguments,q,p,y,t,x,E;p=e.data(this,"events");if(!(b.liveFired===this||!p||!p.live||b.button&&b.type==="click")){b.liveFired=this;var M=p.live.slice(0);for(t=0;t<M.length;t++){p=M[t];p.origType.replace(J,"")===b.type?k.push(p.selector):M.splice(t--,1)}q=e(b.target).closest(k,b.currentTarget);x=0;for(E=q.length;x<
E;x++)for(t=0;t<M.length;t++){p=M[t];if(q[x].selector===p.selector){y=q[x].elem;k=null;if(p.preType==="mouseenter"||p.preType==="mouseleave")k=e(b.relatedTarget).closest(p.selector)[0];if(!k||k!==y)g.push({elem:y,handleObj:p})}}x=0;for(E=g.length;x<E;x++){q=g[x];b.currentTarget=q.elem;b.data=q.handleObj.data;b.handleObj=q.handleObj;if(q.handleObj.origHandler.apply(q.elem,j)===false){c=false;break}}return c}}function H(b,c){return"live."+(b&&b!=="*"?b+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}
function O(b){return!b||!b.parentNode||b.parentNode.nodeType===11}function V(b,c){var g=0;c.each(function(){if(this.nodeName===(b[g]&&b[g].nodeName)){var k=e.data(b[g++]),j=e.data(this,k);if(k=k&&k.events){delete j.handle;j.events={};for(var q in k)for(var p in k[q])e.event.add(this,q,k[q][p],k[q][p].data)}}})}function X(b,c,g){var k,j,q;c=c&&c[0]?c[0].ownerDocument||c[0]:D;if(b.length===1&&typeof b[0]==="string"&&b[0].length<512&&c===D&&!$a.test(b[0])&&(e.support.checkClone||!ab.test(b[0]))){j=true;
if(q=e.fragments[b[0]])if(q!==1)k=q}if(!k){k=c.createDocumentFragment();e.clean(b,c,k,g)}if(j)e.fragments[b[0]]=q?k:1;return{fragment:k,cacheable:j}}function Y(b,c){var g={};e.each(bb.concat.apply([],bb.slice(0,c)),function(){g[this]=b});return g}function W(b){return"scrollTo"in b&&b.document?b:b.nodeType===9?b.defaultView||b.parentWindow:false}var e=function(b,c){return new e.fn.init(b,c)},da=d.jQuery,ta=d.$,D=d.document,ka,Oa=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aa=/^.[^:#\[\.,]*$/,na=/\S/,Pa=
/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ta=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,qa=navigator.userAgent,Ka=false,wa=[],fa,S=Object.prototype.toString,la=Object.prototype.hasOwnProperty,Fa=Array.prototype.push,ra=Array.prototype.slice,oa=Array.prototype.indexOf;e.fn=e.prototype={init:function(b,c){var g,k;if(!b)return this;if(b.nodeType){this.context=this[0]=b;this.length=1;return this}if(b==="body"&&!c){this.context=D;this[0]=D.body;this.selector="body";this.length=1;return this}if(typeof b==="string")if((g=Oa.exec(b))&&
(g[1]||!c))if(g[1]){k=c?c.ownerDocument||c:D;if(b=Ta.exec(b))if(e.isPlainObject(c)){b=[D.createElement(b[1])];e.fn.attr.call(b,c,true)}else b=[k.createElement(b[1])];else{b=X([g[1]],[k]);b=(b.cacheable?b.fragment.cloneNode(true):b.fragment).childNodes}return e.merge(this,b)}else{if(c=D.getElementById(g[2])){if(c.id!==g[2])return ka.find(b);this.length=1;this[0]=c}this.context=D;this.selector=b;return this}else if(!c&&/^\w+$/.test(b)){this.selector=b;this.context=D;b=D.getElementsByTagName(b);return e.merge(this,
b)}else return!c||c.jquery?(c||ka).find(b):e(c).find(b);else if(e.isFunction(b))return ka.ready(b);if(b.selector!==f){this.selector=b.selector;this.context=b.context}return e.makeArray(b,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ra.call(this,0)},get:function(b){return b==null?this.toArray():b<0?this.slice(b)[0]:this[b]},pushStack:function(b,c,g){var k=e();e.isArray(b)?Fa.apply(k,b):e.merge(k,b);k.prevObject=this;k.context=this.context;
if(c==="find")k.selector=this.selector+(this.selector?" ":"")+g;else if(c)k.selector=this.selector+"."+c+"("+g+")";return k},each:function(b,c){return e.each(this,b,c)},ready:function(b){e.bindReady();if(e.isReady)b.call(D,e);else wa&&wa.push(b);return this},eq:function(b){return b===-1?this.slice(b):this.slice(b,+b+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ra.apply(this,arguments),"slice",ra.call(arguments).join(","))},map:function(b){return this.pushStack(e.map(this,
function(c,g){return b.call(c,g,c)}))},end:function(){return this.prevObject||e(null)},push:Fa,sort:[].sort,splice:[].splice};e.fn.init.prototype=e.fn;e.extend=e.fn.extend=function(){var b=arguments[0]||{},c=1,g=arguments.length,k=false,j,q,p,y;if(typeof b==="boolean"){k=b;b=arguments[1]||{};c=2}if(typeof b!=="object"&&!e.isFunction(b))b={};if(g===c){b=this;--c}for(;c<g;c++)if((j=arguments[c])!=null)for(q in j){p=b[q];y=j[q];if(b!==y)if(k&&y&&(e.isPlainObject(y)||e.isArray(y))){p=p&&(e.isPlainObject(p)||
e.isArray(p))?p:e.isArray(y)?[]:{};b[q]=e.extend(k,p,y)}else if(y!==f)b[q]=y}return b};e.extend({noConflict:function(b){d.$=ta;if(b)d.jQuery=da;return e},isReady:false,ready:function(){if(!e.isReady){if(!D.body)return setTimeout(e.ready,13);e.isReady=true;if(wa){for(var b,c=0;b=wa[c++];)b.call(D,e);wa=null}e.fn.triggerHandler&&e(D).triggerHandler("ready")}},bindReady:function(){if(!Ka){Ka=true;if(D.readyState==="complete")return e.ready();if(D.addEventListener){D.addEventListener("DOMContentLoaded",
fa,false);d.addEventListener("load",e.ready,false)}else if(D.attachEvent){D.attachEvent("onreadystatechange",fa);d.attachEvent("onload",e.ready);var b=false;try{b=d.frameElement==null}catch(c){}D.documentElement.doScroll&&b&&i()}}},isFunction:function(b){return S.call(b)==="[object Function]"},isArray:function(b){return S.call(b)==="[object Array]"},isPlainObject:function(b){if(!b||S.call(b)!=="[object Object]"||b.nodeType||b.setInterval)return false;if(b.constructor&&!la.call(b,"constructor")&&!la.call(b.constructor.prototype,
"isPrototypeOf"))return false;var c;for(c in b);return c===f||la.call(b,c)},isEmptyObject:function(b){for(var c in b)return false;return true},error:function(b){throw b;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=e.trim(b);if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d.JSON&&d.JSON.parse?d.JSON.parse(b):(new Function("return "+
b))();else e.error("Invalid JSON: "+b)},noop:function(){},globalEval:function(b){if(b&&na.test(b)){var c=D.getElementsByTagName("head")[0]||D.documentElement,g=D.createElement("script");g.type="text/javascript";if(e.support.scriptEval)g.appendChild(D.createTextNode(b));else g.text=b;c.insertBefore(g,c.firstChild);c.removeChild(g)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()===c.toUpperCase()},each:function(b,c,g){var k,j=0,q=b.length,p=q===f||e.isFunction(b);if(g)if(p)for(k in b){if(c.apply(b[k],
g)===false)break}else for(;j<q;){if(c.apply(b[j++],g)===false)break}else if(p)for(k in b){if(c.call(b[k],k,b[k])===false)break}else for(g=b[0];j<q&&c.call(g,j,g)!==false;g=b[++j]);return b},trim:function(b){return(b||"").replace(Pa,"")},makeArray:function(b,c){c=c||[];if(b!=null)b.length==null||typeof b==="string"||e.isFunction(b)||typeof b!=="function"&&b.setInterval?Fa.call(c,b):e.merge(c,b);return c},inArray:function(b,c){if(c.indexOf)return c.indexOf(b);for(var g=0,k=c.length;g<k;g++)if(c[g]===
b)return g;return-1},merge:function(b,c){var g=b.length,k=0;if(typeof c.length==="number")for(var j=c.length;k<j;k++)b[g++]=c[k];else for(;c[k]!==f;)b[g++]=c[k++];b.length=g;return b},grep:function(b,c,g){for(var k=[],j=0,q=b.length;j<q;j++)!g!==!c(b[j],j)&&k.push(b[j]);return k},map:function(b,c,g){for(var k=[],j,q=0,p=b.length;q<p;q++){j=c(b[q],q,g);if(j!=null)k[k.length]=j}return k.concat.apply([],k)},guid:1,proxy:function(b,c,g){if(arguments.length===2)if(typeof c==="string"){g=b;b=g[c];c=f}else if(c&&
!e.isFunction(c)){g=c;c=f}if(!c&&b)c=function(){return b.apply(g||this,arguments)};if(b)c.guid=b.guid=b.guid||c.guid||e.guid++;return c},uaMatch:function(b){b=b.toLowerCase();b=/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||!/compatible/.test(b)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(b)||[];return{browser:b[1]||"",version:b[2]||"0"}},browser:{}});qa=e.uaMatch(qa);if(qa.browser){e.browser[qa.browser]=true;e.browser.version=qa.version}if(e.browser.webkit)e.browser.safari=
true;if(oa)e.inArray=function(b,c){return oa.call(c,b)};ka=e(D);if(D.addEventListener)fa=function(){D.removeEventListener("DOMContentLoaded",fa,false);e.ready()};else if(D.attachEvent)fa=function(){if(D.readyState==="complete"){D.detachEvent("onreadystatechange",fa);e.ready()}};(function(){e.support={};var b=D.documentElement,c=D.createElement("script"),g=D.createElement("div"),k="script"+n();g.style.display="none";g.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var j=g.getElementsByTagName("*"),q=g.getElementsByTagName("a")[0];if(!(!j||!j.length||!q)){e.support={leadingWhitespace:g.firstChild.nodeType===3,tbody:!g.getElementsByTagName("tbody").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(q.getAttribute("style")),hrefNormalized:q.getAttribute("href")==="/a",opacity:/^0.55$/.test(q.style.opacity),cssFloat:!!q.style.cssFloat,checkOn:g.getElementsByTagName("input")[0].value==="on",optSelected:D.createElement("select").appendChild(D.createElement("option")).selected,
parentNode:g.removeChild(g.appendChild(D.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(D.createTextNode("window."+k+"=1;"))}catch(p){}b.insertBefore(c,b.firstChild);if(d[k]){e.support.scriptEval=true;delete d[k]}try{delete c.test}catch(y){e.support.deleteExpando=false}b.removeChild(c);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function t(){e.support.noCloneEvent=
false;g.detachEvent("onclick",t)});g.cloneNode(true).fireEvent("onclick")}g=D.createElement("div");g.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";b=D.createDocumentFragment();b.appendChild(g.firstChild);e.support.checkClone=b.cloneNode(true).cloneNode(true).lastChild.checked;e(function(){var t=D.createElement("div");t.style.width=t.style.paddingLeft="1px";D.body.appendChild(t);e.boxModel=e.support.boxModel=t.offsetWidth===2;D.body.removeChild(t).style.display="none"});b=function(t){var x=
D.createElement("div");t="on"+t;var E=t in x;if(!E){x.setAttribute(t,"return;");E=typeof x[t]==="function"}return E};e.support.submitBubbles=b("submit");e.support.changeBubbles=b("change");b=c=g=j=q=null}})();e.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ga="jQuery"+n(),xa=0,ya={};e.extend({cache:{},expando:ga,noData:{embed:true,
object:true,applet:true},data:function(b,c,g){if(!(b.nodeName&&e.noData[b.nodeName.toLowerCase()])){b=b==d?ya:b;var k=b[ga],j=e.cache;if(!k&&typeof c==="string"&&g===f)return null;k||(k=++xa);if(typeof c==="object"){b[ga]=k;j[k]=e.extend(true,{},c)}else if(!j[k]){b[ga]=k;j[k]={}}b=j[k];if(g!==f)b[c]=g;return typeof c==="string"?b[c]:b}},removeData:function(b,c){if(!(b.nodeName&&e.noData[b.nodeName.toLowerCase()])){b=b==d?ya:b;var g=b[ga],k=e.cache,j=k[g];if(c){if(j){delete j[c];e.isEmptyObject(j)&&
e.removeData(b)}}else{if(e.support.deleteExpando)delete b[e.expando];else b.removeAttribute&&b.removeAttribute(e.expando);delete k[g]}}}});e.fn.extend({data:function(b,c){if(typeof b==="undefined"&&this.length)return e.data(this[0]);else if(typeof b==="object")return this.each(function(){e.data(this,b)});var g=b.split(".");g[1]=g[1]?"."+g[1]:"";if(c===f){var k=this.triggerHandler("getData"+g[1]+"!",[g[0]]);if(k===f&&this.length)k=e.data(this[0],b);return k===f&&g[1]?this.data(g[0]):k}else return this.trigger("setData"+
g[1]+"!",[g[0],c]).each(function(){e.data(this,b,c)})},removeData:function(b){return this.each(function(){e.removeData(this,b)})}});e.extend({queue:function(b,c,g){if(b){c=(c||"fx")+"queue";var k=e.data(b,c);if(!g)return k||[];if(!k||e.isArray(g))k=e.data(b,c,e.makeArray(g));else k.push(g);return k}},dequeue:function(b,c){c=c||"fx";var g=e.queue(b,c),k=g.shift();if(k==="inprogress")k=g.shift();if(k){c==="fx"&&g.unshift("inprogress");k.call(b,function(){e.dequeue(b,c)})}}});e.fn.extend({queue:function(b,
c){if(typeof b!=="string"){c=b;b="fx"}if(c===f)return e.queue(this[0],b);return this.each(function(){var g=e.queue(this,b,c);b==="fx"&&g[0]!=="inprogress"&&e.dequeue(this,b)})},dequeue:function(b){return this.each(function(){e.dequeue(this,b)})},delay:function(b,c){b=e.fx?e.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var g=this;setTimeout(function(){e.dequeue(g,c)},b)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var Ba=/[\n\t]/g,Ca=/\s+/,Qa=/\r/g,ua=/href|src|style/,Ga=
/(button|input)/i,pa=/(button|input|object|select|textarea)/i,La=/^(a|area)$/i,Ma=/radio|checkbox/;e.fn.extend({attr:function(b,c){return m(this,b,c,true,e.attr)},removeAttr:function(b){return this.each(function(){e.attr(this,b,"");this.nodeType===1&&this.removeAttribute(b)})},addClass:function(b){if(e.isFunction(b))return this.each(function(x){var E=e(this);E.addClass(b.call(this,x,E.attr("class")))});if(b&&typeof b==="string")for(var c=(b||"").split(Ca),g=0,k=this.length;g<k;g++){var j=this[g];
if(j.nodeType===1)if(j.className){for(var q=" "+j.className+" ",p=j.className,y=0,t=c.length;y<t;y++)if(q.indexOf(" "+c[y]+" ")<0)p+=" "+c[y];j.className=e.trim(p)}else j.className=b}return this},removeClass:function(b){if(e.isFunction(b))return this.each(function(t){var x=e(this);x.removeClass(b.call(this,t,x.attr("class")))});if(b&&typeof b==="string"||b===f)for(var c=(b||"").split(Ca),g=0,k=this.length;g<k;g++){var j=this[g];if(j.nodeType===1&&j.className)if(b){for(var q=(" "+j.className+" ").replace(Ba,
" "),p=0,y=c.length;p<y;p++)q=q.replace(" "+c[p]+" "," ");j.className=e.trim(q)}else j.className=""}return this},toggleClass:function(b,c){var g=typeof b,k=typeof c==="boolean";if(e.isFunction(b))return this.each(function(j){var q=e(this);q.toggleClass(b.call(this,j,q.attr("class"),c),c)});return this.each(function(){if(g==="string")for(var j,q=0,p=e(this),y=c,t=b.split(Ca);j=t[q++];){y=k?y:!p.hasClass(j);p[y?"addClass":"removeClass"](j)}else if(g==="undefined"||g==="boolean"){this.className&&e.data(this,
"__className__",this.className);this.className=this.className||b===false?"":e.data(this,"__className__")||""}})},hasClass:function(b){b=" "+b+" ";for(var c=0,g=this.length;c<g;c++)if((" "+this[c].className+" ").replace(Ba," ").indexOf(b)>-1)return true;return false},val:function(b){if(b===f){var c=this[0];if(c){if(e.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(e.nodeName(c,"select")){var g=c.selectedIndex,k=[],j=c.options;c=c.type==="select-one";if(g<0)return null;
var q=c?g:0;for(g=c?g+1:j.length;q<g;q++){var p=j[q];if(p.selected){b=e(p).val();if(c)return b;k.push(b)}}return k}if(Ma.test(c.type)&&!e.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(Qa,"")}return f}var y=e.isFunction(b);return this.each(function(t){var x=e(this),E=b;if(this.nodeType===1){if(y)E=b.call(this,t,x.val());if(typeof E==="number")E+="";if(e.isArray(E)&&Ma.test(this.type))this.checked=e.inArray(x.val(),E)>=0;else if(e.nodeName(this,"select")){var M=
e.makeArray(E);e("option",this).each(function(){this.selected=e.inArray(e(this).val(),M)>=0});if(!M.length)this.selectedIndex=-1}else this.value=E}})}});e.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(b,c,g,k){if(!b||b.nodeType===3||b.nodeType===8)return f;if(k&&c in e.attrFn)return e(b)[c](g);k=b.nodeType!==1||!e.isXMLDoc(b);var j=g!==f;c=k&&e.props[c]||c;if(b.nodeType===1){var q=ua.test(c);if(c in b&&k&&!q){if(j){c==="type"&&Ga.test(b.nodeName)&&
b.parentNode&&e.error("type property can't be changed");b[c]=g}if(e.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;if(c==="tabIndex")return(c=b.getAttributeNode("tabIndex"))&&c.specified?c.value:pa.test(b.nodeName)||La.test(b.nodeName)&&b.href?0:f;return b[c]}if(!e.support.style&&k&&c==="style"){if(j)b.style.cssText=""+g;return b.style.cssText}j&&b.setAttribute(c,""+g);b=!e.support.hrefNormalized&&k&&q?b.getAttribute(c,2):b.getAttribute(c);return b===null?f:b}return e.style(b,
c,g)}});var J=/\.(.*)$/,r=function(b){return b.replace(/[^\w\s\.\|`]/g,function(c){return"\\"+c})};e.event={add:function(b,c,g,k){if(!(b.nodeType===3||b.nodeType===8)){if(b.setInterval&&b!==d&&!b.frameElement)b=d;var j,q;if(g.handler){j=g;g=j.handler}if(!g.guid)g.guid=e.guid++;if(q=e.data(b)){var p=q.events=q.events||{},y=q.handle;if(!y)q.handle=y=function(){return typeof e!=="undefined"&&!e.event.triggered?e.event.handle.apply(y.elem,arguments):f};y.elem=b;c=c.split(" ");for(var t,x=0,E;t=c[x++];){q=
j?e.extend({},j):{handler:g,data:k};if(t.indexOf(".")>-1){E=t.split(".");t=E.shift();q.namespace=E.slice(0).sort().join(".")}else{E=[];q.namespace=""}q.type=t;q.guid=g.guid;var M=p[t],U=e.event.special[t]||{};if(!M){M=p[t]=[];if(!U.setup||U.setup.call(b,k,E,y)===false)if(b.addEventListener)b.addEventListener(t,y,false);else b.attachEvent&&b.attachEvent("on"+t,y)}if(U.add){U.add.call(b,q);if(!q.handler.guid)q.handler.guid=g.guid}M.push(q);e.event.global[t]=true}b=null}}},global:{},remove:function(b,
c,g,k){if(!(b.nodeType===3||b.nodeType===8)){var j,q=0,p,y,t,x,E,M,U=e.data(b),ca=U&&U.events;if(U&&ca){if(c&&c.type){g=c.handler;c=c.type}if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(j in ca)e.event.remove(b,j+c)}else{for(c=c.split(" ");j=c[q++];){x=j;p=j.indexOf(".")<0;y=[];if(!p){y=j.split(".");j=y.shift();t=new RegExp("(^|\\.)"+e.map(y.slice(0).sort(),r).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(E=ca[j])if(g){x=e.event.special[j]||{};for(Z=k||0;Z<E.length;Z++){M=E[Z];if(g.guid===M.guid){if(p||
t.test(M.namespace)){k==null&&E.splice(Z--,1);x.remove&&x.remove.call(b,M)}if(k!=null)break}}if(E.length===0||k!=null&&E.length===1){if(!x.teardown||x.teardown.call(b,y)===false)v(b,j,U.handle);delete ca[j]}}else for(var Z=0;Z<E.length;Z++){M=E[Z];if(p||t.test(M.namespace)){e.event.remove(b,x,M.handler,Z);E.splice(Z--,1)}}}if(e.isEmptyObject(ca)){if(c=U.handle)c.elem=null;delete U.events;delete U.handle;e.isEmptyObject(U)&&e.removeData(b)}}}}},trigger:function(b,c,g,k){var j=b.type||b;if(!k){b=typeof b===
"object"?b[ga]?b:e.extend(e.Event(j),b):e.Event(j);if(j.indexOf("!")>=0){b.type=j=j.slice(0,-1);b.exclusive=true}if(!g){b.stopPropagation();e.event.global[j]&&e.each(e.cache,function(){this.events&&this.events[j]&&e.event.trigger(b,c,this.handle.elem)})}if(!g||g.nodeType===3||g.nodeType===8)return f;b.result=f;b.target=g;c=e.makeArray(c);c.unshift(b)}b.currentTarget=g;(k=e.data(g,"handle"))&&k.apply(g,c);k=g.parentNode||g.ownerDocument;try{if(!(g&&g.nodeName&&e.noData[g.nodeName.toLowerCase()]))if(g["on"+
j]&&g["on"+j].apply(g,c)===false)b.result=false}catch(q){}if(!b.isPropagationStopped()&&k)e.event.trigger(b,c,k,true);else if(!b.isDefaultPrevented()){k=b.target;var p,y=e.nodeName(k,"a")&&j==="click",t=e.event.special[j]||{};if((!t._default||t._default.call(g,b)===false)&&!y&&!(k&&k.nodeName&&e.noData[k.nodeName.toLowerCase()])){try{if(k[j]){if(p=k["on"+j])k["on"+j]=null;e.event.triggered=true;k[j]()}}catch(x){}if(p)k["on"+j]=p;e.event.triggered=false}}},handle:function(b){var c,g,k,j;b=arguments[0]=
e.event.fix(b||d.event);b.currentTarget=this;c=b.type.indexOf(".")<0&&!b.exclusive;if(!c){g=b.type.split(".");b.type=g.shift();k=new RegExp("(^|\\.)"+g.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}j=e.data(this,"events");g=j[b.type];if(j&&g){g=g.slice(0);j=0;for(var q=g.length;j<q;j++){var p=g[j];if(c||k.test(p.namespace)){b.handler=p.handler;b.data=p.data;b.handleObj=p;p=p.handler.apply(this,arguments);if(p!==f){b.result=p;if(p===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},
props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(b){if(b[ga])return b;var c=b;b=e.Event(c);for(var g=this.props.length,k;g;){k=this.props[--g];b[k]=c[k]}if(!b.target)b.target=b.srcElement||
D;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){c=D.documentElement;g=D.body;b.pageX=b.clientX+(c&&c.scrollLeft||g&&g.scrollLeft||0)-(c&&c.clientLeft||g&&g.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop||g&&g.scrollTop||0)-(c&&c.clientTop||g&&g.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&
b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==f)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:e.proxy,special:{ready:{setup:e.bindReady,teardown:e.noop},live:{add:function(b){e.event.add(this,b.origType,e.extend({},b,{handler:A}))},remove:function(b){var c=true,g=b.origType.replace(J,"");e.each(e.data(this,"events").live||[],function(){if(g===this.origType.replace(J,""))return c=false});c&&e.event.remove(this,b.origType,A)}},beforeunload:{setup:function(b,c,g){if(this.setInterval)this.onbeforeunload=
g;return false},teardown:function(b,c){if(this.onbeforeunload===c)this.onbeforeunload=null}}}};var v=D.removeEventListener?function(b,c,g){b.removeEventListener(c,g,false)}:function(b,c,g){b.detachEvent("on"+c,g)};e.Event=function(b){if(!this.preventDefault)return new e.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=n();this[ga]=true};e.Event.prototype={preventDefault:function(){this.isDefaultPrevented=z;var b=this.originalEvent;if(b){b.preventDefault&&
b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=z;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=z;this.stopPropagation()},isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s};var G=function(b){var c=b.relatedTarget;try{for(;c&&c!==this;)c=c.parentNode;if(c!==this){b.type=b.data;e.event.handle.apply(this,arguments)}}catch(g){}},
I=function(b){b.type=b.data;e.event.handle.apply(this,arguments)};e.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){e.event.special[b]={setup:function(g){e.event.add(this,c,g&&g.selector?I:G,b)},teardown:function(g){e.event.remove(this,c,g&&g.selector?I:G)}}});if(!e.support.submitBubbles)e.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){e.event.add(this,"click.specialSubmit",function(b){var c=b.target,g=c.type;if((g==="submit"||g==="image")&&e(c).closest("form").length)return F("submit",
this,arguments)});e.event.add(this,"keypress.specialSubmit",function(b){var c=b.target,g=c.type;if((g==="text"||g==="password")&&e(c).closest("form").length&&b.keyCode===13)return F("submit",this,arguments)})}else return false},teardown:function(){e.event.remove(this,".specialSubmit")}};if(!e.support.changeBubbles){var K=/textarea|input|select/i,Q,R=function(b){var c=b.type,g=b.value;if(c==="radio"||c==="checkbox")g=b.checked;else if(c==="select-multiple")g=b.selectedIndex>-1?e.map(b.options,function(k){return k.selected}).join("-"):
"";else if(b.nodeName.toLowerCase()==="select")g=b.selectedIndex;return g},ba=function(b,c){var g=b.target,k,j;if(!(!K.test(g.nodeName)||g.readOnly)){k=e.data(g,"_change_data");j=R(g);if(b.type!=="focusout"||g.type!=="radio")e.data(g,"_change_data",j);if(!(k===f||j===k))if(k!=null||j){b.type="change";return e.event.trigger(b,c,g)}}};e.event.special.change={filters:{focusout:ba,click:function(b){var c=b.target,g=c.type;if(g==="radio"||g==="checkbox"||c.nodeName.toLowerCase()==="select")return ba.call(this,
b)},keydown:function(b){var c=b.target,g=c.type;if(b.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(g==="checkbox"||g==="radio")||g==="select-multiple")return ba.call(this,b)},beforeactivate:function(b){b=b.target;e.data(b,"_change_data",R(b))}},setup:function(){if(this.type==="file")return false;for(var b in Q)e.event.add(this,b+".specialChange",Q[b]);return K.test(this.nodeName)},teardown:function(){e.event.remove(this,".specialChange");return K.test(this.nodeName)}};Q=e.event.special.change.filters}D.addEventListener&&
e.each({focus:"focusin",blur:"focusout"},function(b,c){function g(k){k=e.event.fix(k);k.type=c;return e.event.handle.call(this,k)}e.event.special[c]={setup:function(){this.addEventListener(b,g,true)},teardown:function(){this.removeEventListener(b,g,true)}}});e.each(["bind","one"],function(b,c){e.fn[c]=function(g,k,j){if(typeof g==="object"){for(var q in g)this[c](q,k,g[q],j);return this}if(e.isFunction(k)){j=k;k=f}var p=c==="one"?e.proxy(j,function(t){e(this).unbind(t,p);return j.apply(this,arguments)}):
j;if(g==="unload"&&c!=="one")this.one(g,k,j);else{q=0;for(var y=this.length;q<y;q++)e.event.add(this[q],g,p,k)}return this}});e.fn.extend({unbind:function(b,c){if(typeof b==="object"&&!b.preventDefault)for(var g in b)this.unbind(g,b[g]);else{g=0;for(var k=this.length;g<k;g++)e.event.remove(this[g],b,c)}return this},delegate:function(b,c,g,k){return this.live(c,g,k,b)},undelegate:function(b,c,g){return arguments.length===0?this.unbind("live"):this.die(c,null,g,b)},trigger:function(b,c){return this.each(function(){e.event.trigger(b,
c,this)})},triggerHandler:function(b,c){if(this[0]){b=e.Event(b);b.preventDefault();b.stopPropagation();e.event.trigger(b,c,this[0]);return b.result}},toggle:function(b){for(var c=arguments,g=1;g<c.length;)e.proxy(b,c[g++]);return this.click(e.proxy(b,function(k){var j=(e.data(this,"lastToggle"+b.guid)||0)%g;e.data(this,"lastToggle"+b.guid,j+1);k.preventDefault();return c[j].apply(this,arguments)||false}))},hover:function(b,c){return this.mouseenter(b).mouseleave(c||b)}});var ea={focus:"focusin",
blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};e.each(["live","die"],function(b,c){e.fn[c]=function(g,k,j,q){var p,y=0,t,x,E=q||this.selector,M=q?this:e(this.context);if(e.isFunction(k)){j=k;k=f}for(g=(g||"").split(" ");(p=g[y++])!=null;){q=J.exec(p);t="";if(q){t=q[0];p=p.replace(J,"")}if(p==="hover")g.push("mouseenter"+t,"mouseleave"+t);else{x=p;if(p==="focus"||p==="blur"){g.push(ea[p]+t);p+=t}else p=(ea[p]||p)+t;c==="live"?M.each(function(){e.event.add(this,H(p,E),{data:k,selector:E,
handler:j,origType:p,origHandler:j,preType:x})}):M.unbind(H(p,E),j)}}return this}});e.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(b,c){e.fn[c]=function(g){return g?this.bind(c,g):this.trigger(c)};if(e.attrFn)e.attrFn[c]=true});d.attachEvent&&!d.addEventListener&&d.attachEvent("onunload",function(){for(var b in e.cache)if(e.cache[b].handle)try{e.event.remove(e.cache[b].handle.elem)}catch(c){}});
(function(){function b(l){for(var o="",u,w=0;l[w];w++){u=l[w];if(u.nodeType===3||u.nodeType===4)o+=u.nodeValue;else if(u.nodeType!==8)o+=b(u.childNodes)}return o}function c(l,o,u,w,C,B){C=0;for(var N=w.length;C<N;C++){var L=w[C];if(L){L=L[l];for(var T=false;L;){if(L.sizcache===u){T=w[L.sizset];break}if(L.nodeType===1&&!B){L.sizcache=u;L.sizset=C}if(L.nodeName.toLowerCase()===o){T=L;break}L=L[l]}w[C]=T}}}function g(l,o,u,w,C,B){C=0;for(var N=w.length;C<N;C++){var L=w[C];if(L){L=L[l];for(var T=false;L;){if(L.sizcache===
u){T=w[L.sizset];break}if(L.nodeType===1){if(!B){L.sizcache=u;L.sizset=C}if(typeof o!=="string"){if(L===o){T=true;break}}else if(t.filter(o,[L]).length>0){T=L;break}}L=L[l]}w[C]=T}}}var k=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,j=0,q=Object.prototype.toString,p=false,y=true;[0,0].sort(function(){y=false;return 0});var t=function(l,o,u,w){u=u||[];var C=o=o||D;if(o.nodeType!==1&&o.nodeType!==9)return[];if(!l||
typeof l!=="string")return u;for(var B=[],N,L,T,Na,za=true,Ha=P(o),Aa=l;(k.exec(""),N=k.exec(Aa))!==null;){Aa=N[3];B.push(N[1]);if(N[2]){Na=N[3];break}}if(B.length>1&&E.exec(l))if(B.length===2&&x.relative[B[0]])L=Ua(B[0]+B[1],o);else for(L=x.relative[B[0]]?[o]:t(B.shift(),o);B.length;){l=B.shift();if(x.relative[l])l+=B.shift();L=Ua(l,L)}else{if(!w&&B.length>1&&o.nodeType===9&&!Ha&&x.match.ID.test(B[0])&&!x.match.ID.test(B[B.length-1])){N=t.find(B.shift(),o,Ha);o=N.expr?t.filter(N.expr,N.set)[0]:N.set[0]}if(o){N=
w?{expr:B.pop(),set:U(w)}:t.find(B.pop(),B.length===1&&(B[0]==="~"||B[0]==="+")&&o.parentNode?o.parentNode:o,Ha);L=N.expr?t.filter(N.expr,N.set):N.set;if(B.length>0)T=U(L);else za=false;for(;B.length;){var ha=B.pop();N=ha;if(x.relative[ha])N=B.pop();else ha="";if(N==null)N=o;x.relative[ha](T,N,Ha)}}else T=[]}T||(T=L);T||t.error(ha||l);if(q.call(T)==="[object Array]")if(za)if(o&&o.nodeType===1)for(l=0;T[l]!=null;l++){if(T[l]&&(T[l]===true||T[l].nodeType===1&&ia(o,T[l])))u.push(L[l])}else for(l=0;T[l]!=
null;l++)T[l]&&T[l].nodeType===1&&u.push(L[l]);else u.push.apply(u,T);else U(T,u);if(Na){t(Na,C,u,w);t.uniqueSort(u)}return u};t.uniqueSort=function(l){if(Z){p=y;l.sort(Z);if(p)for(var o=1;o<l.length;o++)l[o]===l[o-1]&&l.splice(o--,1)}return l};t.matches=function(l,o){return t(l,null,null,o)};t.find=function(l,o,u){var w,C;if(!l)return[];for(var B=0,N=x.order.length;B<N;B++){var L=x.order[B];if(C=x.leftMatch[L].exec(l)){var T=C[1];C.splice(1,1);if(T.substr(T.length-1)!=="\\"){C[1]=(C[1]||"").replace(/\\/g,
"");w=x.find[L](C,o,u);if(w!=null){l=l.replace(x.match[L],"");break}}}}w||(w=o.getElementsByTagName("*"));return{set:w,expr:l}};t.filter=function(l,o,u,w){for(var C=l,B=[],N=o,L,T,Na=o&&o[0]&&P(o[0]);l&&o.length;){for(var za in x.filter)if((L=x.leftMatch[za].exec(l))!=null&&L[2]){var Ha=x.filter[za],Aa,ha;ha=L[1];T=false;L.splice(1,1);if(ha.substr(ha.length-1)!=="\\"){if(N===B)B=[];if(x.preFilter[za])if(L=x.preFilter[za](L,N,u,B,w,Na)){if(L===true)continue}else T=Aa=true;if(L)for(var Ra=0;(ha=N[Ra])!=
null;Ra++)if(ha){Aa=Ha(ha,L,Ra,N);var cb=w^!!Aa;if(u&&Aa!=null)if(cb)T=true;else N[Ra]=false;else if(cb){B.push(ha);T=true}}if(Aa!==f){u||(N=B);l=l.replace(x.match[za],"");if(!T)return[];break}}}if(l===C)if(T==null)t.error(l);else break;C=l}return N};t.error=function(l){throw"Syntax error, unrecognized expression: "+l;};var x=t.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,
ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(l){return l.getAttribute("href")}},relative:{"+":function(l,o){var u=typeof o==="string",
w=u&&!/\W/.test(o);u=u&&!w;if(w)o=o.toLowerCase();w=0;for(var C=l.length,B;w<C;w++)if(B=l[w]){for(;(B=B.previousSibling)&&B.nodeType!==1;);l[w]=u||B&&B.nodeName.toLowerCase()===o?B||false:B===o}u&&t.filter(o,l,true)},">":function(l,o){var u=typeof o==="string";if(u&&!/\W/.test(o)){o=o.toLowerCase();for(var w=0,C=l.length;w<C;w++){var B=l[w];if(B){u=B.parentNode;l[w]=u.nodeName.toLowerCase()===o?u:false}}}else{w=0;for(C=l.length;w<C;w++)if(B=l[w])l[w]=u?B.parentNode:B.parentNode===o;u&&t.filter(o,
l,true)}},"":function(l,o,u){var w=j++,C=g;if(typeof o==="string"&&!/\W/.test(o)){var B=o=o.toLowerCase();C=c}C("parentNode",o,w,l,B,u)},"~":function(l,o,u){var w=j++,C=g;if(typeof o==="string"&&!/\W/.test(o)){var B=o=o.toLowerCase();C=c}C("previousSibling",o,w,l,B,u)}},find:{ID:function(l,o,u){if(typeof o.getElementById!=="undefined"&&!u)return(l=o.getElementById(l[1]))?[l]:[]},NAME:function(l,o){if(typeof o.getElementsByName!=="undefined"){var u=[];o=o.getElementsByName(l[1]);for(var w=0,C=o.length;w<
C;w++)o[w].getAttribute("name")===l[1]&&u.push(o[w]);return u.length===0?null:u}},TAG:function(l,o){return o.getElementsByTagName(l[1])}},preFilter:{CLASS:function(l,o,u,w,C,B){l=" "+l[1].replace(/\\/g,"")+" ";if(B)return l;B=0;for(var N;(N=o[B])!=null;B++)if(N)if(C^(N.className&&(" "+N.className+" ").replace(/[\t\n]/g," ").indexOf(l)>=0))u||w.push(N);else if(u)o[B]=false;return false},ID:function(l){return l[1].replace(/\\/g,"")},TAG:function(l){return l[1].toLowerCase()},CHILD:function(l){if(l[1]===
"nth"){var o=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(l[2]==="even"&&"2n"||l[2]==="odd"&&"2n+1"||!/\D/.test(l[2])&&"0n+"+l[2]||l[2]);l[2]=o[1]+(o[2]||1)-0;l[3]=o[3]-0}l[0]=j++;return l},ATTR:function(l,o,u,w,C,B){o=l[1].replace(/\\/g,"");if(!B&&x.attrMap[o])l[1]=x.attrMap[o];if(l[2]==="~=")l[4]=" "+l[4]+" ";return l},PSEUDO:function(l,o,u,w,C){if(l[1]==="not")if((k.exec(l[3])||"").length>1||/^\w/.test(l[3]))l[3]=t(l[3],null,null,o);else{l=t.filter(l[3],o,u,true^C);u||w.push.apply(w,l);return false}else if(x.match.POS.test(l[0])||
x.match.CHILD.test(l[0]))return true;return l},POS:function(l){l.unshift(true);return l}},filters:{enabled:function(l){return l.disabled===false&&l.type!=="hidden"},disabled:function(l){return l.disabled===true},checked:function(l){return l.checked===true},selected:function(l){return l.selected===true},parent:function(l){return!!l.firstChild},empty:function(l){return!l.firstChild},has:function(l,o,u){return!!t(u[3],l).length},header:function(l){return/h\d/i.test(l.nodeName)},text:function(l){return"text"===
l.type},radio:function(l){return"radio"===l.type},checkbox:function(l){return"checkbox"===l.type},file:function(l){return"file"===l.type},password:function(l){return"password"===l.type},submit:function(l){return"submit"===l.type},image:function(l){return"image"===l.type},reset:function(l){return"reset"===l.type},button:function(l){return"button"===l.type||l.nodeName.toLowerCase()==="button"},input:function(l){return/input|select|textarea|button/i.test(l.nodeName)}},setFilters:{first:function(l,o){return o===
0},last:function(l,o,u,w){return o===w.length-1},even:function(l,o){return o%2===0},odd:function(l,o){return o%2===1},lt:function(l,o,u){return o<u[3]-0},gt:function(l,o,u){return o>u[3]-0},nth:function(l,o,u){return u[3]-0===o},eq:function(l,o,u){return u[3]-0===o}},filter:{PSEUDO:function(l,o,u,w){var C=o[1],B=x.filters[C];if(B)return B(l,u,o,w);else if(C==="contains")return(l.textContent||l.innerText||b([l])||"").indexOf(o[3])>=0;else if(C==="not"){o=o[3];u=0;for(w=o.length;u<w;u++)if(o[u]===l)return false;
return true}else t.error("Syntax error, unrecognized expression: "+C)},CHILD:function(l,o){var u=o[1],w=l;switch(u){case "only":case "first":for(;w=w.previousSibling;)if(w.nodeType===1)return false;if(u==="first")return true;w=l;case "last":for(;w=w.nextSibling;)if(w.nodeType===1)return false;return true;case "nth":u=o[2];var C=o[3];if(u===1&&C===0)return true;o=o[0];var B=l.parentNode;if(B&&(B.sizcache!==o||!l.nodeIndex)){var N=0;for(w=B.firstChild;w;w=w.nextSibling)if(w.nodeType===1)w.nodeIndex=
++N;B.sizcache=o}l=l.nodeIndex-C;return u===0?l===0:l%u===0&&l/u>=0}},ID:function(l,o){return l.nodeType===1&&l.getAttribute("id")===o},TAG:function(l,o){return o==="*"&&l.nodeType===1||l.nodeName.toLowerCase()===o},CLASS:function(l,o){return(" "+(l.className||l.getAttribute("class"))+" ").indexOf(o)>-1},ATTR:function(l,o){var u=o[1];l=x.attrHandle[u]?x.attrHandle[u](l):l[u]!=null?l[u]:l.getAttribute(u);u=l+"";var w=o[2];o=o[4];return l==null?w==="!=":w==="="?u===o:w==="*="?u.indexOf(o)>=0:w==="~="?
(" "+u+" ").indexOf(o)>=0:!o?u&&l!==false:w==="!="?u!==o:w==="^="?u.indexOf(o)===0:w==="$="?u.substr(u.length-o.length)===o:w==="|="?u===o||u.substr(0,o.length+1)===o+"-":false},POS:function(l,o,u,w){var C=x.setFilters[o[2]];if(C)return C(l,u,o,w)}}},E=x.match.POS;for(var M in x.match){x.match[M]=new RegExp(x.match[M].source+/(?![^\[]*\])(?![^\(]*\))/.source);x.leftMatch[M]=new RegExp(/(^(?:.|\r|\n)*?)/.source+x.match[M].source.replace(/\\(\d+)/g,function(l,o){return"\\"+(o-0+1)}))}var U=function(l,
o){l=Array.prototype.slice.call(l,0);if(o){o.push.apply(o,l);return o}return l};try{Array.prototype.slice.call(D.documentElement.childNodes,0)}catch(ca){U=function(l,o){o=o||[];if(q.call(l)==="[object Array]")Array.prototype.push.apply(o,l);else if(typeof l.length==="number")for(var u=0,w=l.length;u<w;u++)o.push(l[u]);else for(u=0;l[u];u++)o.push(l[u]);return o}}var Z;if(D.documentElement.compareDocumentPosition)Z=function(l,o){if(!l.compareDocumentPosition||!o.compareDocumentPosition){if(l==o)p=
true;return l.compareDocumentPosition?-1:1}l=l.compareDocumentPosition(o)&4?-1:l===o?0:1;if(l===0)p=true;return l};else if("sourceIndex"in D.documentElement)Z=function(l,o){if(!l.sourceIndex||!o.sourceIndex){if(l==o)p=true;return l.sourceIndex?-1:1}l=l.sourceIndex-o.sourceIndex;if(l===0)p=true;return l};else if(D.createRange)Z=function(l,o){if(!l.ownerDocument||!o.ownerDocument){if(l==o)p=true;return l.ownerDocument?-1:1}var u=l.ownerDocument.createRange(),w=o.ownerDocument.createRange();u.setStart(l,
0);u.setEnd(l,0);w.setStart(o,0);w.setEnd(o,0);l=u.compareBoundaryPoints(Range.START_TO_END,w);if(l===0)p=true;return l};(function(){var l=D.createElement("div"),o="script"+(new Date).getTime();l.innerHTML="<a name='"+o+"'/>";var u=D.documentElement;u.insertBefore(l,u.firstChild);if(D.getElementById(o)){x.find.ID=function(w,C,B){if(typeof C.getElementById!=="undefined"&&!B)return(C=C.getElementById(w[1]))?C.id===w[1]||typeof C.getAttributeNode!=="undefined"&&C.getAttributeNode("id").nodeValue===w[1]?
[C]:f:[]};x.filter.ID=function(w,C){var B=typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id");return w.nodeType===1&&B&&B.nodeValue===C}}u.removeChild(l);u=l=null})();(function(){var l=D.createElement("div");l.appendChild(D.createComment(""));if(l.getElementsByTagName("*").length>0)x.find.TAG=function(o,u){u=u.getElementsByTagName(o[1]);if(o[1]==="*"){o=[];for(var w=0;u[w];w++)u[w].nodeType===1&&o.push(u[w]);u=o}return u};l.innerHTML="<a href='#'></a>";if(l.firstChild&&typeof l.firstChild.getAttribute!==
"undefined"&&l.firstChild.getAttribute("href")!=="#")x.attrHandle.href=function(o){return o.getAttribute("href",2)};l=null})();D.querySelectorAll&&function(){var l=t,o=D.createElement("div");o.innerHTML="<p class='TEST'></p>";if(!(o.querySelectorAll&&o.querySelectorAll(".TEST").length===0)){t=function(w,C,B,N){C=C||D;if(!N&&C.nodeType===9&&!P(C))try{return U(C.querySelectorAll(w),B)}catch(L){}return l(w,C,B,N)};for(var u in l)t[u]=l[u];o=null}}();(function(){var l=D.createElement("div");l.innerHTML=
"<div class='test e'></div><div class='test'></div>";if(!(!l.getElementsByClassName||l.getElementsByClassName("e").length===0)){l.lastChild.className="e";if(l.getElementsByClassName("e").length!==1){x.order.splice(1,0,"CLASS");x.find.CLASS=function(o,u,w){if(typeof u.getElementsByClassName!=="undefined"&&!w)return u.getElementsByClassName(o[1])};l=null}}})();var ia=D.compareDocumentPosition?function(l,o){return!!(l.compareDocumentPosition(o)&16)}:function(l,o){return l!==o&&(l.contains?l.contains(o):
true)},P=function(l){return(l=(l?l.ownerDocument||l:0).documentElement)?l.nodeName!=="HTML":false},Ua=function(l,o){var u=[],w="",C;for(o=o.nodeType?[o]:o;C=x.match.PSEUDO.exec(l);){w+=C[0];l=l.replace(x.match.PSEUDO,"")}l=x.relative[l]?l+"*":l;C=0;for(var B=o.length;C<B;C++)t(l,o[C],u);return t.filter(w,u)};e.find=t;e.expr=t.selectors;e.expr[":"]=e.expr.filters;e.unique=t.uniqueSort;e.text=b;e.isXMLDoc=P;e.contains=ia})();var Da=/Until$/,Ia=/^(?:parents|prevUntil|prevAll)/,sa=/,/;ra=Array.prototype.slice;
var ma=function(b,c,g){if(e.isFunction(c))return e.grep(b,function(j,q){return!!c.call(j,q,j)===g});else if(c.nodeType)return e.grep(b,function(j){return j===c===g});else if(typeof c==="string"){var k=e.grep(b,function(j){return j.nodeType===1});if(aa.test(c))return e.filter(c,k,!g);else c=e.filter(c,k)}return e.grep(b,function(j){return e.inArray(j,c)>=0===g})};e.fn.extend({find:function(b){for(var c=this.pushStack("","find",b),g=0,k=0,j=this.length;k<j;k++){g=c.length;e.find(b,this[k],c);if(k>0)for(var q=
g;q<c.length;q++)for(var p=0;p<g;p++)if(c[p]===c[q]){c.splice(q--,1);break}}return c},has:function(b){var c=e(b);return this.filter(function(){for(var g=0,k=c.length;g<k;g++)if(e.contains(this,c[g]))return true})},not:function(b){return this.pushStack(ma(this,b,false),"not",b)},filter:function(b){return this.pushStack(ma(this,b,true),"filter",b)},is:function(b){return!!b&&e.filter(b,this).length>0},closest:function(b,c){if(e.isArray(b)){var g=[],k=this[0],j,q={},p;if(k&&b.length){j=0;for(var y=b.length;j<
y;j++){p=b[j];q[p]||(q[p]=e.expr.match.POS.test(p)?e(p,c||this.context):p)}for(;k&&k.ownerDocument&&k!==c;){for(p in q){j=q[p];if(j.jquery?j.index(k)>-1:e(k).is(j)){g.push({selector:p,elem:k});delete q[p]}}k=k.parentNode}}return g}var t=e.expr.match.POS.test(b)?e(b,c||this.context):null;return this.map(function(x,E){for(;E&&E.ownerDocument&&E!==c;){if(t?t.index(E)>-1:e(E).is(b))return E;E=E.parentNode}return null})},index:function(b){if(!b||typeof b==="string")return e.inArray(this[0],b?e(b):this.parent().children());
return e.inArray(b.jquery?b[0]:b,this)},add:function(b,c){b=typeof b==="string"?e(b,c||this.context):e.makeArray(b);c=e.merge(this.get(),b);return this.pushStack(O(b[0])||O(c[0])?c:e.unique(c))},andSelf:function(){return this.add(this.prevObject)}});e.each({parent:function(b){return(b=b.parentNode)&&b.nodeType!==11?b:null},parents:function(b){return e.dir(b,"parentNode")},parentsUntil:function(b,c,g){return e.dir(b,"parentNode",g)},next:function(b){return e.nth(b,2,"nextSibling")},prev:function(b){return e.nth(b,
2,"previousSibling")},nextAll:function(b){return e.dir(b,"nextSibling")},prevAll:function(b){return e.dir(b,"previousSibling")},nextUntil:function(b,c,g){return e.dir(b,"nextSibling",g)},prevUntil:function(b,c,g){return e.dir(b,"previousSibling",g)},siblings:function(b){return e.sibling(b.parentNode.firstChild,b)},children:function(b){return e.sibling(b.firstChild)},contents:function(b){return e.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:e.makeArray(b.childNodes)}},function(b,
c){e.fn[b]=function(g,k){var j=e.map(this,c,g);Da.test(b)||(k=g);if(k&&typeof k==="string")j=e.filter(k,j);j=this.length>1?e.unique(j):j;if((this.length>1||sa.test(k))&&Ia.test(b))j=j.reverse();return this.pushStack(j,b,ra.call(arguments).join(","))}});e.extend({filter:function(b,c,g){if(g)b=":not("+b+")";return e.find.matches(b,c)},dir:function(b,c,g){var k=[];for(b=b[c];b&&b.nodeType!==9&&(g===f||b.nodeType!==1||!e(b).is(g));){b.nodeType===1&&k.push(b);b=b[c]}return k},nth:function(b,c,g){c=c||
1;for(var k=0;b;b=b[g])if(b.nodeType===1&&++k===c)break;return b},sibling:function(b,c){for(var g=[];b;b=b.nextSibling)b.nodeType===1&&b!==c&&g.push(b);return g}});var Ea=/ jQuery\d+="(?:\d+|null)"/g,va=/^\s+/,db=/(<([\w:]+)[^>]*?)\/>/g,jb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,eb=/<([\w:]+)/,kb=/<tbody/i,lb=/<|&#?\w+;/,$a=/<script|<object|<embed|<option|<style/i,ab=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=function(b,c,g){return jb.test(g)?b:c+"></"+g+">"},ja={option:[1,"<select multiple='multiple'>",
"</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ja.optgroup=ja.option;ja.tbody=ja.tfoot=ja.colgroup=ja.caption=ja.thead;ja.th=ja.td;if(!e.support.htmlSerialize)ja._default=[1,"div<div>","</div>"];e.fn.extend({text:function(b){if(e.isFunction(b))return this.each(function(c){var g=
e(this);g.text(b.call(this,c,g.text()))});if(typeof b!=="object"&&b!==f)return this.empty().append((this[0]&&this[0].ownerDocument||D).createTextNode(b));return e.text(this)},wrapAll:function(b){if(e.isFunction(b))return this.each(function(g){e(this).wrapAll(b.call(this,g))});if(this[0]){var c=e(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var g=this;g.firstChild&&g.firstChild.nodeType===1;)g=g.firstChild;return g}).append(this)}return this},
wrapInner:function(b){if(e.isFunction(b))return this.each(function(c){e(this).wrapInner(b.call(this,c))});return this.each(function(){var c=e(this),g=c.contents();g.length?g.wrapAll(b):c.append(b)})},wrap:function(b){return this.each(function(){e(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.appendChild(b)})},
prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var b=e(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,
this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,e(arguments[0]).toArray());return b}},remove:function(b,c){for(var g=0,k;(k=this[g])!=null;g++)if(!b||e.filter(b,[k]).length){if(!c&&k.nodeType===1){e.cleanData(k.getElementsByTagName("*"));e.cleanData([k])}k.parentNode&&k.parentNode.removeChild(k)}return this},empty:function(){for(var b=0,c;(c=this[b])!=null;b++)for(c.nodeType===1&&e.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);
return this},clone:function(b){var c=this.map(function(){if(!e.support.noCloneEvent&&!e.isXMLDoc(this)){var g=this.outerHTML,k=this.ownerDocument;if(!g){g=k.createElement("div");g.appendChild(this.cloneNode(true));g=g.innerHTML}return e.clean([g.replace(Ea,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(va,"")],k)[0]}else return this.cloneNode(true)});if(b===true){V(this,c);V(this.find("*"),c.find("*"))}return c},html:function(b){if(b===f)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ea,
""):null;else if(typeof b==="string"&&!$a.test(b)&&(e.support.leadingWhitespace||!va.test(b))&&!ja[(eb.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(db,fb);try{for(var c=0,g=this.length;c<g;c++)if(this[c].nodeType===1){e.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=b}}catch(k){this.empty().append(b)}}else e.isFunction(b)?this.each(function(j){var q=e(this),p=q.html();q.empty().append(function(){return b.call(this,j,p)})}):this.empty().append(b);return this},replaceWith:function(b){if(this[0]&&
this[0].parentNode){if(e.isFunction(b))return this.each(function(c){var g=e(this),k=g.html();g.replaceWith(b.call(this,c,k))});if(typeof b!=="string")b=e(b).detach();return this.each(function(){var c=this.nextSibling,g=this.parentNode;e(this).remove();c?e(c).before(b):e(g).append(b)})}else return this.pushStack(e(e.isFunction(b)?b():b),"replaceWith",b)},detach:function(b){return this.remove(b,true)},domManip:function(b,c,g){function k(M){return e.nodeName(M,"table")?M.getElementsByTagName("tbody")[0]||
M.appendChild(M.ownerDocument.createElement("tbody")):M}var j,q,p=b[0],y=[],t;if(!e.support.checkClone&&arguments.length===3&&typeof p==="string"&&ab.test(p))return this.each(function(){e(this).domManip(b,c,g,true)});if(e.isFunction(p))return this.each(function(M){var U=e(this);b[0]=p.call(this,M,c?U.html():f);U.domManip(b,c,g)});if(this[0]){j=p&&p.parentNode;j=e.support.parentNode&&j&&j.nodeType===11&&j.childNodes.length===this.length?{fragment:j}:X(b,this,y);t=j.fragment;if(q=t.childNodes.length===
1?(t=t.firstChild):t.firstChild){c=c&&e.nodeName(q,"tr");for(var x=0,E=this.length;x<E;x++)g.call(c?k(this[x],q):this[x],x>0||j.cacheable||this.length>1?t.cloneNode(true):t)}y.length&&e.each(y,h)}return this}});e.fragments={};e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){e.fn[b]=function(g){var k=[];g=e(g);var j=this.length===1&&this[0].parentNode;if(j&&j.nodeType===11&&j.childNodes.length===1&&g.length===1){g[c](this[0]);
return this}else{j=0;for(var q=g.length;j<q;j++){var p=(j>0?this.clone(true):this).get();e.fn[c].apply(e(g[j]),p);k=k.concat(p)}return this.pushStack(k,b,g.selector)}}});e.extend({clean:function(b,c,g,k){c=c||D;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||D;for(var j=[],q=0,p;(p=b[q])!=null;q++){if(typeof p==="number")p+="";if(p){if(typeof p==="string"&&!lb.test(p))p=c.createTextNode(p);else if(typeof p==="string"){p=p.replace(db,fb);var y=(eb.exec(p)||["",
""])[1].toLowerCase(),t=ja[y]||ja._default,x=t[0],E=c.createElement("div");for(E.innerHTML=t[1]+p+t[2];x--;)E=E.lastChild;if(!e.support.tbody){x=kb.test(p);y=y==="table"&&!x?E.firstChild&&E.firstChild.childNodes:t[1]==="<table>"&&!x?E.childNodes:[];for(t=y.length-1;t>=0;--t)e.nodeName(y[t],"tbody")&&!y[t].childNodes.length&&y[t].parentNode.removeChild(y[t])}!e.support.leadingWhitespace&&va.test(p)&&E.insertBefore(c.createTextNode(va.exec(p)[0]),E.firstChild);p=E.childNodes}if(p.nodeType)j.push(p);
else j=e.merge(j,p)}}if(g)for(q=0;j[q];q++)if(k&&e.nodeName(j[q],"script")&&(!j[q].type||j[q].type.toLowerCase()==="text/javascript"))k.push(j[q].parentNode?j[q].parentNode.removeChild(j[q]):j[q]);else{j[q].nodeType===1&&j.splice.apply(j,[q+1,0].concat(e.makeArray(j[q].getElementsByTagName("script"))));g.appendChild(j[q])}return j},cleanData:function(b){for(var c,g,k=e.cache,j=e.event.special,q=e.support.deleteExpando,p=0,y;(y=b[p])!=null;p++)if(g=y[e.expando]){c=k[g];if(c.events)for(var t in c.events)j[t]?
e.event.remove(y,t):v(y,t,c.handle);if(q)delete y[e.expando];else y.removeAttribute&&y.removeAttribute(e.expando);delete k[g]}}});var mb=/z-?index|font-?weight|opacity|zoom|line-?height/i,gb=/alpha\([^)]*\)/,hb=/opacity=([^)]*)/,Va=/float/i,Wa=/-([a-z])/ig,nb=/([A-Z])/g,ob=/^-?\d+(?:px)?$/i,pb=/^-?\d/,qb={position:"absolute",visibility:"hidden",display:"block"},rb=["Left","Right"],sb=["Top","Bottom"],tb=D.defaultView&&D.defaultView.getComputedStyle,ib=e.support.cssFloat?"cssFloat":"styleFloat",Xa=
function(b,c){return c.toUpperCase()};e.fn.css=function(b,c){return m(this,b,c,true,function(g,k,j){if(j===f)return e.curCSS(g,k);if(typeof j==="number"&&!mb.test(k))j+="px";e.style(g,k,j)})};e.extend({style:function(b,c,g){if(!b||b.nodeType===3||b.nodeType===8)return f;if((c==="width"||c==="height")&&parseFloat(g)<0)g=f;var k=b.style||b,j=g!==f;if(!e.support.opacity&&c==="opacity"){if(j){k.zoom=1;c=parseInt(g,10)+""==="NaN"?"":"alpha(opacity="+g*100+")";b=k.filter||e.curCSS(b,"filter")||"";k.filter=
gb.test(b)?b.replace(gb,c):c}return k.filter&&k.filter.indexOf("opacity=")>=0?parseFloat(hb.exec(k.filter)[1])/100+"":""}if(Va.test(c))c=ib;c=c.replace(Wa,Xa);if(j)k[c]=g;return k[c]},css:function(b,c,g,k){if(c==="width"||c==="height"){var j,q=c==="width"?rb:sb;function p(){j=c==="width"?b.offsetWidth:b.offsetHeight;k!=="border"&&e.each(q,function(){k||(j-=parseFloat(e.curCSS(b,"padding"+this,true))||0);if(k==="margin")j+=parseFloat(e.curCSS(b,"margin"+this,true))||0;else j-=parseFloat(e.curCSS(b,
"border"+this+"Width",true))||0})}b.offsetWidth!==0?p():e.swap(b,qb,p);return Math.max(0,Math.round(j))}return e.curCSS(b,c,g)},curCSS:function(b,c,g){var k,j=b.style;if(!e.support.opacity&&c==="opacity"&&b.currentStyle){k=hb.test(b.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return k===""?"1":k}if(Va.test(c))c=ib;if(!g&&j&&j[c])k=j[c];else if(tb){if(Va.test(c))c="float";c=c.replace(nb,"-$1").toLowerCase();j=b.ownerDocument.defaultView;if(!j)return null;if(b=j.getComputedStyle(b,null))k=
b.getPropertyValue(c);if(c==="opacity"&&k==="")k="1"}else if(b.currentStyle){g=c.replace(Wa,Xa);k=b.currentStyle[c]||b.currentStyle[g];if(!ob.test(k)&&pb.test(k)){c=j.left;var q=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;j.left=g==="fontSize"?"1em":k||0;k=j.pixelLeft+"px";j.left=c;b.runtimeStyle.left=q}}return k},swap:function(b,c,g){var k={};for(var j in c){k[j]=b.style[j];b.style[j]=c[j]}g.call(b);for(j in c)b.style[j]=k[j]}});if(e.expr&&e.expr.filters){e.expr.filters.hidden=function(b){var c=
b.offsetWidth,g=b.offsetHeight,k=b.nodeName.toLowerCase()==="tr";return c===0&&g===0&&!k?true:c>0&&g>0&&!k?false:e.curCSS(b,"display")==="none"};e.expr.filters.visible=function(b){return!e.expr.filters.hidden(b)}}var ub=n(),vb=/<script(.|\s)*?\/script>/gi,wb=/select|textarea/i,xb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Ja=/=\?(&|$)/,Ya=/\?/,yb=/(\?|&)_=.*?(&|$)/,zb=/^(\w+:)?\/\/([^\/?#]+)/,Ab=/%20/g,Bb=e.fn.load;e.fn.extend({load:function(b,c,
g){if(typeof b!=="string")return Bb.call(this,b);else if(!this.length)return this;var k=b.indexOf(" ");if(k>=0){var j=b.slice(k,b.length);b=b.slice(0,k)}k="GET";if(c)if(e.isFunction(c)){g=c;c=null}else if(typeof c==="object"){c=e.param(c,e.ajaxSettings.traditional);k="POST"}var q=this;e.ajax({url:b,type:k,dataType:"html",data:c,complete:function(p,y){if(y==="success"||y==="notmodified")q.html(j?e("<div />").append(p.responseText.replace(vb,"")).find(j):p.responseText);g&&q.each(g,[p.responseText,
y,p])}});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||wb.test(this.nodeName)||xb.test(this.type))}).map(function(b,c){b=e(this).val();return b==null?null:e.isArray(b)?e.map(b,function(g){return{name:c.name,value:g}}):{name:c.name,value:b}}).get()}});e.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(b,c){e.fn[c]=function(g){return this.bind(c,g)}});e.extend({get:function(b,c,g,k){if(e.isFunction(c)){k=k||g;g=c;c=null}return e.ajax({type:"GET",url:b,data:c,success:g,dataType:k})},getScript:function(b,c){return e.get(b,null,c,"script")},getJSON:function(b,c,g){return e.get(b,c,g,"json")},post:function(b,c,g,k){if(e.isFunction(c)){k=k||g;g=c;c={}}return e.ajax({type:"POST",url:b,data:c,success:g,dataType:k})},ajaxSetup:function(b){e.extend(e.ajaxSettings,b)},ajaxSettings:{url:location.href,
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:d.XMLHttpRequest&&(d.location.protocol!=="file:"||!d.ActiveXObject)?function(){return new d.XMLHttpRequest}:function(){try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(b){function c(){j.success&&
j.success.call(t,y,p,P);j.global&&k("ajaxSuccess",[P,j])}function g(){j.complete&&j.complete.call(t,P,p);j.global&&k("ajaxComplete",[P,j]);j.global&&!--e.active&&e.event.trigger("ajaxStop")}function k(C,B){(j.context?e(j.context):e.event).trigger(C,B)}var j=e.extend(true,{},e.ajaxSettings,b),q,p,y,t=b&&b.context||j,x=j.type.toUpperCase();if(j.data&&j.processData&&typeof j.data!=="string")j.data=e.param(j.data,j.traditional);if(j.dataType==="jsonp"){if(x==="GET")Ja.test(j.url)||(j.url+=(Ya.test(j.url)?
"&":"?")+(j.jsonp||"callback")+"=?");else if(!j.data||!Ja.test(j.data))j.data=(j.data?j.data+"&":"")+(j.jsonp||"callback")+"=?";j.dataType="json"}if(j.dataType==="json"&&(j.data&&Ja.test(j.data)||Ja.test(j.url))){q=j.jsonpCallback||"jsonp"+ub++;if(j.data)j.data=(j.data+"").replace(Ja,"="+q+"$1");j.url=j.url.replace(Ja,"="+q+"$1");j.dataType="script";d[q]=d[q]||function(C){y=C;c();g();d[q]=f;try{delete d[q]}catch(B){}U&&U.removeChild(ca)}}if(j.dataType==="script"&&j.cache===null)j.cache=false;if(j.cache===
false&&x==="GET"){var E=n(),M=j.url.replace(yb,"$1_="+E+"$2");j.url=M+(M===j.url?(Ya.test(j.url)?"&":"?")+"_="+E:"")}if(j.data&&x==="GET")j.url+=(Ya.test(j.url)?"&":"?")+j.data;j.global&&!e.active++&&e.event.trigger("ajaxStart");E=(E=zb.exec(j.url))&&(E[1]&&E[1]!==location.protocol||E[2]!==location.host);if(j.dataType==="script"&&x==="GET"&&E){var U=D.getElementsByTagName("head")[0]||D.documentElement,ca=D.createElement("script");ca.src=j.url;if(j.scriptCharset)ca.charset=j.scriptCharset;if(!q){var Z=
false;ca.onload=ca.onreadystatechange=function(){if(!Z&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){Z=true;c();g();ca.onload=ca.onreadystatechange=null;U&&ca.parentNode&&U.removeChild(ca)}}}U.insertBefore(ca,U.firstChild);return f}var ia=false,P=j.xhr();if(P){j.username?P.open(x,j.url,j.async,j.username,j.password):P.open(x,j.url,j.async);try{if(j.data||b&&b.contentType)P.setRequestHeader("Content-Type",j.contentType);if(j.ifModified){e.lastModified[j.url]&&P.setRequestHeader("If-Modified-Since",
e.lastModified[j.url]);e.etag[j.url]&&P.setRequestHeader("If-None-Match",e.etag[j.url])}E||P.setRequestHeader("X-Requested-With","XMLHttpRequest");P.setRequestHeader("Accept",j.dataType&&j.accepts[j.dataType]?j.accepts[j.dataType]+", */*":j.accepts._default)}catch(Ua){}if(j.beforeSend&&j.beforeSend.call(t,P,j)===false){j.global&&!--e.active&&e.event.trigger("ajaxStop");P.abort();return false}j.global&&k("ajaxSend",[P,j]);var l=P.onreadystatechange=function(C){if(!P||P.readyState===0||C==="abort"){ia||
g();ia=true;if(P)P.onreadystatechange=e.noop}else if(!ia&&P&&(P.readyState===4||C==="timeout")){ia=true;P.onreadystatechange=e.noop;p=C==="timeout"?"timeout":!e.httpSuccess(P)?"error":j.ifModified&&e.httpNotModified(P,j.url)?"notmodified":"success";var B;if(p==="success")try{y=e.httpData(P,j.dataType,j)}catch(N){p="parsererror";B=N}if(p==="success"||p==="notmodified")q||c();else e.handleError(j,P,p,B);g();C==="timeout"&&P.abort();if(j.async)P=null}};try{var o=P.abort;P.abort=function(){P&&o.call(P);
l("abort")}}catch(u){}j.async&&j.timeout>0&&setTimeout(function(){P&&!ia&&l("timeout")},j.timeout);try{P.send(x==="POST"||x==="PUT"||x==="DELETE"?j.data:null)}catch(w){e.handleError(j,P,null,w);g()}j.async||l();return P}},handleError:function(b,c,g,k){if(b.error)b.error.call(b.context||b,c,g,k);if(b.global)(b.context?e(b.context):e.event).trigger("ajaxError",[c,b,k])},active:0,httpSuccess:function(b){try{return!b.status&&location.protocol==="file:"||b.status>=200&&b.status<300||b.status===304||b.status===
1223||b.status===0}catch(c){}return false},httpNotModified:function(b,c){var g=b.getResponseHeader("Last-Modified"),k=b.getResponseHeader("Etag");if(g)e.lastModified[c]=g;if(k)e.etag[c]=k;return b.status===304||b.status===0},httpData:function(b,c,g){var k=b.getResponseHeader("content-type")||"",j=c==="xml"||!c&&k.indexOf("xml")>=0;b=j?b.responseXML:b.responseText;j&&b.documentElement.nodeName==="parsererror"&&e.error("parsererror");if(g&&g.dataFilter)b=g.dataFilter(b,c);if(typeof b==="string")if(c===
"json"||!c&&k.indexOf("json")>=0)b=e.parseJSON(b);else if(c==="script"||!c&&k.indexOf("javascript")>=0)e.globalEval(b);return b},param:function(b,c){function g(p,y){if(e.isArray(y))e.each(y,function(t,x){c||/\[\]$/.test(p)?k(p,x):g(p+"["+(typeof x==="object"||e.isArray(x)?t:"")+"]",x)});else!c&&y!=null&&typeof y==="object"?e.each(y,function(t,x){g(p+"["+t+"]",x)}):k(p,y)}function k(p,y){y=e.isFunction(y)?y():y;j[j.length]=encodeURIComponent(p)+"="+encodeURIComponent(y)}var j=[];if(c===f)c=e.ajaxSettings.traditional;
if(e.isArray(b)||b.jquery)e.each(b,function(){k(this.name,this.value)});else for(var q in b)g(q,b[q]);return j.join("&").replace(Ab,"+")}});var Za={},Cb=/toggle|show|hide/,Db=/^([+-]=)?([\d+-.]+)(.*)$/,Sa,bb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];e.fn.extend({show:function(b,c){if(b||b===0)return this.animate(Y("show",3),b,c);else{b=0;for(c=this.length;b<c;b++){var g=e.data(this[b],"olddisplay");
this[b].style.display=g||"";if(e.css(this[b],"display")==="none"){g=this[b].nodeName;var k;if(Za[g])k=Za[g];else{var j=e("<"+g+" />").appendTo("body");k=j.css("display");if(k==="none")k="block";j.remove();Za[g]=k}e.data(this[b],"olddisplay",k)}}b=0;for(c=this.length;b<c;b++)this[b].style.display=e.data(this[b],"olddisplay")||"";return this}},hide:function(b,c){if(b||b===0)return this.animate(Y("hide",3),b,c);else{b=0;for(c=this.length;b<c;b++){var g=e.data(this[b],"olddisplay");!g&&g!=="none"&&e.data(this[b],
"olddisplay",e.css(this[b],"display"))}b=0;for(c=this.length;b<c;b++)this[b].style.display="none";return this}},_toggle:e.fn.toggle,toggle:function(b,c){var g=typeof b==="boolean";if(e.isFunction(b)&&e.isFunction(c))this._toggle.apply(this,arguments);else b==null||g?this.each(function(){var k=g?b:e(this).is(":hidden");e(this)[k?"show":"hide"]()}):this.animate(Y("toggle",3),b,c);return this},fadeTo:function(b,c,g){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},b,g)},
animate:function(b,c,g,k){var j=e.speed(c,g,k);if(e.isEmptyObject(b))return this.each(j.complete);return this[j.queue===false?"each":"queue"](function(){var q=e.extend({},j),p,y=this.nodeType===1&&e(this).is(":hidden"),t=this;for(p in b){var x=p.replace(Wa,Xa);if(p!==x){b[x]=b[p];delete b[p];p=x}if(b[p]==="hide"&&y||b[p]==="show"&&!y)return q.complete.call(this);if((p==="height"||p==="width")&&this.style){q.display=e.css(this,"display");q.overflow=this.style.overflow}if(e.isArray(b[p])){(q.specialEasing=
q.specialEasing||{})[p]=b[p][1];b[p]=b[p][0]}}if(q.overflow!=null)this.style.overflow="hidden";q.curAnim=e.extend({},b);e.each(b,function(E,M){var U=new e.fx(t,q,E);if(Cb.test(M))U[M==="toggle"?y?"show":"hide":M](b);else{var ca=Db.exec(M),Z=U.cur(true)||0;if(ca){M=parseFloat(ca[2]);var ia=ca[3]||"px";if(ia!=="px"){t.style[E]=(M||1)+ia;Z=(M||1)/U.cur(true)*Z;t.style[E]=Z+ia}if(ca[1])M=(ca[1]==="-="?-1:1)*M+Z;U.custom(Z,M,ia)}else U.custom(Z,M,"")}});return true})},stop:function(b,c){var g=e.timers;
b&&this.queue([]);this.each(function(){for(var k=g.length-1;k>=0;k--)if(g[k].elem===this){c&&g[k](true);g.splice(k,1)}});c||this.dequeue();return this}});e.each({slideDown:Y("show",1),slideUp:Y("hide",1),slideToggle:Y("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){e.fn[b]=function(g,k){return this.animate(c,g,k)}});e.extend({speed:function(b,c,g){var k=b&&typeof b==="object"?b:{complete:g||!g&&c||e.isFunction(b)&&b,duration:b,easing:g&&c||c&&!e.isFunction(c)&&c};k.duration=
e.fx.off?0:typeof k.duration==="number"?k.duration:e.fx.speeds[k.duration]||e.fx.speeds._default;k.old=k.complete;k.complete=function(){k.queue!==false&&e(this).dequeue();e.isFunction(k.old)&&k.old.call(this)};return k},easing:{linear:function(b,c,g,k){return g+k*b},swing:function(b,c,g,k){return(-Math.cos(b*Math.PI)/2+0.5)*k+g}},timers:[],fx:function(b,c,g){this.options=c;this.elem=b;this.prop=g;if(!c.orig)c.orig={}}});e.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,
this.now,this);(e.fx.step[this.prop]||e.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(e.css(this.elem,this.prop,b)))&&b>-10000?b:parseFloat(e.curCSS(this.elem,this.prop))||0},custom:function(b,c,g){function k(q){return j.step(q)}this.startTime=n();this.start=b;this.end=c;this.unit=
g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var j=this;k.elem=this.elem;if(k()&&e.timers.push(k)&&!Sa)Sa=setInterval(e.fx.tick,13)},show:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());e(this.elem).show()},hide:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var c=n(),g=true;if(b||
c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var k in this.options.curAnim)if(this.options.curAnim[k]!==true)g=false;if(g){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;b=e.data(this.elem,"olddisplay");this.elem.style.display=b?b:this.options.display;if(e.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&e(this.elem).hide();if(this.options.hide||
this.options.show)for(var j in this.options.curAnim)e.style(this.elem,j,this.options.orig[j]);this.options.complete.call(this.elem)}return false}else{j=c-this.startTime;this.state=j/this.options.duration;b=this.options.easing||(e.easing.swing?"swing":"linear");this.pos=e.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,j,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};e.extend(e.fx,{tick:function(){for(var b=
e.timers,c=0;c<b.length;c++)b[c]()||b.splice(c--,1);b.length||e.fx.stop()},stop:function(){clearInterval(Sa);Sa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){e.style(b.elem,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit;else b.elem[b.prop]=b.now}}});if(e.expr&&e.expr.filters)e.expr.filters.animated=function(b){return e.grep(e.timers,function(c){return b===
c.elem}).length};e.fn.offset="getBoundingClientRect"in D.documentElement?function(b){var c=this[0];if(b)return this.each(function(j){e.offset.setOffset(this,b,j)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return e.offset.bodyOffset(c);var g=c.getBoundingClientRect(),k=c.ownerDocument;c=k.body;k=k.documentElement;return{top:g.top+(self.pageYOffset||e.support.boxModel&&k.scrollTop||c.scrollTop)-(k.clientTop||c.clientTop||0),left:g.left+(self.pageXOffset||e.support.boxModel&&k.scrollLeft||
c.scrollLeft)-(k.clientLeft||c.clientLeft||0)}}:function(b){var c=this[0];if(b)return this.each(function(E){e.offset.setOffset(this,b,E)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return e.offset.bodyOffset(c);e.offset.initialize();var g=c.offsetParent,k=c,j=c.ownerDocument,q,p=j.documentElement,y=j.body;k=(j=j.defaultView)?j.getComputedStyle(c,null):c.currentStyle;for(var t=c.offsetTop,x=c.offsetLeft;(c=c.parentNode)&&c!==y&&c!==p;){if(e.offset.supportsFixedPosition&&k.position===
"fixed")break;q=j?j.getComputedStyle(c,null):c.currentStyle;t-=c.scrollTop;x-=c.scrollLeft;if(c===g){t+=c.offsetTop;x+=c.offsetLeft;if(e.offset.doesNotAddBorder&&!(e.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(c.nodeName))){t+=parseFloat(q.borderTopWidth)||0;x+=parseFloat(q.borderLeftWidth)||0}k=g;g=c.offsetParent}if(e.offset.subtractsBorderForOverflowNotVisible&&q.overflow!=="visible"){t+=parseFloat(q.borderTopWidth)||0;x+=parseFloat(q.borderLeftWidth)||0}k=q}if(k.position==="relative"||
k.position==="static"){t+=y.offsetTop;x+=y.offsetLeft}if(e.offset.supportsFixedPosition&&k.position==="fixed"){t+=Math.max(p.scrollTop,y.scrollTop);x+=Math.max(p.scrollLeft,y.scrollLeft)}return{top:t,left:x}};e.offset={initialize:function(){var b=D.body,c=D.createElement("div"),g,k,j,q=parseFloat(e.curCSS(b,"marginTop",true))||0;e.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
b.insertBefore(c,b.firstChild);g=c.firstChild;k=g.firstChild;j=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=k.offsetTop!==5;this.doesAddBorderForTableAndCells=j.offsetTop===5;k.style.position="fixed";k.style.top="20px";this.supportsFixedPosition=k.offsetTop===20||k.offsetTop===15;k.style.position=k.style.top="";g.style.overflow="hidden";g.style.position="relative";this.subtractsBorderForOverflowNotVisible=k.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=b.offsetTop!==q;b.removeChild(c);
e.offset.initialize=e.noop},bodyOffset:function(b){var c=b.offsetTop,g=b.offsetLeft;e.offset.initialize();if(e.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(e.curCSS(b,"marginTop",true))||0;g+=parseFloat(e.curCSS(b,"marginLeft",true))||0}return{top:c,left:g}},setOffset:function(b,c,g){if(/static/.test(e.curCSS(b,"position")))b.style.position="relative";var k=e(b),j=k.offset(),q=parseInt(e.curCSS(b,"top",true),10)||0,p=parseInt(e.curCSS(b,"left",true),10)||0;if(e.isFunction(c))c=c.call(b,
g,j);g={top:c.top-j.top+q,left:c.left-j.left+p};"using"in c?c.using.call(b,g):k.css(g)}};e.fn.extend({position:function(){if(!this[0])return null;var b=this[0],c=this.offsetParent(),g=this.offset(),k=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();g.top-=parseFloat(e.curCSS(b,"marginTop",true))||0;g.left-=parseFloat(e.curCSS(b,"marginLeft",true))||0;k.top+=parseFloat(e.curCSS(c[0],"borderTopWidth",true))||0;k.left+=parseFloat(e.curCSS(c[0],"borderLeftWidth",true))||0;return{top:g.top-
k.top,left:g.left-k.left}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent||D.body;b&&!/^body|html$/i.test(b.nodeName)&&e.css(b,"position")==="static";)b=b.offsetParent;return b})}});e.each(["Left","Top"],function(b,c){var g="scroll"+c;e.fn[g]=function(k){var j=this[0],q;if(!j)return null;return k!==f?this.each(function(){if(q=W(this))q.scrollTo(!b?k:e(q).scrollLeft(),b?k:e(q).scrollTop());else this[g]=k}):(q=W(j))?"pageXOffset"in q?q[b?"pageYOffset":"pageXOffset"]:
e.support.boxModel&&q.document.documentElement[g]||q.document.body[g]:j[g]}});e.each(["Height","Width"],function(b,c){var g=c.toLowerCase();e.fn["inner"+c]=function(){return this[0]?e.css(this[0],g,false,"padding"):null};e.fn["outer"+c]=function(k){return this[0]?e.css(this[0],g,false,k?"margin":"border"):null};e.fn[g]=function(k){var j=this[0];if(!j)return k==null?null:this;if(e.isFunction(k))return this.each(function(q){var p=e(this);p[g](k.call(this,q,p[g]()))});return"scrollTo"in j&&j.document?
j.document.compatMode==="CSS1Compat"&&j.document.documentElement["client"+c]||j.document.body["client"+c]:j.nodeType===9?Math.max(j.documentElement["client"+c],j.body["scroll"+c],j.documentElement["scroll"+c],j.body["offset"+c],j.documentElement["offset"+c]):k===f?e.css(j,g):this.css(g,typeof k==="string"?k:k+"px")}});d.jQuery=d.$=e})(window);
(function(d){this.GLOBAL={debug:true,aInit:[],reInit:function(f){try{if(f&&d.isFunction(f)){f.call();this.aInit.push(f)}else d.each(this.aInit,function(){this.call()})}catch(i){debug(i)}}};this.debug=function(f){window.console&&window.console.log&&GLOBAL.debug&&window.console.log("[GLOBAL: '"+f+"']\n"+debug.caller.toString())}})(jQuery);
(function(){this.Class={create:function(d,f){var i=this,h,m,n,s,z,F=0;d=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(d);n=d[3].match(/(^|\.)(\w+)$/i)[2];m=i.createNS(d[3].replace(/\.\w+$/,""));if(!m[n])if(d[2]=="static"){m[n]=f;this.onCreate&&this.onCreate(d[2],d[3],m[n])}else{if(!f[n]){f[n]=function(){};F=1}m[n]=f[n];i.extend(m[n].prototype,f);if(d[5]){h=i.resolve(d[5]).prototype;s=d[5].match(/\.(\w+)$/i)[1];z=m[n];m[n]=F?function(){return h[s].apply(this,arguments)}:function(){this.parent=h[s];return z.apply(this,
arguments)};m[n].prototype[n]=m[n];i.each(h,function(A,H){m[n].prototype[H]=h[H]});i.each(f,function(A,H){if(h[H])m[n].prototype[H]=function(){this.parent=h[H];return A.apply(this,arguments)};else if(H!=n)m[n].prototype[H]=A})}i.each(f["static"],function(A,H){m[n][H]=A});this.onCreate&&this.onCreate(d[2],d[3],m[n].prototype)}},createNS:function(d,f){var i,h;f=f||window;d=d.split(".");for(i=0;i<d.length;i++){h=d[i];f[h]||(f[h]={});f=f[h]}return f},extend:function(d,f){var i,h=arguments,m=this;for(i=
1;i<h.length;i++){f=h[i];m.each(f,function(n,s){if(typeof n!=="undefined")d[s]=n})}return d},resolve:function(d,f){var i,h;f=f||window;d=d.split(".");i=0;for(h=d.length;i<h;i++){f=f[d[i]];if(!f)break}return f},each:function(d,f,i){var h,m;if(!d)return 0;i=i||d;if(typeof d.length!="undefined"){h=0;for(m=d.length;h<m;h++)if(f.call(i,d[h],h,d)===false)return 0}else for(h in d)if(d.hasOwnProperty(h))if(f.call(i,d[h],h,d)===false)return 0;return 1}}})();
(function(){var d=false,f=/xyz/.test(function(){})?/\b_super\b/:/.*/;this.SimpleClass=function(){};SimpleClass.extend=function(i){function h(){!d&&this.init&&this.init.apply(this,arguments)}var m=this.prototype;d=true;var n=new this;d=false;for(var s in i)n[s]=typeof i[s]=="function"&&typeof m[s]=="function"&&f.test(i[s])?function(z,F){return function(){var A=this._super;this._super=m[z];var H=F.apply(this,arguments);this._super=A;return H}}(s,i[s]):i[s];h.prototype=n;h.constructor=h;h.extend=arguments.callee;
return h}})();(function(){var d={};window.tmpl=function(f,i){f=!/\W/.test(f)?(d[f]=d[f]||tmpl(f)):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+f.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return i?f(i):f}})();
(function(d){d.baseClass=function(f){f=d(f);if((f=f.get(0).className.match(/([^ ]+)/))&&f[1])return f[1];return false};d.fn.addDependClass=function(f,i){var h={delimiter:i?i:"-"};return this.each(function(){var m=d.baseClass(this);m&&d(this).addClass(m+h.delimiter+f)})};d.fn.removeDependClass=function(f,i){var h={delimiter:i?i:"-"};return this.each(function(){var m=d.baseClass(this);m&&d(this).removeClass(m+h.delimiter+f)})};d.fn.toggleDependClass=function(f,i){var h={delimiter:i?i:"-"};return this.each(function(){var m=
d.baseClass(this);if(m)d(this).is("."+m+h.delimiter+f)?d(this).removeClass(m+h.delimiter+f):d(this).addClass(m+h.delimiter+f)})}})(jQuery);
jQuery.extend(jQuery.easing,{easeInQuad:function(d,f,i,h,m){return h*(f/=m)*f+i},easeOutQuad:function(d,f,i,h,m){return-h*(f/=m)*(f-2)+i},easeInOutQuad:function(d,f,i,h,m){if((f/=m/2)<1)return h/2*f*f+i;return-h/2*(--f*(f-2)-1)+i},easeInCubic:function(d,f,i,h,m){return h*(f/=m)*f*f+i},easeOutCubic:function(d,f,i,h,m){return h*((f=f/m-1)*f*f+1)+i},easeInOutCubic:function(d,f,i,h,m){if((f/=m/2)<1)return h/2*f*f*f+i;return h/2*((f-=2)*f*f+2)+i},easeInQuart:function(d,f,i,h,m){return h*(f/=m)*f*f*f+i},
easeOutQuart:function(d,f,i,h,m){return-h*((f=f/m-1)*f*f*f-1)+i},easeInOutQuart:function(d,f,i,h,m){if((f/=m/2)<1)return h/2*f*f*f*f+i;return-h/2*((f-=2)*f*f*f-2)+i},easeInQuint:function(d,f,i,h,m){return h*(f/=m)*f*f*f*f+i},easeOutQuint:function(d,f,i,h,m){return h*((f=f/m-1)*f*f*f*f+1)+i},easeInOutQuint:function(d,f,i,h,m){if((f/=m/2)<1)return h/2*f*f*f*f*f+i;return h/2*((f-=2)*f*f*f*f+2)+i},easeInSine:function(d,f,i,h,m){return-h*Math.cos(f/m*(Math.PI/2))+h+i},easeOutSine:function(d,f,i,h,m){return h*
Math.sin(f/m*(Math.PI/2))+i},easeInOutSine:function(d,f,i,h,m){return-h/2*(Math.cos(Math.PI*f/m)-1)+i},easeInExpo:function(d,f,i,h,m){return f==0?i:h*Math.pow(2,10*(f/m-1))+i},easeOutExpo:function(d,f,i,h,m){return f==m?i+h:h*(-Math.pow(2,-10*f/m)+1)+i},easeInOutExpo:function(d,f,i,h,m){if(f==0)return i;if(f==m)return i+h;if((f/=m/2)<1)return h/2*Math.pow(2,10*(f-1))+i;return h/2*(-Math.pow(2,-10*--f)+2)+i},easeInCirc:function(d,f,i,h,m){return-h*(Math.sqrt(1-(f/=m)*f)-1)+i},easeOutCirc:function(d,
f,i,h,m){return h*Math.sqrt(1-(f=f/m-1)*f)+i},easeInOutCirc:function(d,f,i,h,m){if((f/=m/2)<1)return-h/2*(Math.sqrt(1-f*f)-1)+i;return h/2*(Math.sqrt(1-(f-=2)*f)+1)+i},easeInElastic:function(d,f,i,h,m){d=1.70158;var n=0,s=h;if(f==0)return i;if((f/=m)==1)return i+h;n||(n=m*0.3);if(s<Math.abs(h)){s=h;d=n/4}else d=n/(2*Math.PI)*Math.asin(h/s);return-(s*Math.pow(2,10*(f-=1))*Math.sin((f*m-d)*2*Math.PI/n))+i},easeOutElastic:function(d,f,i,h,m){d=1.70158;var n=0,s=h;if(f==0)return i;if((f/=m)==1)return i+
h;n||(n=m*0.3);if(s<Math.abs(h)){s=h;d=n/4}else d=n/(2*Math.PI)*Math.asin(h/s);return s*Math.pow(2,-10*f)*Math.sin((f*m-d)*2*Math.PI/n)+h+i},easeInOutElastic:function(d,f,i,h,m){d=1.70158;var n=0,s=h;if(f==0)return i;if((f/=m/2)==2)return i+h;n||(n=m*0.3*1.5);if(s<Math.abs(h)){s=h;d=n/4}else d=n/(2*Math.PI)*Math.asin(h/s);if(f<1)return-0.5*s*Math.pow(2,10*(f-=1))*Math.sin((f*m-d)*2*Math.PI/n)+i;return s*Math.pow(2,-10*(f-=1))*Math.sin((f*m-d)*2*Math.PI/n)*0.5+h+i},easeInBack:function(d,f,i,h,m,n){if(n==
undefined)n=1.70158;return h*(f/=m)*f*((n+1)*f-n)+i},easeOutBack:function(d,f,i,h,m,n){if(n==undefined)n=1.70158;return h*((f=f/m-1)*f*((n+1)*f+n)+1)+i},easeInOutBack:function(d,f,i,h,m,n){if(n==undefined)n=1.70158;if((f/=m/2)<1)return h/2*f*f*(((n*=1.525)+1)*f-n)+i;return h/2*((f-=2)*f*(((n*=1.525)+1)*f+n)+2)+i},easeInBounce:function(d,f,i,h,m){return h-jQuery.easing.easeOutBounce(d,m-f,0,h,m)+i},easeOutBounce:function(d,f,i,h,m){return(f/=m)<1/2.75?h*7.5625*f*f+i:f<2/2.75?h*(7.5625*(f-=1.5/2.75)*
f+0.75)+i:f<2.5/2.75?h*(7.5625*(f-=2.25/2.75)*f+0.9375)+i:h*(7.5625*(f-=2.625/2.75)*f+0.984375)+i},easeInOutBounce:function(d,f,i,h,m){if(f<m/2)return jQuery.easing.easeInBounce(d,f*2,0,h,m)*0.5+i;return jQuery.easing.easeOutBounce(d,f*2-m,0,h,m)*0.5+h*0.5+i}});
jQuery.fn.extend({render:function(d,f){var i={},h=null,m=new RegExp("['\"](.+)['\"]","mg");f=f||[];d=$.makeArray(d);this.each(function(n){var s=function(F,A,H){var O=$("<div></div>").append(A.clone());$.each(F,function(W,e){W=""+W;if(W.indexOf("$(")==0||W.indexOf("@(")==0){var da=m.exec(W);if(da[1])O.find(da[1]).render(e,{clone:W.indexOf("@")==0?true:false})}});var V="",X=O.html().replace(/%7B/ig,"{").replace(/%7D/ig,"}"),Y=function(W,e){replacement=V+W;if(!i[replacement]){if(e!=null&&typeof e=="object"||
typeof e=="array"){W=V;V=replacement+".";$.each(e,Y);V=W;return}i[replacement]=new RegExp("{"+replacement+"}","gm")}W=i[replacement];X=X.replace(W,e)};$.each(F,Y);F=$(X);H.beforeUpdate&&H.beforeUpdate(F);H.clone?A.after(F):A.replaceWith(F);H.afterUpdate&&H.afterUpdate(F);return F},z=$(this);if(f.preserve_template)f.clone=true;if(f.clone){d=$.makeArray(d);$(d.reverse()).each(function(){var F=s(this,z,f);if(h)h.push(F[0]);else h=$(F)});f.preserve_template||$(this).remove()}else{n=d[n]||d[d.length-1];
s(n,z,f)}});return h?this.pushStack(h,"render",this.selector):this}});
(function(d){function f(h){return typeof h=="object"?h:{top:h,left:h}}var i=d.scrollTo=function(h,m,n){d(window).scrollTo(h,m,n)};i.defaults={axis:"xy",duration:parseFloat(d.fn.jquery)>=1.3?0:1};i.window=function(){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var h=this,m=!h.nodeName||d.inArray(h.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!m)return h;h=(h.contentWindow||h).document||h.ownerDocument||h;return d.browser.safari||h.compatMode==
"BackCompat"?h.body:h.documentElement})};d.fn.scrollTo=function(h,m,n){if(typeof m=="object"){n=m;m=0}if(typeof n=="function")n={onAfter:n};if(h=="max")h=9E9;n=d.extend({},i.defaults,n);m=m||n.speed||n.duration;n.queue=n.queue&&n.axis.length>1;if(n.queue)m/=2;n.offset=f(n.offset);n.over=f(n.over);return this._scrollable().each(function(){function s(X){F.animate(O,m,n.easing,X&&function(){X.call(this,h,n)})}var z=this,F=d(z),A=h,H,O={},V=F.is("html,body");switch(typeof A){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(A)){A=
f(A);break}A=d(A,this);case "object":if(A.is||A.style)H=(A=d(A)).offset()}d.each(n.axis.split(""),function(X,Y){var W=Y=="x"?"Left":"Top",e=W.toLowerCase(),da="scroll"+W,ta=z[da],D=i.max(z,Y);if(H){O[da]=H[e]+(V?0:ta-F.offset()[e]);if(n.margin){O[da]-=parseInt(A.css("margin"+W))||0;O[da]-=parseInt(A.css("border"+W+"Width"))||0}O[da]+=n.offset[e]||0;if(n.over[e])O[da]+=A[Y=="x"?"width":"height"]()*n.over[e]}else{Y=A[e];O[da]=Y.slice&&Y.slice(-1)=="%"?parseFloat(Y)/100*D:Y}if(/^\d+$/.test(O[da]))O[da]=
O[da]<=0?0:Math.min(O[da],D);if(!X&&n.queue){ta!=O[da]&&s(n.onAfterFirst);delete O[da]}});s(n.onAfter)}).end()};i.max=function(h,m){var n=m=="x"?"Width":"Height";m="scroll"+n;if(!d(h).is("html,body"))return h[m]-d(h)[n.toLowerCase()]();n="client"+n;var s=h.ownerDocument.documentElement;h=h.ownerDocument.body;return Math.max(s[m],h[m])-Math.min(s[n],h[n])}})(jQuery);
(function(d){d.fn.tabs=function(f,i,h){var m=this;return this.each(function(n){d(this).click(function(){f.hide();m.removeClass(i);d(this).addClass(i);f.eq(n).show();h&&h.call(f.eq(n),n)})})}})(jQuery);
jQuery.cookie=function(d,f,i){if(typeof f!="undefined"){i=i||{};if(f===null){f="";i.expires=-1}var h="";if(i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)){if(typeof i.expires=="number"){h=new Date;h.setTime(h.getTime()+i.expires*24*60*60*1E3)}else h=i.expires;h="; expires="+h.toUTCString()}var m=i.path?"; path="+i.path:"",n=i.domain?"; domain="+i.domain:"";i=i.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(f),h,m,n,i].join("")}else{f=null;if(document.cookie&&document.cookie!==
""){i=document.cookie.split(";");for(h=0;h<i.length;h++){m=jQuery.trim(i[h]);if(m.substring(0,d.length+1)==d+"="){f=decodeURIComponent(m.substring(d.length+1));break}}}return f}};
(function(d){function f(z,F){if(d.trim(z.text()).length<=F.condensedLength+F.minTrail){s("element too short: skipping.");return false}var A=d.trim(z.html()),H=d.trim(z.text());z=z.clone();var O=0;do{var V=i(A,F.delim,F.condensedLength+O);z.html(d.trim(A.substring(0,V+1)));var X=z.text().length,Y=z.html().length;O=z.html().length-X;s("condensing... [html-length:"+Y+" text-length:"+X+" delta: "+O+" break-point: "+V+"]")}while(z.text().length<F.condensedLength);if(H.length-X<F.minTrail){s("not enough trailing text: skipping.");
return false}s("clone condensed. [text-length:"+X+"]");return z}function i(z,F,A){var H=false;A=A;do{A=z.indexOf(F,A);if(A<0){s("No delimiter found.");return z.length}for(H=true;h(z,A);){A++;H=false}}while(!H);s("Delimiter found in html at: "+A);return A}function h(z,F){return z.indexOf(">",F)<z.indexOf("<",F)}function m(z,F){s("Condense Trigger: "+z.html());var A=z.parent(),H=A.next();H.show();z=H.width();var O=H.height();H.hide();var V=A.width(),X=A.height();A.animate({height:O,width:z,opacity:1},
F.lessSpeed,F.easing,function(){A.height(X).width(V).hide();H.show()})}function n(z,F){s("Expand Trigger: "+z.html());z=z.parent();var A=z.prev();A.show();var H=A.width(),O=A.height();A.width(z.width()+"px").height(z.height()+"px");z.hide();A.animate({height:O,width:H,opacity:1},F.moreSpeed,F.easing);if(z.attr("id")){F=z.attr("id");z.attr("id","condensed_"+F);A.attr("id",F)}}function s(){}d.fn.condense=function(z){d.metadata?s("metadata plugin detected"):s("metadata plugin not present");var F=d.extend({},
d.fn.condense.defaults,z);return this.each(function(){$this=d(this);var A=d.metadata?d.extend({},F,$this.metadata()):F;s("Condensing ["+$this.text().length+"]: "+$this.text());var H=f($this,A);if(H){$this.attr("id")&&$this.attr("id","condensed_"+$this.attr("id"));var O=" <span class='condense_control condense_control_more' style='cursor:pointer;'>"+A.moreText+"</span>",V=" <span class='condense_control condense_control_less' style='cursor:pointer;'>"+A.lessText+"</span>";H.append(A.ellipsis+O);$this.after(H).hide().append(V);
d(".condense_control_more",H).click(function(){s("moreControl clicked.");n(d(this),A)});d(".condense_control_less",$this).click(function(){s("lessControl clicked.");m(d(this),A)})}})};d.fn.condense.defaults={condensedLength:200,minTrail:20,delim:" ",moreText:"[more]",lessText:"[less]",ellipsis:" ( ... )",moreSpeed:"normal",lessSpeed:"normal",easing:"linear"}})(jQuery);
(function(d){d.fn.twitLimit=function(f){function i(n){var s=d("<p />");if(n<=20&&n>=10)var z=d("<span />").attr("class","twitLimit_count").text(n).css({color:"#"+m.dangerColors.dark});else if(n<10&&n>0)z=d("<span />").attr("class","twitLimit_count").text(n).css({color:"#"+m.dangerColors.medium});else if(n<=0)z=d("<span />").attr("class","twitLimit_count").text(n).css({color:"#"+m.dangerColors.bright});else return n;m.dangerBold==true&&z.css({"font-weight":"bold"});n<=20&&s.append(z);return z=s.html()}
function h(n,s){n=d(n);s=d(s);m.allowNegative===false&&n.val().length>m.limit&&n.val(n.val().substr(0,m.limit));m.dangerMode==true?s.html(m.message.replace(/%1/,i(m.limit-n.val().length))):s.html(m.message.replace(/%1/,m.limit-n.val().length));m.limit-n.val().length<0&&m.onNegative(n,s);m.limit-n.val().length>=0&&m.onPositive(n,s)}d.fn.twitLimit.defaults={limit:140,message:"%1 Characters Remaining.",counterElem:"#limit",allowNegative:false,dangerMode:true,dangerBold:true,dangerColors:{dark:"550505",
medium:"980808",bright:"e90909"},onNegative:function(){},onPositive:function(){}};var m=d.extend({},d.fn.twitLimit.defaults,f);m.limit=Math.abs(m.limit);return this.each(function(){var n=d(this);n.bind("keydown keypress keyup change focus mouseout mouseover paste",function(){h(n,m.counterElem)});n.addEventListener&&n.addEventListener("input",function(){h(n,m.counterElem)},false);h(n,m.counterElem)})}})(jQuery);
(function(d){d.browser.msie||d(document.documentElement).addClass("e-loaded");d.browser.safari&&d(document.documentElement).addClass("e-webkit");d.browser.mozilla&&d(document.documentElement).addClass("e-gecko");d.browser.opera&&d(document.documentElement).addClass("e-opera");var f=navigator.userAgent.indexOf("Mac")!=-1;if(f){d(document.documentElement).addClass("e-mac");d.browser.safari&&d(document.documentElement).addClass("e-webkit-mac");d.browser.mozilla&&d(document.documentElement).addClass("e-gecko-mac");
d.browser.opera&&d(document.documentElement).addClass("e-opera-mac")}})(jQuery);(function(d){d(document).ready(function(){d(".j-hovered").live("mouseover",function(){d(this).addDependClass("hover")}).live("mouseout",function(){d(this).removeDependClass("hover")});d(".j-collapse").live("click",function(){d(this).parents(".j-collapsed").toggleDependClass("collapsed");return false})})})(jQuery);
var Button={init:function(){Button.enable("input.button");Button.disable("input.button:disabled")},enable:function(d){jQuery(d).removeAttr("disabled").removeClass("disabled")},disable:function(d){jQuery(d).attr("disabled","disabled").addClass("disabled")}};jQuery(document).ready(function(){Button.init()});(function(){Number.prototype.declension=function(d){var f=[2,0,1,1,1,2];return this+d[this%100>4&&this%100<20?2:f[Math.min(this%10,5)]]}})(jQuery);
(function(d){this.Error=function(f){if(!f.name)f.name="undefined";d.ajax({type:"POST",url:"/errors/js",data:f,async:false})}})(jQuery);
(function(d){d(document).ready(function(){GLOBAL.reInit(function(){d("input[placeholder], textarea[placeholder]").not("[prettysearch=yes]").each(function(){new g_placeholder(this)})})});this.g_placeholder=function(){return this.init.apply(this,arguments)};g_placeholder.prototype={init:function(f){this.ptr=d(f);this.placeholder=this.ptr.attr("placeholder");this.ptr.removeAttr("placeholder");this.create();this.bindEvents();this.ptr.val()!=""&&this.f_placeholder(false)},create:function(){this.domNode=
d("<span>");this.domNode.css({display:"inline-block",position:"relative",width:"100%"});this.ptr.wrap(this.domNode);this.placeholderNode=d("<span>");this.placeholderNode.text(this.placeholder).css({position:"absolute",left:3,top:3,height:"1.5em",color:"gray",zIndex:1});this.ptr.after(this.placeholderNode)},bindEvents:function(){var f=this;this.ptr.focus(function(){f.f_placeholder(false)}).blur(function(){f.ptr.val()==""&&f.f_placeholder(true)});this.placeholderNode.mouseup(function(){f.ptr.focus()})},
f_placeholder:function(f){f?this.placeholderNode.show():this.placeholderNode.hide()}}})(jQuery);
var swfobject=function(){function d(){if(!ua){try{var r=S.getElementsByTagName("body")[0].appendChild(e("span"));r.parentNode.removeChild(r)}catch(v){return}ua=true;r=ra.length;for(var G=0;G<r;G++)ra[G]()}}function f(r){if(ua)r();else ra[ra.length]=r}function i(r){if(typeof fa.addEventListener!=aa)fa.addEventListener("load",r,false);else if(typeof S.addEventListener!=aa)S.addEventListener("load",r,false);else if(typeof fa.attachEvent!=aa)da(fa,"onload",r);else if(typeof fa.onload=="function"){var v=
fa.onload;fa.onload=function(){v();r()}}else fa.onload=r}function h(){Fa?m():n()}function m(){var r=S.getElementsByTagName("body")[0],v=e(na);v.setAttribute("type",qa);var G=r.appendChild(v);if(G){var I=0;(function(){if(typeof G.GetVariable!=aa){var K=G.GetVariable("$version");if(K){K=K.split(" ")[1].split(",");J.pv=[parseInt(K[0],10),parseInt(K[1],10),parseInt(K[2],10)]}}else if(I<10){I++;setTimeout(arguments.callee,10);return}r.removeChild(v);G=null;n()})()}else n()}function n(){var r=oa.length;
if(r>0)for(var v=0;v<r;v++){var G=oa[v].id,I=oa[v].callbackFn,K={success:false,id:G};if(J.pv[0]>0){var Q=W(G);if(Q)if(ta(oa[v].swfVersion)&&!(J.wk&&J.wk<312)){ka(G,true);if(I){K.success=true;K.ref=s(G);I(K)}}else if(oa[v].expressInstall&&z()){K={};K.data=oa[v].expressInstall;K.width=Q.getAttribute("width")||"0";K.height=Q.getAttribute("height")||"0";if(Q.getAttribute("class"))K.styleclass=Q.getAttribute("class");if(Q.getAttribute("align"))K.align=Q.getAttribute("align");var R={};Q=Q.getElementsByTagName("param");
for(var ba=Q.length,ea=0;ea<ba;ea++)if(Q[ea].getAttribute("name").toLowerCase()!="movie")R[Q[ea].getAttribute("name")]=Q[ea].getAttribute("value");F(K,R,G,I)}else{A(Q);I&&I(K)}}else{ka(G,true);if(I){if((G=s(G))&&typeof G.SetVariable!=aa){K.success=true;K.ref=G}I(K)}}}}function s(r){var v=null;if((r=W(r))&&r.nodeName=="OBJECT")if(typeof r.SetVariable!=aa)v=r;else if(r=r.getElementsByTagName(na)[0])v=r;return v}function z(){return!Ga&&ta("6.0.65")&&(J.win||J.mac)&&!(J.wk&&J.wk<312)}function F(r,v,G,
I){Ga=true;Ca=I||null;Qa={success:false,id:G};var K=W(G);if(K){if(K.nodeName=="OBJECT"){ya=H(K);Ba=null}else{ya=K;Ba=G}r.id=Ka;if(typeof r.width==aa||!/%$/.test(r.width)&&parseInt(r.width,10)<310)r.width="310";if(typeof r.height==aa||!/%$/.test(r.height)&&parseInt(r.height,10)<137)r.height="137";S.title=S.title.slice(0,47)+" - Flash Player Installation";I=J.ie&&J.win?"ActiveX":"PlugIn";I="MMredirectURL="+encodeURI(fa.location).toString().replace(/&/g,"%26")+"&MMplayerType="+I+"&MMdoctitle="+S.title;
if(typeof v.flashvars!=aa)v.flashvars+="&"+I;else v.flashvars=I;if(J.ie&&J.win&&K.readyState!=4){I=e("div");G+="SWFObjectNew";I.setAttribute("id",G);K.parentNode.insertBefore(I,K);K.style.display="none";(function(){K.readyState==4?K.parentNode.removeChild(K):setTimeout(arguments.callee,10)})()}O(r,v,G)}}function A(r){if(J.ie&&J.win&&r.readyState!=4){var v=e("div");r.parentNode.insertBefore(v,r);v.parentNode.replaceChild(H(r),v);r.style.display="none";(function(){r.readyState==4?r.parentNode.removeChild(r):
setTimeout(arguments.callee,10)})()}else r.parentNode.replaceChild(H(r),r)}function H(r){var v=e("div");if(J.win&&J.ie)v.innerHTML=r.innerHTML;else if(r=r.getElementsByTagName(na)[0])if(r=r.childNodes)for(var G=r.length,I=0;I<G;I++)!(r[I].nodeType==1&&r[I].nodeName=="PARAM")&&r[I].nodeType!=8&&v.appendChild(r[I].cloneNode(true));return v}function O(r,v,G){var I,K=W(G);if(J.wk&&J.wk<312)return I;if(K){if(typeof r.id==aa)r.id=G;if(J.ie&&J.win){var Q="";for(var R in r)if(r[R]!=Object.prototype[R])if(R.toLowerCase()==
"data")v.movie=r[R];else if(R.toLowerCase()=="styleclass")Q+=' class="'+r[R]+'"';else if(R.toLowerCase()!="classid")Q+=" "+R+'="'+r[R]+'"';R="";for(var ba in v)if(v[ba]!=Object.prototype[ba])R+='<param name="'+ba+'" value="'+v[ba]+'" />';K.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+Q+">"+R+"</object>";ga[ga.length]=r.id;I=W(r.id)}else{ba=e(na);ba.setAttribute("type",qa);for(Q in r)if(r[Q]!=Object.prototype[Q])if(Q.toLowerCase()=="styleclass")ba.setAttribute("class",r[Q]);
else Q.toLowerCase()!="classid"&&ba.setAttribute(Q,r[Q]);for(var ea in v)v[ea]!=Object.prototype[ea]&&ea.toLowerCase()!="movie"&&V(ba,ea,v[ea]);K.parentNode.replaceChild(ba,K);I=ba}}return I}function V(r,v,G){var I=e("param");I.setAttribute("name",v);I.setAttribute("value",G);r.appendChild(I)}function X(r){var v=W(r);if(v&&v.nodeName=="OBJECT")if(J.ie&&J.win){v.style.display="none";(function(){v.readyState==4?Y(r):setTimeout(arguments.callee,10)})()}else v.parentNode.removeChild(v)}function Y(r){if(r=
W(r)){for(var v in r)if(typeof r[v]=="function")r[v]=null;r.parentNode.removeChild(r)}}function W(r){var v=null;try{v=S.getElementById(r)}catch(G){}return v}function e(r){return S.createElement(r)}function da(r,v,G){r.attachEvent(v,G);xa[xa.length]=[r,v,G]}function ta(r){var v=J.pv;r=r.split(".");r[0]=parseInt(r[0],10);r[1]=parseInt(r[1],10)||0;r[2]=parseInt(r[2],10)||0;return v[0]>r[0]||v[0]==r[0]&&v[1]>r[1]||v[0]==r[0]&&v[1]==r[1]&&v[2]>=r[2]?true:false}function D(r,v,G,I){if(!(J.ie&&J.mac)){var K=
S.getElementsByTagName("head")[0];if(K){G=G&&typeof G=="string"?G:"screen";if(I)La=pa=null;if(!pa||La!=G){I=e("style");I.setAttribute("type","text/css");I.setAttribute("media",G);pa=K.appendChild(I);if(J.ie&&J.win&&typeof S.styleSheets!=aa&&S.styleSheets.length>0)pa=S.styleSheets[S.styleSheets.length-1];La=G}if(J.ie&&J.win)pa&&typeof pa.addRule==na&&pa.addRule(r,v);else pa&&typeof S.createTextNode!=aa&&pa.appendChild(S.createTextNode(r+" {"+v+"}"))}}}function ka(r,v){if(Ma){v=v?"visible":"hidden";
if(ua&&W(r))W(r).style.visibility=v;else D("#"+r,"visibility:"+v)}}function Oa(r){var v=/[\\\"<>\.;]/;return(v=v.exec(r)!=null)&&typeof encodeURIComponent!=aa?encodeURIComponent(r):r}var aa="undefined",na="object",Pa="Shockwave Flash",Ta="ShockwaveFlash.ShockwaveFlash",qa="application/x-shockwave-flash",Ka="SWFObjectExprInst",wa="onreadystatechange",fa=window,S=document,la=navigator,Fa=false,ra=[h],oa=[],ga=[],xa=[],ya,Ba,Ca,Qa,ua=false,Ga=false,pa,La,Ma=true,J=function(){var r=typeof S.getElementById!=
aa&&typeof S.getElementsByTagName!=aa&&typeof S.createElement!=aa,v=la.userAgent.toLowerCase(),G=la.platform.toLowerCase(),I=G?/win/.test(G):/win/.test(v);G=G?/mac/.test(G):/mac/.test(v);v=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var K=!+"\u000b1",Q=[0,0,0],R=null;if(typeof la.plugins!=aa&&typeof la.plugins[Pa]==na){if((R=la.plugins[Pa].description)&&!(typeof la.mimeTypes!=aa&&la.mimeTypes[qa]&&!la.mimeTypes[qa].enabledPlugin)){Fa=true;K=false;R=R.replace(/^.*\s+(\S+\s+\S+$)/,
"$1");Q[0]=parseInt(R.replace(/^(.*)\..*$/,"$1"),10);Q[1]=parseInt(R.replace(/^.*\.(.*)\s.*$/,"$1"),10);Q[2]=/[a-zA-Z]/.test(R)?parseInt(R.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof fa.ActiveXObject!=aa)try{var ba=new ActiveXObject(Ta);if(ba)if(R=ba.GetVariable("$version")){K=true;R=R.split(" ")[1].split(",");Q=[parseInt(R[0],10),parseInt(R[1],10),parseInt(R[2],10)]}}catch(ea){}return{w3:r,pv:Q,wk:v,ie:K,win:I,mac:G}}();(function(){if(J.w3){if(typeof S.readyState!=aa&&S.readyState=="complete"||
typeof S.readyState==aa&&(S.getElementsByTagName("body")[0]||S.body))d();if(!ua){typeof S.addEventListener!=aa&&S.addEventListener("DOMContentLoaded",d,false);if(J.ie&&J.win){S.attachEvent(wa,function(){if(S.readyState=="complete"){S.detachEvent(wa,arguments.callee);d()}});fa==top&&function(){if(!ua){try{S.documentElement.doScroll("left")}catch(r){setTimeout(arguments.callee,0);return}d()}}()}J.wk&&function(){ua||(/loaded|complete/.test(S.readyState)?d():setTimeout(arguments.callee,0))}();i(d)}}})();
(function(){J.ie&&J.win&&window.attachEvent("onunload",function(){for(var r=xa.length,v=0;v<r;v++)xa[v][0].detachEvent(xa[v][1],xa[v][2]);r=ga.length;for(v=0;v<r;v++)X(ga[v]);for(var G in J)J[G]=null;J=null;for(var I in swfobject)swfobject[I]=null;swfobject=null})})();return{registerObject:function(r,v,G,I){if(J.w3&&r&&v){var K={};K.id=r;K.swfVersion=v;K.expressInstall=G;K.callbackFn=I;oa[oa.length]=K;ka(r,false)}else I&&I({success:false,id:r})},getObjectById:function(r){if(J.w3)return s(r)},embedSWF:function(r,
v,G,I,K,Q,R,ba,ea,Da){var Ia={success:false,id:v};if(J.w3&&!(J.wk&&J.wk<312)&&r&&v&&G&&I&&K){ka(v,false);f(function(){G+="";I+="";var sa={};if(ea&&typeof ea===na)for(var ma in ea)sa[ma]=ea[ma];sa.data=r;sa.width=G;sa.height=I;ma={};if(ba&&typeof ba===na)for(var Ea in ba)ma[Ea]=ba[Ea];if(R&&typeof R===na)for(var va in R)if(typeof ma.flashvars!=aa)ma.flashvars+="&"+va+"="+R[va];else ma.flashvars=va+"="+R[va];if(ta(K)){Ea=O(sa,ma,v);sa.id==v&&ka(v,true);Ia.success=true;Ia.ref=Ea}else if(Q&&z()){sa.data=
Q;F(sa,ma,v,Da);return}else ka(v,true);Da&&Da(Ia)})}else Da&&Da(Ia)},switchOffAutoHideShow:function(){Ma=false},ua:J,getFlashPlayerVersion:function(){return{major:J.pv[0],minor:J.pv[1],release:J.pv[2]}},hasFlashPlayerVersion:ta,createSWF:function(r,v,G){if(J.w3)return O(r,v,G)},showExpressInstall:function(r,v,G,I){J.w3&&z()&&F(r,v,G,I)},removeSWF:function(r){J.w3&&X(r)},createCSS:function(r,v,G,I){J.w3&&D(r,v,G,I)},addDomLoadEvent:f,addLoadEvent:i,getQueryParamValue:function(r){var v=S.location.search||
S.location.hash;if(v){if(/\?/.test(v))v=v.split("?")[1];if(r==null)return Oa(v);v=v.split("&");for(var G=0;G<v.length;G++)if(v[G].substring(0,v[G].indexOf("="))==r)return Oa(v[G].substring(v[G].indexOf("=")+1))}return""},expressInstallCallback:function(){if(Ga){var r=W(Ka);if(r&&ya){r.parentNode.replaceChild(ya,r);if(Ba){ka(Ba,true);if(J.ie&&J.win)ya.style.display="block"}Ca&&Ca(Qa)}Ga=false}}}}(),SWFUpload;if(SWFUpload==undefined)SWFUpload=function(d){this.initSWFUpload(d)};
SWFUpload.prototype.initSWFUpload=function(d){try{this.customSettings={};this.settings=d;this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo()}catch(f){delete SWFUpload.instances[this.movieName];throw f;}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.2.0 Beta 3";
SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};
SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};a=SWFUpload.prototype;
a.initSettings=function(){this.ensureDefault=function(d,f){this.settings[d]=this.settings[d]==undefined?f:this.settings[d]};this.ensureDefault("upload_url","");this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("file_types","*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",
0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",
0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id",null);this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",
null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});
this.customSettings=this.settings.custom_settings;if(this.settings.prevent_swf_caching)this.settings.flash_url=this.settings.flash_url+"?swfuploadrnd="+Math.floor(Math.random()*999999999);delete this.ensureDefault};a.loadFlash=function(){this.settings.button_placeholder_id!==""?this.replaceWithFlash():this.appendFlash()};
a.appendFlash=function(){var d,f;if(document.getElementById(this.movieName)!==null)throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";d=document.getElementsByTagName("body")[0];if(d==undefined)throw"Could not find the 'body' element.";f=document.createElement("div");f.style.width="1px";f.style.height="1px";f.style.overflow="hidden";d.appendChild(f);f.innerHTML=this.getFlashHTML();if(window[this.movieName]==undefined)window[this.movieName]=this.getMovieElement()};
a.replaceWithFlash=function(){var d,f;if(document.getElementById(this.movieName)!==null)throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";d=document.getElementById(this.settings.button_placeholder_id);if(d==undefined)throw"Could not find the placeholder element.";f=document.createElement("div");f.innerHTML=this.getFlashHTML();d.parentNode.replaceChild(f.firstChild,d);if(window[this.movieName]==undefined)window[this.movieName]=this.getMovieElement()};
a.getFlashHTML=function(){return['<object id="',this.movieName,'" type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload"><param name="wmode" value="',this.settings.button_window_mode,'" /><param name="movie" value="',this.settings.flash_url,'" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+
this.getFlashVars()+'" />',"</object>"].join("")};
a.getFlashVars=function(){var d=this.buildParamString(),f=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(f),"&amp;params=",encodeURIComponent(d),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),
"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),
"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),
"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")};a.getMovieElement=function(){if(this.movieElement==undefined)this.movieElement=document.getElementById(this.movieName);if(this.movieElement===null)throw"Could not find Flash element";return this.movieElement};
a.buildParamString=function(){var d=this.settings.post_params,f=[];if(typeof d==="object")for(var i in d)d.hasOwnProperty(i)&&f.push(encodeURIComponent(i.toString())+"="+encodeURIComponent(d[i].toString()));return f.join("&amp;")};
a.destroy=function(){try{this.cancelUpload(null,false);var d=null;if(d=this.getMovieElement()){for(var f in d)try{if(typeof d[f]==="function")d[f]=null}catch(i){}try{d.parentNode.removeChild(d)}catch(h){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieName=this.eventQueue=this.customSettings=this.settings=this.movieElement=null;return true}catch(m){return false}};
a.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\nVersion: ",SWFUpload.version,"\nMovie Name: ",this.movieName,"\nSettings:\n\tupload_url:               ",this.settings.upload_url,"\n\tflash_url:                ",this.settings.flash_url,"\n\tuse_query_string:         ",this.settings.use_query_string.toString(),"\n\trequeue_on_error:         ",this.settings.requeue_on_error.toString(),"\n\thttp_success:             ",this.settings.http_success.join(", "),"\n\tfile_post_name:           ",
this.settings.file_post_name,"\n\tpost_params:              ",this.settings.post_params.toString(),"\n\tfile_types:               ",this.settings.file_types,"\n\tfile_types_description:   ",this.settings.file_types_description,"\n\tfile_size_limit:          ",this.settings.file_size_limit,"\n\tfile_upload_limit:        ",this.settings.file_upload_limit,"\n\tfile_queue_limit:         ",this.settings.file_queue_limit,"\n\tdebug:                    ",this.settings.debug.toString(),"\n\tprevent_swf_caching:      ",
this.settings.prevent_swf_caching.toString(),"\n\tbutton_placeholder_id:    ",this.settings.button_placeholder_id.toString(),"\n\tbutton_image_url:         ",this.settings.button_image_url.toString(),"\n\tbutton_width:             ",this.settings.button_width.toString(),"\n\tbutton_height:            ",this.settings.button_height.toString(),"\n\tbutton_text:              ",this.settings.button_text.toString(),"\n\tbutton_text_style:        ",this.settings.button_text_style.toString(),"\n\tbutton_text_top_padding:  ",
this.settings.button_text_top_padding.toString(),"\n\tbutton_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n\tbutton_action:            ",this.settings.button_action.toString(),"\n\tbutton_disabled:          ",this.settings.button_disabled.toString(),"\n\tcustom_settings:          ",this.settings.custom_settings.toString(),"\nEvent Handlers:\n\tswfupload_loaded_handler assigned:  ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n\tfile_dialog_start_handler assigned: ",
(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n\tfile_queued_handler assigned:       ",(typeof this.settings.file_queued_handler==="function").toString(),"\n\tfile_queue_error_handler assigned:  ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n\tupload_start_handler assigned:      ",(typeof this.settings.upload_start_handler==="function").toString(),"\n\tupload_progress_handler assigned:   ",(typeof this.settings.upload_progress_handler==="function").toString(),
"\n\tupload_error_handler assigned:      ",(typeof this.settings.upload_error_handler==="function").toString(),"\n\tupload_success_handler assigned:    ",(typeof this.settings.upload_success_handler==="function").toString(),"\n\tupload_complete_handler assigned:   ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n\tdebug_handler assigned:             ",(typeof this.settings.debug_handler==="function").toString(),"\n"].join(""))};
a.addSetting=function(d,f,i){return f==undefined?(this.settings[d]=i):(this.settings[d]=f)};a.getSetting=function(d){if(this.settings[d]!=undefined)return this.settings[d];return""};a.callFlash=function(d,f){f=f||[];var i=this.getMovieElement(),h,m;try{m=i.CallFunction('<invoke name="'+d+'" returntype="javascript">'+__flash__argumentsToXML(f,0)+"</invoke>");h=eval(m)}catch(n){throw"Call to "+d+" failed";}if(h!=undefined&&typeof h.post==="object")h=this.unescapeFilePostParams(h);return h};
a.selectFile=function(){this.callFlash("SelectFile")};a.selectFiles=function(){this.callFlash("SelectFiles")};a.startUpload=function(d){this.callFlash("StartUpload",[d])};a.cancelUpload=function(d,f){if(f!==false)f=true;this.callFlash("CancelUpload",[d,f])};a.stopUpload=function(){this.callFlash("StopUpload")};a.getStats=function(){return this.callFlash("GetStats")};a.setStats=function(d){this.callFlash("SetStats",[d])};
a.getFile=function(d){return typeof d==="number"?this.callFlash("GetFileByIndex",[d]):this.callFlash("GetFile",[d])};a.addFileParam=function(d,f,i){return this.callFlash("AddFileParam",[d,f,i])};a.removeFileParam=function(d,f){this.callFlash("RemoveFileParam",[d,f])};a.setUploadURL=function(d){this.settings.upload_url=d.toString();this.callFlash("SetUploadURL",[d])};a.setPostParams=function(d){this.settings.post_params=d;this.callFlash("SetPostParams",[d])};
a.addPostParam=function(d,f){this.settings.post_params[d]=f;this.callFlash("SetPostParams",[this.settings.post_params])};a.removePostParam=function(d){delete this.settings.post_params[d];this.callFlash("SetPostParams",[this.settings.post_params])};a.setFileTypes=function(d,f){this.settings.file_types=d;this.settings.file_types_description=f;this.callFlash("SetFileTypes",[d,f])};a.setFileSizeLimit=function(d){this.settings.file_size_limit=d;this.callFlash("SetFileSizeLimit",[d])};
a.setFileUploadLimit=function(d){this.settings.file_upload_limit=d;this.callFlash("SetFileUploadLimit",[d])};a.setFileQueueLimit=function(d){this.settings.file_queue_limit=d;this.callFlash("SetFileQueueLimit",[d])};a.setFilePostName=function(d){this.settings.file_post_name=d;this.callFlash("SetFilePostName",[d])};a.setUseQueryString=function(d){this.settings.use_query_string=d;this.callFlash("SetUseQueryString",[d])};
a.setRequeueOnError=function(d){this.settings.requeue_on_error=d;this.callFlash("SetRequeueOnError",[d])};a.setHTTPSuccess=function(d){if(typeof d==="string")d=d.replace(" ","").split(",");this.settings.http_success=d;this.callFlash("SetHTTPSuccess",[d])};a.setDebugEnabled=function(d){this.settings.debug_enabled=d;this.callFlash("SetDebugEnabled",[d])};a.setButtonImageURL=function(d){if(d==undefined)d="";this.settings.button_image_url=d;this.callFlash("SetButtonImageURL",[d])};
a.setButtonDimensions=function(d,f){this.settings.button_width=d;this.settings.button_height=f;var i=this.getMovieElement();if(i!=undefined){i.style.width=d+"px";i.style.height=f+"px"}this.callFlash("SetButtonDimensions",[d,f])};a.setButtonText=function(d){this.settings.button_text=d;this.callFlash("SetButtonText",[d])};a.setButtonTextPadding=function(d,f){this.settings.button_text_top_padding=f;this.settings.button_text_left_padding=d;this.callFlash("SetButtonTextPadding",[d,f])};
a.setButtonTextStyle=function(d){this.settings.button_text_style=d;this.callFlash("SetButtonTextStyle",[d])};a.setButtonDisabled=function(d){this.settings.button_disabled=d;this.callFlash("SetButtonDisabled",[d])};a.setButtonAction=function(d){this.settings.button_action=d;this.callFlash("SetButtonAction",[d])};a.setButtonCursor=function(d){this.settings.button_cursor=d;this.callFlash("SetButtonCursor",[d])};
a.queueEvent=function(d,f){if(f==undefined)f=[];else f instanceof Array||(f=[f]);var i=this;if(typeof this.settings[d]==="function"){this.eventQueue.push(function(){this.settings[d].apply(this,f)});setTimeout(function(){i.executeNextEvent()},0)}else if(this.settings[d]!==null)throw"Event handler "+d+" is unknown or is not a function";};a.executeNextEvent=function(){var d=this.eventQueue?this.eventQueue.shift():null;typeof d==="function"&&d.apply(this)};
a.unescapeFilePostParams=function(d){var f=/[$]([0-9a-f]{4})/i,i={},h;if(d!=undefined){for(var m in d.post)if(d.post.hasOwnProperty(m)){h=m;for(var n;(n=f.exec(h))!==null;)h=h.replace(n[0],String.fromCharCode(parseInt("0x"+n[1],16)));i[h]=d.post[m]}d.post=i}return d};
a.flashReady=function(){var d=this.getMovieElement();if(typeof d.CallFunction==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for(var f in d)try{if(typeof d[f]==="function")d[f]=null}catch(i){}}this.queueEvent("swfupload_loaded_handler")};a.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")};a.fileQueued=function(d){d=this.unescapeFilePostParams(d);this.queueEvent("file_queued_handler",d)};
a.fileQueueError=function(d,f,i){d=this.unescapeFilePostParams(d);this.queueEvent("file_queue_error_handler",[d,f,i])};a.fileDialogComplete=function(d,f){this.queueEvent("file_dialog_complete_handler",[d,f])};a.uploadStart=function(d){d=this.unescapeFilePostParams(d);this.queueEvent("return_upload_start_handler",d)};
a.returnUploadStart=function(d){var f;if(typeof this.settings.upload_start_handler==="function"){d=this.unescapeFilePostParams(d);f=this.settings.upload_start_handler.call(this,d)}else if(this.settings.upload_start_handler!=undefined)throw"upload_start_handler must be a function";if(f===undefined)f=true;f=!!f;this.callFlash("ReturnUploadStart",[f])};a.uploadProgress=function(d,f,i){d=this.unescapeFilePostParams(d);this.queueEvent("upload_progress_handler",[d,f,i])};
a.uploadError=function(d,f,i){d=this.unescapeFilePostParams(d);this.queueEvent("upload_error_handler",[d,f,i])};a.uploadSuccess=function(d,f){d=this.unescapeFilePostParams(d);this.queueEvent("upload_success_handler",[d,f])};a.uploadComplete=function(d){d=this.unescapeFilePostParams(d);this.queueEvent("upload_complete_handler",d)};a.debug=function(d){this.queueEvent("debug_handler",d)};
a.debugMessage=function(d){if(this.settings.debug){var f=[];if(typeof d==="object"&&typeof d.name==="string"&&typeof d.message==="string"){for(var i in d)d.hasOwnProperty(i)&&f.push(i+": "+d[i]);d=f.join("\n")||"";f=d.split("\n");d="EXCEPTION: "+f.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(d)}else SWFUpload.Console.writeLine(d)}};SWFUpload.Console={};
SWFUpload.Console.writeLine=function(d){var f,i;try{f=document.getElementById("SWFUpload_Console");if(!f){i=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(i);f=document.createElement("textarea");f.id="SWFUpload_Console";f.style.fontFamily="monospace";f.setAttribute("wrap","off");f.wrap="off";f.style.overflow="auto";f.style.width="700px";f.style.height="350px";f.style.margin="5px";i.appendChild(f)}f.value+=d+"\n";f.scrollTop=f.scrollHeight-f.clientHeight}catch(h){alert("Exception: "+
h.name+" Message: "+h.message)}};
if(typeof SWFUpload==="function"){SWFUpload.queue={};SWFUpload.prototype.initSettings=function(d){return function(){typeof d==="function"&&d.call(this);this.queueSettings={};this.queueSettings.queue_cancelled_flag=false;this.queueSettings.queue_upload_count=0;this.queueSettings.user_upload_complete_handler=this.settings.upload_complete_handler;this.queueSettings.user_upload_start_handler=this.settings.upload_start_handler;this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler;this.settings.upload_start_handler=
SWFUpload.queue.uploadStartHandler;this.settings.queue_complete_handler=this.settings.queue_complete_handler||null}}(SWFUpload.prototype.initSettings);SWFUpload.prototype.startUpload=function(d){this.queueSettings.queue_cancelled_flag=false;this.callFlash("StartUpload",[d])};SWFUpload.prototype.cancelQueue=function(){this.queueSettings.queue_cancelled_flag=true;this.stopUpload();for(var d=this.getStats();d.files_queued>0;){this.cancelUpload();d=this.getStats()}};SWFUpload.queue.uploadStartHandler=
function(d){var f;if(typeof this.queueSettings.user_upload_start_handler==="function")f=this.queueSettings.user_upload_start_handler.call(this,d);f=f===false?false:true;this.queueSettings.queue_cancelled_flag=!f;return f};SWFUpload.queue.uploadCompleteHandler=function(d){var f=this.queueSettings.user_upload_complete_handler;d.filestatus===SWFUpload.FILE_STATUS.COMPLETE&&this.queueSettings.queue_upload_count++;if(d=typeof f==="function"?f.call(this,d)===false?false:true:d.filestatus===SWFUpload.FILE_STATUS.QUEUED?
false:true){d=this.getStats();if(d.files_queued>0&&this.queueSettings.queue_cancelled_flag===false)this.startUpload();else{if(this.queueSettings.queue_cancelled_flag===false)this.queueEvent("queue_complete_handler",[this.queueSettings.queue_upload_count]);else this.queueSettings.queue_cancelled_flag=false;this.queueSettings.queue_upload_count=0}}}}
if(typeof SWFUpload==="function"){SWFUpload.speed={};SWFUpload.prototype.initSettings=function(d){return function(){typeof d==="function"&&d.call(this);this.ensureDefault=function(f,i){this.settings[f]=this.settings[f]==undefined?i:this.settings[f]};this.fileSpeedStats={};this.speedSettings={};this.ensureDefault("moving_average_history_size","10");this.speedSettings.user_file_queued_handler=this.settings.file_queued_handler;this.speedSettings.user_file_queue_error_handler=this.settings.file_queue_error_handler;
this.speedSettings.user_upload_start_handler=this.settings.upload_start_handler;this.speedSettings.user_upload_error_handler=this.settings.upload_error_handler;this.speedSettings.user_upload_progress_handler=this.settings.upload_progress_handler;this.speedSettings.user_upload_success_handler=this.settings.upload_success_handler;this.speedSettings.user_upload_complete_handler=this.settings.upload_complete_handler;this.settings.file_queued_handler=SWFUpload.speed.fileQueuedHandler;this.settings.file_queue_error_handler=
SWFUpload.speed.fileQueueErrorHandler;this.settings.upload_start_handler=SWFUpload.speed.uploadStartHandler;this.settings.upload_error_handler=SWFUpload.speed.uploadErrorHandler;this.settings.upload_progress_handler=SWFUpload.speed.uploadProgressHandler;this.settings.upload_success_handler=SWFUpload.speed.uploadSuccessHandler;this.settings.upload_complete_handler=SWFUpload.speed.uploadCompleteHandler;delete this.ensureDefault}}(SWFUpload.prototype.initSettings);SWFUpload.speed.fileQueuedHandler=function(d){if(typeof this.speedSettings.user_file_queued_handler===
"function"){d=SWFUpload.speed.extendFile(d);return this.speedSettings.user_file_queued_handler.call(this,d)}};SWFUpload.speed.fileQueueErrorHandler=function(d,f,i){if(typeof this.speedSettings.user_file_queue_error_handler==="function"){d=SWFUpload.speed.extendFile(d);return this.speedSettings.user_file_queue_error_handler.call(this,d,f,i)}};SWFUpload.speed.uploadStartHandler=function(d){if(typeof this.speedSettings.user_upload_start_handler==="function"){d=SWFUpload.speed.extendFile(d,this.fileSpeedStats);
return this.speedSettings.user_upload_start_handler.call(this,d)}};SWFUpload.speed.uploadErrorHandler=function(d,f,i){d=SWFUpload.speed.extendFile(d,this.fileSpeedStats);SWFUpload.speed.removeTracking(d,this.fileSpeedStats);if(typeof this.speedSettings.user_upload_error_handler==="function")return this.speedSettings.user_upload_error_handler.call(this,d,f,i)};SWFUpload.speed.uploadProgressHandler=function(d,f,i){this.updateTracking(d,f);d=SWFUpload.speed.extendFile(d,this.fileSpeedStats);if(typeof this.speedSettings.user_upload_progress_handler===
"function")return this.speedSettings.user_upload_progress_handler.call(this,d,f,i)};SWFUpload.speed.uploadSuccessHandler=function(d,f){if(typeof this.speedSettings.user_upload_success_handler==="function"){d=SWFUpload.speed.extendFile(d,this.fileSpeedStats);return this.speedSettings.user_upload_success_handler.call(this,d,f)}};SWFUpload.speed.uploadCompleteHandler=function(d){d=SWFUpload.speed.extendFile(d,this.fileSpeedStats);SWFUpload.speed.removeTracking(d,this.fileSpeedStats);if(typeof this.speedSettings.user_upload_complete_handler===
"function")return this.speedSettings.user_upload_complete_handler.call(this,d)};SWFUpload.speed.extendFile=function(d,f){var i;if(f)i=f[d.id];if(i){d.currentSpeed=i.currentSpeed;d.averageSpeed=i.averageSpeed;d.movingAverageSpeed=i.movingAverageSpeed;d.timeRemaining=i.timeRemaining;d.timeElapsed=i.timeElapsed;d.percentUploaded=i.percentUploaded;d.sizeUploaded=i.bytesUploaded}else{d.currentSpeed=0;d.averageSpeed=0;d.movingAverageSpeed=0;d.timeRemaining=0;d.timeElapsed=0;d.percentUploaded=0;d.sizeUploaded=
0}return d};SWFUpload.prototype.updateTracking=function(d,f){var i=this.fileSpeedStats[d.id];i||(this.fileSpeedStats[d.id]=i={});f=f||i.bytesUploaded||0;if(f<0)f=0;if(f>d.size)f=d.size;var h=(new Date).getTime();if(i.startTime)if(i.startTime>h)this.debug("When backwards in time");else{h=(new Date).getTime();var m=i.lastTime;m=h-m;var n=f-i.bytesUploaded;if(n===0||m===0)return i;i.lastTime=h;i.bytesUploaded=f;i.currentSpeed=n*8/(m/1E3);i.averageSpeed=i.bytesUploaded*8/((h-i.startTime)/1E3);i.movingAverageHistory.push(i.currentSpeed);
i.movingAverageHistory.length>this.settings.moving_average_history_size&&i.movingAverageHistory.shift();i.movingAverageSpeed=SWFUpload.speed.calculateMovingAverage(i.movingAverageHistory);i.timeRemaining=(d.size-i.bytesUploaded)*8/i.movingAverageSpeed;i.timeElapsed=(h-i.startTime)/1E3;i.percentUploaded=i.bytesUploaded/d.size*100}else{i.startTime=(new Date).getTime();i.lastTime=i.startTime;i.currentSpeed=0;i.averageSpeed=0;i.movingAverageSpeed=0;i.movingAverageHistory=[];i.timeRemaining=0;i.timeElapsed=
0;i.percentUploaded=f/d.size;i.bytesUploaded=f}return i};SWFUpload.speed.removeTracking=function(d,f){try{f[d.id]=null;delete f[d.id]}catch(i){}};SWFUpload.speed.formatUnits=function(d,f,i,h){var m,n;if(d===0)return"0 "+i[i.length-1];if(h){m=d;n=i.length>=f.length?i[f.length-1]:"";for(h=0;h<f.length;h++)if(d>=f[h]){m=(d/f[h]).toFixed(2);n=i.length>=h?" "+i[h]:"";break}return m+n}else{var s=[],z=d;for(h=0;h<f.length;h++){d=f[h];n=i.length>h?" "+i[h]:"";m=z/d;m=h<f.length-1?Math.floor(m):m.toFixed(2);
if(m>0){z%=d;s.push(m+n)}}return s.join(" ")}};SWFUpload.speed.formatBPS=function(d){var f=[1073741824,1048576,1024,1],i=["Gbps","Mbps","Kbps","bps"];return SWFUpload.speed.formatUnits(d,f,i,true)};SWFUpload.speed.formatTime=function(d){var f=[86400,3600,60,1],i=["d","h","m","s"];return SWFUpload.speed.formatUnits(d,f,i,false)};SWFUpload.speed.formatBytes=function(d){var f=[1073741824,1048576,1024,1],i=["GB","MB","KB","bytes"];return SWFUpload.speed.formatUnits(d,f,i,true)};SWFUpload.speed.formatPercent=
function(d){return d.toFixed(2)+" %"};SWFUpload.speed.calculateMovingAverage=function(d){var f=[],i,h=0,m=0,n=0,s=0,z=0,F=0,A=0;i=d.length;if(i>=8){for(s=0;s<i;s++){f[s]=d[s];h+=f[s]}m=h/i;for(s=0;s<i;s++)n+=Math.pow(f[s]-m,2);s=n/i;z=Math.sqrt(s);for(s=0;s<i;s++)f[s]=(f[s]-m)/z;h=2;for(s=0;s<i;s++)if(f[s]<=h&&f[s]>=-h){A++;F+=d[s]}}else{A=i;for(s=0;s<i;s++)F+=d[s]}return F/A}}
(function(d){var f=window.BMButton=function(){this.construct__.apply(this,arguments)};f.init=function(h,m){if(typeof h=="string"){h=d("#"+h);if(h.length){for(var n=0,s=f.Cache.length;n<s;n++)if(f.Cache[n].domNode.get(0)==h.get(0))return f.Cache[n];return new f(h,m)}}else if(d(h).length)return new f(h,m)};f.Cache=[];f.DefaultName="button";f.ClassName="b-button";f.Selector=[".",f.ClassName].join("");f.Template=tmpl('<span class="<%=ClassName%>-form"><span class="<%=ClassName%>-r"></span><span class="<%=ClassName%>-value"><span class="<%=ClassName%>-value-wrap"><span class="<%=ClassName%>-value-text"><%=value%></span></span></span></span>');
f.ID=0;f.prototype.construct__=function(h,m){this.domNode=d(h);this.initialOptions_=m||{};this.initialOptions_.type=this.initialOptions_.type||this.domNode.attr("buttonType")||"submit";this.initialOptions_.confirm=this.initialOptions_.confirm||this.domNode.attr("confirm")||false;this.initialOptions_.onstatechange=this.initialOptions_.onstatechange||this.domNode.attr("onstatechange")||function(){};this.is={Template:true,Prevent:true,StateBubble:true};if(this.domNode.find([f.Selector,"form"].join("-")).length)this.is.Template=
false;this.domNode=this.is.Template?this.createDom(this.domNode):this.domNode;this.bindEvents();if((h=this.domNode.attr("checked"))&&(h=="true"||h=="checked")&&this.initialOptions_.type!="simple"){this.is.StateBubble=false;this.setState("checked",true,true)}if(h=this.domNode.attr("disabled")){this.is.StateBubble=false;this.setState("disabled",true,true)}this.domNode.data("BMButton",this)};f.prototype.createDom=function(h){var m={value:this.initialOptions_.value||h.html()||"undefined",ClassName:f.ClassName};
return h.html(f.Template(m))};f.prototype.bindEvents=function(){var h=this;this.domNode.mousedown(function(m){h.mousedownHandler.call(h,m);return false}).mouseover(function(m){h.mouseoverHandler.call(h,m)}).mouseout(function(m){h.mouseoutHandler.call(h,m)});d(document).mouseup(function(m){h.mouseupHandler.call(h,m)})};f.prototype.mousedownHandler=function(){switch(this.initialOptions_.type){case "trigger":if(this.checked)this.is.Prevent=false;else{this.setState("checked",true);this.is.Prevent=true}break;
case "switcher":this.checked||this.setState("checked",true);break;case "simple":default:this.is.Prevent=false;this.setClass(this.domNode,"down");break}};f.prototype.mouseupHandler=function(){if(!this.is.Prevent)switch(this.initialOptions_.type){case "trigger":this.checked&&this.setState("checked",false);break;case "simple":default:this.setClass(this.domNode,"down",false);break}};f.prototype.mouseoverHandler=function(){this.setClass(this.domNode,"hover")};f.prototype.mouseoutHandler=function(){this.setClass(this.domNode,
"hover",false)};f.prototype.onstatechange=function(){};f.prototype._onstatechange=function(){var h=this.onstatechange.apply(this);d.isFunction(this.initialOptions_.onstatechange)?this.initialOptions_.onstatechange.apply(this):eval(this.initialOptions_.onstatechange);return h};f.prototype.setClass=function(h,m,n){m=[f.ClassName,m].join("_");h=h.find([f.Selector,"form "].join("-"));n===false?h.removeClass(m):h.addClass(m)};f.prototype.setState=function(h,m,n){this.is.Prevent=true;if(!this.oldState_)this.oldState_=
{};switch(h){case "checked":if(n||!this.initialOptions_.confirm||this.initialOptions_.confirm&&confirm(this.initialOptions_.confirm)){this.oldState_[h]=this[h];this[h]=m;if(this.oldState_[h]!=this[h]&&this.is.StateBubble){m=this._onstatechange();if(m===false)this[h]=this.oldState_[h]}if(!this.is.StateBubble)this.is.StateBubble=true;this[h]?this.setClass(this.domNode,"down"):this.setClass(this.domNode,"down",false)}break;case "disabled":this.oldState_[h]=this[h];if(this[h]=m){this.setClass(this.domNode,
h);this.domNode.attr(h,true)}else{this.setClass(this.domNode,h,false);this.domNode.removeAttr(h)}break}};var i=window.BMButtonGroup=function(){this.construct__.apply(this,arguments)};i.prototype.construct__=function(){this.onstatechangecallback=function(){};this.buttons=[];if(arguments.length==1&&arguments[0].length)for(var h=0,m=arguments[0].length;h<m;h++){var n=d(arguments[0][h]);n.data("BMButton")&&this.buttons.push(n.data("BMButton"))}else{h=0;for(m=arguments.length;h<m;h++){n=d(arguments[h]);
n.data("BMButton")&&this.buttons.push(n.data("BMButton"))}}this.bindEvents()};i.prototype.bindEvents=function(){for(var h=this,m=0,n=this.buttons.length;m<n;m++)this.buttons[m].onstatechange=function(){if(this.checked)h.switchButtons(this);else if(h.getChecked()==0)return false}};i.prototype.switchButtons=function(h){for(var m=0,n=this.buttons.length;m<n;m++)this.buttons[m]!==h&&this.buttons[m].setState("checked",false);this.onstatechangecallback(this.buttons)};i.prototype.getButtons=function(){return this.buttons};
i.prototype.getChecked=function(){for(var h=0,m=0,n=this.buttons.length;m<n;m++)this.buttons[m].checked&&h++;return h};i.prototype.onstatechange=function(h){this.onstatechangecallback=h}})(jQuery);
(function(d){var f={flash_url:"/flash/swfupload.swf",file_upload_limit:5,file_size_limit:"15 MB",requeue_on_error:false,use_query_string:false,file_post_name:"import[file]",file_types:"*.epub;*.fb2;*.txt;*.zip",file_types_description:"Any of the supported ebook types: fb2 (zipped also), or lib.ru plain-text files",button_width:"100%",button_height:"100%",button_cursor:SWFUpload.CURSOR.HAND,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,debug:false},i={TabSelector:".j-tab",FileChooseSelector:".b-uploader-file:visible, .b-uploader-web:visible",
ListRootSelector:".b-uploader-list",ListSelector:".b-uploader-list .b-uploader-list-files",ButtonSelector:".b-uploader-button .button, .b-uploader-button .b-button-form",StatusSelector:".j-uploader-status",AlternateSelector:".b-uploader-file .j-uploader-alt",FileTemplate:tmpl('<div id="<%=id%>" class="bul-file"><div class="bul-file-name"><%=name%></div><div class="bul-file-size"><%=size%></div><div class="bul-file-controls"><i class="remove"></i></div><div class="bul-file-border"></div><i class="success"></i><i class="progress" style="display: none"></i></div>')};
this.Uploader=SimpleClass.extend({init:function(h){this.Options=d.extend({},f,h);this.Status=d.extend({},{step:1,size:0});this.Files={};this.DomNode=d("#Uploader");this.FlashNode=d("#UploaderFlash");this.BindEvents();this.SWFUploader=new SWFUpload(this.Options);this.SetButton()},BindEvents:function(){var h=this;d.extend(this.Options,{file_dialog_complete_handler:function(){h._eventFileDialogCompleteHandler.apply(h,arguments)},file_queued_handler:function(){h._eventFileQueuedHandler.apply(h,arguments)},
upload_start_handler:function(){h._eventUploadStartHandler.apply(h,arguments)},upload_progress_handler:function(){h._eventUploadProgressHandler.apply(h,arguments)},upload_error_handler:function(){},upload_success_handler:function(){h._eventUploadSuccessHandler.apply(h,arguments)},upload_complete_handler:function(){},queue_complete_handler:function(m){m&&setTimeout(function(){window.location.href=h.Options.upload_queue_url},1E3)}});d("#UploaderImport").click(function(){h.SetButton()});d("#UploaderFile").click(function(){h.SetButton()});
d("#import_submit").click(function(){var m=h.SWFUploader.getStats(),n=d(this).data("BMButton");if(m.files_queued>0){n.setState("disabled",true);h.DomNode.find(i.ListRootSelector).find(i.ButtonSelector).parent().data("BMButton").setState("disabled",true);h.SetButton();h._eventStartUpload.apply(h)}return false});d(i.AlternateSelector).click(function(){var m=h.DomNode.find(i.FileChooseSelector).find(i.ButtonSelector).eq(0),n=m.parent();m.remove();d(this).remove();n.find(".b-uploader-alternate").show();
n.next().css({visibility:"hidden"});h.Status.step=3;h.SetButton()})},SetButton:function(){var h;switch(this.Status.step){case 1:h=this.DomNode.find(i.FileChooseSelector).find(i.ButtonSelector).eq(0).not(".b-button_disabled");break;case 2:h=this.DomNode.find(i.ListRootSelector).find(i.ButtonSelector).eq(0).not(".b-button_disabled");break}if(h&&h.is(":visible")){var m=this.DomNode.offset(),n=h.offset();this.FlashNode.css({position:"absolute",zIndex:"99",left:n.left-m.left,top:n.top-m.top,width:h.width(),
height:h.height()})}else this.FlashNode.css({position:"absolute",left:-1000,top:-1000,width:0,height:0})},SetSize:function(){var h=this.SWFUploader.getStats();h=h.files_queued.declension([" \u0444\u0430\u0439\u043b"," \u0444\u0430\u0439\u043b\u0430"," \u0444\u0430\u0439\u043b\u043e\u0432"])+"&nbsp;&nbsp;&nbsp;"+this._formatBytes(this.Status.size);this.DomNode.find(".j-uploader-status").html(h)},_formatBytes:function(h){var m=[1073741824,1048576,1024,1],n=["\u0413\u0431","\u041c\u0431","\u041a\u0431",
"\u0431\u0430\u0439\u0442"];return SWFUpload.speed.formatUnits(h,m,n,true)},_eventStartUpload:function(){this.DomNode.find(i.ListSelector).find(".remove").fadeOut("fast");this.SWFUploader.startUpload()},_eventFileDialogCompleteHandler:function(h,m){if(m&&m>0&&this.Status.step==1){this.Status.step=2;this._tempTabs=this.DomNode.find(i.TabSelector).remove();this.DomNode.find(i.ListRootSelector).show();this.SetButton();d("#import_submit").click()}},_eventFileQueuedHandler:function(h){var m=this,n=h.id,
s=h.size;h.id="file_"+h.id;h.size=this._formatBytes(h.size);this.Status.size+=s;this.SetSize();var z=d(i.FileTemplate(h));this.DomNode.find(i.ListSelector).append(z);z.find(".remove").click(function(){m.SWFUploader.cancelUpload(n);m.Status.size-=s;m.SetSize();z.remove()});this.Files[n]=z},_eventUploadStartHandler:function(h){if(h=this.Files[h.id]){h.find(".progress").css({display:"block",width:"0%"});return true}return false},_eventUploadProgressHandler:function(h){var m=this.Files[h.id];m&&m.find(".progress").css({width:h.percentUploaded+
"%"})},_eventUploadSuccessHandler:function(h,m,n){m!="true"&&Error({message:"Upload success ["+current_user.login+"]",response:n,data:m,bm:this.Options.post_params.bm,upload_url:this.Options.upload_url,upload_queue_url:this.Options.upload_queue_url});if(m=this.Files[h.id]){var s=m.find(".progress").css({width:"100%"});s.animate({top:30},500,function(){s.hide()});m.find(".success").show().css({top:30,right:10}).animate({top:11},500);this.Status.size-=h.size;this.SetSize()}}})})(jQuery);
(function(d){this.Chapter=SimpleClass.extend({init:function(f){this.DomNode=d(f);this.DomNode.find("ul").parent().addDependClass("closed");this.DomNode.find(".b-contents-chapter").each(function(){d(this).find("ul").length||d(this).addDependClass("empty")});this.BindEvents();this.ShowCurrent()},BindEvents:function(){this.DomNode.find("ins").each(function(){var f=d(this).parents(".b-contents-chapter").eq(0);f.is(".b-contents-chapter-empty")||d(this).parent().click(function(){d(this).parents(".b-contents-chapter").eq(0).toggleDependClass("closed")})})},
ShowCurrent:function(){var f=this.DomNode.find("span.auto");f.length?f.parents(".b-contents-chapter").not(".b-contents-chapter-empty").removeDependClass("closed"):this.DomNode.find("ul").parent().removeDependClass("closed")}})})(jQuery);
(function(d){var f={className:"b-search",template:tmpl('<div class="<%=className%>"><div class="<%=className%>_left g-png"></div><div class="<%=className%>_container"><div class="<%=className%>_right g-png"></div><div class="<%=className%>_container"><span class="<%=className%>_placeholder"><%=params.placeholder%></span><input type="text" name="<%=params.name%>" value="<%=params.value%>" class="<%=className%>_input <%=params.className%>" results="<%=params.results%>" autocomplete="<%=params.autocomplete%>" <%=params.id%> /><span class="<%=className%>_spinner"></span><span class="<%=className%>_clear"></span></div></div></div>')};jQuery(document).ready(function(){jQuery("input[prettysearch=yes]").each(function(){new classSearch(this)})});
this.classSearch=SimpleClass.extend({init:function(i,h){this.is={input:false,loading:false};this.domNode=d(i);i.searchHandler=this;this.options=d.extend(true,{},f,h?h:{});this.options.params={width:this.domNode.width()-13};if(this.domNode.is("input")){d.extend(this.options.params,{id:this.domNode.attr("id")?'id="'+this.domNode.attr("id")+'"':"",className:this.domNode.attr("class"),placeholder:this.domNode.attr("placeholder")?this.domNode.attr("placeholder"):"",results:this.domNode.attr("results")?
this.domNode.attr("results"):0,autocomplete:this.domNode.attr("autocomplete")?this.domNode.attr("autocomplete"):"on",incremental:this.domNode.attr("incremental")?this.domNode.attr("incremental"):"no",onsearch:this.domNode.attr("onsearch")?this.domNode.attr("onsearch"):function(){},name:this.domNode.attr("name")?this.domNode.attr("name"):"q",value:this.domNode.attr("value")?thid.domNode.attr("value"):""});i=d(this.options.template(this.options));i.find("."+this.options.className+"_container input").css({outlineWidth:0});
this.domNode.replaceWith(i);this.domNode=i}else if(this.domNode.is("."+this.options.className)){i=this.domNode.find("."+this.options.className+"_input");d.extend(this.options.params,{placeholder:this.domNode.find("."+this.options.className+"_placeholder").html(),incremental:i.attr("incremental")?i.attr("incremental"):"no",onsearch:i.attr("onsearch")?i.attr("onsearch"):function(){},value:i.attr("value")?i.attr("value"):""});i.css({outlineWidth:0})}else return false;!this.options.params.value&&this.options.params.placeholder&&
this.placeholder(true);this.options.params.value&&this.clear(true);this._events()},_events:function(){var i=this,h=this.input=this.domNode.find("."+this.options.className+"_input");this.domNode.mousedown(function(){i.placeholder(false);i.domNode.addDependClass("focus");if(i.is.input)i.is.input=false;else return false}).mouseup(function(){h.focus()});h.focus(function(){i.domNode.addDependClass("focus");i.placeholder(false)}).blur(function(){i.domNode.removeDependClass("focus");h.val()||i.placeholder(true)}).keyup(function(){h.val()?
i.clear(true):i.clear(false);i.value=h.val();i.options.params.incremental=="yes"&&i.onsearch()}).mousedown(function(){i.is.input=true}).change(function(){i.value=h.val();i.options.params.incremental=="yes"&&i.onsearch()}).parents("form").submit(function(){i.onsubmit()});this.clearNode=this.domNode.find("."+this.options.className+"_clear").mousedown(function(){d(this).addDependClass("down","_");h.focus().select();return false}).click(function(){i.value=h.val("").focus().val();d(this).removeDependClass("down",
"_").hide();i.options.params.incremental=="yes"&&i.onsearch()});this.onsearch=function(){d.isFunction(this.options.params.onsearch)?this.options.params.onsearch.apply(i):eval(this.options.params.onsearch)};this.events()},events:function(){},onsearch:function(){},onsubmit:function(){this.onsearch()},placeholder:function(i){var h=this.domNode.find("."+this.options.className+"_placeholder");i?h.show():h.hide()},clear:function(i){var h=this.domNode.find("."+this.options.className+"_clear");i?h.show():
h.hide()},loading:function(i){i?this.domNode.addDependClass("loading"):this.domNode.removeDependClass("loading");this.is.loading=i},isLoading:function(){return this.is.loading}})})(jQuery);
(function(d){function f(){return this.init.apply(this,arguments)}var i=[];d(document).ready(function(){GLOBAL.reInit(function(){d(".j-dropdown").each(function(){i.push(new f(this))})})});f.prototype={init:function(h){this.buttonNode=d(h);this.buttonNode.removeClass("j-dropdown");this.is={opened:false,hovered:false,center:false,right:false,auto:false};h=this.buttonNode.attr("class").split(" ");for(var m=0;m<h.length;m++){var n=h[m].match(/j-dropdown_([^ ]+)/i);if(n&&n[1]){this.is[n[1]]=true;this.buttonNode.removeClass("j-dropdown_"+
n[1])}}h=this.buttonNode.attr("class").match(/j-dropdown-([^ ]+)/);if(h[1]){h=h[1];this.buttonNode.removeClass("j-dropdown-"+h);this.containerNode=d("#"+h);if(this.containerNode.length){this.containerNode.appendTo(document.body).wrap("<div class='b_dropdown_out'>");this.wrapNode=this.containerNode.parent();this.bindEvents()}}},bindEvents:function(){var h=this,m=false;d(document).click(function(){if(!m&&h.is.opened)h.hide();else m=false});this.containerNode.click(function(){m=true});if(this.is.auto)this.show();
else{this.is.hovered||this.buttonNode.click(function(){h.is.opened?h.hide():h.show();return false});this.buttonNode.hover(function(){d(this).addDependClass("hover");if(h.is.hovered)if(h.hiding){clearTimeout(h.hiding);h.hiding=null}else h.show()},function(){d(this).removeDependClass("hover");if(h.is.hovered)h.hiding=setTimeout(function(){h.hide();h.hiding=null},200)});this.is.hovered&&this.containerNode.hover(function(){if(h.hiding){clearTimeout(h.hiding);h.hiding=null}},function(){h.hiding=setTimeout(function(){h.hide();
h.hiding=null},200)})}},show:function(){for(var h=0;h<i.length;h++)i[h].is.opened&&i[h].hide();var m=this;this.is.opened=true;var n=this.containerNode.show().outerHeight(),s=this.buttonNode.offset(),z=s.left;if(this.is.center)z=z+this.buttonNode.outerWidth()/2-this.containerNode.outerWidth()/2;if(this.is.right)z=z-this.containerNode.outerWidth()+this.buttonNode.outerWidth();this.wrapNode.css({position:"absolute",left:z,top:s.top+this.buttonNode.outerHeight()+4,height:n+1,zIndex:50,overflow:"hidden"});
this.containerNode.css({position:"relative",top:-n,opacity:0}).stop().animate({top:0,opacity:1},300,function(){m.containerNode.removeAttr("style").show().css({position:"relative"})})},hide:function(){var h=this;this.is.opened=false;var m=this.containerNode.show().outerHeight();this.containerNode.stop().css({zIndex:49}).animate({top:-m,opacity:0},300,function(){h.containerNode.removeAttr("style");h.wrapNode.removeAttr("style")})}}})(jQuery);
(function(d){addSingletonGetter=function(f){f.getInstance=function(){return f.instance_||(f.instance_=new f)}};this.QuickSearch=function(){var f=this;this.results_=[];this.prevent_=this.build_=false;this.index_=0;this.domNode=d("<div>").addClass("b-quicksearch-results").hide();d(document).ready(function(){f.init()});return function(){f.built_||f.handleEvents(this);f.onQuickSearchHandler(this)}};addSingletonGetter(QuickSearch);QuickSearch.prototype.init=function(){d(document.body).append(this.domNode)};
QuickSearch.prototype.handleEvents=function(f){var i=this;f.input.keydown(function(h){switch(h.keyCode){case 38:i.choose(-1);return false;case 40:i.choose(1);return false;case 13:i.show();return false}});f.input.blur(function(){if(i.prevent_)i.prevent_=false;else{f.input.val("");f.value="";i.value="";f.clearNode.removeDependClass("down","_");f.placeholder(true);f.clear(false);f.loading(false);i.domNode.hide()}});this.built_=true};QuickSearch.prototype.onQuickSearchHandler=function(f){if(!(f.value==
this.value||f.isLoading())){var i=this;this.value=f.value;if(!this.value.length||this.value.length<2)return this.domNode.hide();f.loading(true);(function(h){d.ajax({url:"/library_cards/search",data:{query:h},dataType:"json",success:function(m){f.loading(false);i.buildData(m,f);h!=f.value&&i.onQuickSearchHandler.call(i,f)}})})(this.value)}};QuickSearch.prototype.choose=function(f){f=this.index_+(f||0);if(f<0)f=this.results_.length-1;if(f>this.results_.length-1)f=0;if(this.results_[f]){for(var i=0;i<
this.results_.length;i++)this.results_[i].removeClass("selected");this.index_=f;this.results_[f].addClass("selected")}};QuickSearch.prototype.show=function(){this.results_[this.index_]&&d("<form>").attr("method","GET").attr("action",this.results_[this.index_].attr("href")).appendTo(document.body).submit()};QuickSearch.prototype.buildData=function(f,i){if(!f.length)return this.domNode.hide();var h=this;this.domNode.empty().show();this.results_=[];for(var m=0,n=f.length;m<n;m++){var s=d("<a>");s.attr("href",
f[m].url).addClass(m==n-1?"last":"").html(["<strong>",f[m].title,"</strong><span>",f[m].authors,"</span>"].join("")).appendTo(this.domNode);(function(z){s.mouseover(function(){h.index_=z;h.choose(0)});s.mousedown(function(){h.prevent_=true})})(m);this.results_.push(s)}f=i.domNode.offset();this.domNode.css({position:"absolute",zIndex:10,left:i.domNode.width()+f.left-this.domNode.width(),top:f.top+30});this.choose(0)}})(jQuery);function UpdateBookCounters(d){$("#AllBooks .j-counter").text(d)}$(document).ready(function(){$(".fieldWithErrors input").add(".j-focused").eq(0).focus()});
(function(d){this.SeriesUploader=SimpleClass.extend({init:function(f,i){this.domNode=d(f);this.queue_=i;this.loading_=false;this.bindEvents_();return this},bindEvents_:function(){var f=this;d(window).scroll(function(){f.calculate_()}).resize(function(){f.calculate_()});f.calculate_()},calculate_:function(){!this.loading_&&this.queue_.length&&this.load_()},load_:function(){this.loading_=true;var f=this,i=d("<div>").addClass("b-bsr-series-loading");i.insertBefore(this.domNode);d.get(this.queue_.shift(),
function(h){h=d.trim(h);h.length?i.replaceWith(d(h)):i.remove();f.loading_=false;f.calculate_()},"html")}})})(jQuery);function clean_cookies(){jQuery.cookie("bm",null,{domain:"www.bookmate.ru"});jQuery.cookie("bm",null,{domain:".bookmate.ru"});jQuery.cookie("bm",null);jQuery.cookie("cred",null,{domain:"www.bookmate.ru"});jQuery.cookie("cred",null,{domain:".bookmate.ru"});jQuery.cookie("cred",null)}
(function(){function d(){for(var A=document.getElementsByTagName("A"),H=0;H<A.length;H++){var O=A[H].className.match(i);if(O&&O[1])if(A[H].addEventListener)(function(V){V.addEventListener("click",function(X){f.call(window,X,V)},false)})(A[H]);else A[H].attachEvent&&function(V){V.attachEvent("onclick",function(X){f.call(window,X,V)})}(A[H])}}function f(A,H){A.preventDefault&&A.preventDefault();A.stopPropagation&&A.stopPropagation();A.returnValue=false;A.cancelBubble=false;A=H.getAttribute("href");
(H=H.getAttribute("target"))||(H="BookmateReader"+(new Date).getTime());var O="";for(key in F)O+=key+"="+F[key]+",";O=O.replace(/,$/,"");A=window.open(A,H,O);A.focus()}try{var i=new RegExp(" ?("+bmLocalClassNameRegExp+"){1} ?","i")}catch(h){i=/ ?(bm-reader){1} ?/i}var m=navigator.userAgent,n=navigator.platform||"",s=window.screen.availWidth||window.screen.width,z=window.screen.availHeight||window.screen.height;if(m.indexOf("Chrome")!=-1&&n.indexOf("Win")!=-1){z-=63;s-=16}var F={width:s,height:z,top:"0",
left:"0",directories:"no",location:"no",resizeable:"yes",menubar:"no",toolbar:"no",scrollbars:"yes",status:"no"};if(window.addEventListener)window.addEventListener("load",d,false);else window.attachEvent&&window.attachEvent("onload",d)})();
(function(d){function f(s){d(".j-related-next, .j-related-prev").css({opacity:0.2,cursor:"auto"}).unbind("click");var z=d(s).find("a[rel='next']").hide();z.length&&d(".j-related-next").css({opacity:1,cursor:"pointer"}).click(function(){if(n)return false;i(z.attr("href"),"next",true);d(this).unbind("click")});var F=d(s).find("a[rel='prev']").hide();F.length&&d(".j-related-prev").css({opacity:1,cursor:"pointer"}).click(function(){if(n)return false;i(F.attr("href"),"prev",true);d(this).unbind("click")})}
function i(s,z,F){var A=d(".j-related-content"),H=A.parent().width();if(z=="prev")H=-H;if(i.urls){if(i.urls[s]){n=true;i.urls[s].css({left:H+"px"});h(s,i.urls[s],z);return}}else i.urls={};F&&d(".j-related-"+z).addClass("b-explore-related-"+z+"-loading");n=d.get(s,function(O){var V=A.clone();A.offset();V.removeAttr("id");V.html(O);V.css({position:"absolute",left:H+"px",width:Math.abs(H)+"px",top:0});h(s,V,z)},"html")}function h(s,z,F){var A=d(".j-related-content");z.css("position","absolute");A.after(z);
d("a[rel=prev]").add("a[rel=next]").hide();m(s,A,z,F)}function m(s,z,F,A){function H(){if(!H.done){var e=F.height()>z.height()?F.height():z.height();z.animate({left:A=="prev"?z.parent().width()+"px":-z.parent().width()+"px"},800,"easeInOutQuart");F.animate({left:0,height:e+"px"},800,"easeInOutQuart",function(){d(".j-related-"+A).removeClass("b-explore-related-"+A+"-loading");d(".j-header-loading").hide();var da=z.attr("id");z.remove();F.attr("id",da);F.css("position","relative");H.done=true;i.urls[s]=
F;f(d(".j-related-content"));n=false})}}var O=d("img",F),V=O.length,X=setTimeout(H,1E4);if(i.urls&&i.urls[s]){clearTimeout(X);H()}else for(var Y=0,W=V;Y<W;Y++)O.get(Y).onload=function(){V--;if(V==0){clearTimeout(X);H()}}}var n;window.related=function(){f(d(".j-related-content"));var s=d(".bnb-layout-block ul>li>a"),z=d(".b-explore-related-next").clone().addClass("b-explore-related-loading-grey").addClass("j-header-loading").css({display:"none"});d(".bnb-header-menu").prepend(z);s.each(function(){d(this).click(function(){if(n)return false;
else if(d(this).parent().attr("selected")=="true")return false;d(".j-header-loading").css("opacity",1).show();var F=s.index(this),A=s.index(d(".bnb-layout-block ul>li i").parent().children("a"));F=F>A?"next":"prev";d(".bnb-layout-block ul>li").attr("selected",false);d(".bnb-layout-block ul>li i").remove();d(this).parent().attr("selected",true);d(this).after("<i></i>");i(d(this).attr("href"),F,false);return false})})}})(jQuery);
(function(d){d(document).ready(function(){var f=d(".j-accordion");f.each(function(){var i=this;d(this).click(function(){var h=this,m=d(".j-accordion-toggle",this).css("display")=="none",n=d.map(f,function(s){if(s!=i)return s});if(m){d(n).each(function(){d(".j-accordion-toggle",this).slideUp()});d(".j-accordion-toggle",h).slideDown()}else f.each(function(){d("div.b-sidebar-button",this).length?d(".j-accordion-toggle",this).slideDown():d(".j-accordion-toggle",this).slideUp()})})})})})(jQuery);
