if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(n,b,m,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(b){this.setAttribute("id",b)}if(m){this.setAttribute("width",m)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

/*
 * jQuery JavaScript Library v1.3.1
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-01-21 20:42:16 -0500 (Wed, 21 Jan 2009)
 * Revision: 6158
 */
(function(){var g=this,j,z=g.jQuery,p=g.$,b=g.jQuery=g.$=function(E,F){return new b.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,k=/^.[^:#\[\.,]*$/;b.fn=b.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=b.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return b().find(E)}var F=b(I||[]);F.context=document;F.selector=E;return F}}else{return b(H).find(E)}}else{if(b.isFunction(E)){return b(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(b.makeArray(E))},selector:"",jquery:"1.3.1",size:function(){return this.length},get:function(E){return E===j?b.makeArray(this):this[E]},pushStack:function(F,H,E){var G=b(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return b.each(this,F,E)},index:function(E){return b.inArray(E&&E.jquery?E[0]:E,this)},attr:function(E,H,G){var F=E;if(typeof E==="string"){if(H===j){return this[0]&&b[G||"attr"](this[0],E)}else{F={};F[E]=H}}return this.each(function(I){for(E in F){b.attr(G?this.style:this,E,b.prop(this,F[E],G,I,E))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=j}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";b.each(F||this,function(){b.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:b.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=b(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){b(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){b(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||b([])},push:[].push,find:function(E){if(this.length===1&&!/,/.test(E)){var G=this.pushStack([],"find",E);G.length=0;b.find(E,this[0],G);return G}else{var F=b.map(this,function(H){return b.find(E,H)});return this.pushStack(/[^+>] [^+>]/.test(E)?b.unique(F):F,"find",E)}},clone:function(F){var E=this.map(function(){if(!b.support.noCloneEvent&&!b.isXMLDoc(this)){var I=this.cloneNode(true),H=document.createElement("div");H.appendChild(I);return b.clean([H.innerHTML])[0]}else{return this.cloneNode(true)}});var G=E.find("*").andSelf().each(function(){if(this[i]!==j){this[i]=null}});if(F===true){this.find("*").andSelf().each(function(I){if(this.nodeType==3){return}var H=b.data(this,"events");for(var K in H){for(var J in H[K]){b.event.add(G[I],K,H[K][J],H[K][J].data)}}})}return E},filter:function(E){return this.pushStack(b.isFunction(E)&&b.grep(this,function(G,F){return E.call(G,F)})||b.multiFilter(E,b.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var F=b.expr.match.POS.test(E)?b(E):null;return this.map(function(){var G=this;while(G&&G.ownerDocument){if(F?F.index(G)>-1:b(G).is(E)){return G}G=G.parentNode}})},not:function(E){if(typeof E==="string"){if(k.test(E)){return this.pushStack(b.multiFilter(E,this,true),"not",E)}else{E=b.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==j&&!E.nodeType;return this.filter(function(){return F?b.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(b.unique(b.merge(this.get(),typeof E==="string"?b(E):b.makeArray(E))))},is:function(E){return !!E&&b.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(L){if(L===j){var F=this[0];if(F){if(b.nodeName(F,"option")){return(F.attributes.value||{}).specified?F.value:F.text}if(b.nodeName(F,"select")){var I=F.selectedIndex,M=[],K=F.options,H=F.type=="select-one";if(I<0){return null}for(var G=H?I:0,J=H?I+1:K.length;G<J;G++){var E=K[G];if(E.selected){L=b(E).val();if(H){return L}M.push(L)}}return M}return(F.value||"").replace(/\r/g,"")}return j}if(typeof L==="number"){L+=""}return this.each(function(){if(this.nodeType!=1){return}if(b.isArray(L)&&/radio|checkbox/.test(this.type)){this.checked=(b.inArray(this.value,L)>=0||b.inArray(this.name,L)>=0)}else{if(b.nodeName(this,"select")){var N=b.makeArray(L);b("option",this).each(function(){this.selected=(b.inArray(this.value,N)>=0||b.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=L}}})},html:function(E){return E===j?(this[0]?this[0].innerHTML:null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(b.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var E=(this[0].ownerDocument||this[0]).createDocumentFragment(),H=b.clean(K,(this[0].ownerDocument||this[0]),E),J=E.firstChild,F=this.length>1?E.cloneNode(true):E;if(J){for(var I=0,G=this.length;I<G;I++){M.call(L(this[I],J),I>0?F.cloneNode(true):E)}}if(H){b.each(H,r)}}return this;function L(O,P){return N&&b.nodeName(O,"table")&&b.nodeName(P,"tr")?(O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};b.fn.init.prototype=b.fn;function r(E,F){if(F.src){b.ajax({url:F.src,async:false,dataType:"script"})}else{b.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function d(){return +new Date}b.extend=b.fn.extend=function(){var L=arguments[0]||{},I=1,F=arguments.length,E=false,H;if(typeof L==="boolean"){E=L;L=arguments[1]||{};I=2}if(typeof L!=="object"&&!b.isFunction(L)){L={}}if(F==I){L=this;--I}for(;I<F;I++){if((H=arguments[I])!=null){for(var G in H){var J=L[G],K=H[G];if(L===K){continue}if(E&&K&&typeof K==="object"&&!K.nodeType){L[G]=b.extend(E,J||(K.length!=null?[]:{}),K)}else{if(K!==j){L[G]=K}}}}}return L};var o=/z-?index|font-?weight|opacity|zoom|line-?height/i,A=document.defaultView||{},x=Object.prototype.toString;b.extend({noConflict:function(E){g.$=p;if(E){g.jQuery=z}return b},isFunction:function(E){return x.call(E)==="[object Function]"},isArray:function(E){return x.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&b.isXMLDoc(E.ownerDocument)},globalEval:function(G){G=b.trim(G);if(G){var E=document.getElementsByTagName("head")[0]||document.documentElement,F=document.createElement("script");F.type="text/javascript";if(b.support.scriptEval){F.appendChild(document.createTextNode(G))}else{F.text=G}E.insertBefore(F,E.firstChild);E.removeChild(F)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(I,K,G){var F,H=0,E=I.length;if(G){if(E===j){for(F in I){if(K.apply(I[F],G)===false){break}}}else{for(;H<E;){if(K.apply(I[H++],G)===false){break}}}}else{if(E===j){for(F in I){if(K.call(I[F],F,I[F])===false){break}}}else{for(var J=I[0];H<E&&K.call(J,H,J)!==false;J=I[++H]){}}}return I},prop:function(H,I,G,F,E){if(b.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!o.test(E)?I+"px":I},className:{add:function(E,F){b.each((F||"").split(/\s+/),function(H,G){if(E.nodeType==1&&!b.className.has(E.className,G)){E.className+=(E.className?" ":"")+G}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==j?b.grep(E.className.split(/\s+/),function(G){return !b.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&b.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(G,E,I){if(E=="width"||E=="height"){var K,F={position:"absolute",visibility:"hidden",display:"block"},J=E=="width"?["Left","Right"]:["Top","Bottom"];function H(){K=E=="width"?G.offsetWidth:G.offsetHeight;var M=0,L=0;b.each(J,function(){M+=parseFloat(b.curCSS(G,"padding"+this,true))||0;L+=parseFloat(b.curCSS(G,"border"+this+"Width",true))||0});K-=Math.round(M+L)}if(b(G).is(":visible")){H()}else{b.swap(G,F,H)}return Math.max(0,K)}return b.curCSS(G,E,I)},curCSS:function(I,E,G){var L,F=I.style;if(E=="opacity"&&!b.support.opacity){L=b.attr(F,"opacity");return L==""?"1":L}if(E.match(/float/i)){E=w}if(!G&&F&&F[E]){L=F[E]}else{if(A.getComputedStyle){if(E.match(/float/i)){E="float"}E=E.replace(/([A-Z])/g,"-$1").toLowerCase();var M=A.getComputedStyle(I,null);if(M){L=M.getPropertyValue(E)}if(E=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var K=E.replace(/\-(\w)/g,function(O,N){return N.toUpperCase()});L=I.currentStyle[E]||I.currentStyle[K];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var J=F.left,H=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;F.left=L||0;L=F.pixelLeft+"px";F.left=J;I.runtimeStyle.left=H}}}}return L},clean:function(F,K,J){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!J&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");b.each(F,function(P,R){if(typeof R==="number"){R+=""}if(!R){return}if(typeof R==="string"){R=R.replace(/(<(\w+)[^>]*?)\/>/g,function(T,U,S){return S.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:U+"></"+S+">"});var O=b.trim(R).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!b.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+R+Q[2];while(Q[0]--){L=L.lastChild}if(!b.support.tbody){var N=!O.indexOf("<table")&&O.indexOf("<tbody")<0?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&O.indexOf("<tbody")<0?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(b.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!b.support.leadingWhitespace&&/^\s/.test(R)){L.insertBefore(K.createTextNode(R.match(/^\s*/)[0]),L.firstChild)}R=b.makeArray(L.childNodes)}if(R.nodeType){G.push(R)}else{G=b.merge(G,R)}});if(J){for(var I=0;G[I];I++){if(b.nodeName(G[I],"script")&&(!G[I].type||G[I].type.toLowerCase()==="text/javascript")){E.push(G[I].parentNode?G[I].parentNode.removeChild(G[I]):G[I])}else{if(G[I].nodeType===1){G.splice.apply(G,[I+1,0].concat(b.makeArray(G[I].getElementsByTagName("script"))))}J.appendChild(G[I])}}return E}return G},attr:function(J,H,K){if(!J||J.nodeType==3||J.nodeType==8){return j}var G=!b.isXMLDoc(J),L=K!==j;H=G&&b.props[H]||H;if(J.tagName){var I=/href|src|style/.test(H);if(H=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(H in J&&G&&!I){if(L){if(H=="type"&&b.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[H]=K}if(b.nodeName(J,"form")&&J.getAttributeNode(H)){return J.getAttributeNode(H).nodeValue}if(H=="tabIndex"){var F=J.getAttributeNode("tabIndex");return F&&F.specified?F.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:j}return J[H]}if(!b.support.style&&G&&H=="style"){return b.attr(J.style,"cssText",K)}if(L){J.setAttribute(H,""+K)}var E=!b.support.hrefNormalized&&G&&I?J.getAttribute(H,2):J.getAttribute(H);return E===null?j:E}if(!b.support.opacity&&H=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}H=H.replace(/-([a-z])/ig,function(N,M){return M.toUpperCase()});if(L){J[H]=K}return J[H]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||b.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var F=0,E=H.length;F<E;F++){if(H[F]===G){return F}}return -1},merge:function(H,F){var E=0,G,I=H.length;if(!b.support.getAll){while((G=F[E++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=F[E++])!=null){H[I++]=G}}return H},unique:function(K){var G=[],F={};try{for(var H=0,E=K.length;H<E;H++){var J=b.data(K[H]);if(!F[J]){F[J]=true;G.push(K[H])}}}catch(I){G=K}return G},grep:function(G,J,E){var H=[];for(var I=0,F=G.length;I<F;I++){if(!E!=!J(G[I],I)){H.push(G[I])}}return H},map:function(F,J){var G=[];for(var H=0,E=F.length;H<E;H++){var I=J(F[H],H);if(I!=null){G[G.length]=I}}return G.concat.apply([],G)}});var C=navigator.userAgent.toLowerCase();b.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};b.each({parent:function(E){return E.parentNode},parents:function(E){return b.dir(E,"parentNode")},next:function(E){return b.nth(E,2,"nextSibling")},prev:function(E){return b.nth(E,2,"previousSibling")},nextAll:function(E){return b.dir(E,"nextSibling")},prevAll:function(E){return b.dir(E,"previousSibling")},siblings:function(E){return b.sibling(E.parentNode.firstChild,E)},children:function(E){return b.sibling(E.firstChild)},contents:function(E){return b.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:b.makeArray(E.childNodes)}},function(E,F){b.fn[E]=function(G){var H=b.map(this,F);if(G&&typeof G=="string"){H=b.multiFilter(G,H)}return this.pushStack(b.unique(H),E,G)}});b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){b.fn[E]=function(){var G=arguments;return this.each(function(){for(var I=0,H=G.length;I<H;I++){b(G[I])[F](this)}})}});b.each({removeAttr:function(E){b.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){b.className.add(this,E)},removeClass:function(E){b.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!b.className.has(this,F)}b.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||b.filter(E,[this]).length){b("*",this).add([this]).each(function(){b.event.remove(this);b.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){b(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){b.fn[E]=function(){return this.each(F,arguments)}});function l(E,F){return E[0]&&parseInt(b.curCSS(E[0],F,true),10)||0}var i="jQuery"+d(),v=0,B={};b.extend({cache:{},data:function(F,E,G){F=F==g?B:F;var H=F[i];if(!H){H=F[i]=++v}if(E&&!b.cache[H]){b.cache[H]={}}if(G!==j){b.cache[H][E]=G}return E?b.cache[H][E]:H},removeData:function(F,E){F=F==g?B:F;var H=F[i];if(E){if(b.cache[H]){delete b.cache[H][E];E="";for(E in b.cache[H]){break}if(!E){b.removeData(F)}}}else{try{delete F[i]}catch(G){if(F.removeAttribute){F.removeAttribute(i)}}delete b.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=b.data(F,E);if(!G||b.isArray(H)){G=b.data(F,E,b.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=b.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==j){F.call(H)}}});b.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===j){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===j&&this.length){F=b.data(this[0],E)}return F===j&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){b.data(this,E,G)})}},removeData:function(E){return this.each(function(){b.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===j){return b.queue(this[0],E)}return this.each(function(){var G=b.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){b.dequeue(this,E)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,I=0,K=Object.prototype.toString;var M=function(X,T,aa,ab){aa=aa||[];T=T||document;if(T.nodeType!==1&&T.nodeType!==9){return[]}if(!X||typeof X!=="string"){return aa}var Y=[],V,ae,ah,S,ac,U,W=true;Q.lastIndex=0;while((V=Q.exec(X))!==null){Y.push(V[1]);if(V[2]){U=RegExp.rightContext;break}}if(Y.length>1&&G.exec(X)){if(Y.length===2&&F.relative[Y[0]]){ae=H(Y[0]+Y[1],T)}else{ae=F.relative[Y[0]]?[T]:M(Y.shift(),T);while(Y.length){X=Y.shift();if(F.relative[X]){X+=Y.shift()}ae=H(X,ae)}}}else{var ad=ab?{expr:Y.pop(),set:E(ab)}:M.find(Y.pop(),Y.length===1&&T.parentNode?T.parentNode:T,P(T));ae=M.filter(ad.expr,ad.set);if(Y.length>0){ah=E(ae)}else{W=false}while(Y.length){var ag=Y.pop(),af=ag;if(!F.relative[ag]){ag=""}else{af=Y.pop()}if(af==null){af=T}F.relative[ag](ah,af,P(T))}}if(!ah){ah=ae}if(!ah){throw"Syntax error, unrecognized expression: "+(ag||X)}if(K.call(ah)==="[object Array]"){if(!W){aa.push.apply(aa,ah)}else{if(T.nodeType===1){for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&(ah[Z]===true||ah[Z].nodeType===1&&J(T,ah[Z]))){aa.push(ae[Z])}}}else{for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&ah[Z].nodeType===1){aa.push(ae[Z])}}}}}else{E(ah,aa)}if(U){M(U,T,aa,ab)}return aa};M.matches=function(S,T){return M(S,null,null,T)};M.find=function(Y,S,aa){var Z,W;if(!Y){return[]}for(var V=0,U=F.order.length;V<U;V++){var X=F.order[V],W;if((W=F.match[X].exec(Y))){var T=RegExp.leftContext;if(T.substr(T.length-1)!=="\\"){W[1]=(W[1]||"").replace(/\\/g,"");Z=F.find[X](W,S,aa);if(Z!=null){Y=Y.replace(F.match[X],"");break}}}}if(!Z){Z=S.getElementsByTagName("*")}return{set:Z,expr:Y}};M.filter=function(ab,ac,af,T){var S=ab,aa=[],W=ac,V,Y;while(ab&&ac.length){for(var Z in F.filter){if((V=F.match[Z].exec(ab))!=null){var X=F.filter[Z],ag,ae;Y=false;if(W==aa){aa=[]}if(F.preFilter[Z]){V=F.preFilter[Z](V,W,af,aa,T);if(!V){Y=ag=true}else{if(V===true){continue}}}if(V){for(var U=0;(ae=W[U])!=null;U++){if(ae){ag=X(ae,V,U,W);var ad=T^!!ag;if(af&&ag!=null){if(ad){Y=true}else{W[U]=false}}else{if(ad){aa.push(ae);Y=true}}}}}if(ag!==j){if(!af){W=aa}ab=ab.replace(F.match[Z],"");if(!Y){return[]}break}}}ab=ab.replace(/\s*,\s*/,"");if(ab==S){if(Y==null){throw"Syntax error, unrecognized expression: "+ab}else{break}}S=ab}return W};var F=M.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(S){return S.getAttribute("href")}},relative:{"+":function(W,T){for(var U=0,S=W.length;U<S;U++){var V=W[U];if(V){var X=V.previousSibling;while(X&&X.nodeType!==1){X=X.previousSibling}W[U]=typeof T==="string"?X||false:X===T}}if(typeof T==="string"){M.filter(T,W,true)}},">":function(X,U,Y){if(typeof U==="string"&&!/\W/.test(U)){U=Y?U:U.toUpperCase();for(var V=0,S=X.length;V<S;V++){var W=X[V];if(W){var T=W.parentNode;X[V]=T.nodeName===U?T:false}}}else{for(var V=0,S=X.length;V<S;V++){var W=X[V];if(W){X[V]=typeof U==="string"?W.parentNode:W.parentNode===U}}if(typeof U==="string"){M.filter(U,X,true)}}},"":function(V,T,X){var U="done"+(I++),S=R;if(!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("parentNode",T,U,V,W,X)},"~":function(V,T,X){var U="done"+(I++),S=R;if(typeof T==="string"&&!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("previousSibling",T,U,V,W,X)}},find:{ID:function(T,U,V){if(typeof U.getElementById!=="undefined"&&!V){var S=U.getElementById(T[1]);return S?[S]:[]}},NAME:function(S,T,U){if(typeof T.getElementsByName!=="undefined"&&!U){return T.getElementsByName(S[1])}},TAG:function(S,T){return T.getElementsByTagName(S[1])}},preFilter:{CLASS:function(U,S,T,Y,X){U=" "+U[1].replace(/\\/g,"")+" ";var W;for(var V=0;(W=S[V])!=null;V++){if(W){if(X^(" "+W.className+" ").indexOf(U)>=0){if(!T){Y.push(W)}}else{if(T){S[V]=false}}}}return false},ID:function(S){return S[1].replace(/\\/g,"")},TAG:function(T,S){for(var U=0;S[U]===false;U++){}return S[U]&&P(S[U])?T[1]:T[1].toUpperCase()},CHILD:function(S){if(S[1]=="nth"){var T=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(S[2]=="even"&&"2n"||S[2]=="odd"&&"2n+1"||!/\D/.test(S[2])&&"0n+"+S[2]||S[2]);S[2]=(T[1]+(T[2]||1))-0;S[3]=T[3]-0}S[0]="done"+(I++);return S},ATTR:function(T){var S=T[1].replace(/\\/g,"");if(F.attrMap[S]){T[1]=F.attrMap[S]}if(T[2]==="~="){T[4]=" "+T[4]+" "}return T},PSEUDO:function(V,S,T,X,W){if(V[1]==="not"){if(V[3].match(Q).length>1){V[3]=M(V[3],null,null,S)}else{var U=M.filter(V[3],S,T,true^W);if(!T){X.push.apply(X,U)}return false}}else{if(F.match.POS.test(V[0])){return true}}return V},POS:function(S){S.unshift(true);return S}},filters:{enabled:function(S){return S.disabled===false&&S.type!=="hidden"},disabled:function(S){return S.disabled===true},checked:function(S){return S.checked===true},selected:function(S){S.parentNode.selectedIndex;return S.selected===true},parent:function(S){return !!S.firstChild},empty:function(S){return !S.firstChild},has:function(U,T,S){return !!M(S[3],U).length},header:function(S){return/h\d/i.test(S.nodeName)},text:function(S){return"text"===S.type},radio:function(S){return"radio"===S.type},checkbox:function(S){return"checkbox"===S.type},file:function(S){return"file"===S.type},password:function(S){return"password"===S.type},submit:function(S){return"submit"===S.type},image:function(S){return"image"===S.type},reset:function(S){return"reset"===S.type},button:function(S){return"button"===S.type||S.nodeName.toUpperCase()==="BUTTON"},input:function(S){return/input|select|textarea|button/i.test(S.nodeName)}},setFilters:{first:function(T,S){return S===0},last:function(U,T,S,V){return T===V.length-1},even:function(T,S){return S%2===0},odd:function(T,S){return S%2===1},lt:function(U,T,S){return T<S[3]-0},gt:function(U,T,S){return T>S[3]-0},nth:function(U,T,S){return S[3]-0==T},eq:function(U,T,S){return S[3]-0==T}},filter:{CHILD:function(T,V){var Y=V[1],aa=T.parentNode;var X=V[0];if(aa&&(!aa[X]||!T.nodeIndex)){var W=1;for(var S=aa.firstChild;S;S=S.nextSibling){if(S.nodeType==1){S.nodeIndex=W++}}aa[X]=W-1}if(Y=="first"){return T.nodeIndex==1}else{if(Y=="last"){return T.nodeIndex==aa[X]}else{if(Y=="only"){return aa[X]==1}else{if(Y=="nth"){var ab=false,U=V[2],Z=V[3];if(U==1&&Z==0){return true}if(U==0){if(T.nodeIndex==Z){ab=true}}else{if((T.nodeIndex-Z)%U==0&&(T.nodeIndex-Z)/U>=0){ab=true}}return ab}}}}},PSEUDO:function(Y,V,W,Z){var U=V[1],T=F.filters[U];if(T){return T(Y,W,V,Z)}else{if(U==="contains"){return(Y.textContent||Y.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var X=V[3];for(var W=0,S=X.length;W<S;W++){if(X[W]===Y){return false}}return true}}}},ID:function(T,S){return T.nodeType===1&&T.getAttribute("id")===S},TAG:function(T,S){return(S==="*"&&T.nodeType===1)||T.nodeName===S},CLASS:function(T,S){return S.test(T.className)},ATTR:function(V,T){var X=F.attrHandle[T[1]]?F.attrHandle[T[1]](V):V[T[1]]||V.getAttribute(T[1]),W=X+"",U=T[2],S=T[4];return X==null?U==="!=":U==="="?W===S:U==="*="?W.indexOf(S)>=0:U==="~="?(" "+W+" ").indexOf(S)>=0:!T[4]?X:U==="!="?W!=S:U==="^="?W.indexOf(S)===0:U==="$="?W.substr(W.length-S.length)===S:U==="|="?W===S||W.substr(0,S.length+1)===S+"-":false},POS:function(W,U,V,X){var T=U[2],S=F.setFilters[T];if(S){return S(W,V,U,X)}}}};var G=F.match.POS;for(var N in F.match){F.match[N]=RegExp(F.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(T,S){T=Array.prototype.slice.call(T);if(S){S.push.apply(S,T);return S}return T};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(L){E=function(W,V){var T=V||[];if(K.call(W)==="[object Array]"){Array.prototype.push.apply(T,W)}else{if(typeof W.length==="number"){for(var U=0,S=W.length;U<S;U++){T.push(W[U])}}else{for(var U=0;W[U];U++){T.push(W[U])}}}return T}}(function(){var T=document.createElement("form"),U="script"+(new Date).getTime();T.innerHTML="<input name='"+U+"'/>";var S=document.documentElement;S.insertBefore(T,S.firstChild);if(!!document.getElementById(U)){F.find.ID=function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);return V?V.id===W[1]||typeof V.getAttributeNode!=="undefined"&&V.getAttributeNode("id").nodeValue===W[1]?[V]:j:[]}};F.filter.ID=function(X,V){var W=typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id");return X.nodeType===1&&W&&W.nodeValue===V}}S.removeChild(T)})();(function(){var S=document.createElement("div");S.appendChild(document.createComment(""));if(S.getElementsByTagName("*").length>0){F.find.TAG=function(T,X){var W=X.getElementsByTagName(T[1]);if(T[1]==="*"){var V=[];for(var U=0;W[U];U++){if(W[U].nodeType===1){V.push(W[U])}}W=V}return W}}S.innerHTML="<a href='#'></a>";if(S.firstChild&&S.firstChild.getAttribute("href")!=="#"){F.attrHandle.href=function(T){return T.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var S=M,T=document.createElement("div");T.innerHTML="<p class='TEST'></p>";if(T.querySelectorAll&&T.querySelectorAll(".TEST").length===0){return}M=function(X,W,U,V){W=W||document;if(!V&&W.nodeType===9&&!P(W)){try{return E(W.querySelectorAll(X),U)}catch(Y){}}return S(X,W,U,V)};M.find=S.find;M.filter=S.filter;M.selectors=S.selectors;M.matches=S.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){F.order.splice(1,0,"CLASS");F.find.CLASS=function(S,T){return T.getElementsByClassName(S[1])}}function O(T,aa,Y,ab,Z,ac){for(var W=0,U=ab.length;W<U;W++){var S=ab[W];if(S){S=S[T];var X=false;while(S&&S.nodeType){var V=S[Y];if(V){X=ab[V];break}if(S.nodeType===1&&!ac){S[Y]=W}if(S.nodeName===aa){X=S;break}S=S[T]}ab[W]=X}}}function R(T,Z,X,aa,Y,ab){for(var V=0,U=aa.length;V<U;V++){var S=aa[V];if(S){S=S[T];var W=false;while(S&&S.nodeType){if(S[X]){W=aa[S[X]];break}if(S.nodeType===1){if(!ab){S[X]=V}if(typeof Z!=="string"){if(S===Z){W=true;break}}else{if(M.filter(Z,[S]).length>0){W=S;break}}}S=S[T]}aa[V]=W}}}var J=document.compareDocumentPosition?function(T,S){return T.compareDocumentPosition(S)&16}:function(T,S){return T!==S&&(T.contains?T.contains(S):true)};var P=function(S){return S.nodeType===9&&S.documentElement.nodeName!=="HTML"||!!S.ownerDocument&&P(S.ownerDocument)};var H=function(S,Y){var Z=[],V="",W,U=Y.nodeType?[Y]:Y;while((W=F.match.PSEUDO.exec(S))){V+=W[0];S=S.replace(F.match.PSEUDO,"")}S=F.relative[S]?S+"*":S;for(var X=0,T=U.length;X<T;X++){M(S,U[X],Z)}return M.filter(V,Z)};b.find=M;b.filter=M.filter;b.expr=M.selectors;b.expr[":"]=b.expr.filters;M.selectors.filters.hidden=function(S){return"hidden"===S.type||b.css(S,"display")==="none"||b.css(S,"visibility")==="hidden"};M.selectors.filters.visible=function(S){return"hidden"!==S.type&&b.css(S,"display")!=="none"&&b.css(S,"visibility")!=="hidden"};M.selectors.filters.animated=function(S){return b.grep(b.timers,function(T){return S===T.elem}).length};b.multiFilter=function(U,S,T){if(T){U=":not("+U+")"}return M.matches(U,S)};b.dir=function(U,T){var S=[],V=U[T];while(V&&V!=document){if(V.nodeType==1){S.push(V)}V=V[T]}return S};b.nth=function(W,V,T,U){V=V||1;var S=0;for(;W;W=W[T]){if(W.nodeType==1&&++S==V){break}}return W};b.sibling=function(U,T){var S=[];for(;U;U=U.nextSibling){if(U.nodeType==1&&U!=T){S.push(U)}}return S};return;g.Sizzle=M})();b.event={add:function(J,G,I,K){if(J.nodeType==3||J.nodeType==8){return}if(J.setInterval&&J!=g){J=g}if(!I.guid){I.guid=this.guid++}if(K!==j){var H=I;I=this.proxy(H);I.data=K}var F=b.data(J,"events")||b.data(J,"events",{}),E=b.data(J,"handle")||b.data(J,"handle",function(){return typeof b!=="undefined"&&!b.event.triggered?b.event.handle.apply(arguments.callee.elem,arguments):j});E.elem=J;b.each(G.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();I.type=O.slice().sort().join(".");var L=F[N];if(b.event.specialAll[N]){b.event.specialAll[N].setup.call(J,K,O)}if(!L){L=F[N]={};if(!b.event.special[N]||b.event.special[N].setup.call(J,K,O)===false){if(J.addEventListener){J.addEventListener(N,E,false)}else{if(J.attachEvent){J.attachEvent("on"+N,E)}}}}L[I.guid]=I;b.event.global[N]=true});J=null},guid:1,global:{},remove:function(L,I,K){if(L.nodeType==3||L.nodeType==8){return}var H=b.data(L,"events"),G,F;if(H){if(I===j||(typeof I==="string"&&I.charAt(0)==".")){for(var J in H){this.remove(L,J+(I||""))}}else{if(I.type){K=I.handler;I=I.type}b.each(I.split(/\s+/),function(N,P){var Q=P.split(".");P=Q.shift();var O=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(H[P]){if(K){delete H[P][K.guid]}else{for(var M in H[P]){if(O.test(H[P][M].type)){delete H[P][M]}}}if(b.event.specialAll[P]){b.event.specialAll[P].teardown.call(L,Q)}for(G in H[P]){break}if(!G){if(!b.event.special[P]||b.event.special[P].teardown.call(L,Q)===false){if(L.removeEventListener){L.removeEventListener(P,b.data(L,"handle"),false)}else{if(L.detachEvent){L.detachEvent("on"+P,b.data(L,"handle"))}}}G=null;delete H[P]}}})}for(G in H){break}if(!G){var E=b.data(L,"handle");if(E){E.elem=null}b.removeData(L,"events");b.removeData(L,"handle")}}},trigger:function(J,K,I,G){var H=J.type||J;if(!G){J=typeof J==="object"?J[i]?J:b.extend(b.Event(H),J):b.Event(H);if(H.indexOf("!")>=0){J.type=H=H.slice(0,-1);J.exclusive=true}if(!I){J.stopPropagation();if(this.global[H]){b.each(b.cache,function(){if(this.events&&this.events[H]){b.event.trigger(J,K,this.handle.elem)}})}}if(!I||I.nodeType==3||I.nodeType==8){return j}J.result=j;J.target=I;K=b.makeArray(K);K.unshift(J)}J.currentTarget=I;var E=b.data(I,"handle");if(E){E.apply(I,K)}if((!I[H]||(b.nodeName(I,"a")&&H=="click"))&&I["on"+H]&&I["on"+H].apply(I,K)===false){J.result=false}if(!G&&I[H]&&!J.isDefaultPrevented()&&!(b.nodeName(I,"a")&&H=="click")){this.triggered=true;try{I[H]()}catch(L){}}this.triggered=false;if(!J.isPropagationStopped()){var F=I.parentNode||I.ownerDocument;if(F){b.event.trigger(J,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=b.event.fix(K||g.event);var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(b.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==j){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[i]){return H}var F=H;H=b.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:q,teardown:function(){}}},specialAll:{live:{setup:function(E,F){b.event.add(this,F[0],n)},teardown:function(G){if(G.length){var F=0,E=RegExp("(^|\\.)"+G[0]+"(\\.|$)");b.each((b.data(this,"events").live||{}),function(){if(E.test(this.type)){F++}});if(F<1){b.event.remove(this,G[0],n)}}}}}};b.Event=function(E){if(!this.preventDefault){return new b.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=d();this[i]=true};function f(){return false}function u(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;b.event.handle.apply(this,arguments)}};b.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){b.event.special[E]={setup:function(){b.event.add(this,F,a,E)},teardown:function(){b.event.remove(this,F,a)}}});b.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){b.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=b.event.proxy(F||H,function(I){b(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){b.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){b.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){b.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=b.Event(E);F.preventDefault();F.stopPropagation();b.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){b.event.proxy(G,E[F++])}return this.click(b.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){q();if(b.isReady){E.call(document,b)}else{b.readyList.push(E)}return this},live:function(G,F){var E=b.event.proxy(F);E.guid+=this.selector+G;b(document).bind(h(G,this.selector),this.selector,E);return this},die:function(F,E){b(document).unbind(h(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function n(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];b.each(b.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=b(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});b.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){G=false}});return G}function h(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}b.extend({isReady:false,readyList:[],ready:function(){if(!b.isReady){b.isReady=true;if(b.readyList){b.each(b.readyList,function(){this.call(document,b)});b.readyList=null}b(document).triggerHandler("ready")}}});var y=false;function q(){if(y){return}y=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);b.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);b.ready()}});if(document.documentElement.doScroll&&typeof g.frameElement==="undefined"){(function(){if(b.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}b.ready()})()}}}b.event.add(g,"load",b.ready)}b.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){b.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});b(g).bind("unload",function(){for(var E in b.cache){if(E!=1&&b.cache[E].handle){b.event.remove(b.cache[E].handle.elem)}}});(function(){b.support={};var F=document.documentElement,H=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var G=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!G||!G.length||!E){return}b.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};H.type="text/javascript";try{H.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(H,F.firstChild);if(g[J]){b.support.scriptEval=true;delete g[J]}F.removeChild(H);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){b.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}b(function(){var L=document.createElement("div");L.style.width="1px";L.style.paddingLeft="1px";document.body.appendChild(L);b.boxModel=b.support.boxModel=L.offsetWidth===2;document.body.removeChild(L)})})();var w=b.support.cssFloat?"cssFloat":"styleFloat";b.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};b.fn.extend({_load:b.fn.load,load:function(G,K,I){if(typeof G!=="string"){return this._load(G)}var J=G.indexOf(" ");if(J>=0){var E=G.slice(J,G.length);G=G.slice(0,J)}var H="GET";if(K){if(b.isFunction(K)){I=K;K=null}else{if(typeof K==="object"){K=b.param(K);H="POST"}}}var F=this;b.ajax({url:G,type:H,dataType:"html",data:K,complete:function(L,M){if(M=="success"||M=="notmodified"){F.html(E?b("<div/>").append(L.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):L.responseText)}if(I){F.each(I,[L.responseText,M,L])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(E,F){var G=b(this).val();return G==null?null:b.isArray(G)?b.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});b.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){b.fn[F]=function(G){return this.bind(F,G)}});var s=d();b.extend({get:function(E,G,H,F){if(b.isFunction(G)){H=G;G=null}return b.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return b.get(E,null,F,"script")},getJSON:function(E,F,G){return b.get(E,F,G,"json")},post:function(E,G,H,F){if(b.isFunction(G)){H=G;G={}}return b.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){b.extend(b.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return g.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(L){L=b.extend(true,L,b.extend(true,{},b.ajaxSettings,L));var V,F=/=\?(&|$)/g,Q,S,G=L.type.toUpperCase();if(L.data&&L.processData&&typeof L.data!=="string"){L.data=b.param(L.data)}if(L.dataType=="jsonp"){if(G=="GET"){if(!L.url.match(F)){L.url+=(L.url.match(/\?/)?"&":"?")+(L.jsonp||"callback")+"=?"}}else{if(!L.data||!L.data.match(F)){L.data=(L.data?L.data+"&":"")+(L.jsonp||"callback")+"=?"}}L.dataType="json"}if(L.dataType=="json"&&(L.data&&L.data.match(F)||L.url.match(F))){V="jsonp"+s++;if(L.data){L.data=(L.data+"").replace(F,"="+V+"$1")}L.url=L.url.replace(F,"="+V+"$1");L.dataType="script";g[V]=function(X){S=X;H();U();g[V]=j;try{delete g[V]}catch(Y){}if(I){I.removeChild(N)}}}if(L.dataType=="script"&&L.cache==null){L.cache=false}if(L.cache===false&&G=="GET"){var E=d();var T=L.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");L.url=T+((T==L.url)?(L.url.match(/\?/)?"&":"?")+"_="+E:"")}if(L.data&&G=="GET"){L.url+=(L.url.match(/\?/)?"&":"?")+L.data;L.data=null}if(L.global&&!b.active++){b.event.trigger("ajaxStart")}var P=/^(\w+:)?\/\/([^\/?#]+)/.exec(L.url);if(L.dataType=="script"&&G=="GET"&&P&&(P[1]&&P[1]!=location.protocol||P[2]!=location.host)){var I=document.getElementsByTagName("head")[0];var N=document.createElement("script");N.src=L.url;if(L.scriptCharset){N.charset=L.scriptCharset}if(!V){var M=false;N.onload=N.onreadystatechange=function(){if(!M&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){M=true;H();U();I.removeChild(N)}}}I.appendChild(N);return j}var K=false;var J=L.xhr();if(L.username){J.open(G,L.url,L.async,L.username,L.password)}else{J.open(G,L.url,L.async)}try{if(L.data){J.setRequestHeader("Content-Type",L.contentType)}if(L.ifModified){J.setRequestHeader("If-Modified-Since",b.lastModified[L.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",L.dataType&&L.accepts[L.dataType]?L.accepts[L.dataType]+", */*":L.accepts._default)}catch(R){}if(L.beforeSend&&L.beforeSend(J,L)===false){if(L.global&&!--b.active){b.event.trigger("ajaxStop")}J.abort();return false}if(L.global){b.event.trigger("ajaxSend",[J,L])}var W=function(Y){if(J.readyState==0){if(O){clearInterval(O);O=null;if(L.global&&!--b.active){b.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||Y=="timeout")){K=true;if(O){clearInterval(O);O=null}Q=Y=="timeout"?"timeout":!b.httpSuccess(J)?"error":L.ifModified&&b.httpNotModified(J,L.url)?"notmodified":"success";if(Q=="success"){try{S=b.httpData(J,L.dataType,L)}catch(Z){Q="parsererror"}}if(Q=="success"){var X;try{X=J.getResponseHeader("Last-Modified")}catch(Z){}if(L.ifModified&&X){b.lastModified[L.url]=X}if(!V){H()}}else{b.handleError(L,J,Q)}U();if(Y){J.abort()}if(L.async){J=null}}}};if(L.async){var O=setInterval(W,13);if(L.timeout>0){setTimeout(function(){if(J&&!K){W("timeout")}},L.timeout)}}try{J.send(L.data)}catch(R){b.handleError(L,J,null,R)}if(!L.async){W()}function H(){if(L.success){L.success(S,Q)}if(L.global){b.event.trigger("ajaxSuccess",[J,L])}}function U(){if(L.complete){L.complete(J,Q)}if(L.global){b.event.trigger("ajaxComplete",[J,L])}if(L.global&&!--b.active){b.event.trigger("ajaxStop")}}return J},handleError:function(E,H,F,G){if(E.error){E.error(H,F,G)}if(E.global){b.event.trigger("ajaxError",[H,E,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(H,E){try{var G=H.getResponseHeader("Last-Modified");return H.status==304||G==b.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){b.globalEval(I)}if(H=="json"){I=g["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(b.isArray(E)||E.jquery){b.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(b.isArray(E[F])){b.each(E[F],function(){H(F,this)})}else{H(F,b.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var e={},c,m=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};b.each(m.concat.apply([],m.slice(0,E)),function(){G[this]=F});return G}b.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=b.data(this[H],"olddisplay");this[H].style.display=E||"";if(b.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(e[G]){K=e[G]}else{var I=b("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();e[G]=K}this[H].style.display=b.data(this[H],"olddisplay",K)}}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=b.data(this[G],"olddisplay");if(!E&&E!=="none"){b.data(this[G],"olddisplay",b.css(this[G],"display"))}this[G].style.display="none"}return this}},_toggle:b.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return b.isFunction(G)&&b.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:b(this).is(":hidden");b(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=b.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var L=b.extend({},E),M,J=this.nodeType==1&&b(this).is(":hidden"),K=this;for(M in I){if(I[M]=="hide"&&J||I[M]=="show"&&!J){return L.complete.call(this)}if((M=="height"||M=="width")&&this.style){L.display=b.css(this,"display");L.overflow=this.style.overflow}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=b.extend({},I);b.each(I,function(O,S){var R=new b.fx(K,L,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?J?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){K.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;K.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,G){var E=b.timers;if(F){this.queue([])}this.each(function(){for(var H=E.length-1;H>=0;H--){if(E[H].elem==this){if(G){E[H](true)}E.splice(H,1)}}});if(!G){this.dequeue()}return this}});b.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){b.fn[E]=function(G,H){return this.animate(F,G,H)}});b.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||b.isFunction(G)&&G,duration:G,easing:F&&H||H&&!b.isFunction(H)&&H};E.duration=b.fx.off?0:typeof E.duration==="number"?E.duration:b.fx.speeds[E.duration]||b.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){b(this).dequeue()}if(b.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});b.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(b.fx.step[this.prop]||b.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(b.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(b.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=d();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&b.timers.push(F)==1){c=setInterval(function(){var J=b.timers;for(var K=0;K<J.length;K++){if(!J[K]()){J.splice(K--,1)}}if(!J.length){clearInterval(c)}},13)}},show:function(){this.options.orig[this.prop]=b.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=d();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(b.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){b(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){b.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=b.easing[this.options.easing||(b.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};b.extend(b.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){b.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){b.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return b.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),K=this[0].ownerDocument,F=K.body,E=K.documentElement,J=E.clientTop||F.clientTop||0,L=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||b.boxModel&&E.scrollTop||F.scrollTop)-J,H=G.left+(self.pageXOffset||b.boxModel&&E.scrollLeft||F.scrollLeft)-L;return{top:I,left:H}}}else{b.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return b.offset.bodyOffset(this[0])}b.offset.initialized||b.offset.initialize();var I=this[0],E=I.offsetParent,M=I,O=I.ownerDocument,L,G=O.documentElement,J=O.body,F=O.defaultView,K=F.getComputedStyle(I,null),N=I.offsetTop,H=I.offsetLeft;while((I=I.parentNode)&&I!==J&&I!==G){L=F.getComputedStyle(I,null);N-=I.scrollTop,H-=I.scrollLeft;if(I===E){N+=I.offsetTop,H+=I.offsetLeft;if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(I.tagName))){N+=parseInt(L.borderTopWidth,10)||0,H+=parseInt(L.borderLeftWidth,10)||0}M=E,E=I.offsetParent}if(b.offset.subtractsBorderForOverflowNotVisible&&L.overflow!=="visible"){N+=parseInt(L.borderTopWidth,10)||0,H+=parseInt(L.borderLeftWidth,10)||0}K=L}if(K.position==="relative"||K.position==="static"){N+=J.offsetTop,H+=J.offsetLeft}if(K.position==="fixed"){N+=Math.max(G.scrollTop,J.scrollTop),H+=Math.max(G.scrollLeft,J.scrollLeft)}return{top:N,left:H}}}b.offset={initialize:function(){if(this.initialized){return}var K=document.body,L=document.createElement("div"),G,F,N,H,M,E,I=K.style.marginTop,J='<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>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){L.style[E]=M[E]}L.innerHTML=J;K.insertBefore(L,K.firstChild);G=L.firstChild,F=G.firstChild,H=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(F.offsetTop!==5);this.doesAddBorderForTableAndCells=(H.offsetTop===5);G.style.overflow="hidden",G.style.position="relative";this.subtractsBorderForOverflowNotVisible=(F.offsetTop===-5);K.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(K.offsetTop===0);K.style.marginTop=I;K.removeChild(L);this.initialized=true},bodyOffset:function(E){b.offset.initialized||b.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(b.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(b.curCSS(E,"marginTop",true),10)||0,F+=parseInt(b.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};b.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=l(this,"marginTop");J.left-=l(this,"marginLeft");E.top+=l(G,"borderTopWidth");E.left+=l(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&b.css(E,"position")=="static")){E=E.offsetParent}return b(E)}});b.each(["Left","Top"],function(F,E){var G="scroll"+E;b.fn[G]=function(H){if(!this[0]){return null}return H!==j?this.each(function(){this==g||this==document?g.scrollTo(!F?H:b(g).scrollLeft(),F?H:b(g).scrollTop()):this[G]=H}):this[0]==g||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||b.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});b.each(["Height","Width"],function(H,F){var E=H?"Left":"Top",G=H?"Right":"Bottom";b.fn["inner"+F]=function(){return this[F.toLowerCase()]()+l(this,"padding"+E)+l(this,"padding"+G)};b.fn["outer"+F]=function(J){return this["inner"+F]()+l(this,"border"+E+"Width")+l(this,"border"+G+"Width")+(J?l(this,"margin"+E)+l(this,"margin"+G):0)};var I=F.toLowerCase();b.fn[I]=function(J){return this[0]==g?document.compatMode=="CSS1Compat"&&document.documentElement["client"+F]||document.body["client"+F]:this[0]==document?Math.max(document.documentElement["client"+F],document.body["scroll"+F],document.documentElement["scroll"+F],document.body["offset"+F],document.documentElement["offset"+F]):J===j?(this.length?b.css(this[0],I):null):this.css(I,typeof J==="string"?J:J+"px")}})})();

(function(a){a.ui=a.ui||{};a.extend(a.ui,{plugin:{add:function(c,b,f){var e=a.ui[c].prototype;for(var d in f){e.plugins[d]=e.plugins[d]||[];e.plugins[d].push([b,f[d]])}},call:function(c,d,b){var f=c.plugins[d];if(!f){return}for(var e=0;e<f.length;e++){if(c.options[f[e][0]]){f[e][1].apply(c.element,b)}}}},cssCache:{},css:function(b){if(a.ui.cssCache[b]){return a.ui.cssCache[b]}var c=a('<div class="ui-resizable-gen">').addClass(b).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");a.ui.cssCache[b]=!!(((/^[1-9]/).test(c.css("height"))||(/^[1-9]/).test(c.css("width"))||!(/none/).test(c.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(c.css("backgroundColor"))));try{a("body").get(0).removeChild(c.get(0))}catch(d){}return a.ui.cssCache[b]},disableSelection:function(b){if(!b){return}b.unselectable="on";b.onselectstart=function(){return false};if(b.style){b.style.MozUserSelect="none"}},enableSelection:function(b){if(!b){return}b.unselectable="off";b.onselectstart=function(){return true};if(b.style){b.style.MozUserSelect=""}},hasScroll:function(f,b){var d=/top/.test(b||"top")?"scrollTop":"scrollLeft",c=false;if(f[d]>0){return true}f[d]=1;c=f[d]>0?true:false;f[d]=0;return c}});a.fn.extend({mouseInteraction:function(b){return this.each(function(){new a.ui.mouseInteraction(this,b)})},removeMouseInteraction:function(b){return this.each(function(){if(a.data(this,"ui-mouse")){a.data(this,"ui-mouse").destroy()}})}});a.ui.mouseInteraction=function(c,d){var b=this;this.element=c;a.data(this.element,"ui-mouse",this);this.options=a.extend({},d);a(c).bind("mousedown.draggable",function(){return b.click.apply(b,arguments)});if(a.browser.msie){a(c).attr("unselectable","on")}};a.extend(a.ui.mouseInteraction.prototype,{destroy:function(){a(this.element).unbind("mousedown.draggable")},trigger:function(){return this.click.apply(this,arguments)},click:function(d){if(d.which!=1||a.inArray(d.target.nodeName.toLowerCase(),this.options.dragPrevention)!=-1||(this.options.condition&&!this.options.condition.apply(this.options.executor||this,[d,this.element]))){return true}var c=this;var b=function(){c._MP={left:d.pageX,top:d.pageY};a(document).bind("mouseup.draggable",function(){return c.stop.apply(c,arguments)});a(document).bind("mousemove.draggable",function(){return c.drag.apply(c,arguments)})};if(this.options.delay){if(this.timer){clearInterval(this.timer)}this.timer=setTimeout(b,this.options.delay)}else{b()}return false},stop:function(b){var c=this.options;if(!this.initialized){return a(document).unbind("mouseup.draggable").unbind("mousemove.draggable")}if(this.options.stop){this.options.stop.call(this.options.executor||this,b,this.element)}a(document).unbind("mouseup.draggable").unbind("mousemove.draggable");this.initialized=false;return false},drag:function(b){var c=this.options;if(a.browser.msie&&!b.button){return this.stop.apply(this,[b])}if(!this.initialized&&(Math.abs(this._MP.left-b.pageX)>=c.distance||Math.abs(this._MP.top-b.pageY)>=c.distance)){if(this.options.start){this.options.start.call(this.options.executor||this,b,this.element)}this.initialized=true}else{if(!this.initialized){return false}}if(c.drag){c.drag.call(this.options.executor||this,b,this.element)}return false}})})(jQuery);(function(a){a.fn.extend({draggable:function(c){var b=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof c=="string"){var d=a.data(this,"ui-draggable");d[c].apply(d,b)}else{if(!a.data(this,"ui-draggable")){new a.ui.draggable(this,c)}}})}});a.ui.draggable=function(c,d){var b=this;this.element=a(c);a.data(c,"ui-draggable",this);this.element.addClass("ui-draggable");this.options=a.extend({},d);var e=this.options;a.extend(e,{helper:e.ghosting==true?"clone":(e.helper||"original"),handle:e.handle?(a(e.handle,c)[0]?a(e.handle,c):this.element):this.element,appendTo:e.appendTo||"parent"});a(c).bind("setData.draggable",function(g,f,h){b.options[f]=h}).bind("getData.draggable",function(g,f){return b.options[f]});a(e.handle).mouseInteraction({executor:this,delay:e.delay,distance:e.distance||0,dragPrevention:e.prevention?e.prevention.toLowerCase().split(","):["input","textarea","button","select","option"],start:this.start,stop:this.stop,drag:this.drag,condition:function(f){return !(f.target.className.indexOf("ui-resizable-handle")!=-1||this.disabled)}});if(e.helper=="original"&&(this.element.css("position")=="static"||this.element.css("position")=="")){this.element.css("position","relative")}};a.extend(a.ui.draggable.prototype,{plugins:{},ui:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,instance:this,options:this.options,element:this.element}},propagate:function(c,b){a.ui.plugin.call(this,c,[b,this.ui()]);return this.element.triggerHandler(c=="drag"?c:"drag"+c,[b,this.ui()],this.options[c])},destroy:function(){this.handle.removeMouseInteraction();this.element.removeClass("ui-draggable ui-draggable-disabled").removeData("ui-draggable").unbind(".draggable")},enable:function(){this.element.removeClass("ui-draggable-disabled");this.disabled=false},disable:function(){this.element.addClass("ui-draggable-disabled");this.disabled=true},recallOffset:function(d){var c={left:this.elementOffset.left-this.offsetParentOffset.left,top:this.elementOffset.top-this.offsetParentOffset.top};var b=this.helper.css("position")=="relative";this.originalPosition={left:(b?parseInt(this.helper.css("left"),10)||0:c.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)),top:(b?parseInt(this.helper.css("top"),10)||0:c.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop))};this.offset={left:this._pageX-this.originalPosition.left,top:this._pageY-this.originalPosition.top}},start:function(d){var f=this.options;if(a.ui.ddmanager){a.ui.ddmanager.current=this}this.helper=typeof f.helper=="function"?a(f.helper.apply(this.element[0],[d])):(f.helper=="clone"?this.element.clone().appendTo((f.appendTo=="parent"?this.element[0].parentNode:f.appendTo)):this.element);if(this.helper[0]!=this.element[0]){this.helper.css("position","absolute")}if(!this.helper.parents("body").length){this.helper.appendTo((f.appendTo=="parent"?this.element[0].parentNode:f.appendTo))}this.offsetParent=(function(e){while(e){if(e.style&&(/(absolute|relative|fixed)/).test(a.css(e,"position"))){return a(e)}e=e.parentNode?e.parentNode:null}return a("body")})(this.helper[0].parentNode);this.elementOffset=this.element.offset();this.offsetParentOffset=this.offsetParent.offset();var c={left:this.elementOffset.left-this.offsetParentOffset.left,top:this.elementOffset.top-this.offsetParentOffset.top};this._pageX=d.pageX;this._pageY=d.pageY;this.clickOffset={left:d.pageX-this.elementOffset.left,top:d.pageY-this.elementOffset.top};var b=this.helper.css("position")=="relative";this.originalPosition={left:(b?parseInt(this.helper.css("left"),10)||0:c.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)),top:(b?parseInt(this.helper.css("top"),10)||0:c.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop))};if(this.element.css("position")=="fixed"){this.originalPosition.top-=this.offsetParent[0]==document.body?a(document).scrollTop():this.offsetParent[0].scrollTop;this.originalPosition.left-=this.offsetParent[0]==document.body?a(document).scrollLeft():this.offsetParent[0].scrollLeft}this.offset={left:d.pageX-this.originalPosition.left,top:d.pageY-this.originalPosition.top};if(this.element[0]!=this.helper[0]){this.offset.left+=parseInt(this.element.css("marginLeft"),10)||0;this.offset.top+=parseInt(this.element.css("marginTop"),10)||0}this.propagate("start",d);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,d)}if(f.cursorAt){if(f.cursorAt.top!=undefined||f.cursorAt.bottom!=undefined){this.offset.top-=this.clickOffset.top-(f.cursorAt.top!=undefined?f.cursorAt.top:(this.helperProportions.height-f.cursorAt.bottom));this.clickOffset.top=(f.cursorAt.top!=undefined?f.cursorAt.top:(this.helperProportions.height-f.cursorAt.bottom))}if(f.cursorAt.left!=undefined||f.cursorAt.right!=undefined){this.offset.left-=this.clickOffset.left-(f.cursorAt.left!=undefined?f.cursorAt.left:(this.helperProportions.width-f.cursorAt.right));this.clickOffset.left=(f.cursorAt.left!=undefined?f.cursorAt.left:(this.helperProportions.width-f.cursorAt.right))}}return false},clear:function(){if(a.ui.ddmanager){a.ui.ddmanager.current=null}this.helper=null},stop:function(b){if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,b)}this.propagate("stop",b);if(this.cancelHelperRemoval){return false}if(this.options.helper!="original"){this.helper.remove()}this.clear();return false},drag:function(b){this.position={top:b.pageY-this.offset.top,left:b.pageX-this.offset.left};this.positionAbs={left:b.pageX-this.clickOffset.left,top:b.pageY-this.clickOffset.top};this.position=this.propagate("drag",b)||this.position;this.helper.css({left:this.position.left+"px",top:this.position.top+"px"});if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false}})})(jQuery);(function(a){a.ui.plugin.add("draggable","cursor",{start:function(d,c){var b=a("body");if(b.css("cursor")){c.options._cursor=b.css("cursor")}b.css("cursor",c.options.cursor)},stop:function(c,b){if(b.options._cursor){a("body").css("cursor",b.options._cursor)}}});a.ui.plugin.add("draggable","zIndex",{start:function(d,c){var b=a(c.helper);if(b.css("zIndex")){c.options._zIndex=b.css("zIndex")}b.css("zIndex",c.options.zIndex)},stop:function(c,b){if(b.options._zIndex){a(b.helper).css("zIndex",b.options._zIndex)}}});a.ui.plugin.add("draggable","opacity",{start:function(d,c){var b=a(c.helper);if(b.css("opacity")){c.options._opacity=b.css("opacity")}b.css("opacity",c.options.opacity)},stop:function(c,b){if(b.options._opacity){a(b.helper).css("opacity",b.options._opacity)}}});a.ui.plugin.add("draggable","revert",{stop:function(d,c){var b=c.instance;b.cancelHelperRemoval=true;a(c.helper).animate({left:b.originalPosition.left,top:b.originalPosition.top},parseInt(c.options.revert,10)||500,function(){if(c.options.helper!="original"){b.helper.remove()}b.clear()})}});a.ui.plugin.add("draggable","iframeFix",{start:function(d,c){var g=c.options;if(c.instance.slowMode){return}if(g.iframeFix.constructor==Array){for(var b=0;b<g.iframeFix.length;b++){var f=a(g.iframeFix[b]).offset({border:false});a('<div class="DragDropIframeFix"" style="background: #fff;"></div>').css("width",a(g.iframeFix[b])[0].offsetWidth+"px").css("height",a(g.iframeFix[b])[0].offsetHeight+"px").css("position","absolute").css("opacity","0.001").css("z-index","1000").css("top",f.top+"px").css("left",f.left+"px").appendTo("body")}}else{a("iframe").each(function(){var e=a(this).offset({border:false});a('<div class="DragDropIframeFix" style="background: #fff;"></div>').css("width",this.offsetWidth+"px").css("height",this.offsetHeight+"px").css("position","absolute").css("opacity","0.001").css("z-index","1000").css("top",e.top+"px").css("left",e.left+"px").appendTo("body")})}},stop:function(c,b){if(b.options.iframeFix){a("div.DragDropIframeFix").each(function(){this.parentNode.removeChild(this)})}}});a.ui.plugin.add("draggable","containment",{start:function(d,b){var g=b.options;if((g.containment.left!=undefined||g.containment.constructor==Array)&&!g._containment){return}if(!g._containment){g._containment=g.containment}if(g._containment=="parent"){g._containment=this[0].parentNode}if(g._containment=="document"){g.containment=[0,0,a(document).width(),(a(document).height()||document.body.parentNode.scrollHeight)]}else{var c=a(g._containment)[0];var f=a(g._containment).offset();g.containment=[f.left,f.top,f.left+(c.offsetWidth||c.scrollWidth),f.top+(c.offsetHeight||c.scrollHeight)]}},drag:function(g,f){var i=f.options;var d=f.helper;var j=i.containment;var b=f.instance;if(j.constructor==Array){if((f.absolutePosition.left<j[0])){b.position.left=j[0]-(b.offset.left-b.clickOffset.left)}if((f.absolutePosition.top<j[1])){b.position.top=j[1]-(b.offset.top-b.clickOffset.top)}if(f.absolutePosition.left-j[2]+b.helperProportions.width>=0){b.position.left=j[2]-(b.offset.left-b.clickOffset.left)-b.helperProportions.width}if(f.absolutePosition.top-j[3]+b.helperProportions.height>=0){b.position.top=j[3]-(b.offset.top-b.clickOffset.top)-b.helperProportions.height}}else{if((f.position.left<j.left)){b.position.left=j.left}if((f.position.top<j.top)){b.position.top=j.top}if(f.position.left-b.offsetParent.innerWidth()+b.helperProportions.width+j.right+(parseInt(b.offsetParent.css("borderLeftWidth"),10)||0)+(parseInt(b.offsetParent.css("borderRightWidth"),10)||0)>=0){b.position.left=b.offsetParent.innerWidth()-b.helperProportions.width-j.right-(parseInt(b.offsetParent.css("borderLeftWidth"),10)||0)-(parseInt(b.offsetParent.css("borderRightWidth"),10)||0)}if(f.position.top-b.offsetParent.innerHeight()+b.helperProportions.height+j.bottom+(parseInt(b.offsetParent.css("borderTopWidth"),10)||0)+(parseInt(b.offsetParent.css("borderBottomWidth"),10)||0)>=0){b.position.top=b.offsetParent.innerHeight()-b.helperProportions.height-j.bottom-(parseInt(b.offsetParent.css("borderTopWidth"),10)||0)-(parseInt(b.offsetParent.css("borderBottomWidth"),10)||0)}}}});a.ui.plugin.add("draggable","grid",{drag:function(c,b){var d=b.options;b.instance.position.left=b.instance.originalPosition.left+Math.round((c.pageX-b.instance._pageX)/d.grid[0])*d.grid[0];b.instance.position.top=b.instance.originalPosition.top+Math.round((c.pageY-b.instance._pageY)/d.grid[1])*d.grid[1]}});a.ui.plugin.add("draggable","axis",{drag:function(c,b){var d=b.options;if(d.constraint){d.axis=d.constraint}d.axis=="x"?b.instance.position.top=b.instance.originalPosition.top:b.instance.position.left=b.instance.originalPosition.left}});a.ui.plugin.add("draggable","scroll",{start:function(c,b){var d=b.options;d.scrollSensitivity=d.scrollSensitivity||20;d.scrollSpeed=d.scrollSpeed||20;b.instance.overflowY=function(e){do{if(/auto|scroll/.test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-y"))){return e}e=e.parent()}while(e[0].parentNode);return a(document)}(this);b.instance.overflowX=function(e){do{if(/auto|scroll/.test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-x"))){return e}e=e.parent()}while(e[0].parentNode);return a(document)}(this)},drag:function(d,c){var f=c.options;var b=c.instance;if(b.overflowY[0]!=document&&b.overflowY[0].tagName!="HTML"){if(b.overflowY[0].offsetHeight-(c.position.top-b.overflowY[0].scrollTop+b.clickOffset.top)<f.scrollSensitivity){b.overflowY[0].scrollTop=b.overflowY[0].scrollTop+f.scrollSpeed}if((c.position.top-b.overflowY[0].scrollTop+b.clickOffset.top)<f.scrollSensitivity){b.overflowY[0].scrollTop=b.overflowY[0].scrollTop-f.scrollSpeed}}else{if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}if(b.overflowX[0]!=document&&b.overflowX[0].tagName!="HTML"){if(b.overflowX[0].offsetWidth-(c.position.left-b.overflowX[0].scrollLeft+b.clickOffset.left)<f.scrollSensitivity){b.overflowX[0].scrollLeft=b.overflowX[0].scrollLeft+f.scrollSpeed}if((c.position.top-b.overflowX[0].scrollLeft+b.clickOffset.left)<f.scrollSensitivity){b.overflowX[0].scrollLeft=b.overflowX[0].scrollLeft-f.scrollSpeed}}else{if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}c.instance.recallOffset(d)}});a.ui.plugin.add("draggable","snap",{start:function(c,b){b.instance.snapElements=[];a(b.options.snap===true?".ui-draggable":b.options.snap).each(function(){var e=a(this);var d=e.offset();if(this!=b.instance.element[0]){b.instance.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:d.top,left:d.left})}})},drag:function(n,u){var p=u.options.snapTolerance||20;var g=u.absolutePosition.left,f=g+u.instance.helperProportions.width,v=u.absolutePosition.top,s=v+u.instance.helperProportions.height;for(var m=u.instance.snapElements.length-1;m>=0;m--){var h=u.instance.snapElements[m].left,c=h+u.instance.snapElements[m].width,x=u.instance.snapElements[m].top,q=x+u.instance.snapElements[m].height;if(!((h-p<g&&g<c+p&&x-p<v&&v<q+p)||(h-p<g&&g<c+p&&x-p<s&&s<q+p)||(h-p<f&&f<c+p&&x-p<v&&v<q+p)||(h-p<f&&f<c+p&&x-p<s&&s<q+p))){continue}if(u.options.snapMode!="inner"){var o=Math.abs(x-s)<=20;var w=Math.abs(q-v)<=20;var k=Math.abs(h-f)<=20;var j=Math.abs(c-g)<=20;if(o){u.position.top=x-u.instance.offset.top+u.instance.clickOffset.top-u.instance.helperProportions.height}if(w){u.position.top=q-u.instance.offset.top+u.instance.clickOffset.top}if(k){u.position.left=h-u.instance.offset.left+u.instance.clickOffset.left-u.instance.helperProportions.width}if(j){u.position.left=c-u.instance.offset.left+u.instance.clickOffset.left}}if(u.options.snapMode!="outer"){var o=Math.abs(x-v)<=20;var w=Math.abs(q-s)<=20;var k=Math.abs(h-g)<=20;var j=Math.abs(c-f)<=20;if(o){u.position.top=x-u.instance.offset.top+u.instance.clickOffset.top}if(w){u.position.top=q-u.instance.offset.top+u.instance.clickOffset.top-u.instance.helperProportions.height}if(k){u.position.left=h-u.instance.offset.left+u.instance.clickOffset.left}if(j){u.position.left=c-u.instance.offset.left+u.instance.clickOffset.left-u.instance.helperProportions.width}}}}})})(jQuery);(function(a){a.fn.extend({droppable:function(c){var b=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof c=="string"){var d=a.data(this,"ui-droppable");d[c].apply(d,b)}else{if(!a.data(this,"ui-droppable")){new a.ui.droppable(this,c)}}})}});a.ui.droppable=function(c,d){this.element=a(c);a.data(c,"ui-droppable",this);this.element.addClass("ui-droppable");this.options=a.extend({},d);var e=this.options;var b=e.accept;a.extend(e,{accept:e.accept&&e.accept.constructor==Function?e.accept:function(f){return a(f).is(b)},tolerance:e.tolerance||"intersect"});a(c).bind("setData.draggable",function(g,f,h){e[f]=h}).bind("getData.draggable",function(g,f){return e[f]});this.proportions={width:this.element.outerWidth(),height:this.element.outerHeight()};a.ui.ddmanager.droppables.push({item:this,over:0,out:1})};a.extend(a.ui.droppable.prototype,{plugins:{},ui:function(b){return{instance:this,draggable:b.element,helper:b.helper,position:b.position,absolutePosition:b.positionAbs,options:this.options,element:this.element}},destroy:function(){var b=a.ui.ddmanager.droppables;for(var c=0;c<b.length;c++){if(b[c].item==this){b.splice(c,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("ui-droppable").unbind(".droppable")},enable:function(){this.element.removeClass("ui-droppable-disabled");this.disabled=false},disable:function(){this.element.addClass("ui-droppable-disabled");this.disabled=true},over:function(c){var b=a.ui.ddmanager.current;if(!b||b.element[0]==this.element[0]){return}if(this.options.accept.call(this.element,b.element)){a.ui.plugin.call(this,"over",[c,this.ui(b)]);this.element.triggerHandler("dropover",[c,this.ui(b)],this.options.over)}},out:function(c){var b=a.ui.ddmanager.current;if(!b||b.element[0]==this.element[0]){return}if(this.options.accept.call(this.element,b.element)){a.ui.plugin.call(this,"out",[c,this.ui(b)]);this.element.triggerHandler("dropout",[c,this.ui(b)],this.options.out)}},drop:function(c){var b=a.ui.ddmanager.current;if(!b||b.element[0]==this.element[0]){return}if(this.options.accept.call(this.element,b.element)){a.ui.plugin.call(this,"drop",[c,this.ui(b)]);this.element.triggerHandler("drop",[c,this.ui(b)],this.options.drop)}},activate:function(c){var b=a.ui.ddmanager.current;a.ui.plugin.call(this,"activate",[c,this.ui(b)]);if(b){this.element.triggerHandler("dropactivate",[c,this.ui(b)],this.options.activate)}},deactivate:function(c){var b=a.ui.ddmanager.current;a.ui.plugin.call(this,"deactivate",[c,this.ui(b)]);if(b){this.element.triggerHandler("dropdeactivate",[c,this.ui(b)],this.options.deactivate)}}});a.ui.intersect=function(j,f,k){if(!f.offset){return false}var e=j.positionAbs.left,d=e+j.helperProportions.width,m=j.positionAbs.top,i=m+j.helperProportions.height;var g=f.offset.left,c=g+f.item.proportions.width,n=f.offset.top,h=n+f.item.proportions.height;switch(k){case"fit":return(g<e&&d<c&&n<m&&i<h);break;case"intersect":return(g<e+(j.helperProportions.width/2)&&d-(j.helperProportions.width/2)<c&&n<m+(j.helperProportions.height/2)&&i-(j.helperProportions.height/2)<h);break;case"pointer":return(g<(j.positionAbs.left+j.clickOffset.left)&&(j.positionAbs.left+j.clickOffset.left)<c&&n<(j.positionAbs.top+j.clickOffset.top)&&(j.positionAbs.top+j.clickOffset.top)<h);break;case"touch":return((g<e&&e<c&&n<m&&m<h)||(g<e&&e<c&&n<i&&i<h)||(g<d&&d<c&&n<m&&m<h)||(g<d&&d<c&&n<i&&i<h));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:[],prepareOffsets:function(d,f){var b=a.ui.ddmanager.droppables;for(var c=0;c<b.length;c++){if(b[c].item.disabled||(d&&!b[c].item.options.accept.call(b[c].item.element,d.element))){continue}b[c].offset=a(b[c].item.element).offset();if(d){b[c].item.activate.call(b[c].item,f)}}},drop:function(b,c){a.each(a.ui.ddmanager.droppables,function(){if(!this.item.disabled&&a.ui.intersect(b,this,this.item.options.tolerance)){this.item.drop.call(this.item,c)}if(!this.item.disabled&&this.item.options.accept.call(this.item.element,b.element)){this.out=1;this.over=0;this.item.deactivate.call(this.item,c)}})},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets()}a.each(a.ui.ddmanager.droppables,function(){if(this.item.disabled){return false}var d=a.ui.intersect(b,this,this.item.options.tolerance);var e=!d&&this.over==1?"out":(d&&this.over==0?"over":null);if(!e){return}this[e]=1;this[e=="out"?"over":"out"]=0;this.item[e].call(this.item,c)})}}})(jQuery);(function(a){a.ui.plugin.add("droppable","activeClass",{activate:function(c,b){a(this).addClass(b.options.activeClass)},deactivate:function(c,b){a(this).removeClass(b.options.activeClass)},drop:function(c,b){a(this).removeClass(b.options.activeClass)}});a.ui.plugin.add("droppable","hoverClass",{over:function(c,b){a(this).addClass(b.options.hoverClass)},out:function(c,b){a(this).removeClass(b.options.hoverClass)},drop:function(c,b){a(this).removeClass(b.options.hoverClass)}})})(jQuery);(function(a){if(window.Node&&Node.prototype&&!Node.prototype.contains){Node.prototype.contains=function(b){return !!(this.compareDocumentPosition(b)&16)}}a.fn.extend({sortable:function(c){var b=Array.prototype.slice.call(arguments,1);if(c=="serialize"||c=="toArray"){return a.data(this[0],"ui-sortable")[c](arguments[1])}return this.each(function(){if(typeof c=="string"){var d=a.data(this,"ui-sortable");d[c].apply(d,b)}else{if(!a.data(this,"ui-sortable")){new a.ui.sortable(this,c)}}})}});a.ui.sortable=function(c,d){var b=this;this.element=a(c);a.data(c,"ui-sortable",this);this.element.addClass("ui-sortable");this.options=a.extend({},d);var e=this.options;a.extend(e,{items:this.options.items||"> *",zIndex:this.options.zIndex||1000,startCondition:function(){return !b.disabled}});a(c).bind("setData.sortable",function(g,f,h){b.options[f]=h}).bind("getData.sortable",function(g,f){return b.options[f]});this.refresh();this.floating=/left|right/.test(this.items[0].item.css("float"));if(!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.offset=this.element.offset({border:false});this.element.mouseInteraction({executor:this,delay:e.delay,distance:e.distance||0,dragPrevention:e.prevention?e.prevention.toLowerCase().split(","):["input","textarea","button","select","option"],start:this.start,stop:this.stop,drag:this.drag,condition:function(h){if(this.disabled){return false}var g=null,f=a(h.target).parents().andSelf().each(function(){if(a.data(this,"ui-sortable-item")){g=a(this)}});if(g&&(!this.options.handle||a(h.target).parents().andSelf().is(this.options.handle))){this.currentItem=g;return true}else{return false}}})};a.extend(a.ui.sortable.prototype,{plugins:{},ui:function(b){return{helper:(b||this)["helper"],placeholder:(b||this)["placeholder"]||a([]),position:(b||this)["position"],absolutePosition:(b||this)["positionAbs"],instance:this,options:this.options,element:this.element,item:(b||this)["currentItem"],sender:b?b.element:null}},propagate:function(d,c,b){a.ui.plugin.call(this,d,[c,this.ui(b)]);this.element.triggerHandler(d=="sort"?d:"sort"+d,[c,this.ui(b)],this.options[d])},serialize:function(d){var b=a(this.options.items,this.element).not(".ui-sortable-helper");var c=[];d=d||{};b.each(function(){var e=(this.getAttribute(d.attribute||"id")||"").match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1])+"[]="+(d.key?e[1]:e[2]))}});return c.join("&")},toArray:function(b){var c=a(this.options.items,this.element).not(".ui-sortable-helper");var d=[];c.each(function(){d.push(this.getAttribute(b||"id"))});return d},intersectsWith:function(k){var e=this.positionAbs.left,d=e+this.helperProportions.width,i=this.positionAbs.top,h=i+this.helperProportions.height;var f=k.left,c=f+k.width,j=k.top,g=j+k.height;return(f<e+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&j<i+(this.helperProportions.height/2)&&h-(this.helperProportions.height/2)<g)},refresh:function(){this.items=[];var b=this.items;var c=[a(this.options.items,this.element)];if(this.options.connectWith){for(var d=this.options.connectWith.length-1;d>=0;d--){var e=a.data(a(this.options.connectWith[d])[0],"ui-sortable");if(e&&!e.disabled){c.push(a(e.options.items,e.element))}}}for(var d=c.length-1;d>=0;d--){c[d].each(function(){a.data(this,"ui-sortable-item",true);b.push({item:a(this),width:0,height:0,left:0,top:0})})}},refreshPositions:function(b){for(var c=this.items.length-1;c>=0;c--){if(!b){this.items[c].width=this.items[c].item.outerWidth()}if(!b){this.items[c].height=this.items[c].item.outerHeight()}var d=this.items[c].item.offset();this.items[c].left=d.left;this.items[c].top=d.top}},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("ui-sortable").unbind(".sortable").removeMouseInteraction();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("ui-sortable-item")}},enable:function(){this.element.removeClass("ui-sortable-disabled");this.disabled=false},disable:function(){this.element.addClass("ui-sortable-disabled");this.disabled=true},createPlaceholder:function(){this.placeholderElement=this.options.placeholderElement?a(this.options.placeholderElement,this.currentItem):this.currentItem;this.placeholder=a("<div></div>").addClass(this.options.placeholder).appendTo("body").css({position:"absolute"}).css(this.placeholderElement.offset()).css({width:this.placeholderElement.outerWidth(),height:this.placeholderElement.outerHeight()})},recallOffset:function(d){var c={left:this.elementOffset.left-this.offsetParentOffset.left,top:this.elementOffset.top-this.offsetParentOffset.top};var b=this.helper.css("position")=="relative";this.originalPosition={left:(b?parseInt(this.helper.css("left"),10)||0:c.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)),top:(b?parseInt(this.helper.css("top"),10)||0:c.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop))};this.offset={left:this._pageX-this.originalPosition.left+(parseInt(this.currentItem.css("marginLeft"),10)||0),top:this._pageY-this.originalPosition.top+(parseInt(this.currentItem.css("marginTop"),10)||0)}},start:function(d){var f=this.options;this.refresh();this.refreshPositions();this.helper=typeof f.helper=="function"?a(f.helper.apply(this.element[0],[d,this.currentItem])):this.currentItem.clone();this.helper.appendTo(this.currentItem[0].parentNode).css({position:"absolute",clear:"both"}).addClass("ui-sortable-helper");this.offsetParent=(function(e){while(e){if(e.style&&(/(absolute|relative|fixed)/).test(a.css(e,"position"))){return a(e)}e=e.parentNode?e.parentNode:null}return a("body")})(this.helper[0].parentNode);this.elementOffset=this.currentItem.offset();this.offsetParentOffset=this.offsetParent.offset();var c={left:this.elementOffset.left-this.offsetParentOffset.left,top:this.elementOffset.top-this.offsetParentOffset.top};this._pageX=d.pageX;this._pageY=d.pageY;this.clickOffset={left:d.pageX-this.elementOffset.left,top:d.pageY-this.elementOffset.top};var b=this.helper.css("position")=="relative";this.originalPosition={left:(b?parseInt(this.helper.css("left"),10)||0:c.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)),top:(b?parseInt(this.helper.css("top"),10)||0:c.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop))};this.offset={left:d.pageX-this.originalPosition.left+(parseInt(this.currentItem.css("marginLeft"),10)||0),top:d.pageY-this.originalPosition.top+(parseInt(this.currentItem.css("marginTop"),10)||0)};this.position={top:d.pageY-this.offset.top,left:d.pageX-this.offset.left};this.positionAbs={left:d.pageX-this.clickOffset.left,top:d.pageY-this.clickOffset.top};this.positionDOM=this.currentItem.prev()[0];if(f.placeholder){this.createPlaceholder()}this.propagate("start",d);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};a(this.currentItem).css("visibility","hidden");return false},stop:function(d){this.propagate("stop",d);if(this.positionDOM!=this.currentItem.prev()[0]){this.propagate("update",d)}if(!this.element[0].contains(this.currentItem[0])){this.propagate("remove",d);for(var b=this.options.connectWith.length-1;b>=0;b--){var c=a.data(a(this.options.connectWith[b])[0],"ui-sortable");if(c.element[0].contains(this.currentItem[0])){c.propagate("update",d,this);c.propagate("receive",d,this)}}}if(this.cancelHelperRemoval){return false}a(this.currentItem).css("visibility","");if(this.placeholder){this.placeholder.remove()}this.helper.remove();return false},drag:function(c){this.direction=(this.floating&&this.positionAbs.left>c.pageX-this.clickOffset.left)||(this.positionAbs.top>c.pageY-this.clickOffset.top)?"down":"up";this.position={top:c.pageY-this.offset.top,left:c.pageX-this.offset.left};this.positionAbs={left:c.pageX-this.clickOffset.left,top:c.pageY-this.clickOffset.top};for(var b=this.items.length-1;b>=0;b--){if(this.intersectsWith(this.items[b])&&this.items[b].item[0]!=this.currentItem[0]&&(this.options.tree?!this.currentItem[0].contains(this.items[b].item[0]):true)){this.items[b].item[this.direction=="down"?"before":"after"](this.currentItem);this.refreshPositions(true);if(this.placeholderElement){this.placeholder.css(this.placeholderElement.offset())}this.propagate("change",c);break}}this.propagate("sort",c);this.helper.css({left:this.position.left+"px",top:this.position.top+"px"});return false}})})(jQuery);(function(a){a.ui.plugin.add("sortable","cursor",{start:function(d,c){var b=a("body");if(b.css("cursor")){c.options._cursor=b.css("cursor")}b.css("cursor",c.options.cursor)},stop:function(c,b){if(b.options._cursor){a("body").css("cursor",b.options._cursor)}}});a.ui.plugin.add("sortable","zIndex",{start:function(d,c){var b=c.helper;if(b.css("zIndex")){c.options._zIndex=b.css("zIndex")}b.css("zIndex",c.options.zIndex)},stop:function(c,b){if(b.options._zIndex){a(b.helper).css("zIndex",b.options._zIndex)}}});a.ui.plugin.add("sortable","opacity",{start:function(d,c){var b=c.helper;if(b.css("opacity")){c.options._opacity=b.css("opacity")}b.css("opacity",c.options.opacity)},stop:function(c,b){if(b.options._opacity){a(b.helper).css("opacity",b.options._opacity)}}});a.ui.plugin.add("sortable","revert",{stop:function(d,c){var b=c.instance;b.cancelHelperRemoval=true;var f=b.currentItem.offset();if(c.instance.options.zIndex){c.helper.css("zIndex",c.instance.options.zIndex)}if(c.instance.placeholder){c.instance.placeholder.animate({opacity:"hide"},parseInt(c.options.revert,10)||500)}c.helper.animate({left:f.left-b.offsetParentOffset.left-(parseInt(b.currentItem.css("marginLeft"),10)||0),top:f.top-b.offsetParentOffset.top-(parseInt(b.currentItem.css("marginTop"),10)||0)},parseInt(c.options.revert,10)||500,function(){b.currentItem.css("visibility","visible");window.setTimeout(function(){if(b.placeholder){b.placeholder.remove()}b.helper.remove();if(c.options._zIndex){c.helper.css("zIndex",c.options._zIndex)}},50)})}});a.ui.plugin.add("sortable","containment",{start:function(d,b){var g=b.options;if((g.containment.left!=undefined||g.containment.constructor==Array)&&!g._containment){return}if(!g._containment){g._containment=g.containment}if(g._containment=="parent"){g._containment=this[0].parentNode}if(g._containment=="document"){g.containment=[0,0,a(document).width(),(a(document).height()||document.body.parentNode.scrollHeight)]}else{var c=a(g._containment)[0];var f=a(g._containment).offset();g.containment=[f.left,f.top,f.left+(c.offsetWidth||c.scrollWidth),f.top+(c.offsetHeight||c.scrollHeight)]}},sort:function(g,f){var i=f.options;var d=f.helper;var j=i.containment;var b=f.instance;if(j.constructor==Array){if((f.absolutePosition.left<j[0])){b.position.left=j[0]-(b.offset.left-b.clickOffset.left)}if((f.absolutePosition.top<j[1])){b.position.top=j[1]-(b.offset.top-b.clickOffset.top)}if(f.absolutePosition.left-j[2]+b.helperProportions.width>=0){b.position.left=j[2]-(b.offset.left-b.clickOffset.left)-b.helperProportions.width}if(f.absolutePosition.top-j[3]+b.helperProportions.height>=0){b.position.top=j[3]-(b.offset.top-b.clickOffset.top)-b.helperProportions.height}}else{if((f.position.left<j.left)){b.position.left=j.left}if((f.position.top<j.top)){b.position.top=j.top}if(f.position.left-b.offsetParent.innerWidth()+b.helperProportions.width+j.right+(parseInt(b.offsetParent.css("borderLeftWidth"),10)||0)+(parseInt(b.offsetParent.css("borderRightWidth"),10)||0)>=0){b.position.left=b.offsetParent.innerWidth()-b.helperProportions.width-j.right-(parseInt(b.offsetParent.css("borderLeftWidth"),10)||0)-(parseInt(b.offsetParent.css("borderRightWidth"),10)||0)}if(f.position.top-b.offsetParent.innerHeight()+b.helperProportions.height+j.bottom+(parseInt(b.offsetParent.css("borderTopWidth"),10)||0)+(parseInt(b.offsetParent.css("borderBottomWidth"),10)||0)>=0){b.position.top=b.offsetParent.innerHeight()-b.helperProportions.height-j.bottom-(parseInt(b.offsetParent.css("borderTopWidth"),10)||0)-(parseInt(b.offsetParent.css("borderBottomWidth"),10)||0)}}}});a.ui.plugin.add("sortable","axis",{sort:function(c,b){var d=b.options;if(d.constraint){d.axis=d.constraint}d.axis=="x"?b.instance.position.top=b.instance.originalPosition.top:b.instance.position.left=b.instance.originalPosition.left}});a.ui.plugin.add("sortable","scroll",{start:function(c,b){var d=b.options;d.scrollSensitivity=d.scrollSensitivity||20;d.scrollSpeed=d.scrollSpeed||20;b.instance.overflowY=function(e){do{if((/auto|scroll/).test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-y"))){return e}e=e.parent()}while(e[0].parentNode);return a(document)}(this);b.instance.overflowX=function(e){do{if((/auto|scroll/).test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-x"))){return e}e=e.parent()}while(e[0].parentNode);return a(document)}(this)},sort:function(d,c){var f=c.options;var b=c.instance;if(b.overflowY[0]!=document&&b.overflowY[0].tagName!="HTML"){if(b.overflowY[0].offsetHeight-(c.position.top-b.overflowY[0].scrollTop+b.clickOffset.top)<f.scrollSensitivity){b.overflowY[0].scrollTop=b.overflowY[0].scrollTop+f.scrollSpeed}if((c.position.top-b.overflowY[0].scrollTop+b.clickOffset.top)<f.scrollSensitivity){b.overflowY[0].scrollTop=b.overflowY[0].scrollTop-f.scrollSpeed}}else{if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}if(b.overflowX[0]!=document&&b.overflowX[0].tagName!="HTML"){if(b.overflowX[0].offsetWidth-(c.position.left-b.overflowX[0].scrollLeft+b.clickOffset.left)<f.scrollSensitivity){b.overflowX[0].scrollLeft=b.overflowX[0].scrollLeft+f.scrollSpeed}if((c.position.top-b.overflowX[0].scrollLeft+b.clickOffset.left)<f.scrollSensitivity){b.overflowX[0].scrollLeft=b.overflowX[0].scrollLeft-f.scrollSpeed}}else{if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}c.instance.recallOffset(d)}})})(jQuery);(function(a){a.fn.extend({slider:function(c){var b=Array.prototype.slice.call(arguments,1);if(c=="value"){return a.data(this[0],"ui-slider").value(arguments[1])}return this.each(function(){if(typeof c=="string"){var d=a.data(this,"ui-slider");d[c].apply(d,b)}else{if(!a.data(this,"ui-slider")){new a.ui.slider(this,c)}}})}});a.ui.slider=function(c,d){var b=this;this.element=a(c);a.data(c,"ui-slider",this);this.element.addClass("ui-slider");this.options=a.extend({},d);var e=this.options;a.extend(e,{axis:e.axis||(c.offsetWidth<c.offsetHeight?"vertical":"horizontal"),maxValue:!isNaN(parseInt(e.maxValue,10))?parseInt(e.maxValue,10):100,minValue:parseInt(e.minValue,10)||0,startValue:parseInt(e.startValue,10)||"none"});e.realMaxValue=e.maxValue-e.minValue;e.stepping=parseInt(e.stepping,10)||(e.steps?e.realMaxValue/e.steps:0);a(c).bind("setData.slider",function(g,f,h){b.options[f]=h}).bind("getData.slider",function(g,f){return b.options[f]});this.handle=e.handle?a(e.handle,c):a("> *",c);a(this.handle).mouseInteraction({executor:this,delay:e.delay,distance:e.distance||0,dragPrevention:e.prevention?e.prevention.toLowerCase().split(","):["input","textarea","button","select","option"],start:this.start,stop:this.stop,drag:this.drag,condition:function(g,f){if(!this.disabled){if(this.currentHandle){this.blur(this.currentHandle)}this.focus(f,1);return !this.disabled}}}).wrap('<a href="javascript:void(0)"></a>').parent().bind("focus",function(f){b.focus(this.firstChild)}).bind("blur",function(f){b.blur(this.firstChild)}).bind("keydown",function(f){if(/(37|39)/.test(f.keyCode)){b.moveTo((f.keyCode==37?"-":"+")+"="+(b.options.stepping?b.options.stepping:(b.options.realMaxValue/b.size)*5),this.firstChild)}});if(e.helper=="original"&&(this.element.css("position")=="static"||this.element.css("position")=="")){this.element.css("position","relative")}if(e.axis=="horizontal"){this.size=this.element.outerWidth();this.properties=["left","width"]}else{this.size=this.element.outerHeight();this.properties=["top","height"]}this.element.bind("click",function(f){b.click.apply(b,[f])});if(!isNaN(e.startValue)){this.moveTo(e.startValue,0)}if(this.handle.length==1){this.previousHandle=this.handle}if(this.handle.length==2&&e.range){this.createRange()}};a.extend(a.ui.slider.prototype,{plugins:{},createRange:function(){this.rangeElement=a("<div></div>").addClass("ui-slider-range").css({position:"absolute"}).css(this.properties[0],parseInt(a(this.handle[0]).css(this.properties[0]),10)+this.handleSize(0)/2).css(this.properties[1],parseInt(a(this.handle[1]).css(this.properties[0]),10)-parseInt(a(this.handle[0]).css(this.properties[0]),10)).appendTo(this.element)},updateRange:function(){this.rangeElement.css(this.properties[0],parseInt(a(this.handle[0]).css(this.properties[0]),10)+this.handleSize(0)/2);this.rangeElement.css(this.properties[1],parseInt(a(this.handle[1]).css(this.properties[0]),10)-parseInt(a(this.handle[0]).css(this.properties[0]),10))},getRange:function(){return this.rangeElement?this.convertValue(parseInt(this.rangeElement.css(this.properties[1]),10)):null},ui:function(b){return{instance:this,options:this.options,handle:this.currentHandle,value:this.value(),range:this.getRange()}},propagate:function(c,b){a.ui.plugin.call(this,c,[b,this.ui()]);this.element.triggerHandler(c=="slide"?c:"slide"+c,[b,this.ui()],this.options[c])},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("ul-slider").unbind(".slider");this.handles.removeMouseInteraction()},enable:function(){this.element.removeClass("ui-slider-disabled");this.disabled=false},disable:function(){this.element.addClass("ui-slider-disabled");this.disabled=true},focus:function(b,c){this.currentHandle=a(b).addClass("ui-slider-handle-active");if(c){this.currentHandle.parent()[0].focus()}},blur:function(b){a(b).removeClass("ui-slider-handle-active");if(this.currentHandle&&this.currentHandle[0]==b){this.previousHandle=this.currentHandle;this.currentHandle=null}},value:function(b){if(this.handle.length==1){this.currentHandle=this.handle}return((parseInt(a(b!=undefined?this.handle[b]||b:this.currentHandle).css(this.properties[0]),10)/(this.size-this.handleSize()))*this.options.realMaxValue)+this.options.minValue},convertValue:function(b){return(b/(this.size-this.handleSize()))*this.options.realMaxValue},translateValue:function(b){return((b-this.options.minValue)/this.options.realMaxValue)*(this.size-this.handleSize())},handleSize:function(b){return a(b!=undefined?this.handle[b]:this.currentHandle)["outer"+this.properties[1].substr(0,1).toUpperCase()+this.properties[1].substr(1)]()},click:function(c){var d=[c.pageX,c.pageY];var b=false;this.handle.each(function(){if(this==c.target){b=true}});if(b||this.disabled||!(this.currentHandle||this.previousHandle)){return}if(this.previousHandle){this.focus(this.previousHandle,1)}this.offset=this.element.offset();this.moveTo(this.convertValue(c[this.properties[0]=="top"?"pageY":"pageX"]-this.offset[this.properties[0]]-this.handleSize()/2))},start:function(c,b){var d=this.options;this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:c.pageY-this.handleOffset.top,left:c.pageX-this.handleOffset.left};this.firstValue=this.value();this.propagate("start",c);return false},stop:function(b){this.propagate("stop",b);if(this.firstValue!=this.value()){this.propagate("change",b)}return false},drag:function(g,c){var h=this.options;var b={top:g.pageY-this.offset.top-this.clickOffset.top,left:g.pageX-this.offset.left-this.clickOffset.left};var f=b[this.properties[0]];if(f>=this.size-this.handleSize()){f=this.size-this.handleSize()}if(f<=0){f=0}if(h.stepping){var d=this.convertValue(f);d=Math.round(d/h.stepping)*h.stepping;f=this.translateValue(d)}if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&f>=this.translateValue(this.value(1))){f=this.translateValue(this.value(1))}if(this.currentHandle[0]==this.handle[1]&&f<=this.translateValue(this.value(0))){f=this.translateValue(this.value(0))}}this.currentHandle.css(this.properties[0],f);if(this.rangeElement){this.updateRange()}this.propagate("slide",g);return false},moveTo:function(c,b){var d=this.options;if(b==undefined&&!this.currentHandle&&this.handle.length!=1){return false}if(b==undefined&&!this.currentHandle){b=0}if(b!=undefined){this.currentHandle=this.previousHandle=a(this.handle[b]||b)}if(c.constructor==String){c=/\-\=/.test(c)?this.value()-parseInt(c.replace("-=",""),10):this.value()+parseInt(c.replace("+=",""),10)}if(d.stepping){c=Math.round(c/d.stepping)*d.stepping}c=this.translateValue(c);if(c>=this.size-this.handleSize()){c=this.size-this.handleSize()}if(c<=0){c=0}if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&c>=this.translateValue(this.value(1))){c=this.translateValue(this.value(1))}if(this.currentHandle[0]==this.handle[1]&&c<=this.translateValue(this.value(0))){c=this.translateValue(this.value(0))}}this.currentHandle.css(this.properties[0],c);if(this.rangeElement){this.updateRange()}this.propagate("start",null);this.propagate("stop",null);this.propagate("change",null)}})})(jQuery);

(function(c){c.ec=c.ec||{};c.extend(c.ec,{save:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){c.data(f[0],"ec.storage."+g[e],f.css(g[e]))}}},restore:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){f.css(g[e],c.data(f[0],"ec.storage."+g[e]))}}},setMode:function(e,f){if(f=="toggle"){f=e.is(":hidden")?"show":"hide"}return f},getBaseline:function(g,f){var h,e;switch(g[0]){case"top":h=0;break;case"middle":h=0.5;break;case"bottom":h=1;break;default:h=g[0]/f.height}switch(g[1]){case"left":e=0;break;case"center":e=0.5;break;case"right":e=1;break;default:e=g[1]/f.width}return{x:e,y:h}},createWrapper:function(f){if(f.parent().attr("id")=="fxWrapper"){return f}var e={width:f.outerWidth({margin:true}),height:f.outerHeight({margin:true}),"float":f.css("float")};f.wrap('<div id="fxWrapper"></div>');var i=f.parent();if(f.css("position")=="static"){i.css({position:"relative"});f.css({position:"relative"})}else{var h=parseInt(f.css("top"),10);if(h.constructor!=Number){h="auto"}var g=parseInt(f.css("left"),10);if(g.constructor!=Number){g="auto"}i.css({position:f.css("position"),top:h,left:g,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}i.css(e);return i},removeWrapper:function(e){if(e.parent().attr("id")=="fxWrapper"){return e.parent().replaceWith(e)}return e},setTransition:function(f,g,e,h){h=h||{};c.each(g,function(k,j){unit=f.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*e+unit[1]}});return h},animateClass:function(g,j,i,h){var e=(typeof i=="function"?i:(h?h:null));var f=(typeof i=="object"?i:null);this.each(function(){var p={};var m=c(this);var o=m.attr("style")||"";if(typeof o=="object"){o=o.cssText}if(g.toggle){m.hasClass(g.toggle)?g.remove=g.toggle:g.add=g.toggle}var k=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.addClass(g.add)}if(g.remove){m.removeClass(g.remove)}var l=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.removeClass(g.add)}if(g.remove){m.addClass(g.remove)}for(var q in l){if(typeof l[q]!="function"&&l[q]&&q.indexOf("Moz")==-1&&q.indexOf("length")==-1&&l[q]!=k[q]&&(q.match(/color/i)||(!q.match(/color/i)&&!isNaN(parseInt(l[q],10))))&&(k.position!="static"||(k.position=="static"&&!q.match(/left|top|bottom|right/)))){p[q]=l[q]}}m.animate(p,j,f,function(){if(typeof c(this).attr("style")=="object"){c(this).attr("style")["cssText"]="";c(this).attr("style")["cssText"]=o}else{c(this).attr("style",o)}if(g.add){c(this).addClass(g.add)}if(g.remove){c(this).removeClass(g.remove)}if(e){e.apply(this,arguments)}})})}});c.fn.extend({_show:c.fn.show,_hide:c.fn.hide,_toggle:c.fn.toggle,_addClass:c.fn.addClass,_removeClass:c.fn.removeClass,_toggleClass:c.fn.toggleClass,effect:function(e,h,f,g){return c.ec[e]?c.ec[e].call(this,{method:e,options:h||{},duration:f,callback:g}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="show";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="hide";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._toggle.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="toggle";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},addClass:function(h,e,g,f){return e?c.ec.animateClass.apply(this,[{add:h},e,g,f]):this._addClass(h)},removeClass:function(h,e,g,f){return e?c.ec.animateClass.apply(this,[{remove:h},e,g,f]):this._removeClass(h)},toggleClass:function(h,e,g,f){return e?c.ec.animateClass.apply(this,[{toggle:h},e,g,f]):this._toggleClass(h)},morph:function(f,i,e,h,g){return c.ec.animateClass.apply(this,[{add:i,remove:f},e,h,g])},switchClass:function(){this.morph.apply(this,arguments)},cssUnit:function(e){var f=this.css(e),g=[];c.each(["em","px","%","pt"],function(h,j){if(f.indexOf(j)>0){g=[parseFloat(f),j]}});return g}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){jQuery.fx.step[e]=function(g){if(g.state==0){g.start=d(g.elem,e);g.end=a(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function a(e){var f;if(e&&e.constructor==Array&&e.length==3){return e}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e)){return[parseInt(f[1]),parseInt(f[2]),parseInt(f[3])]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(e)){return b.transparent}return b[jQuery.trim(e).toLowerCase()]}function d(g,e){var f;do{f=jQuery.curCSS(g,e);if(f!=""&&f!="transparent"||jQuery.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return a(f)}var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);(function(b){b.dimensions={version:"@VERSION"};b.each(["Height","Width"],function(d,c){b.fn["inner"+c]=function(){if(!this[0]){return}var f=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+c]:a(this,c.toLowerCase())+a(this,"padding"+f)+a(this,"padding"+e)};b.fn["outer"+c]=function(f){if(!this[0]){return}var h=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";f=b.extend({margin:false},f||{});var g=this.is(":visible")?this[0]["offset"+c]:a(this,c.toLowerCase())+a(this,"border"+h+"Width")+a(this,"border"+e+"Width")+a(this,"padding"+h)+a(this,"padding"+e);return g+(f.margin?(a(this,"margin"+h)+a(this,"margin"+e)):0)}});b.each(["Left","Top"],function(d,c){b.fn["scroll"+c]=function(e){if(!this[0]){return}return e!=undefined?this.each(function(){this==window||this==document?window.scrollTo(c=="Left"?e:b(window)["scrollLeft"](),c=="Top"?e:b(window)["scrollTop"]()):this["scroll"+c]=e}):this[0]==window||this[0]==document?self[(c=="Left"?"pageXOffset":"pageYOffset")]||b.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]}});b.fn.extend({position:function(){var h=0,g=0,f=this[0],i,c,e,d;if(f){e=this.offsetParent();i=this.offset();c=e.offset();i.top-=a(f,"marginTop");i.left-=a(f,"marginLeft");c.top+=a(e,"borderTopWidth");c.left+=a(e,"borderLeftWidth");d={top:i.top-c.top,left:i.left-c.left}}return d},offsetParent:function(){var c=this[0].offsetParent;while(c&&(!/^body|html$/i.test(c.tagName)&&b.css(c,"position")=="static")){c=c.offsetParent}return b(c)}});function a(c,d){return parseInt(b.curCSS(c.jquery?c[0]:c,d,true))||0}})(jQuery);(function(a){a.ec.blind=function(b){return this.queue(function(){var d=a(this),c=["position"];var g=a.ec.setMode(d,b.options.mode||"hide");var j=b.options.direction||"vertical";a.ec.save(d,c);d.show();var i=a.ec.createWrapper(d).css({overflow:"hidden"});var e=(j=="vertical")?"height":"width";var h=(j=="vertical")?i.height():i.width();if(g=="show"){i.css(e,0)}var f={};f[e]=g=="show"?h:0;i.animate(f,b.duration,b.options.easing,function(){if(g=="hide"){d.hide()}a.ec.restore(d,c);a.ec.removeWrapper(d);if(b.callback){b.callback.apply(this,arguments)}d.dequeue()})})}})(jQuery);(function(a){a.ec.bounce=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.ec.setMode(e,b.options.mode||"effect");var p=b.options.direction||"up";var d=b.options.distance||20;var c=b.options.times||5;var g=b.duration||250;if(/show|hide/.test(k)){l.push("opacity")}a.ec.save(e,l);e.show();a.ec.createWrapper(e);var f=(p=="up"||p=="down")?"top":"left";var n=(p=="up"||p=="left")?"pos":"neg";var d=b.options.distance||(f=="top"?e.outerHeight({margin:true})/3:e.outerWidth({margin:true})/3);if(k=="show"){e.css("opacity",0).css(f,n=="pos"?-d:d)}if(k=="hide"){d=d/(c*2)}if(k!="hide"){c--}if(k=="show"){var h={opacity:1};h[f]=(n=="pos"?"+=":"-=")+d;e.animate(h,g/2,b.options.easing);d=d/2;c--}for(var j=0;j<c;j++){var o={},m={};o[f]=(n=="pos"?"-=":"+=")+d;m[f]=(n=="pos"?"+=":"-=")+d;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing);d=(k=="hide")?d*2:d/2}if(k=="hide"){var h={opacity:0};h[f]=(n=="pos"?"-=":"+=")+d;e.animate(h,g/2,b.options.easing,function(){e.hide();a.ec.restore(e,l);a.ec.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}else{var o={},m={};o[f]=(n=="pos"?"-=":"+=")+d;m[f]=(n=="pos"?"+=":"-=")+d;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing,function(){a.ec.restore(e,l);a.ec.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);(function(a){a.ec.clip=function(b){return this.queue(function(){var d=a(this),c=["position","top","left","width","height"];var g=a.ec.setMode(d,b.options.mode||"hide");var i=b.options.direction||"vertical";a.ec.save(d,c);d.show();a.ec.createWrapper(d).css({overflow:"hidden"});var e={size:(i=="vertical")?"height":"width",position:(i=="vertical")?"top":"left"};var h=(i=="vertical")?d.height():d.width();if(g=="show"){d.css(e.size,0);d.css(e.position,h/2)}var f={};f[e.size]=g=="show"?h:0;f[e.position]=g=="show"?0:h/2;d.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(g=="hide"){d.hide()}a.ec.restore(d,c);a.ec.removeWrapper(d);if(b.callback){b.callback.apply(this,arguments)}d.dequeue()}})})}})(jQuery);(function(a){a.ec.drop=function(b){return this.queue(function(){var d=a(this),c=["position","top","left","opacity"];var h=a.ec.setMode(d,b.options.mode||"hide");var j=b.options.direction||"left";a.ec.save(d,c);d.show();a.ec.createWrapper(d);var f=(j=="up"||j=="down")?"top":"left";var e=(j=="up"||j=="left")?"pos":"neg";var i=b.options.distance||(f=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(h=="show"){d.css("opacity",0).css(f,e=="pos"?-i:i)}var g={opacity:h=="show"?1:0};g[f]=(h=="show"?(e=="pos"?"+=":"-="):(e=="pos"?"-=":"+="))+i;d.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){d.hide()}a.ec.restore(d,c);a.ec.removeWrapper(d);if(b.callback){b.callback.apply(this,arguments)}d.dequeue()}})})}})(jQuery);(function(a){a.ec.fade=function(b){return this.queue(function(){var e=a(this),d=["opacity"];var g=a.ec.setMode(e,b.options.mode||"effect");if(g=="toggle"){g=e.is(":hidden")?"show":"hide"}var c=b.options.opacity||0;a.ec.save(e,d);e.show();if(g=="show"){e.css({opacity:0})}var f={opacity:g=="show"?1:c};e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(g=="hide"){e.hide()}if(g=="hide"){a.ec.restore(e,d)}if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);(function(a){a.ec.fold=function(b){return this.queue(function(){var e=a(this),h=["position"];var g=a.ec.setMode(e,b.options.mode||"hide");var k=b.options.size||15;a.ec.save(e,h);e.show();var d=a.ec.createWrapper(e).css({overflow:"hidden"});var f=(g=="show")?["width","height"]:["height","width"];var c=(g=="show")?[d.width(),d.height()]:[d.height(),d.width()];if(g=="show"){d.css({height:k,width:0})}var j={},i={};j[f[0]]=g=="show"?c[0]:k;i[f[1]]=g=="show"?c[1]:0;d.animate(j,b.duration/2,b.options.easing).animate(i,b.duration/2,b.options.easing,function(){if(g=="hide"){e.hide()}a.ec.restore(e,h);a.ec.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()})})}})(jQuery);(function(a){a.ec.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"];var g=a.ec.setMode(e,b.options.mode||"show");var c=b.options.color||"#ffff99";a.ec.save(e,d);e.show();e.css({backgroundImage:"none",backgroundColor:c});var f={backgroundColor:a.data(this,"ec.storage.backgroundColor")};if(g=="hide"){f.opacity=0}e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(g=="hide"){e.hide()}a.ec.restore(e,d);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);(function(a){a.ec.pulsate=function(b){return this.queue(function(){var d=a(this);var f=a.ec.setMode(d,b.options.mode||"show");var e=b.options.times||5;if(f!="hide"){e--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},b.duration/2,b.options.easing);e--}for(var c=0;c<e;c++){d.animate({opacity:0},b.duration/2,b.options.easing).animate({opacity:1},b.duration/2,b.options.easing)}if(f=="hide"){d.animate({opacity:0},b.duration/2,b.options.easing,function(){d.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{d.animate({opacity:0},b.duration/2,b.options.easing).animate({opacity:1},b.duration/2,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);(function(a){a.ec.puff=function(b){return this.queue(function(){var f=a(this);var g=a.ec.setMode(f,b.options.mode||"hide");var c=parseInt(b.options.percent)||150;b.options.fade=true;var e={height:f.height(),width:f.width()};var d=c/100;f.from=(g=="hide")?e:{height:e.height*d,width:e.width*d};b.options.from=f.from;b.options.percent=(g=="hide")?c:100;b.options.mode=g;f.effect("scale",b.options,b.duration,b.callback);f.dequeue()})};a.ec.scale=function(b){return this.queue(function(){var h=a(this);var i=a.ec.setMode(h,b.options.mode||"effect");var d=parseInt(b.options.percent)||(parseInt(b.options.percent)==0?0:(i=="hide"?0:100));var j=b.options.direction||"both";var g=b.options.origin;if(i!="effect"){g=g||["middle","center"];b.options.restore=true}var f={height:h.height(),width:h.width()};h.from=b.options.from||(i=="show"?{height:0,width:0}:f);var e={y:j!="horizontal"?(d/100):1,x:j!="vertical"?(d/100):1};h.to={height:f.height*e.y,width:f.width*e.x};if(g){var c=a.ec.getBaseline(g,f);h.from.top=(f.height-h.from.height)*c.y;h.from.left=(f.width-h.from.width)*c.x;h.to.top=(f.height-h.to.height)*c.y;h.to.left=(f.width-h.to.width)*c.x}if(b.options.fade){if(i=="show"){h.from.opacity=0;h.to.opacity=1}if(i=="hide"){h.from.opacity=1;h.to.opacity=0}}b.options.from=h.from;b.options.to=h.to;h.effect("size",b.options,b.duration,b.callback);h.dequeue()})};a.ec.size=function(b){return this.queue(function(){var g=a(this),m=["position","top","left","width","height","overflow","opacity"];var d=["position","overflow","opacity"];var f=["width","height","overflow"];var n=["fontSize"];var e=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var j=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var k=a.ec.setMode(g,b.options.mode||"effect");var l=b.options.restore||false;var i=b.options.scale||"both";var h={height:g.height(),width:g.width()};g.from=b.options.from||h;g.to=b.options.to||h;var c={from:{y:g.from.height/h.height,x:g.from.width/h.width},to:{y:g.to.height/h.height,x:g.to.width/h.width}};if(i=="box"||i=="both"){if(c.from.y!=c.to.y){m=m.concat(e);g.from=a.ec.setTransition(g,e,c.from.y,g.from);g.to=a.ec.setTransition(g,e,c.to.y,g.to)}if(c.from.x!=c.to.x){m=m.concat(j);g.from=a.ec.setTransition(g,j,c.from.x,g.from);g.to=a.ec.setTransition(g,j,c.to.x,g.to)}}if(i=="content"||i=="both"){if(c.from.y!=c.to.y){m=m.concat(n);g.from=a.ec.setTransition(g,n,c.from.y,g.from);g.to=a.ec.setTransition(g,n,c.to.y,g.to)}}a.ec.save(g,l?m:d);g.show();a.ec.createWrapper(g);g.css("overflow","hidden").css(g.from);if(i=="content"||i=="both"){e=e.concat(["marginTop","marginBottom"]).concat(n);j=j.concat(["marginLeft","marginRight"]);f=m.concat(e).concat(j);g.find("*[width]").each(function(){child=a(this);if(l){a.ec.save(child,f)}var o={height:child.height(),width:child.width()};child.from={height:o.height*c.from.y,width:o.width*c.from.x};child.to={height:o.height*c.to.y,width:o.width*c.to.x};if(c.from.y!=c.to.y){child.from=a.ec.setTransition(child,e,c.from.y,child.from);child.to=a.ec.setTransition(child,e,c.to.y,child.to)}if(c.from.x!=c.to.x){child.from=a.ec.setTransition(child,j,c.from.x,child.from);child.to=a.ec.setTransition(child,j,c.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){if(l){a.ec.restore(child,f)}})})}g.animate(g.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(k=="hide"){g.hide()}a.ec.restore(g,l?m:d);a.ec.removeWrapper(g);if(b.callback){b.callback.apply(this,arguments)}g.dequeue()}})})}})(jQuery);(function(a){a.ec.shake=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.ec.setMode(e,b.options.mode||"effect");var p=b.options.direction||"left";var d=b.options.distance||20;var c=b.options.times||3;var g=b.duration||b.options.duration||140;a.ec.save(e,l);e.show();a.ec.createWrapper(e);var f=(p=="up"||p=="down")?"top":"left";var n=(p=="up"||p=="left")?"pos":"neg";var h={},o={},m={};h[f]=(n=="pos"?"-=":"+=")+d;o[f]=(n=="pos"?"+=":"-=")+d*2;m[f]=(n=="pos"?"-=":"+=")+d*2;e.animate(h,g,b.options.easing);for(var j=1;j<c;j++){e.animate(o,g,b.options.easing).animate(m,g,b.options.easing)}e.animate(o,g,b.options.easing).animate(h,g/2,b.options.easing,function(){a.ec.restore(e,l);a.ec.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);(function(a){a.ec.slide=function(b){return this.queue(function(){var d=a(this),c=["position","top","left"];var h=a.ec.setMode(d,b.options.mode||"show");var j=b.options.direction||"left";a.ec.save(d,c);d.show();a.ec.createWrapper(d).css({overflow:"hidden"});var f=(j=="up"||j=="down")?"top":"left";var e=(j=="up"||j=="left")?"pos":"neg";var i=b.options.distance||(f=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(h=="show"){d.css(f,e=="pos"?-i:i)}var g={};g[f]=(h=="show"?(e=="pos"?"+=":"-="):(e=="pos"?"-=":"+="))+i;d.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){d.hide()}a.ec.restore(d,c);a.ec.removeWrapper(d);if(b.callback){b.callback.apply(this,arguments)}d.dequeue()}})})}})(jQuery);(function(a){a.ec.transfer=function(b){return this.queue(function(){var e=a(this);var f=a.ec.setMode(e,b.options.mode||"effect");var g=a(document.getElementById(b.options.to));var c=e.position();a("body",document).append('<div id="fxTransfer"></div>');var d=a("#fxTransfer");d.addClass(b.options.className);d.css({top:c.top,left:c.left,height:e.outerHeight({margin:true})-parseInt(d.css("borderTopWidth"))-parseInt(d.css("borderBottomWidth")),width:e.outerWidth({margin:true})-parseInt(d.css("borderLeftWidth"))-parseInt(d.css("borderRightWidth")),position:"absolute"});c=g.position();animation={top:c.top,left:c.left,height:g.outerHeight()-parseInt(d.css("borderTopWidth"))-parseInt(d.css("borderBottomWidth")),width:g.outerWidth()-parseInt(d.css("borderLeftWidth"))-parseInt(d.css("borderRightWidth"))};d.animate(animation,b.duration,b.options.easing,function(){d.remove();if(b.callback){b.callback.apply(this,arguments)}e.dequeue()})})}})(jQuery);

(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+DECIMAL+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+DECIMAL+"0+$)/";return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[B#$b,?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);

(function(a){a.extend({fieldEvent:function(b,f){var d=b[0]||b,c="change";if(d.type=="radio"||d.type=="checkbox"){c="click"}else{if(f&&d.type=="text"||d.type=="textarea"){c="keyup"}}return c}});a.fn.extend({delayedObserver:function(b,e){var c=a(this);if(typeof window.delayedObserverStack=="undefined"){window.delayedObserverStack=[]}if(typeof window.delayedObserverCallback=="undefined"){window.delayedObserverCallback=function(f){observed=window.delayedObserverStack[f];if(observed.timer){clearTimeout(observed.timer)}observed.timer=setTimeout(function(){observed.timer=null;observed.callback(observed.obj,observed.obj.formVal())},observed.delay*1000);observed.oldVal=observed.obj.formVal()}}window.delayedObserverStack.push({obj:c,timer:null,delay:b,oldVal:c.formVal(),callback:e});var d=window.delayedObserverStack.length-1;if(c[0].tagName=="FORM"){a(":input",c).each(function(){var f=a(this);f.bind(a.fieldEvent(f,b),function(){observed=window.delayedObserverStack[d];if(observed.obj.formVal()==observed.obj.oldVal){return}else{window.delayedObserverCallback(d)}})})}else{c.bind(a.fieldEvent(c,b),function(){observed=window.delayedObserverStack[d];if(observed.obj.formVal()==observed.obj.oldVal){return}else{window.delayedObserverCallback(d)}})}},formVal:function(){var b=this[0];if(b.tagName=="FORM"){return this.serialize()}if(b.type=="checkbox"||self.type=="radio"){return this.filter("input:checked").val()||""}else{return this.val()}}})})(jQuery);(function(a){a.fn.extend({visualEffect:function(b){return this.effect(b)},Appear:function(b,c){return this.fadeIn(b,c)},BlindDown:function(b,c){this.show("blind",{direction:"vertical"},b,c);return this},BlindUp:function(b,c){this.hide("blind",{direction:"vertical"},b,c);return this},BlindRight:function(b,c){this.show("blind",{direction:"horizontal"},b,c);return this},BlindLeft:function(b,c){this.hide("blind",{direction:"horizontal"},b,c);return this},DropOut:function(b,c){this.hide("drop",{direction:"down"},b,c);return this},DropIn:function(b,c){this.show("drop",{direction:"up"},b,c);return this},Fade:function(b,c){return this.fadeOut(b,c)},Fold:function(b,c){this.hide("fold",{},b,c);return this},FoldOut:function(b,c){this.show("fold",{},b,c);return this},Grow:function(b,c){this.show("scale",{},b,c);return this},Highlight:function(b,c){this.show("highlight",{},b,c);return this},Puff:function(b,c){this.hide("puff",{},b,c);return this},Pulsate:function(b,c){this.show("pulsate",{},b,c);return this},Shake:function(b,c){this.show("shake",{},b,c);return this},Shrink:function(b,c){this.hide("scale",{},b,c);return this},Squish:function(b,c){this.hide("scale",{origin:["top","left"]},b,c);return this},SlideUp:function(b,c){this.hide("slide",{direction:"up"},b,c);return this},SlideDown:function(b,c){this.show("slide",{direction:"up"},b,c);return this},SwitchOff:function(b,c){this.hide("clip",{},b,c);return this},SwitchOn:function(b,c){this.show("clip",{},b,c);return this}})})(jQuery);(function(a){a.fn.extend({pause:function(c,b){c=c||1000;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){a(d).dequeue()},c)})},clearQueue:function(b){return this.each(function(){b=b||"fx";if(this.queue&&this.queue[b]){this.queue[b].length=0}})},unpause:a.fn.clearQueue})})(jQuery);

var scoreKeeper={newMatch:{toggle:function(){var a=$("#add_match_form");a.toggle();if(a.css("display")=="block"){scoreKeeper.matchUpdate.interval=10;$.get("/games/"+scoreKeeper.matchUpdate.gameId()+"/game_added_warning",{},function(c,b){if(b=="success"){$("#add_match_form .game_added_warning").html(c);$("#add_match_form .game_added_warning").show()}})}else{scoreKeeper.matchUpdate.interval=60;$("#add_match_form .game_added_warning").html("");$("#add_match_form .game_added_warning").hide()}}},matchUpdate:{interval:60,init:function(){if(scoreKeeper.matchUpdate.isShowingDashboard()){scoreKeeper.matchUpdate.schedule()}},schedule:function(){setTimeout(scoreKeeper.matchUpdate.run,scoreKeeper.matchUpdate.interval*1000)},run:function(){$.get("/",{game_id:scoreKeeper.matchUpdate.gameId(),last_update:scoreKeeper.matchUpdate.lastUpdate()},function(b,a){if(jQuery.trim(b)!=""){$("#main").html(b);scoreKeeper.tableSort()}scoreKeeper.matchUpdate.schedule()})},isShowingDashboard:function(){return $("#logs").length>0},lastUpdate:function(){return $("#dashboard_data .last_update").html()},gameId:function(){return $("#dashboard_data .game_id").html()}},tableSort:function(){$("#rankings").tablesorter({sortList:[[1,0]],widgets:["zebra"],headers:{0:{sorter:false},2:{sorter:false},3:{sorter:false}}});$("#newbies").tablesorter({sortList:[[1,0]],widgets:["zebra"],headers:{0:{sorter:false},2:{sorter:false}}});$("#teams").tablesorter({sortList:[[1,1]],widgets:["zebra"],headers:{0:{sorter:false},5:{sorter:false}}});$("#teammates").tablesorter({sortList:[[6,1]],widgets:["zebra"],headers:{0:{sorter:false},1:{sorter:false},2:{sorter:false}}})}};$(document).ready(function(){$("body.login #login").focus();scoreKeeper.tableSort();scoreKeeper.matchUpdate.init();if($("#messages").length>0){setTimeout(function(){$("#messages").fadeOut("slow")},8000)}});