/* entityCache v1.1 by Axel Jack Fuchs (Cologne, Germany) - Date of creation was:02.01.2010 22:39:34  */
var addthis_pub="jackfox";var addthis_brand="gl.am";var _atu="undefined",_atd="http://www.addthis.com/",_atr="http://s7.addthis.com/",_euc=encodeURIComponent,_atc={ver:152,enote:"",cwait:500,samp:0.02,addr:-1};if(typeof(addthis_conf)===_atu){var addthis_conf={}}for(i in addthis_conf){_atc[i]=addthis_conf[i]}if(typeof(_ate)===_atu){(function(){var g=navigator.userAgent.toLowerCase(),q=document,y=window,m=y.addEventListener,h=y.attachEvent,t={saf:/webkit/.test(g),opr:/opera/.test(g),msi:(/msie/.test(g))&&(!/opera/.test(g)),ie6:/msie 6.0/.test(g)},o={isBound:false,isReady:false,readyList:[],onReady:function(){if(!o.isReady){o.isReady=true;var a=o.readyList;for(var b=0;b<a.length;b++){a[b].call(window,[])}o.readyList=[]}},addLoad:function(b){var a=y.onload;if(typeof y.onload!="function"){y.onload=b}else{y.onload=function(){if(a){a()}b()}}},bindReady:function(){if(f.isBound){return}f.isBound=true;if(q.addEventListener&&!t.opr){q.addEventListener("DOMContentLoaded",f.onReady,false)}if(t.msi&&window==top){(function(){if(f.isReady){return}try{q.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}f.onReady()})()}if(t.opr){q.addEventListener("DOMContentLoaded",function(){if(f.isReady){return}for(var b=0;b<q.styleSheets.length;b++){if(q.styleSheets[b].disabled){setTimeout(arguments.callee,0);return}}f.onReady()},false)}if(t.saf){var a;(function(){if(f.isReady){return}if(q.readyState!="loaded"&&q.readyState!="complete"){setTimeout(arguments.callee,0);return}if(a===undefined){var d=q.getElementsByTagName("link");for(var b=0;b<d.length;b++){if(d[b].getAttribute("rel")=="stylesheet"){a++}}var c=q.getElementsByTagName("style");a+=c.length}if(q.styleSheets.length!=a){setTimeout(arguments.callee,0);return}f.onReady()})()}f.addLoad(f.onReady)},append:function(a,b){f.bindReady();if(f.isReady){a.call(window,[])}else{f.readyList.push(function(){return a.call(window,[])})}}},f=o,k={rev:"$Rev: 51773 $",ab:"-",bro:t,clck:1,show:1,samp:_atc.samp-Math.random(),scnt:1,seq:1,inst:1,wait:500,tmo:null,cvt:[],svt:[],sttm:new Date().getTime(),max:268435455,pix:"tev",sid:0,sub:typeof(at_sub)!==_atu,uid:null,swf:"http://bin.clearspring.com/at/v/1/button1.swf",evu:"http://e1.clearspring.com/at/",off:function(){return Math.floor((new Date().getTime()-k.sttm)/100).toString(16)},ran:function(){return Math.floor(Math.random()*4294967295).toString(36)},cst:function(a){return"CXNID=2000001.521545608054043907"+(a||2)+"NXC"},img:function(a,b){if(typeof(at_sub)===_atu){new Image().src=_atr+"live/t00/"+a+".gif?"+k.ran()+"&"+k.cst(b)}},cuid:function(){return(k.sttm&k.max).toString(16)+(Math.floor(Math.random()*k.max)).toString(16)},ssid:function(){if(k.sid===0){k.sid=k.cuid()}return k.sid},sev:function(b,a){k.pix="sev-"+(typeof(b)!=="number"?_euc(b):b);k.svt.push(b+";"+k.off());if(a===1){k.xmi(true)}else{k.sxm(true)}},cev:function(b,a){k.pix="cev-"+_euc(b);k.cvt.push(_euc(b)+"="+_euc(a)+";"+k.off());k.sxm(true)},sxm:function(a){if(k.tmo!==null){clearTimeout(k.tmo)}if(a){k.tmo=k.sto("_ate.xmi(false)",k.wait)}},sto:function(b,a){return setTimeout(b,a)},sta:function(){var b=k;return"AT-"+(typeof(addthis_pub)!==_atu?_euc(addthis_pub):"unknown")+"/-/"+b.ab+"/"+b.ssid()+"/"+(b.seq++)+(b.uid!==null?"/"+b.uid:"")},xmi:function(c){var b=k;if(!b.uid){b.dck("X"+b.cuid())}if(b.cvt.length+b.svt.length>0){b.sxm(false);if(b.seq===1){b.cev("pin",b.inst)}var l=b.evu+b.pix+"-"+b.ran()+".png?ev="+k.sta()+"&se="+b.svt.join(",")+"&ce="+b.cvt.join(",");b.cvt=[];b.svt=[];if(_atc.xtr){return}if(c){var A=document,w=A.ce("iframe");w.id="_atf";w.src=l;k.opp(w.style);A.body.appendChild(w);w=A.getElementById("_atf")}else{new Image().src=l}}},opp:function(a){a.width="1px";a.height="1px";a.position="absolute";a.zIndex=100000},pub:function(){return typeof(addthis_pub)!==_atu?_euc(addthis_pub):""},lad:function(a){k.plo.push(a)},plo:[],jlo:function(){try{if(!k.pld){var c=document,b=c.ce("script");b.src=_atr+"static/r04/menu06.js";c.gn("head")[0].appendChild(b);k.pld=b}}catch(a){}},lod:function(D){try{var B=k,d=D===1,c=q.referer||q.referrer;if(!d){if(B.samp>=0&&!B.sub){B.sev("20");B.cev("plo",1/_atc.samp);if(c){B.cev("pre",c)}}B.img(_atc.ver+"lo","2")}if(B.plo.length>0){B.jlo()}if(k.samp>=0){try{var w=q.gn("a");if(w){for(var A in w){A=w[A];if(A.toString().indexOf("/bookmark.php")>0&&!A.onmouseover){A.onmouseover=function(){return addthis_open(this,"","","")};A.onmouseout=function(){addthis_close()}}}}}catch(l){}}if(!_atc.xfl&&(d||B.uid===null)&&B.swf){var C=function(E,G,a){var F=q.createElement("param");F.name=G;F.value=a;E.appendChild(F)};var b=q.createElement("object");B.opp(b.style);b.id="atff";if(t.msi){b.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";C(b,"movie",B.swf)}else{b.data=B.swf;b.quality="high";b.type="application/x-shockwave-flash"}C(b,"wmode","transparent");C(b,"allowScriptAccess","always");q.body.insertBefore(b,q.body.firstChild);if(t.msi){b.outerHTML+=" "}}}catch(l){}},unl:function(){var b=k;if(b.samp>=0&&!b.sub){b.sev("21",1);b.cev("pun",1/_atc.samp)}return true},dck:function(d){k.uid=d;var b=k.pub(),a="dodpubweb,usagov,education,gobiernousa,loc_webservices,massgov,govgab1".split(",");for(n in a){if(b==a[n]){return}}if(!_atc.xck){document.cookie="_csuid="+d+"; expires=Wed, 04 Oct 2028 03:19:53 GMT; path=/"}},fcl:null,asetup:function(b){var c=k;try{if(b!==null&&b!==_atu){c.dck(b)}if(c.fcl){c.fcl()}}catch(d){}return b},ao:function(a,d,c,b){k.lad(["open",a,d,c,b]);k.jlo();return false},ac:function(){},as:function(a){k.lad(["send",a]);k.jlo()}},v=k;y._ate=v;y._adr=f;q.ce=q.createElement;q.gn=q.getElementsByTagName;f.bindReady();if(m){m("unload",v.unl,false)}else{if(h){h("onunload",v.unl)}else{y.onunload=v.unl}}f.append(v.lod);if(q.cookie){var z=q.cookie.split(";");for(var n=0;n<z.length;n++){var s=z[n],u=s.indexOf("_csuid=");if(u>=0){k.uid=s.substring(u+7)}}}try{var j=q.ce("link");j.rel="stylesheet";j.type="text/css";j.href=_atr+"static/r04/widget02.css";j.media="all";q.gn("head")[0].appendChild(j)}catch(p){}})();function addthis_to(a){return addthis_sendto(a)}function addthis_onmouseover(b,f,c,a,h,g,d){if(h){addthis_pub=h}if(g){addthis_language=g}addthis_content=d||"";return addthis_open(b,"share",c,a)}function addthis_onmouseout(){addthis_close()}function addthis_open(a,c,d,b){return _ate.ao(a,c,d,b)}function addthis_close(){_ate.ac()}function addthis_sendto(a){_ate.as(a);return false}}else{_ate.inst++}try{if(_atc.ver===120){function x(v,n){return eval("("+v+"=(typeof "+v+" === '"+_atu+"' ? '"+(n||"")+"' : "+v+"))")}var r="atb"+_ate.cuid();document.write('<span id="'+r+'"></span>');_ate.lad(["span",r,x("addthis_url",""),x("addthis_title","")])}if(window.addthis_clickout){_ate.lad(["cout"])}}catch(e){}function removeClientMessage(){if(!$("#cM")){return false}$("#cM").animate({height:0,opacity:0},{queue:true,duration:750});cM_active=false}var cM_active=false;function cM(g,d,c,b){if(cM_active){return}cM_active=true;if(typeof(g)=="object"){if(g.expire){d=g.expire}if(g.closable){c=g.closable}if(g.type){b=g.type}g=unescape(g.msg)}var a="cM";var f="#ccddff";var h="#6C92DF";switch(b){case"warning":a="cW";f="#ffeeee";h="#ffcccc";break;case"info":a="cI";f="#F4F4F4";h="#C9C9C9";break}var j='<div id="cM"><div id="cMi" class="'+a+'">'+g+'<a id="cMclose" class="dn" href="#">[x]</a></div></div>';$("#content_inner").prepend(j);$("#cMi").animate({backgroundColor:h},200).animate({backgroundColor:f},200).animate({backgroundColor:h},200).animate({backgroundColor:f},200).animate({backgroundColor:h},200).animate({backgroundColor:f},200).animate({backgroundColor:h},200);if(c){$("#cMclose").click(function(){removeClientMessage();return false});$("#cMclose").removeClass("dn")}if(d&&parseInt(d)==d&&d>0){window.setTimeout(removeClientMessage,(d*1000))}}function isValidEmail(b){var a=false;if(typeof(RegExp)=="function"){reg=new RegExp("^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\.]+)(\\.)([a-zA-Z]{2,4})$");a=(reg.test(b))}else{a=(b.search("@")>=1&&b.lastIndexOf(".")>b.search("@")&&b.lastIndexOf(".")>=b.length-5)}return a}(function(){var h=this,l,D=h.jQuery,s=h.$,b=h.jQuery=h.$=function(I,J){return new b.fn.init(I,J)},H=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,m=/^.[^:#\[\.,]*$/;b.fn=b.prototype={init:function(I,L){I=I||document;if(I.nodeType){this[0]=I;this.length=1;this.context=I;return this}if(typeof I==="string"){var K=H.exec(I);if(K&&(K[1]||!L)){if(K[1]){I=b.clean([K[1]],L)}else{var M=document.getElementById(K[3]);if(M&&M.id!=K[3]){return b().find(I)}var J=b(M||[]);J.context=document;J.selector=I;return J}}else{return b(L).find(I)}}else{if(b.isFunction(I)){return b(document).ready(I)}}if(I.selector&&I.context){this.selector=I.selector;this.context=I.context}return this.setArray(b.isArray(I)?I:b.makeArray(I))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(I){return I===l?Array.prototype.slice.call(this):this[I]},pushStack:function(J,L,I){var K=b(J);K.prevObject=this;K.context=this.context;if(L==="find"){K.selector=this.selector+(this.selector?" ":"")+I}else{if(L){K.selector=this.selector+"."+L+"("+I+")"}}return K},setArray:function(I){this.length=0;Array.prototype.push.apply(this,I);return this},each:function(J,I){return b.each(this,J,I)},index:function(I){return b.inArray(I&&I.jquery?I[0]:I,this)},attr:function(I,L,K){var J=I;if(typeof I==="string"){if(L===l){return this[0]&&b[K||"attr"](this[0],I)}else{J={};J[I]=L}}return this.each(function(M){for(I in J){b.attr(K?this.style:this,I,b.prop(this,J[I],K,M,I))}})},css:function(I,J){if((I=="width"||I=="height")&&parseFloat(J)<0){J=l}return this.attr(I,J,"curCSS")},text:function(J){if(typeof J!=="object"&&J!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(J))}var I="";b.each(J||this,function(){b.each(this.childNodes,function(){if(this.nodeType!=8){I+=this.nodeType!=1?this.nodeValue:b.fn.text([this])}})});return I},wrapAll:function(I){if(this[0]){var J=b(I,this[0].ownerDocument).clone();if(this[0].parentNode){J.insertBefore(this[0])}J.map(function(){var K=this;while(K.firstChild){K=K.firstChild}return K}).append(this)}return this},wrapInner:function(I){return this.each(function(){b(this).contents().wrapAll(I)})},wrap:function(I){return this.each(function(){b(this).wrapAll(I)})},append:function(){return this.domManip(arguments,true,function(I){if(this.nodeType==1){this.appendChild(I)}})},prepend:function(){return this.domManip(arguments,true,function(I){if(this.nodeType==1){this.insertBefore(I,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(I){this.parentNode.insertBefore(I,this)})},after:function(){return this.domManip(arguments,false,function(I){this.parentNode.insertBefore(I,this.nextSibling)})},end:function(){return this.prevObject||b([])},push:[].push,sort:[].sort,splice:[].splice,find:function(I){if(this.length===1){var J=this.pushStack([],"find",I);J.length=0;b.find(I,this[0],J);return J}else{return this.pushStack(b.unique(b.map(this,function(K){return b.find(I,K)})),"find",I)}},clone:function(J){var I=this.map(function(){if(!b.support.noCloneEvent&&!b.isXMLDoc(this)){var M=this.outerHTML;if(!M){var N=this.ownerDocument.createElement("div");N.appendChild(this.cloneNode(true));M=N.innerHTML}return b.clean([M.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(J===true){var L=this.find("*").andSelf(),K=0;I.find("*").andSelf().each(function(){if(this.nodeName!==L[K].nodeName){return}var M=b.data(L[K],"events");for(var O in M){for(var N in M[O]){b.event.add(this,O,M[O][N],M[O][N].data)}}K++})}return I},filter:function(I){return this.pushStack(b.isFunction(I)&&b.grep(this,function(K,J){return I.call(K,J)})||b.multiFilter(I,b.grep(this,function(J){return J.nodeType===1})),"filter",I)},closest:function(I){var K=b.expr.match.POS.test(I)?b(I):null,J=0;return this.map(function(){var L=this;while(L&&L.ownerDocument){if(K?K.index(L)>-1:b(L).is(I)){b.data(L,"closest",J);return L}L=L.parentNode;J++}})},not:function(I){if(typeof I==="string"){if(m.test(I)){return this.pushStack(b.multiFilter(I,this,true),"not",I)}else{I=b.multiFilter(I,this)}}var J=I.length&&I[I.length-1]!==l&&!I.nodeType;return this.filter(function(){return J?b.inArray(this,I)<0:this!=I})},add:function(I){return this.pushStack(b.unique(b.merge(this.get(),typeof I==="string"?b(I):b.makeArray(I))))},is:function(I){return !!I&&b.multiFilter(I,this).length>0},hasClass:function(I){return !!I&&this.is("."+I)},val:function(P){if(P===l){var J=this[0];if(J){if(b.nodeName(J,"option")){return(J.attributes.value||{}).specified?J.value:J.text}if(b.nodeName(J,"select")){var M=J.selectedIndex,Q=[],O=J.options,L=J.type=="select-one";if(M<0){return null}for(var K=L?M:0,N=L?M+1:O.length;K<N;K++){var I=O[K];if(I.selected){P=b(I).val();if(L){return P}Q.push(P)}}return Q}return(J.value||"").replace(/\r/g,"")}return l}if(typeof P==="number"){P+=""}return this.each(function(){if(this.nodeType!=1){return}if(b.isArray(P)&&/radio|checkbox/.test(this.type)){this.checked=(b.inArray(this.value,P)>=0||b.inArray(this.name,P)>=0)}else{if(b.nodeName(this,"select")){var R=b.makeArray(P);b("option",this).each(function(){this.selected=(b.inArray(this.value,R)>=0||b.inArray(this.text,R)>=0)});if(!R.length){this.selectedIndex=-1}}else{this.value=P}}})},html:function(I){return I===l?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(I)},replaceWith:function(I){return this.after(I).remove()},eq:function(I){return this.slice(I,+I+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(I){return this.pushStack(b.map(this,function(K,J){return I.call(K,J,K)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(N,Q,P){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),K=b.clean(N,(this[0].ownerDocument||this[0]),I),M=I.firstChild;if(M){for(var L=0,J=this.length;L<J;L++){P.call(O(this[L],M),this.length>1||L>0?I.cloneNode(true):I)}}if(K){b.each(K,u)}}return this;function O(R,S){return Q&&b.nodeName(R,"table")&&b.nodeName(S,"tr")?(R.getElementsByTagName("tbody")[0]||R.appendChild(R.ownerDocument.createElement("tbody"))):R}}};b.fn.init.prototype=b.fn;function u(I,J){if(J.src){b.ajax({url:J.src,async:false,dataType:"script"})}else{b.globalEval(J.text||J.textContent||J.innerHTML||"")}if(J.parentNode){J.parentNode.removeChild(J)}}function d(){return +new Date}b.extend=b.fn.extend=function(){var P=arguments[0]||{},M=1,J=arguments.length,I=false,L;if(typeof P==="boolean"){I=P;P=arguments[1]||{};M=2}if(typeof P!=="object"&&!b.isFunction(P)){P={}}if(J==M){P=this;--M}for(;M<J;M++){if((L=arguments[M])!=null){for(var K in L){var N=P[K],O=L[K];if(P===O){continue}if(I&&O&&typeof O==="object"&&!O.nodeType){P[K]=b.extend(I,N||(O.length!=null?[]:{}),O)}else{if(O!==l){P[K]=O}}}}}return P};var q=/z-?index|font-?weight|opacity|zoom|line-?height/i,E=document.defaultView||{},B=Object.prototype.toString;b.extend({noConflict:function(I){h.$=s;if(I){h.jQuery=D}return b},isFunction:function(I){return B.call(I)==="[object Function]"},isArray:function(I){return B.call(I)==="[object Array]"},isXMLDoc:function(I){return I.nodeType===9&&I.documentElement.nodeName!=="HTML"||!!I.ownerDocument&&b.isXMLDoc(I.ownerDocument)},globalEval:function(K){if(K&&/\S/.test(K)){var I=document.getElementsByTagName("head")[0]||document.documentElement,J=document.createElement("script");J.type="text/javascript";if(b.support.scriptEval){J.appendChild(document.createTextNode(K))}else{J.text=K}I.insertBefore(J,I.firstChild);I.removeChild(J)}},nodeName:function(J,I){return J.nodeName&&J.nodeName.toUpperCase()==I.toUpperCase()},each:function(M,O,K){var J,L=0,I=M.length;if(K){if(I===l){for(J in M){if(O.apply(M[J],K)===false){break}}}else{for(;L<I;){if(O.apply(M[L++],K)===false){break}}}}else{if(I===l){for(J in M){if(O.call(M[J],J,M[J])===false){break}}}else{for(var N=M[0];L<I&&O.call(N,L,N)!==false;N=M[++L]){}}}return M},prop:function(L,M,K,J,I){if(b.isFunction(M)){M=M.call(L,J)}return typeof M==="number"&&K=="curCSS"&&!q.test(I)?M+"px":M},className:{add:function(I,J){b.each((J||"").split(/\s+/),function(L,K){if(I.nodeType==1&&!b.className.has(I.className,K)){I.className+=(I.className?" ":"")+K}})},remove:function(I,J){if(I.nodeType==1){I.className=J!==l?b.grep(I.className.split(/\s+/),function(K){return !b.className.has(J,K)}).join(" "):""}},has:function(J,I){return J&&b.inArray(I,(J.className||J).toString().split(/\s+/))>-1}},swap:function(L,K,M){var I={};for(var J in K){I[J]=L.style[J];L.style[J]=K[J]}M.call(L);for(var J in K){L.style[J]=I[J]}},css:function(L,J,N,I){if(J=="width"||J=="height"){var P,K={position:"absolute",visibility:"hidden",display:"block"},O=J=="width"?["Left","Right"]:["Top","Bottom"];function M(){P=J=="width"?L.offsetWidth:L.offsetHeight;if(I==="border"){return}b.each(O,function(){if(!I){P-=parseFloat(b.curCSS(L,"padding"+this,true))||0}if(I==="margin"){P+=parseFloat(b.curCSS(L,"margin"+this,true))||0}else{P-=parseFloat(b.curCSS(L,"border"+this+"Width",true))||0}})}if(L.offsetWidth!==0){M()}else{b.swap(L,K,M)}return Math.max(0,Math.round(P))}return b.curCSS(L,J,N)},curCSS:function(M,I,K){var P,J=M.style;if(I=="opacity"&&!b.support.opacity){P=b.attr(J,"opacity");return P==""?"1":P}if(I.match(/float/i)){I=A}if(!K&&J&&J[I]){P=J[I]}else{if(E.getComputedStyle){if(I.match(/float/i)){I="float"}I=I.replace(/([A-Z])/g,"-$1").toLowerCase();var Q=E.getComputedStyle(M,null);if(Q){P=Q.getPropertyValue(I)}if(I=="opacity"&&P==""){P="1"}}else{if(M.currentStyle){var O=I.replace(/\-(\w)/g,function(S,R){return R.toUpperCase()});P=M.currentStyle[I]||M.currentStyle[O];if(!/^\d+(px)?$/i.test(P)&&/^\d/.test(P)){var N=J.left,L=M.runtimeStyle.left;M.runtimeStyle.left=M.currentStyle.left;J.left=P||0;P=J.pixelLeft+"px";J.left=N;M.runtimeStyle.left=L}}}}return P},clean:function(J,O,N){O=O||document;if(typeof O.createElement==="undefined"){O=O.ownerDocument||O[0]&&O[0].ownerDocument||document}if(!N&&J.length===1&&typeof J[0]==="string"){var L=/^<(\w+)\s*\/?>$/.exec(J[0]);if(L){return[O.createElement(L[1])]}}var K=[],I=[],P=O.createElement("div");b.each(J,function(T,W){if(typeof W==="number"){W+=""}if(!W){return}if(typeof W==="string"){W=W.replace(/(<(\w+)[^>]*?)\/>/g,function(Y,Z,X){return X.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?Y:Z+"></"+X+">"});var S=W.replace(/^\s+/,"").substring(0,10).toLowerCase();var U=!S.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!S.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||S.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!S.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!S.indexOf("<td")||!S.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!S.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!b.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];P.innerHTML=U[1]+W+U[2];while(U[0]--){P=P.lastChild}if(!b.support.tbody){var V=/<tbody/i.test(W),R=!S.indexOf("<table")&&!V?P.firstChild&&P.firstChild.childNodes:U[1]=="<table>"&&!V?P.childNodes:[];for(var Q=R.length-1;Q>=0;--Q){if(b.nodeName(R[Q],"tbody")&&!R[Q].childNodes.length){R[Q].parentNode.removeChild(R[Q])}}}if(!b.support.leadingWhitespace&&/^\s/.test(W)){P.insertBefore(O.createTextNode(W.match(/^\s*/)[0]),P.firstChild)}W=b.makeArray(P.childNodes)}if(W.nodeType){K.push(W)}else{K=b.merge(K,W)}});if(N){for(var M=0;K[M];M++){if(b.nodeName(K[M],"script")&&(!K[M].type||K[M].type.toLowerCase()==="text/javascript")){I.push(K[M].parentNode?K[M].parentNode.removeChild(K[M]):K[M])}else{if(K[M].nodeType===1){K.splice.apply(K,[M+1,0].concat(b.makeArray(K[M].getElementsByTagName("script"))))}N.appendChild(K[M])}}return I}return K},attr:function(N,L,O){if(!N||N.nodeType==3||N.nodeType==8){return l}var K=!b.isXMLDoc(N),P=O!==l;L=K&&b.props[L]||L;if(N.tagName){var M=/href|src|style/.test(L);if(L=="selected"&&N.parentNode){N.parentNode.selectedIndex}if(L in N&&K&&!M){if(P){if(L=="type"&&b.nodeName(N,"input")&&N.parentNode){throw"type property can't be changed"}N[L]=O}if(b.nodeName(N,"form")&&N.getAttributeNode(L)){return N.getAttributeNode(L).nodeValue}if(L=="tabIndex"){var J=N.getAttributeNode("tabIndex");return J&&J.specified?J.value:N.nodeName.match(/(button|input|object|select|textarea)/i)?0:N.nodeName.match(/^(a|area)$/i)&&N.href?0:l}return N[L]}if(!b.support.style&&K&&L=="style"){return b.attr(N.style,"cssText",O)}if(P){N.setAttribute(L,""+O)}var I=!b.support.hrefNormalized&&K&&M?N.getAttribute(L,2):N.getAttribute(L);return I===null?l:I}if(!b.support.opacity&&L=="opacity"){if(P){N.zoom=1;N.filter=(N.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(O)+""=="NaN"?"":"alpha(opacity="+O*100+")")}return N.filter&&N.filter.indexOf("opacity=")>=0?(parseFloat(N.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}L=L.replace(/-([a-z])/ig,function(R,Q){return Q.toUpperCase()});if(P){N[L]=O}return N[L]},trim:function(I){return(I||"").replace(/^\s+|\s+$/g,"")},makeArray:function(K){var I=[];if(K!=null){var J=K.length;if(J==null||typeof K==="string"||b.isFunction(K)||K.setInterval){I[0]=K}else{while(J){I[--J]=K[J]}}}return I},inArray:function(K,L){for(var J=0,I=L.length;J<I;J++){if(L[J]===K){return J}}return -1},merge:function(L,J){var I=0,K,M=L.length;if(!b.support.getAll){while((K=J[I++])!=null){if(K.nodeType!=8){L[M++]=K}}}else{while((K=J[I++])!=null){L[M++]=K}}return L},unique:function(O){var K=[],J={};try{for(var L=0,I=O.length;L<I;L++){var N=b.data(O[L]);if(!J[N]){J[N]=true;K.push(O[L])}}}catch(M){K=O}return K},grep:function(K,N,I){var L=[];for(var M=0,J=K.length;M<J;M++){if(!I!=!N(K[M],M)){L.push(K[M])}}return L},map:function(J,N){var K=[];for(var L=0,I=J.length;L<I;L++){var M=N(J[L],L);if(M!=null){K[K.length]=M}}return K.concat.apply([],K)}});var G=navigator.userAgent.toLowerCase();b.browser={version:(G.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(G),opera:/opera/.test(G),msie:/msie/.test(G)&&!/opera/.test(G),mozilla:/mozilla/.test(G)&&!/(compatible|webkit)/.test(G)};b.each({parent:function(I){return I.parentNode},parents:function(I){return b.dir(I,"parentNode")},next:function(I){return b.nth(I,2,"nextSibling")},prev:function(I){return b.nth(I,2,"previousSibling")},nextAll:function(I){return b.dir(I,"nextSibling")},prevAll:function(I){return b.dir(I,"previousSibling")},siblings:function(I){return b.sibling(I.parentNode.firstChild,I)},children:function(I){return b.sibling(I.firstChild)},contents:function(I){return b.nodeName(I,"iframe")?I.contentDocument||I.contentWindow.document:b.makeArray(I.childNodes)}},function(I,J){b.fn[I]=function(K){var L=b.map(this,J);if(K&&typeof K=="string"){L=b.multiFilter(K,L)}return this.pushStack(b.unique(L),I,K)}});b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(I,J){b.fn[I]=function(L){var O=[],K=b(L);for(var P=0,M=K.length;P<M;P++){var N=(P>0?this.clone(true):this).get();b.fn[J].apply(b(K[P]),N);O=O.concat(N)}return this.pushStack(O,I,L)}});b.each({removeAttr:function(I){b.attr(this,I,"");if(this.nodeType==1){this.removeAttribute(I)}},addClass:function(I){b.className.add(this,I)},removeClass:function(I){b.className.remove(this,I)},toggleClass:function(J,I){if(typeof I!=="boolean"){I=!b.className.has(this,J)}b.className[I?"add":"remove"](this,J)},remove:function(I){if(!I||b.filter(I,[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).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(I,J){b.fn[I]=function(){return this.each(J,arguments)}});function n(I,J){return I[0]&&parseInt(b.curCSS(I[0],J,true),10)||0}var k="jQuery"+d(),z=0,F={};b.extend({cache:{},data:function(J,I,K){J=J==h?F:J;var L=J[k];if(!L){L=J[k]=++z}if(I&&!b.cache[L]){b.cache[L]={}}if(K!==l){b.cache[L][I]=K}return I?b.cache[L][I]:L},removeData:function(J,I){J=J==h?F:J;var L=J[k];if(I){if(b.cache[L]){delete b.cache[L][I];I="";for(I in b.cache[L]){break}if(!I){b.removeData(J)}}}else{try{delete J[k]}catch(K){if(J.removeAttribute){J.removeAttribute(k)}}delete b.cache[L]}},queue:function(J,I,L){if(J){I=(I||"fx")+"queue";var K=b.data(J,I);if(!K||b.isArray(L)){K=b.data(J,I,b.makeArray(L))}else{if(L){K.push(L)}}}return K},dequeue:function(L,K){var I=b.queue(L,K),J=I.shift();if(!K||K==="fx"){J=I[0]}if(J!==l){J.call(L)}}});b.fn.extend({data:function(I,K){var L=I.split(".");L[1]=L[1]?"."+L[1]:"";if(K===l){var J=this.triggerHandler("getData"+L[1]+"!",[L[0]]);if(J===l&&this.length){J=b.data(this[0],I)}return J===l&&L[1]?this.data(L[0]):J}else{return this.trigger("setData"+L[1]+"!",[L[0],K]).each(function(){b.data(this,I,K)})}},removeData:function(I){return this.each(function(){b.removeData(this,I)})},queue:function(I,J){if(typeof I!=="string"){J=I;I="fx"}if(J===l){return b.queue(this[0],I)}return this.each(function(){var K=b.queue(this,I,J);if(I=="fx"&&K.length==1){K[0].call(this)}})},dequeue:function(I){return this.each(function(){b.dequeue(this,I)})}});
/*
 * 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 V=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,M=0,P=Object.prototype.toString;var R=function(ac,Y,af,ag){af=af||[];Y=Y||document;if(Y.nodeType!==1&&Y.nodeType!==9){return[]}if(!ac||typeof ac!=="string"){return af}var ad=[],aa,aj,am,X,ah,Z,ab=true;V.lastIndex=0;while((aa=V.exec(ac))!==null){ad.push(aa[1]);if(aa[2]){Z=RegExp.rightContext;break}}if(ad.length>1&&K.exec(ac)){if(ad.length===2&&J.relative[ad[0]]){aj=L(ad[0]+ad[1],Y)}else{aj=J.relative[ad[0]]?[Y]:R(ad.shift(),Y);while(ad.length){ac=ad.shift();if(J.relative[ac]){ac+=ad.shift()}aj=L(ac,aj)}}}else{var ai=ag?{expr:ad.pop(),set:I(ag)}:R.find(ad.pop(),ad.length===1&&Y.parentNode?Y.parentNode:Y,U(Y));aj=R.filter(ai.expr,ai.set);if(ad.length>0){am=I(aj)}else{ab=false}while(ad.length){var al=ad.pop(),ak=al;if(!J.relative[al]){al=""}else{ak=ad.pop()}if(ak==null){ak=Y}J.relative[al](am,ak,U(Y))}}if(!am){am=aj}if(!am){throw"Syntax error, unrecognized expression: "+(al||ac)}if(P.call(am)==="[object Array]"){if(!ab){af.push.apply(af,am)}else{if(Y.nodeType===1){for(var ae=0;am[ae]!=null;ae++){if(am[ae]&&(am[ae]===true||am[ae].nodeType===1&&N(Y,am[ae]))){af.push(aj[ae])}}}else{for(var ae=0;am[ae]!=null;ae++){if(am[ae]&&am[ae].nodeType===1){af.push(aj[ae])}}}}}else{I(am,af)}if(Z){R(Z,Y,af,ag);if(O){hasDuplicate=false;af.sort(O);if(hasDuplicate){for(var ae=1;ae<af.length;ae++){if(af[ae]===af[ae-1]){af.splice(ae--,1)}}}}}return af};R.matches=function(X,Y){return R(X,null,null,Y)};R.find=function(ad,X,af){var ae,ab;if(!ad){return[]}for(var aa=0,Z=J.order.length;aa<Z;aa++){var ac=J.order[aa],ab;if((ab=J.match[ac].exec(ad))){var Y=RegExp.leftContext;if(Y.substr(Y.length-1)!=="\\"){ab[1]=(ab[1]||"").replace(/\\/g,"");ae=J.find[ac](ab,X,af);if(ae!=null){ad=ad.replace(J.match[ac],"");break}}}}if(!ae){ae=X.getElementsByTagName("*")}return{set:ae,expr:ad}};R.filter=function(ah,ai,al,Y){var X=ah,ag=[],ac=ai,aa,ae,ab=ai&&ai[0]&&U(ai[0]);while(ah&&ai.length){for(var af in J.filter){if((aa=J.match[af].exec(ah))!=null){var ad=J.filter[af],am,ak;ae=false;if(ac==ag){ag=[]}if(J.preFilter[af]){aa=J.preFilter[af](aa,ac,al,ag,Y,ab);if(!aa){ae=am=true}else{if(aa===true){continue}}}if(aa){for(var Z=0;(ak=ac[Z])!=null;Z++){if(ak){am=ad(ak,aa,Z,ac);var aj=Y^!!am;if(al&&am!=null){if(aj){ae=true}else{ac[Z]=false}}else{if(aj){ag.push(ak);ae=true}}}}}if(am!==l){if(!al){ac=ag}ah=ah.replace(J.match[af],"");if(!ae){return[]}break}}}if(ah==X){if(ae==null){throw"Syntax error, unrecognized expression: "+ah}else{break}}X=ah}return ac};var J=R.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(X){return X.getAttribute("href")}},relative:{"+":function(ae,X,af){var Y=typeof X==="string",ad=Y&&!/\W/.test(X),ac=Y&&!ad;if(ad&&!af){X=X.toUpperCase()}for(var ab=0,aa=ae.length,Z;ab<aa;ab++){if((Z=ae[ab])){while((Z=Z.previousSibling)&&Z.nodeType!==1){}ae[ab]=ac||Z&&Z.nodeName===X?Z||false:Z===X}}if(ac){R.filter(X,ae,true)}},">":function(ad,aa,ae){var Z=typeof aa==="string";if(Z&&!/\W/.test(aa)){aa=ae?aa:aa.toUpperCase();for(var ab=0,X=ad.length;ab<X;ab++){var ac=ad[ab];if(ac){var Y=ac.parentNode;ad[ab]=Y.nodeName===aa?Y:false}}}else{for(var ab=0,X=ad.length;ab<X;ab++){var ac=ad[ab];if(ac){ad[ab]=Z?ac.parentNode:ac.parentNode===aa}}if(Z){R.filter(aa,ad,true)}}},"":function(aa,Y,ac){var Z=M++,X=W;if(!Y.match(/\W/)){var ab=Y=ac?Y:Y.toUpperCase();X=T}X("parentNode",Y,Z,aa,ab,ac)},"~":function(aa,Y,ac){var Z=M++,X=W;if(typeof Y==="string"&&!Y.match(/\W/)){var ab=Y=ac?Y:Y.toUpperCase();X=T}X("previousSibling",Y,Z,aa,ab,ac)}},find:{ID:function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){var X=Z.getElementById(Y[1]);return X?[X]:[]}},NAME:function(Z,ac,ad){if(typeof ac.getElementsByName!=="undefined"){var Y=[],ab=ac.getElementsByName(Z[1]);for(var aa=0,X=ab.length;aa<X;aa++){if(ab[aa].getAttribute("name")===Z[1]){Y.push(ab[aa])}}return Y.length===0?null:Y}},TAG:function(X,Y){return Y.getElementsByTagName(X[1])}},preFilter:{CLASS:function(Z,X,Y,ad,ac,ae){Z=" "+Z[1].replace(/\\/g,"")+" ";if(ae){return Z}for(var aa=0,ab;(ab=X[aa])!=null;aa++){if(ab){if(ac^(ab.className&&(" "+ab.className+" ").indexOf(Z)>=0)){if(!Y){ad.push(ab)}}else{if(Y){X[aa]=false}}}}return false},ID:function(X){return X[1].replace(/\\/g,"")},TAG:function(Y,X){for(var Z=0;X[Z]===false;Z++){}return X[Z]&&U(X[Z])?Y[1]:Y[1].toUpperCase()},CHILD:function(X){if(X[1]=="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(X[2]=="even"&&"2n"||X[2]=="odd"&&"2n+1"||!/\D/.test(X[2])&&"0n+"+X[2]||X[2]);X[2]=(Y[1]+(Y[2]||1))-0;X[3]=Y[3]-0}X[0]=M++;return X},ATTR:function(aa,X,Y,ac,ab,ad){var Z=aa[1].replace(/\\/g,"");if(!ad&&J.attrMap[Z]){aa[1]=J.attrMap[Z]}if(aa[2]==="~="){aa[4]=" "+aa[4]+" "}return aa},PSEUDO:function(aa,X,Y,ac,ab){if(aa[1]==="not"){if(aa[3].match(V).length>1||/^\w/.test(aa[3])){aa[3]=R(aa[3],null,null,X)}else{var Z=R.filter(aa[3],X,Y,true^ab);if(!Y){ac.push.apply(ac,Z)}return false}}else{if(J.match.POS.test(aa[0])||J.match.CHILD.test(aa[0])){return true}}return aa},POS:function(X){X.unshift(true);return X}},filters:{enabled:function(X){return X.disabled===false&&X.type!=="hidden"},disabled:function(X){return X.disabled===true},checked:function(X){return X.checked===true},selected:function(X){X.parentNode.selectedIndex;return X.selected===true},parent:function(X){return !!X.firstChild},empty:function(X){return !X.firstChild},has:function(Z,Y,X){return !!R(X[3],Z).length},header:function(X){return/h\d/i.test(X.nodeName)},text:function(X){return"text"===X.type},radio:function(X){return"radio"===X.type},checkbox:function(X){return"checkbox"===X.type},file:function(X){return"file"===X.type},password:function(X){return"password"===X.type},submit:function(X){return"submit"===X.type},image:function(X){return"image"===X.type},reset:function(X){return"reset"===X.type},button:function(X){return"button"===X.type||X.nodeName.toUpperCase()==="BUTTON"},input:function(X){return/input|select|textarea|button/i.test(X.nodeName)}},setFilters:{first:function(Y,X){return X===0},last:function(Z,Y,X,aa){return Y===aa.length-1},even:function(Y,X){return X%2===0},odd:function(Y,X){return X%2===1},lt:function(Z,Y,X){return Y<X[3]-0},gt:function(Z,Y,X){return Y>X[3]-0},nth:function(Z,Y,X){return X[3]-0==Y},eq:function(Z,Y,X){return X[3]-0==Y}},filter:{PSEUDO:function(ad,aa,ab,ae){var Z=aa[1],Y=J.filters[Z];if(Y){return Y(ad,ab,aa,ae)}else{if(Z==="contains"){return(ad.textContent||ad.innerText||"").indexOf(aa[3])>=0}else{if(Z==="not"){var ac=aa[3];for(var ab=0,X=ac.length;ab<X;ab++){if(ac[ab]===ad){return false}}return true}}}},CHILD:function(Y,Z){var ad=Z[1],X=Y;switch(ad){case"only":case"first":while(X=X.previousSibling){if(X.nodeType===1){return false}}if(ad=="first"){return true}X=Y;case"last":while(X=X.nextSibling){if(X.nodeType===1){return false}}return true;case"nth":var aa=Z[2],af=Z[3];if(aa==1&&af==0){return true}var ac=Z[0],ag=Y.parentNode;if(ag&&(ag.sizcache!==ac||!Y.nodeIndex)){var ab=0;for(X=ag.firstChild;X;X=X.nextSibling){if(X.nodeType===1){X.nodeIndex=++ab}}ag.sizcache=ac}var ae=Y.nodeIndex-af;if(aa==0){return ae==0}else{return(ae%aa==0&&ae/aa>=0)}}},ID:function(Y,X){return Y.nodeType===1&&Y.getAttribute("id")===X},TAG:function(Y,X){return(X==="*"&&Y.nodeType===1)||Y.nodeName===X},CLASS:function(Y,X){return(" "+(Y.className||Y.getAttribute("class"))+" ").indexOf(X)>-1},ATTR:function(ab,Z){var Y=Z[1],ad=J.attrHandle[Y]?J.attrHandle[Y](ab):ab[Y]!=null?ab[Y]:ab.getAttribute(Y),ac=ad+"",aa=Z[2],X=Z[4];return ad==null?aa==="!=":aa==="="?ac===X:aa==="*="?ac.indexOf(X)>=0:aa==="~="?(" "+ac+" ").indexOf(X)>=0:!X?ac&&ad!==false:aa==="!="?ac!=X:aa==="^="?ac.indexOf(X)===0:aa==="$="?ac.substr(ac.length-X.length)===X:aa==="|="?ac===X||ac.substr(0,X.length+1)===X+"-":false},POS:function(ab,Z,aa,ac){var Y=Z[2],X=J.setFilters[Y];if(X){return X(ab,aa,Z,ac)}}}};var K=J.match.POS;for(var S in J.match){J.match[S]=RegExp(J.match[S].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var I=function(Y,X){Y=Array.prototype.slice.call(Y);if(X){X.push.apply(X,Y);return X}return Y};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(Q){I=function(ab,aa){var Y=aa||[];if(P.call(ab)==="[object Array]"){Array.prototype.push.apply(Y,ab)}else{if(typeof ab.length==="number"){for(var Z=0,X=ab.length;Z<X;Z++){Y.push(ab[Z])}}else{for(var Z=0;ab[Z];Z++){Y.push(ab[Z])}}}return Y}}var O;if(document.documentElement.compareDocumentPosition){O=function(Y,X){var Z=Y.compareDocumentPosition(X)&4?-1:Y===X?0:1;if(Z===0){hasDuplicate=true}return Z}}else{if("sourceIndex" in document.documentElement){O=function(Y,X){var Z=Y.sourceIndex-X.sourceIndex;if(Z===0){hasDuplicate=true}return Z}}else{if(document.createRange){O=function(Y,X){var aa=Y.ownerDocument.createRange(),ab=X.ownerDocument.createRange();aa.selectNode(Y);aa.collapse(true);ab.selectNode(X);ab.collapse(true);var Z=aa.compareBoundaryPoints(Range.START_TO_END,ab);if(Z===0){hasDuplicate=true}return Z}}}}(function(){var Y=document.createElement("form"),Z="script"+(new Date).getTime();Y.innerHTML="<input name='"+Z+"'/>";var X=document.documentElement;X.insertBefore(Y,X.firstChild);if(!!document.getElementById(Z)){J.find.ID=function(ab,ac,ad){if(typeof ac.getElementById!=="undefined"&&!ad){var aa=ac.getElementById(ab[1]);return aa?aa.id===ab[1]||typeof aa.getAttributeNode!=="undefined"&&aa.getAttributeNode("id").nodeValue===ab[1]?[aa]:l:[]}};J.filter.ID=function(ac,aa){var ab=typeof ac.getAttributeNode!=="undefined"&&ac.getAttributeNode("id");return ac.nodeType===1&&ab&&ab.nodeValue===aa}}X.removeChild(Y)})();(function(){var X=document.createElement("div");X.appendChild(document.createComment(""));if(X.getElementsByTagName("*").length>0){J.find.TAG=function(Y,ac){var ab=ac.getElementsByTagName(Y[1]);if(Y[1]==="*"){var aa=[];for(var Z=0;ab[Z];Z++){if(ab[Z].nodeType===1){aa.push(ab[Z])}}ab=aa}return ab}}X.innerHTML="<a href='#'></a>";if(X.firstChild&&typeof X.firstChild.getAttribute!=="undefined"&&X.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(Y){return Y.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var X=R,Y=document.createElement("div");Y.innerHTML="<p class='TEST'></p>";if(Y.querySelectorAll&&Y.querySelectorAll(".TEST").length===0){return}R=function(ac,ab,Z,aa){ab=ab||document;if(!aa&&ab.nodeType===9&&!U(ab)){try{return I(ab.querySelectorAll(ac),Z)}catch(ad){}}return X(ac,ab,Z,aa)};R.find=X.find;R.filter=X.filter;R.selectors=X.selectors;R.matches=X.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var X=document.createElement("div");X.innerHTML="<div class='test e'></div><div class='test'></div>";if(X.getElementsByClassName("e").length===0){return}X.lastChild.className="e";if(X.getElementsByClassName("e").length===1){return}J.order.splice(1,0,"CLASS");J.find.CLASS=function(Y,Z,aa){if(typeof Z.getElementsByClassName!=="undefined"&&!aa){return Z.getElementsByClassName(Y[1])}}})()}function T(Y,af,ac,ag,ae,ah){var ad=Y=="previousSibling"&&!ah;for(var aa=0,Z=ag.length;aa<Z;aa++){var X=ag[aa];if(X){if(ad&&X.nodeType===1){X.sizcache=ac;X.sizset=aa}X=X[Y];var ab=false;while(X){if(X.sizcache===ac){ab=ag[X.sizset];break}if(X.nodeType===1&&!ah){X.sizcache=ac;X.sizset=aa}if(X.nodeName===af){ab=X;break}X=X[Y]}ag[aa]=ab}}}function W(Y,af,ac,ag,ae,ah){var ad=Y=="previousSibling"&&!ah;for(var aa=0,Z=ag.length;aa<Z;aa++){var X=ag[aa];if(X){if(ad&&X.nodeType===1){X.sizcache=ac;X.sizset=aa}X=X[Y];var ab=false;while(X){if(X.sizcache===ac){ab=ag[X.sizset];break}if(X.nodeType===1){if(!ah){X.sizcache=ac;X.sizset=aa}if(typeof af!=="string"){if(X===af){ab=true;break}}else{if(R.filter(af,[X]).length>0){ab=X;break}}}X=X[Y]}ag[aa]=ab}}}var N=document.compareDocumentPosition?function(Y,X){return Y.compareDocumentPosition(X)&16}:function(Y,X){return Y!==X&&(Y.contains?Y.contains(X):true)};var U=function(X){return X.nodeType===9&&X.documentElement.nodeName!=="HTML"||!!X.ownerDocument&&U(X.ownerDocument)};var L=function(X,ad){var ae=[],aa="",ab,Z=ad.nodeType?[ad]:ad;while((ab=J.match.PSEUDO.exec(X))){aa+=ab[0];X=X.replace(J.match.PSEUDO,"")}X=J.relative[X]?X+"*":X;for(var ac=0,Y=Z.length;ac<Y;ac++){R(X,Z[ac],ae)}return R.filter(aa,ae)};b.find=R;b.filter=R.filter;b.expr=R.selectors;b.expr[":"]=b.expr.filters;R.selectors.filters.hidden=function(X){return X.offsetWidth===0||X.offsetHeight===0};R.selectors.filters.visible=function(X){return X.offsetWidth>0||X.offsetHeight>0};R.selectors.filters.animated=function(X){return b.grep(b.timers,function(Y){return X===Y.elem}).length};b.multiFilter=function(Z,X,Y){if(Y){Z=":not("+Z+")"}return R.matches(Z,X)};b.dir=function(Z,Y){var X=[],aa=Z[Y];while(aa&&aa!=document){if(aa.nodeType==1){X.push(aa)}aa=aa[Y]}return X};b.nth=function(ab,aa,Y,Z){aa=aa||1;var X=0;for(;ab;ab=ab[Y]){if(ab.nodeType==1&&++X==aa){break}}return ab};b.sibling=function(Z,Y){var X=[];for(;Z;Z=Z.nextSibling){if(Z.nodeType==1&&Z!=Y){X.push(Z)}}return X};return;h.Sizzle=R})();b.event={add:function(N,K,M,O){if(N.nodeType==3||N.nodeType==8){return}if(N.setInterval&&N!=h){N=h}if(!M.guid){M.guid=this.guid++}if(O!==l){var L=M;M=this.proxy(L);M.data=O}var J=b.data(N,"events")||b.data(N,"events",{}),I=b.data(N,"handle")||b.data(N,"handle",function(){return typeof b!=="undefined"&&!b.event.triggered?b.event.handle.apply(arguments.callee.elem,arguments):l});I.elem=N;b.each(K.split(/\s+/),function(Q,R){var S=R.split(".");R=S.shift();M.type=S.slice().sort().join(".");var P=J[R];if(b.event.specialAll[R]){b.event.specialAll[R].setup.call(N,O,S)}if(!P){P=J[R]={};if(!b.event.special[R]||b.event.special[R].setup.call(N,O,S)===false){if(N.addEventListener){N.addEventListener(R,I,false)}else{if(N.attachEvent){N.attachEvent("on"+R,I)}}}}P[M.guid]=M;b.event.global[R]=true});N=null},guid:1,global:{},remove:function(P,M,O){if(P.nodeType==3||P.nodeType==8){return}var L=b.data(P,"events"),K,J;if(L){if(M===l||(typeof M==="string"&&M.charAt(0)==".")){for(var N in L){this.remove(P,N+(M||""))}}else{if(M.type){O=M.handler;M=M.type}b.each(M.split(/\s+/),function(R,T){var U=T.split(".");T=U.shift();var S=RegExp("(^|\\.)"+U.slice().sort().join(".*\\.")+"(\\.|$)");if(L[T]){if(O){delete L[T][O.guid]}else{for(var Q in L[T]){if(S.test(L[T][Q].type)){delete L[T][Q]}}}if(b.event.specialAll[T]){b.event.specialAll[T].teardown.call(P,U)}for(K in L[T]){break}if(!K){if(!b.event.special[T]||b.event.special[T].teardown.call(P,U)===false){if(P.removeEventListener){P.removeEventListener(T,b.data(P,"handle"),false)}else{if(P.detachEvent){P.detachEvent("on"+T,b.data(P,"handle"))}}}K=null;delete L[T]}}})}for(K in L){break}if(!K){var I=b.data(P,"handle");if(I){I.elem=null}b.removeData(P,"events");b.removeData(P,"handle")}}},trigger:function(N,O,M,K){var L=N.type||N;if(!K){N=typeof N==="object"?N[k]?N:b.extend(b.Event(L),N):b.Event(L);if(L.indexOf("!")>=0){N.type=L=L.slice(0,-1);N.exclusive=true}if(!M){N.stopPropagation();if(this.global[L]){b.each(b.cache,function(){if(this.events&&this.events[L]){b.event.trigger(N,O,this.handle.elem)}})}}if(!M||M.nodeType==3||M.nodeType==8){return l}N.result=l;N.target=M;O=b.makeArray(O);O.unshift(N)}N.currentTarget=M;var I=b.data(M,"handle");if(I){I.apply(M,O)}if((!M[L]||(b.nodeName(M,"a")&&L=="click"))&&M["on"+L]&&M["on"+L].apply(M,O)===false){N.result=false}if(!K&&M[L]&&!N.isDefaultPrevented()&&!(b.nodeName(M,"a")&&L=="click")){this.triggered=true;try{M[L]()}catch(P){}}this.triggered=false;if(!N.isPropagationStopped()){var J=M.parentNode||M.ownerDocument;if(J){b.event.trigger(N,O,J,true)}}},handle:function(O){var N,I;O=arguments[0]=b.event.fix(O||h.event);O.currentTarget=this;var P=O.type.split(".");O.type=P.shift();N=!P.length&&!O.exclusive;var M=RegExp("(^|\\.)"+P.slice().sort().join(".*\\.")+"(\\.|$)");I=(b.data(this,"events")||{})[O.type];for(var K in I){var L=I[K];if(N||M.test(L.type)){O.handler=L;O.data=L.data;var J=L.apply(this,arguments);if(J!==l){O.result=J;if(J===false){O.preventDefault();O.stopPropagation()}}if(O.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(L){if(L[k]){return L}var J=L;L=b.Event(J);for(var K=this.props.length,N;K;){N=this.props[--K];L[N]=J[N]}if(!L.target){L.target=L.srcElement||document}if(L.target.nodeType==3){L.target=L.target.parentNode}if(!L.relatedTarget&&L.fromElement){L.relatedTarget=L.fromElement==L.target?L.toElement:L.fromElement}if(L.pageX==null&&L.clientX!=null){var M=document.documentElement,I=document.body;L.pageX=L.clientX+(M&&M.scrollLeft||I&&I.scrollLeft||0)-(M.clientLeft||0);L.pageY=L.clientY+(M&&M.scrollTop||I&&I.scrollTop||0)-(M.clientTop||0)}if(!L.which&&((L.charCode||L.charCode===0)?L.charCode:L.keyCode)){L.which=L.charCode||L.keyCode}if(!L.metaKey&&L.ctrlKey){L.metaKey=L.ctrlKey}if(!L.which&&L.button){L.which=(L.button&1?1:(L.button&2?3:(L.button&4?2:0)))}return L},proxy:function(J,I){I=I||function(){return J.apply(this,arguments)};I.guid=J.guid=J.guid||I.guid||this.guid++;return I},special:{ready:{setup:t,teardown:function(){}}},specialAll:{live:{setup:function(I,J){b.event.add(this,J[0],p)},teardown:function(K){if(K.length){var J=0,I=RegExp("(^|\\.)"+K[0]+"(\\.|$)");b.each((b.data(this,"events").live||{}),function(){if(I.test(this.type)){J++}});if(J<1){b.event.remove(this,K[0],p)}}}}}};b.Event=function(I){if(!this.preventDefault){return new b.Event(I)}if(I&&I.type){this.originalEvent=I;this.type=I.type}else{this.type=I}this.timeStamp=d();this[k]=true};function g(){return false}function y(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var I=this.originalEvent;if(!I){return}if(I.preventDefault){I.preventDefault()}I.returnValue=false},stopPropagation:function(){this.isPropagationStopped=y;var I=this.originalEvent;if(!I){return}if(I.stopPropagation){I.stopPropagation()}I.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g};var a=function(J){var I=J.relatedTarget;while(I&&I!=this){try{I=I.parentNode}catch(K){I=this}}if(I!=this){J.type=J.data;b.event.handle.apply(this,arguments)}};b.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(J,I){b.event.special[I]={setup:function(){b.event.add(this,J,a,I)},teardown:function(){b.event.remove(this,J,a)}}});b.fn.extend({bind:function(J,K,I){return J=="unload"?this.one(J,K,I):this.each(function(){b.event.add(this,J,I||K,I&&K)})},one:function(K,L,J){var I=b.event.proxy(J||L,function(M){b(this).unbind(M,I);return(J||L).apply(this,arguments)});return this.each(function(){b.event.add(this,K,I,J&&L)})},unbind:function(J,I){return this.each(function(){b.event.remove(this,J,I)})},trigger:function(I,J){return this.each(function(){b.event.trigger(I,J,this)})},triggerHandler:function(I,K){if(this[0]){var J=b.Event(I);J.preventDefault();J.stopPropagation();b.event.trigger(J,K,this[0]);return J.result}},toggle:function(K){var I=arguments,J=1;while(J<I.length){b.event.proxy(K,I[J++])}return this.click(b.event.proxy(K,function(L){this.lastToggle=(this.lastToggle||0)%J;L.preventDefault();return I[this.lastToggle++].apply(this,arguments)||false}))},hover:function(I,J){return this.mouseenter(I).mouseleave(J)},ready:function(I){t();if(b.isReady){I.call(document,b)}else{b.readyList.push(I)}return this},live:function(K,J){var I=b.event.proxy(J);I.guid+=this.selector+K;b(document).bind(j(K,this.selector),this.selector,I);return this},die:function(J,I){b(document).unbind(j(J,this.selector),I?{guid:I.guid+this.selector+J}:null);return this}});function p(L){var I=RegExp("(^|\\.)"+L.type+"(\\.|$)"),K=true,J=[];b.each(b.data(this,"events").live||[],function(M,N){if(I.test(N.type)){var O=b(L.target).closest(N.data)[0];if(O){J.push({elem:O,fn:N})}}});J.sort(function(N,M){return b.data(N.elem,"closest")-b.data(M.elem,"closest")});b.each(J,function(){if(this.fn.call(this.elem,L,this.fn.data)===false){return(K=false)}});return K}function j(J,I){return["live",J,I.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 C=false;function t(){if(C){return}C=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&&h==h.top){(function(){if(b.isReady){return}try{document.documentElement.doScroll("left")}catch(I){setTimeout(arguments.callee,0);return}b.ready()})()}}}b.event.add(h,"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(J,I){b.fn[I]=function(K){return K?this.bind(I,K):this.trigger(I)}});b(h).bind("unload",function(){for(var I in b.cache){if(I!=1&&b.cache[I].handle){b.event.remove(b.cache[I].handle.elem)}}});(function(){b.support={};var J=document.documentElement,L=document.createElement("script"),O=document.createElement("div"),N="script"+(new Date).getTime();O.style.display="none";O.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 K=O.getElementsByTagName("*"),I=O.getElementsByTagName("a")[0];if(!K||!K.length||!I){return}b.support={leadingWhitespace:O.firstChild.nodeType==3,tbody:!O.getElementsByTagName("tbody").length,objectAll:!!O.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!O.getElementsByTagName("link").length,style:/red/.test(I.getAttribute("style")),hrefNormalized:I.getAttribute("href")==="/a",opacity:I.style.opacity==="0.5",cssFloat:!!I.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};L.type="text/javascript";try{L.appendChild(document.createTextNode("window."+N+"=1;"))}catch(M){}J.insertBefore(L,J.firstChild);if(h[N]){b.support.scriptEval=true;delete h[N]}J.removeChild(L);if(O.attachEvent&&O.fireEvent){O.attachEvent("onclick",function(){b.support.noCloneEvent=false;O.detachEvent("onclick",arguments.callee)});O.cloneNode(true).fireEvent("onclick")}b(function(){var P=document.createElement("div");P.style.width=P.style.paddingLeft="1px";document.body.appendChild(P);b.boxModel=b.support.boxModel=P.offsetWidth===2;document.body.removeChild(P).style.display="none"})})();var A=b.support.cssFloat?"cssFloat":"styleFloat";b.props={"for":"htmlFor","class":"className","float":A,cssFloat:A,styleFloat:A,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};b.fn.extend({_load:b.fn.load,load:function(K,O,M){if(typeof K!=="string"){return this._load(K)}var N=K.indexOf(" ");if(N>=0){var I=K.slice(N,K.length);K=K.slice(0,N)}var L="GET";if(O){if(b.isFunction(O)){M=O;O=null}else{if(typeof O==="object"){O=b.param(O);L="POST"}}}var J=this;b.ajax({url:K,type:L,dataType:"html",data:O,complete:function(P,Q){if(Q=="success"||Q=="notmodified"){J.html(I?b("<div/>").append(P.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(I):P.responseText)}if(M){J.each(M,[P.responseText,Q,P])}}});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|search/i.test(this.type))}).map(function(I,J){var K=b(this).val();return K==null?null:b.isArray(K)?b.map(K,function(M,L){return{name:J.name,value:M}}):{name:J.name,value:K}}).get()}});b.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(I,J){b.fn[J]=function(K){return this.bind(J,K)}});var v=d();b.extend({get:function(I,K,L,J){if(b.isFunction(K)){L=K;K=null}return b.ajax({type:"GET",url:I,data:K,success:L,dataType:J})},getScript:function(I,J){return b.get(I,null,J,"script")},getJSON:function(I,J,K){return b.get(I,J,K,"json")},post:function(I,K,L,J){if(b.isFunction(K)){L=K;K={}}return b.ajax({type:"POST",url:I,data:K,success:L,dataType:J})},ajaxSetup:function(I){b.extend(b.ajaxSettings,I)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return h.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(P){P=b.extend(true,P,b.extend(true,{},b.ajaxSettings,P));var Z,J=/=\?(&|$)/g,U,W,K=P.type.toUpperCase();if(P.data&&P.processData&&typeof P.data!=="string"){P.data=b.param(P.data)}if(P.dataType=="jsonp"){if(K=="GET"){if(!P.url.match(J)){P.url+=(P.url.match(/\?/)?"&":"?")+(P.jsonp||"callback")+"=?"}}else{if(!P.data||!P.data.match(J)){P.data=(P.data?P.data+"&":"")+(P.jsonp||"callback")+"=?"}}P.dataType="json"}if(P.dataType=="json"&&(P.data&&P.data.match(J)||P.url.match(J))){Z="jsonp"+v++;if(P.data){P.data=(P.data+"").replace(J,"="+Z+"$1")}P.url=P.url.replace(J,"="+Z+"$1");P.dataType="script";h[Z]=function(ab){W=ab;L();Y();h[Z]=l;try{delete h[Z]}catch(ac){}if(M){M.removeChild(R)}}}if(P.dataType=="script"&&P.cache==null){P.cache=false}if(P.cache===false&&K=="GET"){var I=d();var X=P.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+I+"$2");P.url=X+((X==P.url)?(P.url.match(/\?/)?"&":"?")+"_="+I:"")}if(P.data&&K=="GET"){P.url+=(P.url.match(/\?/)?"&":"?")+P.data;P.data=null}if(P.global&&!b.active++){b.event.trigger("ajaxStart")}var T=/^(\w+:)?\/\/([^\/?#]+)/.exec(P.url);if(P.dataType=="script"&&K=="GET"&&T&&(T[1]&&T[1]!=location.protocol||T[2]!=location.host)){var M=document.getElementsByTagName("head")[0];var R=document.createElement("script");R.src=P.url;if(P.scriptCharset){R.charset=P.scriptCharset}if(!Z){var Q=false;R.onload=R.onreadystatechange=function(){if(!Q&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){Q=true;L();Y();R.onload=R.onreadystatechange=null;M.removeChild(R)}}}M.appendChild(R);return l}var O=false;var N=P.xhr();if(P.username){N.open(K,P.url,P.async,P.username,P.password)}else{N.open(K,P.url,P.async)}try{if(P.data){N.setRequestHeader("Content-Type",P.contentType)}if(P.ifModified){N.setRequestHeader("If-Modified-Since",b.lastModified[P.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}N.setRequestHeader("X-Requested-With","XMLHttpRequest");N.setRequestHeader("Accept",P.dataType&&P.accepts[P.dataType]?P.accepts[P.dataType]+", */*":P.accepts._default)}catch(V){}if(P.beforeSend&&P.beforeSend(N,P)===false){if(P.global&&!--b.active){b.event.trigger("ajaxStop")}N.abort();return false}if(P.global){b.event.trigger("ajaxSend",[N,P])}var aa=function(ac){if(N.readyState==0){if(S){clearInterval(S);S=null;if(P.global&&!--b.active){b.event.trigger("ajaxStop")}}}else{if(!O&&N&&(N.readyState==4||ac=="timeout")){O=true;if(S){clearInterval(S);S=null}U=ac=="timeout"?"timeout":!b.httpSuccess(N)?"error":P.ifModified&&b.httpNotModified(N,P.url)?"notmodified":"success";if(U=="success"){try{W=b.httpData(N,P.dataType,P)}catch(ad){U="parsererror"}}if(U=="success"){var ab;try{ab=N.getResponseHeader("Last-Modified")}catch(ad){}if(P.ifModified&&ab){b.lastModified[P.url]=ab}if(!Z){L()}}else{b.handleError(P,N,U)}Y();if(ac){N.abort()}if(P.async){N=null}}}};if(P.async){var S=setInterval(aa,13);if(P.timeout>0){setTimeout(function(){if(N&&!O){aa("timeout")}},P.timeout)}}try{N.send(P.data)}catch(V){b.handleError(P,N,null,V)}if(!P.async){aa()}function L(){if(P.success){P.success(W,U)}if(P.global){b.event.trigger("ajaxSuccess",[N,P])}}function Y(){if(P.complete){P.complete(N,U)}if(P.global){b.event.trigger("ajaxComplete",[N,P])}if(P.global&&!--b.active){b.event.trigger("ajaxStop")}}return N},handleError:function(I,L,J,K){if(I.error){I.error(L,J,K)}if(I.global){b.event.trigger("ajaxError",[L,I,K])}},active:0,httpSuccess:function(J){try{return !J.status&&location.protocol=="file:"||(J.status>=200&&J.status<300)||J.status==304||J.status==1223}catch(I){}return false},httpNotModified:function(L,I){try{var K=L.getResponseHeader("Last-Modified");return L.status==304||K==b.lastModified[I]}catch(J){}return false},httpData:function(N,L,K){var J=N.getResponseHeader("content-type"),I=L=="xml"||!L&&J&&J.indexOf("xml")>=0,M=I?N.responseXML:N.responseText;if(I&&M.documentElement.tagName=="parsererror"){throw"parsererror"}if(K&&K.dataFilter){M=K.dataFilter(M,L)}if(typeof M==="string"){if(L=="script"){b.globalEval(M)}if(L=="json"){M=h["eval"]("("+M+")")}}return M},param:function(I){var K=[];function L(M,N){K[K.length]=encodeURIComponent(M)+"="+encodeURIComponent(N)}if(b.isArray(I)||I.jquery){b.each(I,function(){L(this.name,this.value)})}else{for(var J in I){if(b.isArray(I[J])){b.each(I[J],function(){L(J,this)})}else{L(J,b.isFunction(I[J])?I[J]():I[J])}}}return K.join("&").replace(/%20/g,"+")}});var f={},c,o=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function w(J,I){var K={};b.each(o.concat.apply([],o.slice(0,I)),function(){K[this]=J});return K}b.fn.extend({show:function(N,P){if(N){return this.animate(w("show",3),N,P)}else{for(var L=0,J=this.length;L<J;L++){var I=b.data(this[L],"olddisplay");this[L].style.display=I||"";if(b.css(this[L],"display")==="none"){var K=this[L].tagName,O;if(f[K]){O=f[K]}else{var M=b("<"+K+" />").appendTo("body");O=M.css("display");if(O==="none"){O="block"}M.remove();f[K]=O}b.data(this[L],"olddisplay",O)}}for(var L=0,J=this.length;L<J;L++){this[L].style.display=b.data(this[L],"olddisplay")||""}return this}},hide:function(L,M){if(L){return this.animate(w("hide",3),L,M)}else{for(var K=0,J=this.length;K<J;K++){var I=b.data(this[K],"olddisplay");if(!I&&I!=="none"){b.data(this[K],"olddisplay",b.css(this[K],"display"))}}for(var K=0,J=this.length;K<J;K++){this[K].style.display="none"}return this}},_toggle:b.fn.toggle,toggle:function(K,J){var I=typeof K==="boolean";return b.isFunction(K)&&b.isFunction(J)?this._toggle.apply(this,arguments):K==null||I?this.each(function(){var L=I?K:b(this).is(":hidden");b(this)[L?"show":"hide"]()}):this.animate(w("toggle",3),K,J)},fadeTo:function(I,K,J){return this.animate({opacity:K},I,J)},animate:function(M,J,L,K){var I=b.speed(J,L,K);return this[I.queue===false?"each":"queue"](function(){var P=b.extend({},I),Q,N=this.nodeType==1&&b(this).is(":hidden"),O=this;for(Q in M){if(M[Q]=="hide"&&N||M[Q]=="show"&&!N){return P.complete.call(this)}if((Q=="height"||Q=="width")&&this.style){P.display=b.css(this,"display");P.overflow=this.style.overflow}}if(P.overflow!=null){this.style.overflow="hidden"}P.curAnim=b.extend({},M);b.each(M,function(S,W){var V=new b.fx(O,P,S);if(/toggle|show|hide/.test(W)){V[W=="toggle"?N?"show":"hide":W](M)}else{var U=W.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),X=V.cur(true)||0;if(U){var R=parseFloat(U[2]),T=U[3]||"px";if(T!="px"){O.style[S]=(R||1)+T;X=((R||1)/V.cur(true))*X;O.style[S]=X+T}if(U[1]){R=((U[1]=="-="?-1:1)*R)+X}V.custom(X,R,T)}else{V.custom(X,W,"")}}});return true})},stop:function(J,K){var I=b.timers;if(J){this.queue([])}this.each(function(){for(var L=I.length-1;L>=0;L--){if(I[L].elem==this){if(K){I[L](true)}I.splice(L,1)}}});if(!K){this.dequeue()}return this}});b.each({slideDown:w("show",1),slideUp:w("hide",1),slideToggle:w("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(I,J){b.fn[I]=function(K,L){return this.animate(J,K,L)}});b.extend({speed:function(K,L,J){var I=typeof K==="object"?K:{complete:J||!J&&L||b.isFunction(K)&&K,duration:K,easing:J&&L||L&&!b.isFunction(L)&&L};I.duration=b.fx.off?0:typeof I.duration==="number"?I.duration:b.fx.speeds[I.duration]||b.fx.speeds._default;I.old=I.complete;I.complete=function(){if(I.queue!==false){b(this).dequeue()}if(b.isFunction(I.old)){I.old.call(this)}};return I},easing:{linear:function(K,L,I,J){return I+J*K},swing:function(K,L,I,J){return((-Math.cos(K*Math.PI)/2)+0.5)*J+I}},timers:[],fx:function(J,I,K){this.options=I;this.elem=J;this.prop=K;if(!I.orig){I.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(J){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var I=parseFloat(b.css(this.elem,this.prop,J));return I&&I>-10000?I:parseFloat(b.curCSS(this.elem,this.prop))||0},custom:function(M,L,K){this.startTime=d();this.start=M;this.end=L;this.unit=K||this.unit||"px";this.now=this.start;this.pos=this.state=0;var I=this;function J(N){return I.step(N)}J.elem=this.elem;if(J()&&b.timers.push(J)&&!c){c=setInterval(function(){var N=b.timers;for(var O=0;O<N.length;O++){if(!N[O]()){N.splice(O--,1)}}if(!N.length){clearInterval(c);c=l}},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(L){var K=d();if(L||K>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var I=true;for(var J in this.options.curAnim){if(this.options.curAnim[J]!==true){I=false}}if(I){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 M in this.options.curAnim){b.attr(this.elem.style,M,this.options.orig[M])}}this.options.complete.call(this.elem)}return false}else{var N=K-this.startTime;this.state=N/this.options.duration;this.pos=b.easing[this.options.easing||(b.easing.swing?"swing":"linear")](this.state,N,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(I){b.attr(I.elem.style,"opacity",I.now)},_default:function(I){if(I.elem.style&&I.elem.style[I.prop]!=null){I.elem.style[I.prop]=I.now+I.unit}else{I.elem[I.prop]=I.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 K=this[0].getBoundingClientRect(),O=this[0].ownerDocument,J=O.body,I=O.documentElement,N=I.clientTop||J.clientTop||0,P=I.clientLeft||J.clientLeft||0,M=K.top+(self.pageYOffset||b.boxModel&&I.scrollTop||J.scrollTop)-N,L=K.left+(self.pageXOffset||b.boxModel&&I.scrollLeft||J.scrollLeft)-P;return{top:M,left:L}}}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 M=this[0],I=M.offsetParent,Q=M,S=M.ownerDocument,P,K=S.documentElement,N=S.body,J=S.defaultView,O=J.getComputedStyle(M,null),R=M.offsetTop,L=M.offsetLeft;while((M=M.parentNode)&&M!==N&&M!==K){P=J.getComputedStyle(M,null);R-=M.scrollTop,L-=M.scrollLeft;if(M===I){R+=M.offsetTop,L+=M.offsetLeft;if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(M.tagName))){R+=parseInt(P.borderTopWidth,10)||0,L+=parseInt(P.borderLeftWidth,10)||0}Q=I,I=M.offsetParent}if(b.offset.subtractsBorderForOverflowNotVisible&&P.overflow!=="visible"){R+=parseInt(P.borderTopWidth,10)||0,L+=parseInt(P.borderLeftWidth,10)||0}O=P}if(O.position==="relative"||O.position==="static"){R+=N.offsetTop,L+=N.offsetLeft}if(O.position==="fixed"){R+=Math.max(K.scrollTop,N.scrollTop),L+=Math.max(K.scrollLeft,N.scrollLeft)}return{top:R,left:L}}}b.offset={initialize:function(){if(this.initialized){return}var O=document.body,P=document.createElement("div"),K,J,R,L,Q,I,M=O.style.marginTop,N='<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>';Q={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(I in Q){P.style[I]=Q[I]}P.innerHTML=N;O.insertBefore(P,O.firstChild);K=P.firstChild,J=K.firstChild,L=K.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(J.offsetTop!==5);this.doesAddBorderForTableAndCells=(L.offsetTop===5);K.style.overflow="hidden",K.style.position="relative";this.subtractsBorderForOverflowNotVisible=(J.offsetTop===-5);O.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(O.offsetTop===0);O.style.marginTop=M;O.removeChild(P);this.initialized=true},bodyOffset:function(I){b.offset.initialized||b.offset.initialize();var K=I.offsetTop,J=I.offsetLeft;if(b.offset.doesNotIncludeMarginInBodyOffset){K+=parseInt(b.curCSS(I,"marginTop",true),10)||0,J+=parseInt(b.curCSS(I,"marginLeft",true),10)||0}return{top:K,left:J}}};b.fn.extend({position:function(){var M=0,L=0,J;if(this[0]){var K=this.offsetParent(),N=this.offset(),I=/^body|html$/i.test(K[0].tagName)?{top:0,left:0}:K.offset();N.top-=n(this,"marginTop");N.left-=n(this,"marginLeft");I.top+=n(K,"borderTopWidth");I.left+=n(K,"borderLeftWidth");J={top:N.top-I.top,left:N.left-I.left}}return J},offsetParent:function(){var I=this[0].offsetParent||document.body;while(I&&(!/^body|html$/i.test(I.tagName)&&b.css(I,"position")=="static")){I=I.offsetParent}return b(I)}});b.each(["Left","Top"],function(J,I){var K="scroll"+I;b.fn[K]=function(L){if(!this[0]){return null}return L!==l?this.each(function(){this==h||this==document?h.scrollTo(!J?L:b(h).scrollLeft(),J?L:b(h).scrollTop()):this[K]=L}):this[0]==h||this[0]==document?self[J?"pageYOffset":"pageXOffset"]||b.boxModel&&document.documentElement[K]||document.body[K]:this[0][K]}});b.each(["Height","Width"],function(M,K){var I=M?"Left":"Top",L=M?"Right":"Bottom",J=K.toLowerCase();b.fn["inner"+K]=function(){return this[0]?b.css(this[0],J,false,"padding"):null};b.fn["outer"+K]=function(O){return this[0]?b.css(this[0],J,false,O?"margin":"border"):null};var N=K.toLowerCase();b.fn[N]=function(O){return this[0]==h?document.compatMode=="CSS1Compat"&&document.documentElement["client"+K]||document.body["client"+K]:this[0]==document?Math.max(document.documentElement["client"+K],document.body["scroll"+K],document.documentElement["scroll"+K],document.body["offset"+K],document.documentElement["offset"+K]):O===l?(this.length?b.css(this[0],N):null):this.css(N,typeof O==="string"?O:O+"px")}})})();(function(b){var j=b.fn.remove,d=b.browser.mozilla&&(parseFloat(b.browser.version)<1.9);b.ui={version:"1.6rc6",plugin:{add:function(m,l,p){var o=b.ui[m].prototype;for(var n in p){o.plugins[n]=o.plugins[n]||[];o.plugins[n].push([l,p[n]])}},call:function(l,n,m){var p=l.plugins[n];if(!p){return}for(var o=0;o<p.length;o++){if(l.options[p[o][0]]){p[o][1].apply(l.element,m)}}}},contains:function(m,l){return document.compareDocumentPosition?m.compareDocumentPosition(l)&16:m!==l&&m.contains(l)},cssCache:{},css:function(l){if(b.ui.cssCache[l]){return b.ui.cssCache[l]}var m=b('<div class="ui-gen"></div>').addClass(l).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");b.ui.cssCache[l]=!!((!(/auto|default/).test(m.css("cursor"))||(/^[1-9]/).test(m.css("height"))||(/^[1-9]/).test(m.css("width"))||!(/none/).test(m.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(m.css("backgroundColor"))));try{b("body").get(0).removeChild(m.get(0))}catch(n){}return b.ui.cssCache[l]},hasScroll:function(n,l){if(b(n).css("overflow")=="hidden"){return false}var o=(l&&l=="left")?"scrollLeft":"scrollTop",m=false;if(n[o]>0){return true}n[o]=1;m=(n[o]>0);n[o]=0;return m},isOverAxis:function(l,n,m){return(l>n)&&(l<(n+m))},isOver:function(q,l,p,o,n,m){return b.ui.isOverAxis(q,p,n)&&b.ui.isOverAxis(l,o,m)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=b.attr,c=b.fn.removeAttr,k="http://www.w3.org/2005/07/aaa",g=/^aria-/,h=/^wairole:/;b.attr=function(m,l,n){var o=n!==undefined;return(l=="role"?(o?f.call(this,m,l,"wairole:"+n):(f.apply(this,arguments)||"").replace(h,"")):(g.test(l)?(o?m.setAttributeNS(k,l.replace(g,"aaa:"),n):f.call(this,m,l.replace(g,"aaa:"))):f.apply(this,arguments)))};b.fn.removeAttr=function(l){return(g.test(l)?this.each(function(){this.removeAttributeNS(k,l.replace(g,""))}):c.call(this,l))}}b.fn.extend({remove:function(){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var l;if((b.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){l=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(b.curCSS(this,"position",1))&&(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}else{l=this.parents().filter(function(){return(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!l.length?b(document):l}});b.extend(b.expr[":"],{data:function(n,m,l){return !!b.data(n,l[3])},focusable:function(l){var n=l.nodeName.toLowerCase(),m=b.attr(l,"tabindex");return(/input|select|textarea|button|object/.test(n)?!l.disabled:"a"==n||"area"==n?l.href||!isNaN(m):!isNaN(m))&&!b(l)["area"==n?"parents":"closest"](":hidden").length},tabbable:function(l){var m=b.attr(l,"tabindex");return(isNaN(m)||m>=0)&&b(l).is(":focusable")}});function a(p,l,q,o){function n(t){var s=b[p][l][t]||[];return(typeof s=="string"?s.split(/,?\s+/):s)}var m=n("getter");if(o.length==1&&typeof o[0]=="string"){m=m.concat(n("getterSetter"))}return(b.inArray(q,m)!=-1)}b.widget=function(l,m){var n=l.split(".")[0];l=l.split(".")[1];b.fn[l]=function(s){var p=(typeof s=="string"),q=Array.prototype.slice.call(arguments,1);if(p&&s.substring(0,1)=="_"){return this}if(p&&a(n,l,s,q)){var o=b.data(this[0],l);return(o?o[s].apply(o,q):undefined)}return this.each(function(){var t=b.data(this,l);(!t&&!p&&b.data(this,l,new b[n][l](this,s))._init());(t&&p&&b.isFunction(t[s])&&t[s].apply(t,q))})};b[n]=b[n]||{};b[n][l]=function(p,q){var o=this;this.namespace=n;this.widgetName=l;this.widgetEventPrefix=b[n][l].eventPrefix||l;this.widgetBaseClass=n+"-"+l;this.options=b.extend({},b.widget.defaults,b[n][l].defaults,b.metadata&&b.metadata.get(p)[l],q);this.element=b(p).bind("setData."+l,function(t,s,u){if(t.target==p){return o._setData(s,u)}}).bind("getData."+l,function(t,s){if(t.target==p){return o._getData(s)}}).bind("remove",function(){return o.destroy()})};b[n][l].prototype=b.extend({},b.widget.prototype,m);b[n][l].getterSetter="option"};b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(n,o){var m=n,l=this;if(typeof n=="string"){if(o===undefined){return this._getData(n)}m={};m[n]=o}b.each(m,function(p,q){l._setData(p,q)})},_getData:function(l){return this.options[l]},_setData:function(l,m){this.options[l]=m;if(l=="disabled"){this.element[m?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",m)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(n,o,p){var q=this.options[n],l=(n==this.widgetEventPrefix?n:this.widgetEventPrefix+n);o=b.Event(o);o.type=l;if(o.originalEvent){for(var m=b.event.props.length,s;m;){s=b.event.props[--m];o[s]=o.originalEvent[s]}}this.element.trigger(o,p);return !(b.isFunction(q)&&q.call(this.element[0],o,p)===false||o.isDefaultPrevented())}};b.widget.defaults={disabled:false};b.ui.mouse={_mouseInit:function(){var l=this;this.element.bind("mousedown."+this.widgetName,function(m){return l._mouseDown(m)}).bind("click."+this.widgetName,function(m){if(l._preventClickEvent){l._preventClickEvent=false;return false}});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(n){if(n.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(n));this._mouseDownEvent=n;var l=this,o=(n.which==1),m=(typeof this.options.cancel=="string"?b(n.target).parents().add(n.target).filter(this.options.cancel).length:false);if(!o||m||!this._mouseCapture(n)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){l.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(n)&&this._mouseDelayMet(n)){this._mouseStarted=(this._mouseStart(n)!==false);if(!this._mouseStarted){n.preventDefault();return true}}this._mouseMoveDelegate=function(p){return l._mouseMove(p)};this._mouseUpDelegate=function(p){return l._mouseUp(p)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(b.browser.safari||n.preventDefault());n.originalEvent.mouseHandled=true;return true},_mouseMove:function(l){if(b.browser.msie&&!l.button){return this._mouseUp(l)}if(this._mouseStarted){this._mouseDrag(l);return l.preventDefault()}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,l)!==false);(this._mouseStarted?this._mouseDrag(l):this._mouseUp(l))}return !this._mouseStarted},_mouseUp:function(l){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=true;this._mouseStop(l)}return false},_mouseDistanceMet:function(l){return(Math.max(Math.abs(this._mouseDownEvent.pageX-l.pageX),Math.abs(this._mouseDownEvent.pageY-l.pageY))>=this.options.distance)},_mouseDelayMet:function(l){return this.mouseDelayMet},_mouseStart:function(l){},_mouseDrag:function(l){},_mouseStop:function(l){},_mouseCapture:function(l){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.cssNamespace&&this.element.addClass(this.options.cssNamespace+"-draggable"));(this.options.disabled&&this.element.addClass(this.options.cssNamespace+"-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass(this.options.cssNamespace+"-draggable "+this.options.cssNamespace+"-draggable-dragging "+this.options.cssNamespace+"-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is("."+this.options.cssNamespace+"-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass(c.cssNamespace+"-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(c){var b=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){b=true}});return b},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body&&a.browser.mozilla)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&&f.containment.constructor!=Array){var c=a(f.containment)[0];if(!c){return}var d=a(f.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(g,j){if(!j){j=this.position}var b=g=="absolute"?1:-1;var f=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=(/(html|body)/i).test(c[0].tagName);return{top:(j.top+this.offset.relative.top*b+this.offset.parent.top*b-(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:c.scrollTop()))*b),left:(j.left+this.offset.relative.left*b+this.offset.parent.left*b-(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:c.scrollLeft())*b)}},_generatePosition:function(d){var j=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(f[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var c=d.pageX;var b=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0]){c=this.containment[0]+this.offset.click.left}if(d.pageY-this.offset.click.top<this.containment[1]){b=this.containment[1]+this.offset.click.top}if(d.pageX-this.offset.click.left>this.containment[2]){c=this.containment[2]+this.offset.click.left}if(d.pageY-this.offset.click.top>this.containment[3]){b=this.containment[3]+this.offset.click.top}}if(j.grid){var h=this.originalPageY+Math.round((b-this.originalPageY)/j.grid[1])*j.grid[1];b=this.containment?(!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:(!(h-this.offset.click.top<this.containment[1])?h-j.grid[1]:h+j.grid[1])):h;var g=this.originalPageX+Math.round((c-this.originalPageX)/j.grid[0])*j.grid[0];c=this.containment?(!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:(!(g-this.offset.click.left<this.containment[0])?g-j.grid[0]:g+j.grid[0])):g}}return{top:(b-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(k?0:f.scrollTop()))),left:(c-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:f.scrollLeft()))}},_clear:function(){this.helper.removeClass(this.options.cssNamespace+"-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.6rc6",eventPrefix:"drag",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cssNamespace:"ui",cursor:"default",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(b,d){var c=a(this).data("draggable"),f=c.options;c.sortables=[];a(f.connectToSortable).each(function(){a(typeof this=="string"?this+"":this).each(function(){if(a.data(this,"sortable")){var g=a.data(this,"sortable");c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",b,c)}})})},stop:function(b,d){var c=a(this).data("draggable");a.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;if(c.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,c)}})},drag:function(c,g){var f=a(this).data("draggable"),b=this;var d=function(k){var s=this.offset.click.top,p=this.offset.click.left;var h=this.positionAbs.top,m=this.positionAbs.left;var l=k.height,n=k.width;var q=k.top,j=k.left;return a.ui.isOver(h+s,m+p,q,j,l,n)};a.each(f.sortables,function(h){if(d.call(f,this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f._trigger("toSortable",c);f.dropped=this.instance.element;this.instance.fromOutside=f}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}f._trigger("fromSortable",c);f.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),f=a(this).data("draggable").options;if(b.css("cursor")){f._cursor=b.css("cursor")}b.css("cursor",f.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),f=a(this).data("draggable").options;if(b.css("opacity")){f._opacity=b.css("opacity")}b.css("opacity",f.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,f){var c=a(this).data("draggable"),g=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<g.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+g.scrollSpeed}else{if(d.pageY-c.overflowOffset.top<g.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<g.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(d.pageX-c.overflowOffset.left<g.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!="x"){if(d.pageY-a(document).scrollTop()<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!="y"){if(d.pageX-a(document).scrollLeft()<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),f=b.options;b.snapElements=[];a(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var h=a(this);var g=h.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})}})},drag:function(v,q){var h=a(this).data("draggable"),s=h.options;var A=s.snapTolerance;var z=q.absolutePosition.left,y=z+h.helperProportions.width,g=q.absolutePosition.top,f=g+h.helperProportions.height;for(var w=h.snapElements.length-1;w>=0;w--){var u=h.snapElements[w].left,p=u+h.snapElements[w].width,n=h.snapElements[w].top,B=n+h.snapElements[w].height;if(!((u-A<z&&z<p+A&&n-A<g&&g<B+A)||(u-A<z&&z<p+A&&n-A<f&&f<B+A)||(u-A<y&&y<p+A&&n-A<g&&g<B+A)||(u-A<y&&y<p+A&&n-A<f&&f<B+A))){if(h.snapElements[w].snapping){(h.options.snap.release&&h.options.snap.release.call(h.element,v,a.extend(h._uiHash(),{snapItem:h.snapElements[w].item})))}h.snapElements[w].snapping=false;continue}if(s.snapMode!="inner"){var c=Math.abs(n-f)<=A;var C=Math.abs(B-g)<=A;var k=Math.abs(u-y)<=A;var m=Math.abs(p-z)<=A;if(c){q.position.top=h._convertPositionTo("relative",{top:n-h.helperProportions.height,left:0}).top-h.margins.top}if(C){q.position.top=h._convertPositionTo("relative",{top:B,left:0}).top-h.margins.top}if(k){q.position.left=h._convertPositionTo("relative",{top:0,left:u-h.helperProportions.width}).left-h.margins.left}if(m){q.position.left=h._convertPositionTo("relative",{top:0,left:p}).left-h.margins.left}}var j=(c||C||k||m);if(s.snapMode!="outer"){var c=Math.abs(n-g)<=A;var C=Math.abs(B-f)<=A;var k=Math.abs(u-z)<=A;var m=Math.abs(p-y)<=A;if(c){q.position.top=h._convertPositionTo("relative",{top:n,left:0}).top-h.margins.top}if(C){q.position.top=h._convertPositionTo("relative",{top:B-h.helperProportions.height,left:0}).top-h.margins.top}if(k){q.position.left=h._convertPositionTo("relative",{top:0,left:u}).left-h.margins.left}if(m){q.position.left=h._convertPositionTo("relative",{top:0,left:p-h.helperProportions.width}).left-h.margins.left}}if(!h.snapElements[w].snapping&&(c||C||k||m||j)){(h.options.snap.snap&&h.options.snap.snap.call(h.element,v,a.extend(h._uiHash(),{snapItem:h.snapElements[w].item})))}h.snapElements[w].snapping=(c||C||k||m||j)}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var f=a(this).data("draggable").options;var d=a.makeArray(a(f.stack.group)).sort(function(h,g){return(parseInt(a(h).css("zIndex"),10)||f.stack.min)-(parseInt(a(g).css("zIndex"),10)||f.stack.min)});a(d).each(function(g){this.style.zIndex=f.stack.min+g});this[0].style.zIndex=f.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),f=a(this).data("draggable").options;if(b.css("zIndex")){f._zIndex=b.css("zIndex")}b.css("zIndex",f.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex)}}})})(jQuery);(function(a){a.widget("ui.droppable",{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(f){return f.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.cssNamespace&&this.element.addClass(this.options.cssNamespace+"-droppable"))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c<b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass(this.options.cssNamespace+"-droppable "+this.options.cssNamespace+"-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(b,c){if(b=="accept"){this.options.accept=c&&a.isFunction(c)?c:function(f){return f.is(accept)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(b){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(c&&this._trigger("activate",b,this.ui(c)))},_deactivate:function(b){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(c&&this._trigger("deactivate",b,this.ui(c)))},_over:function(b){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",b,this.ui(c))}},_out:function(b){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",b,this.ui(c))}},_drop:function(c,b){var d=b||a.ui.ddmanager.current;if(!d||(d.currentItem||d.element)[0]==this.element[0]){return false}var f=false;this.element.find(":data(droppable)").not("."+d.options.cssNamespace+"-draggable-dragging").each(function(){var g=a.data(this,"droppable");if(g.options.greedy&&a.ui.intersect(d,a.extend(g,{offset:g.element.offset()}),g.options.tolerance)){f=true;return false}});if(f){return false}if(this.options.accept.call(this.element[0],(d.currentItem||d.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",c,this.ui(d));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.6rc6",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,cssNamespace:"ui",greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(p,g,q){if(!g.offset){return false}var f=(p.positionAbs||p.position.absolute).left,d=f+p.helperProportions.width,s=(p.positionAbs||p.position.absolute).top,o=s+p.helperProportions.height;var h=g.offset.left,c=h+g.proportions.width,u=g.offset.top,n=u+g.proportions.height;switch(q){case"fit":return(h<f&&d<c&&u<s&&o<n);break;case"intersect":return(h<f+(p.helperProportions.width/2)&&d-(p.helperProportions.width/2)<c&&u<s+(p.helperProportions.height/2)&&o-(p.helperProportions.height/2)<n);break;case"pointer":var j=((p.positionAbs||p.position.absolute).left+(p.clickOffset||p.offset.click).left),k=((p.positionAbs||p.position.absolute).top+(p.clickOffset||p.offset.click).top),m=a.ui.isOver(k,j,u,h,g.proportions.height,g.proportions.width);return m;break;case"touch":return((s>=u&&s<=n)||(o>=u&&o<=n)||(s<u&&o>n))&&((f>=h&&f<=c)||(d>=h&&d<=c)||(f<h&&d>c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(f,h){var b=a.ui.ddmanager.droppables[f.options.scope];var g=h?h.type:null;var k=(f.currentItem||f.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d<b.length;d++){if(b[d].options.disabled||(f&&!b[d].options.accept.call(b[d].element[0],(f.currentItem||f.element)))){continue}for(var c=0;c<k.length;c++){if(k[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css("display")!="none";if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(g=="mousedown"){b[d]._activate.call(b[d],h)}}},drop:function(c,b){var d=false;a.each(a.ui.ddmanager.droppables[c.options.scope],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance)){d=this._drop.call(this,b)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],(c.currentItem||c.element))){this.isout=1;this.isover=0;this._deactivate.call(this,b)}});return d},drag:function(c,b){if(c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,b)}a.each(a.ui.ddmanager.droppables[c.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var d=a.ui.intersect(c,this,this.options.tolerance);var h=!d&&this.isover==1?"isout":(d&&this.isover==0?"isover":null);if(!h){return}var g;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");if(f.length){g=a.data(f[0],"droppable");g.greedyChild=(h=="isover"?1:0)}}if(g&&h=="isover"){g.isover=0;g.isout=1;g._out.call(g,b)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,b);if(g&&h=="isout"){g.isout=0;g.isover=1;g._over.call(g,b)}})}}})(jQuery);(function(b){b.widget("ui.resizable",b.extend({},b.ui.mouse,{_init:function(){var f=this,j=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,proportionallyResize:j.proportionallyResize?[j.proportionallyResize]:[],_helper:j.helper||j.ghost||j.animate?j.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&b.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(b('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent();this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(b.browser.safari&&j.preventDefault){this.originalElement.css("resize","none")}this.proportionallyResize.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=j.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var k=this.handles.split(",");this.handles={};for(var g=0;g<k.length;g++){var d=b.trim(k[g]),c="ui-resizable-"+d;var h=b('<div class="ui-resizable-handle '+c+'"></div>');if(/sw|se|ne|nw/.test(d)){h.css({zIndex:++j.zIndex})}if("se"==d){h.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[d]=".ui-resizable-"+d;this.element.append(h)}}this._renderAxis=function(p){p=p||this.element;for(var l in this.handles){if(this.handles[l].constructor==String){this.handles[l]=b(this.handles[l],this.element).show()}if(j.transparent){this.handles[l].css({opacity:0})}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=b(this.handles[l],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(l)?n.outerHeight():n.outerWidth();var m=["padding",/ne|nw|n/.test(l)?"Top":/se|sw|s/.test(l)?"Bottom":/^e$/.test(l)?"Right":"Left"].join("");if(!j.transparent){p.css(m,o)}this._proportionallyResize()}if(!b(this.handles[l]).length){continue}}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element);if(j.disableSelection){this._handles.disableSelection()}this._handles.mouseover(function(){if(!f.resizing){if(this.className){var l=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}f.axis=l&&l[1]?l[1]:"se"}});if(j.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){b(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var c=function(d){b(d).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){c(this.element);this.wrapper.parent().append(this.originalElement.css({position:this.wrapper.css("position"),width:this.wrapper.outerWidth(),height:this.wrapper.outerHeight(),top:this.wrapper.css("top"),left:this.wrapper.css("left")})).end().remove()}c(this.originalElement)},_mouseCapture:function(f){var c=false;for(var d in this.handles){if(b(this.handles[d])[0]==f.target){c=true}}return this.options.disabled||!!c},_mouseStart:function(g){var j=this.options,d=this.element.position(),f=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(f.is(".ui-draggable")||(/absolute/).test(f.css("position"))){f.css({position:"absolute",top:d.top,left:d.left})}if(b.browser.opera&&(/relative/).test(f.css("position"))){f.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var k=a(this.helper.css("left")),c=a(this.helper.css("top"));if(j.containment){k+=b(j.containment).scrollLeft()||0;c+=b(j.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:k,top:c};this.size=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalPosition={left:k,top:c};this.sizeDiff={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=(typeof j.aspectRatio=="number")?j.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);if(j.preserveCursor){var h=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",h=="auto"?this.axis+"-resize":h)}this._propagate("start",g);return true},_mouseDrag:function(c){var f=this.helper,g=this.options,m={},q=this,h=this.originalMousePosition,n=this.axis;var s=(c.pageX-h.left)||0,p=(c.pageY-h.top)||0;var l=this._change[n];if(!l){return false}var k=l.apply(this,[c,s,p]),j=b.browser.msie&&b.browser.version<7,d=this.sizeDiff;if(this._aspectRatio||c.shiftKey){k=this._updateRatio(k,c)}k=this._respectSize(k,c);this._propagate("resize",c);f.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this.proportionallyResize.length){this._proportionallyResize()}this._updateCache(k);this._trigger("resize",c,this.ui());return false},_mouseStop:function(f){this.resizing=false;var h=this.options,m=this;if(this._helper){var g=this.proportionallyResize,d=g.length&&(/textarea/i).test(g[0].nodeName),c=d&&b.ui.hasScroll(g[0],"left")?0:m.sizeDiff.height,k=d?0:m.sizeDiff.width;var n={width:(m.size.width-k),height:(m.size.height-c)},j=(parseInt(m.element.css("left"),10)+(m.position.left-m.originalPosition.left))||null,l=(parseInt(m.element.css("top"),10)+(m.position.top-m.originalPosition.top))||null;if(!h.animate){this.element.css(b.extend(n,{top:l,left:j}))}if(this._helper&&!h.animate){this._proportionallyResize()}}if(h.preserveCursor){b("body").css("cursor","auto")}this._propagate("stop",f);if(this._helper){this.helper.remove()}return false},_updateCache:function(c){var d=this.options;this.offset=this.helper.offset();if(c.left){this.position.left=c.left}if(c.top){this.position.top=c.top}if(c.height){this.size.height=c.height}if(c.width){this.size.width=c.width}},_updateRatio:function(g,f){var h=this.options,j=this.position,d=this.size,c=this.axis;if(g.height){g.width=(d.height*this.aspectRatio)}else{if(g.width){g.height=(d.width/this.aspectRatio)}}if(c=="sw"){g.left=j.left+(d.width-g.width);g.top=null}if(c=="nw"){g.top=j.top+(d.height-g.height);g.left=j.left+(d.width-g.width)}return g},_respectSize:function(l,f){var t=function(o){return !isNaN(parseInt(o,10))};var h=this.helper,j=this.options,v=this._aspectRatio||f.shiftKey,q=this.axis,s=t(l.width)&&j.maxWidth&&(j.maxWidth<l.width),g=t(l.height)&&j.maxHeight&&(j.maxHeight<l.height),m=t(l.width)&&j.minWidth&&(j.minWidth>l.width),u=t(l.height)&&j.minHeight&&(j.minHeight>l.height);if(m){l.width=j.minWidth}if(u){l.height=j.minHeight}if(s){l.width=j.maxWidth}if(g){l.height=j.maxHeight}var d=this.originalPosition.left+this.originalSize.width,p=this.position.top+this.size.height;var k=/sw|nw|w/.test(q),c=/nw|ne|n/.test(q);if(m&&k){l.left=d-j.minWidth}if(s&&k){l.left=d-j.maxWidth}if(u&&c){l.top=p-j.minHeight}if(g&&c){l.top=p-j.maxHeight}var n=!l.width&&!l.height;if(n&&!l.left&&l.top){l.top=null}else{if(n&&!l.top&&l.left){l.left=null}}return l},_proportionallyResize:function(){var j=this.options;if(!this.proportionallyResize.length){return}var d=this.helper||this.element;for(var f=0;f<this.proportionallyResize.length;f++){var g=this.proportionallyResize[f];if(!this.borderDif){var c=[g.css("borderTopWidth"),g.css("borderRightWidth"),g.css("borderBottomWidth"),g.css("borderLeftWidth")],h=[g.css("paddingTop"),g.css("paddingRight"),g.css("paddingBottom"),g.css("paddingLeft")];this.borderDif=b.map(c,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n})}if(b.browser.msie&&!(!(b(d).is(":hidden")||b(d).parents(":hidden").length))){continue}g.css({height:(d.height()-this.borderDif[0]-this.borderDif[2])||0,width:(d.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var d=this.element,g=this.options;this.elementOffset=d.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var c=b.browser.msie&&b.browser.version<7,h=(c?1:0),f=(c?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-h+"px",top:this.elementOffset.top-h+"px",zIndex:++g.zIndex});this.helper.appendTo("body");if(g.disableSelection){this.helper.disableSelection()}}else{this.helper=this.element}},_change:{e:function(f,d,c){return{width:this.originalSize.width+d}},w:function(g,d,c){var j=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+d,width:f.width-d}},n:function(g,d,c){var j=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+c,height:f.height-c}},s:function(f,d,c){return{height:this.originalSize.height+c}},se:function(f,d,c){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,d,c]))},sw:function(f,d,c){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,d,c]))},ne:function(f,d,c){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,d,c]))},nw:function(f,d,c){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,d,c]))}},_propagate:function(d,c){b.ui.plugin.call(this,d,[c,this.ui()]);(d!="resize"&&this._trigger(d,c,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));b.extend(b.ui.resizable,{version:"1.6rc6",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,disableSelection:true,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,preserveCursor:true,preventDefault:true,proportionallyResize:false,transparent:false,zIndex:1000}});b.ui.plugin.add("resizable","alsoResize",{start:function(d,f){var c=b(this).data("resizable"),g=c.options;_store=function(h){b(h).each(function(){b(this).data("resizable-alsoresize",{width:parseInt(b(this).width(),10),height:parseInt(b(this).height(),10),left:parseInt(b(this).css("left"),10),top:parseInt(b(this).css("top"),10)})})};if(typeof(g.alsoResize)=="object"&&!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{b.each(g.alsoResize,function(h,j){_store(h)})}}else{_store(g.alsoResize)}},resize:function(d,h){var c=b(this).data("resizable"),j=c.options,g=c.originalSize,l=c.originalPosition;var k={height:(c.size.height-g.height)||0,width:(c.size.width-g.width)||0,top:(c.position.top-l.top)||0,left:(c.position.left-l.left)||0},f=function(m,n){b(m).each(function(){var q=b(this),s=b(this).data("resizable-alsoresize"),p={},o=n&&n.length?n:["width","height","top","left"];b.each(o||["width","height","top","left"],function(t,v){var u=(s[v]||0)+(k[v]||0);if(u&&u>=0){p[v]=u||null}});if(/relative/.test(q.css("position"))&&b.browser.opera){c._revertToRelativePosition=true;q.css({position:"absolute",top:"auto",left:"auto"})}q.css(p)})};if(typeof(j.alsoResize)=="object"&&!j.alsoResize.nodeType){b.each(j.alsoResize,function(m,n){f(m,n)})}else{f(j.alsoResize)}},stop:function(d,f){var c=b(this).data("resizable");if(c._revertToRelativePosition&&b.browser.opera){c._revertToRelativePosition=false;el.css({position:"relative"})}b(this).removeData("resizable-alsoresize-start")}});b.ui.plugin.add("resizable","animate",{stop:function(g,n){var p=b(this).data("resizable"),j=p.options;var h=j.proportionallyResize,d=h&&(/textarea/i).test(h.get(0).nodeName),c=d&&b.ui.hasScroll(h.get(0),"left")?0:p.sizeDiff.height,l=d?0:p.sizeDiff.width;var f={width:(p.size.width-l),height:(p.size.height-c)},k=(parseInt(p.element.css("left"),10)+(p.position.left-p.originalPosition.left))||null,m=(parseInt(p.element.css("top"),10)+(p.position.top-p.originalPosition.top))||null;p.element.animate(b.extend(f,m&&k?{top:m,left:k}:{}),{duration:j.animateDuration,easing:j.animateEasing,step:function(){var o={width:parseInt(p.element.css("width"),10),height:parseInt(p.element.css("height"),10),top:parseInt(p.element.css("top"),10),left:parseInt(p.element.css("left"),10)};if(h){h.css({width:o.width,height:o.height})}p._updateCache(o);p._propagate("resize",g)}})}});b.ui.plugin.add("resizable","containment",{start:function(f,s){var u=b(this).data("resizable"),l=u.options,j=u.element;var d=l.containment,k=(d instanceof b)?d.get(0):(/parent/.test(d))?j.parent().get(0):d;if(!k){return}u.containerElement=b(k);if(/document/.test(d)||d==document){u.containerOffset={left:0,top:0};u.containerPosition={left:0,top:0};u.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var m=b(k),h=[];b(["Top","Right","Left","Bottom"]).each(function(p,o){h[p]=a(m.css("padding"+o))});u.containerOffset=m.offset();u.containerPosition=m.position();u.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var q=u.containerOffset,c=u.containerSize.height,n=u.containerSize.width,g=(b.ui.hasScroll(k,"left")?k.scrollWidth:n),t=(b.ui.hasScroll(k)?k.scrollHeight:c);u.parentData={element:k,left:q.left,top:q.top,width:g,height:t}}},resize:function(f,m){var s=b(this).data("resizable"),h=s.options,d=s.containerSize,n=s.containerOffset,k=s.size,l=s.position,q=h._aspectRatio||f.shiftKey,c={top:0,left:0},g=s.containerElement;if(g[0]!=document&&(/static/).test(g.css("position"))){c=n}if(l.left<(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-c.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(l.top<(s._helper?n.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}var j=Math.abs((s._helper?s.offset.left-c.left:(s.offset.left-c.left))+s.sizeDiff.width),p=Math.abs((s._helper?s.offset.top-c.top:(s.offset.top-n.top))+s.sizeDiff.height);if(j+s.size.width>=s.parentData.width){s.size.width=s.parentData.width-j;if(q){s.size.height=s.size.width/h.aspectRatio}}if(p+s.size.height>=s.parentData.height){s.size.height=s.parentData.height-p;if(q){s.size.width=s.size.height*h.aspectRatio}}},stop:function(d,m){var q=b(this).data("resizable"),g=q.options,l=q.position,n=q.containerOffset,c=q.containerPosition,f=q.containerElement;var k=b(q.helper),s=k.offset(),p=k.outerWidth()-q.sizeDiff.width,j=k.outerHeight()-q.sizeDiff.height;if(q._helper&&!g.animate&&(/relative/).test(f.css("position"))){b(this).css({left:s.left-c.left-n.left,width:p,height:j})}if(q._helper&&!g.animate&&(/static/).test(f.css("position"))){b(this).css({left:s.left-c.left-n.left,width:p,height:j})}}});b.ui.plugin.add("resizable","ghost",{start:function(f,g){var c=b(this).data("resizable"),h=c.options,j=h.proportionallyResize,d=c.size;c.ghost=c.originalElement.clone();c.ghost.css({opacity:0.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");c.ghost.appendTo(c.helper)},resize:function(d,f){var c=b(this).data("resizable"),g=c.options;if(c.ghost){c.ghost.css({position:"relative",height:c.size.height,width:c.size.width})}},stop:function(d,f){var c=b(this).data("resizable"),g=c.options;if(c.ghost&&c.helper){c.helper.get(0).removeChild(c.ghost.get(0))}}});b.ui.plugin.add("resizable","grid",{resize:function(c,m){var p=b(this).data("resizable"),g=p.options,k=p.size,h=p.originalSize,j=p.originalPosition,n=p.axis,l=g._aspectRatio||c.shiftKey;g.grid=typeof g.grid=="number"?[g.grid,g.grid]:g.grid;var f=Math.round((k.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),d=Math.round((k.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(n)){p.size.width=h.width+f;p.size.height=h.height+d}else{if(/^(ne)$/.test(n)){p.size.width=h.width+f;p.size.height=h.height+d;p.position.top=j.top-d}else{if(/^(sw)$/.test(n)){p.size.width=h.width+f;p.size.height=h.height+d;p.position.left=j.left-f}else{p.size.width=h.width+f;p.size.height=h.height+d;p.position.top=j.top-d;p.position.left=j.left-f}}}}});var a=function(c){return parseInt(c,10)||0}})(jQuery);(function(a){a.widget("ui.selectable",a.extend({},a.ui.mouse,{_init:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var b;this.refresh=function(){b=a(c.options.filter,c.element[0]);b.each(function(){var d=a(this);var f=d.offset();a.data(this,"selectable-item",{element:this,$element:d,left:f.left,top:f.top,right:f.left+d.outerWidth(),bottom:f.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=b.addClass("ui-selectee");this._mouseInit();this.helper=a(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger("start",d);a("body").append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var f=a.data(this,"selectable-item");f.startselected=true;if(!d.metaKey){f.$element.removeClass("ui-selected");f.selected=false;f.$element.addClass("ui-unselecting");f.unselecting=true;b._trigger("unselecting",d,{unselecting:f.element})}});a(d.target).parents().andSelf().each(function(){var f=a.data(this,"selectable-item");if(f){f.$element.removeClass("ui-unselecting").addClass("ui-selecting");f.unselecting=false;f.selecting=true;f.selected=true;b._trigger("selecting",d,{selecting:f.element});return false}})},_mouseDrag:function(k){var c=this;this.dragged=true;if(this.options.disabled){return}var h=this.options;var d=this.opos[0],j=this.opos[1],b=k.pageX,g=k.pageY;if(d>b){var f=b;b=d;d=f}if(j>g){var f=g;g=j;j=f}this.helper.css({left:d,top:j,width:b-d,height:g-j});this.selectees.each(function(){var l=a.data(this,"selectable-item");if(!l||l.element==c.element[0]){return}var m=false;if(h.tolerance=="touch"){m=(!(l.left>b||l.right<d||l.top>g||l.bottom<j))}else{if(h.tolerance=="fit"){m=(l.left>d&&l.right<b&&l.top>j&&l.bottom<g)}}if(m){if(l.selected){l.$element.removeClass("ui-selected");l.selected=false}if(l.unselecting){l.$element.removeClass("ui-unselecting");l.unselecting=false}if(!l.selecting){l.$element.addClass("ui-selecting");l.selecting=true;c._trigger("selecting",k,{selecting:l.element})}}else{if(l.selecting){if(k.metaKey&&l.startselected){l.$element.removeClass("ui-selecting");l.selecting=false;l.$element.addClass("ui-selected");l.selected=true}else{l.$element.removeClass("ui-selecting");l.selecting=false;if(l.startselected){l.$element.addClass("ui-unselecting");l.unselecting=true}c._trigger("unselecting",k,{unselecting:l.element})}}if(l.selected){if(!k.metaKey&&!l.startselected){l.$element.removeClass("ui-selected");l.selected=false;l.$element.addClass("ui-unselecting");l.unselecting=true;c._trigger("unselecting",k,{unselecting:l.element})}}}});return false},_mouseStop:function(d){var b=this;this.dragged=false;var c=this.options;a(".ui-unselecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-unselecting");f.unselecting=false;f.startselected=false;b._trigger("unselected",d,{unselected:f.element})});a(".ui-selecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-selecting").addClass("ui-selected");f.selecting=false;f.selected=true;f.startselected=true;b._trigger("selected",d,{selected:f.element})});this._trigger("stop",d);this.helper.remove();return false}}));a.extend(a.ui.selectable,{version:"1.6rc6",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);(function(a){a.widget("ui.sortable",a.extend({},a.ui.mouse,{_init:function(){var b=this.options;this.containerCache={};(this.options.cssNamespace&&this.element.addClass(this.options.cssNamespace+"-sortable"));this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass(this.options.cssNamespace+"-sortable "+this.options.cssNamespace+"-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}},_mouseCapture:function(g,b){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(g);var f=null,d=this,c=a(g.target).parents().each(function(){if(a.data(this,"sortable-item")==d){f=a(this);return false}});if(a.data(g.target,"sortable-item")==d){f=a(g.target)}if(!f){return false}if(this.options.handle&&!b){var h=false;a(this.options.handle,f).find("*").andSelf().each(function(){if(this==g.target){h=true}});if(!h){return false}}this.currentItem=f;this._removeCurrentsFromItems();return true},_mouseStart:function(g,b,f){var h=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(g);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:g.pageX-this.offset.left,top:g.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(g);this.originalPageX=g.pageX;this.originalPageY=g.pageY;if(h.cursorAt){this._adjustOffsetFromHelper(h.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(h.containment){this._setContainment()}if(h.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",h.cursor)}if(h.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",h.opacity)}if(h.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",h.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",g,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!f){for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("activate",g,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!h.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,g)}this.dragging=true;this.helper.addClass(h.cssNamespace+"-sortable-helper");this._mouseDrag(g);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var h=this.options,d=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-g.pageY<h.scrollSensitivity){this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+h.scrollSpeed}else{if(g.pageY-this.overflowOffset.top<h.scrollSensitivity){this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-h.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-g.pageX<h.scrollSensitivity){this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(g.pageX-this.overflowOffset.left<h.scrollSensitivity){this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-h.scrollSpeed}}}else{if(g.pageY-a(document).scrollTop()<h.scrollSensitivity){d=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<h.scrollSensitivity){d=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}if(g.pageX-a(document).scrollLeft()<h.scrollSensitivity){d=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<h.scrollSensitivity){d=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}if(d!==false&&a.ui.ddmanager&&!h.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,g)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var c=this.items.length-1;c>=0;c--){var f=this.items[c],b=f.item[0],j=this._intersectsWithPointer(f);if(!j){continue}if(b!=this.currentItem[0]&&this.placeholder[j==1?"next":"prev"]()[0]!=b&&!a.ui.contains(this.placeholder[0],b)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],b):true)){this.direction=j==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f)){this.options.sortIndicator.call(this,g,f)}else{break}this._trigger("change",g,this._uiHash());break}}this._contactContainers(g);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,g)}this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,f){if(!c){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var d=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,f)}return false},cancel:function(){var b=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass(this.options.cssNamespace+"-sortable-helper")}else{this.currentItem.show()}for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,b._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};a(b).each(function(){var f=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||(/(.+)[-=_](.+)/));if(f){c.push((d.key||f[1]+"[]")+"="+(d.key&&d.expression?f[1]:f[2]))}});return c.join("&")},toArray:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||"id")||"")});return c},_intersectsWith:function(p){var f=this.positionAbs.left,d=f+this.helperProportions.width,n=this.positionAbs.top,m=n+this.helperProportions.height;var g=p.left,c=g+p.width,o=p.top,k=o+p.height;var q=this.offset.click.top,j=this.offset.click.left;var h=(n+q)>o&&(n+q)<k&&(f+j)>g&&(f+j)<c;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>p[this.floating?"width":"height"])){return h}else{return(g<f+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&o<n+(this.helperProportions.height/2)&&m-(this.helperProportions.height/2)<k)}},_intersectsWithPointer:function(d){var h=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=h&&c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&&f=="right")||b=="down")?2:1):(b&&(b=="down"?2:1))},_intersectsWithSides:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+(f.height/2),f.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+(f.width/2),f.width),b=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(this.floating&&g){return((g=="right"&&c)||(g=="left"&&!c))}else{return b&&((b=="down"&&d)||(b=="up"&&!d))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_getItemsAsjQuery:function(b){var m=this;var h=[];var d=[];if(this.options.connectWith&&b){var k=this.options.connectWith.constructor==String?[this.options.connectWith]:this.options.connectWith;for(var f=k.length-1;f>=0;f--){var l=a(k[f]);for(var c=l.length-1;c>=0;c--){var g=a.data(l[c],"sortable");if(g&&g!=this&&!g.options.disabled){d.push([a.isFunction(g.options.items)?g.options.items.call(g.element):a(g.options.items,g.element).not("."+g.options.cssNamespace+"-sortable-helper"),g])}}}}d.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not("."+this.options.cssNamespace+"-sortable-helper"),this]);for(var f=d.length-1;f>=0;f--){d[f][0].each(function(){h.push(this)})}return a(h)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(":data(sortable-item)");for(var c=0;c<this.items.length;c++){for(var b=0;b<d.length;b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(b){this.items=[];this.containers=[this];var k=this.items;var p=this;var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];if(this.options.connectWith){for(var g=this.options.connectWith.length-1;g>=0;g--){var m=a(this.options.connectWith[g]);for(var d=m.length-1;d>=0;d--){var h=a.data(m[d],"sortable");if(h&&h!=this&&!h.options.disabled){f.push([a.isFunction(h.options.items)?h.options.items.call(h.element[0],b,{item:this.currentItem}):a(h.options.items,h.element),h]);this.containers.push(h)}}}}for(var g=f.length-1;g>=0;g--){var l=f[g][1];var c=f[g][0];for(var d=0,n=c.length;d<n;d++){var o=a(c[d]);o.data("sortable-item",l);k.push({item:o,instance:l,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d>=0;d--){var f=this.items[d];if(f.instance!=this.currentContainer&&this.currentContainer&&f.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,f.item):f.item;if(!b){if(this.options.accurateIntersection){f.width=c.outerWidth();f.height=c.outerHeight()}else{f.width=c[0].offsetWidth;f.height=c[0].offsetHeight}}var g=c.offset();f.left=g.left;f.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d>=0;d--){var g=this.containers[d].element.offset();this.containers[d].containerCache.left=g.left;this.containers[d].containerCache.top=g.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var c=d||this,f=c.options;if(!f.placeholder||f.placeholder.constructor==String){var b=f.placeholder;f.placeholder={element:function(){var g=a(document.createElement(c.currentItem[0].nodeName)).addClass(b||c.currentItem[0].className+" "+c.options.cssNamespace+"-sortable-placeholder").removeClass(c.options.cssNamespace+"-sortable-helper")[0];if(!b){g.style.visibility="hidden"}return g},update:function(g,h){if(b&&!f.forcePlaceholderSize){return}if(!h.height()){h.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10))}if(!h.width()){h.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}}c.placeholder=a(f.placeholder.element.call(c.element,c.currentItem));c.currentItem.after(c.placeholder);f.placeholder.update(c,c.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c>=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var k=10000;var h=null;var f=this.positionAbs[this.containers[c].floating?"left":"top"];for(var b=this.items.length-1;b>=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var g=this.items[b][this.containers[c].floating?"left":"top"];if(Math.abs(g-f)<k){k=Math.abs(g-f);h=this.items[b]}}if(!h&&!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[c];h?this.options.sortIndicator.call(this,d,h,null,true):this.options.sortIndicator.call(this,d,null,this.containers[c].element,true);this._trigger("change",d,this._uiHash());this.containers[c]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[c]._trigger("over",d,this._uiHash(this));this.containers[c].containerCache.over=1}}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",d,this._uiHash(this));this.containers[c].containerCache.over=0}}}},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper=="clone"?this.currentItem.clone():this.currentItem);if(!b.parents("body").length){a(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(b[0].style.width==""||d.forceHelperSize){b.width(this.currentItem.width())}if(b[0].style.height==""||d.forceHelperSize){b.height(this.currentItem.height())}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body&&a.browser.mozilla)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)){var c=a(f.containment)[0];var d=a(f.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(g,j){if(!j){j=this.position}var b=g=="absolute"?1:-1;var f=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=(/(html|body)/i).test(c[0].tagName);return{top:(j.top+this.offset.relative.top*b+this.offset.parent.top*b-(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:c.scrollTop()))*b),left:(j.left+this.offset.relative.left*b+this.offset.parent.left*b-(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:c.scrollLeft())*b)}},_generatePosition:function(d){var j=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(f[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var c=d.pageX;var b=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0]){c=this.containment[0]+this.offset.click.left}if(d.pageY-this.offset.click.top<this.containment[1]){b=this.containment[1]+this.offset.click.top}if(d.pageX-this.offset.click.left>this.containment[2]){c=this.containment[2]+this.offset.click.left}if(d.pageY-this.offset.click.top>this.containment[3]){b=this.containment[3]+this.offset.click.top}}if(j.grid){var h=this.originalPageY+Math.round((b-this.originalPageY)/j.grid[1])*j.grid[1];b=this.containment?(!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:(!(h-this.offset.click.top<this.containment[1])?h-j.grid[1]:h+j.grid[1])):h;var g=this.originalPageX+Math.round((c-this.originalPageX)/j.grid[0])*j.grid[0];c=this.containment?(!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:(!(g-this.offset.click.left<this.containment[0])?g-j.grid[0]:g+j.grid[0])):g}}return{top:(b-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(k?0:f.scrollTop()))),left:(c-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:f.scrollLeft()))}},_rearrange:function(h,g,c,f){c?c[0].appendChild(this.placeholder[0]):g.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?g.item[0]:g.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var d=this,b=this.counter;window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!f)}},0)},_clear:function(d,g){this.reverting=false;var f=[],b=this;if(!this._noFinalSort){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS){if(this._storedCSS[c]=="auto"||this._storedCSS[c]=="static"){this._storedCSS[c]=""}}this.currentItem.css(this._storedCSS).removeClass(this.options.cssNamespace+"-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!g){f.push(function(h){this._trigger("receive",h,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not("."+this.options.cssNamespace+"-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!g){f.push(function(h){this._trigger("update",h,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!g){f.push(function(h){this._trigger("remove",h,this._uiHash())})}for(var c=this.containers.length-1;c>=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&&!g){f.push((function(h){return function(j){h._trigger("receive",j,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(h){return function(j){h._trigger("update",j,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c>=0;c--){if(!g){f.push((function(h){return function(j){h._trigger("deactivate",j,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(h){return function(j){h._trigger("out",j,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedCursor)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!g){this._trigger("beforeStop",d,this._uiHash());for(var c=0;c<f.length;c++){f[c].call(this,d)}this._trigger("stop",d,this._uiHash())}return false}if(!g){this._trigger("beforeStop",d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!g){for(var c=0;c<f.length;c++){f[c].call(this,d)}this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:"serialize toArray",version:"1.6rc6",defaults:{accurateIntersection:true,appendTo:"parent",cancel:":input,option",connectWith:false,cssNamespace:"ui",delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,handle:false,helper:"original",items:"> *",placeholder:false,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,sortIndicator:a.ui.sortable.prototype._rearrange,tolerance:"intersect",zIndex:1000}})})(jQuery);(function(d){d.effects=d.effects||{};d.extend(d.effects,{version:"1.6rc6",save:function(g,j){for(var h=0;h<j.length;h++){if(j[h]!==null){g.data("ec.storage."+j[h],g[0].style[j[h]])}}},restore:function(g,j){for(var h=0;h<j.length;h++){if(j[h]!==null){g.css(j[h],g.data("ec.storage."+j[h]))}}},setMode:function(g,h){if(h=="toggle"){h=g.is(":hidden")?"show":"hide"}return h},getBaseline:function(j,h){var k,g;switch(j[0]){case"top":k=0;break;case"middle":k=0.5;break;case"bottom":k=1;break;default:k=j[0]/h.height}switch(j[1]){case"left":g=0;break;case"center":g=0.5;break;case"right":g=1;break;default:g=j[1]/h.width}return{x:g,y:k}},createWrapper:function(g){if(g.parent().is(".ui-effects-wrapper")){return g.parent()}var h={width:g.outerWidth(true),height:g.outerHeight(true),"float":g.css("float")};g.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var l=g.parent();if(g.css("position")=="static"){l.css({position:"relative"});g.css({position:"relative"})}else{var k=g.css("top");if(isNaN(parseInt(k,10))){k="auto"}var j=g.css("left");if(isNaN(parseInt(j,10))){j="auto"}l.css({position:g.css("position"),top:k,left:j,zIndex:g.css("z-index")}).show();g.css({position:"relative",top:0,left:0})}l.css(h);return l},removeWrapper:function(g){if(g.parent().is(".ui-effects-wrapper")){return g.parent().replaceWith(g)}return g},setTransition:function(h,k,g,j){j=j||{};d.each(k,function(m,l){unit=h.cssUnit(l);if(unit[0]>0){j[l]=unit[0]*g+unit[1]}});return j},animateClass:function(j,m,l,k){var g=(typeof l=="function"?l:(k?k:null));var h=(typeof l=="string"?l:null);return this.each(function(){var t={};var q=d(this);var s=q.attr("style")||"";if(typeof s=="object"){s=s.cssText}if(j.toggle){q.hasClass(j.toggle)?j.remove=j.toggle:j.add=j.toggle}var o=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(j.add){q.addClass(j.add)}if(j.remove){q.removeClass(j.remove)}var p=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(j.add){q.removeClass(j.add)}if(j.remove){q.addClass(j.remove)}for(var u in p){if(typeof p[u]!="function"&&p[u]&&u.indexOf("Moz")==-1&&u.indexOf("length")==-1&&p[u]!=o[u]&&(u.match(/color/i)||(!u.match(/color/i)&&!isNaN(parseInt(p[u],10))))&&(o.position!="static"||(o.position=="static"&&!u.match(/left|top|bottom|right/)))){t[u]=p[u]}}q.animate(t,m,h,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=s}else{d(this).attr("style",s)}if(j.add){d(this).addClass(j.add)}if(j.remove){d(this).removeClass(j.remove)}if(g){g.apply(this,arguments)}})})}});function a(h,g){var l=h[1]&&h[1].constructor==Object?h[1]:{};if(g){l.mode=g}var j=h[1]&&h[1].constructor!=Object?h[1]:l.duration;j=d.fx.off?0:typeof j==="number"?j:d.fx.speeds[j]||d.fx.speeds._default;var k=l.callback||(d.isFunction(h[2])&&h[2])||(d.isFunction(h[3])&&h[3]);return[h[0],l,j,k]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(h,g,j,k){return d.effects[h]?d.effects[h].call(this,{method:h,options:g||{},duration:j,callback:k}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"toggle"))}},addClass:function(k,g,j,h){return g?d.effects.animateClass.apply(this,[{add:k},g,j,h]):this._addClass(k)},removeClass:function(k,g,j,h){return g?d.effects.animateClass.apply(this,[{remove:k},g,j,h]):this._removeClass(k)},toggleClass:function(k,g,j,h){return((typeof g!=="boolean")&&g)?d.effects.animateClass.apply(this,[{toggle:k},g,j,h]):this._toggleClass(k,g)},morph:function(h,l,g,k,j){return d.effects.animateClass.apply(this,[{add:l,remove:h},g,k,j])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(g){var h=this.css(g),j=[];d.each(["em","px","%","pt"],function(k,l){if(h.indexOf(l)>0){j=[parseFloat(h),l]}});return j}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(h,g){d.fx.step[g]=function(j){if(j.state==0){j.start=f(j.elem,g);j.end=b(j.end)}j.elem.style[g]="rgb("+[Math.max(Math.min(parseInt((j.pos*(j.end[0]-j.start[0]))+j.start[0],10),255),0),Math.max(Math.min(parseInt((j.pos*(j.end[1]-j.start[1]))+j.start[1],10),255),0),Math.max(Math.min(parseInt((j.pos*(j.end[2]-j.start[2]))+j.start[2],10),255),0)].join(",")+")"}});function b(g){var h;if(g&&g.constructor==Array&&g.length==3){return g}if(h=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10)]}if(h=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(h[1])*2.55,parseFloat(h[2])*2.55,parseFloat(h[3])*2.55]}if(h=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}if(h=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}if(h=/rgba\(0, 0, 0, 0\)/.exec(g)){return c.transparent}return c[d.trim(g).toLowerCase()]}function f(j,g){var h;do{h=d.curCSS(j,g);if(h!=""&&h!="transparent"||d.nodeName(j,"body")){break}g="backgroundColor"}while(j=j.parentNode);return b(h)}var c={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]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(h,j,g,l,k){return d.easing[d.easing.def](h,j,g,l,k)},easeInQuad:function(h,j,g,l,k){return l*(j/=k)*j+g},easeOutQuad:function(h,j,g,l,k){return -l*(j/=k)*(j-2)+g},easeInOutQuad:function(h,j,g,l,k){if((j/=k/2)<1){return l/2*j*j+g}return -l/2*((--j)*(j-2)-1)+g},easeInCubic:function(h,j,g,l,k){return l*(j/=k)*j*j+g},easeOutCubic:function(h,j,g,l,k){return l*((j=j/k-1)*j*j+1)+g},easeInOutCubic:function(h,j,g,l,k){if((j/=k/2)<1){return l/2*j*j*j+g}return l/2*((j-=2)*j*j+2)+g},easeInQuart:function(h,j,g,l,k){return l*(j/=k)*j*j*j+g},easeOutQuart:function(h,j,g,l,k){return -l*((j=j/k-1)*j*j*j-1)+g},easeInOutQuart:function(h,j,g,l,k){if((j/=k/2)<1){return l/2*j*j*j*j+g}return -l/2*((j-=2)*j*j*j-2)+g},easeInQuint:function(h,j,g,l,k){return l*(j/=k)*j*j*j*j+g},easeOutQuint:function(h,j,g,l,k){return l*((j=j/k-1)*j*j*j*j+1)+g},easeInOutQuint:function(h,j,g,l,k){if((j/=k/2)<1){return l/2*j*j*j*j*j+g}return l/2*((j-=2)*j*j*j*j+2)+g},easeInSine:function(h,j,g,l,k){return -l*Math.cos(j/k*(Math.PI/2))+l+g},easeOutSine:function(h,j,g,l,k){return l*Math.sin(j/k*(Math.PI/2))+g},easeInOutSine:function(h,j,g,l,k){return -l/2*(Math.cos(Math.PI*j/k)-1)+g},easeInExpo:function(h,j,g,l,k){return(j==0)?g:l*Math.pow(2,10*(j/k-1))+g},easeOutExpo:function(h,j,g,l,k){return(j==k)?g+l:l*(-Math.pow(2,-10*j/k)+1)+g},easeInOutExpo:function(h,j,g,l,k){if(j==0){return g}if(j==k){return g+l}if((j/=k/2)<1){return l/2*Math.pow(2,10*(j-1))+g}return l/2*(-Math.pow(2,-10*--j)+2)+g},easeInCirc:function(h,j,g,l,k){return -l*(Math.sqrt(1-(j/=k)*j)-1)+g},easeOutCirc:function(h,j,g,l,k){return l*Math.sqrt(1-(j=j/k-1)*j)+g},easeInOutCirc:function(h,j,g,l,k){if((j/=k/2)<1){return -l/2*(Math.sqrt(1-j*j)-1)+g}return l/2*(Math.sqrt(1-(j-=2)*j)+1)+g},easeInElastic:function(h,k,g,o,n){var l=1.70158;var m=0;var j=o;if(k==0){return g}if((k/=n)==1){return g+o}if(!m){m=n*0.3}if(j<Math.abs(o)){j=o;var l=m/4}else{var l=m/(2*Math.PI)*Math.asin(o/j)}return -(j*Math.pow(2,10*(k-=1))*Math.sin((k*n-l)*(2*Math.PI)/m))+g},easeOutElastic:function(h,k,g,o,n){var l=1.70158;var m=0;var j=o;if(k==0){return g}if((k/=n)==1){return g+o}if(!m){m=n*0.3}if(j<Math.abs(o)){j=o;var l=m/4}else{var l=m/(2*Math.PI)*Math.asin(o/j)}return j*Math.pow(2,-10*k)*Math.sin((k*n-l)*(2*Math.PI)/m)+o+g},easeInOutElastic:function(h,k,g,o,n){var l=1.70158;var m=0;var j=o;if(k==0){return g}if((k/=n/2)==2){return g+o}if(!m){m=n*(0.3*1.5)}if(j<Math.abs(o)){j=o;var l=m/4}else{var l=m/(2*Math.PI)*Math.asin(o/j)}if(k<1){return -0.5*(j*Math.pow(2,10*(k-=1))*Math.sin((k*n-l)*(2*Math.PI)/m))+g}return j*Math.pow(2,-10*(k-=1))*Math.sin((k*n-l)*(2*Math.PI)/m)*0.5+o+g},easeInBack:function(h,j,g,m,l,k){if(k==undefined){k=1.70158}return m*(j/=l)*j*((k+1)*j-k)+g},easeOutBack:function(h,j,g,m,l,k){if(k==undefined){k=1.70158}return m*((j=j/l-1)*j*((k+1)*j+k)+1)+g},easeInOutBack:function(h,j,g,m,l,k){if(k==undefined){k=1.70158}if((j/=l/2)<1){return m/2*(j*j*(((k*=(1.525))+1)*j-k))+g}return m/2*((j-=2)*j*(((k*=(1.525))+1)*j+k)+2)+g},easeInBounce:function(h,j,g,l,k){return l-d.easing.easeOutBounce(h,k-j,0,l,k)+g},easeOutBounce:function(h,j,g,l,k){if((j/=k)<(1/2.75)){return l*(7.5625*j*j)+g}else{if(j<(2/2.75)){return l*(7.5625*(j-=(1.5/2.75))*j+0.75)+g}else{if(j<(2.5/2.75)){return l*(7.5625*(j-=(2.25/2.75))*j+0.9375)+g}else{return l*(7.5625*(j-=(2.625/2.75))*j+0.984375)+g}}}},easeInOutBounce:function(h,j,g,l,k){if(j<k/2){return d.easing.easeInBounce(h,j*2,0,l,k)*0.5+g}return d.easing.easeOutBounce(h,j*2-k,0,l,k)*0.5+l*0.5+g}})})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var f=a(this),d=["backgroundImage","backgroundColor","opacity"];var j=a.effects.setMode(f,b.options.mode||"show");var c=b.options.color||"#ffff99";var h=f.css("backgroundColor");a.effects.save(f,d);f.show();f.css({backgroundImage:"none",backgroundColor:c});var g={backgroundColor:h};if(j=="hide"){g.opacity=0}f.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(j=="hide"){f.hide()}a.effects.restore(f,d);if(j=="show"&&a.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}f.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this);var g=a.effects.setMode(d,b.options.mode||"show");var f=b.options.times||5;var h=b.duration?b.duration/2:a.fx.speeds._default/2;if(g=="hide"){f--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},h,b.options.easing);f=f-2}for(var c=0;c<f;c++){d.animate({opacity:0},h,b.options.easing).animate({opacity:1},h,b.options.easing)}if(g=="hide"){d.animate({opacity:0},h,b.options.easing,function(){d.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{d.animate({opacity:0},h,b.options.easing).animate({opacity:1},h,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);(function(b){var a={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};b.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var m=this,k=this.options,l=k.title||this.originalTitle||"&nbsp;",j=b.ui.dialog.getTitleId(this.element),n=(this.uiDialog=b("<div/>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+k.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:k.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(o){(k.closeOnEscape&&o.keyCode&&o.keyCode==b.ui.keyCode.ESCAPE&&m.close(o))}).attr({role:"dialog","aria-labelledby":j}).mousedown(function(o){m.moveToTop(o)}),c=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n),g=(this.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),d=b('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){d.addClass("ui-state-hover")},function(){d.removeClass("ui-state-hover")}).focus(function(){d.addClass("ui-state-focus")}).blur(function(){d.removeClass("ui-state-focus")}).mousedown(function(o){o.stopPropagation()}).click(function(o){m.close(o);return false}).appendTo(g),f=(this.uiDialogTitlebarCloseText=b("<span/>")).addClass("ui-icon ui-icon-closethick").text(k.closeText).appendTo(d),h=b("<span/>").addClass("ui-dialog-title").attr("id",j).html(l).prependTo(g);g.find("*").add(g).disableSelection();(k.draggable&&b.fn.draggable&&this._makeDraggable());(k.resizable&&b.fn.resizable&&this._makeResizable());this._createButtons(k.buttons);this._isOpen=false;(k.bgiframe&&b.fn.bgiframe&&n.bgiframe());(k.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());(this.shadow&&this._destroyShadow());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(c){if(false===this._trigger("beforeclose",c)){return}if(this.options.onClose){this.options.onClose()}(this.overlay&&this.overlay.destroy());(this.shadow&&this._destroyShadow());this.uiDialog.hide(this.options.hide).unbind("keypress.ui-dialog");this._trigger("close",c);b.ui.dialog.overlay.resize();this._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(h,g){if((this.options.modal&&!h)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",g)}var f=this.options.zIndex,d=this.options;b(".ui-dialog:visible").each(function(){f=Math.max(f,parseInt(b(this).css("z-index"),10)||d.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++f));(this.shadow&&this.shadow.css("z-index",++f));var c={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++f);this.element.attr(c);this._trigger("focus",g)},open:function(f){if(this._isOpen){return}var c=this.options,d=this.uiDialog;this.overlay=c.modal?new b.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(c.position);d.show(c.show);this.moveToTop(true,f);(c.modal&&d.bind("keypress.ui-dialog",function(j){if(j.keyCode!=b.ui.keyCode.TAB){return}var h=b(":tabbable",this),k=h.filter(":first")[0],g=h.filter(":last")[0];if(j.target==g&&!j.shiftKey){setTimeout(function(){k.focus()},1)}else{if(j.target==k&&j.shiftKey){setTimeout(function(){g.focus()},1)}}}));b([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d.find(".ui-dialog-titlebar :tabbable:first")).filter(":first").focus();if(c.shadow){this._createShadow()}this._trigger("open",f);this._isOpen=true},_createButtons:function(g){var c=this,f=false,d=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&b.each(g,function(){return !(f=true)}));if(f){b.each(g,function(h,j){b('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){j.apply(c.element[0],arguments)}).hover(function(){b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){b(this).addClass("ui-state-focus")}).blur(function(){b(this).removeClass("ui-state-focus")}).appendTo(d)});d.appendTo(this.uiDialog)}},_makeDraggable:function(){var c=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content",helper:d.dragHelper,handle:".ui-dialog-titlebar",containment:"document",start:function(){(d.dragStart&&d.dragStart.apply(c.element[0],arguments));if(b.browser.msie&&b.browser.version<7&&c.shadow){c.shadow.hide()}},drag:function(){(d.drag&&d.drag.apply(c.element[0],arguments));c._refreshShadow(1)},stop:function(){(d.dragStop&&d.dragStop.apply(c.element[0],arguments));b.ui.dialog.overlay.resize();if(b.browser.msie&&b.browser.version<7&&c.shadow){c.shadow.show()}c._refreshShadow()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var c=this,f=this.options,d=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,helper:f.resizeHelper,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){(f.resizeStart&&f.resizeStart.apply(c.element[0],arguments));if(b.browser.msie&&b.browser.version<7&&c.shadow){c.shadow.hide()}},resize:function(){(f.resize&&f.resize.apply(c.element[0],arguments));c._refreshShadow(1)},handles:d,stop:function(){(f.resizeStop&&f.resizeStop.apply(c.element[0],arguments));b.ui.dialog.overlay.resize();if(b.browser.msie&&b.browser.version<7&&c.shadow){c.shadow.show()}c._refreshShadow()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(j){var d=b(window),g=b(document),h=g.scrollTop(),c=g.scrollLeft(),f=h;if(b.inArray(j,["center","top","right","bottom","left"])>=0){j=[j=="right"||j=="left"?j:"center",j=="top"||j=="bottom"?j:"middle"]}if(j.constructor!=Array){j=["center","middle"]}if(j[0].constructor==Number){c+=j[0]}else{switch(j[0]){case"left":c+=0;break;case"right":c+=d.width()-this.uiDialog.outerWidth();break;default:case"center":c+=(d.width()-this.uiDialog.outerWidth())/2}}if(j[1].constructor==Number){h+=j[1]}else{switch(j[1]){case"top":h+=0;break;case"bottom":h+=d.height()-this.uiDialog.outerHeight();break;default:case"middle":h+=(d.height()-this.uiDialog.outerHeight())/2}}h=Math.max(h,f);this.uiDialog.css({top:h,left:c})},_setData:function(c,f){(a[c]&&this.uiDialog.data(a[c],f));switch(c){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":b(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break}b.widget.prototype._setData.apply(this,arguments)},_size:function(){var c=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:c.width}).height();this.element.css({minHeight:Math.max(c.minHeight-d,0),height:c.height=="auto"?"auto":c.height-d})},_createShadow:function(){this.shadow=b('<div class="ui-widget-shadow"></div>').css("position","absolute").appendTo(document.body);this._refreshShadow();return this.shadow},_refreshShadow:function(c){if(c&&b.browser.msie&&b.browser.version<7){return}var d=this.uiDialog.offset();this.shadow.css({left:d.left,top:d.top,width:this.uiDialog.outerWidth(),height:this.uiDialog.outerHeight()})},_destroyShadow:function(){this.shadow.remove();this.shadow=null}});b.extend(b.ui.dialog,{version:"1.6rc6",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",draggable:true,height:"auto",minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,shadow:true,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,getTitleId:function(c){return"ui-dialog-title-"+(c.attr("id")||++this.uuid)},overlay:function(c){this.$el=b.ui.dialog.overlay.create(c)}});b.extend(b.ui.dialog.overlay,{instances:[],events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(c){if(this.instances.length===0){setTimeout(function(){b("a, :input").bind(b.ui.dialog.overlay.events,function(){var f=false;var j=b(this).parents(".ui-dialog");if(j.length){var h=b(".ui-dialog-overlay");if(h.length){var g=parseInt(h.css("z-index"),10);h.each(function(){g=Math.max(g,parseInt(b(this).css("z-index"),10))});f=parseInt(j.css("z-index"),10)>g}else{f=true}}return f})},1);b(document).bind("keydown.dialog-overlay",function(f){(c.options.closeOnEscape&&f.keyCode&&f.keyCode==b.ui.keyCode.ESCAPE&&c.close(f))});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var d=b("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(c.options.bgiframe&&b.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(c){this.instances.splice(b.inArray(this.instances,c),1);if(this.instances.length===0){b("a, :input").add([document,window]).unbind(".dialog-overlay")}c.remove()},height:function(){if(b.browser.msie&&b.browser.version<7){var d=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(d<c){return b(window).height()+"px"}else{return d+"px"}}else{return b(document).height()+"px"}},width:function(){if(b.browser.msie&&b.browser.version<7){var c=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(c<d){return b(window).width()+"px"}else{return c+"px"}}else{return b(document).width()+"px"}},resize:function(){var c=b([]);b.each(b.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.widget("ui.progressbar",{_init:function(){var b=this,c=this.options;this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a('<div class="ui-progressbar-value ui-widget-header ui-corner-left"></div>').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow").removeData("progressbar").unbind(".progressbar");this.valueDiv.remove();a.widget.prototype.destroy.apply(this,arguments)},value:function(b){arguments.length&&this._setData("value",b);return this._value()},_setData:function(b,c){switch(b){case"value":this.options.value=c;this._refreshValue();this._trigger("change",null,{});break}a.widget.prototype._setData.apply(this,arguments)},_value:function(){var b=this.options.value;if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_valueMin:function(){var b=0;return b},_valueMax:function(){var b=100;return b},_refreshValue:function(){var b=this.value();this.valueDiv[b==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(b+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.6rc6",defaults:{value:0}})})(jQuery);(function(a){a.widget("ui.tabs",{_init:function(){this._tabify(true)},_setData:function(b,c){if((/^selected/).test(b)){this.select(c)}else{this.options[b]=c;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.$tabs.index(c)}},_tabify:function(t){this.list=this.element.is("div")?this.element.children("ul:first, ol:first").eq(0):this.element;this.$lis=a("li:has(a[href])",this.list);this.$tabs=this.$lis.map(function(){return a("a",this)[0]});this.$panels=a([]);var s=this,d=this.options;var k=/^#.+/;this.$tabs.each(function(v,o){var u=a(o).attr("href");if(k.test(u)){s.$panels=s.$panels.add(s._sanitizeSelector(u))}else{if(u!="#"){a.data(o,"href.tabs",u);a.data(o,"load.tabs",u.replace(/#.*$/,""));var y=s._tabId(o);o.href="#"+y;var w=a("#"+y);if(!w.length){w=a(d.panelTemplate).attr("id",y).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(s.$panels[v-1]||s.list);w.data("destroy.tabs",true)}s.$panels=s.$panels.add(w)}else{d.disabled.push(v+1)}}});if(t){if(this.element.is("div")){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all")}this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix");this.$lis.addClass("ui-state-default");this.$panels.addClass("ui-tabs-panel");if(d.selected===undefined){if(location.hash){this.$tabs.each(function(u,o){if(o.hash==location.hash){d.selected=u;return false}})}else{if(d.cookie){d.selected=parseInt(s._cookie(),10)}else{if(this.$lis.filter(".ui-tabs-selected").length){d.selected=this.$lis.index(this.$lis.filter(".ui-tabs-selected"))}else{d.selected=0}}}}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected>=0&&this.$tabs[d.selected])||d.selected<0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.$lis.filter(".ui-state-disabled"),function(u,o){return s.$lis.index(u)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.$panels.addClass("ui-tabs-hide");this.$lis.removeClass("ui-tabs-selected ui-state-active");if(d.selected>=0&&this.$tabs.length){this.$panels.eq(d.selected).removeClass("ui-tabs-hide");var f=["ui-tabs-selected ui-state-active"];if(d.deselectable){f.push("ui-tabs-deselectable")}this.$lis.eq(d.selected).addClass(f.join(" "));var b=function(){s._trigger("show",null,s._ui(s.$tabs[d.selected],s.$panels[d.selected]))};if(a.data(this.$tabs[d.selected],"load.tabs")){this.load(d.selected,b)}else{b()}}if(d.event!="mouseover"){var m=function(u,o){if(o.is(":not(.ui-state-disabled)")){o.toggleClass("ui-state-"+u)}};this.$lis.bind("mouseover.tabs mouseout.tabs",function(){m("hover",a(this))});this.$tabs.bind("focus.tabs blur.tabs",function(){m("focus",a(this).parents("li:first"))})}a(window).bind("unload",function(){s.$lis.add(s.$tabs).unbind(".tabs");s.$lis=s.$tabs=s.$panels=null})}else{d.selected=this.$lis.index(this.$lis.filter(".ui-tabs-selected"))}if(d.cookie){this._cookie(d.selected,d.cookie)}for(var h=0,q;q=this.$lis[h];h++){a(q)[a.inArray(h,d.disabled)!=-1&&!a(q).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(d.cache===false){this.$tabs.removeData("cache.tabs")}var l,c;if(d.fx){if(a.isArray(d.fx)){l=d.fx[0];c=d.fx[1]}else{l=c=d.fx}}function j(o,u){o.css({display:""});if(a.browser.msie&&u.opacity){o[0].style.removeAttribute("filter")}}var n=c?function(o,u){u.hide().removeClass("ui-tabs-hide").animate(c,500,function(){j(u,c);s._trigger("show",null,s._ui(o,u[0]))})}:function(o,u){u.removeClass("ui-tabs-hide");s._trigger("show",null,s._ui(o,u[0]))};var p=l?function(u,o,v){o.animate(l,l.duration||"normal",function(){o.addClass("ui-tabs-hide");j(o,l);if(v){n(u,v)}})}:function(u,o,v){o.addClass("ui-tabs-hide");if(v){n(u,v)}};function g(v,y,o,w){var u=["ui-tabs-selected ui-state-active"];if(d.deselectable){u.push("ui-tabs-deselectable")}y.removeClass("ui-state-default").addClass(u.join(" ")).siblings().removeClass(u.join(" ")).addClass("ui-state-default");p(v,o,w)}this.$tabs.unbind(".tabs").bind(d.event+".tabs",function(){var w=a(this).parents("li:eq(0)"),o=s.$panels.filter(":visible"),v=a(s._sanitizeSelector(this.hash));if((w.hasClass("ui-state-active")&&!d.deselectable)||w.hasClass("ui-state-disabled")||a(this).hasClass("ui-tabs-loading")||s._trigger("select",null,s._ui(this,v[0]))===false){this.blur();return false}d.selected=s.$tabs.index(this);if(d.deselectable){if(w.hasClass("ui-state-active")){d.selected=-1;if(d.cookie){s._cookie(d.selected,d.cookie)}w.removeClass("ui-tabs-selected ui-state-active ui-tabs-deselectable").addClass("ui-state-default");s.$panels.stop();p(this,o);this.blur();return false}else{if(!o.length){if(d.cookie){s._cookie(d.selected,d.cookie)}s.$panels.stop();var u=this;s.load(s.$tabs.index(this),function(){w.addClass("ui-tabs-selected ui-state-active ui-tabs-deselectable").removeClass("ui-state-default");n(u,v)});this.blur();return false}}}if(d.cookie){s._cookie(d.selected,d.cookie)}s.$panels.stop();if(v.length){var u=this;s.load(s.$tabs.index(this),o.length?function(){g(u,w,o,v)}:function(){w.addClass("ui-tabs-selected ui-state-active").removeClass("ui-state-default");n(u,v)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(a.browser.msie){this.blur()}return false});if(d.event!="click"){this.$tabs.bind("click.tabs",function(){return false})}},destroy:function(){var b=this.options;this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.unbind(".tabs").removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeData("tabs");this.$tabs.each(function(){var c=a.data(this,"href.tabs");if(c){this.href=c}var d=a(this).unbind(".tabs");a.each(["href","load","cache"],function(g,f){d.removeData(f+".tabs")})});this.$lis.unbind(".tabs").add(this.$panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove()}else{a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-tabs-deselectable ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(c,j,g){if(g==undefined){g=this.$tabs.length}var k=this,f=this.options;var h=a(f.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,j));h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var d=c.indexOf("#")==0?c.replace("#",""):this._tabId(a("a:first-child",h)[0]);var l=a("#"+d);if(!l.length){l=a(f.panelTemplate).attr("id",d).data("destroy.tabs",true)}l.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(g>=this.$lis.length){h.appendTo(this.list);l.appendTo(this.list[0].parentNode)}else{h.insertBefore(this.$lis[g]);l.insertBefore(this.$panels[g])}f.disabled=a.map(f.disabled,function(o,m){return o>=g?++o:o});this._tabify();if(this.$tabs.length==1){h.addClass("ui-tabs-selected ui-state-active");l.removeClass("ui-tabs-hide");var b=a.data(this.$tabs[0],"load.tabs");if(b){this.load(0,function(){k._trigger("show",null,k._ui(k.$tabs[0],k.$panels[0]))})}}this._trigger("add",null,this._ui(this.$tabs[g],this.$panels[g]))},remove:function(b){var d=this.options,f=this.$lis.eq(b).remove(),c=this.$panels.eq(b).remove();if(f.hasClass("ui-tabs-selected")&&this.$tabs.length>1){this.select(b+(b+1<this.$tabs.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(h,g){return h!=b}),function(h,g){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(f.find("a")[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.$lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(f,d){return f!=b});this._trigger("enable",null,this._ui(this.$tabs[b],this.$panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.$lis.eq(c).addClass("ui-state-disabled");d.disabled.push(c);d.disabled.sort();this._trigger("disable",null,this._ui(this.$tabs[c],this.$panels[c]))}},select:function(b){if(typeof b=="string"){b=this.$tabs.index(this.$tabs.filter("[href$="+b+"]"))}this.$tabs.eq(b).trigger(this.options.event+".tabs")},load:function(h,m){var n=this,d=this.options,f=this.$tabs.eq(h),l=f[0],j=m==undefined||m===false,b=f.data("load.tabs");m=m||function(){};if(!b||!j&&a.data(l,"cache.tabs")){m();return}var p=function(o){var q=a(o),s=q.find("*:last");return s.length&&s.is(":not(img)")&&s||q};var c=function(){n.$tabs.filter(".ui-tabs-loading").removeClass("ui-tabs-loading").each(function(){if(d.spinner){p(this).parent().html(p(this).data("label.tabs"))}});n.xhr=null};if(d.spinner){var k=p(l).html();p(l).wrapInner("<em></em>").find("em").data("label.tabs",k).html(d.spinner)}var g=a.extend({},d.ajaxOptions,{url:b,success:function(q,o){a(n._sanitizeSelector(l.hash)).html(q);c();if(d.cache){a.data(l,"cache.tabs",true)}n._trigger("load",null,n._ui(n.$tabs[h],n.$panels[h]));try{d.ajaxOptions.success(q,o)}catch(t){}m()}});if(this.xhr){this.xhr.abort();c()}f.addClass("ui-tabs-loading");n.xhr=a.ajax(g)},url:function(c,b){this.$tabs.eq(c).removeData("cache.tabs").data("load.tabs",b)},length:function(){return this.$tabs.length}});a.extend(a.ui.tabs,{version:"1.6rc6",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,deselectable:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"Loading&#8230;",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(c,g){var b=this,f=this.options.selected;function d(){clearTimeout(b.rotation);b.rotation=setTimeout(function(){f=++f<b.$tabs.length?f:0;b.select(f)},c)}if(c){this.element.bind("tabsshow",d);this.$tabs.bind(this.options.event+".tabs",!g?function(h){if(h.clientX){clearTimeout(b.rotation);b.element.unbind("tabsshow",d)}}:function(h){f=b.options.selected;d()});d()}else{clearTimeout(b.rotation);this.element.unbind("tabsshow",d);this.$tabs.unbind(this.options.event+".tabs",stop)}}})})(jQuery);