(function(){var AA=this,AF,V=AA.jQuery,S=AA.$,W=AA.jQuery=AA.$=function(B,A){return new W.fn.init(B,A)},L=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,AG=/^.[^:#\[\.,]*$/;W.fn=W.prototype={init:function(E,B){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var C=L.exec(E);if(C&&(C[1]||!B)){if(C[1]){E=W.clean([C[1]],B)}else{var A=document.getElementById(C[3]);if(A&&A.id!=C[3]){return W().find(E)}var D=W(A||[]);D.context=document;D.selector=E;return D}}else{return W(B).find(E)}}else{if(W.isFunction(E)){return W(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(W.isArray(E)?E:W.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(A){return A===AF?Array.prototype.slice.call(this):this[A]},pushStack:function(C,A,D){var B=W(C);B.prevObject=this;B.context=this.context;if(A==="find"){B.selector=this.selector+(this.selector?" ":"")+D}else{if(A){B.selector=this.selector+"."+A+"("+D+")"}}return B},setArray:function(A){this.length=0;Array.prototype.push.apply(this,A);return this},each:function(A,B){return W.each(this,A,B)},index:function(A){return W.inArray(A&&A.jquery?A[0]:A,this)},attr:function(C,A,B){var D=C;if(typeof C==="string"){if(A===AF){return this[0]&&W[B||"attr"](this[0],C)}else{D={};D[C]=A}}return this.each(function(E){for(C in D){W.attr(B?this.style:this,C,W.prop(this,D[C],B,E,C))}})},css:function(B,A){if((B=="width"||B=="height")&&parseFloat(A)<0){A=AF}return this.attr(B,A,"curCSS")},text:function(A){if(typeof A!=="object"&&A!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(A))}var B="";W.each(A||this,function(){W.each(this.childNodes,function(){if(this.nodeType!=8){B+=this.nodeType!=1?this.nodeValue:W.fn.text([this])}})});return B},wrapAll:function(B){if(this[0]){var A=W(B,this[0].ownerDocument).clone();if(this[0].parentNode){A.insertBefore(this[0])}A.map(function(){var C=this;while(C.firstChild){C=C.firstChild}return C}).append(this)}return this},wrapInner:function(A){return this.each(function(){W(this).contents().wrapAll(A)})},wrap:function(A){return this.each(function(){W(this).wrapAll(A)})},append:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.appendChild(A)}})},prepend:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.insertBefore(A,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this)})},after:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this.nextSibling)})},end:function(){return this.prevObject||W([])},push:[].push,sort:[].sort,splice:[].splice,find:function(B){if(this.length===1){var A=this.pushStack([],"find",B);A.length=0;W.find(B,this[0],A);return A}else{return this.pushStack(W.unique(W.map(this,function(C){return W.find(B,C)})),"find",B)}},clone:function(B){var D=this.map(function(){if(!W.support.noCloneEvent&&!W.isXMLDoc(this)){var F=this.outerHTML;if(!F){var E=this.ownerDocument.createElement("div");E.appendChild(this.cloneNode(true));F=E.innerHTML}return W.clean([F.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(B===true){var A=this.find("*").andSelf(),C=0;D.find("*").andSelf().each(function(){if(this.nodeName!==A[C].nodeName){return }var F=W.data(A[C],"events");for(var a in F){for(var E in F[a]){W.event.add(this,a,F[a][E],F[a][E].data)}}C++})}return D},filter:function(A){return this.pushStack(W.isFunction(A)&&W.grep(this,function(B,C){return A.call(B,C)})||W.multiFilter(A,W.grep(this,function(B){return B.nodeType===1})),"filter",A)},closest:function(C){var A=W.expr.match.POS.test(C)?W(C):null,B=0;return this.map(function(){var D=this;while(D&&D.ownerDocument){if(A?A.index(D)>-1:W(D).is(C)){W.data(D,"closest",B);return D}D=D.parentNode;B++}})},not:function(B){if(typeof B==="string"){if(AG.test(B)){return this.pushStack(W.multiFilter(B,this,true),"not",B)}else{B=W.multiFilter(B,this)}}var A=B.length&&B[B.length-1]!==AF&&!B.nodeType;return this.filter(function(){return A?W.inArray(this,B)<0:this!=B})},add:function(A){return this.pushStack(W.unique(W.merge(this.get(),typeof A==="string"?W(A):W.makeArray(A))))},is:function(A){return !!A&&W.multiFilter(A,this).length>0},hasClass:function(A){return !!A&&this.is("."+A)},val:function(C){if(C===AF){var c=this[0];if(c){if(W.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(W.nodeName(c,"select")){var E=c.selectedIndex,B=[],A=c.options,F=c.type=="select-one";if(E<0){return null}for(var b=F?E:0,D=F?E+1:A.length;b<D;b++){var a=A[b];if(a.selected){C=W(a).val();if(F){return C}B.push(C)}}return B}return(c.value||"").replace(/\r/g,"")}return AF}if(typeof C==="number"){C+=""}return this.each(function(){if(this.nodeType!=1){return }if(W.isArray(C)&&/radio|checkbox/.test(this.type)){this.checked=(W.inArray(this.value,C)>=0||W.inArray(this.name,C)>=0)}else{if(W.nodeName(this,"select")){var d=W.makeArray(C);W("option",this).each(function(){this.selected=(W.inArray(this.value,d)>=0||W.inArray(this.text,d)>=0)});if(!d.length){this.selectedIndex=-1}}else{this.value=C}}})},html:function(A){return A===AF?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(A)},replaceWith:function(A){return this.after(A).remove()},eq:function(A){return this.slice(A,+A+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(A){return this.pushStack(W.map(this,function(B,C){return A.call(B,C,B)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(D,A,B){if(this[0]){var E=(this[0].ownerDocument||this[0]).createDocumentFragment(),b=W.clean(D,(this[0].ownerDocument||this[0]),E),F=E.firstChild;if(F){for(var a=0,c=this.length;a<c;a++){B.call(C(this[a],F),this.length>1||a>0?E.cloneNode(true):E)}}if(b){W.each(b,R)}}return this;function C(e,d){return A&&W.nodeName(e,"table")&&W.nodeName(d,"tr")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}}};W.fn.init.prototype=W.fn;function R(B,A){if(A.src){W.ajax({url:A.src,async:false,dataType:"script"})}else{W.globalEval(A.text||A.textContent||A.innerHTML||"")}if(A.parentNode){A.parentNode.removeChild(A)}}function AH(){return +new Date}W.extend=W.fn.extend=function(){var A=arguments[0]||{},C=1,B=arguments.length,F=false,D;if(typeof A==="boolean"){F=A;A=arguments[1]||{};C=2}if(typeof A!=="object"&&!W.isFunction(A)){A={}}if(B==C){A=this;--C}for(;C<B;C++){if((D=arguments[C])!=null){for(var E in D){var b=A[E],a=D[E];if(A===a){continue}if(F&&a&&typeof a==="object"&&!a.nodeType){A[E]=W.extend(F,b||(a.length!=null?[]:{}),a)}else{if(a!==AF){A[E]=a}}}}}return A};var AK=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},M=Object.prototype.toString;W.extend({noConflict:function(A){AA.$=S;if(A){AA.jQuery=V}return W},isFunction:function(A){return M.call(A)==="[object Function]"},isArray:function(A){return M.call(A)==="[object Array]"},isXMLDoc:function(A){return A.nodeType===9&&A.documentElement.nodeName!=="HTML"||!!A.ownerDocument&&W.isXMLDoc(A.ownerDocument)},globalEval:function(A){if(A&&/\S/.test(A)){var B=document.getElementsByTagName("head")[0]||document.documentElement,C=document.createElement("script");C.type="text/javascript";if(W.support.scriptEval){C.appendChild(document.createTextNode(A))}else{C.text=A}B.insertBefore(C,B.firstChild);B.removeChild(C)}},nodeName:function(A,B){return A.nodeName&&A.nodeName.toUpperCase()==B.toUpperCase()},each:function(D,a,E){var F,C=0,B=D.length;if(E){if(B===AF){for(F in D){if(a.apply(D[F],E)===false){break}}}else{for(;C<B;){if(a.apply(D[C++],E)===false){break}}}}else{if(B===AF){for(F in D){if(a.call(D[F],F,D[F])===false){break}}}else{for(var A=D[0];C<B&&a.call(A,C,A)!==false;A=D[++C]){}}}return D},prop:function(B,A,C,D,E){if(W.isFunction(A)){A=A.call(B,D)}return typeof A==="number"&&C=="curCSS"&&!AK.test(E)?A+"px":A},className:{add:function(B,A){W.each((A||"").split(/\s+/),function(D,C){if(B.nodeType==1&&!W.className.has(B.className,C)){B.className+=(B.className?" ":"")+C}})},remove:function(B,A){if(B.nodeType==1){B.className=A!==AF?W.grep(B.className.split(/\s+/),function(C){return !W.className.has(A,C)}).join(" "):""}},has:function(A,B){return A&&W.inArray(B,(A.className||A).toString().split(/\s+/))>-1}},swap:function(B,C,A){var E={};for(var D in C){E[D]=B.style[D];B.style[D]=C[D]}A.call(B);for(var D in C){B.style[D]=E[D]}},css:function(C,E,A,F){if(E=="width"||E=="height"){var a,D={position:"absolute",visibility:"hidden",display:"block"},b=E=="width"?["Left","Right"]:["Top","Bottom"];function B(){a=E=="width"?C.offsetWidth:C.offsetHeight;if(F==="border"){return }W.each(b,function(){if(!F){a-=parseFloat(W.curCSS(C,"padding"+this,true))||0}if(F==="margin"){a+=parseFloat(W.curCSS(C,"margin"+this,true))||0}else{a-=parseFloat(W.curCSS(C,"border"+this+"Width",true))||0}})}if(C.offsetWidth!==0){B()}else{W.swap(C,D,B)}return Math.max(0,Math.round(a))}return W.curCSS(C,E,A)},curCSS:function(E,b,a){var B,c=E.style;if(b=="opacity"&&!W.support.opacity){B=W.attr(c,"opacity");return B==""?"1":B}if(b.match(/float/i)){b=H}if(!a&&c&&c[b]){B=c[b]}else{if(Q.getComputedStyle){if(b.match(/float/i)){b="float"}b=b.replace(/([A-Z])/g,"-$1").toLowerCase();var A=Q.getComputedStyle(E,null);if(A){B=A.getPropertyValue(b)}if(b=="opacity"&&B==""){B="1"}}else{if(E.currentStyle){var D=b.replace(/\-(\w)/g,function(e,d){return d.toUpperCase()});B=E.currentStyle[b]||E.currentStyle[D];if(!/^\d+(px)?$/i.test(B)&&/^\d/.test(B)){var F=c.left,C=E.runtimeStyle.left;E.runtimeStyle.left=E.currentStyle.left;c.left=B||0;B=c.pixelLeft+"px";c.left=F;E.runtimeStyle.left=C}}}}return B},clean:function(E,b,B){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!B&&E.length===1&&typeof E[0]==="string"){var C=/^<(\w+)\s*\/?>$/.exec(E[0]);if(C){return[b.createElement(C[1])]}}var D=[],F=[],a=b.createElement("div");W.each(E,function(f,c){if(typeof c==="number"){c+=""}if(!c){return }if(typeof c==="string"){c=c.replace(/(<(\w+)[^>]*?)\/>/g,function(k,m,l){return l.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?k:m+"></"+l+">"});var g=c.replace(/^\s+/,"").substring(0,10).toLowerCase();var e=!g.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!g.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||g.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!g.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!g.indexOf("<td")||!g.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!g.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!W.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=e[1]+c+e[2];while(e[0]--){a=a.lastChild}if(!W.support.tbody){var d=/<tbody/i.test(c),h=!g.indexOf("<table")&&!d?a.firstChild&&a.firstChild.childNodes:e[1]=="<table>"&&!d?a.childNodes:[];for(var j=h.length-1;j>=0;--j){if(W.nodeName(h[j],"tbody")&&!h[j].childNodes.length){h[j].parentNode.removeChild(h[j])}}}if(!W.support.leadingWhitespace&&/^\s/.test(c)){a.insertBefore(b.createTextNode(c.match(/^\s*/)[0]),a.firstChild)}c=W.makeArray(a.childNodes)}if(c.nodeType){D.push(c)}else{D=W.merge(D,c)}});if(B){for(var A=0;D[A];A++){if(W.nodeName(D[A],"script")&&(!D[A].type||D[A].type.toLowerCase()==="text/javascript")){F.push(D[A].parentNode?D[A].parentNode.removeChild(D[A]):D[A])}else{if(D[A].nodeType===1){D.splice.apply(D,[A+1,0].concat(W.makeArray(D[A].getElementsByTagName("script"))))}B.appendChild(D[A])}}return F}return D},attr:function(A,D,b){if(!A||A.nodeType==3||A.nodeType==8){return AF}var C=!W.isXMLDoc(A),a=b!==AF;D=C&&W.props[D]||D;if(A.tagName){var E=/href|src|style/.test(D);if(D=="selected"&&A.parentNode){A.parentNode.selectedIndex}if(D in A&&C&&!E){if(a){if(D=="type"&&W.nodeName(A,"input")&&A.parentNode){throw"type property can't be changed"}A[D]=b}if(W.nodeName(A,"form")&&A.getAttributeNode(D)){return A.getAttributeNode(D).nodeValue}if(D=="tabIndex"){var B=A.getAttributeNode("tabIndex");return B&&B.specified?B.value:A.nodeName.match(/(button|input|object|select|textarea)/i)?0:A.nodeName.match(/^(a|area)$/i)&&A.href?0:AF}return A[D]}if(!W.support.style&&C&&D=="style"){return W.attr(A.style,"cssText",b)}if(a){A.setAttribute(D,""+b)}var F=!W.support.hrefNormalized&&C&&E?A.getAttribute(D,2):A.getAttribute(D);return F===null?AF:F}if(!W.support.opacity&&D=="opacity"){if(a){A.zoom=1;A.filter=(A.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return A.filter&&A.filter.indexOf("opacity=")>=0?(parseFloat(A.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}D=D.replace(/-([a-z])/ig,function(d,c){return c.toUpperCase()});if(a){A[D]=b}return A[D]},trim:function(A){return(A||"").replace(/^\s+|\s+$/g,"")},makeArray:function(A){var C=[];if(A!=null){var B=A.length;if(B==null||typeof A==="string"||W.isFunction(A)||A.setInterval){C[0]=A}else{while(B){C[--B]=A[B]}}}return C},inArray:function(B,A){for(var D=0,C=A.length;D<C;D++){if(A[D]===B){return D}}return -1},merge:function(B,E){var D=0,C,A=B.length;if(!W.support.getAll){while((C=E[D++])!=null){if(C.nodeType!=8){B[A++]=C}}}else{while((C=E[D++])!=null){B[A++]=C}}return B},unique:function(a){var E=[],F={};try{for(var D=0,C=a.length;D<C;D++){var A=W.data(a[D]);if(!F[A]){F[A]=true;E.push(a[D])}}}catch(B){E=a}return E},grep:function(E,A,F){var D=[];for(var C=0,B=E.length;C<B;C++){if(!F!=!A(E[C],C)){D.push(E[C])}}return D},map:function(F,A){var E=[];for(var D=0,C=F.length;D<C;D++){var B=A(F[D],D);if(B!=null){E[E.length]=B}}return E.concat.apply([],E)}});var O=navigator.userAgent.toLowerCase();W.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};if(W.browser.msie){var Y;if(O.indexOf("msie 6")>=0){Y="6"}if(O.indexOf("msie 7")>=0){Y="7"}if(O.indexOf("msie 8")>=0){Y="8"}var U=O.indexOf("msie "+Y);if(U>=0){W.browser.version=Y+O.substr(U+6,2)}}W.each({parent:function(A){return A.parentNode},parents:function(A){return W.dir(A,"parentNode")},next:function(A){return W.nth(A,2,"nextSibling")},prev:function(A){return W.nth(A,2,"previousSibling")},nextAll:function(A){return W.dir(A,"nextSibling")},prevAll:function(A){return W.dir(A,"previousSibling")},siblings:function(A){return W.sibling(A.parentNode.firstChild,A)},children:function(A){return W.sibling(A.firstChild)},contents:function(A){return W.nodeName(A,"iframe")?A.contentDocument||A.contentWindow.document:W.makeArray(A.childNodes)}},function(B,A){W.fn[B]=function(D){var C=W.map(this,A);if(D&&typeof D=="string"){C=W.multiFilter(D,C)}return this.pushStack(W.unique(C),B,D)}});W.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(B,A){W.fn[B]=function(F){var C=[],a=W(F);for(var b=0,E=a.length;b<E;b++){var D=(b>0?this.clone(true):this).get();W.fn[A].apply(W(a[b]),D);C=C.concat(D)}return this.pushStack(C,B,F)}});W.each({removeAttr:function(A){W.attr(this,A,"");if(this.nodeType==1){this.removeAttribute(A)}},addClass:function(A){W.className.add(this,A)},removeClass:function(A){W.className.remove(this,A)},toggleClass:function(A,B){if(typeof B!=="boolean"){B=!W.className.has(this,A)}W.className[B?"add":"remove"](this,A)},remove:function(A){if(!A||W.filter(A,[this]).length){W("*",this).add([this]).each(function(){W.event.remove(this);W.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){W(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(B,A){W.fn[B]=function(){return this.each(A,arguments)}});function AC(B,A){return B[0]&&parseInt(W.curCSS(B[0],A,true),10)||0}var AE="jQuery"+AH(),I=0,T={};W.extend({cache:{},data:function(C,D,B){C=C==AA?T:C;var A=C[AE];if(!A){A=C[AE]=++I}if(D&&!W.cache[A]){W.cache[A]={}}if(B!==AF){W.cache[A][D]=B}return D?W.cache[A][D]:A},removeData:function(C,D){C=C==AA?T:C;var A=C[AE];if(D){if(W.cache[A]){delete W.cache[A][D];D="";for(D in W.cache[A]){break}if(!D){W.removeData(C)}}}else{try{delete C[AE]}catch(B){if(C.removeAttribute){C.removeAttribute(AE)}}delete W.cache[A]}},queue:function(C,D,A){if(C){D=(D||"fx")+"queue";var B=W.data(C,D);if(!B||W.isArray(A)){B=W.data(C,D,W.makeArray(A))}else{if(A){B.push(A)}}}return B},dequeue:function(A,B){var D=W.queue(A,B),C=D.shift();if(!B||B==="fx"){C=D[0]}if(C!==AF){C.call(A)}}});W.fn.extend({data:function(D,B){var A=D.split(".");A[1]=A[1]?"."+A[1]:"";if(B===AF){var C=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(C===AF&&this.length){C=W.data(this[0],D)}return C===AF&&A[1]?this.data(A[0]):C}else{return this.trigger("setData"+A[1]+"!",[A[0],B]).each(function(){W.data(this,D,B)})}},removeData:function(A){return this.each(function(){W.removeData(this,A)})},queue:function(B,A){if(typeof B!=="string"){A=B;B="fx"}if(A===AF){return W.queue(this[0],B)}return this.each(function(){var C=W.queue(this,B,A);if(B=="fx"&&C.length==1){C[0].call(this)}})},dequeue:function(A){return this.each(function(){W.dequeue(this,A)})}});(function(){var B=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,b=0,f=Object.prototype.toString;var h=function(k,o,x,w){x=x||[];o=o||document;if(o.nodeType!==1&&o.nodeType!==9){return[]}if(!k||typeof k!=="string"){return x}var z=[],m,t,q,p,v,n,l=true;B.lastIndex=0;while((m=B.exec(k))!==null){z.push(m[1]);if(m[2]){n=RegExp.rightContext;break}}if(z.length>1&&a.exec(k)){if(z.length===2&&e.relative[z[0]]){t=d(z[0]+z[1],o)}else{t=e.relative[z[0]]?[o]:h(z.shift(),o);while(z.length){k=z.shift();if(e.relative[k]){k+=z.shift()}t=d(k,t)}}}else{var u=w?{expr:z.pop(),set:j(w)}:h.find(z.pop(),z.length===1&&o.parentNode?o.parentNode:o,C(o));t=h.filter(u.expr,u.set);if(z.length>0){q=j(t)}else{l=false}while(z.length){var r=z.pop(),s=r;if(!e.relative[r]){r=""}else{s=z.pop()}if(s==null){s=o}e.relative[r](q,s,C(o))}}if(!q){q=t}if(!q){throw"Syntax error, unrecognized expression: "+(r||k)}if(f.call(q)==="[object Array]"){if(!l){x.push.apply(x,q)}else{if(o.nodeType===1){for(var y=0;q[y]!=null;y++){if(q[y]&&(q[y]===true||q[y].nodeType===1&&c(o,q[y]))){x.push(t[y])}}}else{for(var y=0;q[y]!=null;y++){if(q[y]&&q[y].nodeType===1){x.push(t[y])}}}}}else{j(q,x)}if(n){h(n,o,x,w);if(g){hasDuplicate=false;x.sort(g);if(hasDuplicate){for(var y=1;y<x.length;y++){if(x[y]===x[y-1]){x.splice(y--,1)}}}}}return x};h.matches=function(l,k){return h(l,null,null,k)};h.find=function(r,p,q){var s,l;if(!r){return[]}for(var m=0,n=e.order.length;m<n;m++){var k=e.order[m],l;if((l=e.match[k].exec(r))){var o=RegExp.leftContext;if(o.substr(o.length-1)!=="\\"){l[1]=(l[1]||"").replace(/\\/g,"");s=e.find[k](l,p,q);if(s!=null){r=r.replace(e.match[k],"");break}}}}if(!s){s=p.getElementsByTagName("*")}return{set:s,expr:r}};h.filter=function(v,w,s,m){var n=v,q=[],y=w,k,p,z=w&&w[0]&&C(w[0]);while(v&&w.length){for(var x in e.filter){if((k=e.match[x].exec(v))!=null){var o=e.filter[x],r,t;p=false;if(y==q){q=[]}if(e.preFilter[x]){k=e.preFilter[x](k,y,s,q,m,z);if(!k){p=r=true}else{if(k===true){continue}}}if(k){for(var l=0;(t=y[l])!=null;l++){if(t){r=o(t,k,l,y);var u=m^!!r;if(s&&r!=null){if(u){p=true}else{y[l]=false}}else{if(u){q.push(t);p=true}}}}}if(r!==AF){if(!s){y=q}v=v.replace(e.match[x],"");if(!p){return[]}break}}}if(v==n){if(p==null){throw"Syntax error, unrecognized expression: "+v}else{break}}n=v}return y};var e=h.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(k){return k.getAttribute("href")}},relative:{"+":function(r,p,s){var l=typeof p==="string",q=l&&!/\W/.test(p),k=l&&!q;if(q&&!s){p=p.toUpperCase()}for(var m=0,n=r.length,o;m<n;m++){if((o=r[m])){while((o=o.previousSibling)&&o.nodeType!==1){}r[m]=k||o&&o.nodeName===p?o||false:o===p}}if(k){h.filter(p,r,true)}},">":function(n,k,m){var p=typeof k==="string";if(p&&!/\W/.test(k)){k=m?k:k.toUpperCase();for(var r=0,l=n.length;r<l;r++){var o=n[r];if(o){var q=o.parentNode;n[r]=q.nodeName===k?q:false}}}else{for(var r=0,l=n.length;r<l;r++){var o=n[r];if(o){n[r]=p?o.parentNode:o.parentNode===k}}if(p){h.filter(k,n,true)}}},"":function(o,k,n){var p=b++,l=A;if(!k.match(/\W/)){var m=k=n?k:k.toUpperCase();l=D}l("parentNode",k,p,o,m,n)},"~":function(o,k,n){var p=b++,l=A;if(typeof k==="string"&&!k.match(/\W/)){var m=k=n?k:k.toUpperCase();l=D}l("previousSibling",k,p,o,m,n)}},find:{ID:function(k,n,m){if(typeof n.getElementById!=="undefined"&&!m){var l=n.getElementById(k[1]);return l?[l]:[]}},NAME:function(q,o,m){if(typeof o.getElementsByName!=="undefined"){var k=[],n=o.getElementsByName(q[1]);for(var p=0,l=n.length;p<l;p++){if(n[p].getAttribute("name")===q[1]){k.push(n[p])}}return k.length===0?null:k}},TAG:function(l,k){return k.getElementsByTagName(l[1])}},preFilter:{CLASS:function(q,k,r,l,n,m){q=" "+q[1].replace(/\\/g,"")+" ";if(m){return q}for(var p=0,o;(o=k[p])!=null;p++){if(o){if(n^(o.className&&(" "+o.className+" ").indexOf(q)>=0)){if(!r){l.push(o)}}else{if(r){k[p]=false}}}}return false},ID:function(k){return k[1].replace(/\\/g,"")},TAG:function(k,l){for(var m=0;l[m]===false;m++){}return l[m]&&C(l[m])?k[1]:k[1].toUpperCase()},CHILD:function(l){if(l[1]=="nth"){var k=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(l[2]=="even"&&"2n"||l[2]=="odd"&&"2n+1"||!/\D/.test(l[2])&&"0n+"+l[2]||l[2]);l[2]=(k[1]+(k[2]||1))-0;l[3]=k[3]-0}l[0]=b++;return l},ATTR:function(o,k,q,l,n,m){var p=o[1].replace(/\\/g,"");if(!m&&e.attrMap[p]){o[1]=e.attrMap[p]}if(o[2]==="~="){o[4]=" "+o[4]+" "}return o},PSEUDO:function(n,k,p,l,m){if(n[1]==="not"){if(n[3].match(B).length>1||/^\w/.test(n[3])){n[3]=h(n[3],null,null,k)}else{var o=h.filter(n[3],k,p,true^m);if(!p){l.push.apply(l,o)}return false}}else{if(e.match.POS.test(n[0])||e.match.CHILD.test(n[0])){return true}}return n},POS:function(k){k.unshift(true);return k}},filters:{enabled:function(k){return k.disabled===false&&k.type!=="hidden"},disabled:function(k){return k.disabled===true},checked:function(k){return k.checked===true},selected:function(k){k.parentNode.selectedIndex;return k.selected===true},parent:function(k){return !!k.firstChild},empty:function(k){return !k.firstChild},has:function(m,k,l){return !!h(l[3],m).length},header:function(k){return/h\d/i.test(k.nodeName)},text:function(k){return"text"===k.type},radio:function(k){return"radio"===k.type},checkbox:function(k){return"checkbox"===k.type},file:function(k){return"file"===k.type},password:function(k){return"password"===k.type},submit:function(k){return"submit"===k.type},image:function(k){return"image"===k.type},reset:function(k){return"reset"===k.type},button:function(k){return"button"===k.type||k.nodeName.toUpperCase()==="BUTTON"},input:function(k){return/input|select|textarea|button/i.test(k.nodeName)}},setFilters:{first:function(k,l){return l===0},last:function(n,k,l,m){return k===m.length-1},even:function(k,l){return l%2===0},odd:function(k,l){return l%2===1},lt:function(m,k,l){return k<l[3]-0},gt:function(m,k,l){return k>l[3]-0},nth:function(m,k,l){return l[3]-0==k},eq:function(m,k,l){return l[3]-0==k}},filter:{PSEUDO:function(n,r,q,m){var k=r[1],p=e.filters[k];if(p){return p(n,q,r,m)}else{if(k==="contains"){return(n.textContent||n.innerText||"").indexOf(r[3])>=0}else{if(k==="not"){var o=r[3];for(var q=0,l=o.length;q<l;q++){if(o[q]===n){return false}}return true}}}},CHILD:function(p,m){var t=m[1],o=p;switch(t){case"only":case"first":while(o=o.previousSibling){if(o.nodeType===1){return false}}if(t=="first"){return true}o=p;case"last":while(o=o.nextSibling){if(o.nodeType===1){return false}}return true;case"nth":var n=m[2],q=m[3];if(n==1&&q==0){return true}var k=m[0],r=p.parentNode;if(r&&(r.sizcache!==k||!p.nodeIndex)){var l=0;for(o=r.firstChild;o;o=o.nextSibling){if(o.nodeType===1){o.nodeIndex=++l}}r.sizcache=k}var s=p.nodeIndex-q;if(n==0){return s==0}else{return(s%n==0&&s/n>=0)}}},ID:function(k,l){return k.nodeType===1&&k.getAttribute("id")===l},TAG:function(k,l){return(l==="*"&&k.nodeType===1)||k.nodeName===l},CLASS:function(k,l){return(" "+(k.className||k.getAttribute("class"))+" ").indexOf(l)>-1},ATTR:function(o,p){var q=p[1],l=e.attrHandle[q]?e.attrHandle[q](o):o[q]!=null?o[q]:o.getAttribute(q),m=l+"",n=p[2],k=p[4];return l==null?n==="!=":n==="="?m===k:n==="*="?m.indexOf(k)>=0:n==="~="?(" "+m+" ").indexOf(k)>=0:!k?m&&l!==false:n==="!="?m!=k:n==="^="?m.indexOf(k)===0:n==="$="?m.substr(m.length-k.length)===k:n==="|="?m===k||m.substr(0,k.length+1)===k+"-":false},POS:function(n,k,p,m){var l=k[2],o=e.setFilters[l];if(o){return o(n,p,k,m)}}}};var a=e.match.POS;for(var E in e.match){e.match[E]=RegExp(e.match[E].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var j=function(k,l){k=Array.prototype.slice.call(k);if(l){l.push.apply(l,k);return l}return k};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(F){j=function(m,n){var k=n||[];if(f.call(m)==="[object Array]"){Array.prototype.push.apply(k,m)}else{if(typeof m.length==="number"){for(var o=0,l=m.length;o<l;o++){k.push(m[o])}}else{for(var o=0;m[o];o++){k.push(m[o])}}}return k}}var g;if(document.documentElement.compareDocumentPosition){g=function(k,l){var m=k.compareDocumentPosition(l)&4?-1:k===l?0:1;if(m===0){hasDuplicate=true}return m}}else{if("sourceIndex" in document.documentElement){g=function(k,l){var m=k.sourceIndex-l.sourceIndex;if(m===0){hasDuplicate=true}return m}}else{if(document.createRange){g=function(n,k){var o=n.ownerDocument.createRange(),l=k.ownerDocument.createRange();o.selectNode(n);o.collapse(true);l.selectNode(k);l.collapse(true);var m=o.compareBoundaryPoints(Range.START_TO_END,l);if(m===0){hasDuplicate=true}return m}}}}(function(){var k=document.createElement("form"),m="script"+(new Date).getTime();k.innerHTML="<input name='"+m+"'/>";var l=document.documentElement;l.insertBefore(k,l.firstChild);if(!!document.getElementById(m)){e.find.ID=function(p,o,n){if(typeof o.getElementById!=="undefined"&&!n){var q=o.getElementById(p[1]);return q?q.id===p[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===p[1]?[q]:AF:[]}};e.filter.ID=function(o,p){var n=typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id");return o.nodeType===1&&n&&n.nodeValue===p}}l.removeChild(k)})();(function(){var k=document.createElement("div");k.appendChild(document.createComment(""));if(k.getElementsByTagName("*").length>0){e.find.TAG=function(l,n){var m=n.getElementsByTagName(l[1]);if(l[1]==="*"){var o=[];for(var p=0;m[p];p++){if(m[p].nodeType===1){o.push(m[p])}}m=o}return m}}k.innerHTML="<a href='#'></a>";if(k.firstChild&&typeof k.firstChild.getAttribute!=="undefined"&&k.firstChild.getAttribute("href")!=="#"){e.attrHandle.href=function(l){return l.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var l=h,k=document.createElement("div");k.innerHTML="<p class='TEST'></p>";if(k.querySelectorAll&&k.querySelectorAll(".TEST").length===0){return }h=function(o,n,q,p){n=n||document;if(!p&&n.nodeType===9&&!C(n)){try{return j(n.querySelectorAll(o),q)}catch(m){}}return l(o,n,q,p)};h.find=l.find;h.filter=l.filter;h.selectors=l.selectors;h.matches=l.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var k=document.createElement("div");k.innerHTML="<div class='test e'></div><div class='test'></div>";if(k.getElementsByClassName("e").length===0){return }k.lastChild.className="e";if(k.getElementsByClassName("e").length===1){return }e.order.splice(1,0,"CLASS");e.find.CLASS=function(l,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m){return n.getElementsByClassName(l[1])}}})()}function D(o,u,k,q,t,r){var s=o=="previousSibling"&&!r;for(var m=0,n=q.length;m<n;m++){var p=q[m];if(p){if(s&&p.nodeType===1){p.sizcache=k;p.sizset=m}p=p[o];var l=false;while(p){if(p.sizcache===k){l=q[p.sizset];break}if(p.nodeType===1&&!r){p.sizcache=k;p.sizset=m}if(p.nodeName===u){l=p;break}p=p[o]}q[m]=l}}}function A(o,u,k,q,t,r){var s=o=="previousSibling"&&!r;for(var m=0,n=q.length;m<n;m++){var p=q[m];if(p){if(s&&p.nodeType===1){p.sizcache=k;p.sizset=m}p=p[o];var l=false;while(p){if(p.sizcache===k){l=q[p.sizset];break}if(p.nodeType===1){if(!r){p.sizcache=k;p.sizset=m}if(typeof u!=="string"){if(p===u){l=true;break}}else{if(h.filter(u,[p]).length>0){l=p;break}}}p=p[o]}q[m]=l}}}var c=document.compareDocumentPosition?function(k,l){return k.compareDocumentPosition(l)&16}:function(k,l){return k!==l&&(k.contains?k.contains(l):true)};var C=function(k){return k.nodeType===9&&k.documentElement.nodeName!=="HTML"||!!k.ownerDocument&&C(k.ownerDocument)};var d=function(l,m){var q=[],p="",o,r=m.nodeType?[m]:m;while((o=e.match.PSEUDO.exec(l))){p+=o[0];l=l.replace(e.match.PSEUDO,"")}l=e.relative[l]?l+"*":l;for(var n=0,k=r.length;n<k;n++){h(l,r[n],q)}return h.filter(p,q)};W.find=h;W.filter=h.filter;W.expr=h.selectors;W.expr[":"]=W.expr.filters;h.selectors.filters.hidden=function(k){return k.offsetWidth===0||k.offsetHeight===0};h.selectors.filters.visible=function(k){return k.offsetWidth>0||k.offsetHeight>0};h.selectors.filters.animated=function(k){return W.grep(W.timers,function(l){return k===l.elem}).length};W.multiFilter=function(m,l,k){if(k){m=":not("+m+")"}return h.matches(m,l)};W.dir=function(n,k){var l=[],m=n[k];while(m&&m!=document){if(m.nodeType==1){l.push(m)}m=m[k]}return l};W.nth=function(m,l,o,n){l=l||1;var k=0;for(;m;m=m[o]){if(m.nodeType==1&&++k==l){break}}return m};W.sibling=function(m,k){var l=[];for(;m;m=m.nextSibling){if(m.nodeType==1&&m!=k){l.push(m)}}return l};return ;AA.Sizzle=h})();W.event={add:function(B,E,C,a){if(B.nodeType==3||B.nodeType==8){return }if(B.setInterval&&B!=AA){B=AA}if(!C.guid){C.guid=this.guid++}if(a!==AF){var D=C;C=this.proxy(D);C.data=a}var F=W.data(B,"events")||W.data(B,"events",{}),A=W.data(B,"handle")||W.data(B,"handle",function(){return typeof W!=="undefined"&&!W.event.triggered?W.event.handle.apply(arguments.callee.elem,arguments):AF});A.elem=B;W.each(E.split(/\s+/),function(d,c){var b=c.split(".");c=b.shift();C.type=b.slice().sort().join(".");var e=F[c];if(W.event.specialAll[c]){W.event.specialAll[c].setup.call(B,a,b)}if(!e){e=F[c]={};if(!W.event.special[c]||W.event.special[c].setup.call(B,a,b)===false){if(B.addEventListener){B.addEventListener(c,A,false)}else{if(B.attachEvent){B.attachEvent("on"+c,A)}}}}e[C.guid]=C;W.event.global[c]=true});B=null},guid:1,global:{},remove:function(b,C,A){if(b.nodeType==3||b.nodeType==8){return }var D=W.data(b,"events"),E,F;if(D){if(C===AF||(typeof C==="string"&&C.charAt(0)==".")){for(var B in D){this.remove(b,B+(C||""))}}else{if(C.type){A=C.handler;C=C.type}W.each(C.split(/\s+/),function(g,e){var c=e.split(".");e=c.shift();var f=RegExp("(^|\\.)"+c.slice().sort().join(".*\\.")+"(\\.|$)");if(D[e]){if(A){delete D[e][A.guid]}else{for(var d in D[e]){if(f.test(D[e][d].type)){delete D[e][d]}}}if(W.event.specialAll[e]){W.event.specialAll[e].teardown.call(b,c)}for(E in D[e]){break}if(!E){if(!W.event.special[e]||W.event.special[e].teardown.call(b,c)===false){if(b.removeEventListener){b.removeEventListener(e,W.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+e,W.data(b,"handle"))}}}E=null;delete D[e]}}})}for(E in D){break}if(!E){var a=W.data(b,"handle");if(a){a.elem=null}W.removeData(b,"events");W.removeData(b,"handle")}}},trigger:function(B,b,C,F){var D=B.type||B;if(!F){B=typeof B==="object"?B[AE]?B:W.extend(W.Event(D),B):W.Event(D);if(D.indexOf("!")>=0){B.type=D=D.slice(0,-1);B.exclusive=true}if(!C){B.stopPropagation();if(this.global[D]){W.each(W.cache,function(){if(this.events&&this.events[D]){W.event.trigger(B,b,this.handle.elem)}})}}if(!C||C.nodeType==3||C.nodeType==8){return AF}B.result=AF;B.target=C;b=W.makeArray(b);b.unshift(B)}B.currentTarget=C;var A=W.data(C,"handle");if(A){A.apply(C,b)}if((!C[D]||(W.nodeName(C,"a")&&D=="click"))&&C["on"+D]&&C["on"+D].apply(C,b)===false){B.result=false}if(!F&&C[D]&&!B.isDefaultPrevented()&&!(W.nodeName(C,"a")&&D=="click")){this.triggered=true;try{C[D]()}catch(a){}}this.triggered=false;if(!B.isPropagationStopped()){var E=C.parentNode||C.ownerDocument;if(E){W.event.trigger(B,b,E,true)}}},handle:function(b){var A,F;b=arguments[0]=W.event.fix(b||AA.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();A=!a.length&&!b.exclusive;var B=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");F=(W.data(this,"events")||{})[b.type];for(var D in F){var C=F[D];if(A||B.test(C.type)){b.handler=C;b.data=C.data;var E=C.apply(this,arguments);if(E!==AF){b.result=E;if(E===false){b.preventDefault();b.stopPropagation()}}if(b.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(C){if(C[AE]){return C}var E=C;C=W.Event(E);for(var D=this.props.length,A;D;){A=this.props[--D];C[A]=E[A]}if(!C.target){C.target=C.srcElement||document}if(C.target.nodeType==3){C.target=C.target.parentNode}if(!C.relatedTarget&&C.fromElement){C.relatedTarget=C.fromElement==C.target?C.toElement:C.fromElement}if(C.pageX==null&&C.clientX!=null){var B=document.documentElement,F=document.body;C.pageX=C.clientX+(B&&B.scrollLeft||F&&F.scrollLeft||0)-(B.clientLeft||0);C.pageY=C.clientY+(B&&B.scrollTop||F&&F.scrollTop||0)-(B.clientTop||0)}if(!C.which&&((C.charCode||C.charCode===0)?C.charCode:C.keyCode)){C.which=C.charCode||C.keyCode}if(!C.metaKey&&C.ctrlKey){C.metaKey=C.ctrlKey}if(!C.which&&C.button){C.which=(C.button&1?1:(C.button&2?3:(C.button&4?2:0)))}return C},proxy:function(A,B){B=B||function(){return A.apply(this,arguments)};B.guid=A.guid=A.guid||B.guid||this.guid++;return B},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(B,A){W.event.add(this,A[0],AJ)},teardown:function(A){if(A.length){var C=0,B=RegExp("(^|\\.)"+A[0]+"(\\.|$)");W.each((W.data(this,"events").live||{}),function(){if(B.test(this.type)){C++}});if(C<1){W.event.remove(this,A[0],AJ)}}}}}};W.Event=function(A){if(!this.preventDefault){return new W.Event(A)}if(A&&A.type){this.originalEvent=A;this.type=A.type}else{this.type=A}this.timeStamp=AH();this[AE]=true};function AB(){return false}function J(){return true}W.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var A=this.originalEvent;if(!A){return }if(A.preventDefault){A.preventDefault()}A.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var A=this.originalEvent;if(!A){return }if(A.stopPropagation){A.stopPropagation()}A.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:AB,isPropagationStopped:AB,isImmediatePropagationStopped:AB};var AL=function(B){var C=B.relatedTarget;while(C&&C!=this){try{C=C.parentNode}catch(A){C=this}}if(C!=this){B.type=B.data;W.event.handle.apply(this,arguments)}};W.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(A,B){W.event.special[B]={setup:function(){W.event.add(this,A,AL,B)},teardown:function(){W.event.remove(this,A,AL)}}});W.fn.extend({bind:function(B,A,C){return B=="unload"?this.one(B,A,C):this.each(function(){W.event.add(this,B,C||A,C&&A)})},one:function(B,A,C){var D=W.event.proxy(C||A,function(E){W(this).unbind(E,D);return(C||A).apply(this,arguments)});return this.each(function(){W.event.add(this,B,D,C&&A)})},unbind:function(A,B){return this.each(function(){W.event.remove(this,A,B)})},trigger:function(B,A){return this.each(function(){W.event.trigger(B,A,this)})},triggerHandler:function(C,A){if(this[0]){var B=W.Event(C);B.preventDefault();B.stopPropagation();W.event.trigger(B,A,this[0]);return B.result}},toggle:function(A){var C=arguments,B=1;while(B<C.length){W.event.proxy(A,C[B++])}return this.click(W.event.proxy(A,function(D){this.lastToggle=(this.lastToggle||0)%B;D.preventDefault();return C[this.lastToggle++].apply(this,arguments)||false}))},hover:function(B,A){return this.mouseenter(B).mouseleave(A)},ready:function(A){P();if(W.isReady){A.call(document,W)}else{W.readyList.push(A)}return this},live:function(A,B){var C=W.event.proxy(B);C.guid+=this.selector+A;W(document).bind(AD(A,this.selector),this.selector,C);return this},die:function(A,B){W(document).unbind(AD(A,this.selector),B?{guid:B.guid+this.selector+A}:null);return this}});function AJ(A){var D=RegExp("(^|\\.)"+A.type+"(\\.|$)"),B=true,C=[];W.each(W.data(this,"events").live||[],function(F,E){if(D.test(E.type)){var a=W(A.target).closest(E.data)[0];if(a){C.push({elem:a,fn:E})}}});C.sort(function(E,F){return W.data(E.elem,"closest")-W.data(F.elem,"closest")});W.each(C,function(){if(this.fn.call(this.elem,A,this.fn.data)===false){return(B=false)}});return B}function AD(A,B){return["live",A,B.replace(/\./g,"`").replace(/ /g,"|")].join(".")}W.extend({isReady:false,readyList:[],ready:function(){if(!W.isReady){W.isReady=true;if(W.readyList){W.each(W.readyList,function(){this.call(document,W)});W.readyList=null}W(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return }G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);W.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);W.ready()}});if(document.documentElement.doScroll&&AA==AA.top){(function(){if(W.isReady){return }try{document.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,0);return }W.ready()})()}}}W.event.add(AA,"load",W.ready)}W.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(A,B){W.fn[B]=function(C){return C?this.bind(B,C):this.trigger(B)}});W(AA).bind("unload",function(){for(var A in W.cache){if(A!=1&&W.cache[A].handle){W.event.remove(W.cache[A].handle.elem)}}});(function(){W.support={};var E=document.documentElement,D=document.createElement("script"),a=document.createElement("div"),A="script"+(new Date).getTime();a.style.display="none";a.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 C=a.getElementsByTagName("*"),F=a.getElementsByTagName("a")[0];if(!C||!C.length||!F){return }W.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(F.getAttribute("style")),hrefNormalized:F.getAttribute("href")==="/a",opacity:F.style.opacity==="0.5",cssFloat:!!F.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};D.type="text/javascript";try{D.appendChild(document.createTextNode("window."+A+"=1;"))}catch(B){}E.insertBefore(D,E.firstChild);if(AA[A]){W.support.scriptEval=true;delete AA[A]}E.removeChild(D);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){W.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}W(function(){var b=document.createElement("div");b.style.width=b.style.paddingLeft="1px";document.body.appendChild(b);W.boxModel=W.support.boxModel=b.offsetWidth===2;document.body.removeChild(b).style.display="none"})})();var H=W.support.cssFloat?"cssFloat":"styleFloat";W.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};W.fn.extend({_load:W.fn.load,load:function(D,A,a){if(typeof D!=="string"){return this._load(D)}var B=D.indexOf(" ");if(B>=0){var F=D.slice(B,D.length);D=D.slice(0,B)}var C="GET";if(A){if(W.isFunction(A)){a=A;A=null}else{if(typeof A==="object"){A=W.param(A);C="POST"}}}var E=this;W.ajax({url:D,type:C,dataType:"html",data:A,complete:function(b,c){if(c=="success"||c=="notmodified"){E.html(F?W("<div/>").append(b.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(F):b.responseText)}if(a){E.each(a,[b.responseText,c,b])}}});return this},serialize:function(){return W.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?W.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(C,B){var A=W(this).val();return A==null?null:W.isArray(A)?W.map(A,function(D,E){return{name:B.name,value:D}}):{name:B.name,value:A}}).get()}});W.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(B,A){W.fn[A]=function(C){return this.bind(A,C)}});var N=AH();W.extend({get:function(D,B,A,C){if(W.isFunction(B)){A=B;B=null}return W.ajax({type:"GET",url:D,data:B,success:A,dataType:C})},getScript:function(B,A){return W.get(B,null,A,"script")},getJSON:function(C,B,A){return W.get(C,B,A,"json")},post:function(D,B,A,C){if(W.isFunction(B)){A=B;B={}}return W.ajax({type:"POST",url:D,data:B,success:A,dataType:C})},ajaxSetup:function(A){W.extend(W.ajaxSettings,A)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return AA.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(e){e=W.extend(true,e,W.extend(true,{},W.ajaxSettings,e));var A,m=/=\?(&|$)/g,F,B,l=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string"){e.data=W.param(e.data)}if(e.dataType=="jsonp"){if(l=="GET"){if(!e.url.match(m)){e.url+=(e.url.match(/\?/)?"&":"?")+(e.jsonp||"callback")+"=?"}}else{if(!e.data||!e.data.match(m)){e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?"}}e.dataType="json"}if(e.dataType=="json"&&(e.data&&e.data.match(m)||e.url.match(m))){A="jsonp"+N++;if(e.data){e.data=(e.data+"").replace(m,"="+A+"$1")}e.url=e.url.replace(m,"="+A+"$1");e.dataType="script";AA[A]=function(p){B=p;j();f();AA[A]=AF;try{delete AA[A]}catch(o){}if(k){k.removeChild(D)}}}if(e.dataType=="script"&&e.cache==null){e.cache=false}if(e.cache===false&&l=="GET"){var n=AH();var C=e.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+n+"$2");e.url=C+((C==e.url)?(e.url.match(/\?/)?"&":"?")+"_="+n:"")}if(e.data&&l=="GET"){e.url+=(e.url.match(/\?/)?"&":"?")+e.data;e.data=null}if(e.global&&!W.active++){W.event.trigger("ajaxStart")}var a=/^(\w+:)?\/\/([^\/?#]+)/.exec(e.url);if(e.dataType=="script"&&l=="GET"&&a&&(a[1]&&a[1]!=location.protocol||a[2]!=location.host)){var k=document.getElementsByTagName("head")[0];var D=document.createElement("script");D.src=e.url;if(e.scriptCharset){D.charset=e.scriptCharset}if(!A){var c=false;D.onload=D.onreadystatechange=function(){if(!c&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){c=true;j();f();D.onload=D.onreadystatechange=null;k.removeChild(D)}}}k.appendChild(D);return AF}var g=false;var h=e.xhr();if(e.username){h.open(l,e.url,e.async,e.username,e.password)}else{h.open(l,e.url,e.async)}try{if(e.data){h.setRequestHeader("Content-Type",e.contentType)}if(e.ifModified){h.setRequestHeader("If-Modified-Since",W.lastModified[e.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}h.setRequestHeader("X-Requested-With","XMLHttpRequest");h.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(E){}if(e.beforeSend&&e.beforeSend(h,e)===false){if(e.global&&!--W.active){W.event.trigger("ajaxStop")}h.abort();return false}if(e.global){W.event.trigger("ajaxSend",[h,e])}var d=function(q){if(h.readyState==0){if(b){clearInterval(b);b=null;if(e.global&&!--W.active){W.event.trigger("ajaxStop")}}}else{if(!g&&h&&(h.readyState==4||q=="timeout")){g=true;if(b){clearInterval(b);b=null}F=q=="timeout"?"timeout":!W.httpSuccess(h)?"error":e.ifModified&&W.httpNotModified(h,e.url)?"notmodified":"success";if(F=="success"){try{B=W.httpData(h,e.dataType,e)}catch(o){F="parsererror"}}if(F=="success"){var p;try{p=h.getResponseHeader("Last-Modified")}catch(o){}if(e.ifModified&&p){W.lastModified[e.url]=p}if(!A){j()}}else{W.handleError(e,h,F)}f();if(q){h.abort()}if(e.async){h=null}}}};if(e.async){var b=setInterval(d,13);if(e.timeout>0){setTimeout(function(){if(h&&!g){d("timeout")}},e.timeout)}}try{h.send(e.data)}catch(E){W.handleError(e,h,null,E)}if(!e.async){d()}function j(){if(e.success){e.success(B,F)}if(e.global){W.event.trigger("ajaxSuccess",[h,e])}}function f(){if(e.complete){e.complete(h,F)}if(e.global){W.event.trigger("ajaxComplete",[h,e])}if(e.global&&!--W.active){W.event.trigger("ajaxStop")}}return h},handleError:function(C,A,D,B){if(C.error){C.error(A,D,B)}if(C.global){W.event.trigger("ajaxError",[A,C,B])}},active:0,httpSuccess:function(A){try{return !A.status&&location.protocol=="file:"||(A.status>=200&&A.status<300)||A.status==304||A.status==1223}catch(B){}return false},httpNotModified:function(B,D){try{var A=B.getResponseHeader("Last-Modified");return B.status==304||A==W.lastModified[D]}catch(C){}return false},httpData:function(A,C,D){var E=A.getResponseHeader("content-type"),F=C=="xml"||!C&&E&&E.indexOf("xml")>=0,B=F?A.responseXML:A.responseText;if(F&&B.documentElement.tagName=="parsererror"){throw"parsererror"}if(D&&D.dataFilter){B=D.dataFilter(B,C)}if(typeof B==="string"){if(C=="script"){W.globalEval(B)}if(C=="json"){B=AA["eval"]("("+B+")")}}return B},param:function(D){var B=[];function A(F,E){B[B.length]=encodeURIComponent(F)+"="+encodeURIComponent(E)}if(W.isArray(D)||D.jquery){W.each(D,function(){A(this.name,this.value)})}else{for(var C in D){if(W.isArray(D[C])){W.each(D[C],function(){A(C,this)})}else{A(C,W.isFunction(D[C])?D[C]():D[C])}}}return B.join("&").replace(/%20/g,"+")}});var Z={},X,AI=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(B,C){var A={};W.each(AI.concat.apply([],AI.slice(0,C)),function(){A[this]=B});return A}W.fn.extend({show:function(A,a){if(A){return this.animate(K("show",3),A,a)}else{for(var C=0,E=this.length;C<E;C++){var F=W.data(this[C],"olddisplay");this[C].style.display=F||"";if(W.css(this[C],"display")==="none"){var D=this[C].tagName,b;if(Z[D]){b=Z[D]}else{var B=W("<"+D+" />").appendTo("body");b=B.css("display");if(b==="none"){b="block"}B.remove();Z[D]=b}W.data(this[C],"olddisplay",b)}}for(var C=0,E=this.length;C<E;C++){this[C].style.display=W.data(this[C],"olddisplay")||""}return this}},hide:function(B,A){if(B){return this.animate(K("hide",3),B,A)}else{for(var C=0,D=this.length;C<D;C++){var E=W.data(this[C],"olddisplay");if(!E&&E!=="none"){W.data(this[C],"olddisplay",W.css(this[C],"display"))}}for(var C=0,D=this.length;C<D;C++){this[C].style.display="none"}return this}},_toggle:W.fn.toggle,toggle:function(A,B){var C=typeof A==="boolean";return W.isFunction(A)&&W.isFunction(B)?this._toggle.apply(this,arguments):A==null||C?this.each(function(){var D=C?A:W(this).is(":hidden");W(this)[D?"show":"hide"]()}):this.animate(K("toggle",3),A,B)},fadeTo:function(C,A,B){return this.animate({opacity:A},C,B)},animate:function(A,D,B,C){var E=W.speed(D,B,C);return this[E.queue===false?"each":"queue"](function(){var c=W.extend({},E),a,b=this.nodeType==1&&W(this).is(":hidden"),F=this;for(a in A){if(A[a]=="hide"&&b||A[a]=="show"&&!b){return c.complete.call(this)}if((a=="height"||a=="width")&&this.style){c.display=W.css(this,"display");c.overflow=this.style.overflow}}if(c.overflow!=null){this.style.overflow="hidden"}c.curAnim=W.extend({},A);W.each(A,function(j,e){var f=new W.fx(F,c,j);if(/toggle|show|hide/.test(e)){f[e=="toggle"?b?"show":"hide":e](A)}else{var g=e.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),d=f.cur(true)||0;if(g){var k=parseFloat(g[2]),h=g[3]||"px";if(h!="px"){F.style[j]=(k||1)+h;d=((k||1)/f.cur(true))*d;F.style[j]=d+h}if(g[1]){k=((g[1]=="-="?-1:1)*k)+d}f.custom(d,k,h)}else{f.custom(d,e,"")}}});return true})},stop:function(B,C){var A=W.timers;if(B){this.queue([])}this.each(function(){for(var D=A.length-1;D>=0;D--){if(A[D].elem==this){if(C){A[D](true)}A.splice(D,1)}}});if(!C){this.dequeue()}return this}});W.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(B,A){W.fn[B]=function(D,C){return this.animate(A,D,C)}});W.extend({speed:function(B,A,C){var D=typeof B==="object"?B:{complete:C||!C&&A||W.isFunction(B)&&B,duration:B,easing:C&&A||A&&!W.isFunction(A)&&A};D.duration=W.fx.off?0:typeof D.duration==="number"?D.duration:W.fx.speeds[D.duration]||W.fx.speeds._default;D.old=D.complete;D.complete=function(){if(D.queue!==false){W(this).dequeue()}if(W.isFunction(D.old)){D.old.call(this)}};return D},easing:{linear:function(B,A,D,C){return D+C*B},swing:function(B,A,D,C){return((-Math.cos(B*Math.PI)/2)+0.5)*C+D}},timers:[],fx:function(B,C,A){this.options=C;this.elem=B;this.prop=A;if(!C.orig){C.orig={}}}});W.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(W.fx.step[this.prop]||W.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(A){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var B=parseFloat(W.css(this.elem,this.prop,A));return B&&B>-10000?B:parseFloat(W.curCSS(this.elem,this.prop))||0},custom:function(A,B,C){this.startTime=AH();this.start=A;this.end=B;this.unit=C||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function D(F){return E.step(F)}D.elem=this.elem;if(D()&&W.timers.push(D)&&!X){X=setInterval(function(){var a=W.timers;for(var F=0;F<a.length;F++){if(!a[F]()){a.splice(F--,1)}}if(!a.length){clearInterval(X);X=AF}},13)}},show:function(){this.options.orig[this.prop]=W.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());W(this.elem).show()},hide:function(){this.options.orig[this.prop]=W.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(C){var D=AH();if(C||D>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var F=true;for(var E in this.options.curAnim){if(this.options.curAnim[E]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(W.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){W(this.elem).hide()}if(this.options.hide||this.options.show){for(var B in this.options.curAnim){W.attr(this.elem.style,B,this.options.orig[B])}}this.options.complete.call(this.elem)}return false}else{var A=D-this.startTime;this.state=A/this.options.duration;this.pos=W.easing[this.options.easing||(W.easing.swing?"swing":"linear")](this.state,A,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};W.extend(W.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){W.attr(A.elem.style,"opacity",A.now)},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=A.now+A.unit}else{A.elem[A.prop]=A.now}}}});if(document.documentElement.getBoundingClientRect){W.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return W.offset.bodyOffset(this[0])}var D=this[0].getBoundingClientRect(),A=this[0].ownerDocument,E=A.body,F=A.documentElement,a=F.clientTop||E.clientTop||0,b=F.clientLeft||E.clientLeft||0,B=D.top+(self.pageYOffset||W.boxModel&&F.scrollTop||E.scrollTop)-a,C=D.left+(self.pageXOffset||W.boxModel&&F.scrollLeft||E.scrollLeft)-b;return{top:B,left:C}}}else{W.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return W.offset.bodyOffset(this[0])}W.offset.initialized||W.offset.initialize();var F=this[0],c=F.offsetParent,d=F,A=F.ownerDocument,C,b=A.documentElement,E=A.body,D=A.defaultView,e=D.getComputedStyle(F,null),B=F.offsetTop,a=F.offsetLeft;while((F=F.parentNode)&&F!==E&&F!==b){C=D.getComputedStyle(F,null);B-=F.scrollTop,a-=F.scrollLeft;if(F===c){B+=F.offsetTop,a+=F.offsetLeft;if(W.offset.doesNotAddBorder&&!(W.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(F.tagName))){B+=parseInt(C.borderTopWidth,10)||0,a+=parseInt(C.borderLeftWidth,10)||0}d=c,c=F.offsetParent}if(W.offset.subtractsBorderForOverflowNotVisible&&C.overflow!=="visible"){B+=parseInt(C.borderTopWidth,10)||0,a+=parseInt(C.borderLeftWidth,10)||0}e=C}if(e.position==="relative"||e.position==="static"){B+=E.offsetTop,a+=E.offsetLeft}if(e.position==="fixed"){B+=Math.max(b.scrollTop,E.scrollTop),a+=Math.max(b.scrollLeft,E.scrollLeft)}return{top:B,left:a}}}W.offset={initialize:function(){if(this.initialized){return }var C=document.body,c=document.createElement("div"),a,b,A,F,B,d,E=C.style.marginTop,D='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';B={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(d in B){c.style[d]=B[d]}c.innerHTML=D;C.insertBefore(c,C.firstChild);a=c.firstChild,b=a.firstChild,F=a.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(b.offsetTop!==5);this.doesAddBorderForTableAndCells=(F.offsetTop===5);a.style.overflow="hidden",a.style.position="relative";this.subtractsBorderForOverflowNotVisible=(b.offsetTop===-5);C.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(C.offsetTop===0);C.style.marginTop=E;C.removeChild(c);this.initialized=true},bodyOffset:function(C){W.offset.initialized||W.offset.initialize();var A=C.offsetTop,B=C.offsetLeft;if(W.offset.doesNotIncludeMarginInBodyOffset){A+=parseInt(W.curCSS(C,"marginTop",true),10)||0,B+=parseInt(W.curCSS(C,"marginLeft",true),10)||0}return{top:A,left:B}}};W.fn.extend({position:function(){var B=0,C=0,E;if(this[0]){var D=this.offsetParent(),A=this.offset(),F=/^body|html$/i.test(D[0].tagName)?{top:0,left:0}:D.offset();A.top-=AC(this,"marginTop");A.left-=AC(this,"marginLeft");F.top+=AC(D,"borderTopWidth");F.left+=AC(D,"borderLeftWidth");E={top:A.top-F.top,left:A.left-F.left}}return E},offsetParent:function(){var A=this[0].offsetParent||document.body;while(A&&(!/^body|html$/i.test(A.tagName)&&W.css(A,"position")=="static")){A=A.offsetParent}return W(A)}});W.each(["Left","Top"],function(B,C){var A="scroll"+C;W.fn[A]=function(D){if(!this[0]){return null}return D!==AF?this.each(function(){this==AA||this==document?AA.scrollTo(!B?D:W(AA).scrollLeft(),B?D:W(AA).scrollTop()):this[A]=D}):this[0]==AA||this[0]==document?self[B?"pageYOffset":"pageXOffset"]||W.boxModel&&document.documentElement[A]||document.body[A]:this[0][A]}});W.each(["Height","Width"],function(B,D){var F=B?"Left":"Top",C=B?"Right":"Bottom",E=D.toLowerCase();W.fn["inner"+D]=function(){return this[0]?W.css(this[0],E,false,"padding"):null};W.fn["outer"+D]=function(a){return this[0]?W.css(this[0],E,false,a?"margin":"border"):null};var A=D.toLowerCase();W.fn[A]=function(a){return this[0]==AA?document.compatMode=="CSS1Compat"&&document.documentElement["client"+D]||document.body["client"+D]:this[0]==document?Math.max(document.documentElement["client"+D],document.body["scroll"+D],document.documentElement["scroll"+D],document.body["offset"+D],document.documentElement["offset"+D]):a===AF?(this.length?W.css(this[0],A):null):this.css(A,typeof a==="string"?a:a+"px")}})})();jQuery.ui||(function(C){var I=C.fn.remove,D=C.browser.mozilla&&(parseFloat(C.browser.version)<1.9);C.ui={version:"1.7",plugin:{add:function(N,J,L){var K=C.ui[N].prototype;for(var M in L){K.plugins[M]=K.plugins[M]||[];K.plugins[M].push([J,L[M]])}},call:function(M,J,N){var L=M.plugins[J];if(!L||!M.element[0].parentNode){return }for(var K=0;K<L.length;K++){if(M.options[L[K][0]]){L[K][1].apply(M.element,N)}}}},contains:function(K,J){return document.compareDocumentPosition?K.compareDocumentPosition(J)&16:K!==J&&K.contains(J)},hasScroll:function(K,M){if(C(K).css("overflow")=="hidden"){return false}var L=(M&&M=="left")?"scrollLeft":"scrollTop",J=false;if(K[L]>0){return true}K[L]=1;J=(K[L]>0);K[L]=0;return J},isOverAxis:function(J,L,K){return(J>L)&&(J<(L+K))},isOver:function(M,O,L,K,N,J){return C.ui.isOverAxis(M,L,N)&&C.ui.isOverAxis(O,K,J)},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=C.attr,E=C.fn.removeAttr,H="http://www.w3.org/2005/07/aaa",A=/^aria-/,B=/^wairole:/;C.attr=function(M,L,J){var K=J!==undefined;return(L=="role"?(K?F.call(this,M,L,"wairole:"+J):(F.apply(this,arguments)||"").replace(B,"")):(A.test(L)?(K?M.setAttributeNS(H,L.replace(A,"aaa:"),J):F.call(this,M,L.replace(A,"aaa:"))):F.apply(this,arguments)))};C.fn.removeAttr=function(J){return(A.test(J)?this.each(function(){this.removeAttributeNS(H,J.replace(A,""))}):E.call(this,J))}}C.fn.extend({remove:function(){C("*",this).add(this).each(function(){C(this).triggerHandler("remove")});return I.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 J;if((C.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){J=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(C.curCSS(this,"position",1))&&(/(auto|scroll)/).test(C.curCSS(this,"overflow",1)+C.curCSS(this,"overflow-y",1)+C.curCSS(this,"overflow-x",1))}).eq(0)}else{J=this.parents().filter(function(){return(/(auto|scroll)/).test(C.curCSS(this,"overflow",1)+C.curCSS(this,"overflow-y",1)+C.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!J.length?C(document):J}});C.extend(C.expr[":"],{data:function(K,J,L){return !!C.data(K,L[3])},focusable:function(J){var K=J.nodeName.toLowerCase(),L=C.attr(J,"tabindex");return(/input|select|textarea|button|object/.test(K)?!J.disabled:"a"==K||"area"==K?J.href||!isNaN(L):!isNaN(L))&&!C(J)["area"==K?"parents":"closest"](":hidden").length},tabbable:function(K){var J=C.attr(K,"tabindex");return(isNaN(J)||J>=0)&&C(K).is(":focusable")}});function G(K,L,M,J){function O(Q){var P=C[K][L][Q]||[];return(typeof P=="string"?P.split(/,?\s+/):P)}var N=O("getter");if(J.length==1&&typeof J[0]=="string"){N=N.concat(O("getterSetter"))}return(C.inArray(M,N)!=-1)}C.widget=function(J,L){var K=J.split(".")[0];J=J.split(".")[1];C.fn[J]=function(O){var M=(typeof O=="string"),N=Array.prototype.slice.call(arguments,1);if(M&&O.substring(0,1)=="_"){return this}if(M&&G(K,J,O,N)){var P=C.data(this[0],J);return(P?P[O].apply(P,N):undefined)}return this.each(function(){var Q=C.data(this,J);(!Q&&!M&&C.data(this,J,new C[K][J](this,O))._init());(Q&&M&&C.isFunction(Q[O])&&Q[O].apply(Q,N))})};C[K]=C[K]||{};C[K][J]=function(N,M){var O=this;this.namespace=K;this.widgetName=J;this.widgetEventPrefix=C[K][J].eventPrefix||J;this.widgetBaseClass=K+"-"+J;this.options=C.extend({},C.widget.defaults,C[K][J].defaults,C.metadata&&C.metadata.get(N)[J],M);this.element=C(N).bind("setData."+J,function(Q,P,R){if(Q.target==N){return O._setData(P,R)}}).bind("getData."+J,function(Q,P){if(Q.target==N){return O._getData(P)}}).bind("remove",function(){return O.destroy()})};C[K][J].prototype=C.extend({},C.widget.prototype,L);C[K][J].getterSetter="option"};C.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(J,K){var M=J,L=this;if(typeof J=="string"){if(K===undefined){return this._getData(J)}M={};M[J]=K}C.each(M,function(N,O){L._setData(N,O)})},_getData:function(J){return this.options[J]},_setData:function(J,K){this.options[J]=K;if(J=="disabled"){this.element[K?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",K)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(J,K,L){var N=this.options[J],O=(J==this.widgetEventPrefix?J:this.widgetEventPrefix+J);K=C.Event(K);K.type=O;if(K.originalEvent){for(var P=C.event.props.length,M;P;){M=C.event.props[--P];K[M]=K.originalEvent[M]}}this.element.trigger(K,L);return !(C.isFunction(N)&&N.call(this.element[0],K,L)===false||K.isDefaultPrevented())}};C.widget.defaults={disabled:false};C.ui.mouse={_mouseInit:function(){var J=this;this.element.bind("mousedown."+this.widgetName,function(K){return J._mouseDown(K)}).bind("click."+this.widgetName,function(K){if(J._preventClickEvent){J._preventClickEvent=false;K.stopImmediatePropagation();return false}});if(C.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(C.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(J){J.originalEvent=J.originalEvent||{};if(J.originalEvent.mouseHandled){return }(this._mouseStarted&&this._mouseUp(J));this._mouseDownEvent=J;var M=this,K=(J.which==1),L=(typeof this.options.cancel=="string"?C(J.target).parents().add(J.target).filter(this.options.cancel).length:false);if(!K||L||!this._mouseCapture(J)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){M.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(J)!==false);if(!this._mouseStarted){J.preventDefault();return true}}this._mouseMoveDelegate=function(N){return M._mouseMove(N)};this._mouseUpDelegate=function(N){return M._mouseUp(N)};C(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(C.browser.safari||J.preventDefault());J.originalEvent.mouseHandled=true;return true},_mouseMove:function(J){if(C.browser.msie&&!J.button){return this._mouseUp(J)}if(this._mouseStarted){this._mouseDrag(J);return J.preventDefault()}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,J)!==false);(this._mouseStarted?this._mouseDrag(J):this._mouseUp(J))}return !this._mouseStarted},_mouseUp:function(J){C(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(J.target==this._mouseDownEvent.target);this._mouseStop(J)}return false},_mouseDistanceMet:function(J){return(Math.max(Math.abs(this._mouseDownEvent.pageX-J.pageX),Math.abs(this._mouseDownEvent.pageY-J.pageY))>=this.options.distance)},_mouseDelayMet:function(J){return this.mouseDelayMet},_mouseStart:function(J){},_mouseDrag:function(J){},_mouseStop:function(J){},_mouseCapture:function(J){return true}};C.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.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return }this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(B){var C=this.options;if(this.helper||C.disabled||A(B.target).is(".ui-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("ui-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(B){var C=!this.options.handle||!A(this.options.handle,this.element).length?true:false;A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==B.target){C=true}});return C},_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)||(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 E=this.options;if(E.containment=="parent"){E.containment=this.helper[0].parentNode}if(E.containment=="document"||E.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(E.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(A(E.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(E.containment)&&E.containment.constructor!=Array){var C=A(E.containment)[0];if(!C){return }var D=A(E.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(E.containment.constructor==Array){this.containment=E.containment}}},_convertPositionTo:function(E,G){if(!G){G=this.position}var C=E=="absolute"?1:-1;var D=this.options,B=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,F=(/(html|body)/i).test(B[0].tagName);return{top:(G.top+this.offset.relative.top*C+this.offset.parent.top*C-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(F?0:B.scrollTop()))*C)),left:(G.left+this.offset.relative.left*C+this.offset.parent.left*C-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():F?0:B.scrollLeft())*C))}},_generatePosition:function(I){var E=this.options,D=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,F=(/(html|body)/i).test(D[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var H=I.pageX;var G=I.pageY;if(this.originalPosition){if(this.containment){if(I.pageX-this.offset.click.left<this.containment[0]){H=this.containment[0]+this.offset.click.left}if(I.pageY-this.offset.click.top<this.containment[1]){G=this.containment[1]+this.offset.click.top}if(I.pageX-this.offset.click.left>this.containment[2]){H=this.containment[2]+this.offset.click.left}if(I.pageY-this.offset.click.top>this.containment[3]){G=this.containment[3]+this.offset.click.top}}if(E.grid){var C=this.originalPageY+Math.round((G-this.originalPageY)/E.grid[1])*E.grid[1];G=this.containment?(!(C-this.offset.click.top<this.containment[1]||C-this.offset.click.top>this.containment[3])?C:(!(C-this.offset.click.top<this.containment[1])?C-E.grid[1]:C+E.grid[1])):C;var B=this.originalPageX+Math.round((H-this.originalPageX)/E.grid[0])*E.grid[0];H=this.containment?(!(B-this.offset.click.left<this.containment[0]||B-this.offset.click.left>this.containment[2])?B:(!(B-this.offset.click.left<this.containment[0])?B-E.grid[0]:B+E.grid[0])):B}}return{top:(G-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(F?0:D.scrollTop())))),left:(H-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():F?0:D.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-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.7",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",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(C,E){var D=A(this).data("draggable"),F=D.options,B=A.extend({},E,{item:D.element});D.sortables=[];A(F.connectToSortable).each(function(){var G=A.data(this,"sortable");if(G&&!G.options.disabled){D.sortables.push({instance:G,shouldRevert:G.options.revert});G._refreshItems();G._trigger("activate",C,B)}})},stop:function(C,E){var D=A(this).data("draggable"),B=A.extend({},E,{item:D.element});A.each(D.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;D.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(C);this.instance.options.helper=this.instance.options._helper;if(D.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",C,B)}})},drag:function(C,F){var E=A(this).data("draggable"),B=this;var D=function(G){var L=this.offset.click.top,K=this.offset.click.left;var N=this.positionAbs.top,I=this.positionAbs.left;var H=G.height,J=G.width;var M=G.top,O=G.left;return A.ui.isOver(N+L,I+K,M,O,H,J)};A.each(E.sortables,function(G){this.instance.positionAbs=E.positionAbs;this.instance.helperProportions=E.helperProportions;this.instance.offset.click=E.offset.click;if(this.instance._intersectsWith(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 F.helper[0]};C.target=this.instance.currentItem[0];this.instance._mouseCapture(C,true);this.instance._mouseStart(C,true,true);this.instance.offset.click.top=E.offset.click.top;this.instance.offset.click.left=E.offset.click.left;this.instance.offset.parent.left-=E.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=E.offset.parent.top-this.instance.offset.parent.top;E._trigger("toSortable",C);E.dropped=this.instance.element;E.currentItem=E.element;this.instance.fromOutside=E}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._trigger("out",C,this.instance._uiHash(this.instance));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()}E._trigger("fromSortable",C);E.dropped=false}}})}});A.ui.plugin.add("draggable","cursor",{start:function(C,D){var B=A("body"),E=A(this).data("draggable").options;if(B.css("cursor")){E._cursor=B.css("cursor")}B.css("cursor",E.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),E=A(this).data("draggable").options;if(B.css("opacity")){E._opacity=B.css("opacity")}B.css("opacity",E.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,E){var C=A(this).data("draggable"),F=C.options,B=false;if(C.scrollParent[0]!=document&&C.scrollParent[0].tagName!="HTML"){if(!F.axis||F.axis!="x"){if((C.overflowOffset.top+C.scrollParent[0].offsetHeight)-D.pageY<F.scrollSensitivity){C.scrollParent[0].scrollTop=B=C.scrollParent[0].scrollTop+F.scrollSpeed}else{if(D.pageY-C.overflowOffset.top<F.scrollSensitivity){C.scrollParent[0].scrollTop=B=C.scrollParent[0].scrollTop-F.scrollSpeed}}}if(!F.axis||F.axis!="y"){if((C.overflowOffset.left+C.scrollParent[0].offsetWidth)-D.pageX<F.scrollSensitivity){C.scrollParent[0].scrollLeft=B=C.scrollParent[0].scrollLeft+F.scrollSpeed}else{if(D.pageX-C.overflowOffset.left<F.scrollSensitivity){C.scrollParent[0].scrollLeft=B=C.scrollParent[0].scrollLeft-F.scrollSpeed}}}}else{if(!F.axis||F.axis!="x"){if(D.pageY-A(document).scrollTop()<F.scrollSensitivity){B=A(document).scrollTop(A(document).scrollTop()-F.scrollSpeed)}else{if(A(window).height()-(D.pageY-A(document).scrollTop())<F.scrollSensitivity){B=A(document).scrollTop(A(document).scrollTop()+F.scrollSpeed)}}}if(!F.axis||F.axis!="y"){if(D.pageX-A(document).scrollLeft()<F.scrollSensitivity){B=A(document).scrollLeft(A(document).scrollLeft()-F.scrollSpeed)}else{if(A(window).width()-(D.pageX-A(document).scrollLeft())<F.scrollSensitivity){B=A(document).scrollLeft(A(document).scrollLeft()+F.scrollSpeed)}}}}if(B!==false&&A.ui.ddmanager&&!F.dropBehaviour){A.ui.ddmanager.prepareOffsets(C,D)}}});A.ui.plugin.add("draggable","snap",{start:function(C,D){var B=A(this).data("draggable"),E=B.options;B.snapElements=[];A(E.snap.constructor!=String?(E.snap.items||":data(draggable)"):E.snap).each(function(){var G=A(this);var F=G.offset();if(this!=B.element[0]){B.snapElements.push({item:this,width:G.outerWidth(),height:G.outerHeight(),top:F.top,left:F.left})}})},drag:function(Z,X){var Q=A(this).data("draggable"),b=Q.options;var g=b.snapTolerance;var f=X.offset.left,e=f+Q.helperProportions.width,P=X.offset.top,O=P+Q.helperProportions.height;for(var c=Q.snapElements.length-1;c>=0;c--){var W=Q.snapElements[c].left,V=W+Q.snapElements[c].width,U=Q.snapElements[c].top,Y=U+Q.snapElements[c].height;if(!((W-g<f&&f<V+g&&U-g<P&&P<Y+g)||(W-g<f&&f<V+g&&U-g<O&&O<Y+g)||(W-g<e&&e<V+g&&U-g<P&&P<Y+g)||(W-g<e&&e<V+g&&U-g<O&&O<Y+g))){if(Q.snapElements[c].snapping){(Q.options.snap.release&&Q.options.snap.release.call(Q.element,Z,A.extend(Q._uiHash(),{snapItem:Q.snapElements[c].item})))}Q.snapElements[c].snapping=false;continue}if(b.snapMode!="inner"){var N=Math.abs(U-O)<=g;var h=Math.abs(Y-P)<=g;var S=Math.abs(W-e)<=g;var T=Math.abs(V-f)<=g;if(N){X.position.top=Q._convertPositionTo("relative",{top:U-Q.helperProportions.height,left:0}).top-Q.margins.top}if(h){X.position.top=Q._convertPositionTo("relative",{top:Y,left:0}).top-Q.margins.top}if(S){X.position.left=Q._convertPositionTo("relative",{top:0,left:W-Q.helperProportions.width}).left-Q.margins.left}if(T){X.position.left=Q._convertPositionTo("relative",{top:0,left:V}).left-Q.margins.left}}var R=(N||h||S||T);if(b.snapMode!="outer"){var N=Math.abs(U-P)<=g;var h=Math.abs(Y-O)<=g;var S=Math.abs(W-f)<=g;var T=Math.abs(V-e)<=g;if(N){X.position.top=Q._convertPositionTo("relative",{top:U,left:0}).top-Q.margins.top}if(h){X.position.top=Q._convertPositionTo("relative",{top:Y-Q.helperProportions.height,left:0}).top-Q.margins.top}if(S){X.position.left=Q._convertPositionTo("relative",{top:0,left:W}).left-Q.margins.left}if(T){X.position.left=Q._convertPositionTo("relative",{top:0,left:V-Q.helperProportions.width}).left-Q.margins.left}}if(!Q.snapElements[c].snapping&&(N||h||S||T||R)){(Q.options.snap.snap&&Q.options.snap.snap.call(Q.element,Z,A.extend(Q._uiHash(),{snapItem:Q.snapElements[c].item})))}Q.snapElements[c].snapping=(N||h||S||T||R)}}});A.ui.plugin.add("draggable","stack",{start:function(B,C){var E=A(this).data("draggable").options;var D=A.makeArray(A(E.stack.group)).sort(function(G,F){return(parseInt(A(G).css("zIndex"),10)||E.stack.min)-(parseInt(A(F).css("zIndex"),10)||E.stack.min)});A(D).each(function(F){this.style.zIndex=E.stack.min+F});this[0].style.zIndex=E.stack.min+D.length}});A.ui.plugin.add("draggable","zIndex",{start:function(C,D){var B=A(D.helper),E=A(this).data("draggable").options;if(B.css("zIndex")){E._zIndex=B.css("zIndex")}B.css("zIndex",E.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.resizable",A.extend({},A.ui.mouse,{_init:function(){var E=this,D=this.options;this.element.addClass("ui-resizable");A.extend(this,{_aspectRatio:!!(D.aspectRatio),aspectRatio:D.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:D.helper||D.ghost||D.animate?D.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"))&&A.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(A('<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().data("resizable",this.element.data("resizable"));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});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=D.handles||(!A(".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 G=this.handles.split(",");this.handles={};for(var F=0;F<G.length;F++){var J=A.trim(G[F]),I="ui-resizable-"+J;var H=A('<div class="ui-resizable-handle '+I+'"></div>');if(/sw|se|ne|nw/.test(J)){H.css({zIndex:++D.zIndex})}if("se"==J){H.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[J]=".ui-resizable-"+J;this.element.append(H)}}this._renderAxis=function(L){L=L||this.element;for(var N in this.handles){if(this.handles[N].constructor==String){this.handles[N]=A(this.handles[N],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var O=A(this.handles[N],this.element),K=0;K=/sw|ne|nw|se|n|s/.test(N)?O.outerHeight():O.outerWidth();var M=["padding",/ne|nw|n/.test(N)?"Top":/se|sw|s/.test(N)?"Bottom":/^e$/.test(N)?"Right":"Left"].join("");L.css(M,K);this._proportionallyResize()}if(!A(this.handles[N]).length){continue}}};this._renderAxis(this.element);this._handles=A(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!E.resizing){if(this.className){var K=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}E.axis=K&&K[1]?K[1]:"se"}});if(D.autoHide){this._handles.hide();A(this.element).addClass("ui-resizable-autohide").hover(function(){A(this).removeClass("ui-resizable-autohide");E._handles.show()},function(){if(!E.resizing){A(this).addClass("ui-resizable-autohide");E._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var D=function(F){A(F).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){D(this.element);var E=this.element;E.parent().append(this.originalElement.css({position:E.css("position"),width:E.outerWidth(),height:E.outerHeight(),top:E.css("top"),left:E.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);D(this.originalElement)},_mouseCapture:function(D){var E=false;for(var F in this.handles){if(A(this.handles[F])[0]==D.target){E=true}}return this.options.disabled||!!E},_mouseStart:function(G){var E=this.options,D=this.element.position(),J=this.element;this.resizing=true;this.documentScroll={top:A(document).scrollTop(),left:A(document).scrollLeft()};if(J.is(".ui-draggable")||(/absolute/).test(J.css("position"))){J.css({position:"absolute",top:D.top,left:D.left})}if(A.browser.opera&&(/relative/).test(J.css("position"))){J.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var F=C(this.helper.css("left")),H=C(this.helper.css("top"));if(E.containment){F+=A(E.containment).scrollLeft()||0;H+=A(E.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:F,top:H};this.size=this._helper?{width:J.outerWidth(),height:J.outerHeight()}:{width:J.width(),height:J.height()};this.originalSize=this._helper?{width:J.outerWidth(),height:J.outerHeight()}:{width:J.width(),height:J.height()};this.originalPosition={left:F,top:H};this.sizeDiff={width:J.outerWidth()-J.width(),height:J.outerHeight()-J.height()};this.originalMousePosition={left:G.pageX,top:G.pageY};this.aspectRatio=(typeof E.aspectRatio=="number")?E.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var I=A(".ui-resizable-"+this.axis).css("cursor");A("body").css("cursor",I=="auto"?this.axis+"-resize":I);J.addClass("ui-resizable-resizing");this._propagate("start",G);return true},_mouseDrag:function(G){var L=this.helper,K=this.options,D={},I=this,N=this.originalMousePosition,E=this.axis;var J=(G.pageX-N.left)||0,F=(G.pageY-N.top)||0;var M=this._change[E];if(!M){return false}var P=M.apply(this,[G,J,F]),O=A.browser.msie&&A.browser.version<7,H=this.sizeDiff;if(this._aspectRatio||G.shiftKey){P=this._updateRatio(P,G)}P=this._respectSize(P,G);this._propagate("resize",G);L.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._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(P);this._trigger("resize",G,this.ui());return false},_mouseStop:function(E){this.resizing=false;var F=this.options,J=this;if(this._helper){var D=this._proportionallyResizeElements,L=D.length&&(/textarea/i).test(D[0].nodeName),M=L&&A.ui.hasScroll(D[0],"left")?0:J.sizeDiff.height,H=L?0:J.sizeDiff.width;var K={width:(J.size.width-H),height:(J.size.height-M)},G=(parseInt(J.element.css("left"),10)+(J.position.left-J.originalPosition.left))||null,I=(parseInt(J.element.css("top"),10)+(J.position.top-J.originalPosition.top))||null;if(!F.animate){this.element.css(A.extend(K,{top:I,left:G}))}J.helper.height(J.size.height);J.helper.width(J.size.width);if(this._helper&&!F.animate){this._proportionallyResize()}}A("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",E);if(this._helper){this.helper.remove()}return false},_updateCache:function(D){var E=this.options;this.offset=this.helper.offset();if(B(D.left)){this.position.left=D.left}if(B(D.top)){this.position.top=D.top}if(B(D.height)){this.size.height=D.height}if(B(D.width)){this.size.width=D.width}},_updateRatio:function(I,H){var D=this.options,F=this.position,G=this.size,E=this.axis;if(I.height){I.width=(G.height*this.aspectRatio)}else{if(I.width){I.height=(G.width/this.aspectRatio)}}if(E=="sw"){I.left=F.left+(G.width-I.width);I.top=null}if(E=="nw"){I.top=F.top+(G.height-I.height);I.left=F.left+(G.width-I.width)}return I},_respectSize:function(Q,I){var O=this.helper,L=this.options,M=this._aspectRatio||I.shiftKey,K=this.axis,E=B(Q.width)&&L.maxWidth&&(L.maxWidth<Q.width),R=B(Q.height)&&L.maxHeight&&(L.maxHeight<Q.height),J=B(Q.width)&&L.minWidth&&(L.minWidth>Q.width),N=B(Q.height)&&L.minHeight&&(L.minHeight>Q.height);if(J){Q.width=L.minWidth}if(N){Q.height=L.minHeight}if(E){Q.width=L.maxWidth}if(R){Q.height=L.maxHeight}var G=this.originalPosition.left+this.originalSize.width,H=this.position.top+this.size.height;var P=/sw|nw|w/.test(K),F=/nw|ne|n/.test(K);if(J&&P){Q.left=G-L.minWidth}if(E&&P){Q.left=G-L.maxWidth}if(N&&F){Q.top=H-L.minHeight}if(R&&F){Q.top=H-L.maxHeight}var S=!Q.width&&!Q.height;if(S&&!Q.left&&Q.top){Q.top=null}else{if(S&&!Q.top&&Q.left){Q.left=null}}return Q},_proportionallyResize:function(){var F=this.options;if(!this._proportionallyResizeElements.length){return }var H=this.helper||this.element;for(var G=0;G<this._proportionallyResizeElements.length;G++){var I=this._proportionallyResizeElements[G];if(!this.borderDif){var E=[I.css("borderTopWidth"),I.css("borderRightWidth"),I.css("borderBottomWidth"),I.css("borderLeftWidth")],D=[I.css("paddingTop"),I.css("paddingRight"),I.css("paddingBottom"),I.css("paddingLeft")];this.borderDif=A.map(E,function(J,L){var K=parseInt(J,10)||0,M=parseInt(D[L],10)||0;return K+M})}if(A.browser.msie&&!(!(A(H).is(":hidden")||A(H).parents(":hidden").length))){continue}I.css({height:(H.height()-this.borderDif[0]-this.borderDif[2])||0,width:(H.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var G=this.element,E=this.options;this.elementOffset=G.offset();if(this._helper){this.helper=this.helper||A('<div style="overflow:hidden;"></div>');var F=A.browser.msie&&A.browser.version<7,H=(F?1:0),D=(F?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+D,height:this.element.outerHeight()+D,position:"absolute",left:this.elementOffset.left-H+"px",top:this.elementOffset.top-H+"px",zIndex:++E.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(E,D,F){return{width:this.originalSize.width+D}},w:function(I,G,F){var E=this.options,H=this.originalSize,D=this.originalPosition;return{left:D.left+G,width:H.width-G}},n:function(I,G,F){var E=this.options,H=this.originalSize,D=this.originalPosition;return{top:D.top+F,height:H.height-F}},s:function(E,D,F){return{height:this.originalSize.height+F}},se:function(E,D,F){return A.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[E,D,F]))},sw:function(E,D,F){return A.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[E,D,F]))},ne:function(E,D,F){return A.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[E,D,F]))},nw:function(E,D,F){return A.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[E,D,F]))}},_propagate:function(E,D){A.ui.plugin.call(this,E,[D,this.ui()]);(E!="resize"&&this._trigger(E,D,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}}}));A.extend(A.ui.resizable,{version:"1.7",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});A.ui.plugin.add("resizable","alsoResize",{start:function(G,D){var F=A(this).data("resizable"),E=F.options;_store=function(H){A(H).each(function(){A(this).data("resizable-alsoresize",{width:parseInt(A(this).width(),10),height:parseInt(A(this).height(),10),left:parseInt(A(this).css("left"),10),top:parseInt(A(this).css("top"),10)})})};if(typeof (E.alsoResize)=="object"&&!E.alsoResize.parentNode){if(E.alsoResize.length){E.alsoResize=E.alsoResize[0];_store(E.alsoResize)}else{A.each(E.alsoResize,function(H,I){_store(H)})}}else{_store(E.alsoResize)}},resize:function(K,G){var I=A(this).data("resizable"),J=I.options,E=I.originalSize,F=I.originalPosition;var D={height:(I.size.height-E.height)||0,width:(I.size.width-E.width)||0,top:(I.position.top-F.top)||0,left:(I.position.left-F.left)||0},H=function(L,M){A(L).each(function(){var O=A(this),P=A(this).data("resizable-alsoresize"),N={},Q=M&&M.length?M:["width","height","top","left"];A.each(Q||["width","height","top","left"],function(R,T){var S=(P[T]||0)+(D[T]||0);if(S&&S>=0){N[T]=S||null}});if(/relative/.test(O.css("position"))&&A.browser.opera){I._revertToRelativePosition=true;O.css({position:"absolute",top:"auto",left:"auto"})}O.css(N)})};if(typeof (J.alsoResize)=="object"&&!J.alsoResize.nodeType){A.each(J.alsoResize,function(L,M){H(L,M)})}else{H(J.alsoResize)}},stop:function(D,E){var F=A(this).data("resizable");if(F._revertToRelativePosition&&A.browser.opera){F._revertToRelativePosition=false;el.css({position:"relative"})}A(this).removeData("resizable-alsoresize-start")}});A.ui.plugin.add("resizable","animate",{stop:function(D,I){var J=A(this).data("resizable"),E=J.options;var N=J._proportionallyResizeElements,K=N.length&&(/textarea/i).test(N[0].nodeName),L=K&&A.ui.hasScroll(N[0],"left")?0:J.sizeDiff.height,G=K?0:J.sizeDiff.width;var M={width:(J.size.width-G),height:(J.size.height-L)},F=(parseInt(J.element.css("left"),10)+(J.position.left-J.originalPosition.left))||null,H=(parseInt(J.element.css("top"),10)+(J.position.top-J.originalPosition.top))||null;J.element.animate(A.extend(M,H&&F?{top:H,left:F}:{}),{duration:E.animateDuration,easing:E.animateEasing,step:function(){var O={width:parseInt(J.element.css("width"),10),height:parseInt(J.element.css("height"),10),top:parseInt(J.element.css("top"),10),left:parseInt(J.element.css("left"),10)};if(N&&N.length){A(N[0]).css({width:O.width,height:O.height})}J._updateCache(O);J._propagate("resize",D)}})}});A.ui.plugin.add("resizable","containment",{start:function(I,K){var E=A(this).data("resizable"),O=E.options,Q=E.element;var J=O.containment,P=(J instanceof A)?J.get(0):(/parent/.test(J))?Q.parent().get(0):J;if(!P){return }E.containerElement=A(P);if(/document/.test(J)||J==document){E.containerOffset={left:0,top:0};E.containerPosition={left:0,top:0};E.parentData={element:A(document),left:0,top:0,width:A(document).width(),height:A(document).height()||document.body.parentNode.scrollHeight}}else{var G=A(P),N=[];A(["Top","Right","Left","Bottom"]).each(function(S,R){N[S]=C(G.css("padding"+R))});E.containerOffset=G.offset();E.containerPosition=G.position();E.containerSize={height:(G.innerHeight()-N[3]),width:(G.innerWidth()-N[1])};var H=E.containerOffset,F=E.containerSize.height,D=E.containerSize.width,M=(A.ui.hasScroll(P,"left")?P.scrollWidth:D),L=(A.ui.hasScroll(P)?P.scrollHeight:F);E.parentData={element:P,left:H.left,top:H.top,width:M,height:L}}},resize:function(I,K){var E=A(this).data("resizable"),M=E.options,G=E.containerSize,H=E.containerOffset,R=E.size,S=E.position,L=M._aspectRatio||I.shiftKey,F={top:0,left:0},J=E.containerElement;if(J[0]!=document&&(/static/).test(J.css("position"))){F=H}if(S.left<(E._helper?H.left:0)){E.size.width=E.size.width+(E._helper?(E.position.left-H.left):(E.position.left-F.left));if(L){E.size.height=E.size.width/M.aspectRatio}E.position.left=M.helper?H.left:0}if(S.top<(E._helper?H.top:0)){E.size.height=E.size.height+(E._helper?(E.position.top-H.top):E.position.top);if(L){E.size.width=E.size.height*M.aspectRatio}E.position.top=E._helper?H.top:0}E.offset.left=E.parentData.left+E.position.left;E.offset.top=E.parentData.top+E.position.top;var Q=Math.abs((E._helper?E.offset.left-F.left:(E.offset.left-F.left))+E.sizeDiff.width),O=Math.abs((E._helper?E.offset.top-F.top:(E.offset.top-H.top))+E.sizeDiff.height);var P=E.containerElement.get(0)==E.element.parent().get(0),N=/relative|absolute/.test(E.containerElement.css("position"));if(P&&N){Q-=E.parentData.left}if(Q+E.size.width>=E.parentData.width){E.size.width=E.parentData.width-Q;if(L){E.size.height=E.size.width/M.aspectRatio}}if(O+E.size.height>=E.parentData.height){E.size.height=E.parentData.height-O;if(L){E.size.width=E.size.height*M.aspectRatio}}},stop:function(K,F){var H=A(this).data("resizable"),L=H.options,D=H.position,E=H.containerOffset,J=H.containerPosition,M=H.containerElement;var N=A(H.helper),I=N.offset(),G=N.outerWidth()-H.sizeDiff.width,O=N.outerHeight()-H.sizeDiff.height;if(H._helper&&!L.animate&&(/relative/).test(M.css("position"))){A(this).css({left:I.left-J.left-E.left,width:G,height:O})}if(H._helper&&!L.animate&&(/static/).test(M.css("position"))){A(this).css({left:I.left-J.left-E.left,width:G,height:O})}}});A.ui.plugin.add("resizable","ghost",{start:function(H,D){var F=A(this).data("resizable"),E=F.options,G=F.size;F.ghost=F.originalElement.clone();F.ghost.css({opacity:0.25,display:"block",position:"relative",height:G.height,width:G.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof E.ghost=="string"?E.ghost:"");F.ghost.appendTo(F.helper)},resize:function(G,D){var F=A(this).data("resizable"),E=F.options;if(F.ghost){F.ghost.css({position:"relative",height:F.size.height,width:F.size.width})}},stop:function(G,D){var F=A(this).data("resizable"),E=F.options;if(F.ghost&&F.helper){F.helper.get(0).removeChild(F.ghost.get(0))}}});A.ui.plugin.add("resizable","grid",{resize:function(K,H){var J=A(this).data("resizable"),N=J.options,F=J.size,D=J.originalSize,E=J.originalPosition,I=J.axis,G=N._aspectRatio||K.shiftKey;N.grid=typeof N.grid=="number"?[N.grid,N.grid]:N.grid;var M=Math.round((F.width-D.width)/(N.grid[0]||1))*(N.grid[0]||1),L=Math.round((F.height-D.height)/(N.grid[1]||1))*(N.grid[1]||1);if(/^(se|s|e)$/.test(I)){J.size.width=D.width+M;J.size.height=D.height+L}else{if(/^(ne)$/.test(I)){J.size.width=D.width+M;J.size.height=D.height+L;J.position.top=E.top-L}else{if(/^(sw)$/.test(I)){J.size.width=D.width+M;J.size.height=D.height+L;J.position.left=E.left-M}else{J.size.width=D.width+M;J.size.height=D.height+L;J.position.top=E.top-L;J.position.left=E.left-M}}}}});var C=function(D){return parseInt(D,10)||0};var B=function(D){return !isNaN(parseInt(D,10))}})(jQuery);(function(A){var C={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="ui-dialog ui-widget ui-widget-content ui-corner-all ";A.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var J=this,K=this.options,H=K.title||this.originalTitle||"&nbsp;",M=A.ui.dialog.getTitleId(this.element),I=(this.uiDialog=A("<div/>")).appendTo(document.body).hide().addClass(B+K.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:K.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(N){(K.closeOnEscape&&N.keyCode&&N.keyCode==A.ui.keyCode.ESCAPE&&J.close(N))}).attr({role:"dialog","aria-labelledby":M}).mousedown(function(N){J.moveToTop(false,N)}),E=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(I),D=(this.uiDialogTitlebar=A("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(I),G=A('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){G.addClass("ui-state-hover")},function(){G.removeClass("ui-state-hover")}).focus(function(){G.addClass("ui-state-focus")}).blur(function(){G.removeClass("ui-state-focus")}).mousedown(function(N){N.stopPropagation()}).click(function(N){J.close(N);return false}).appendTo(D),F=(this.uiDialogTitlebarCloseText=A("<span/>")).addClass("ui-icon ui-icon-closethick").text(K.closeText).appendTo(G),L=A("<span/>").addClass("ui-dialog-title").attr("id",M).html(H).prependTo(D);D.find("*").add(D).disableSelection();(K.draggable&&A.fn.draggable&&this._makeDraggable());(K.resizable&&A.fn.resizable&&this._makeResizable());this._createButtons(K.buttons);this._isOpen=false;(K.bgiframe&&A.fn.bgiframe&&I.bgiframe());(K.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());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(E){var D=this;if(false===D._trigger("beforeclose",E)){return }(D.overlay&&D.overlay.destroy());D.uiDialog.unbind("keypress.ui-dialog");(D.options.hide?D.uiDialog.hide(D.options.hide,function(){D._trigger("close",E)}):D.uiDialog.hide()&&D._trigger("close",E));A.ui.dialog.overlay.resize();D._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(E,D){if((this.options.modal&&!E)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",D)}if(this.options.zIndex>A.ui.dialog.maxZ){A.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",A.ui.dialog.overlay.maxZ=++A.ui.dialog.maxZ));var F={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++A.ui.dialog.maxZ);this.element.attr(F);this._trigger("focus",D)},open:function(){if(this._isOpen){return }var E=this.options,D=this.uiDialog;this.overlay=E.modal?new A.ui.dialog.overlay(this):null;(D.next().length&&D.appendTo("body"));this._size();this._position(E.position);D.show(E.show);this.moveToTop(true);(E.modal&&D.bind("keypress.ui-dialog",function(H){if(H.keyCode!=A.ui.keyCode.TAB){return }var G=A(":tabbable",this),I=G.filter(":first")[0],F=G.filter(":last")[0];if(H.target==F&&!H.shiftKey){setTimeout(function(){I.focus()},1)}else{if(H.target==I&&H.shiftKey){setTimeout(function(){F.focus()},1)}}}));A([]).add(D.find(".ui-dialog-content :tabbable:first")).add(D.find(".ui-dialog-buttonpane :tabbable:first")).add(D).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(E){var D=this,F=false,G=A("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof E=="object"&&E!==null&&A.each(E,function(){return !(F=true)}));if(F){A.each(E,function(H,I){A('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(H).click(function(){I.apply(D.element[0],arguments)}).hover(function(){A(this).addClass("ui-state-hover")},function(){A(this).removeClass("ui-state-hover")}).focus(function(){A(this).addClass("ui-state-focus")}).blur(function(){A(this).removeClass("ui-state-focus")}).appendTo(G)});G.appendTo(this.uiDialog)}},_makeDraggable:function(){var F=this,E=this.options,D;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){D=E.height;A(this).height(A(this).height()).addClass("ui-dialog-dragging");(E.dragStart&&E.dragStart.apply(F.element[0],arguments))},drag:function(){(E.drag&&E.drag.apply(F.element[0],arguments))},stop:function(){A(this).removeClass("ui-dialog-dragging").height(D);(E.dragStop&&E.dragStop.apply(F.element[0],arguments));A.ui.dialog.overlay.resize()}})},_makeResizable:function(E){E=(E===undefined?this.options.resizable:E);var F=this,D=this.options,G=typeof E=="string"?E:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:D.maxWidth,maxHeight:D.maxHeight,minWidth:D.minWidth,minHeight:D.minHeight,start:function(){A(this).addClass("ui-dialog-resizing");(D.resizeStart&&D.resizeStart.apply(F.element[0],arguments))},resize:function(){(D.resize&&D.resize.apply(F.element[0],arguments))},handles:G,stop:function(){A(this).removeClass("ui-dialog-resizing");D.height=A(this).height();D.width=A(this).width();(D.resizeStop&&D.resizeStop.apply(F.element[0],arguments));A.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(F){var G=A(window),H=A(document),I=H.scrollTop(),E=H.scrollLeft(),D=I;if(A.inArray(F,["center","top","right","bottom","left"])>=0){F=[F=="right"||F=="left"?F:"center",F=="top"||F=="bottom"?F:"middle"]}if(F.constructor!=Array){F=["center","middle"]}if(F[0].constructor==Number){E+=F[0]}else{switch(F[0]){case"left":E+=0;break;case"right":E+=G.width()-this.uiDialog.outerWidth();break;default:case"center":E+=(G.width()-this.uiDialog.outerWidth())/2}}if(F[1].constructor==Number){I+=F[1]}else{switch(F[1]){case"top":I+=0;break;case"bottom":I+=G.height()-this.uiDialog.outerHeight();break;default:case"middle":I+=(G.height()-this.uiDialog.outerHeight())/2}}I=Math.max(I,D);this.uiDialog.css({top:I,left:E})},_setData:function(G,D){(C[G]&&this.uiDialog.data(C[G],D));switch(G){case"buttons":this._createButtons(D);break;case"closeText":this.uiDialogTitlebarCloseText.text(D);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(B+D);break;case"draggable":(D?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(D);break;case"position":this._position(D);break;case"resizable":var F=this.uiDialog,E=this.uiDialog.is(":data(resizable)");(E&&!D&&F.resizable("destroy"));(E&&typeof D=="string"&&F.resizable("option","handles",D));(E||this._makeResizable(D));break;case"title":A(".ui-dialog-title",this.uiDialogTitlebar).html(D||"&nbsp;");break;case"width":this.uiDialog.width(D);break}A.widget.prototype._setData.apply(this,arguments)},_size:function(){var E=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var D=this.uiDialog.css({height:"auto",width:E.width}).height();this.element.css({minHeight:Math.max(E.minHeight-D,0),height:E.height=="auto"?"auto":Math.max(E.height-D,0)})}});A.extend(A.ui.dialog,{version:"1.7",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(D){return"ui-dialog-title-"+(D.attr("id")||++this.uuid)},overlay:function(D){this.$el=A.ui.dialog.overlay.create(D)}});A.extend(A.ui.dialog.overlay,{instances:[],maxZ:0,events:A.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(D){return D+".dialog-overlay"}).join(" "),create:function(E){if(this.instances.length===0){setTimeout(function(){A(document).bind(A.ui.dialog.overlay.events,function(F){var G=A(F.target).parents(".ui-dialog").css("zIndex")||0;return(G>A.ui.dialog.overlay.maxZ)})},1);A(document).bind("keydown.dialog-overlay",function(F){(E.options.closeOnEscape&&F.keyCode&&F.keyCode==A.ui.keyCode.ESCAPE&&E.close(F))});A(window).bind("resize.dialog-overlay",A.ui.dialog.overlay.resize)}var D=A("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(E.options.bgiframe&&A.fn.bgiframe&&D.bgiframe());this.instances.push(D);return D},destroy:function(D){this.instances.splice(A.inArray(this.instances,D),1);if(this.instances.length===0){A([document,window]).unbind(".dialog-overlay")}D.remove()},height:function(){if(A.browser.msie&&A.browser.version<7){var E=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var D=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(E<D){return A(window).height()+"px"}else{return E+"px"}}else{return A(document).height()+"px"}},width:function(){if(A.browser.msie&&A.browser.version<7){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var E=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(D<E){return A(window).width()+"px"}else{return D+"px"}}else{return A(document).width()+"px"}},resize:function(){var D=A([]);A.each(A.ui.dialog.overlay.instances,function(){D=D.add(this)});D.css({width:0,height:0}).css({width:A.ui.dialog.overlay.width(),height:A.ui.dialog.overlay.height()})}});A.extend(A.ui.dialog.overlay.prototype,{destroy:function(){A.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function($){$.extend($.ui,{datepicker:{version:"1.7"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);if(input.hasClass(this.markerClassName)){return }var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){input[isRTL?"before":"after"]('<span class="'+this._appendClass+'">'+appendText+"</span>")}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");var trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](trigger);trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return }divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){$target.siblings("."+this._appendClass).remove().end().siblings("."+this._triggerClass).remove().end().removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;$target.siblings("button."+this._triggerClass).each(function(){this.disabled=false}).end().siblings("img."+this._triggerClass).css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;$target.siblings("button."+this._triggerClass).each(function(){this.disabled=true}).end().siblings("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}var inst=this._getInst(target);if(inst){if(this._curInst==inst){this._hideDatepicker(null)}extendRemove(inst.settings,settings);var date=new Date();extendRemove(inst,{rangeStart:null,endDay:null,endMonth:null,endYear:null,selectedDay:date.getDate(),selectedMonth:date.getMonth(),selectedYear:date.getFullYear(),currentDay:date.getDate(),currentMonth:date.getMonth(),currentYear:date.getFullYear(),drawMonth:date.getMonth(),drawYear:date.getFullYear()});this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return }var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return }if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return }var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return }this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return }var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof (inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7";window.DP_jQuery=$})(jQuery);jQuery.effects||(function(B){B.effects={version:"1.7",save:function(F,G){for(var H=0;H<G.length;H++){if(G[H]!==null){F.data("ec.storage."+G[H],F[0].style[G[H]])}}},restore:function(F,G){for(var H=0;H<G.length;H++){if(G[H]!==null){F.css(G[H],F.data("ec.storage."+G[H]))}}},setMode:function(F,G){if(G=="toggle"){G=F.is(":hidden")?"show":"hide"}return G},getBaseline:function(I,F){var G,H;switch(I[0]){case"top":G=0;break;case"middle":G=0.5;break;case"bottom":G=1;break;default:G=I[0]/F.height}switch(I[1]){case"left":H=0;break;case"center":H=0.5;break;case"right":H=1;break;default:H=I[1]/F.width}return{x:H,y:G}},createWrapper:function(H){if(H.parent().is(".ui-effects-wrapper")){return H.parent()}var I={width:H.outerWidth(true),height:H.outerHeight(true),"float":H.css("float")};H.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var G=H.parent();if(H.css("position")=="static"){G.css({position:"relative"});H.css({position:"relative"})}else{var F=H.css("top");if(isNaN(parseInt(F,10))){F="auto"}var J=H.css("left");if(isNaN(parseInt(J,10))){J="auto"}G.css({position:H.css("position"),top:F,left:J,zIndex:H.css("z-index")}).show();H.css({position:"relative",top:0,left:0})}G.css(I);return G},removeWrapper:function(F){if(F.parent().is(".ui-effects-wrapper")){return F.parent().replaceWith(F)}return F},setTransition:function(I,G,H,F){F=F||{};B.each(G,function(K,J){unit=I.cssUnit(J);if(unit[0]>0){F[J]=unit[0]*H+unit[1]}});return F},animateClass:function(J,K,H,F){var G=(typeof H=="function"?H:(F?F:null));var I=(typeof H=="string"?H:null);return this.each(function(){var O={};var M=B(this);var N=M.attr("style")||"";if(typeof N=="object"){N=N.cssText}if(J.toggle){M.hasClass(J.toggle)?J.remove=J.toggle:J.add=J.toggle}var Q=B.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(J.add){M.addClass(J.add)}if(J.remove){M.removeClass(J.remove)}var L=B.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(J.add){M.removeClass(J.add)}if(J.remove){M.addClass(J.remove)}for(var P in L){if(typeof L[P]!="function"&&L[P]&&P.indexOf("Moz")==-1&&P.indexOf("length")==-1&&L[P]!=Q[P]&&(P.match(/color/i)||(!P.match(/color/i)&&!isNaN(parseInt(L[P],10))))&&(Q.position!="static"||(Q.position=="static"&&!P.match(/left|top|bottom|right/)))){O[P]=L[P]}}M.animate(O,K,I,function(){if(typeof B(this).attr("style")=="object"){B(this).attr("style")["cssText"]="";B(this).attr("style")["cssText"]=N}else{B(this).attr("style",N)}if(J.add){B(this).addClass(J.add)}if(J.remove){B(this).removeClass(J.remove)}if(G){G.apply(this,arguments)}})})}};function A(I,H){var F=I[1]&&I[1].constructor==Object?I[1]:{};if(H){F.mode=H}var J=I[1]&&I[1].constructor!=Object?I[1]:(F.duration?F.duration:I[2]);J=B.fx.off?0:typeof J==="number"?J:B.fx.speeds[J]||B.fx.speeds._default;var G=F.callback||(B.isFunction(I[1])&&I[1])||(B.isFunction(I[2])&&I[2])||(B.isFunction(I[3])&&I[3]);return[I[0],F,J,G]}B.fn.extend({_show:B.fn.show,_hide:B.fn.hide,__toggle:B.fn.toggle,_addClass:B.fn.addClass,_removeClass:B.fn.removeClass,_toggleClass:B.fn.toggleClass,effect:function(I,H,F,G){return B.effects[I]?B.effects[I].call(this,{method:I,options:H||{},duration:F,callback:G}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{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(I,H,G,F){return H?B.effects.animateClass.apply(this,[{add:I},H,G,F]):this._addClass(I)},removeClass:function(I,H,G,F){return H?B.effects.animateClass.apply(this,[{remove:I},H,G,F]):this._removeClass(I)},toggleClass:function(I,H,G,F){return((typeof H!=="boolean")&&H)?B.effects.animateClass.apply(this,[{toggle:I},H,G,F]):this._toggleClass(I,H)},morph:function(H,J,I,G,F){return B.effects.animateClass.apply(this,[{add:J,remove:H},I,G,F])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(H){var F=this.css(H),G=[];B.each(["em","px","%","pt"],function(I,J){if(F.indexOf(J)>0){G=[parseFloat(F),J]}});return G}});B.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(G,F){B.fx.step[F]=function(H){if(H.state==0){H.start=C(H.elem,F);H.end=E(H.end)}H.elem.style[F]="rgb("+[Math.max(Math.min(parseInt((H.pos*(H.end[0]-H.start[0]))+H.start[0],10),255),0),Math.max(Math.min(parseInt((H.pos*(H.end[1]-H.start[1]))+H.start[1],10),255),0),Math.max(Math.min(parseInt((H.pos*(H.end[2]-H.start[2]))+H.start[2],10),255),0)].join(",")+")"}});function E(G){var F;if(G&&G.constructor==Array&&G.length==3){return G}if(F=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(G)){return[parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10)]}if(F=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(G)){return[parseFloat(F[1])*2.55,parseFloat(F[2])*2.55,parseFloat(F[3])*2.55]}if(F=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(G)){return[parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)]}if(F=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(G)){return[parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)]}if(F=/rgba\(0, 0, 0, 0\)/.exec(G)){return D.transparent}return D[B.trim(G).toLowerCase()]}function C(G,H){var F;do{F=B.curCSS(G,H);if(F!=""&&F!="transparent"||B.nodeName(G,"body")){break}H="backgroundColor"}while(G=G.parentNode);return E(F)}var D={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]};B.easing.jswing=B.easing.swing;B.extend(B.easing,{def:"easeOutQuad",swing:function(I,J,H,G,F){return B.easing[B.easing.def](I,J,H,G,F)},easeInQuad:function(I,J,H,G,F){return G*(J/=F)*J+H},easeOutQuad:function(I,J,H,G,F){return -G*(J/=F)*(J-2)+H},easeInOutQuad:function(I,J,H,G,F){if((J/=F/2)<1){return G/2*J*J+H}return -G/2*((--J)*(J-2)-1)+H},easeInCubic:function(I,J,H,G,F){return G*(J/=F)*J*J+H},easeOutCubic:function(I,J,H,G,F){return G*((J=J/F-1)*J*J+1)+H},easeInOutCubic:function(I,J,H,G,F){if((J/=F/2)<1){return G/2*J*J*J+H}return G/2*((J-=2)*J*J+2)+H},easeInQuart:function(I,J,H,G,F){return G*(J/=F)*J*J*J+H},easeOutQuart:function(I,J,H,G,F){return -G*((J=J/F-1)*J*J*J-1)+H},easeInOutQuart:function(I,J,H,G,F){if((J/=F/2)<1){return G/2*J*J*J*J+H}return -G/2*((J-=2)*J*J*J-2)+H},easeInQuint:function(I,J,H,G,F){return G*(J/=F)*J*J*J*J+H},easeOutQuint:function(I,J,H,G,F){return G*((J=J/F-1)*J*J*J*J+1)+H},easeInOutQuint:function(I,J,H,G,F){if((J/=F/2)<1){return G/2*J*J*J*J*J+H}return G/2*((J-=2)*J*J*J*J+2)+H},easeInSine:function(I,J,H,G,F){return -G*Math.cos(J/F*(Math.PI/2))+G+H},easeOutSine:function(I,J,H,G,F){return G*Math.sin(J/F*(Math.PI/2))+H},easeInOutSine:function(I,J,H,G,F){return -G/2*(Math.cos(Math.PI*J/F)-1)+H},easeInExpo:function(I,J,H,G,F){return(J==0)?H:G*Math.pow(2,10*(J/F-1))+H},easeOutExpo:function(I,J,H,G,F){return(J==F)?H+G:G*(-Math.pow(2,-10*J/F)+1)+H},easeInOutExpo:function(I,J,H,G,F){if(J==0){return H}if(J==F){return H+G}if((J/=F/2)<1){return G/2*Math.pow(2,10*(J-1))+H}return G/2*(-Math.pow(2,-10*--J)+2)+H},easeInCirc:function(I,J,H,G,F){return -G*(Math.sqrt(1-(J/=F)*J)-1)+H},easeOutCirc:function(I,J,H,G,F){return G*Math.sqrt(1-(J=J/F-1)*J)+H},easeInOutCirc:function(I,J,H,G,F){if((J/=F/2)<1){return -G/2*(Math.sqrt(1-J*J)-1)+H}return G/2*(Math.sqrt(1-(J-=2)*J)+1)+H},easeInElastic:function(K,I,H,G,F){var J=1.70158;var M=0;var L=G;if(I==0){return H}if((I/=F)==1){return H+G}if(!M){M=F*0.3}if(L<Math.abs(G)){L=G;var J=M/4}else{var J=M/(2*Math.PI)*Math.asin(G/L)}return -(L*Math.pow(2,10*(I-=1))*Math.sin((I*F-J)*(2*Math.PI)/M))+H},easeOutElastic:function(K,I,H,G,F){var J=1.70158;var M=0;var L=G;if(I==0){return H}if((I/=F)==1){return H+G}if(!M){M=F*0.3}if(L<Math.abs(G)){L=G;var J=M/4}else{var J=M/(2*Math.PI)*Math.asin(G/L)}return L*Math.pow(2,-10*I)*Math.sin((I*F-J)*(2*Math.PI)/M)+G+H},easeInOutElastic:function(K,I,H,G,F){var J=1.70158;var M=0;var L=G;if(I==0){return H}if((I/=F/2)==2){return H+G}if(!M){M=F*(0.3*1.5)}if(L<Math.abs(G)){L=G;var J=M/4}else{var J=M/(2*Math.PI)*Math.asin(G/L)}if(I<1){return -0.5*(L*Math.pow(2,10*(I-=1))*Math.sin((I*F-J)*(2*Math.PI)/M))+H}return L*Math.pow(2,-10*(I-=1))*Math.sin((I*F-J)*(2*Math.PI)/M)*0.5+G+H},easeInBack:function(I,J,H,G,F,K){if(K==undefined){K=1.70158}return G*(J/=F)*J*((K+1)*J-K)+H},easeOutBack:function(I,J,H,G,F,K){if(K==undefined){K=1.70158}return G*((J=J/F-1)*J*((K+1)*J+K)+1)+H},easeInOutBack:function(I,J,H,G,F,K){if(K==undefined){K=1.70158}if((J/=F/2)<1){return G/2*(J*J*(((K*=(1.525))+1)*J-K))+H}return G/2*((J-=2)*J*(((K*=(1.525))+1)*J+K)+2)+H},easeInBounce:function(I,J,H,G,F){return G-B.easing.easeOutBounce(I,F-J,0,G,F)+H},easeOutBounce:function(I,J,H,G,F){if((J/=F)<(1/2.75)){return G*(7.5625*J*J)+H}else{if(J<(2/2.75)){return G*(7.5625*(J-=(1.5/2.75))*J+0.75)+H}else{if(J<(2.5/2.75)){return G*(7.5625*(J-=(2.25/2.75))*J+0.9375)+H}else{return G*(7.5625*(J-=(2.625/2.75))*J+0.984375)+H}}}},easeInOutBounce:function(I,J,H,G,F){if(J<F/2){return B.easing.easeInBounce(I,J*2,0,G,F)*0.5+H}return B.easing.easeOutBounce(I,J*2-F,0,G,F)*0.5+G*0.5+H}})})(jQuery);(function(A){A.effects.blind=function(B){return this.queue(function(){var G=A(this),F=["position","top","left"];var C=A.effects.setMode(G,B.options.mode||"hide");var J=B.options.direction||"vertical";A.effects.save(G,F);G.show();var E=A.effects.createWrapper(G).css({overflow:"hidden"});var H=(J=="vertical")?"height":"width";var D=(J=="vertical")?E.height():E.width();if(C=="show"){E.css(H,0)}var I={};I[H]=C=="show"?D:0;E.animate(I,B.duration,B.options.easing,function(){if(C=="hide"){G.hide()}A.effects.restore(G,F);A.effects.removeWrapper(G);if(B.callback){B.callback.apply(G[0],arguments)}G.dequeue()})})}})(jQuery);(function(A){A.effects.drop=function(B){return this.queue(function(){var H=A(this),G=["position","top","left","opacity"];var D=A.effects.setMode(H,B.options.mode||"hide");var C=B.options.direction||"left";A.effects.save(H,G);H.show();A.effects.createWrapper(H);var I=(C=="up"||C=="down")?"top":"left";var F=(C=="up"||C=="left")?"pos":"neg";var E=B.options.distance||(I=="top"?H.outerHeight({margin:true})/2:H.outerWidth({margin:true})/2);if(D=="show"){H.css("opacity",0).css(I,F=="pos"?-E:E)}var J={opacity:D=="show"?1:0};J[I]=(D=="show"?(F=="pos"?"+=":"-="):(F=="pos"?"-=":"+="))+E;H.animate(J,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(D=="hide"){H.hide()}A.effects.restore(H,G);A.effects.removeWrapper(H);if(B.callback){B.callback.apply(this,arguments)}H.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 E=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},E,B.options.easing);F=F-2}for(var C=0;C<F;C++){D.animate({opacity:0},E,B.options.easing).animate({opacity:1},E,B.options.easing)}if(G=="hide"){D.animate({opacity:0},E,B.options.easing,function(){D.hide();if(B.callback){B.callback.apply(this,arguments)}})}else{D.animate({opacity:0},E,B.options.easing).animate({opacity:1},E,B.options.easing,function(){if(B.callback){B.callback.apply(this,arguments)}})}D.queue("fx",function(){D.dequeue()});D.dequeue()})}})(jQuery);(function(A){A.effects.puff=function(B){return this.queue(function(){var E=A(this);var H=A.extend(true,{},B.options);var G=A.effects.setMode(E,B.options.mode||"hide");var F=parseInt(B.options.percent,10)||150;H.fade=true;var D={height:E.height(),width:E.width()};var C=F/100;E.from=(G=="hide")?D:{height:D.height*C,width:D.width*C};H.from=E.from;H.percent=(G=="hide")?F:100;H.mode=G;E.effect("scale",H,B.duration,B.callback);E.dequeue()})};A.effects.scale=function(B){return this.queue(function(){var J=A(this);var G=A.extend(true,{},B.options);var E=A.effects.setMode(J,B.options.mode||"effect");var C=parseInt(B.options.percent,10)||(parseInt(B.options.percent,10)==0?0:(E=="hide"?0:100));var D=B.options.direction||"both";var F=B.options.origin;if(E!="effect"){G.origin=F||["middle","center"];G.restore=true}var I={height:J.height(),width:J.width()};J.from=B.options.from||(E=="show"?{height:0,width:0}:I);var H={y:D!="horizontal"?(C/100):1,x:D!="vertical"?(C/100):1};J.to={height:I.height*H.y,width:I.width*H.x};if(B.options.fade){if(E=="show"){J.from.opacity=0;J.to.opacity=1}if(E=="hide"){J.from.opacity=1;J.to.opacity=0}}G.from=J.from;G.to=J.to;G.mode=E;J.effect("size",G,B.duration,B.callback);J.dequeue()})};A.effects.size=function(B){return this.queue(function(){var F=A(this),R=["position","top","left","width","height","overflow","opacity"];var Q=["position","top","left","overflow","opacity"];var N=["width","height","overflow"];var H=["fontSize"];var O=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var J=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var K=A.effects.setMode(F,B.options.mode||"effect");var M=B.options.restore||false;var I=B.options.scale||"both";var E=B.options.origin;var G={height:F.height(),width:F.width()};F.from=B.options.from||G;F.to=B.options.to||G;if(E){var L=A.effects.getBaseline(E,G);F.from.top=(G.height-F.from.height)*L.y;F.from.left=(G.width-F.from.width)*L.x;F.to.top=(G.height-F.to.height)*L.y;F.to.left=(G.width-F.to.width)*L.x}var P={from:{y:F.from.height/G.height,x:F.from.width/G.width},to:{y:F.to.height/G.height,x:F.to.width/G.width}};if(I=="box"||I=="both"){if(P.from.y!=P.to.y){R=R.concat(O);F.from=A.effects.setTransition(F,O,P.from.y,F.from);F.to=A.effects.setTransition(F,O,P.to.y,F.to)}if(P.from.x!=P.to.x){R=R.concat(J);F.from=A.effects.setTransition(F,J,P.from.x,F.from);F.to=A.effects.setTransition(F,J,P.to.x,F.to)}}if(I=="content"||I=="both"){if(P.from.y!=P.to.y){R=R.concat(H);F.from=A.effects.setTransition(F,H,P.from.y,F.from);F.to=A.effects.setTransition(F,H,P.to.y,F.to)}}A.effects.save(F,M?R:Q);F.show();A.effects.createWrapper(F);F.css("overflow","hidden").css(F.from);if(I=="content"||I=="both"){O=O.concat(["marginTop","marginBottom"]).concat(H);J=J.concat(["marginLeft","marginRight"]);N=R.concat(O).concat(J);F.find("*[width]").each(function(){child=A(this);if(M){A.effects.save(child,N)}var C={height:child.height(),width:child.width()};child.from={height:C.height*P.from.y,width:C.width*P.from.x};child.to={height:C.height*P.to.y,width:C.width*P.to.x};if(P.from.y!=P.to.y){child.from=A.effects.setTransition(child,O,P.from.y,child.from);child.to=A.effects.setTransition(child,O,P.to.y,child.to)}if(P.from.x!=P.to.x){child.from=A.effects.setTransition(child,J,P.from.x,child.from);child.to=A.effects.setTransition(child,J,P.to.x,child.to)}child.css(child.from);child.animate(child.to,B.duration,B.options.easing,function(){if(M){A.effects.restore(child,N)}})})}F.animate(F.to,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(K=="hide"){F.hide()}A.effects.restore(F,M?R:Q);A.effects.removeWrapper(F);if(B.callback){B.callback.apply(this,arguments)}F.dequeue()}})})}})(jQuery);(function(A){A.fn.bgIframe=A.fn.bgiframe=function(D){if(A.browser.msie&&/6.0/.test(navigator.userAgent)){D=A.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},D||{});var C=function(E){return E&&E.constructor==Number?E+"px":E},B='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+D.src+'"style="display:block;position:absolute;z-index:-1;'+(D.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(D.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":C(D.top))+";left:"+(D.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":C(D.left))+";width:"+(D.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":C(D.width))+";height:"+(D.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":C(D.height))+';"/>';return this.each(function(){if(A("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(B),this.firstChild)}})}return this}})(jQuery);jQuery.fn.extend({everyTime:function(A,E,D,C,B){return this.each(function(){jQuery.timer.add(this,A,E,D,C,B)})},oneTime:function(B,A,C){return this.each(function(){jQuery.timer.add(this,B,A,C,1)})},stopTime:function(B,A){return this.each(function(){jQuery.timer.remove(this,B,A)})}});jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(D){if(D==undefined||D==null){return null}var B=this.regex.exec(jQuery.trim(D.toString()));if(B[2]){var A=parseInt(B[1],10);var C=this.powers[B[2]]||1;return A*C}else{return D}},add:function(F,H,G,D,C,A){var B=0;if(jQuery.isFunction(G)){if(!C){C=D}D=G;G=H}H=jQuery.timer.timeParse(H);if(typeof H!="number"||isNaN(H)||H<=0){return }if(C&&C.constructor!=Number){A=!!C;C=0}C=C||0;A=A||false;if(!F.$timers){F.$timers={}}if(!F.$timers[G]){F.$timers[G]={}}D.$timerID=D.$timerID||this.guid++;var E=function(){if(A&&this.inProgress){return }this.inProgress=true;if((++B>C&&C!==0)||D.call(F,B)===false){jQuery.timer.remove(F,G,D)}this.inProgress=false};E.$timerID=D.$timerID;if(!F.$timers[G][D.$timerID]){F.$timers[G][D.$timerID]=window.setInterval(E,H)}if(!this.global[G]){this.global[G]=[]}this.global[G].push(F)},remove:function(E,A,D){var C=E.$timers,B;if(C){if(!A){for(A in C){this.remove(E,A,D)}}else{if(C[A]){if(D){if(D.$timerID){window.clearInterval(C[A][D.$timerID]);delete C[A][D.$timerID]}}else{for(var D in C[A]){window.clearInterval(C[A][D]);delete C[A][D]}}for(B in C[A]){break}if(!B){B=null;delete C[A]}}}for(B in C){break}if(!B){E.$timers=null}}}}});if(jQuery.browser.msie){jQuery(window).one("unload",function(){var C=jQuery.timer.global;for(var B in C){var D=C[B],A=D.length;while(--A){jQuery.timer.remove(D[A],B)}}})}(function(A){A.fn.hoverIntent=function(E,F){var D={sensitivity:7,interval:100,timeout:0};D=A.extend(D,F?{over:E,out:F}:E);var B,C,H,J;var I=function(M){B=M.pageX;C=M.pageY};var K=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);if((Math.abs(H-B)+Math.abs(J-C))<D.sensitivity){A(N).unbind("mousemove",I);N.hoverIntent_s=1;return D.over.apply(N,[M])}else{H=B;J=C;N.hoverIntent_t=setTimeout(function(){K(M,N)},D.interval)}};var G=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);N.hoverIntent_s=0;return D.out.apply(N,[M])};var L=function(O){var P=(O.type=="mouseover"?O.fromElement:O.toElement)||O.relatedTarget;while(P&&P!=this){try{P=P.parentNode}catch(O){P=this}}if(P==this){return false}var M=jQuery.extend({},O);var N=this;if(N.hoverIntent_t){N.hoverIntent_t=clearTimeout(N.hoverIntent_t)}if(O.type=="mouseover"){H=M.pageX;J=M.pageY;A(N).bind("mousemove",I);if(N.hoverIntent_s!=1){N.hoverIntent_t=setTimeout(function(){K(M,N)},D.interval)}}else{A(N).unbind("mousemove",I);if(N.hoverIntent_s==1){N.hoverIntent_t=setTimeout(function(){G(M,N)},D.timeout)}}};return this.mouseover(L).mouseout(L)}})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();(function(H){H.fn.media=function(K,L,M){return this.each(function(){if(typeof K=="function"){M=L;L=K;K={}}var N=D(this,K);if(typeof L=="function"){L(this,N)}var O=B();var T=O.exec(N.src)||[""];N.type?T[0]=N.type:T.shift();for(var P=0;P<T.length;P++){fn=T[P].toLowerCase();if(F(fn[0])){fn="fn"+fn}if(!H.fn.media[fn]){continue}var Q=H.fn.media[fn+"_player"];if(!N.params){N.params={}}if(Q){var R=Q.autoplayAttr=="autostart";N.params[Q.autoplayAttr||"autoplay"]=R?(N.autoplay?1:0):N.autoplay?true:false}var S=H.fn.media[fn](this,N);S.css("backgroundColor",N.bgColor).width(N.width);if(typeof M=="function"){M(this,S[0],N,Q.name)}break}})};H.fn.media.mapFormat=function(K,L){if(!K||!L||!H.fn.media.defaults.players[L]){return }K=K.toLowerCase();if(F(K[0])){K="fn"+K}H.fn.media[K]=H.fn.media[L];H.fn.media[K+"_player"]=H.fn.media.defaults.players[L]};H.fn.media.defaults={width:400,height:400,autoplay:0,bgColor:"#ffffff",params:{wmode:"transparent"},attrs:{},flvKeyName:"file",flashvars:{},flashVersion:"7",expressInstaller:null,flvPlayer:"mediaplayer.swf",mp3Player:"mediaplayer.swf",silverlight:{inplaceInstallPrompt:"true",isWindowless:"true",framerate:"24",version:"0.9",onError:null,onLoad:null,initParams:null,userContext:null}};H.fn.media.defaults.players={flash:{name:"flash",types:"flv,mp3,swf",oAttrs:{classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",type:"application/x-oleobject",codebase:"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+H.fn.media.defaults.flashVersion},eAttrs:{type:"application/x-shockwave-flash",pluginspage:"http://www.adobe.com/go/getflashplayer"}},quicktime:{name:"quicktime",types:"aif,aiff,aac,au,bmp,gsm,mov,mid,midi,mpg,mpeg,mp4,m4a,psd,qt,qtif,qif,qti,snd,tif,tiff,wav,3g2,3gp",oAttrs:{classid:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",codebase:"http://www.apple.com/qtactivex/qtplugin.cab"},eAttrs:{pluginspage:"http://www.apple.com/quicktime/download/"}},realplayer:{name:"real",types:"ra,ram,rm,rpm,rv,smi,smil",autoplayAttr:"autostart",oAttrs:{classid:"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"},eAttrs:{type:"audio/x-pn-realaudio-plugin",pluginspage:"http://www.real.com/player/"}},winmedia:{name:"winmedia",types:"asx,asf,avi,wma,wmv",autoplayAttr:"autostart",oUrl:"url",oAttrs:{classid:"clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6",type:"application/x-oleobject"},eAttrs:{type:H.browser.mozilla&&A()?"application/x-ms-wmp":"application/x-mplayer2",pluginspage:"http://www.microsoft.com/Windows/MediaPlayer/"}},iframe:{name:"iframe",types:"html,pdf"},silverlight:{name:"silverlight",types:"xaml"}};function A(){var L=navigator.plugins;for(i=0;i<L.length;i++){var K=L[i];if(K.filename=="np-mswmp.dll"){return true}}return false}var J=1;for(var C in H.fn.media.defaults.players){var G=H.fn.media.defaults.players[C].types;H.each(G.split(","),function(L,K){if(F(K[0])){K="fn"+K}H.fn.media[K]=H.fn.media[C]=I(C);H.fn.media[K+"_player"]=H.fn.media.defaults.players[C]})}function B(){var K="";for(var L in H.fn.media.defaults.players){if(K.length){K+=","}K+=H.fn.media.defaults.players[L].types}return new RegExp("\\.("+K.replace(/,/g,"|")+")$\\b")}function I(K){return function(M,L){return E(M,L,K)}}function F(K){return"0123456789".indexOf(K)>-1}function D(N,Q){Q=Q||{};var R=H(N);var S=N.className||"";var T=H.metadata?R.metadata():H.meta?R.data():{};T=T||{};var U=T.width||parseInt(((S.match(/w:(\d+)/)||[])[1]||0));var M=T.height||parseInt(((S.match(/h:(\d+)/)||[])[1]||0));if(U){T.width=U}if(M){T.height=M}if(S){T.cls=S}var V=H.fn.media.defaults;var K=Q;var L=T;var O={params:{bgColor:Q.bgColor||H.fn.media.defaults.bgColor}};var P=H.extend({},V,K,L);H.each(["attrs","params","flashvars","silverlight"],function(X,W){P[W]=H.extend({},O[W]||{},V[W]||{},K[W]||{},L[W]||{})});if(typeof P.caption=="undefined"){P.caption=R.text()}P.src=P.src||R.attr("href")||R.attr("src")||"unknown";return P}H.fn.media.swf=function(L,P){if(!window.SWFObject&&!window.swfobject){if(P.flashvars){var R=[];for(var K in P.flashvars){R.push(K+"="+P.flashvars[K])}if(!P.params){P.params={}}P.params.flashvars=R.join("&")}return E(L,P,"flash")}var N=L.id?(' id="'+L.id+'"'):"";var Q=P.cls?(' class="'+P.cls+'"'):"";var S=H("<div"+N+Q+">");if(window.swfobject){H(L).after(S).appendTo(S);if(!L.id){L.id="movie_player_"+J++}swfobject.embedSWF(P.src,L.id,P.width,P.height,P.flashVersion,P.expressInstaller,P.flashvars,P.params,P.attrs)}else{H(L).after(S).remove();var M=new SWFObject(P.src,"movie_player_"+J++,P.width,P.height,P.flashVersion,P.bgColor);if(P.expressInstaller){M.useExpressInstall(P.expressInstaller)}for(var O in P.params){if(O!="bgColor"){M.addParam(O,P.params[O])}}for(var K in P.flashvars){M.addVariable(K,P.flashvars[K])}M.write(S[0])}if(P.caption){H("<div>").appendTo(S).html(P.caption)}return S};H.fn.media.flv=H.fn.media.mp3=function(O,N){var M=N.src;var P=/\.mp3\b/i.test(M)?H.fn.media.defaults.mp3Player:H.fn.media.defaults.flvPlayer;var K=N.flvKeyName;M=encodeURIComponent(M);N.src=P;N.src=N.src+"?"+K+"="+(M);var L={};L[K]=M;N.flashvars=H.extend({},L,N.flashvars);return H.fn.media.swf(O,N)};H.fn.media.xaml=function(N,M){if(!window.Sys||!window.Sys.Silverlight){if(H.fn.media.xaml.warning){return }H.fn.media.xaml.warning=1;alert("You must include the Silverlight.js script.");return }var O={width:M.width,height:M.height,background:M.bgColor,inplaceInstallPrompt:M.silverlight.inplaceInstallPrompt,isWindowless:M.silverlight.isWindowless,framerate:M.silverlight.framerate,version:M.silverlight.version};var Q={onError:M.silverlight.onError,onLoad:M.silverlight.onLoad};var P=N.id?(' id="'+N.id+'"'):"";var R=M.id||"AG"+J++;var K=M.cls?(' class="'+M.cls+'"'):"";var L=H("<div"+P+K+">");H(N).after(L).remove();Sys.Silverlight.createObjectEx({source:M.src,initParams:M.silverlight.initParams,userContext:M.silverlight.userContext,id:R,parentElement:L[0],properties:O,events:Q});if(M.caption){H("<div>").appendTo(L).html(M.caption)}return L};function E(K,P,T){var M=H(K);var L=H.fn.media.defaults.players[T];if(T=="iframe"){var L=H('<iframe width="'+P.width+'" height="'+P.height+'" >');L.attr("src",P.src);L.css("backgroundColor",L.bgColor)}else{if(H.browser.msie){var U=['<object width="'+P.width+'" height="'+P.height+'" '];for(var S in P.attrs){U.push(S+'="'+P.attrs[S]+'" ')}for(var S in L.oAttrs||{}){var R=L.oAttrs[S];if(S=="codebase"&&window.location.protocol=="https"){R=R.replace("http","https")}U.push(S+'="'+R+'" ')}U.push("></object>");var N=['<param name="'+(L.oUrl||"src")+'" value="'+P.src+'">'];for(var S in P.params){N.push('<param name="'+S+'" value="'+P.params[S]+'">')}var L=document.createElement(U.join(""));for(var W=0;W<N.length;W++){L.appendChild(document.createElement(N[W]))}}else{var U=['<embed width="'+P.width+'" height="'+P.height+'" style="display:block"'];if(P.src){U.push(' src="'+P.src+'" ')}for(var S in P.attrs){U.push(S+'="'+P.attrs[S]+'" ')}for(var S in L.eAttrs||{}){U.push(S+'="'+L.eAttrs[S]+'" ')}for(var S in P.params){if(S!="wmode"){U.push(S+'="'+P.params[S]+'" ')}}U.push("></embed>")}}var O=K.id?(' id="'+K.id+'"'):"";var Q=P.cls?(' class="'+P.cls+'"'):"";var V=H("<div"+O+Q+">");M.after(V).remove();(H.browser.msie||T=="iframe")?V.append(L):V.html(U.join(""));if(P.caption){H("<div>").appendTo(V).html(P.caption)}return V}})(jQuery);