(function(){var S=this,Y,ah=S.jQuery,G=S.$,R=S.jQuery=S.$=function(b,a){return new R.fn.init(b,a)},ae=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,X=/^.[^:#\[\.,]*$/;R.fn=R.prototype={init:function(d,b){d=d||document;if(d.nodeType){this[0]=d;this.length=1;this.context=d;return this}if(typeof d==="string"){var c=ae.exec(d);if(c&&(c[1]||!b)){if(c[1]){d=R.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return R().find(d)}var e=R(a||[]);e.context=document;e.selector=d;return e}}else{return R(b).find(d)}}else{if(R.isFunction(d)){return R(document).ready(d)}}if(d.selector&&d.context){this.selector=d.selector;this.context=d.context}return this.setArray(R.isArray(d)?d:R.makeArray(d))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===Y?Array.prototype.slice.call(this):this[a]},pushStack:function(a,b,d){var c=R(a);c.prevObject=this;c.context=this.context;if(b==="find"){c.selector=this.selector+(this.selector?" ":"")+d}else{if(b){c.selector=this.selector+"."+b+"("+d+")"}}return c},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return R.each(this,a,b)},index:function(a){return R.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,b,c){var d=a;if(typeof a==="string"){if(b===Y){return this[0]&&R[c||"attr"](this[0],a)}else{d={};d[a]=b}}return this.each(function(e){for(a in d){R.attr(c?this.style:this,a,R.prop(this,d[a],c,e,a))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=Y}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="";R.each(a||this,function(){R.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:R.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=R(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(){R(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){R(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||R([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;R.find(b,this[0],a);return a}else{return this.pushStack(R.unique(R.map(this,function(c){return R.find(b,c)})),"find",b)}},clone:function(b){var d=this.map(function(){if(!R.support.noCloneEvent&&!R.isXMLDoc(this)){var e=this.outerHTML;if(!e){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));e=f.innerHTML}return R.clean([e.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=R.data(a[c],"events");for(var e in f){for(var g in f[e]){R.event.add(this,e,f[e][g],f[e][g].data)}}c++})}return d},filter:function(a){return this.pushStack(R.isFunction(a)&&R.grep(this,function(c,b){return a.call(c,b)})||R.multiFilter(a,R.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var b=R.expr.match.POS.test(c)?R(c):null,a=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(b?b.index(d)>-1:R(d).is(c)){R.data(d,"closest",a);return d}d=d.parentNode;a++}})},not:function(b){if(typeof b==="string"){if(X.test(b)){return this.pushStack(R.multiFilter(b,this,true),"not",b)}else{b=R.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==Y&&!b.nodeType;return this.filter(function(){return a?R.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(R.unique(R.merge(this.get(),typeof a==="string"?R(a):R.makeArray(a))))},is:function(a){return !!a&&R.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(a){if(a===Y){var h=this[0];if(h){if(R.nodeName(h,"option")){return(h.attributes.value||{}).specified?h.value:h.text}if(R.nodeName(h,"select")){var c=h.selectedIndex,d=[],e=h.options,b=h.type=="select-one";if(c<0){return null}for(var f=b?c:0,i=b?c+1:e.length;f<i;f++){var g=e[f];if(g.selected){a=R(g).val();if(b){return a}d.push(a)}}return d}return(h.value||"").replace(/\r/g,"")}return Y}if(typeof a==="number"){a+=""}return this.each(function(){if(this.nodeType!=1){return}if(R.isArray(a)&&/radio|checkbox/.test(this.type)){this.checked=(R.inArray(this.value,a)>=0||R.inArray(this.name,a)>=0)}else{if(R.nodeName(this,"select")){var j=R.makeArray(a);R("option",this).each(function(){this.selected=(R.inArray(this.value,j)>=0||R.inArray(this.text,j)>=0)});if(!j.length){this.selectedIndex=-1}}else{this.value=a}}})},html:function(a){return a===Y?(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(R.map(this,function(c,b){return a.call(c,b,c)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(i,e,d){if(this[0]){var c=(this[0].ownerDocument||this[0]).createDocumentFragment(),f=R.clean(i,(this[0].ownerDocument||this[0]),c),b=c.firstChild;if(b){for(var g=0,h=this.length;g<h;g++){d.call(a(this[g],b),this.length>1||g>0?c.cloneNode(true):c)}}if(f){R.each(f,af)}}return this;function a(j,k){return e&&R.nodeName(j,"table")&&R.nodeName(k,"tr")?(j.getElementsByTagName("tbody")[0]||j.appendChild(j.ownerDocument.createElement("tbody"))):j}}};R.fn.init.prototype=R.fn;function af(b,a){if(a.src){R.ajax({url:a.src,async:false,dataType:"script"})}else{R.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function aa(){return +new Date}R.extend=R.fn.extend=function(){var h=arguments[0]||{},b=1,c=arguments.length,g=false,f;if(typeof h==="boolean"){g=h;h=arguments[1]||{};b=2}if(typeof h!=="object"&&!R.isFunction(h)){h={}}if(c==b){h=this;--b}for(;b<c;b++){if((f=arguments[b])!=null){for(var e in f){var a=h[e],d=f[e];if(h===d){continue}if(g&&d&&typeof d==="object"&&!d.nodeType){h[e]=R.extend(g,a||(d.length!=null?[]:{}),d)}else{if(d!==Y){h[e]=d}}}}}return h};var U=/z-?index|font-?weight|opacity|zoom|line-?height/i,H=document.defaultView||{},F=Object.prototype.toString;R.extend({noConflict:function(a){S.$=G;if(a){S.jQuery=ah}return R},isFunction:function(a){return F.call(a)==="[object Function]"},isArray:function(a){return F.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&R.isXMLDoc(a.ownerDocument)},globalEval:function(b){if(b&&/\S/.test(b)){var a=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(R.support.scriptEval){c.appendChild(document.createTextNode(b))}else{c.text=b}a.insertBefore(c,a.firstChild);a.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(b,a,c){var d,g=0,f=b.length;if(c){if(f===Y){for(d in b){if(a.apply(b[d],c)===false){break}}}else{for(;g<f;){if(a.apply(b[g++],c)===false){break}}}}else{if(f===Y){for(d in b){if(a.call(b[d],d,b[d])===false){break}}}else{for(var e=b[0];g<f&&a.call(e,g,e)!==false;e=b[++g]){}}}return b},prop:function(b,c,d,a,e){if(R.isFunction(c)){c=c.call(b,a)}return typeof c==="number"&&d=="curCSS"&&!U.test(e)?c+"px":c},className:{add:function(b,a){R.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!R.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==Y?R.grep(b.className.split(/\s+/),function(c){return !R.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&R.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var d={};for(var e in c){d[e]=b.style[e];b.style[e]=c[e]}a.call(b);for(var e in c){b.style[e]=d[e]}},css:function(b,e,h,g){if(e=="width"||e=="height"){var d,f={position:"absolute",visibility:"hidden",display:"block"},a=e=="width"?["Left","Right"]:["Top","Bottom"];function c(){d=e=="width"?b.offsetWidth:b.offsetHeight;if(g==="border"){return}R.each(a,function(){if(!g){d-=parseFloat(R.curCSS(b,"padding"+this,true))||0}if(g==="margin"){d+=parseFloat(R.curCSS(b,"margin"+this,true))||0}else{d-=parseFloat(R.curCSS(b,"border"+this+"Width",true))||0}})}if(b.offsetWidth!==0){c()}else{R.swap(b,f,c)}return Math.max(0,Math.round(d))}return R.curCSS(b,e,h)},curCSS:function(c,f,g){var d,h=c.style;if(f=="opacity"&&!R.support.opacity){d=R.attr(h,"opacity");return d==""?"1":d}if(f.match(/float/i)){f=J}if(!g&&h&&h[f]){d=h[f]}else{if(H.getComputedStyle){if(f.match(/float/i)){f="float"}f=f.replace(/([A-Z])/g,"-$1").toLowerCase();var e=H.getComputedStyle(c,null);if(e){d=e.getPropertyValue(f)}if(f=="opacity"&&d==""){d="1"}}else{if(c.currentStyle){var i=f.replace(/\-(\w)/g,function(j,k){return k.toUpperCase()});d=c.currentStyle[f]||c.currentStyle[i];if(!/^\d+(px)?$/i.test(d)&&/^\d/.test(d)){var b=h.left,a=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;h.left=d||0;d=h.pixelLeft+"px";h.left=b;c.runtimeStyle.left=a}}}}return d},clean:function(e,a,c){a=a||document;if(typeof a.createElement==="undefined"){a=a.ownerDocument||a[0]&&a[0].ownerDocument||document}if(!c&&e.length===1&&typeof e[0]==="string"){var b=/^<(\w+)\s*\/?>$/.exec(e[0]);if(b){return[a.createElement(b[1])]}}var f=[],g=[],d=a.createElement("div");R.each(e,function(m,l){if(typeof l==="number"){l+=""}if(!l){return}if(typeof l==="string"){l=l.replace(/(<(\w+)[^>]*?)\/>/g,function(r,p,q){return q.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:p+"></"+q+">"});var k=l.replace(/^\s+/,"").substring(0,10).toLowerCase();var n=!k.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!k.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||k.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!k.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!k.indexOf("<td")||!k.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!k.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!R.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];d.innerHTML=n[1]+l+n[2];while(n[0]--){d=d.lastChild}if(!R.support.tbody){var j=/<tbody/i.test(l),i=!k.indexOf("<table")&&!j?d.firstChild&&d.firstChild.childNodes:n[1]=="<table>"&&!j?d.childNodes:[];for(var o=i.length-1;o>=0;--o){if(R.nodeName(i[o],"tbody")&&!i[o].childNodes.length){i[o].parentNode.removeChild(i[o])}}}if(!R.support.leadingWhitespace&&/^\s/.test(l)){d.insertBefore(a.createTextNode(l.match(/^\s*/)[0]),d.firstChild)}l=R.makeArray(d.childNodes)}if(l.nodeType){f.push(l)}else{f=R.merge(f,l)}});if(c){for(var h=0;f[h];h++){if(R.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")){g.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h])}else{if(f[h].nodeType===1){f.splice.apply(f,[h+1,0].concat(R.makeArray(f[h].getElementsByTagName("script"))))}c.appendChild(f[h])}}return g}return f},attr:function(h,f,a){if(!h||h.nodeType==3||h.nodeType==8){return Y}var b=!R.isXMLDoc(h),d=a!==Y;f=b&&R.props[f]||f;if(h.tagName){var e=/href|src|style/.test(f);if(f=="selected"&&h.parentNode){h.parentNode.selectedIndex}if(f in h&&b&&!e){if(d){if(f=="type"&&R.nodeName(h,"input")&&h.parentNode){throw"type property can't be changed"}h[f]=a}if(R.nodeName(h,"form")&&h.getAttributeNode(f)){return h.getAttributeNode(f).nodeValue}if(f=="tabIndex"){var c=h.getAttributeNode("tabIndex");return c&&c.specified?c.value:h.nodeName.match(/(button|input|object|select|textarea)/i)?0:h.nodeName.match(/^(a|area)$/i)&&h.href?0:Y}return h[f]}if(!R.support.style&&b&&f=="style"){return R.attr(h.style,"cssText",a)}if(d){h.setAttribute(f,""+a)}var g=!R.support.hrefNormalized&&b&&e?h.getAttribute(f,2):h.getAttribute(f);return g===null?Y:g}if(!R.support.opacity&&f=="opacity"){if(d){h.zoom=1;h.filter=(h.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(a)+""=="NaN"?"":"alpha(opacity="+a*100+")")}return h.filter&&h.filter.indexOf("opacity=")>=0?(parseFloat(h.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}f=f.replace(/-([a-z])/ig,function(j,i){return i.toUpperCase()});if(d){h[f]=a}return h[f]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var c=[];if(b!=null){var a=b.length;if(a==null||typeof b==="string"||R.isFunction(b)||b.setInterval){c[0]=b}else{while(a){c[--a]=b[a]}}}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,d){var a=0,c,e=b.length;if(!R.support.getAll){while((c=d[a++])!=null){if(c.nodeType!=8){b[e++]=c}}}else{while((c=d[a++])!=null){b[e++]=c}}return b},unique:function(a){var b=[],d={};try{for(var c=0,g=a.length;c<g;c++){var f=R.data(a[c]);if(!d[f]){d[f]=true;b.push(a[c])}}}catch(e){b=a}return b},grep:function(a,f,d){var b=[];for(var e=0,c=a.length;e<c;e++){if(!d!=!f(a[e],e)){b.push(a[e])}}return b},map:function(d,f){var a=[];for(var b=0,e=d.length;b<e;b++){var c=f(d[b],b);if(c!=null){a[a.length]=c}}return a.concat.apply([],a)}});var ac=navigator.userAgent.toLowerCase();R.browser={version:(ac.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(ac),opera:/opera/.test(ac),msie:/msie/.test(ac)&&!/opera/.test(ac),mozilla:/mozilla/.test(ac)&&!/(compatible|webkit)/.test(ac)};R.each({parent:function(a){return a.parentNode},parents:function(a){return R.dir(a,"parentNode")},next:function(a){return R.nth(a,2,"nextSibling")},prev:function(a){return R.nth(a,2,"previousSibling")},nextAll:function(a){return R.dir(a,"nextSibling")},prevAll:function(a){return R.dir(a,"previousSibling")},siblings:function(a){return R.sibling(a.parentNode.firstChild,a)},children:function(a){return R.sibling(a.firstChild)},contents:function(a){return R.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:R.makeArray(a.childNodes)}},function(b,a){R.fn[b]=function(d){var c=R.map(this,a);if(d&&typeof d=="string"){c=R.multiFilter(d,c)}return this.pushStack(R.unique(c),b,d)}});R.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){R.fn[b]=function(d){var h=[],f=R(d);for(var c=0,g=f.length;c<g;c++){var e=(c>0?this.clone(true):this).get();R.fn[a].apply(R(f[c]),e);h=h.concat(e)}return this.pushStack(h,b,d)}});R.each({removeAttr:function(a){R.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){R.className.add(this,a)},removeClass:function(a){R.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!R.className.has(this,a)}R.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||R.filter(a,[this]).length){R("*",this).add([this]).each(function(){R.event.remove(this);R.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){R(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){R.fn[b]=function(){return this.each(a,arguments)}});function M(b,a){return b[0]&&parseInt(R.curCSS(b[0],a,true),10)||0}var O="jQuery"+aa(),I=0,ad={};R.extend({cache:{},data:function(a,c,b){a=a==S?ad:a;var d=a[O];if(!d){d=a[O]=++I}if(c&&!R.cache[d]){R.cache[d]={}}if(b!==Y){R.cache[d][c]=b}return c?R.cache[d][c]:d},removeData:function(a,d){a=a==S?ad:a;var b=a[O];if(d){if(R.cache[b]){delete R.cache[b][d];d="";for(d in R.cache[b]){break}if(!d){R.removeData(a)}}}else{try{delete a[O]}catch(c){if(a.removeAttribute){a.removeAttribute(O)}}delete R.cache[b]}},queue:function(a,d,b){if(a){d=(d||"fx")+"queue";var c=R.data(a,d);if(!c||R.isArray(b)){c=R.data(a,d,R.makeArray(b))}else{if(b){c.push(b)}}}return c},dequeue:function(b,c){var d=R.queue(b,c),a=d.shift();if(!c||c==="fx"){a=d[0]}if(a!==Y){a.call(b)}}});R.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===Y){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===Y&&this.length){c=R.data(this[0],d)}return c===Y&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){R.data(this,d,b)})}},removeData:function(a){return this.each(function(){R.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===Y){return R.queue(this[0],b)}return this.each(function(){var c=R.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){R.dequeue(this,a)})}});(function(){var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,b=Object.prototype.toString;var h=function(v,D,z,r){z=z||[];D=D||document;if(D.nodeType!==1&&D.nodeType!==9){return[]}if(!v||typeof v!=="string"){return z}var t=[],B,p,y,C,s,A,u=true;j.lastIndex=0;while((B=j.exec(v))!==null){t.push(B[1]);if(B[2]){A=RegExp.rightContext;break}}if(t.length>1&&g.exec(v)){if(t.length===2&&c.relative[t[0]]){p=o(t[0]+t[1],D)}else{p=c.relative[t[0]]?[D]:h(t.shift(),D);while(t.length){v=t.shift();if(c.relative[v]){v+=t.shift()}p=o(v,p)}}}else{var w=r?{expr:t.pop(),set:m(r)}:h.find(t.pop(),t.length===1&&D.parentNode?D.parentNode:D,n(D));p=h.filter(w.expr,w.set);if(t.length>0){y=m(p)}else{u=false}while(t.length){var x=t.pop(),q=x;if(!c.relative[x]){x=""}else{q=t.pop()}if(q==null){q=D}c.relative[x](y,q,n(D))}}if(!y){y=p}if(!y){throw"Syntax error, unrecognized expression: "+(x||v)}if(b.call(y)==="[object Array]"){if(!u){z.push.apply(z,y)}else{if(D.nodeType===1){for(var ai=0;y[ai]!=null;ai++){if(y[ai]&&(y[ai]===true||y[ai].nodeType===1&&a(D,y[ai]))){z.push(p[ai])}}}else{for(var ai=0;y[ai]!=null;ai++){if(y[ai]&&y[ai].nodeType===1){z.push(p[ai])}}}}}else{m(y,z)}if(A){h(A,D,z,r);if(i){hasDuplicate=false;z.sort(i);if(hasDuplicate){for(var ai=1;ai<z.length;ai++){if(z[ai]===z[ai-1]){z.splice(ai--,1)}}}}}return z};h.matches=function(p,q){return h(p,null,null,q)};h.find=function(p,w,t){var q,r;if(!p){return[]}for(var v=0,u=c.order.length;v<u;v++){var s=c.order[v],r;if((r=c.match[s].exec(p))){var x=RegExp.leftContext;if(x.substr(x.length-1)!=="\\"){r[1]=(r[1]||"").replace(/\\/g,"");q=c.find[s](r,w,t);if(q!=null){p=p.replace(c.match[s],"");break}}}}if(!q){q=w.getElementsByTagName("*")}return{set:q,expr:p}};h.filter=function(p,z,C,B){var A=p,x=[],q=z,v,ai,t=z&&z[0]&&n(z[0]);while(p&&z.length){for(var s in c.filter){if((v=c.match[s].exec(p))!=null){var D=c.filter[s],w,y;ai=false;if(q==x){x=[]}if(c.preFilter[s]){v=c.preFilter[s](v,q,C,x,B,t);if(!v){ai=w=true}else{if(v===true){continue}}}if(v){for(var u=0;(y=q[u])!=null;u++){if(y){w=D(y,v,u,q);var r=B^!!w;if(C&&w!=null){if(r){ai=true}else{q[u]=false}}else{if(r){x.push(y);ai=true}}}}}if(w!==Y){if(!C){q=x}p=p.replace(c.match[s],"");if(!ai){return[]}break}}}if(p==A){if(ai==null){throw"Syntax error, unrecognized expression: "+p}else{break}}A=p}return q};var c=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(p){return p.getAttribute("href")}},relative:{"+":function(p,w,q){var r=typeof w==="string",t=r&&!/\W/.test(w),s=r&&!t;if(t&&!q){w=w.toUpperCase()}for(var v=0,u=p.length,x;v<u;v++){if((x=p[v])){while((x=x.previousSibling)&&x.nodeType!==1){}p[v]=s||x&&x.nodeName===w?x||false:x===w}}if(s){h.filter(w,p,true)}},">":function(q,w,p){var r=typeof w==="string";if(r&&!/\W/.test(w)){w=p?w:w.toUpperCase();for(var t=0,v=q.length;t<v;t++){var s=q[t];if(s){var u=s.parentNode;q[t]=u.nodeName===w?u:false}}}else{for(var t=0,v=q.length;t<v;t++){var s=q[t];if(s){q[t]=r?s.parentNode:s.parentNode===w}}if(r){h.filter(w,q,true)}}},"":function(s,u,t){var r=f++,q=k;if(!u.match(/\W/)){var p=u=t?u:u.toUpperCase();q=l}q("parentNode",u,r,s,p,t)},"~":function(s,u,t){var r=f++,q=k;if(typeof u==="string"&&!u.match(/\W/)){var p=u=t?u:u.toUpperCase();q=l}q("previousSibling",u,r,s,p,t)}},find:{ID:function(s,p,q){if(typeof p.getElementById!=="undefined"&&!q){var r=p.getElementById(s[1]);return r?[r]:[]}},NAME:function(s,u,r){if(typeof u.getElementsByName!=="undefined"){var v=[],t=u.getElementsByName(s[1]);for(var q=0,p=t.length;q<p;q++){if(t[q].getAttribute("name")===s[1]){v.push(t[q])}}return v.length===0?null:v}},TAG:function(p,q){return q.getElementsByTagName(p[1])}},preFilter:{CLASS:function(u,w,t,v,q,p){u=" "+u[1].replace(/\\/g,"")+" ";if(p){return u}for(var r=0,s;(s=w[r])!=null;r++){if(s){if(q^(s.className&&(" "+s.className+" ").indexOf(u)>=0)){if(!t){v.push(s)}}else{if(t){w[r]=false}}}}return false},ID:function(p){return p[1].replace(/\\/g,"")},TAG:function(r,q){for(var p=0;q[p]===false;p++){}return q[p]&&n(q[p])?r[1]:r[1].toUpperCase()},CHILD:function(p){if(p[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(p[2]=="even"&&"2n"||p[2]=="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=(q[1]+(q[2]||1))-0;p[3]=q[3]-0}p[0]=f++;return p},ATTR:function(t,v,s,u,r,q){var p=t[1].replace(/\\/g,"");if(!q&&c.attrMap[p]){t[1]=c.attrMap[p]}if(t[2]==="~="){t[4]=" "+t[4]+" "}return t},PSEUDO:function(s,u,r,t,q){if(s[1]==="not"){if(s[3].match(j).length>1||/^\w/.test(s[3])){s[3]=h(s[3],null,null,u)}else{var p=h.filter(s[3],u,r,true^q);if(!r){t.push.apply(t,p)}return false}}else{if(c.match.POS.test(s[0])||c.match.CHILD.test(s[0])){return true}}return s},POS:function(p){p.unshift(true);return p}},filters:{enabled:function(p){return p.disabled===false&&p.type!=="hidden"},disabled:function(p){return p.disabled===true},checked:function(p){return p.checked===true},selected:function(p){p.parentNode.selectedIndex;return p.selected===true},parent:function(p){return !!p.firstChild},empty:function(p){return !p.firstChild},has:function(p,r,q){return !!h(q[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){return"text"===p.type},radio:function(p){return"radio"===p.type},checkbox:function(p){return"checkbox"===p.type},file:function(p){return"file"===p.type},password:function(p){return"password"===p.type},submit:function(p){return"submit"===p.type},image:function(p){return"image"===p.type},reset:function(p){return"reset"===p.type},button:function(p){return"button"===p.type||p.nodeName.toUpperCase()==="BUTTON"},input:function(p){return/input|select|textarea|button/i.test(p.nodeName)}},setFilters:{first:function(q,p){return p===0},last:function(p,s,r,q){return s===q.length-1},even:function(q,p){return p%2===0},odd:function(q,p){return p%2===1},lt:function(p,r,q){return r<q[3]-0},gt:function(p,r,q){return r>q[3]-0},nth:function(p,r,q){return q[3]-0==r},eq:function(p,r,q){return q[3]-0==r}},filter:{PSEUDO:function(q,t,u,p){var w=t[1],r=c.filters[w];if(r){return r(q,u,t,p)}else{if(w==="contains"){return(q.textContent||q.innerText||"").indexOf(t[3])>=0}else{if(w==="not"){var s=t[3];for(var u=0,v=s.length;u<v;u++){if(s[u]===q){return false}}return true}}}},CHILD:function(w,v){var q=v[1],x=w;switch(q){case"only":case"first":while(x=x.previousSibling){if(x.nodeType===1){return false}}if(q=="first"){return true}x=w;case"last":while(x=x.nextSibling){if(x.nodeType===1){return false}}return true;case"nth":var u=v[2],p=v[3];if(u==1&&p==0){return true}var s=v[0],t=w.parentNode;if(t&&(t.sizcache!==s||!w.nodeIndex)){var r=0;for(x=t.firstChild;x;x=x.nextSibling){if(x.nodeType===1){x.nodeIndex=++r}}t.sizcache=s}var y=w.nodeIndex-p;if(u==0){return y==0}else{return(y%u==0&&y/u>=0)}}},ID:function(q,p){return q.nodeType===1&&q.getAttribute("id")===p},TAG:function(q,p){return(p==="*"&&q.nodeType===1)||q.nodeName===p},CLASS:function(q,p){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(p)>-1},ATTR:function(u,t){var s=t[1],r=c.attrHandle[s]?c.attrHandle[s](u):u[s]!=null?u[s]:u.getAttribute(s),q=r+"",p=t[2],v=t[4];return r==null?p==="!=":p==="="?q===v:p==="*="?q.indexOf(v)>=0:p==="~="?(" "+q+" ").indexOf(v)>=0:!v?q&&r!==false:p==="!="?q!=v:p==="^="?q.indexOf(v)===0:p==="$="?q.substr(q.length-v.length)===v:p==="|="?q===v||q.substr(0,v.length+1)===v+"-":false},POS:function(s,u,r,t){var q=u[2],p=c.setFilters[q];if(p){return p(s,r,u,t)}}}};var g=c.match.POS;for(var e in c.match){c.match[e]=RegExp(c.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var m=function(q,p){q=Array.prototype.slice.call(q);if(p){p.push.apply(p,q);return p}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(d){m=function(r,q){var t=q||[];if(b.call(r)==="[object Array]"){Array.prototype.push.apply(t,r)}else{if(typeof r.length==="number"){for(var p=0,s=r.length;p<s;p++){t.push(r[p])}}else{for(var p=0;r[p];p++){t.push(r[p])}}}return t}}var i;if(document.documentElement.compareDocumentPosition){i=function(r,q){var p=r.compareDocumentPosition(q)&4?-1:r===q?0:1;if(p===0){hasDuplicate=true}return p}}else{if("sourceIndex" in document.documentElement){i=function(r,q){var p=r.sourceIndex-q.sourceIndex;if(p===0){hasDuplicate=true}return p}}else{if(document.createRange){i=function(r,t){var q=r.ownerDocument.createRange(),s=t.ownerDocument.createRange();q.selectNode(r);q.collapse(true);s.selectNode(t);s.collapse(true);var p=q.compareBoundaryPoints(Range.START_TO_END,s);if(p===0){hasDuplicate=true}return p}}}}(function(){var r=document.createElement("form"),p="script"+(new Date).getTime();r.innerHTML="<input name='"+p+"'/>";var q=document.documentElement;q.insertBefore(r,q.firstChild);if(!!document.getElementById(p)){c.find.ID=function(u,v,s){if(typeof v.getElementById!=="undefined"&&!s){var t=v.getElementById(u[1]);return t?t.id===u[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===u[1]?[t]:Y:[]}};c.filter.ID=function(u,t){var s=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&s&&s.nodeValue===t}}q.removeChild(r)})();(function(){var p=document.createElement("div");p.appendChild(document.createComment(""));if(p.getElementsByTagName("*").length>0){c.find.TAG=function(u,t){var s=t.getElementsByTagName(u[1]);if(u[1]==="*"){var r=[];for(var q=0;s[q];q++){if(s[q].nodeType===1){r.push(s[q])}}s=r}return s}}p.innerHTML="<a href='#'></a>";if(p.firstChild&&typeof p.firstChild.getAttribute!=="undefined"&&p.firstChild.getAttribute("href")!=="#"){c.attrHandle.href=function(q){return q.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var p=h,q=document.createElement("div");q.innerHTML="<p class='TEST'></p>";if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return}h=function(v,u,t,s){u=u||document;if(!s&&u.nodeType===9&&!n(u)){try{return m(u.querySelectorAll(v),t)}catch(r){}}return p(v,u,t,s)};h.find=p.find;h.filter=p.filter;h.selectors=p.selectors;h.matches=p.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var p=document.createElement("div");p.innerHTML="<div class='test e'></div><div class='test'></div>";if(p.getElementsByClassName("e").length===0){return}p.lastChild.className="e";if(p.getElementsByClassName("e").length===1){return}c.order.splice(1,0,"CLASS");c.find.CLASS=function(s,q,r){if(typeof q.getElementsByClassName!=="undefined"&&!r){return q.getElementsByClassName(s[1])}}})()}function l(z,s,u,p,q,v){var r=z=="previousSibling"&&!v;for(var x=0,w=p.length;x<w;x++){var y=p[x];if(y){if(r&&y.nodeType===1){y.sizcache=u;y.sizset=x}y=y[z];var t=false;while(y){if(y.sizcache===u){t=p[y.sizset];break}if(y.nodeType===1&&!v){y.sizcache=u;y.sizset=x}if(y.nodeName===s){t=y;break}y=y[z]}p[x]=t}}}function k(z,s,u,p,q,v){var r=z=="previousSibling"&&!v;for(var x=0,w=p.length;x<w;x++){var y=p[x];if(y){if(r&&y.nodeType===1){y.sizcache=u;y.sizset=x}y=y[z];var t=false;while(y){if(y.sizcache===u){t=p[y.sizset];break}if(y.nodeType===1){if(!v){y.sizcache=u;y.sizset=x}if(typeof s!=="string"){if(y===s){t=true;break}}else{if(h.filter(s,[y]).length>0){t=y;break}}}y=y[z]}p[x]=t}}}var a=document.compareDocumentPosition?function(q,p){return q.compareDocumentPosition(p)&16}:function(q,p){return q!==p&&(q.contains?q.contains(p):true)};var n=function(p){return p.nodeType===9&&p.documentElement.nodeName!=="HTML"||!!p.ownerDocument&&n(p.ownerDocument)};var o=function(v,p){var u=[],r="",s,t=p.nodeType?[p]:p;while((s=c.match.PSEUDO.exec(v))){r+=s[0];v=v.replace(c.match.PSEUDO,"")}v=c.relative[v]?v+"*":v;for(var q=0,w=t.length;q<w;q++){h(v,t[q],u)}return h.filter(r,u)};R.find=h;R.filter=h.filter;R.expr=h.selectors;R.expr[":"]=R.expr.filters;h.selectors.filters.hidden=function(p){return p.offsetWidth===0||p.offsetHeight===0};h.selectors.filters.visible=function(p){return p.offsetWidth>0||p.offsetHeight>0};h.selectors.filters.animated=function(p){return R.grep(R.timers,function(q){return p===q.elem}).length};R.multiFilter=function(p,q,r){if(r){p=":not("+p+")"}return h.matches(p,q)};R.dir=function(p,s){var r=[],q=p[s];while(q&&q!=document){if(q.nodeType==1){r.push(q)}q=q[s]}return r};R.nth=function(r,s,q,p){s=s||1;var t=0;for(;r;r=r[q]){if(r.nodeType==1&&++t==s){break}}return r};R.sibling=function(p,r){var q=[];for(;p;p=p.nextSibling){if(p.nodeType==1&&p!=r){q.push(p)}}return q};return;S.Sizzle=h})();R.event={add:function(c,a,b,g){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=S){c=S}if(!b.guid){b.guid=this.guid++}if(g!==Y){var d=b;b=this.proxy(d);b.data=g}var e=R.data(c,"events")||R.data(c,"events",{}),f=R.data(c,"handle")||R.data(c,"handle",function(){return typeof R!=="undefined"&&!R.event.triggered?R.event.handle.apply(arguments.callee.elem,arguments):Y});f.elem=c;R.each(a.split(/\s+/),function(k,h){var i=h.split(".");h=i.shift();b.type=i.slice().sort().join(".");var j=e[h];if(R.event.specialAll[h]){R.event.specialAll[h].setup.call(c,g,i)}if(!j){j=e[h]={};if(!R.event.special[h]||R.event.special[h].setup.call(c,g,i)===false){if(c.addEventListener){c.addEventListener(h,f,false)}else{if(c.attachEvent){c.attachEvent("on"+h,f)}}}}j[b.guid]=b;R.event.global[h]=true});c=null},guid:1,global:{},remove:function(a,b,h){if(a.nodeType==3||a.nodeType==8){return}var f=R.data(a,"events"),e,g;if(f){if(b===Y||(typeof b==="string"&&b.charAt(0)==".")){for(var c in f){this.remove(a,c+(b||""))}}else{if(b.type){h=b.handler;b=b.type}R.each(b.split(/\s+/),function(m,k){var l=k.split(".");k=l.shift();var j=RegExp("(^|\\.)"+l.slice().sort().join(".*\\.")+"(\\.|$)");if(f[k]){if(h){delete f[k][h.guid]}else{for(var i in f[k]){if(j.test(f[k][i].type)){delete f[k][i]}}}if(R.event.specialAll[k]){R.event.specialAll[k].teardown.call(a,l)}for(e in f[k]){break}if(!e){if(!R.event.special[k]||R.event.special[k].teardown.call(a,l)===false){if(a.removeEventListener){a.removeEventListener(k,R.data(a,"handle"),false)}else{if(a.detachEvent){a.detachEvent("on"+k,R.data(a,"handle"))}}}e=null;delete f[k]}}})}for(e in f){break}if(!e){var d=R.data(a,"handle");if(d){d.elem=null}R.removeData(a,"events");R.removeData(a,"handle")}}},trigger:function(c,a,b,g){var f=c.type||c;if(!g){c=typeof c==="object"?c[O]?c:R.extend(R.Event(f),c):R.Event(f);if(f.indexOf("!")>=0){c.type=f=f.slice(0,-1);c.exclusive=true}if(!b){c.stopPropagation();if(this.global[f]){R.each(R.cache,function(){if(this.events&&this.events[f]){R.event.trigger(c,a,this.handle.elem)}})}}if(!b||b.nodeType==3||b.nodeType==8){return Y}c.result=Y;c.target=b;a=R.makeArray(a);a.unshift(c)}c.currentTarget=b;var h=R.data(b,"handle");if(h){h.apply(b,a)}if((!b[f]||(R.nodeName(b,"a")&&f=="click"))&&b["on"+f]&&b["on"+f].apply(b,a)===false){c.result=false}if(!g&&b[f]&&!c.isDefaultPrevented()&&!(R.nodeName(b,"a")&&f=="click")){this.triggered=true;try{b[f]()}catch(d){}}this.triggered=false;if(!c.isPropagationStopped()){var e=b.parentNode||b.ownerDocument;if(e){R.event.trigger(c,a,e,true)}}},handle:function(a){var h,g;a=arguments[0]=R.event.fix(a||S.event);a.currentTarget=this;var d=a.type.split(".");a.type=d.shift();h=!d.length&&!a.exclusive;var c=RegExp("(^|\\.)"+d.slice().sort().join(".*\\.")+"(\\.|$)");g=(R.data(this,"events")||{})[a.type];for(var f in g){var b=g[f];if(h||c.test(b.type)){a.handler=b;a.data=b.data;var e=b.apply(this,arguments);if(e!==Y){a.result=e;if(e===false){a.preventDefault();a.stopPropagation()}}if(a.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(b){if(b[O]){return b}var a=b;b=R.Event(a);for(var c=this.props.length,f;c;){f=this.props[--c];b[f]=a[f]}if(!b.target){b.target=b.srcElement||document}if(b.target.nodeType==3){b.target=b.target.parentNode}if(!b.relatedTarget&&b.fromElement){b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement}if(b.pageX==null&&b.clientX!=null){var e=document.documentElement,d=document.body;b.pageX=b.clientX+(e&&e.scrollLeft||d&&d.scrollLeft||0)-(e.clientLeft||0);b.pageY=b.clientY+(e&&e.scrollTop||d&&d.scrollTop||0)-(e.clientTop||0)}if(!b.which&&((b.charCode||b.charCode===0)?b.charCode:b.keyCode)){b.which=b.charCode||b.keyCode}if(!b.metaKey&&b.ctrlKey){b.metaKey=b.ctrlKey}if(!b.which&&b.button){b.which=(b.button&1?1:(b.button&2?3:(b.button&4?2:0)))}return b},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:ab,teardown:function(){}}},specialAll:{live:{setup:function(b,a){R.event.add(this,a[0],V)},teardown:function(b){if(b.length){var c=0,a=RegExp("(^|\\.)"+b[0]+"(\\.|$)");R.each((R.data(this,"events").live||{}),function(){if(a.test(this.type)){c++}});if(c<1){R.event.remove(this,b[0],V)}}}}}};R.Event=function(a){if(!this.preventDefault){return new R.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=aa();this[O]=true};function N(){return false}function L(){return true}R.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=L;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;this.stopPropagation()},isDefaultPrevented:N,isPropagationStopped:N,isImmediatePropagationStopped:N};var W=function(a){var c=a.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(b){c=this}}if(c!=this){a.type=a.data;R.event.handle.apply(this,arguments)}};R.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){R.event.special[b]={setup:function(){R.event.add(this,a,W,b)},teardown:function(){R.event.remove(this,a,W)}}});R.fn.extend({bind:function(a,b,c){return a=="unload"?this.one(a,b,c):this.each(function(){R.event.add(this,a,c||b,c&&b)})},one:function(b,a,c){var d=R.event.proxy(c||a,function(e){R(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){R.event.add(this,b,d,c&&a)})},unbind:function(a,b){return this.each(function(){R.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){R.event.trigger(b,a,this)})},triggerHandler:function(c,b){if(this[0]){var a=R.Event(c);a.preventDefault();a.stopPropagation();R.event.trigger(a,b,this[0]);return a.result}},toggle:function(b){var c=arguments,a=1;while(a<c.length){R.event.proxy(b,c[a++])}return this.click(R.event.proxy(b,function(d){this.lastToggle=(this.lastToggle||0)%a;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){ab();if(R.isReady){a.call(document,R)}else{R.readyList.push(a)}return this},live:function(b,a){var c=R.event.proxy(a);c.guid+=this.selector+b;R(document).bind(P(b,this.selector),this.selector,c);return this},die:function(a,b){R(document).unbind(P(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function V(b){var d=RegExp("(^|\\.)"+b.type+"(\\.|$)"),c=true,a=[];R.each(R.data(this,"events").live||[],function(f,g){if(d.test(g.type)){var e=R(b.target).closest(g.data)[0];if(e){a.push({elem:e,fn:g})}}});a.sort(function(f,e){return R.data(f.elem,"closest")-R.data(e.elem,"closest")});R.each(a,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(c=false)}});return c}function P(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}R.extend({isReady:false,readyList:[],ready:function(){if(!R.isReady){R.isReady=true;if(R.readyList){R.each(R.readyList,function(){this.call(document,R)});R.readyList=null}R(document).triggerHandler("ready")}}});var ag=false;function ab(){if(ag){return}ag=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);R.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);R.ready()}});if(document.documentElement.doScroll&&S==S.top){(function(){if(R.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}R.ready()})()}}}R.event.add(S,"load",R.ready)}R.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){R.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});R(S).bind("unload",function(){for(var a in R.cache){if(a!=1&&R.cache[a].handle){R.event.remove(R.cache[a].handle.elem)}}});(function(){R.support={};var a=document.documentElement,b=document.createElement("script"),g=document.createElement("div"),f="script"+(new Date).getTime();g.style.display="none";g.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 e=g.getElementsByTagName("*"),d=g.getElementsByTagName("a")[0];if(!e||!e.length||!d){return}R.support={leadingWhitespace:g.firstChild.nodeType==3,tbody:!g.getElementsByTagName("tbody").length,objectAll:!!g.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:d.style.opacity==="0.5",cssFloat:!!d.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+f+"=1;"))}catch(c){}a.insertBefore(b,a.firstChild);if(S[f]){R.support.scriptEval=true;delete S[f]}a.removeChild(b);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function(){R.support.noCloneEvent=false;g.detachEvent("onclick",arguments.callee)});g.cloneNode(true).fireEvent("onclick")}R(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);R.boxModel=R.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none"})})();var J=R.support.cssFloat?"cssFloat":"styleFloat";R.props={"for":"htmlFor","class":"className","float":J,cssFloat:J,styleFloat:J,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};R.fn.extend({_load:R.fn.load,load:function(b,g,a){if(typeof b!=="string"){return this._load(b)}var c=b.indexOf(" ");if(c>=0){var d=b.slice(c,b.length);b=b.slice(0,c)}var f="GET";if(g){if(R.isFunction(g)){a=g;g=null}else{if(typeof g==="object"){g=R.param(g);f="POST"}}}var e=this;R.ajax({url:b,type:f,dataType:"html",data:g,complete:function(i,h){if(h=="success"||h=="notmodified"){e.html(d?R("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(d):i.responseText)}if(a){e.each(a,[i.responseText,h,i])}}});return this},serialize:function(){return R.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?R.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,a){var b=R(this).val();return b==null?null:R.isArray(b)?R.map(b,function(e,d){return{name:a.name,value:e}}):{name:a.name,value:b}}).get()}});R.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){R.fn[a]=function(c){return this.bind(a,c)}});var E=aa();R.extend({get:function(d,b,a,c){if(R.isFunction(b)){a=b;b=null}return R.ajax({type:"GET",url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return R.get(b,null,a,"script")},getJSON:function(c,a,b){return R.get(c,a,b,"json")},post:function(d,b,a,c){if(R.isFunction(b)){a=b;b={}}return R.ajax({type:"POST",url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){R.extend(R.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(p){p=R.extend(true,p,R.extend(true,{},R.ajaxSettings,p));var f,q=/=\?(&|$)/g,a,e,r=p.type.toUpperCase();if(p.data&&p.processData&&typeof p.data!=="string"){p.data=R.param(p.data)}if(p.dataType=="jsonp"){if(r=="GET"){if(!p.url.match(q)){p.url+=(p.url.match(/\?/)?"&":"?")+(p.jsonp||"callback")+"=?"}}else{if(!p.data||!p.data.match(q)){p.data=(p.data?p.data+"&":"")+(p.jsonp||"callback")+"=?"}}p.dataType="json"}if(p.dataType=="json"&&(p.data&&p.data.match(q)||p.url.match(q))){f="jsonp"+E++;if(p.data){p.data=(p.data+"").replace(q,"="+f+"$1")}p.url=p.url.replace(q,"="+f+"$1");p.dataType="script";S[f]=function(t){e=t;l();o();S[f]=Y;try{delete S[f]}catch(u){}if(k){k.removeChild(g)}}}if(p.dataType=="script"&&p.cache==null){p.cache=false}if(p.cache===false&&r=="GET"){var s=aa();var h=p.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+s+"$2");p.url=h+((h==p.url)?(p.url.match(/\?/)?"&":"?")+"_="+s:"")}if(p.data&&r=="GET"){p.url+=(p.url.match(/\?/)?"&":"?")+p.data;p.data=null}if(p.global&&!R.active++){R.event.trigger("ajaxStart")}var d=/^(\w+:)?\/\/([^\/?#]+)/.exec(p.url);if(p.dataType=="script"&&r=="GET"&&d&&(d[1]&&d[1]!=location.protocol||d[2]!=location.host)){var k=document.getElementsByTagName("head")[0];var g=document.createElement("script");g.src=p.url;if(p.scriptCharset){g.charset=p.scriptCharset}if(!f){var n=false;g.onload=g.onreadystatechange=function(){if(!n&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){n=true;l();o();g.onload=g.onreadystatechange=null;k.removeChild(g)}}}k.appendChild(g);return Y}var j=false;var i=p.xhr();if(p.username){i.open(r,p.url,p.async,p.username,p.password)}else{i.open(r,p.url,p.async)}try{if(p.data){i.setRequestHeader("Content-Type",p.contentType)}if(p.ifModified){i.setRequestHeader("If-Modified-Since",R.lastModified[p.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.setRequestHeader("Accept",p.dataType&&p.accepts[p.dataType]?p.accepts[p.dataType]+", */*":p.accepts._default)}catch(b){}if(p.beforeSend&&p.beforeSend(i,p)===false){if(p.global&&!--R.active){R.event.trigger("ajaxStop")}i.abort();return false}if(p.global){R.event.trigger("ajaxSend",[i,p])}var m=function(u){if(i.readyState==0){if(c){clearInterval(c);c=null;if(p.global&&!--R.active){R.event.trigger("ajaxStop")}}}else{if(!j&&i&&(i.readyState==4||u=="timeout")){j=true;if(c){clearInterval(c);c=null}a=u=="timeout"?"timeout":!R.httpSuccess(i)?"error":p.ifModified&&R.httpNotModified(i,p.url)?"notmodified":"success";if(a=="success"){try{e=R.httpData(i,p.dataType,p)}catch(t){a="parsererror"}}if(a=="success"){var v;try{v=i.getResponseHeader("Last-Modified")}catch(t){}if(p.ifModified&&v){R.lastModified[p.url]=v}if(!f){l()}}else{R.handleError(p,i,a)}o();if(u){i.abort()}if(p.async){i=null}}}};if(p.async){var c=setInterval(m,13);if(p.timeout>0){setTimeout(function(){if(i&&!j){m("timeout")}},p.timeout)}}try{i.send(p.data)}catch(b){R.handleError(p,i,null,b)}if(!p.async){m()}function l(){if(p.success){p.success(e,a)}if(p.global){R.event.trigger("ajaxSuccess",[i,p])}}function o(){if(p.complete){p.complete(i,a)}if(p.global){R.event.trigger("ajaxComplete",[i,p])}if(p.global&&!--R.active){R.event.trigger("ajaxStop")}}return i},handleError:function(a,b,d,c){if(a.error){a.error(b,d,c)}if(a.global){R.event.trigger("ajaxError",[b,a,c])}},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==R.lastModified[d]}catch(c){}return false},httpData:function(f,b,c){var a=f.getResponseHeader("content-type"),d=b=="xml"||!b&&a&&a.indexOf("xml")>=0,e=d?f.responseXML:f.responseText;if(d&&e.documentElement.tagName=="parsererror"){throw"parsererror"}if(c&&c.dataFilter){e=c.dataFilter(e,b)}if(typeof e==="string"){if(b=="script"){R.globalEval(e)}if(b=="json"){e=S["eval"]("("+e+")")}}return e},param:function(d){var b=[];function a(e,f){b[b.length]=encodeURIComponent(e)+"="+encodeURIComponent(f)}if(R.isArray(d)||d.jquery){R.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(R.isArray(d[c])){R.each(d[c],function(){a(c,this)})}else{a(c,R.isFunction(d[c])?d[c]():d[c])}}}return b.join("&").replace(/%20/g,"+")}});var T={},Q,Z=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(a,c){var b={};R.each(Z.concat.apply([],Z.slice(0,c)),function(){b[this]=a});return b}R.fn.extend({show:function(h,d){if(h){return this.animate(K("show",3),h,d)}else{for(var b=0,e=this.length;b<e;b++){var g=R.data(this[b],"olddisplay");this[b].style.display=g||"";if(R.css(this[b],"display")==="none"){var f=this[b].tagName,a;if(T[f]){a=T[f]}else{var c=R("<"+f+" />").appendTo("body");a=c.css("display");if(a==="none"){a="block"}c.remove();T[f]=a}R.data(this[b],"olddisplay",a)}}for(var b=0,e=this.length;b<e;b++){this[b].style.display=R.data(this[b],"olddisplay")||""}return this}},hide:function(b,c){if(b){return this.animate(K("hide",3),b,c)}else{for(var d=0,a=this.length;d<a;d++){var e=R.data(this[d],"olddisplay");if(!e&&e!=="none"){R.data(this[d],"olddisplay",R.css(this[d],"display"))}}for(var d=0,a=this.length;d<a;d++){this[d].style.display="none"}return this}},_toggle:R.fn.toggle,toggle:function(b,a){var c=typeof b==="boolean";return R.isFunction(b)&&R.isFunction(a)?this._toggle.apply(this,arguments):b==null||c?this.each(function(){var d=c?b:R(this).is(":hidden");R(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),b,a)},fadeTo:function(c,b,a){return this.animate({opacity:b},c,a)},animate:function(c,a,b,d){var e=R.speed(a,b,d);return this[e.queue===false?"each":"queue"](function(){var f=R.extend({},e),h,g=this.nodeType==1&&R(this).is(":hidden"),i=this;for(h in c){if(c[h]=="hide"&&g||c[h]=="show"&&!g){return f.complete.call(this)}if((h=="height"||h=="width")&&this.style){f.display=R.css(this,"display");f.overflow=this.style.overflow}}if(f.overflow!=null){this.style.overflow="hidden"}f.curAnim=R.extend({},c);R.each(c,function(n,m){var l=new R.fx(i,f,n);if(/toggle|show|hide/.test(m)){l[m=="toggle"?g?"show":"hide":m](c)}else{var o=m.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),p=l.cur(true)||0;if(o){var k=parseFloat(o[2]),j=o[3]||"px";if(j!="px"){i.style[n]=(k||1)+j;p=((k||1)/l.cur(true))*p;i.style[n]=p+j}if(o[1]){k=((o[1]=="-="?-1:1)*k)+p}l.custom(p,k,j)}else{l.custom(p,m,"")}}});return true})},stop:function(a,c){var b=R.timers;if(a){this.queue([])}this.each(function(){for(var d=b.length-1;d>=0;d--){if(b[d].elem==this){if(c){b[d](true)}b.splice(d,1)}}});if(!c){this.dequeue()}return this}});R.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){R.fn[b]=function(d,c){return this.animate(a,d,c)}});R.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||R.isFunction(b)&&b,duration:b,easing:c&&a||a&&!R.isFunction(a)&&a};d.duration=R.fx.off?0:typeof d.duration==="number"?d.duration:R.fx.speeds[d.duration]||R.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){R(this).dequeue()}if(R.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(a,c,b){this.options=c;this.elem=a;this.prop=b;if(!c.orig){c.orig={}}}});R.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(R.fx.step[this.prop]||R.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(R.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(R.curCSS(this.elem,this.prop))||0},custom:function(c,b,d){this.startTime=aa();this.start=c;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function a(f){return e.step(f)}a.elem=this.elem;if(a()&&R.timers.push(a)&&!Q){Q=setInterval(function(){var f=R.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(Q);Q=Y}},13)}},show:function(){this.options.orig[this.prop]=R.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());R(this.elem).show()},hide:function(){this.options.orig[this.prop]=R.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var c=aa();if(b||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var d=true;for(var a in this.options.curAnim){if(this.options.curAnim[a]!==true){d=false}}if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(R.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){R(this.elem).hide()}if(this.options.hide||this.options.show){for(var f in this.options.curAnim){R.attr(this.elem.style,f,this.options.orig[f])}}this.options.complete.call(this.elem)}return false}else{var e=c-this.startTime;this.state=e/this.options.duration;this.pos=R.easing[this.options.easing||(R.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};R.extend(R.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){R.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){R.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return R.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),h=this[0].ownerDocument,e=h.body,g=h.documentElement,d=g.clientTop||e.clientTop||0,a=g.clientLeft||e.clientLeft||0,c=f.top+(self.pageYOffset||R.boxModel&&g.scrollTop||e.scrollTop)-d,b=f.left+(self.pageXOffset||R.boxModel&&g.scrollLeft||e.scrollLeft)-a;return{top:c,left:b}}}else{R.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return R.offset.bodyOffset(this[0])}R.offset.initialized||R.offset.initialize();var k=this[0],i=k.offsetParent,h=k,e=k.ownerDocument,g,b=e.documentElement,a=e.body,f=e.defaultView,j=f.getComputedStyle(k,null),d=k.offsetTop,c=k.offsetLeft;while((k=k.parentNode)&&k!==a&&k!==b){g=f.getComputedStyle(k,null);d-=k.scrollTop,c-=k.scrollLeft;if(k===i){d+=k.offsetTop,c+=k.offsetLeft;if(R.offset.doesNotAddBorder&&!(R.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(k.tagName))){d+=parseInt(g.borderTopWidth,10)||0,c+=parseInt(g.borderLeftWidth,10)||0}h=i,i=k.offsetParent}if(R.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){d+=parseInt(g.borderTopWidth,10)||0,c+=parseInt(g.borderLeftWidth,10)||0}j=g}if(j.position==="relative"||j.position==="static"){d+=a.offsetTop,c+=a.offsetLeft}if(j.position==="fixed"){d+=Math.max(b.scrollTop,a.scrollTop),c+=Math.max(b.scrollLeft,a.scrollLeft)}return{top:d,left:c}}}R.offset={initialize:function(){if(this.initialized){return}var e=document.body,g=document.createElement("div"),b,h,d,c,f,i,j=e.style.marginTop,a='<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>';f={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(i in f){g.style[i]=f[i]}g.innerHTML=a;e.insertBefore(g,e.firstChild);b=g.firstChild,h=b.firstChild,c=b.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(c.offsetTop===5);b.style.overflow="hidden",b.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);e.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(e.offsetTop===0);e.style.marginTop=j;e.removeChild(g);this.initialized=true},bodyOffset:function(c){R.offset.initialized||R.offset.initialize();var b=c.offsetTop,a=c.offsetLeft;if(R.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(R.curCSS(c,"marginTop",true),10)||0,a+=parseInt(R.curCSS(c,"marginLeft",true),10)||0}return{top:b,left:a}}};R.fn.extend({position:function(){var c=0,b=0,a;if(this[0]){var d=this.offsetParent(),f=this.offset(),e=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();f.top-=M(this,"marginTop");f.left-=M(this,"marginLeft");e.top+=M(d,"borderTopWidth");e.left+=M(d,"borderLeftWidth");a={top:f.top-e.top,left:f.left-e.left}}return a},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&R.css(a,"position")=="static")){a=a.offsetParent}return R(a)}});R.each(["Left","Top"],function(a,c){var b="scroll"+c;R.fn[b]=function(d){if(!this[0]){return null}return d!==Y?this.each(function(){this==S||this==document?S.scrollTo(!a?d:R(S).scrollLeft(),a?d:R(S).scrollTop()):this[b]=d}):this[0]==S||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||R.boxModel&&document.documentElement[b]||document.body[b]:this[0][b]}});R.each(["Height","Width"],function(c,b){var d=c?"Left":"Top",a=c?"Right":"Bottom",e=b.toLowerCase();R.fn["inner"+b]=function(){return this[0]?R.css(this[0],e,false,"padding"):null};R.fn["outer"+b]=function(g){return this[0]?R.css(this[0],e,false,g?"margin":"border"):null};var f=b.toLowerCase();R.fn[f]=function(g){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):g===Y?(this.length?R.css(this[0],f):null):this.css(f,typeof g==="string"?g:g+"px")}})})();(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return}var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=="string"?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}if(value.constructor==Number){value+=""}return this.each(function(){if(this.nodeType!=1){return}if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key)}return data===undefined&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!==undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&style&&style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode){stack.unshift(a)}for(;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return}if(elem.constructor==Number){elem+=""}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return}if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}if(set){elem.setAttribute(name,""+value)}var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return}if(jQuery.browser.msie&&elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return}var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,"handle");if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var 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 timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return},teardown:function(){return}},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return}readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return}try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return}jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return}}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return}if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!="string"){return this._load(url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,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(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data){xhr.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(filter){data=filter(data,type)}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]))}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",jQuery.makeArray(array))}}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done){this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return}return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br)};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0)}})})();(function(c){c.ui={plugin:{add:function(g,d,h){var f=c.ui[g].prototype;for(var e in h){f.plugins[e]=f.plugins[e]||[];f.plugins[e].push([d,h[e]])}},call:function(e,f,h){var g=e.plugins[f];if(!g){return}for(var d=0;d<g.length;d++){if(e.options[g[d][0]]){g[d][1].apply(e.element,h)}}}},cssCache:{},css:function(g){if(c.ui.cssCache[g]){return c.ui.cssCache[g]}var d=c('<div class="ui-gen">').addClass(g).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");c.ui.cssCache[g]=!!((!(/auto|default/).test(d.css("cursor"))||(/^[1-9]/).test(d.css("height"))||(/^[1-9]/).test(d.css("width"))||!(/none/).test(d.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(d.css("backgroundColor"))));try{c("body").get(0).removeChild(d.get(0))}catch(f){}return c.ui.cssCache[g]},disableSelection:function(d){c(d).attr("unselectable","on").css("MozUserSelect","none")},enableSelection:function(d){c(d).attr("unselectable","off").css("MozUserSelect","")},hasScroll:function(d,g){var f=/top/.test(g||"top")?"scrollTop":"scrollLeft",h=false;if(d[f]>0){return true}d[f]=1;h=d[f]>0?true:false;d[f]=0;return h}};var a=c.fn.remove;c.fn.remove=function(){c("*",this).add(this).triggerHandler("remove");return a.apply(this,arguments)};function b(d,e,f){var g=c[d][e].getter||[];g=(typeof g=="string"?g.split(/,?\s+/):g);return(c.inArray(f,g)!=-1)}c.widget=function(e,f){var d=e.split(".")[0];e=e.split(".")[1];c.fn[e]=function(h){var i=(typeof h=="string"),j=Array.prototype.slice.call(arguments,1);if(i&&b(d,e,h)){var g=c.data(this[0],e);return(g?g[h].apply(g,j):undefined)}return this.each(function(){var k=c.data(this,e);if(i&&k&&c.isFunction(k[h])){k[h].apply(k,j)}else{if(!i){c.data(this,e,new c[d][e](this,h))}}})};c[d][e]=function(i,h){var g=this;this.widgetName=e;this.widgetBaseClass=d+"-"+e;this.options=c.extend({},c.widget.defaults,c[d][e].defaults,h);this.element=c(i).bind("setData."+e,function(k,j,l){return g.setData(j,l)}).bind("getData."+e,function(k,j){return g.getData(j)}).bind("remove",function(){return g.destroy()});this.init()};c[d][e].prototype=c.extend({},c.widget.prototype,f)};c.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(d){return this.options[d]},setData:function(d,e){this.options[d]=e;if(d=="disabled"){this.element[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};c.widget.defaults={disabled:false};c.ui.mouse={mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(f){return d.mouseDown(f)});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(d){(this._mouseStarted&&this.mouseUp(d));this._mouseDownEvent=d;var h=this,g=(d.which==1),f=(typeof this.options.cancel=="string"?c(d.target).parents().add(d.target).filter(this.options.cancel).length:false);if(!g||f||!this.mouseCapture(d)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){h._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(d)&&this.mouseDelayMet(d)){this._mouseStarted=(this.mouseStart(d)!==false);if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(i){return h.mouseMove(i)};this._mouseUpDelegate=function(i){return h.mouseUp(i)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(d){if(c.browser.msie&&!d.button){return this.mouseUp(d)}if(this._mouseStarted){this.mouseDrag(d);return false}if(this.mouseDistanceMet(d)&&this.mouseDelayMet(d)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this.mouseDrag(d):this.mouseUp(d))}return !this._mouseStarted},mouseUp:function(d){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(d)}return false},mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},mouseDelayMet:function(d){return this._mouseDelayMet},mouseStart:function(d){},mouseDrag:function(d){},mouseStop:function(d){},mouseCapture:function(d){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(){var b=this.options;if(b.helper=="original"&&!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.element.addClass("ui-draggable");(b.disabled&&this.element.addClass("ui-draggable-disabled"));this.mouseInit()},mouseStart:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle")){return false}var b=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){b=true}});if(!b){return false}if(a.ui.ddmanager){a.ui.ddmanager.current=this}this.helper=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!this.helper.parents("body").length){this.helper.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(this.helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(this.helper.css("position"))){this.helper.css("position","absolute")}this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};this.cssPosition=this.helper.css("position");this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:c.pageX-this.offset.left,top:c.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var i=this.offsetParent.offset();if(this.offsetParent[0]==document.body&&a.browser.mozilla){i={top:0,left:0}}this.offset.parent={top:i.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:i.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};var f=this.element.position();this.offset.relative=this.cssPosition=="relative"?{top:f.top-(parseInt(this.helper.css("top"),10)||0)+this.offsetParent[0].scrollTop,left:f.left-(parseInt(this.helper.css("left"),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition=this.generatePosition(c);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(d.cursorAt){if(d.cursorAt.left!=undefined){this.offset.click.left=d.cursorAt.left+this.margins.left}if(d.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-d.cursorAt.right+this.margins.left}if(d.cursorAt.top!=undefined){this.offset.click.top=d.cursorAt.top+this.margins.top}if(d.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-d.cursorAt.bottom+this.margins.top}}if(d.containment){if(d.containment=="parent"){d.containment=this.helper[0].parentNode}if(d.containment=="document"||d.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(d.containment=="document"?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(d.containment)){var g=a(d.containment)[0];var h=a(d.containment).offset();this.containment=[h.left+(parseInt(a(g).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left,h.top+(parseInt(a(g).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top,h.left+Math.max(g.scrollWidth,g.offsetWidth)-(parseInt(a(g).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),h.top+Math.max(g.scrollHeight,g.offsetHeight)-(parseInt(a(g).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}}this.propagate("start",c);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(a.ui.ddmanager&&!d.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)}this.helper.addClass("ui-draggable-dragging");this.mouseDrag(c);return true},convertPositionTo:function(b,c){if(!c){c=this.position}var e=b=="absolute"?1:-1;return{top:(c.top+this.offset.relative.top*e+this.offset.parent.top*e-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)*e+(this.cssPosition=="fixed"?a(document).scrollTop():0)*e+this.margins.top*e),left:(c.left+this.offset.relative.left*e+this.offset.parent.left*e-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)*e+(this.cssPosition=="fixed"?a(document).scrollLeft():0)*e+this.margins.left*e)}},generatePosition:function(b){var c=this.options;var f={top:(b.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)-(this.cssPosition=="fixed"?a(document).scrollTop():0)),left:(b.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)-(this.cssPosition=="fixed"?a(document).scrollLeft():0))};if(!this.originalPosition){return f}if(this.containment){if(f.left<this.containment[0]){f.left=this.containment[0]}if(f.top<this.containment[1]){f.top=this.containment[1]}if(f.left>this.containment[2]){f.left=this.containment[2]}if(f.top>this.containment[3]){f.top=this.containment[3]}}if(c.grid){var d=this.originalPosition.top+Math.round((f.top-this.originalPosition.top)/c.grid[1])*c.grid[1];f.top=this.containment?(!(d<this.containment[1]||d>this.containment[3])?d:(!(d<this.containment[1])?d-c.grid[1]:d+c.grid[1])):d;var g=this.originalPosition.left+Math.round((f.left-this.originalPosition.left)/c.grid[0])*c.grid[0];f.left=this.containment?(!(g<this.containment[0]||g>this.containment[2])?g:(!(g<this.containment[0])?g-c.grid[0]:g+c.grid[0])):g}return f},mouseDrag:function(b){this.position=this.generatePosition(b);this.positionAbs=this.convertPositionTo("absolute");this.position=this.propagate("drag",b)||this.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(b){var c=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){var c=a.ui.ddmanager.drop(this,b)}if((this.options.revert=="invalid"&&!c)||(this.options.revert=="valid"&&c)||this.options.revert===true){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revert,10)||500,function(){d.propagate("stop",b);d.clear()})}else{this.propagate("stop",b);this.clear()}return false},clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.options.helper!="original"&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},plugins:{},uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,options:this.options}},propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.uiHash()]);if(b=="drag"){this.positionAbs=this.convertPositionTo("absolute")}return this.element.triggerHandler(b=="drag"?b:"drag"+b,[c,this.uiHash()],this.options[b])},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable");this.mouseDestroy()}}));a.extend(a.ui.draggable,{defaults:{appendTo:"parent",axis:false,cancel:":input",delay:0,distance:1,helper:"original"}});a.ui.plugin.add("draggable","cursor",{start:function(c,b){var d=a("body");if(d.css("cursor")){b.options._cursor=d.css("cursor")}d.css("cursor",b.options.cursor)},stop:function(c,b){if(b.options._cursor){a("body").css("cursor",b.options._cursor)}}});a.ui.plugin.add("draggable","zIndex",{start:function(c,b){var d=a(b.helper);if(d.css("zIndex")){b.options._zIndex=d.css("zIndex")}d.css("zIndex",b.options.zIndex)},stop:function(c,b){if(b.options._zIndex){a(b.helper).css("zIndex",b.options._zIndex)}}});a.ui.plugin.add("draggable","opacity",{start:function(c,b){var d=a(b.helper);if(d.css("opacity")){b.options._opacity=d.css("opacity")}d.css("opacity",b.options.opacity)},stop:function(c,b){if(b.options._opacity){a(b.helper).css("opacity",b.options._opacity)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(c,b){a(b.options.iframeFix===true?"iframe":b.options.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(c,b){a("div.DragDropIframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","scroll",{start:function(d,b){var f=b.options;var c=a(this).data("draggable");f.scrollSensitivity=f.scrollSensitivity||20;f.scrollSpeed=f.scrollSpeed||20;c.overflowY=function(e){do{if(/auto|scroll/.test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-y"))){return e}e=e.parent()}while(e[0].parentNode);return a(document)}(this);c.overflowX=function(e){do{if(/auto|scroll/.test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-x"))){return e}e=e.parent()}while(e[0].parentNode);return a(document)}(this);if(c.overflowY[0]!=document&&c.overflowY[0].tagName!="HTML"){c.overflowYOffset=c.overflowY.offset()}if(c.overflowX[0]!=document&&c.overflowX[0].tagName!="HTML"){c.overflowXOffset=c.overflowX.offset()}},drag:function(d,b){var f=b.options;var c=a(this).data("draggable");if(c.overflowY[0]!=document&&c.overflowY[0].tagName!="HTML"){if((c.overflowYOffset.top+c.overflowY[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.overflowY[0].scrollTop=c.overflowY[0].scrollTop+f.scrollSpeed}if(d.pageY-c.overflowYOffset.top<f.scrollSensitivity){c.overflowY[0].scrollTop=c.overflowY[0].scrollTop-f.scrollSpeed}}else{if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}if(c.overflowX[0]!=document&&c.overflowX[0].tagName!="HTML"){if((c.overflowXOffset.left+c.overflowX[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.overflowX[0].scrollLeft=c.overflowX[0].scrollLeft+f.scrollSpeed}if(d.pageX-c.overflowXOffset.left<f.scrollSensitivity){c.overflowX[0].scrollLeft=c.overflowX[0].scrollLeft-f.scrollSpeed}}else{if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}});a.ui.plugin.add("draggable","snap",{start:function(c,b){var d=a(this).data("draggable");d.snapElements=[];a(b.options.snap===true?".ui-draggable":b.options.snap).each(function(){var f=a(this);var e=f.offset();if(this!=d.element[0]){d.snapElements.push({item:this,width:f.outerWidth(),height:f.outerHeight(),top:e.top,left:e.left})}})},drag:function(s,h){var o=a(this).data("draggable");var q=h.options.snapTolerance||20;var u=h.absolutePosition.left,w=u+o.helperProportions.width,v=h.absolutePosition.top,x=v+o.helperProportions.height;for(var j=o.snapElements.length-1;j>=0;j--){var n=o.snapElements[j].left,c=n+o.snapElements[j].width,g=o.snapElements[j].top,p=g+o.snapElements[j].height;if(!((n-q<u&&u<c+q&&g-q<v&&v<p+q)||(n-q<u&&u<c+q&&g-q<x&&x<p+q)||(n-q<w&&w<c+q&&g-q<v&&v<p+q)||(n-q<w&&w<c+q&&g-q<x&&x<p+q))){continue}if(h.options.snapMode!="inner"){var f=Math.abs(g-x)<=20;var k=Math.abs(p-v)<=20;var m=Math.abs(n-w)<=20;var y=Math.abs(c-u)<=20;if(f){h.position.top=o.convertPositionTo("relative",{top:g-o.helperProportions.height,left:0}).top}if(k){h.position.top=o.convertPositionTo("relative",{top:p,left:0}).top}if(m){h.position.left=o.convertPositionTo("relative",{top:0,left:n-o.helperProportions.width}).left}if(y){h.position.left=o.convertPositionTo("relative",{top:0,left:c}).left}}if(h.options.snapMode!="outer"){var f=Math.abs(g-v)<=20;var k=Math.abs(p-x)<=20;var m=Math.abs(n-u)<=20;var y=Math.abs(c-w)<=20;if(f){h.position.top=o.convertPositionTo("relative",{top:g,left:0}).top}if(k){h.position.top=o.convertPositionTo("relative",{top:p-o.helperProportions.height,left:0}).top}if(m){h.position.left=o.convertPositionTo("relative",{top:0,left:n}).left}if(y){h.position.left=o.convertPositionTo("relative",{top:0,left:c-o.helperProportions.width}).left}}}}});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,b){var d=a(this).data("draggable");d.sortables=[];a(b.options.connectToSortable).each(function(){if(a.data(this,"sortable")){var e=a.data(this,"sortable");d.sortables.push({instance:e,shouldRevert:e.options.revert});e.refreshItems();e.propagate("activate",c,d)}})},stop:function(c,b){var d=a(this).data("draggable");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.element.triggerHandler("sortreceive",[c,a.extend(this.instance.ui(),{sender:d.element})],this.instance.options.receive);this.instance.options.helper=this.instance.options._helper}else{this.instance.propagate("deactivate",c,d)}})},drag:function(c,b){var f=a(this).data("draggable"),g=this;var d=function(h){var i=h.left,e=i+h.width,k=h.top,j=k+h.height;return(i<(this.positionAbs.left+this.offset.click.left)&&(this.positionAbs.left+this.offset.click.left)<e&&k<(this.positionAbs.top+this.offset.click.top)&&(this.positionAbs.top+this.offset.click.top)<j)};a.each(f.sortables,function(e){if(d.call(f,this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(g).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};c.target=this.instance.currentItem[0];this.instance.mouseCapture(c,true);this.instance.mouseStart(c,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f.propagate("toSortable",c)}if(this.instance.currentItem){this.instance.mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance.mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}f.propagate("fromSortable",c)}}})}});a.ui.plugin.add("draggable","stack",{start:function(d,b){var c=a.makeArray(a(b.options.stack.group)).sort(function(f,e){return(parseInt(a(f).css("zIndex"),10)||b.options.stack.min)-(parseInt(a(e).css("zIndex"),10)||b.options.stack.min)});a(c).each(function(e){this.style.zIndex=b.options.stack.min+e});this[0].style.zIndex=b.options.stack.min+c.length}})})(jQuery);(function(a){a.widget("ui.resizable",a.extend({},a.ui.mouse,{init:function(){var w=this,f=this.options;var j=this.element.css("position");this.originalElement=this.element;this.element.addClass("ui-resizable").css({position:/static/.test(j)?"relative":j});a.extend(f,{_aspectRatio:!!(f.aspectRatio),helper:f.helper||f.ghost||f.animate?f.helper||"proxy":null,knobHandles:f.knobHandles===true?"ui-resizable-knob-handle":f.knobHandles});var g="1px solid #DEDEDE";f.defaultTheme={"ui-resizable":{display:"block"},"ui-resizable-handle":{position:"absolute",background:"#F2F2F2",fontSize:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0px",borderTop:g},"ui-resizable-s":{cursor:"s-resize",height:"4px",left:"0px",right:"0px",borderBottom:g},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0px",bottom:"0px",borderRight:g},"ui-resizable-w":{cursor:"w-resize",width:"4px",top:"0px",bottom:"0px",borderLeft:g},"ui-resizable-se":{cursor:"se-resize",width:"4px",height:"4px",borderRight:g,borderBottom:g},"ui-resizable-sw":{cursor:"sw-resize",width:"4px",height:"4px",borderBottom:g,borderLeft:g},"ui-resizable-ne":{cursor:"ne-resize",width:"4px",height:"4px",borderRight:g,borderTop:g},"ui-resizable-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:g,borderTop:g}};f.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",border:"1px solid #808080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",left:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resizable-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-resize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bottom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-resizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor:"ne-resize",right:"0px",top:"0px"}};f._nodeName=this.element[0].nodeName;if(f._nodeName.match(/canvas|textarea|input|select|button|img/i)){var u=this.element;if(/relative/.test(u.css("position"))&&a.browser.opera){u.css({position:"relative",top:"auto",left:"auto"})}u.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:u.css("position"),width:u.outerWidth(),height:u.outerHeight(),top:u.css("top"),left:u.css("left")}));var h=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:h.css("marginLeft"),marginTop:h.css("marginTop"),marginRight:h.css("marginRight"),marginBottom:h.css("marginBottom")});h.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(a.browser.safari&&f.preventDefault){h.css("resize","none")}f.proportionallyResize=h.css({position:"static",zoom:1,display:"block"});this.element.css({margin:h.css("margin")});this._proportionallyResize()}if(!f.handles){f.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(f.handles.constructor==String){f.zIndex=f.zIndex||1000;if(f.handles=="all"){f.handles="n,e,s,w,se,sw,ne,nw"}var e=f.handles.split(",");f.handles={};var p={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var t=0;t<e.length;t++){var c=a.trim(e[t]),d=f.defaultTheme,r="ui-resizable-"+c,l=!a.ui.css(r)&&!f.knobHandles,b=a.ui.css("ui-resizable-knob-handle"),k=a.extend(d[r],d["ui-resizable-handle"]),v=a.extend(f.knobTheme[r],!b?f.knobTheme["ui-resizable-handle"]:{});var q=/sw|se|ne|nw/.test(c)?{zIndex:++f.zIndex}:{};var m=(l?p[c]:""),s=a(['<div class="ui-resizable-handle ',r,'" style="',m,p.handle,'"></div>'].join("")).css(q);f.handles[c]=".ui-resizable-"+c;this.element.append(s.css(l?k:{}).css(f.knobHandles?v:{}).addClass(f.knobHandles?"ui-resizable-knob-handle":"").addClass(f.knobHandles))}if(f.knobHandles){this.element.addClass("ui-resizable-knob").css(!a.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(y){y=y||this.element;for(var n in f.handles){if(f.handles[n].constructor==String){f.handles[n]=a(f.handles[n],this.element).show()}if(f.transparent){f.handles[n].css({opacity:0})}if(this.element.is(".ui-wrapper")&&f._nodeName.match(/textarea|input|select|button/i)){var z=a(f.handles[n],this.element),x=0;x=/sw|ne|nw|se|n|s/.test(n)?z.outerHeight():z.outerWidth();var o=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");if(!f.transparent){y.css(o,x)}this._proportionallyResize()}if(!a(f.handles[n]).length){continue}}};this._renderAxis(this.element);f._handles=a(".ui-resizable-handle",w.element);if(f.disableSelection){f._handles.each(function(n,o){a.ui.disableSelection(o)})}f._handles.mouseover(function(){if(!f.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}w.axis=f.axis=i&&i[1]?i[1]:"se"}});if(f.autoHide){f._handles.hide();a(w.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){a(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this.mouseInit()},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,originalPosition:this.originalPosition}},propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]);if(b!="resize"){this.element.triggerHandler(["resize",b].join(""),[c,this.ui()],this.options[b])}},destroy:function(){var b=this.element,c=b.children(".ui-resizable").get(0);this.mouseDestroy();var d=function(e){a(e).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};d(b);if(b.is(".ui-wrapper")&&c){b.parent().append(a(c).css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).end().remove();d(c)}},mouseStart:function(b){if(this.options.disabled){return false}var f=false;for(var m in this.options.handles){if(a(this.options.handles[m])[0]==b.target){f=true}}if(!f){return false}var l=this.options,n=this.element.position(),j=this.element,k=function(e){return parseInt(e,10)||0},d=a.browser.msie&&a.browser.version<7;l.resizing=true;l.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(j.is(".ui-draggable")||(/absolute/).test(j.css("position"))){var p=a.browser.msie&&!l.containment&&(/absolute/).test(j.css("position"))&&!(/relative/).test(j.parent().css("position"));var g=p?l.documentScroll.top:0,c=p?l.documentScroll.left:0;j.css({position:"absolute",top:(n.top+g),left:(n.left+c)})}if(a.browser.opera&&/relative/.test(j.css("position"))){j.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var h=k(this.helper.css("left")),q=k(this.helper.css("top"));if(l.containment){h+=a(l.containment).scrollLeft()||0;q+=a(l.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:h,top:q};this.size=l.helper||d?{width:j.outerWidth(),height:j.outerHeight()}:{width:j.width(),height:j.height()};this.originalSize=l.helper||d?{width:j.outerWidth(),height:j.outerHeight()}:{width:j.width(),height:j.height()};this.originalPosition={left:h,top:q};this.sizeDiff={width:j.outerWidth()-j.width(),height:j.outerHeight()-j.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};l.aspectRatio=(typeof l.aspectRatio=="number")?l.aspectRatio:((this.originalSize.height/this.originalSize.width)||1);if(l.preserveCursor){a("body").css("cursor",this.axis+"-resize")}this.propagate("start",b);return true},mouseDrag:function(b){var h=this.helper,i=this.options,g={},l=this,p=this.originalMousePosition,n=this.axis;var k=(b.pageX-p.left)||0,j=(b.pageY-p.top)||0;var c=this._change[n];if(!c){return false}var f=c.apply(this,[b,k,j]),d=a.browser.msie&&a.browser.version<7,m=this.sizeDiff;if(i._aspectRatio||b.shiftKey){f=this._updateRatio(f,b)}f=this._respectSize(f,b);this.propagate("resize",b);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!i.helper&&i.proportionallyResize){this._proportionallyResize()}this._updateCache(f);this.element.triggerHandler("resize",[b,this.ui()],this.options.resize);return false},mouseStop:function(b){this.options.resizing=false;var k=this.options,i=function(e){return parseInt(e,10)||0},l=this;if(k.helper){var d=k.proportionallyResize,c=d&&(/textarea/i).test(d.get(0).nodeName),j=c&&a.ui.hasScroll(d.get(0),"left")?0:l.sizeDiff.height,m=c?0:l.sizeDiff.width;var f={width:(l.size.width-m),height:(l.size.height-j)},h=(parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left))||null,g=(parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top))||null;if(!k.animate){this.element.css(a.extend(f,{top:g,left:h}))}if(k.helper&&!k.animate){this._proportionallyResize()}}if(k.preserveCursor){a("body").css("cursor","auto")}this.propagate("stop",b);if(k.helper){this.helper.remove()}return false},_updateCache:function(c){var b=this.options;this.offset=this.helper.offset();if(c.left){this.position.left=c.left}if(c.top){this.position.top=c.top}if(c.height){this.size.height=c.height}if(c.width){this.size.width=c.width}},_updateRatio:function(h,c){var d=this.options,f=this.position,b=this.size,g=this.axis;if(h.height){h.width=(b.height/d.aspectRatio)}else{if(h.width){h.height=(b.width*d.aspectRatio)}}if(g=="sw"){h.left=f.left+(b.width-h.width);h.top=null}if(g=="nw"){h.top=f.top+(b.height-h.height);h.left=f.left+(b.width-h.width)}return h},_respectSize:function(h,b){var k=this.helper,m=this.options,l=m._aspectRatio||b.shiftKey,r=this.axis,j=h.width&&m.maxWidth&&m.maxWidth<h.width,c=h.height&&m.maxHeight&&m.maxHeight<h.height,f=h.width&&m.minWidth&&m.minWidth>h.width,d=h.height&&m.minHeight&&m.minHeight>h.height;if(f){h.width=m.minWidth}if(d){h.height=m.minHeight}if(j){h.width=m.maxWidth}if(c){h.height=m.maxHeight}var i=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var g=/sw|nw|w/.test(r),q=/nw|ne|n/.test(r);if(f&&g){h.left=i-m.minWidth}if(j&&g){h.left=i-m.maxWidth}if(d&&q){h.top=n-m.minHeight}if(c&&q){h.top=n-m.maxHeight}var p=!h.width&&!h.height;if(p&&!h.left&&h.top){h.top=null}else{if(p&&!h.top&&h.left){h.left=null}}return h},_proportionallyResize:function(){var d=this.options;if(!d.proportionallyResize){return}var g=d.proportionallyResize,c=this.helper||this.element;if(!d.borderDif){var f=[g.css("borderTopWidth"),g.css("borderRightWidth"),g.css("borderBottomWidth"),g.css("borderLeftWidth")],e=[g.css("paddingTop"),g.css("paddingRight"),g.css("paddingBottom"),g.css("paddingLeft")];d.borderDif=a.map(f,function(k,h){var b=parseInt(k,10)||0,j=parseInt(e[h],10)||0;return b+j})}g.css({height:(c.height()-d.borderDif[0]-d.borderDif[2])+"px",width:(c.width()-d.borderDif[1]-d.borderDif[3])+"px"})},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset();if(c.helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var d=a.browser.msie&&a.browser.version<7,f=(d?1:0),e=(d?2:-1);this.helper.addClass(c.helper).css({width:b.outerWidth()+e,height:b.outerHeight()+e,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++c.zIndex});this.helper.appendTo("body");if(c.disableSelection){a.ui.disableSelection(this.helper.get(0))}}else{this.helper=b}},_change:{e:function(b,c,d){return{width:this.originalSize.width+c}},w:function(b,d,g){var c=this.options,h=this.originalSize,f=this.originalPosition;return{left:f.left+d,width:h.width-d}},n:function(b,d,g){var c=this.options,h=this.originalSize,f=this.originalPosition;return{top:f.top+g,height:h.height-g}},s:function(b,c,d){return{height:this.originalSize.height+d}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}}}));a.extend(a.ui.resizable,{defaults:{cancel:":input",distance:1,delay:0,preventDefault:true,transparent:false,minWidth:10,minHeight:10,aspectRatio:false,disableSelection:true,preserveCursor:true,autoHide:false,knobHandles:false}});a.ui.plugin.add("resizable","containment",{start:function(b,c){var h=c.options,j=a(this).data("resizable"),g=j.element;var m=h.containment,k=(m instanceof a)?m.get(0):(/parent/.test(m))?g.parent().get(0):m;if(!k){return}j.containerElement=a(k);if(/document/.test(m)||m==document){j.containerOffset={left:0,top:0};j.containerPosition={left:0,top:0};j.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{j.containerOffset=a(k).offset();j.containerPosition=a(k).position();j.containerSize={height:a(k).innerHeight(),width:a(k).innerWidth()};var f=j.containerOffset,d=j.containerSize.height,l=j.containerSize.width,i=(a.ui.hasScroll(k,"left")?k.scrollWidth:l),n=(a.ui.hasScroll(k)?k.scrollHeight:d);j.parentData={element:k,left:f.left,top:f.top,width:i,height:n}}},resize:function(b,d){var l=d.options,m=a(this).data("resizable"),j=m.containerSize,h=m.containerOffset,c=m.size,p=m.position,k=l._aspectRatio||b.shiftKey,i={top:0,left:0},n=m.containerElement;if(n[0]!=document&&/static/.test(n.css("position"))){i=m.containerPosition}if(p.left<(l.helper?h.left:i.left)){m.size.width=m.size.width+(l.helper?(m.position.left-h.left):(m.position.left-i.left));if(k){m.size.height=m.size.width*l.aspectRatio}m.position.left=l.helper?h.left:i.left}if(p.top<(l.helper?h.top:0)){m.size.height=m.size.height+(l.helper?(m.position.top-h.top):m.position.top);if(k){m.size.width=m.size.height/l.aspectRatio}m.position.top=l.helper?h.top:0}var f=(l.helper?m.offset.left-h.left:(m.position.left-i.left))+m.sizeDiff.width,g=(l.helper?m.offset.top-h.top:m.position.top)+m.sizeDiff.height;if(f+m.size.width>=m.parentData.width){m.size.width=m.parentData.width-f;if(k){m.size.height=m.size.width*l.aspectRatio}}if(g+m.size.height>=m.parentData.height){m.size.height=m.parentData.height-g;if(k){m.size.width=m.size.height/l.aspectRatio}}},stop:function(b,c){var j=c.options,l=a(this).data("resizable"),p=l.position,g=l.containerOffset,i=l.containerPosition,m=l.containerElement;var n=a(l.helper),d=n.offset(),f=n.innerWidth(),k=n.innerHeight();if(j.helper&&!j.animate&&/relative/.test(m.css("position"))){a(this).css({left:(d.left-g.left),top:(d.top-g.top),width:f,height:k})}if(j.helper&&!j.animate&&/static/.test(m.css("position"))){a(this).css({left:i.left+(d.left-g.left),top:i.top+(d.top-g.top),width:f,height:k})}}});a.ui.plugin.add("resizable","grid",{resize:function(b,d){var i=d.options,j=a(this).data("resizable"),c=j.size,m=j.originalSize,k=j.originalPosition,l=j.axis,h=i._aspectRatio||b.shiftKey;i.grid=typeof i.grid=="number"?[i.grid,i.grid]:i.grid;var g=Math.round((c.width-m.width)/(i.grid[0]||1))*(i.grid[0]||1),f=Math.round((c.height-m.height)/(i.grid[1]||1))*(i.grid[1]||1);if(/^(se|s|e)$/.test(l)){j.size.width=m.width+g;j.size.height=m.height+f}else{if(/^(ne)$/.test(l)){j.size.width=m.width+g;j.size.height=m.height+f;j.position.top=k.top-f}else{if(/^(sw)$/.test(l)){j.size.width=m.width+g;j.size.height=m.height+f;j.position.left=k.left-g}else{j.size.width=m.width+g;j.size.height=m.height+f;j.position.top=k.top-f;j.position.left=k.left-g}}}}});a.ui.plugin.add("resizable","animate",{stop:function(b,f){var k=f.options,l=a(this).data("resizable");var d=k.proportionallyResize,c=d&&(/textarea/i).test(d.get(0).nodeName),j=c&&a.ui.hasScroll(d.get(0),"left")?0:l.sizeDiff.height,m=c?0:l.sizeDiff.width;var i={width:(l.size.width-m),height:(l.size.height-j)},h=(parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left))||null,g=(parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top))||null;l.element.animate(a.extend(i,g&&h?{top:g,left:h}:{}),{duration:k.animateDuration||"slow",easing:k.animateEasing||"swing",step:function(){var e={width:parseInt(l.element.css("width"),10),height:parseInt(l.element.css("height"),10),top:parseInt(l.element.css("top"),10),left:parseInt(l.element.css("left"),10)};if(d){d.css({width:e.width,height:e.height})}l._updateCache(e);l.propagate("animate",b)}})}});a.ui.plugin.add("resizable","ghost",{start:function(c,b){var d=b.options,h=a(this).data("resizable"),f=d.proportionallyResize,g=h.size;if(!f){h.ghost=h.element.clone()}else{h.ghost=f.clone()}h.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 d.ghost=="string"?d.ghost:"");h.ghost.appendTo(h.helper)},resize:function(c,b){var d=b.options,g=a(this).data("resizable"),f=d.proportionallyResize;if(g.ghost){g.ghost.css({position:"relative",height:g.size.height,width:g.size.width})}},stop:function(c,b){var d=b.options,g=a(this).data("resizable"),f=d.proportionallyResize;if(g.ghost&&g.helper){g.helper.get(0).removeChild(g.ghost.get(0))}}});a.ui.plugin.add("resizable","alsoResize",{start:function(c,b){var d=b.options,f=a(this).data("resizable"),g=function(e){a(e).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(d.alsoResize)=="object"){if(d.alsoResize.length){d.alsoResize=d.alsoResize[0];g(d.alsoResize)}else{a.each(d.alsoResize,function(e,h){g(e)})}}else{g(d.alsoResize)}},resize:function(b,c){var g=c.options,f=a(this).data("resizable"),j=f.originalSize,i=f.originalPosition;var h={height:(f.size.height-j.height)||0,width:(f.size.width-j.width)||0,top:(f.position.top-i.top)||0,left:(f.position.left-i.left)||0},d=function(e,k){a(e).each(function(){var n=a(this).data("resizable-alsoresize"),l={},m=k&&k.length?k:["width","height","top","left"];a.each(m||["width","height","top","left"],function(o,p){var q=(n[p]||0)+(h[p]||0);if(q&&q>=0){l[p]=q||null}});a(this).css(l)})};if(typeof(g.alsoResize)=="object"){a.each(g.alsoResize,function(e,k){d(e,k)})}else{d(g.alsoResize)}},stop:function(c,b){a(this).removeData("resizable-alsoresize-start")}})})(jQuery);(function(b){function a(d,c){var e=b.browser.safari&&b.browser.version<522;if(d.contains&&!e){return d.contains(c)}if(d.compareDocumentPosition){return !!(d.compareDocumentPosition(c)&16)}while(c=c.parentNode){if(c==d){return true}}return false}b.widget("ui.sortable",b.extend({},b.ui.mouse,{init:function(){var c=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;if(!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.offset=this.element.offset();this.mouseInit()},plugins:{},ui:function(c){return{helper:(c||this)["helper"],placeholder:(c||this)["placeholder"]||b([]),position:(c||this)["position"],absolutePosition:(c||this)["positionAbs"],options:this.options,element:this.element,item:(c||this)["currentItem"],sender:c?c.element:null}},propagate:function(c,f,g,d){b.ui.plugin.call(this,c,[f,this.ui(g)]);if(!d){this.element.triggerHandler(c=="sort"?c:"sort"+c,[f,this.ui(g)],this.options[c])}},serialize:function(c){var e=(b.isFunction(this.options.items)?this.options.items.call(this.element):b(this.options.items,this.element)).not(".ui-sortable-helper");var d=[];c=c||{};e.each(function(){var f=(b(this).attr(c.attribute||"id")||"").match(c.expression||(/(.+)[-=_](.+)/));if(f){d.push((c.key||f[1])+"[]="+(c.key&&c.expression?f[1]:f[2]))}});return d.join("&")},toArray:function(e){var d=(b.isFunction(this.options.items)?this.options.items.call(this.element):b(this.options.items,this.element)).not(".ui-sortable-helper");var c=[];d.each(function(){c.push(b(this).attr(e||"id"))});return c},intersectsWith:function(k){var d=this.positionAbs.left,g=d+this.helperProportions.width,e=this.positionAbs.top,h=e+this.helperProportions.height;var i=k.left,c=i+k.width,f=k.top,j=f+k.height;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>k[this.floating?"width":"height"])){return(e+this.offset.click.top>f&&e+this.offset.click.top<j&&d+this.offset.click.left>i&&d+this.offset.click.left<c)}else{return(i<d+(this.helperProportions.width/2)&&g-(this.helperProportions.width/2)<c&&f<e+(this.helperProportions.height/2)&&h-(this.helperProportions.height/2)<j)}},intersectsWithEdge:function(k){var d=this.positionAbs.left,g=d+this.helperProportions.width,e=this.positionAbs.top,h=e+this.helperProportions.height;var i=k.left,c=i+k.width,f=k.top,j=f+k.height;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>k[this.floating?"width":"height"])){if(!(e+this.offset.click.top>f&&e+this.offset.click.top<j&&d+this.offset.click.left>i&&d+this.offset.click.left<c)){return false}if(this.floating){if(d+this.offset.click.left>i&&d+this.offset.click.left<i+k.width/2){return 2}if(d+this.offset.click.left>i+k.width/2&&d+this.offset.click.left<c){return 1}}else{if(e+this.offset.click.top>f&&e+this.offset.click.top<f+k.height/2){return 2}if(e+this.offset.click.top>f+k.height/2&&e+this.offset.click.top<j){return 1}}}else{if(!(i<d+(this.helperProportions.width/2)&&g-(this.helperProportions.width/2)<c&&f<e+(this.helperProportions.height/2)&&h-(this.helperProportions.height/2)<j)){return false}if(this.floating){if(g>i&&d<i){return 2}if(d<c&&g>c){return 1}}else{if(h>f&&e<f){return 1}if(e<j&&h>j){return 2}}}return false},refresh:function(){this.refreshItems();this.refreshPositions()},refreshItems:function(){this.items=[];this.containers=[this];var g=this.items;var e=this;var h=[[b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element),this]];if(this.options.connectWith){for(var d=this.options.connectWith.length-1;d>=0;d--){var c=b(this.options.connectWith[d]);for(var k=c.length-1;k>=0;k--){var f=b.data(c[k],"sortable");if(f&&!f.options.disabled){h.push([b.isFunction(f.options.items)?f.options.items.call(f.element):b(f.options.items,f.element),f]);this.containers.push(f)}}}}for(var d=h.length-1;d>=0;d--){h[d][0].each(function(){b.data(this,"sortable-item",h[d][1]);g.push({item:b(this),instance:h[d][1],width:0,height:0,left:0,top:0})})}},refreshPositions:function(e){if(this.offsetParent){var g=this.offsetParent.offset();this.offset.parent={top:g.top+this.offsetParentBorders.top,left:g.left+this.offsetParentBorders.left}}for(var c=this.items.length-1;c>=0;c--){if(this.items[c].instance!=this.currentContainer&&this.currentContainer&&this.items[c].item[0]!=this.currentItem[0]){continue}var f=this.options.toleranceElement?b(this.options.toleranceElement,this.items[c].item):this.items[c].item;if(!e){this.items[c].width=f[0].offsetWidth;this.items[c].height=f[0].offsetHeight}var d=f.offset();this.items[c].left=d.left;this.items[c].top=d.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var c=this.containers.length-1;c>=0;c--){var d=this.containers[c].element.offset();this.containers[c].containerCache.left=d.left;this.containers[c].containerCache.top=d.top;this.containers[c].containerCache.width=this.containers[c].element.outerWidth();this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}}},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this.mouseDestroy();for(var c=this.items.length-1;c>=0;c--){this.items[c].item.removeData("sortable-item")}},createPlaceholder:function(e){var d=e||this,f=d.options;if(f.placeholder.constructor==String){var c=f.placeholder;f.placeholder={element:function(){return b("<div></div>").addClass(c)[0]},update:function(g,h){h.css(g.offset()).css({width:g.outerWidth(),height:g.outerHeight()})}}}d.placeholder=b(f.placeholder.element.call(d.element,d.currentItem)).appendTo("body").css({position:"absolute"});f.placeholder.update.call(d.element,d.currentItem,d.placeholder)},contactContainers:function(f){for(var d=this.containers.length-1;d>=0;d--){if(this.intersectsWith(this.containers[d].containerCache)){if(!this.containers[d].containerCache.over){if(this.currentContainer!=this.containers[d]){var h=10000;var k=null;var g=this.positionAbs[this.containers[d].floating?"left":"top"];for(var l=this.items.length-1;l>=0;l--){if(!a(this.containers[d].element[0],this.items[l].item[0])){continue}var c=this.items[l][this.containers[d].floating?"left":"top"];if(Math.abs(c-g)<h){h=Math.abs(c-g);k=this.items[l]}}if(!k&&!this.options.dropOnEmpty){continue}if(this.placeholder){this.placeholder.remove()}if(this.containers[d].options.placeholder){this.containers[d].createPlaceholder(this)}else{this.placeholder=null}this.currentContainer=this.containers[d];k?this.rearrange(f,k,null,true):this.rearrange(f,null,this.containers[d].element,true);this.propagate("change",f);this.containers[d].propagate("change",f,this)}this.containers[d].propagate("over",f,this);this.containers[d].containerCache.over=1}}else{if(this.containers[d].containerCache.over){this.containers[d].propagate("out",f,this);this.containers[d].containerCache.over=0}}}},mouseCapture:function(c,i){if(this.options.disabled||this.options.type=="static"){return false}this.refreshItems();var f=null,h=this,g=b(c.target).parents().each(function(){if(b.data(this,"sortable-item")==h){f=b(this);return false}});if(b.data(c.target,"sortable-item")==h){f=b(c.target)}if(!f){return false}if(this.options.handle&&!i){var d=false;b(this.options.handle,f).find("*").andSelf().each(function(){if(this==c.target){d=true}});if(!d){return false}}this.currentItem=f;return true},mouseStart:function(c,d,j){var h=this.options;this.currentContainer=this;this.refreshPositions();this.helper=typeof h.helper=="function"?b(h.helper.apply(this.element[0],[c,this.currentItem])):this.currentItem.clone();if(!this.helper.parents("body").length){b(h.appendTo!="parent"?h.appendTo:this.currentItem[0].parentNode)[0].appendChild(this.helper[0])}this.helper.css({position:"absolute",clear:"both"}).addClass("ui-sortable-helper");this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)};this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:c.pageX-this.offset.left,top:c.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var k=this.offsetParent.offset();this.offsetParentBorders={top:(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};this.offset.parent={top:k.top+this.offsetParentBorders.top,left:k.left+this.offsetParentBorders.left};this.originalPosition=this.generatePosition(c);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(h.placeholder){this.createPlaceholder()}this.propagate("start",c);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(h.cursorAt){if(h.cursorAt.left!=undefined){this.offset.click.left=h.cursorAt.left}if(h.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-h.cursorAt.right}if(h.cursorAt.top!=undefined){this.offset.click.top=h.cursorAt.top}if(h.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-h.cursorAt.bottom}}if(h.containment){if(h.containment=="parent"){h.containment=this.helper[0].parentNode}if(h.containment=="document"||h.containment=="window"){this.containment=[0-this.offset.parent.left,0-this.offset.parent.top,b(h.containment=="document"?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(b(h.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(h.containment)){var l=b(h.containment)[0];var f=b(h.containment).offset();this.containment=[f.left+(parseInt(b(l).css("borderLeftWidth"),10)||0)-this.offset.parent.left,f.top+(parseInt(b(l).css("borderTopWidth"),10)||0)-this.offset.parent.top,f.left+Math.max(l.scrollWidth,l.offsetWidth)-(parseInt(b(l).css("borderLeftWidth"),10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"),10)||0),f.top+Math.max(l.scrollHeight,l.offsetHeight)-(parseInt(b(l).css("borderTopWidth"),10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.currentItem.css("marginBottom"),10)||0)]}}if(this.options.placeholder!="clone"){this.currentItem.css("visibility","hidden")}if(!j){for(var g=this.containers.length-1;g>=0;g--){this.containers[g].propagate("activate",c,this)}}if(b.ui.ddmanager){b.ui.ddmanager.current=this}if(b.ui.ddmanager&&!h.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,c)}this.dragging=true;this.mouseDrag(c);return true},convertPositionTo:function(c,e){if(!e){e=this.position}var f=c=="absolute"?1:-1;return{top:(e.top+this.offset.parent.top*f-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*f+this.margins.top*f),left:(e.left+this.offset.parent.left*f-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*f+this.margins.left*f)}},generatePosition:function(c){var d=this.options;var g={top:(c.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)),left:(c.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition){return g}if(this.containment){if(g.left<this.containment[0]){g.left=this.containment[0]}if(g.top<this.containment[1]){g.top=this.containment[1]}if(g.left>this.containment[2]){g.left=this.containment[2]}if(g.top>this.containment[3]){g.top=this.containment[3]}}if(d.grid){var f=this.originalPosition.top+Math.round((g.top-this.originalPosition.top)/d.grid[1])*d.grid[1];g.top=this.containment?(!(f<this.containment[1]||f>this.containment[3])?f:(!(f<this.containment[1])?f-d.grid[1]:f+d.grid[1])):f;var h=this.originalPosition.left+Math.round((g.left-this.originalPosition.left)/d.grid[0])*d.grid[0];g.left=this.containment?(!(h<this.containment[0]||h>this.containment[2])?h:(!(h<this.containment[0])?h-d.grid[0]:h+d.grid[0])):h}return g},mouseDrag:function(d){this.position=this.generatePosition(d);this.positionAbs=this.convertPositionTo("absolute");b.ui.plugin.call(this,"sort",[d,this.ui()]);this.positionAbs=this.convertPositionTo("absolute");this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";for(var c=this.items.length-1;c>=0;c--){var f=this.intersectsWithEdge(this.items[c]);if(!f){continue}if(this.items[c].item[0]!=this.currentItem[0]&&this.currentItem[f==1?"next":"prev"]()[0]!=this.items[c].item[0]&&!a(this.currentItem[0],this.items[c].item[0])&&(this.options.type=="semi-dynamic"?!a(this.element[0],this.items[c].item[0]):true)){this.direction=f==1?"down":"up";this.rearrange(d,this.items[c]);this.propagate("change",d);break}}this.contactContainers(d);if(b.ui.ddmanager){b.ui.ddmanager.drag(this,d)}this.element.triggerHandler("sort",[d,this.ui()],this.options.sort);return false},rearrange:function(f,d,j,c){j?j[0].appendChild(this.currentItem[0]):d.item[0].parentNode.insertBefore(this.currentItem[0],(this.direction=="down"?d.item[0]:d.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var h=this,g=this.counter;window.setTimeout(function(){if(g==h.counter){h.refreshPositions(!c)}},0);if(this.options.placeholder){this.options.placeholder.update.call(this.element,this.currentItem,this.placeholder)}},mouseStop:function(d,f){if(b.ui.ddmanager&&!this.options.dropBehaviour){b.ui.ddmanager.drop(this,d)}if(this.options.revert){var g=this;var c=g.currentItem.offset();if(g.placeholder){g.placeholder.animate({opacity:"hide"},(parseInt(this.options.revert,10)||500)-50)}b(this.helper).animate({left:c.left-this.offset.parent.left-g.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:c.top-this.offset.parent.top-g.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){g.clear(d)})}else{this.clear(d,f)}return false},clear:function(d,f){if(this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0]){this.propagate("update",d,null,f)}if(!a(this.element[0],this.currentItem[0])){this.propagate("remove",d,null,f);for(var c=this.containers.length-1;c>=0;c--){if(a(this.containers[c].element[0],this.currentItem[0])){this.containers[c].propagate("update",d,this,f);this.containers[c].propagate("receive",d,this,f)}}}for(var c=this.containers.length-1;c>=0;c--){this.containers[c].propagate("deactivate",d,this,f);if(this.containers[c].containerCache.over){this.containers[c].propagate("out",d,this);this.containers[c].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){this.propagate("stop",d,null,f);return false}b(this.currentItem).css("visibility","");if(this.placeholder){this.placeholder.remove()}this.helper.remove();this.helper=null;this.propagate("stop",d,null,f);return true}}));b.extend(b.ui.sortable,{getter:"serialize toArray",defaults:{helper:"clone",tolerance:"guess",distance:1,delay:0,scroll:true,scrollSensitivity:20,scrollSpeed:20,cancel:":input",items:"> *",zIndex:1000,dropOnEmpty:true,appendTo:"parent"}});b.ui.plugin.add("sortable","cursor",{start:function(d,c){var f=b("body");if(f.css("cursor")){c.options._cursor=f.css("cursor")}f.css("cursor",c.options.cursor)},stop:function(d,c){if(c.options._cursor){b("body").css("cursor",c.options._cursor)}}});b.ui.plugin.add("sortable","zIndex",{start:function(d,c){var f=c.helper;if(f.css("zIndex")){c.options._zIndex=f.css("zIndex")}f.css("zIndex",c.options.zIndex)},stop:function(d,c){if(c.options._zIndex){b(c.helper).css("zIndex",c.options._zIndex)}}});b.ui.plugin.add("sortable","opacity",{start:function(d,c){var f=c.helper;if(f.css("opacity")){c.options._opacity=f.css("opacity")}f.css("opacity",c.options.opacity)},stop:function(d,c){if(c.options._opacity){b(c.helper).css("opacity",c.options._opacity)}}});b.ui.plugin.add("sortable","scroll",{start:function(f,c){var g=c.options;var d=b(this).data("sortable");d.overflowY=function(e){do{if(/auto|scroll/.test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-y"))){return e}e=e.parent()}while(e[0].parentNode);return b(document)}(d.currentItem);d.overflowX=function(e){do{if(/auto|scroll/.test(e.css("overflow"))||(/auto|scroll/).test(e.css("overflow-x"))){return e}e=e.parent()}while(e[0].parentNode);return b(document)}(d.currentItem);if(d.overflowY[0]!=document&&d.overflowY[0].tagName!="HTML"){d.overflowYOffset=d.overflowY.offset()}if(d.overflowX[0]!=document&&d.overflowX[0].tagName!="HTML"){d.overflowXOffset=d.overflowX.offset()}},sort:function(f,c){var g=c.options;var d=b(this).data("sortable");if(d.overflowY[0]!=document&&d.overflowY[0].tagName!="HTML"){if((d.overflowYOffset.top+d.overflowY[0].offsetHeight)-f.pageY<g.scrollSensitivity){d.overflowY[0].scrollTop=d.overflowY[0].scrollTop+g.scrollSpeed}if(f.pageY-d.overflowYOffset.top<g.scrollSensitivity){d.overflowY[0].scrollTop=d.overflowY[0].scrollTop-g.scrollSpeed}}else{if(f.pageY-b(document).scrollTop()<g.scrollSensitivity){b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed)}if(b(window).height()-(f.pageY-b(document).scrollTop())<g.scrollSensitivity){b(document).scrollTop(b(document).scrollTop()+g.scrollSpeed)}}if(d.overflowX[0]!=document&&d.overflowX[0].tagName!="HTML"){if((d.overflowXOffset.left+d.overflowX[0].offsetWidth)-f.pageX<g.scrollSensitivity){d.overflowX[0].scrollLeft=d.overflowX[0].scrollLeft+g.scrollSpeed}if(f.pageX-d.overflowXOffset.left<g.scrollSensitivity){d.overflowX[0].scrollLeft=d.overflowX[0].scrollLeft-g.scrollSpeed}}else{if(f.pageX-b(document).scrollLeft()<g.scrollSensitivity){b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed)}if(b(window).width()-(f.pageX-b(document).scrollLeft())<g.scrollSensitivity){b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}}}});b.ui.plugin.add("sortable","axis",{sort:function(f,c){var d=b(this).data("sortable");if(c.options.axis=="y"){d.position.left=d.originalPosition.left}if(c.options.axis=="x"){d.position.top=d.originalPosition.top}}})})(jQuery);(function($){var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._promptClass="ui-datepicker-prompt";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"&#x3c;Prev",prevStatus:"Show the previous month",nextText:"Next&#x3e;",nextStatus:"Show the next month",currentText:"Today",currentStatus:"Show the current month",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"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:1,initStatus:"Select a date",isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:true,changeYear:true,yearRange:"-10:+10",changeFirstDay:true,highlightWeek:false,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,stepMonths:1,rangeSelect:false,rangeSeparator:" - ",altField:"",altFormat:""};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" style="display: none;"></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(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"+new Date().getTime()}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){return{id:target[0].id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="ui-datepicker-inline"></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 input=$(target);if(input.hasClass(this.markerClassName)){return}input.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)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+new Date().getTime();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 nodeName=target.nodeName.toLowerCase();var $target=$(target);$.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){target.disabled=false;$(target).siblings("button."+this._triggerClass).each(function(){this.disabled=false}).end().siblings("img."+this._triggerClass).css({opacity:"1.0",cursor:""});this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){target.disabled=true;$(target).siblings("button."+this._triggerClass).each(function(){this.disabled=true}).end().siblings("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"});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},_changeDatepicker:function(target,name,value){var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst=$.data(target,PROP_NAME)){extendRemove(inst.settings,settings);this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=$.data(target,PROP_NAME);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst)}},_getDateDatepicker:function(target){var inst=$.data(target,PROP_NAME);if(inst){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(e){var inst=$.data(e.target,PROP_NAME);var handled=true;if($.datepicker._datepickerShowing){switch(e.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:$.datepicker._selectDay(e.target,inst.selectedMonth,inst.selectedYear,$("td.ui-datepicker-days-cell-over",inst.dpDiv)[0]);return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(e.target,(e.ctrlKey?-1:-$.datepicker._get(inst,"stepMonths")),(e.ctrlKey?"Y":"M"));break;case 34:$.datepicker._adjustDate(e.target,(e.ctrlKey?+1:+$.datepicker._get(inst,"stepMonths")),(e.ctrlKey?"Y":"M"));break;case 35:if(e.ctrlKey){$.datepicker._clearDate(e.target)}break;case 36:if(e.ctrlKey){$.datepicker._gotoToday(e.target)}break;case 37:if(e.ctrlKey){$.datepicker._adjustDate(e.target,-1,"D")}break;case 38:if(e.ctrlKey){$.datepicker._adjustDate(e.target,-7,"D")}break;case 39:if(e.ctrlKey){$.datepicker._adjustDate(e.target,+1,"D")}break;case 40:if(e.ctrlKey){$.datepicker._adjustDate(e.target,+7,"D")}break;default:handled=false}}else{if(e.keyCode==36&&e.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){e.preventDefault();e.stopPropagation()}},_doKeyPress:function(e){var inst=$.data(e.target,PROP_NAME);var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.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=$.data(input,PROP_NAME);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);inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1]*$(".ui-datepicker",inst.dpDiv[0])[0].offsetWidth);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)<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};inst.dpDiv.empty().append(this._generateDatepicker(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height});var numMonths=this._getNumberOfMonths(inst);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.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var pos=inst.input?this._findPos(inst.input[0]):null;var browserWidth=window.innerWidth||document.documentElement.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;if(this._get(inst,"isRTL")||(offset.left+inst.dpDiv.width()-scrollX)>browserWidth){offset.left=Math.max((isFixed?0:scrollX),pos[0]+(inst.input?inst.input.width():0)-(isFixed?scrollX:0)-inst.dpDiv.width()-(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0))}else{offset.left-=(isFixed?scrollX:0)}if((offset.top+inst.dpDiv.height()-scrollY)>browserHeight){offset.top=Math.max((isFixed?0:scrollY),pos[1]-(isFixed?scrollY:0)-(this._inDialog?0:inst.dpDiv.height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0))}else{offset.top-=(isFixed?scrollY: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){return}var rangeSelect=this._get(inst,"rangeSelect");if(rangeSelect&&this._stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}this._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),[this._getDate(inst),inst])}this._datepickerShowing=false;this._lastInput=null;inst.settings.prompt=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");$("."+this._promptClass,inst.dpDiv).remove()},_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=$.data(target[0],PROP_NAME);this._adjustInstDate(inst,offset,period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);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._adjustDate(target);this._notifyChange(inst)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=$.data(target[0],PROP_NAME);inst._selectingMonthYear=false;inst[period=="M"?"drawMonth":"drawYear"]=select.options[select.selectedIndex].value-0;this._adjustDate(target);this._notifyChange(inst)},_clickMonthYear:function(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_changeFirstDay:function(id,day){var target=$(id);var inst=$.data(target[0],PROP_NAME);inst.settings.firstDay=day;this._updateDatepicker(inst)},_selectDay:function(id,month,year,td){if($(td).hasClass(this._unselectableClass)){return}var target=$(id);var inst=$.data(target[0],PROP_NAME);var rangeSelect=this._get(inst,"rangeSelect");if(rangeSelect){this._stayOpen=!this._stayOpen;if(this._stayOpen){$(".ui-datepicker td").removeClass(this._currentClass);$(td).addClass(this._currentClass)}}inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(this._stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}else{if(rangeSelect){inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear}}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(this._stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}else{if(rangeSelect){inst.selectedDay=inst.currentDay=inst.rangeStart.getDate();inst.selectedMonth=inst.currentMonth=inst.rangeStart.getMonth();inst.selectedYear=inst.currentYear=inst.rangeStart.getFullYear();inst.rangeStart=null;if(inst.inline){this._updateDatepicker(inst)}}}},_clearDate:function(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);if(this._get(inst,"mandatory")){return}this._stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=$.data(target[0],PROP_NAME);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(this._get(inst,"rangeSelect")&&dateStr){dateStr=(inst.rangeStart?this._formatDate(inst,inst.rangeStart):dateStr)+this._get(inst,"rangeSeparator")+dateStr}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(!this._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");var date=this._getDate(inst);dateStr=(isArray(date)?(!date[0]&&!date[1]?"":this.formatDate(altFormat,date[0],this._getFormatConfig(inst))+this._get(inst,"rangeSeparator")+this.formatDate(altFormat,date[1]||date[0],this._getFormatConfig(inst))):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){checkDate.setDate(checkDate.getDate()+3);return $.datepicker.iso8601Week(checkDate)}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},dateStatus:function(date,inst){return $.datepicker.formatDate($.datepicker._get(inst,"dateStatus"),date,$.datepicker._getFormatConfig(inst))},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 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:2));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+(value.charAt(iValue++)-0);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"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<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}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){return(lookAhead(match)&&value<10?"0":"")+value};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());break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"m":output+=formatNumber("m",date.getMonth()+1);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().split(this._get(inst,"rangeSeparator")):null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);if(dates.length>0){var settings=this._getFormatConfig(inst);if(dates.length>1){date=this.parseDate(dateFormat,dates[1],settings)||defaultDate;inst.endDay=date.getDate();inst.endMonth=date.getMonth();inst.endYear=date.getFullYear()}try{date=this.parseDate(dateFormat,dates[0],settings)||defaultDate}catch(e){this.log(e);date=defaultDate}}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates[0]?date.getDate():0);inst.currentMonth=(dates[0]?date.getMonth():0);inst.currentYear=(dates[0]?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+=(matches[1]-0);break;case"w":case"W":day+=(matches[1]*7);break;case"m":case"M":month+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=(matches[1]-0);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);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(this._get(inst,"rangeSelect")){if(endDate){endDate=this._determineDate(endDate,null);inst.endDay=endDate.getDate();inst.endMonth=endDate.getMonth();inst.endYear=endDate.getFullYear()}else{inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear}}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst)+(!this._get(inst,"rangeSelect")?"":this._get(inst,"rangeSeparator")+this._formatDate(inst,inst.endDay,inst.endMonth,inst.endYear)))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));if(this._get(inst,"rangeSelect")){return[inst.rangeStart||startDate,(!inst.endYear?inst.rangeStart||startDate:this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)))]}else{return startDate}},_generateDatepicker:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var showStatus=this._get(inst,"showStatus");var isRTL=this._get(inst,"isRTL");var clear=(this._get(inst,"mandatory")?"":'<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(\'#'+inst.id+"');\""+(showStatus?this._addStatus(inst,this._get(inst,"clearStatus")||"&#xa0;"):"")+">"+this._get(inst,"clearText")+"</a></div>");var controls='<div class="ui-datepicker-control">'+(isRTL?"":clear)+'<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"'+(showStatus?this._addStatus(inst,this._get(inst,"closeStatus")||"&#xa0;"):"")+">"+this._get(inst,"closeText")+"</a></div>"+(isRTL?clear:"")+"</div>";var prompt=this._get(inst,"prompt");var closeAtTop=this._get(inst,"closeAtTop");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var stepMonths=this._get(inst,"stepMonths");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;var drawYear=inst.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--}}}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='<div class="ui-datepicker-prev">'+(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?"<a onclick=\"jQuery.datepicker._adjustDate('#"+inst.id+"', -"+stepMonths+", 'M');\""+(showStatus?this._addStatus(inst,this._get(inst,"prevStatus")||"&#xa0;"):"")+">"+prevText+"</a>":(hideIfNoPrevNext?"":"<label>"+prevText+"</label>"))+"</div>";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='<div class="ui-datepicker-next">'+(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?"<a onclick=\"jQuery.datepicker._adjustDate('#"+inst.id+"', +"+stepMonths+", 'M');\""+(showStatus?this._addStatus(inst,this._get(inst,"nextStatus")||"&#xa0;"):"")+">"+nextText+"</a>":(hideIfNoPrevNext?"":"<label>"+nextText+"</label>"))+"</div>";var currentText=this._get(inst,"currentText");currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,today,this._getFormatConfig(inst)));var html=(prompt?'<div class="'+this._promptClass+'">'+prompt+"</div>":"")+(closeAtTop&&!inst.inline?controls:"")+'<div class="ui-datepicker-links">'+(isRTL?next:prev)+(this._isInRange(inst,(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today))?'<div class="ui-datepicker-current"><a onclick="jQuery.datepicker._gotoToday(\'#'+inst.id+"');\""+(showStatus?this._addStatus(inst,this._get(inst,"currentStatus")||"&#xa0;"):"")+">"+currentText+"</a></div>":"")+(isRTL?prev:next)+"</div>";var firstDay=this._get(inst,"firstDay");var changeFirstDay=this._get(inst,"changeFirstDay");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 beforeShowDay=this._get(inst,"beforeShowDay");var highlightWeek=this._get(inst,"highlightWeek");var showOtherMonths=this._get(inst,"showOtherMonths");var showWeeks=this._get(inst,"showWeeks");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var status=(showStatus?this._get(inst,"dayStatus")||"&#xa0;":"");var dateStatus=this._get(inst,"statusForDate")||this.dateStatus;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;for(var row=0;row<numMonths[0];row++){for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));html+='<div class="ui-datepicker-one-month'+(col==0?" ui-datepicker-new-row":"")+'">'+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,showStatus,monthNames)+'<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead><tr class="ui-datepicker-title-row">'+(showWeeks?"<td>"+this._get(inst,"weekHeader")+"</td>":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;var dayStatus=(status.indexOf("DD")>-1?status.replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+="<td"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end-cell"':"")+">"+(!changeFirstDay?"<span":"<a onclick=\"jQuery.datepicker._changeFirstDay('#"+inst.id+"', "+day+');"')+(showStatus?this._addStatus(inst,dayStatus):"")+' title="'+dayNames[day]+'">'+dayNamesMin[day]+(changeFirstDay?"</a>":"</span>")+"</td>"}html+="</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++){html+='<tr class="ui-datepicker-days-row">'+(showWeeks?'<td class="ui-datepicker-week-col">'+calculateWeek(printDate)+"</td>":"");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);html+='<td class="ui-datepicker-days-cell'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end-cell":"")+(otherMonth?" ui-datepicker-otherMonth":"")+(printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth?" ui-datepicker-days-cell-over":"")+(unselectable?" "+this._unselectableClass:"")+(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?(highlightWeek?" onmouseover=\"jQuery(this).parent().addClass('ui-datepicker-week-over');\" onmouseout=\"jQuery(this).parent().removeClass('ui-datepicker-week-over');\"":""):" onmouseover=\"jQuery(this).addClass('ui-datepicker-days-cell-over')"+(highlightWeek?".parent().addClass('ui-datepicker-week-over')":"")+";"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.id+"').html('"+(dateStatus.apply((inst.input?inst.input[0]:null),[printDate,inst])||"&#xa0;")+"');")+"\" onmouseout=\"jQuery(this).removeClass('ui-datepicker-days-cell-over')"+(highlightWeek?".parent().removeClass('ui-datepicker-week-over')":"")+";"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.id+"').html('&#xa0;');")+'" onclick="jQuery.datepicker._selectDay(\'#'+inst.id+"',"+drawMonth+","+drawYear+', this);"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?printDate.getDate():"<a>"+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}html+="</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}html+="</tbody></table></div>"}}html+=(showStatus?'<div style="clear: both;"></div><div id="ui-datepicker-status-'+inst.id+'" class="ui-datepicker-status">'+(this._get(inst,"initStatus")||"&#xa0;")+"</div>":"")+(!closeAtTop&&!inst.inline?controls:"")+'<div style="clear: both;"></div>'+($.browser.msie&&parseInt($.browser.version)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>':"");return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,showStatus,monthNames){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var html='<div class="ui-datepicker-header">';if(secondary||!this._get(inst,"changeMonth")){html+=monthNames[drawMonth]+"&#xa0;"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);html+='<select class="ui-datepicker-new-month" onchange="jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"jQuery.datepicker._clickMonthYear('#"+inst.id+"');\""+(showStatus?this._addStatus(inst,this._get(inst,"monthStatus")||"&#xa0;"):"")+">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){html+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNames[month]+"</option>"}}html+="</select>"}if(secondary||!this._get(inst,"changeYear")){html+=drawYear}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=endYear=new Date().getFullYear();year+=parseInt(years[0],10);endYear+=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-new-year" onchange="jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"jQuery.datepicker._clickMonthYear('#"+inst.id+"');\""+(showStatus?this._addStatus(inst,this._get(inst,"yearStatus")||"&#xa0;"):"")+">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}html+="</div>";return html},_addStatus:function(inst,text){return" onmouseover=\"jQuery('#ui-datepicker-status-"+inst.id+"').html('"+text+"');\" onmouseout=\"jQuery('#ui-datepicker-status-"+inst.id+"').html('&#xa0;');\""},_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),[new Date(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){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();$(document).ready(function(){$(document.body).append($.datepicker.dpDiv).mousedown($.datepicker._checkExternalClick)})})(jQuery);jQuery(function(a){a.datepicker.regional.sv={clearText:"Rensa",clearStatus:"",closeText:"St�ng",closeStatus:"",prevText:"&laquo;F�rra",prevStatus:"",nextText:"N�sta&raquo;",nextStatus:"",currentText:"Idag",currentStatus:"",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Ve",weekStatus:"",dayNamesShort:["S�n","M�n","Tis","Ons","Tor","Fre","L�r"],dayNames:["S�ndag","M�ndag","Tisdag","Onsdag","Torsdag","Fredag","L�rdag"],dayNamesMin:["S�","M�","Ti","On","To","Fr","L�"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"",isRTL:false};a.datepicker.setDefaults(a.datepicker.regional.sv)});
