(function(){function d(a,e){e.src?b.ajax({url:e.src,async:false,dataType:"script"}):b.globalEval(e.text||e.textContent||e.innerHTML||"");e.parentNode&&e.parentNode.removeChild(e)}function i(a,e){return a[0]&&parseInt(b.curCSS(a[0],e,true),10)||0}function l(){return false}function c(){return true}function h(a){var e=RegExp("(^|\\.)"+a.type+"(\\.|$)"),f=true,k=[];b.each(b.data(this,"events").live||[],function(p,s){if(e.test(s.type)){var y=b(a.target).closest(s.data)[0];y&&k.push({elem:y,fn:s})}});k.sort(function(p,
s){return b.data(p.elem,"closest")-b.data(s.elem,"closest")});b.each(k,function(){if(this.fn.call(this.elem,a,this.fn.data)===false)return f=false});return f}function m(a,e){return["live",a,e.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function r(){if(!Y){Y=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);b.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);b.ready()}});document.documentElement.doScroll&&g==g.top&&function(){if(!b.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}b.ready()}}()}b.event.add(g,"load",b.ready)}}function A(a,e){var f={};b.each(V.concat.apply([],V.slice(0,e)),function(){f[this]=a});return f}var g=this,n=g.jQuery,q=g.$,b=g.jQuery=g.$=function(a,e){return new b.fn.init(a,
e)},v=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,C=/^.[^:#\[\.,]*$/;b.fn=b.prototype={init:function(a,e){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var f=v.exec(a);if(f&&(f[1]||!e))if(f[1])a=b.clean([f[1]],e);else{var k=document.getElementById(f[3]);if(k&&k.id!=f[3])return b().find(a);f=b(k||[]);f.context=document;f.selector=a;return f}else return b(e).find(a)}else if(b.isFunction(a))return b(document).ready(a);if(a.selector&&a.context){this.selector=
a.selector;this.context=a.context}return this.setArray(b.isArray(a)?a:b.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===void 0?Array.prototype.slice.call(this):this[a]},pushStack:function(a,e,f){a=b(a);a.prevObject=this;a.context=this.context;if(e==="find")a.selector=this.selector+(this.selector?" ":"")+f;else if(e)a.selector=this.selector+"."+e+"("+f+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},
each:function(a,e){return b.each(this,a,e)},index:function(a){return b.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,e,f){var k=a;if(typeof a==="string")if(e===void 0)return this[0]&&b[f||"attr"](this[0],a);else{k={};k[a]=e}return this.each(function(p){for(a in k)b.attr(f?this.style:this,a,b.prop(this,k[a],f,p,a))})},css:function(a,e){if((a=="width"||a=="height")&&parseFloat(e)<0)e=void 0;return this.attr(a,e,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(a));var e="";b.each(a||this,function(){b.each(this.childNodes,function(){if(this.nodeType!=8)e+=this.nodeType!=1?this.nodeValue:b.fn.text([this])})});return e},wrapAll:function(a){if(this[0]){a=b(a,this[0].ownerDocument).clone();this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var e=this;e.firstChild;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){b(this).contents().wrapAll(a)})},
wrap:function(a){return this.each(function(){b(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){this.nodeType==1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){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||b([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var e=this.pushStack([],"find",a);e.length=0;b.find(a,this[0],e);return e}else return this.pushStack(b.unique(b.map(this,function(f){return b.find(a,f)})),"find",a)},clone:function(a){var e=this.map(function(){if(!b.support.noCloneEvent&&!b.isXMLDoc(this)){var p=this.outerHTML;if(!p){p=this.ownerDocument.createElement("div");p.appendChild(this.cloneNode(true));
p=p.innerHTML}return b.clean([p.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(a===true){var f=this.find("*").andSelf(),k=0;e.find("*").andSelf().each(function(){if(this.nodeName===f[k].nodeName){var p=b.data(f[k],"events"),s;for(s in p)for(var y in p[s])b.event.add(this,s,p[s][y],p[s][y].data);k++}})}return e},filter:function(a){return this.pushStack(b.isFunction(a)&&b.grep(this,function(e,f){return a.call(e,f)})||b.multiFilter(a,b.grep(this,
function(e){return e.nodeType===1})),"filter",a)},closest:function(a){var e=b.expr.match.POS.test(a)?b(a):null,f=0;return this.map(function(){for(var k=this;k&&k.ownerDocument;){if(e?e.index(k)>-1:b(k).is(a)){b.data(k,"closest",f);return k}k=k.parentNode;f++}})},not:function(a){if(typeof a==="string")if(C.test(a))return this.pushStack(b.multiFilter(a,this,true),"not",a);else a=b.multiFilter(a,this);var e=a.length&&a[a.length-1]!==void 0&&!a.nodeType;return this.filter(function(){return e?b.inArray(this,
a)<0:this!=a})},add:function(a){return this.pushStack(b.unique(b.merge(this.get(),typeof a==="string"?b(a):b.makeArray(a))))},is:function(a){return!!a&&b.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(a){if(a===void 0){var e=this[0];if(e){if(b.nodeName(e,"option"))return(e.attributes.value||{}).specified?e.value:e.text;if(b.nodeName(e,"select")){var f=e.selectedIndex,k=[],p=e.options;e=e.type=="select-one";if(f<0)return null;var s=e?f:0;for(f=e?f+1:p.length;s<
f;s++){var y=p[s];if(y.selected){a=b(y).val();if(e)return a;k.push(a)}}return k}return(e.value||"").replace(/\r/g,"")}}else{if(typeof a==="number")a+="";return this.each(function(){if(this.nodeType==1)if(b.isArray(a)&&/radio|checkbox/.test(this.type))this.checked=b.inArray(this.value,a)>=0||b.inArray(this.name,a)>=0;else if(b.nodeName(this,"select")){var z=b.makeArray(a);b("option",this).each(function(){this.selected=b.inArray(this.value,z)>=0||b.inArray(this.text,z)>=0});if(!z.length)this.selectedIndex=
-1}else this.value=a})}},html:function(a){return a===void 0?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(b.map(this,function(e,f){return a.call(e,f,e)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(a,e,f){if(this[0]){var k=(this[0].ownerDocument||this[0]).createDocumentFragment();a=b.clean(a,this[0].ownerDocument||this[0],k);var p=k.firstChild;if(p)for(var s=0,y=this.length;s<y;s++)f.call(e&&b.nodeName(this[s],"table")&&b.nodeName(p,"tr")?this[s].getElementsByTagName("tbody")[0]||this[s].appendChild(this[s].ownerDocument.createElement("tbody")):this[s],this.length>1||s>0?k.cloneNode(true):k);a&&b.each(a,d)}return this}};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a=
arguments[0]||{},e=1,f=arguments.length,k=false,p;if(typeof a==="boolean"){k=a;a=arguments[1]||{};e=2}if(typeof a!=="object"&&!b.isFunction(a))a={};if(f==e){a=this;--e}for(;e<f;e++)if((p=arguments[e])!=null)for(var s in p){var y=a[s],z=p[s];if(a!==z)if(k&&z&&typeof z==="object"&&!z.nodeType)a[s]=b.extend(k,y||(z.length!=null?[]:{}),z);else if(z!==void 0)a[s]=z}return a};var B=/z-?index|font-?weight|opacity|zoom|line-?height/i,E=document.defaultView||{},H=Object.prototype.toString;b.extend({noConflict:function(a){g.$=
q;if(a)g.jQuery=n;return b},isFunction:function(a){return H.call(a)==="[object Function]"},isArray:function(a){return H.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&b.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var e=document.getElementsByTagName("head")[0]||document.documentElement,f=document.createElement("script");f.type="text/javascript";if(b.support.scriptEval)f.appendChild(document.createTextNode(a));
else f.text=a;e.insertBefore(f,e.firstChild);e.removeChild(f)}},nodeName:function(a,e){return a.nodeName&&a.nodeName.toUpperCase()==e.toUpperCase()},each:function(a,e,f){var k,p=0,s=a.length;if(f)if(s===void 0)for(k in a){if(e.apply(a[k],f)===false)break}else for(;p<s;){if(e.apply(a[p++],f)===false)break}else if(s===void 0)for(k in a){if(e.call(a[k],k,a[k])===false)break}else for(f=a[0];p<s&&e.call(f,p,f)!==false;f=a[++p]);return a},prop:function(a,e,f,k,p){if(b.isFunction(e))e=e.call(a,k);return typeof e===
"number"&&f=="curCSS"&&!B.test(p)?e+"px":e},className:{add:function(a,e){b.each((e||"").split(/\s+/),function(f,k){if(a.nodeType==1&&!b.className.has(a.className,k))a.className+=(a.className?" ":"")+k})},remove:function(a,e){if(a.nodeType==1)a.className=e!==void 0?b.grep(a.className.split(/\s+/),function(f){return!b.className.has(e,f)}).join(" "):""},has:function(a,e){return a&&b.inArray(e,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,e,f){var k={},p;for(p in e){k[p]=a.style[p];a.style[p]=
e[p]}f.call(a);for(p in e)a.style[p]=k[p]},css:function(a,e,f,k){if(e=="width"||e=="height"){var p;f={position:"absolute",visibility:"hidden",display:"block"};var s=e=="width"?["Left","Right"]:["Top","Bottom"],y=function(){p=e=="width"?a.offsetWidth:a.offsetHeight;k!=="border"&&b.each(s,function(){k||(p-=parseFloat(b.curCSS(a,"padding"+this,true))||0);if(k==="margin")p+=parseFloat(b.curCSS(a,"margin"+this,true))||0;else p-=parseFloat(b.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?
y():b.swap(a,f,y);return Math.max(0,Math.round(p))}return b.curCSS(a,e,f)},curCSS:function(a,e,f){var k,p=a.style;if(e=="opacity"&&!b.support.opacity){k=b.attr(p,"opacity");return k==""?"1":k}if(e.match(/float/i))e=R;if(!f&&p&&p[e])k=p[e];else if(E.getComputedStyle){if(e.match(/float/i))e="float";e=e.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=E.getComputedStyle(a,null))k=a.getPropertyValue(e);if(e=="opacity"&&k=="")k="1"}else if(a.currentStyle){k=e.replace(/\-(\w)/g,function(s,y){return y.toUpperCase()});
k=a.currentStyle[e]||a.currentStyle[k];if(!/^\d+(px)?$/i.test(k)&&/^\d/.test(k)){e=p.left;f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;p.left=k||0;k=p.pixelLeft+"px";p.left=e;a.runtimeStyle.left=f}}return k},clean:function(a,e,f){e=e||document;if(typeof e.createElement==="undefined")e=e.ownerDocument||e[0]&&e[0].ownerDocument||document;if(!f&&a.length===1&&typeof a[0]==="string"){var k=/^<(\w+)\s*\/?>$/.exec(a[0]);if(k)return[e.createElement(k[1])]}var p=[];k=[];var s=e.createElement("div");
b.each(a,function(y,z){if(typeof z==="number")z+="";if(z){if(typeof z==="string"){z=z.replace(/(<(\w+)[^>]*?)\/>/g,function(P,T,I){return I.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?P:T+"></"+I+">"});var K=z.replace(/^\s+/,"").substring(0,10).toLowerCase(),L=!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>"]||!b.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(s.innerHTML=L[1]+z+L[2];L[0]--;)s=s.lastChild;if(!b.support.tbody){var N=/<tbody/i.test(z);K=!K.indexOf("<table")&&!N?s.firstChild&&s.firstChild.childNodes:L[1]=="<table>"&&!N?s.childNodes:[];for(L=K.length-1;L>=0;--L)b.nodeName(K[L],"tbody")&&
!K[L].childNodes.length&&K[L].parentNode.removeChild(K[L])}!b.support.leadingWhitespace&&/^\s/.test(z)&&s.insertBefore(e.createTextNode(z.match(/^\s*/)[0]),s.firstChild);z=b.makeArray(s.childNodes)}if(z.nodeType)p.push(z);else p=b.merge(p,z)}});if(f){for(a=0;p[a];a++)if(b.nodeName(p[a],"script")&&(!p[a].type||p[a].type.toLowerCase()==="text/javascript"))k.push(p[a].parentNode?p[a].parentNode.removeChild(p[a]):p[a]);else{p[a].nodeType===1&&p.splice.apply(p,[a+1,0].concat(b.makeArray(p[a].getElementsByTagName("script"))));
f.appendChild(p[a])}return k}return p},attr:function(a,e,f){if(!(!a||a.nodeType==3||a.nodeType==8)){var k=!b.isXMLDoc(a),p=f!==void 0;e=k&&b.props[e]||e;if(a.tagName){var s=/href|src|style/.test(e);if(e in a&&k&&!s){if(p){if(e=="type"&&b.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";a[e]=f}if(b.nodeName(a,"form")&&a.getAttributeNode(e))return a.getAttributeNode(e).nodeValue;if(e=="tabIndex")return(e=a.getAttributeNode("tabIndex"))&&e.specified?e.value:a.nodeName.match(/(button|input|object|select|textarea)/i)?
0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:void 0;return a[e]}if(!b.support.style&&k&&e=="style")return b.attr(a.style,"cssText",f);p&&a.setAttribute(e,""+f);a=!b.support.hrefNormalized&&k&&s?a.getAttribute(e,2):a.getAttribute(e);return a===null?void 0:a}if(!b.support.opacity&&e=="opacity"){if(p){a.zoom=1;a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(f)+""=="NaN"?"":"alpha(opacity="+f*100+")")}return a.filter&&a.filter.indexOf("opacity=")>=0?parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}e=e.replace(/-([a-z])/ig,function(y,z){return z.toUpperCase()});if(p)a[e]=f;return a[e]}},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var e=[];if(a!=null){var f=a.length;if(f==null||typeof a==="string"||b.isFunction(a)||a.setInterval)e[0]=a;else for(;f;)e[--f]=a[f]}return e},inArray:function(a,e){for(var f=0,k=e.length;f<k;f++)if(e[f]===a)return f;return-1},merge:function(a,e){var f=0,k,p=a.length;if(b.support.getAll)for(;(k=e[f++])!=null;)a[p++]=k;else for(;(k=
e[f++])!=null;)if(k.nodeType!=8)a[p++]=k;return a},unique:function(a){var e=[],f={};try{for(var k=0,p=a.length;k<p;k++){var s=b.data(a[k]);if(!f[s]){f[s]=true;e.push(a[k])}}}catch(y){e=a}return e},grep:function(a,e,f){for(var k=[],p=0,s=a.length;p<s;p++)!f!=!e(a[p],p)&&k.push(a[p]);return k},map:function(a,e){for(var f=[],k=0,p=a.length;k<p;k++){var s=e(a[k],k);if(s!=null)f[f.length]=s}return f.concat.apply([],f)}});var F=navigator.userAgent.toLowerCase();b.browser={version:(F.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(F),opera:/opera/.test(F),msie:/msie/.test(F)&&!/opera/.test(F),mozilla:/mozilla/.test(F)&&!/(compatible|webkit)/.test(F)};b.each({parent:function(a){return a.parentNode},parents:function(a){return b.dir(a,"parentNode")},next:function(a){return b.nth(a,2,"nextSibling")},prev:function(a){return b.nth(a,2,"previousSibling")},nextAll:function(a){return b.dir(a,"nextSibling")},prevAll:function(a){return b.dir(a,"previousSibling")},siblings:function(a){return b.sibling(a.parentNode.firstChild,
a)},children:function(a){return b.sibling(a.firstChild)},contents:function(a){return b.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:b.makeArray(a.childNodes)}},function(a,e){b.fn[a]=function(f){var k=b.map(this,e);if(f&&typeof f=="string")k=b.multiFilter(f,k);return this.pushStack(b.unique(k),a,f)}});b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,e){b.fn[a]=function(f){for(var k=[],p=b(f),s=0,y=p.length;s<
y;s++){var z=(s>0?this.clone(true):this).get();b.fn[e].apply(b(p[s]),z);k=k.concat(z)}return this.pushStack(k,a,f)}});b.each({removeAttr:function(a){b.attr(this,a,"");this.nodeType==1&&this.removeAttribute(a)},addClass:function(a){b.className.add(this,a)},removeClass:function(a){b.className.remove(this,a)},toggleClass:function(a,e){if(typeof e!=="boolean")e=!b.className.has(this,a);b.className[e?"add":"remove"](this,a)},remove:function(a){if(!a||b.filter(a,[this]).length){b("*",this).add([this]).each(function(){b.event.remove(this);
b.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(b(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,e){b.fn[a]=function(){return this.each(e,arguments)}});var J="jQuery"+ +new Date,U=0,ba={};b.extend({cache:{},data:function(a,e,f){a=a==g?ba:a;var k=a[J];k||(k=a[J]=++U);if(e&&!b.cache[k])b.cache[k]={};if(f!==void 0)b.cache[k][e]=f;return e?b.cache[k][e]:k},removeData:function(a,e){a=a==g?ba:a;var f=a[J];if(e){if(b.cache[f]){delete b.cache[f][e];
e="";for(e in b.cache[f])break;e||b.removeData(a)}}else{try{delete a[J]}catch(k){a.removeAttribute&&a.removeAttribute(J)}delete b.cache[f]}},queue:function(a,e,f){if(a){e=(e||"fx")+"queue";var k=b.data(a,e);if(!k||b.isArray(f))k=b.data(a,e,b.makeArray(f));else f&&k.push(f)}return k},dequeue:function(a,e){var f=b.queue(a,e),k=f.shift();if(!e||e==="fx")k=f[0];k!==void 0&&k.call(a)}});b.fn.extend({data:function(a,e){var f=a.split(".");f[1]=f[1]?"."+f[1]:"";if(e===void 0){var k=this.triggerHandler("getData"+
f[1]+"!",[f[0]]);if(k===void 0&&this.length)k=b.data(this[0],a);return k===void 0&&f[1]?this.data(f[0]):k}else return this.trigger("setData"+f[1]+"!",[f[0],e]).each(function(){b.data(this,a,e)})},removeData:function(a){return this.each(function(){b.removeData(this,a)})},queue:function(a,e){if(typeof a!=="string"){e=a;a="fx"}if(e===void 0)return b.queue(this[0],a);return this.each(function(){var f=b.queue(this,a,e);a=="fx"&&f.length==1&&f[0].call(this)})},dequeue:function(a){return this.each(function(){b.dequeue(this,
a)})}});(function(){function a(j,o,t,u,w,x){w=j=="previousSibling"&&!x;for(var D=0,O=u.length;D<O;D++){var G=u[D];if(G){if(w&&G.nodeType===1){G.sizcache=t;G.sizset=D}G=G[j];for(var Q=false;G;){if(G.sizcache===t){Q=u[G.sizset];break}if(G.nodeType===1&&!x){G.sizcache=t;G.sizset=D}if(G.nodeName===o){Q=G;break}G=G[j]}u[D]=Q}}}function e(j,o,t,u,w,x){w=j=="previousSibling"&&!x;for(var D=0,O=u.length;D<O;D++){var G=u[D];if(G){if(w&&G.nodeType===1){G.sizcache=t;G.sizset=D}G=G[j];for(var Q=false;G;){if(G.sizcache===
t){Q=u[G.sizset];break}if(G.nodeType===1){if(!x){G.sizcache=t;G.sizset=D}if(typeof o!=="string"){if(G===o){Q=true;break}}else if(s.filter(o,[G]).length>0){Q=G;break}}G=G[j]}u[D]=Q}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,k=0,p=Object.prototype.toString,s=function(j,o,t,u){t=t||[];o=o||document;if(o.nodeType!==1&&o.nodeType!==9)return[];if(!j||typeof j!=="string")return t;var w=[],x,D,O,G=true;for(f.lastIndex=0;(x=
f.exec(j))!==null;){w.push(x[1]);if(x[2]){O=RegExp.rightContext;break}}if(w.length>1&&z.exec(j))if(w.length===2&&y.relative[w[0]])x=X(w[0]+w[1],o);else for(x=y.relative[w[0]]?[o]:s(w.shift(),o);w.length;){j=w.shift();if(y.relative[j])j+=w.shift();x=X(j,x)}else{x=u?{expr:w.pop(),set:L(u)}:s.find(w.pop(),w.length===1&&o.parentNode?o.parentNode:o,I(o));x=s.filter(x.expr,x.set);if(w.length>0)D=L(x);else G=false;for(;w.length;){var Q=w.pop(),W=Q;if(y.relative[Q])W=w.pop();else Q="";if(W==null)W=o;y.relative[Q](D,
W,I(o))}}D||(D=x);if(!D)throw"Syntax error, unrecognized expression: "+(Q||j);if(p.call(D)==="[object Array]")if(G)if(o.nodeType===1)for(j=0;D[j]!=null;j++){if(D[j]&&(D[j]===true||D[j].nodeType===1&&T(o,D[j])))t.push(x[j])}else for(j=0;D[j]!=null;j++)D[j]&&D[j].nodeType===1&&t.push(x[j]);else t.push.apply(t,D);else L(D,t);if(O){s(O,o,t,u);if(P){hasDuplicate=false;t.sort(P);if(hasDuplicate)for(j=1;j<t.length;j++)t[j]===t[j-1]&&t.splice(j--,1)}}return t};s.matches=function(j,o){return s(j,null,null,
o)};s.find=function(j,o,t){var u,w;if(!j)return[];for(var x=0,D=y.order.length;x<D;x++){var O=y.order[x];if(w=y.match[O].exec(j)){var G=RegExp.leftContext;if(G.substr(G.length-1)!=="\\"){w[1]=(w[1]||"").replace(/\\/g,"");u=y.find[O](w,o,t);if(u!=null){j=j.replace(y.match[O],"");break}}}}u||(u=o.getElementsByTagName("*"));return{set:u,expr:j}};s.filter=function(j,o,t,u){for(var w=j,x=[],D=o,O,G,Q=o&&o[0]&&I(o[0]);j&&o.length;){for(var W in y.filter)if((O=y.match[W].exec(j))!=null){var fa=y.filter[W],
$,ca;G=false;if(D==x)x=[];if(y.preFilter[W])if(O=y.preFilter[W](O,D,t,x,u,Q)){if(O===true)continue}else G=$=true;if(O)for(var da=0;(ca=D[da])!=null;da++)if(ca){$=fa(ca,O,da,D);var ea=u^!!$;if(t&&$!=null)if(ea)G=true;else D[da]=false;else if(ea){x.push(ca);G=true}}if($!==void 0){t||(D=x);j=j.replace(y.match[W],"");if(!G)return[];break}}if(j==w)if(G==null)throw"Syntax error, unrecognized expression: "+j;else break;w=j}return D};var y=s.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(j){return j.getAttribute("href")}},
relative:{"+":function(j,o,t){var u=typeof o==="string",w=u&&!/\W/.test(o);u=u&&!w;if(w&&!t)o=o.toUpperCase();t=0;w=j.length;for(var x;t<w;t++)if(x=j[t]){for(;(x=x.previousSibling)&&x.nodeType!==1;);j[t]=u||x&&x.nodeName===o?x||false:x===o}u&&s.filter(o,j,true)},">":function(j,o,t){var u=typeof o==="string";if(u&&!/\W/.test(o)){o=t?o:o.toUpperCase();t=0;for(var w=j.length;t<w;t++){var x=j[t];if(x){u=x.parentNode;j[t]=u.nodeName===o?u:false}}}else{t=0;for(w=j.length;t<w;t++)if(x=j[t])j[t]=u?x.parentNode:
x.parentNode===o;u&&s.filter(o,j,true)}},"":function(j,o,t){var u=k++,w=e;if(!o.match(/\W/)){var x=o=t?o:o.toUpperCase();w=a}w("parentNode",o,u,j,x,t)},"~":function(j,o,t){var u=k++,w=e;if(typeof o==="string"&&!o.match(/\W/)){var x=o=t?o:o.toUpperCase();w=a}w("previousSibling",o,u,j,x,t)}},find:{ID:function(j,o,t){if(typeof o.getElementById!=="undefined"&&!t)return(j=o.getElementById(j[1]))?[j]:[]},NAME:function(j,o){if(typeof o.getElementsByName!=="undefined"){for(var t=[],u=o.getElementsByName(j[1]),
w=0,x=u.length;w<x;w++)u[w].getAttribute("name")===j[1]&&t.push(u[w]);return t.length===0?null:t}},TAG:function(j,o){return o.getElementsByTagName(j[1])}},preFilter:{CLASS:function(j,o,t,u,w,x){j=" "+j[1].replace(/\\/g,"")+" ";if(x)return j;x=0;for(var D;(D=o[x])!=null;x++)if(D)if(w^(D.className&&(" "+D.className+" ").indexOf(j)>=0))t||u.push(D);else if(t)o[x]=false;return false},ID:function(j){return j[1].replace(/\\/g,"")},TAG:function(j,o){for(var t=0;o[t]===false;t++);return o[t]&&I(o[t])?j[1]:
j[1].toUpperCase()},CHILD:function(j){if(j[1]=="nth"){var o=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(j[2]=="even"&&"2n"||j[2]=="odd"&&"2n+1"||!/\D/.test(j[2])&&"0n+"+j[2]||j[2]);j[2]=o[1]+(o[2]||1)-0;j[3]=o[3]-0}j[0]=k++;return j},ATTR:function(j,o,t,u,w,x){o=j[1].replace(/\\/g,"");if(!x&&y.attrMap[o])j[1]=y.attrMap[o];if(j[2]==="~=")j[4]=" "+j[4]+" ";return j},PSEUDO:function(j,o,t,u,w){if(j[1]==="not")if(j[3].match(f).length>1||/^\w/.test(j[3]))j[3]=s(j[3],null,null,o);else{j=s.filter(j[3],o,t,true^w);t||
u.push.apply(u,j);return false}else if(y.match.POS.test(j[0])||y.match.CHILD.test(j[0]))return true;return j},POS:function(j){j.unshift(true);return j}},filters:{enabled:function(j){return j.disabled===false&&j.type!=="hidden"},disabled:function(j){return j.disabled===true},checked:function(j){return j.checked===true},selected:function(j){return j.selected===true},parent:function(j){return!!j.firstChild},empty:function(j){return!j.firstChild},has:function(j,o,t){return!!s(t[3],j).length},header:function(j){return/h\d/i.test(j.nodeName)},
text:function(j){return"text"===j.type},radio:function(j){return"radio"===j.type},checkbox:function(j){return"checkbox"===j.type},file:function(j){return"file"===j.type},password:function(j){return"password"===j.type},submit:function(j){return"submit"===j.type},image:function(j){return"image"===j.type},reset:function(j){return"reset"===j.type},button:function(j){return"button"===j.type||j.nodeName.toUpperCase()==="BUTTON"},input:function(j){return/input|select|textarea|button/i.test(j.nodeName)}},
setFilters:{first:function(j,o){return o===0},last:function(j,o,t,u){return o===u.length-1},even:function(j,o){return o%2===0},odd:function(j,o){return o%2===1},lt:function(j,o,t){return o<t[3]-0},gt:function(j,o,t){return o>t[3]-0},nth:function(j,o,t){return t[3]-0==o},eq:function(j,o,t){return t[3]-0==o}},filter:{PSEUDO:function(j,o,t,u){var w=o[1],x=y.filters[w];if(x)return x(j,t,o,u);else if(w==="contains")return(j.textContent||j.innerText||"").indexOf(o[3])>=0;else if(w==="not"){o=o[3];t=0;for(u=
o.length;t<u;t++)if(o[t]===j)return false;return true}},CHILD:function(j,o){var t=o[1],u=j;switch(t){case "only":case "first":for(;u=u.previousSibling;)if(u.nodeType===1)return false;if(t=="first")return true;u=j;case "last":for(;u=u.nextSibling;)if(u.nodeType===1)return false;return true;case "nth":t=o[2];var w=o[3];if(t==1&&w==0)return true;var x=o[0],D=j.parentNode;if(D&&(D.sizcache!==x||!j.nodeIndex)){var O=0;for(u=D.firstChild;u;u=u.nextSibling)if(u.nodeType===1)u.nodeIndex=++O;D.sizcache=x}u=
j.nodeIndex-w;return t==0?u==0:u%t==0&&u/t>=0}},ID:function(j,o){return j.nodeType===1&&j.getAttribute("id")===o},TAG:function(j,o){return o==="*"&&j.nodeType===1||j.nodeName===o},CLASS:function(j,o){return(" "+(j.className||j.getAttribute("class"))+" ").indexOf(o)>-1},ATTR:function(j,o){var t=o[1];t=y.attrHandle[t]?y.attrHandle[t](j):j[t]!=null?j[t]:j.getAttribute(t);var u=t+"",w=o[2],x=o[4];return t==null?w==="!=":w==="="?u===x:w==="*="?u.indexOf(x)>=0:w==="~="?(" "+u+" ").indexOf(x)>=0:!x?u&&t!==
false:w==="!="?u!=x:w==="^="?u.indexOf(x)===0:w==="$="?u.substr(u.length-x.length)===x:w==="|="?u===x||u.substr(0,x.length+1)===x+"-":false},POS:function(j,o,t,u){var w=y.setFilters[o[2]];if(w)return w(j,t,o,u)}}},z=y.match.POS,K;for(K in y.match)y.match[K]=RegExp(y.match[K].source+/(?![^\[]*\])(?![^\(]*\))/.source);var L=function(j,o){j=Array.prototype.slice.call(j);if(o){o.push.apply(o,j);return o}return j};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){L=function(j,
o){var t=o||[];if(p.call(j)==="[object Array]")Array.prototype.push.apply(t,j);else if(typeof j.length==="number")for(var u=0,w=j.length;u<w;u++)t.push(j[u]);else for(u=0;j[u];u++)t.push(j[u]);return t}}var P;if(document.documentElement.compareDocumentPosition)P=function(j,o){var t=j.compareDocumentPosition(o)&4?-1:j===o?0:1;if(t===0)hasDuplicate=true;return t};else if("sourceIndex"in document.documentElement)P=function(j,o){var t=j.sourceIndex-o.sourceIndex;if(t===0)hasDuplicate=true;return t};else if(document.createRange)P=
function(j,o){var t=j.ownerDocument.createRange(),u=o.ownerDocument.createRange();t.selectNode(j);t.collapse(true);u.selectNode(o);u.collapse(true);t=t.compareBoundaryPoints(Range.START_TO_END,u);if(t===0)hasDuplicate=true;return t};(function(){var j=document.createElement("form"),o="script"+(new Date).getTime();j.innerHTML="<input name='"+o+"'/>";var t=document.documentElement;t.insertBefore(j,t.firstChild);if(document.getElementById(o)){y.find.ID=function(u,w,x){if(typeof w.getElementById!=="undefined"&&
!x)return(w=w.getElementById(u[1]))?w.id===u[1]||typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id").nodeValue===u[1]?[w]:void 0:[]};y.filter.ID=function(u,w){var x=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&x&&x.nodeValue===w}}t.removeChild(j)})();(function(){var j=document.createElement("div");j.appendChild(document.createComment(""));if(j.getElementsByTagName("*").length>0)y.find.TAG=function(o,t){var u=t.getElementsByTagName(o[1]);if(o[1]===
"*"){for(var w=[],x=0;u[x];x++)u[x].nodeType===1&&w.push(u[x]);u=w}return u};j.innerHTML="<a href='#'></a>";if(j.firstChild&&typeof j.firstChild.getAttribute!=="undefined"&&j.firstChild.getAttribute("href")!=="#")y.attrHandle.href=function(o){return o.getAttribute("href",2)}})();document.querySelectorAll&&function(){var j=s,o=document.createElement("div");o.innerHTML="<p class='TEST'></p>";if(!(o.querySelectorAll&&o.querySelectorAll(".TEST").length===0)){s=function(t,u,w,x){u=u||document;if(!x&&u.nodeType===
9&&!I(u))try{return L(u.querySelectorAll(t),w)}catch(D){}return j(t,u,w,x)};s.find=j.find;s.filter=j.filter;s.selectors=j.selectors;s.matches=j.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var j=document.createElement("div");j.innerHTML="<div class='test e'></div><div class='test'></div>";if(j.getElementsByClassName("e").length!==0){j.lastChild.className="e";if(j.getElementsByClassName("e").length!==1){y.order.splice(1,0,"CLASS");y.find.CLASS=
function(o,t,u){if(typeof t.getElementsByClassName!=="undefined"&&!u)return t.getElementsByClassName(o[1])}}}}();var T=document.compareDocumentPosition?function(j,o){return j.compareDocumentPosition(o)&16}:function(j,o){return j!==o&&(j.contains?j.contains(o):true)},I=function(j){return j.nodeType===9&&j.documentElement.nodeName!=="HTML"||!!j.ownerDocument&&I(j.ownerDocument)},X=function(j,o){for(var t=[],u="",w,x=o.nodeType?[o]:o;w=y.match.PSEUDO.exec(j);){u+=w[0];j=j.replace(y.match.PSEUDO,"")}j=
y.relative[j]?j+"*":j;w=0;for(var D=x.length;w<D;w++)s(j,x[w],t);return s.filter(u,t)};b.find=s;b.filter=s.filter;b.expr=s.selectors;b.expr[":"]=b.expr.filters;s.selectors.filters.hidden=function(j){return j.offsetWidth===0||j.offsetHeight===0};s.selectors.filters.visible=function(j){return j.offsetWidth>0||j.offsetHeight>0};s.selectors.filters.animated=function(j){return b.grep(b.timers,function(o){return j===o.elem}).length};b.multiFilter=function(j,o,t){if(t)j=":not("+j+")";return s.matches(j,
o)};b.dir=function(j,o){for(var t=[],u=j[o];u&&u!=document;){u.nodeType==1&&t.push(u);u=u[o]}return t};b.nth=function(j,o,t){o=o||1;for(var u=0;j;j=j[t])if(j.nodeType==1&&++u==o)break;return j};b.sibling=function(j,o){for(var t=[];j;j=j.nextSibling)j.nodeType==1&&j!=o&&t.push(j);return t}})();b.event={add:function(a,e,f,k){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=g)a=g;if(!f.guid)f.guid=this.guid++;if(k!==void 0){f=this.proxy(f);f.data=k}var p=b.data(a,"events")||b.data(a,"events",
{}),s=b.data(a,"handle")||b.data(a,"handle",function(){return typeof b!=="undefined"&&!b.event.triggered?b.event.handle.apply(arguments.callee.elem,arguments):void 0});s.elem=a;b.each(e.split(/\s+/),function(y,z){var K=z.split(".");z=K.shift();f.type=K.slice().sort().join(".");var L=p[z];b.event.specialAll[z]&&b.event.specialAll[z].setup.call(a,k,K);if(!L){L=p[z]={};if(!b.event.special[z]||b.event.special[z].setup.call(a,k,K)===false)if(a.addEventListener)a.addEventListener(z,s,false);else a.attachEvent&&
a.attachEvent("on"+z,s)}L[f.guid]=f;b.event.global[z]=true});a=null}},guid:1,global:{},remove:function(a,e,f){if(!(a.nodeType==3||a.nodeType==8)){var k=b.data(a,"events"),p;if(k){if(e===void 0||typeof e==="string"&&e.charAt(0)==".")for(var s in k)this.remove(a,s+(e||""));else{if(e.type){f=e.handler;e=e.type}b.each(e.split(/\s+/),function(y,z){var K=z.split(".");z=K.shift();var L=RegExp("(^|\\.)"+K.slice().sort().join(".*\\.")+"(\\.|$)");if(k[z]){if(f)delete k[z][f.guid];else for(var N in k[z])L.test(k[z][N].type)&&
delete k[z][N];b.event.specialAll[z]&&b.event.specialAll[z].teardown.call(a,K);for(p in k[z])break;if(!p){if(!b.event.special[z]||b.event.special[z].teardown.call(a,K)===false)if(a.removeEventListener)a.removeEventListener(z,b.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+z,b.data(a,"handle"));p=null;delete k[z]}}})}for(p in k)break;if(!p){if(e=b.data(a,"handle"))e.elem=null;b.removeData(a,"events");b.removeData(a,"handle")}}}},trigger:function(a,e,f,k){var p=a.type||a;if(!k){a=typeof a===
"object"?a[J]?a:b.extend(b.Event(p),a):b.Event(p);if(p.indexOf("!")>=0){a.type=p=p.slice(0,-1);a.exclusive=true}if(!f){a.stopPropagation();this.global[p]&&b.each(b.cache,function(){this.events&&this.events[p]&&b.event.trigger(a,e,this.handle.elem)})}if(!f||f.nodeType==3||f.nodeType==8)return;a.result=void 0;a.target=f;e=b.makeArray(e);e.unshift(a)}a.currentTarget=f;var s=b.data(f,"handle");s&&s.apply(f,e);if((!f[p]||b.nodeName(f,"a")&&p=="click")&&f["on"+p]&&f["on"+p].apply(f,e)===false)a.result=
false;if(!k&&f[p]&&!a.isDefaultPrevented()&&!(b.nodeName(f,"a")&&p=="click")){this.triggered=true;try{f[p]()}catch(y){}}this.triggered=false;if(!a.isPropagationStopped())(f=f.parentNode||f.ownerDocument)&&b.event.trigger(a,e,f,true)},handle:function(a){var e,f;a=arguments[0]=b.event.fix(a||g.event);a.currentTarget=this;f=a.type.split(".");a.type=f.shift();e=!f.length&&!a.exclusive;var k=RegExp("(^|\\.)"+f.slice().sort().join(".*\\.")+"(\\.|$)");f=(b.data(this,"events")||{})[a.type];for(var p in f){var s=
f[p];if(e||k.test(s.type)){a.handler=s;a.data=s.data;s=s.apply(this,arguments);if(s!==void 0){a.result=s;if(s===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(a){if(a[J])return a;var e=a;a=b.Event(e);for(var f=this.props.length,k;f;){k=this.props[--f];a[k]=e[k]}if(!a.target)a.target=a.srcElement||document;if(a.target.nodeType==3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement==a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){e=document.documentElement;f=document.body;a.pageX=a.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e.clientLeft||0);a.pageY=a.clientY+(e&&e.scrollTop||
f&&f.scrollTop||0)-(e.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},proxy:function(a,e){e=e||function(){return a.apply(this,arguments)};e.guid=a.guid=a.guid||e.guid||this.guid++;return e},special:{ready:{setup:r,teardown:function(){}}},specialAll:{live:{setup:function(a,e){b.event.add(this,e[0],h)},teardown:function(a){if(a.length){var e=
0,f=RegExp("(^|\\.)"+a[0]+"(\\.|$)");b.each(b.data(this,"events").live||{},function(){f.test(this.type)&&e++});e<1&&b.event.remove(this,a[0],h)}}}}};b.Event=function(a){if(!this.preventDefault)return new b.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=+new Date;this[J]=true};b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=c;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
c;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=c;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var aa=function(a){for(var e=a.relatedTarget;e&&e!=this;)try{e=e.parentNode}catch(f){e=this}if(e!=this){a.type=a.data;b.event.handle.apply(this,arguments)}};b.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,e){b.event.special[e]=
{setup:function(){b.event.add(this,a,aa,e)},teardown:function(){b.event.remove(this,a,aa)}}});b.fn.extend({bind:function(a,e,f){return a=="unload"?this.one(a,e,f):this.each(function(){b.event.add(this,a,f||e,f&&e)})},one:function(a,e,f){var k=b.event.proxy(f||e,function(p){b(this).unbind(p,k);return(f||e).apply(this,arguments)});return this.each(function(){b.event.add(this,a,k,f&&e)})},unbind:function(a,e){return this.each(function(){b.event.remove(this,a,e)})},trigger:function(a,e){return this.each(function(){b.event.trigger(a,
e,this)})},triggerHandler:function(a,e){if(this[0]){var f=b.Event(a);f.preventDefault();f.stopPropagation();b.event.trigger(f,e,this[0]);return f.result}},toggle:function(a){for(var e=arguments,f=1;f<e.length;)b.event.proxy(a,e[f++]);return this.click(b.event.proxy(a,function(k){this.lastToggle=(this.lastToggle||0)%f;k.preventDefault();return e[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,e){return this.mouseenter(a).mouseleave(e)},ready:function(a){r();b.isReady?a.call(document,
b):b.readyList.push(a);return this},live:function(a,e){var f=b.event.proxy(e);f.guid+=this.selector+a;b(document).bind(m(a,this.selector),this.selector,f);return this},die:function(a,e){b(document).unbind(m(a,this.selector),e?{guid:e.guid+this.selector+a}:null);return this}});b.extend({isReady:false,readyList:[],ready:function(){if(!b.isReady){b.isReady=true;if(b.readyList){b.each(b.readyList,function(){this.call(document,b)});b.readyList=null}b(document).triggerHandler("ready")}}});var Y=false;b.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),
function(a,e){b.fn[e]=function(f){return f?this.bind(e,f):this.trigger(e)}});b(g).bind("unload",function(){for(var a in b.cache)a!=1&&b.cache[a].handle&&b.event.remove(b.cache[a].handle.elem)});(function(){b.support={};var a=document.documentElement,e=document.createElement("script"),f=document.createElement("div"),k="script"+(new Date).getTime();f.style.display="none";f.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 p=f.getElementsByTagName("*"),s=f.getElementsByTagName("a")[0];if(!(!p||!p.length||!s)){b.support={leadingWhitespace:f.firstChild.nodeType==3,tbody:!f.getElementsByTagName("tbody").length,objectAll:!!f.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/red/.test(s.getAttribute("style")),hrefNormalized:s.getAttribute("href")==="/a",opacity:s.style.opacity==="0.5",cssFloat:!!s.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+k+"=1;"))}catch(y){}a.insertBefore(e,a.firstChild);if(g[k]){b.support.scriptEval=true;delete g[k]}a.removeChild(e);if(f.attachEvent&&f.fireEvent){f.attachEvent("onclick",function(){b.support.noCloneEvent=false;f.detachEvent("onclick",arguments.callee)});f.cloneNode(true).fireEvent("onclick")}b(function(){var z=document.createElement("div");z.style.width=z.style.paddingLeft="1px";document.body.appendChild(z);
b.boxModel=b.support.boxModel=z.offsetWidth===2;document.body.removeChild(z).style.display="none"})}})();var R=b.support.cssFloat?"cssFloat":"styleFloat";b.props={"for":"htmlFor","class":"className","float":R,cssFloat:R,styleFloat:R,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};b.fn.extend({_load:b.fn.load,load:function(a,e,f){if(typeof a!=="string")return this._load(a);var k=a.indexOf(" ");if(k>=0){var p=a.slice(k,a.length);a=a.slice(0,
k)}k="GET";if(e)if(b.isFunction(e)){f=e;e=null}else if(typeof e==="object"){e=b.param(e);k="POST"}var s=this;b.ajax({url:a,type:k,dataType:"html",data:e,complete:function(y,z){if(z=="success"||z=="notmodified")s.html(p?b("<div/>").append(y.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(p):y.responseText);f&&s.each(f,[y.responseText,z,y])}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(a,e){var f=b(this).val();return f==null?null:b.isArray(f)?b.map(f,function(k){return{name:e.name,value:k}}):{name:e.name,value:f}}).get()}});b.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,e){b.fn[e]=function(f){return this.bind(e,f)}});var M=+new Date;
b.extend({get:function(a,e,f,k){if(b.isFunction(e)){f=e;e=null}return b.ajax({type:"GET",url:a,data:e,success:f,dataType:k})},getScript:function(a,e){return b.get(a,null,e,"script")},getJSON:function(a,e,f){return b.get(a,e,f,"json")},post:function(a,e,f,k){if(b.isFunction(e)){f=e;e={}}return b.ajax({type:"POST",url:a,data:e,success:f,dataType:k})},ajaxSetup:function(a){b.extend(b.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,xhr:function(){return g.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(a){function e(){a.success&&a.success(y,s);a.global&&b.event.trigger("ajaxSuccess",[I,a])}function f(){a.complete&&a.complete(I,s);a.global&&b.event.trigger("ajaxComplete",
[I,a]);a.global&&!--b.active&&b.event.trigger("ajaxStop")}a=b.extend(true,a,b.extend(true,{},b.ajaxSettings,a));var k,p=/=\?(&|$)/g,s,y,z=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=b.param(a.data);if(a.dataType=="jsonp"){if(z=="GET")a.url.match(p)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(p))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if(a.dataType=="json"&&(a.data&&a.data.match(p)||
a.url.match(p))){k="jsonp"+M++;if(a.data)a.data=(a.data+"").replace(p,"="+k+"$1");a.url=a.url.replace(p,"="+k+"$1");a.dataType="script";g[k]=function(u){y=u;e();f();g[k]=void 0;try{delete g[k]}catch(w){}L&&L.removeChild(N)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&z=="GET"){p=+new Date;var K=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+p+"$2");a.url=K+(K==a.url?(a.url.match(/\?/)?"&":"?")+"_="+p:"")}if(a.data&&z=="GET"){a.url+=(a.url.match(/\?/)?"&":"?")+a.data;a.data=null}a.global&&
!b.active++&&b.event.trigger("ajaxStart");p=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if(a.dataType=="script"&&z=="GET"&&p&&(p[1]&&p[1]!=location.protocol||p[2]!=location.host)){var L=document.getElementsByTagName("head")[0],N=document.createElement("script");N.src=a.url;if(a.scriptCharset)N.charset=a.scriptCharset;if(!k){var P=false;N.onload=N.onreadystatechange=function(){if(!P&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){P=true;e();f();N.onload=N.onreadystatechange=null;
L.removeChild(N)}}}L.appendChild(N)}else{var T=false,I=a.xhr();a.username?I.open(z,a.url,a.async,a.username,a.password):I.open(z,a.url,a.async);try{a.data&&I.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)I.setRequestHeader("If-Modified-Since",b.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT");I.setRequestHeader("X-Requested-With","XMLHttpRequest");I.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(X){}if(a.beforeSend&&
a.beforeSend(I,a)===false){a.global&&!--b.active&&b.event.trigger("ajaxStop");I.abort();return false}a.global&&b.event.trigger("ajaxSend",[I,a]);var j=function(u){if(I.readyState==0){if(o){clearInterval(o);o=null;a.global&&!--b.active&&b.event.trigger("ajaxStop")}}else if(!T&&I&&(I.readyState==4||u=="timeout")){T=true;if(o){clearInterval(o);o=null}s=u=="timeout"?"timeout":!b.httpSuccess(I)?"error":a.ifModified&&b.httpNotModified(I,a.url)?"notmodified":"success";if(s=="success")try{y=b.httpData(I,
a.dataType,a)}catch(w){s="parsererror"}if(s=="success"){var x;try{x=I.getResponseHeader("Last-Modified")}catch(D){}if(a.ifModified&&x)b.lastModified[a.url]=x;k||e()}else b.handleError(a,I,s);f();u&&I.abort();if(a.async)I=null}};if(a.async){var o=setInterval(j,13);a.timeout>0&&setTimeout(function(){I&&!T&&j("timeout")},a.timeout)}try{I.send(a.data)}catch(t){b.handleError(a,I,null,t)}a.async||j();return I}},handleError:function(a,e,f,k){a.error&&a.error(e,f,k);a.global&&b.event.trigger("ajaxError",
[e,a,k])},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(e){}return false},httpNotModified:function(a,e){try{var f=a.getResponseHeader("Last-Modified");return a.status==304||f==b.lastModified[e]}catch(k){}return false},httpData:function(a,e,f){var k=a.getResponseHeader("content-type");a=(k=e=="xml"||!e&&k&&k.indexOf("xml")>=0)?a.responseXML:a.responseText;if(k&&a.documentElement.tagName=="parsererror")throw"parsererror";
if(f&&f.dataFilter)a=f.dataFilter(a,e);if(typeof a==="string"){e=="script"&&b.globalEval(a);if(e=="json")a=g.eval("("+a+")")}return a},param:function(a){function e(p,s){f[f.length]=encodeURIComponent(p)+"="+encodeURIComponent(s)}var f=[];if(b.isArray(a)||a.jquery)b.each(a,function(){e(this.name,this.value)});else for(var k in a)b.isArray(a[k])?b.each(a[k],function(){e(k,this)}):e(k,b.isFunction(a[k])?a[k]():a[k]);return f.join("&").replace(/%20/g,"+")}});var S={},Z,V=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];b.fn.extend({show:function(a,e){if(a)return this.animate(A("show",3),a,e);else{for(var f=0,k=this.length;f<k;f++){var p=b.data(this[f],"olddisplay");this[f].style.display=p||"";if(b.css(this[f],"display")==="none"){p=this[f].tagName;var s;if(S[p])s=S[p];else{var y=b("<"+p+" />").appendTo("body");s=y.css("display");if(s==="none")s="block";y.remove();S[p]=s}b.data(this[f],"olddisplay",s)}}f=
0;for(k=this.length;f<k;f++)this[f].style.display=b.data(this[f],"olddisplay")||"";return this}},hide:function(a,e){if(a)return this.animate(A("hide",3),a,e);else{for(var f=0,k=this.length;f<k;f++){var p=b.data(this[f],"olddisplay");!p&&p!=="none"&&b.data(this[f],"olddisplay",b.css(this[f],"display"))}f=0;for(k=this.length;f<k;f++)this[f].style.display="none";return this}},_toggle:b.fn.toggle,toggle:function(a,e){var f=typeof a==="boolean";return b.isFunction(a)&&b.isFunction(e)?this._toggle.apply(this,
arguments):a==null||f?this.each(function(){var k=f?a:b(this).is(":hidden");b(this)[k?"show":"hide"]()}):this.animate(A("toggle",3),a,e)},fadeTo:function(a,e,f){return this.animate({opacity:e},a,f)},animate:function(a,e,f,k){var p=b.speed(e,f,k);return this[p.queue===false?"each":"queue"](function(){var s=b.extend({},p),y,z=this.nodeType==1&&b(this).is(":hidden"),K=this;for(y in a){if(a[y]=="hide"&&z||a[y]=="show"&&!z)return s.complete.call(this);if((y=="height"||y=="width")&&this.style){s.display=
b.css(this,"display");s.overflow=this.style.overflow}}if(s.overflow!=null)this.style.overflow="hidden";s.curAnim=b.extend({},a);b.each(a,function(L,N){var P=new b.fx(K,s,L);if(/toggle|show|hide/.test(N))P[N=="toggle"?z?"show":"hide":N](a);else{var T=N.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),I=P.cur(true)||0;if(T){var X=parseFloat(T[2]),j=T[3]||"px";if(j!="px"){K.style[L]=(X||1)+j;I=(X||1)/P.cur(true)*I;K.style[L]=I+j}if(T[1])X=(T[1]=="-="?-1:1)*X+I;P.custom(I,X,j)}else P.custom(I,N,"")}});return true})},
stop:function(a,e){var f=b.timers;a&&this.queue([]);this.each(function(){for(var k=f.length-1;k>=0;k--)if(f[k].elem==this){e&&f[k](true);f.splice(k,1)}});e||this.dequeue();return this}});b.each({slideDown:A("show",1),slideUp:A("hide",1),slideToggle:A("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,e){b.fn[a]=function(f,k){return this.animate(e,f,k)}});b.extend({speed:function(a,e,f){var k=typeof a==="object"?a:{complete:f||!f&&e||b.isFunction(a)&&a,duration:a,easing:f&&e||
e&&!b.isFunction(e)&&e};k.duration=b.fx.off?0:typeof k.duration==="number"?k.duration:b.fx.speeds[k.duration]||b.fx.speeds._default;k.old=k.complete;k.complete=function(){k.queue!==false&&b(this).dequeue();b.isFunction(k.old)&&k.old.call(this)};return k},easing:{linear:function(a,e,f,k){return f+k*a},swing:function(a,e,f,k){return(-Math.cos(a*Math.PI)/2+0.5)*k+f}},timers:[],fx:function(a,e,f){this.options=e;this.elem=a;this.prop=f;if(!e.orig)e.orig={}}});b.fx.prototype={update:function(){this.options.step&&
this.options.step.call(this.elem,this.now,this);(b.fx.step[this.prop]||b.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(b.css(this.elem,this.prop,a)))&&a>-1E4?a:parseFloat(b.curCSS(this.elem,this.prop))||0},custom:function(a,e,f){function k(s){return p.step(s)}this.startTime=+new Date;
this.start=a;this.end=e;this.unit=f||this.unit||"px";this.now=this.start;this.pos=this.state=0;var p=this;k.elem=this.elem;if(k()&&b.timers.push(k)&&!Z)Z=setInterval(function(){for(var s=b.timers,y=0;y<s.length;y++)s[y]()||s.splice(y--,1);if(!s.length){clearInterval(Z);Z=void 0}},13)},show:function(){this.options.orig[this.prop]=b.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());b(this.elem).show()},hide:function(){this.options.orig[this.prop]=
b.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var e=+new Date;if(a||e>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)a=false;if(a){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(b.css(this.elem,"display")=="none")this.elem.style.display=
"block"}this.options.hide&&b(this.elem).hide();if(this.options.hide||this.options.show)for(var k in this.options.curAnim)b.attr(this.elem.style,k,this.options.orig[k]);this.options.complete.call(this.elem)}return false}else{f=e-this.startTime;this.state=f/this.options.duration;this.pos=b.easing[this.options.easing||(b.easing.swing?"swing":"linear")](this.state,f,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};b.extend(b.fx,{speeds:{slow:600,
fast:200,_default:400},step:{opacity:function(a){b.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}}});b.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return b.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),e=this[0].ownerDocument,f=e.body;e=e.documentElement;return{top:a.top+
(self.pageYOffset||b.boxModel&&e.scrollTop||f.scrollTop)-(e.clientTop||f.clientTop||0),left:a.left+(self.pageXOffset||b.boxModel&&e.scrollLeft||f.scrollLeft)-(e.clientLeft||f.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return b.offset.bodyOffset(this[0]);b.offset.initialized||b.offset.initialize();var a=this[0],e=a.offsetParent,f=a.ownerDocument,k,p=f.documentElement,s=f.body;f=f.defaultView;k=f.getComputedStyle(a,null);for(var y=a.offsetTop,
z=a.offsetLeft;(a=a.parentNode)&&a!==s&&a!==p;){k=f.getComputedStyle(a,null);y-=a.scrollTop;z-=a.scrollLeft;if(a===e){y+=a.offsetTop;z+=a.offsetLeft;if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){y+=parseInt(k.borderTopWidth,10)||0;z+=parseInt(k.borderLeftWidth,10)||0}e=a.offsetParent}if(b.offset.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){y+=parseInt(k.borderTopWidth,10)||0;z+=parseInt(k.borderLeftWidth,10)||0}k=k}if(k.position===
"relative"||k.position==="static"){y+=s.offsetTop;z+=s.offsetLeft}if(k.position==="fixed"){y+=Math.max(p.scrollTop,s.scrollTop);z+=Math.max(p.scrollLeft,s.scrollLeft)}return{top:y,left:z}};b.offset={initialize:function(){if(!this.initialized){var a=document.body,e=document.createElement("div"),f,k,p,s=a.style.marginTop;f={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(k in f)e.style[k]=f[k];e.innerHTML='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
a.insertBefore(e,a.firstChild);f=e.firstChild;k=f.firstChild;p=f.nextSibling.firstChild.firstChild;this.doesNotAddBorder=k.offsetTop!==5;this.doesAddBorderForTableAndCells=p.offsetTop===5;f.style.overflow="hidden";f.style.position="relative";this.subtractsBorderForOverflowNotVisible=k.offsetTop===-5;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;a.style.marginTop=s;a.removeChild(e);this.initialized=true}},bodyOffset:function(a){b.offset.initialized||b.offset.initialize();
var e=a.offsetTop,f=a.offsetLeft;if(b.offset.doesNotIncludeMarginInBodyOffset){e+=parseInt(b.curCSS(a,"marginTop",true),10)||0;f+=parseInt(b.curCSS(a,"marginLeft",true),10)||0}return{top:e,left:f}}};b.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var e=this.offset(),f=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();e.top-=i(this,"marginTop");e.left-=i(this,"marginLeft");f.top+=i(a,"borderTopWidth");f.left+=i(a,"borderLeftWidth");a={top:e.top-f.top,left:e.left-
f.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&b.css(a,"position")=="static";)a=a.offsetParent;return b(a)}});b.each(["Left","Top"],function(a,e){var f="scroll"+e;b.fn[f]=function(k){if(!this[0])return null;return k!==void 0?this.each(function(){this==g||this==document?g.scrollTo(!a?k:b(g).scrollLeft(),a?k:b(g).scrollTop()):this[f]=k}):this[0]==g||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||b.boxModel&&document.documentElement[f]||
document.body[f]:this[0][f]}});b.each(["Height","Width"],function(a,e){var f=e.toLowerCase();b.fn["inner"+e]=function(){return this[0]?b.css(this[0],f,false,"padding"):null};b.fn["outer"+e]=function(p){return this[0]?b.css(this[0],f,false,p?"margin":"border"):null};var k=e.toLowerCase();b.fn[k]=function(p){return this[0]==g?document.compatMode=="CSS1Compat"&&document.documentElement["client"+e]||document.body["client"+e]:this[0]==document?Math.max(document.documentElement["client"+e],document.body["scroll"+
e],document.documentElement["scroll"+e],document.body["offset"+e],document.documentElement["offset"+e]):p===void 0?this.length?b.css(this[0],k):null:this.css(k,typeof p==="string"?p:p+"px")}})})();jQuery.ui||function(d){function i(g,n,q,b){function v(B){B=d[g][n][B]||[];return typeof B=="string"?B.split(/,?\s+/):B}var C=v("getter");if(b.length==1&&typeof b[0]=="string")C=C.concat(v("getterSetter"));return d.inArray(q,C)!=-1}var l=d.fn.remove,c=d.browser.mozilla&&parseFloat(d.browser.version)<1.9;d.ui={version:"1.7.2",plugin:{add:function(g,n,q){g=d.ui[g].prototype;for(var b in q){g.plugins[b]=g.plugins[b]||[];g.plugins[b].push([n,q[b]])}},call:function(g,n,q){if((n=g.plugins[n])&&g.element[0].parentNode)for(var b=
0;b<n.length;b++)g.options[n[b][0]]&&n[b][1].apply(g.element,q)}},contains:function(g,n){return document.compareDocumentPosition?g.compareDocumentPosition(n)&16:g!==n&&g.contains(n)},hasScroll:function(g,n){if(d(g).css("overflow")=="hidden")return false;var q=n&&n=="left"?"scrollLeft":"scrollTop",b=false;if(g[q]>0)return true;g[q]=1;b=g[q]>0;g[q]=0;return b},isOverAxis:function(g,n,q){return g>n&&g<n+q},isOver:function(g,n,q,b,v,C){return d.ui.isOverAxis(g,q,v)&&d.ui.isOverAxis(n,b,C)},keyCode:{BACKSPACE:8,
CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(c){var h=d.attr,m=d.fn.removeAttr,r=/^aria-/,A=/^wairole:/;d.attr=function(g,n,q){var b=q!==undefined;return n=="role"?b?h.call(this,g,n,"wairole:"+q):(h.apply(this,arguments)||"").replace(A,""):r.test(n)?b?g.setAttributeNS("http://www.w3.org/2005/07/aaa",
n.replace(r,"aaa:"),q):h.call(this,g,n.replace(r,"aaa:")):h.apply(this,arguments)};d.fn.removeAttr=function(g){return r.test(g)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",g.replace(r,""))}):m.call(this,g)}}d.fn.extend({remove:function(){d("*",this).add(this).each(function(){d(this).triggerHandler("remove")});return l.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var g;g=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,
"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?d(document):g}});d.extend(d.expr[":"],{data:function(g,n,q){return!!d.data(g,q[3])},focusable:function(g){var n=g.nodeName.toLowerCase(),q=d.attr(g,"tabindex");return(/input|select|textarea|button|object/.test(n)?!g.disabled:"a"==n||"area"==n?g.href||!isNaN(q):!isNaN(q))&&!d(g)["area"==n?"parents":"closest"](":hidden").length},tabbable:function(g){var n=d.attr(g,"tabindex");
return(isNaN(n)||n>=0)&&d(g).is(":focusable")}});d.widget=function(g,n){var q=g.split(".")[0];g=g.split(".")[1];d.fn[g]=function(b){var v=typeof b=="string",C=Array.prototype.slice.call(arguments,1);if(v&&b.substring(0,1)=="_")return this;if(v&&i(q,g,b,C)){var B=d.data(this[0],g);return B?B[b].apply(B,C):undefined}return this.each(function(){var E=d.data(this,g);!E&&!v&&d.data(this,g,new d[q][g](this,b))._init();E&&v&&d.isFunction(E[b])&&E[b].apply(E,C)})};d[q]=d[q]||{};d[q][g]=function(b,v){var C=
this;this.namespace=q;this.widgetName=g;this.widgetEventPrefix=d[q][g].eventPrefix||g;this.widgetBaseClass=q+"-"+g;this.options=d.extend({},d.widget.defaults,d[q][g].defaults,d.metadata&&d.metadata.get(b)[g],v);this.element=d(b).bind("setData."+g,function(B,E,H){if(B.target==b)return C._setData(E,H)}).bind("getData."+g,function(B,E){if(B.target==b)return C._getData(E)}).bind("remove",function(){return C.destroy()})};d[q][g].prototype=d.extend({},d.widget.prototype,n);d[q][g].getterSetter="option"};
d.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(g,n){var q=g,b=this;if(typeof g=="string"){if(n===undefined)return this._getData(g);q={};q[g]=n}d.each(q,function(v,C){b._setData(v,C)})},_getData:function(g){return this.options[g]},_setData:function(g,n){this.options[g]=n;if(g=="disabled")this.element[n?"addClass":"removeClass"](this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",n)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(g,n,q){var b=this.options[g];g=g==this.widgetEventPrefix?g:this.widgetEventPrefix+g;n=d.Event(n);n.type=g;if(n.originalEvent){g=d.event.props.length;for(var v;g;){v=d.event.props[--g];n[v]=n.originalEvent[v]}}this.element.trigger(n,q);return!(d.isFunction(b)&&b.call(this.element[0],n,q)===false||n.isDefaultPrevented())}};
d.widget.defaults={disabled:false};d.ui.mouse={_mouseInit:function(){var g=this;this.element.bind("mousedown."+this.widgetName,function(n){return g._mouseDown(n)}).bind("click."+this.widgetName,function(n){if(g._preventClickEvent){g._preventClickEvent=false;n.stopImmediatePropagation();return false}});if(d.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
d.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(g){g.originalEvent=g.originalEvent||{};if(!g.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(g);this._mouseDownEvent=g;var n=this,q=g.which==1,b=typeof this.options.cancel=="string"?d(g.target).parents().add(g.target).filter(this.options.cancel).length:false;if(!q||b||!this._mouseCapture(g))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)){this._mouseStarted=this._mouseStart(g)!==false;if(!this._mouseStarted){g.preventDefault();return true}}this._mouseMoveDelegate=function(v){return n._mouseMove(v)};this._mouseUpDelegate=function(v){return n._mouseUp(v)};d(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.browser.safari||g.preventDefault();return g.originalEvent.mouseHandled=true}},
_mouseMove:function(g){if(d.browser.msie&&!g.button)return this._mouseUp(g);if(this._mouseStarted){this._mouseDrag(g);return g.preventDefault()}if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,g)!==false)?this._mouseDrag(g):this._mouseUp(g);return!this._mouseStarted},_mouseUp:function(g){d(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=g.target==this._mouseDownEvent.target;this._mouseStop(g)}return false},_mouseDistanceMet:function(g){return Math.max(Math.abs(this._mouseDownEvent.pageX-g.pageX),Math.abs(this._mouseDownEvent.pageY-g.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};d.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
(function(d){d.widget("ui.draggable",d.extend({},d.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy()}},_mouseCapture:function(i){var l=this.options;if(this.helper||l.disabled||d(i.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(i);if(!this.handle)return false;return true},_mouseStart:function(i){var l=this.options;this.helper=this._createHelper(i);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:i.pageX-this.offset.left,top:i.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(i);this.originalPageX=i.pageX;this.originalPageY=i.pageY;l.cursorAt&&this._adjustOffsetFromHelper(l.cursorAt);l.containment&&this._setContainment();this._trigger("start",i);this._cacheHelperProportions();d.ui.ddmanager&&
!l.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,i);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(i,true);return true},_mouseDrag:function(i,l){this.position=this._generatePosition(i);this.positionAbs=this._convertPositionTo("absolute");if(!l){var c=this._uiHash();this._trigger("drag",i,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=
this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,i);return false},_mouseStop:function(i){var l=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)l=d.ui.ddmanager.drop(this,i);if(this.dropped){l=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!l||this.options.revert=="valid"&&l||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,l)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
10),function(){c._trigger("stop",i);c._clear()})}else{this._trigger("stop",i);this._clear()}return false},_getHandle:function(i){var l=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==i.target)l=true});return l},_createHelper:function(i){var l=this.options;i=d.isFunction(l.helper)?d(l.helper.apply(this.element[0],[i])):l.helper=="clone"?this.element.clone():this.element;i.parents("body").length||
i.appendTo(l.appendTo=="parent"?this.element[0].parentNode:l.appendTo);i[0]!=this.element[0]&&!/(fixed|absolute)/.test(i.css("position"))&&i.css("position","absolute");return i},_adjustOffsetFromHelper:function(i){if(i.left!=undefined)this.offset.click.left=i.left+this.margins.left;if(i.right!=undefined)this.offset.click.left=this.helperProportions.width-i.right+this.margins.left;if(i.top!=undefined)this.offset.click.top=i.top+this.margins.top;if(i.bottom!=undefined)this.offset.click.top=this.helperProportions.height-
i.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var i=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){i.left+=this.scrollParent.scrollLeft();i.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)i={top:0,left:0};return{top:i.top+
(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:i.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var i=this.element.position();return{top:i.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:i.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),
10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var i=this.options;if(i.containment=="parent")i.containment=this.helper[0].parentNode;if(i.containment=="document"||i.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(i.containment=="document"?document:
window).width()-this.helperProportions.width-this.margins.left,(d(i.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(i.containment)&&i.containment.constructor!=Array){var l=d(i.containment)[0];if(l){i=d(i.containment).offset();var c=d(l).css("overflow")!="hidden";this.containment=[i.left+(parseInt(d(l).css("borderLeftWidth"),10)||0)+(parseInt(d(l).css("paddingLeft"),10)||
0)-this.margins.left,i.top+(parseInt(d(l).css("borderTopWidth"),10)||0)+(parseInt(d(l).css("paddingTop"),10)||0)-this.margins.top,i.left+(c?Math.max(l.scrollWidth,l.offsetWidth):l.offsetWidth)-(parseInt(d(l).css("borderLeftWidth"),10)||0)-(parseInt(d(l).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(c?Math.max(l.scrollHeight,l.offsetHeight):l.offsetHeight)-(parseInt(d(l).css("borderTopWidth"),10)||0)-(parseInt(d(l).css("paddingBottom"),10)||0)-this.helperProportions.height-
this.margins.top]}}else if(i.containment.constructor==Array)this.containment=i.containment},_convertPositionTo:function(i,l){if(!l)l=this.position;var c=i=="absolute"?1:-1,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,m=/(html|body)/i.test(h[0].tagName);return{top:l.top+this.offset.relative.top*c+this.offset.parent.top*c-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition==
"fixed"?-this.scrollParent.scrollTop():m?0:h.scrollTop())*c),left:l.left+this.offset.relative.left*c+this.offset.parent.left*c-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():m?0:h.scrollLeft())*c)}},_generatePosition:function(i){var l=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(c[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var m=i.pageX,r=i.pageY;if(this.originalPosition){if(this.containment){if(i.pageX-this.offset.click.left<this.containment[0])m=this.containment[0]+this.offset.click.left;if(i.pageY-this.offset.click.top<this.containment[1])r=this.containment[1]+this.offset.click.top;if(i.pageX-this.offset.click.left>this.containment[2])m=this.containment[2]+
this.offset.click.left;if(i.pageY-this.offset.click.top>this.containment[3])r=this.containment[3]+this.offset.click.top}if(l.grid){r=this.originalPageY+Math.round((r-this.originalPageY)/l.grid[1])*l.grid[1];r=this.containment?!(r-this.offset.click.top<this.containment[1]||r-this.offset.click.top>this.containment[3])?r:!(r-this.offset.click.top<this.containment[1])?r-l.grid[1]:r+l.grid[1]:r;m=this.originalPageX+Math.round((m-this.originalPageX)/l.grid[0])*l.grid[0];m=this.containment?!(m-this.offset.click.left<
this.containment[0]||m-this.offset.click.left>this.containment[2])?m:!(m-this.offset.click.left<this.containment[0])?m-l.grid[0]:m+l.grid[0]:m}}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:c.scrollTop()),left:m-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?
-this.scrollParent.scrollLeft():h?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(i,l,c){c=c||this._uiHash();d.ui.plugin.call(this,i,[l,c]);if(i=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.widget.prototype._trigger.call(this,i,l,c)},plugins:{},_uiHash:function(){return{helper:this.helper,
position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));d.extend(d.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,
snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});d.ui.plugin.add("draggable","connectToSortable",{start:function(i,l){var c=d(this).data("draggable"),h=c.options,m=d.extend({},l,{item:c.element});c.sortables=[];d(h.connectToSortable).each(function(){var r=d.data(this,"sortable");if(r&&!r.options.disabled){c.sortables.push({instance:r,shouldRevert:r.options.revert});r._refreshItems();r._trigger("activate",i,m)}})},stop:function(i,l){var c=d(this).data("draggable"),h=d.extend({},
l,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(i);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",i,h)}})},drag:function(i,l){var c=
d(this).data("draggable"),h=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(h).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return l.helper[0]};
i.target=this.instance.currentItem[0];this.instance._mouseCapture(i,true);this.instance._mouseStart(i,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",i);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&
this.instance._mouseDrag(i)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",i,this.instance._uiHash(this.instance));this.instance._mouseStop(i,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",i);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",
{start:function(){var i=d("body"),l=d(this).data("draggable").options;if(i.css("cursor"))l._cursor=i.css("cursor");i.css("cursor",l.cursor)},stop:function(){var i=d(this).data("draggable").options;i._cursor&&d("body").css("cursor",i._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){var i=d(this).data("draggable").options;d(i.iframeFix===true?"iframe":i.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+
"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(i,l){var c=d(l.helper),h=d(this).data("draggable").options;if(c.css("opacity"))h._opacity=c.css("opacity");c.css("opacity",h.opacity)},stop:function(i,l){var c=d(this).data("draggable").options;c._opacity&&d(l.helper).css("opacity",
c._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var i=d(this).data("draggable");if(i.scrollParent[0]!=document&&i.scrollParent[0].tagName!="HTML")i.overflowOffset=i.scrollParent.offset()},drag:function(i){var l=d(this).data("draggable"),c=l.options,h=false;if(l.scrollParent[0]!=document&&l.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x")if(l.overflowOffset.top+l.scrollParent[0].offsetHeight-i.pageY<c.scrollSensitivity)l.scrollParent[0].scrollTop=h=l.scrollParent[0].scrollTop+
c.scrollSpeed;else if(i.pageY-l.overflowOffset.top<c.scrollSensitivity)l.scrollParent[0].scrollTop=h=l.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(l.overflowOffset.left+l.scrollParent[0].offsetWidth-i.pageX<c.scrollSensitivity)l.scrollParent[0].scrollLeft=h=l.scrollParent[0].scrollLeft+c.scrollSpeed;else if(i.pageX-l.overflowOffset.left<c.scrollSensitivity)l.scrollParent[0].scrollLeft=h=l.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(i.pageY-d(document).scrollTop()<
c.scrollSensitivity)h=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(i.pageY-d(document).scrollTop())<c.scrollSensitivity)h=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(i.pageX-d(document).scrollLeft()<c.scrollSensitivity)h=d(document).scrollLeft(d(document).scrollLeft()-c.scrollSpeed);else if(d(window).width()-(i.pageX-d(document).scrollLeft())<c.scrollSensitivity)h=d(document).scrollLeft(d(document).scrollLeft()+
c.scrollSpeed)}h!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(l,i)}});d.ui.plugin.add("draggable","snap",{start:function(){var i=d(this).data("draggable"),l=i.options;i.snapElements=[];d(l.snap.constructor!=String?l.snap.items||":data(draggable)":l.snap).each(function(){var c=d(this),h=c.offset();this!=i.element[0]&&i.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:h.top,left:h.left})})},drag:function(i,l){for(var c=d(this).data("draggable"),
h=c.options,m=h.snapTolerance,r=l.offset.left,A=r+c.helperProportions.width,g=l.offset.top,n=g+c.helperProportions.height,q=c.snapElements.length-1;q>=0;q--){var b=c.snapElements[q].left,v=b+c.snapElements[q].width,C=c.snapElements[q].top,B=C+c.snapElements[q].height;if(b-m<r&&r<v+m&&C-m<g&&g<B+m||b-m<r&&r<v+m&&C-m<n&&n<B+m||b-m<A&&A<v+m&&C-m<g&&g<B+m||b-m<A&&A<v+m&&C-m<n&&n<B+m){if(h.snapMode!="inner"){var E=Math.abs(C-n)<=m,H=Math.abs(B-g)<=m,F=Math.abs(b-A)<=m,J=Math.abs(v-r)<=m;if(E)l.position.top=
c._convertPositionTo("relative",{top:C-c.helperProportions.height,left:0}).top-c.margins.top;if(H)l.position.top=c._convertPositionTo("relative",{top:B,left:0}).top-c.margins.top;if(F)l.position.left=c._convertPositionTo("relative",{top:0,left:b-c.helperProportions.width}).left-c.margins.left;if(J)l.position.left=c._convertPositionTo("relative",{top:0,left:v}).left-c.margins.left}var U=E||H||F||J;if(h.snapMode!="outer"){E=Math.abs(C-g)<=m;H=Math.abs(B-n)<=m;F=Math.abs(b-r)<=m;J=Math.abs(v-A)<=m;if(E)l.position.top=
c._convertPositionTo("relative",{top:C,left:0}).top-c.margins.top;if(H)l.position.top=c._convertPositionTo("relative",{top:B-c.helperProportions.height,left:0}).top-c.margins.top;if(F)l.position.left=c._convertPositionTo("relative",{top:0,left:b}).left-c.margins.left;if(J)l.position.left=c._convertPositionTo("relative",{top:0,left:v-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[q].snapping&&(E||H||F||J||U))c.options.snap.snap&&c.options.snap.snap.call(c.element,i,d.extend(c._uiHash(),
{snapItem:c.snapElements[q].item}));c.snapElements[q].snapping=E||H||F||J||U}else{c.snapElements[q].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,i,d.extend(c._uiHash(),{snapItem:c.snapElements[q].item}));c.snapElements[q].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var i=d(this).data("draggable").options,l=d.makeArray(d(i.stack.group)).sort(function(c,h){return(parseInt(d(c).css("zIndex"),10)||i.stack.min)-(parseInt(d(h).css("zIndex"),10)||
i.stack.min)});d(l).each(function(c){this.style.zIndex=i.stack.min+c});this[0].style.zIndex=i.stack.min+l.length}});d.ui.plugin.add("draggable","zIndex",{start:function(i,l){var c=d(l.helper),h=d(this).data("draggable").options;if(c.css("zIndex"))h._zIndex=c.css("zIndex");c.css("zIndex",h.zIndex)},stop:function(i,l){var c=d(this).data("draggable").options;c._zIndex&&d(l.helper).css("zIndex",c._zIndex)}})})(jQuery);jQuery.ui||function(d){function i(g,n,q,b){function v(B){B=d[g][n][B]||[];return typeof B=="string"?B.split(/,?\s+/):B}var C=v("getter");if(b.length==1&&typeof b[0]=="string")C=C.concat(v("getterSetter"));return d.inArray(q,C)!=-1}var l=d.fn.remove,c=d.browser.mozilla&&parseFloat(d.browser.version)<1.9;d.ui={version:"1.7.2",plugin:{add:function(g,n,q){g=d.ui[g].prototype;for(var b in q){g.plugins[b]=g.plugins[b]||[];g.plugins[b].push([n,q[b]])}},call:function(g,n,q){if((n=g.plugins[n])&&g.element[0].parentNode)for(var b=
0;b<n.length;b++)g.options[n[b][0]]&&n[b][1].apply(g.element,q)}},contains:function(g,n){return document.compareDocumentPosition?g.compareDocumentPosition(n)&16:g!==n&&g.contains(n)},hasScroll:function(g,n){if(d(g).css("overflow")=="hidden")return false;var q=n&&n=="left"?"scrollLeft":"scrollTop",b=false;if(g[q]>0)return true;g[q]=1;b=g[q]>0;g[q]=0;return b},isOverAxis:function(g,n,q){return g>n&&g<n+q},isOver:function(g,n,q,b,v,C){return d.ui.isOverAxis(g,q,v)&&d.ui.isOverAxis(n,b,C)},keyCode:{BACKSPACE:8,
CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(c){var h=d.attr,m=d.fn.removeAttr,r=/^aria-/,A=/^wairole:/;d.attr=function(g,n,q){var b=q!==undefined;return n=="role"?b?h.call(this,g,n,"wairole:"+q):(h.apply(this,arguments)||"").replace(A,""):r.test(n)?b?g.setAttributeNS("http://www.w3.org/2005/07/aaa",
n.replace(r,"aaa:"),q):h.call(this,g,n.replace(r,"aaa:")):h.apply(this,arguments)};d.fn.removeAttr=function(g){return r.test(g)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",g.replace(r,""))}):m.call(this,g)}}d.fn.extend({remove:function(){d("*",this).add(this).each(function(){d(this).triggerHandler("remove")});return l.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var g;g=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,
"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?d(document):g}});d.extend(d.expr[":"],{data:function(g,n,q){return!!d.data(g,q[3])},focusable:function(g){var n=g.nodeName.toLowerCase(),q=d.attr(g,"tabindex");return(/input|select|textarea|button|object/.test(n)?!g.disabled:"a"==n||"area"==n?g.href||!isNaN(q):!isNaN(q))&&!d(g)["area"==n?"parents":"closest"](":hidden").length},tabbable:function(g){var n=d.attr(g,"tabindex");
return(isNaN(n)||n>=0)&&d(g).is(":focusable")}});d.widget=function(g,n){var q=g.split(".")[0];g=g.split(".")[1];d.fn[g]=function(b){var v=typeof b=="string",C=Array.prototype.slice.call(arguments,1);if(v&&b.substring(0,1)=="_")return this;if(v&&i(q,g,b,C)){var B=d.data(this[0],g);return B?B[b].apply(B,C):undefined}return this.each(function(){var E=d.data(this,g);!E&&!v&&d.data(this,g,new d[q][g](this,b))._init();E&&v&&d.isFunction(E[b])&&E[b].apply(E,C)})};d[q]=d[q]||{};d[q][g]=function(b,v){var C=
this;this.namespace=q;this.widgetName=g;this.widgetEventPrefix=d[q][g].eventPrefix||g;this.widgetBaseClass=q+"-"+g;this.options=d.extend({},d.widget.defaults,d[q][g].defaults,d.metadata&&d.metadata.get(b)[g],v);this.element=d(b).bind("setData."+g,function(B,E,H){if(B.target==b)return C._setData(E,H)}).bind("getData."+g,function(B,E){if(B.target==b)return C._getData(E)}).bind("remove",function(){return C.destroy()})};d[q][g].prototype=d.extend({},d.widget.prototype,n);d[q][g].getterSetter="option"};
d.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(g,n){var q=g,b=this;if(typeof g=="string"){if(n===undefined)return this._getData(g);q={};q[g]=n}d.each(q,function(v,C){b._setData(v,C)})},_getData:function(g){return this.options[g]},_setData:function(g,n){this.options[g]=n;if(g=="disabled")this.element[n?"addClass":"removeClass"](this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",n)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(g,n,q){var b=this.options[g];g=g==this.widgetEventPrefix?g:this.widgetEventPrefix+g;n=d.Event(n);n.type=g;if(n.originalEvent){g=d.event.props.length;for(var v;g;){v=d.event.props[--g];n[v]=n.originalEvent[v]}}this.element.trigger(n,q);return!(d.isFunction(b)&&b.call(this.element[0],n,q)===false||n.isDefaultPrevented())}};
d.widget.defaults={disabled:false};d.ui.mouse={_mouseInit:function(){var g=this;this.element.bind("mousedown."+this.widgetName,function(n){return g._mouseDown(n)}).bind("click."+this.widgetName,function(n){if(g._preventClickEvent){g._preventClickEvent=false;n.stopImmediatePropagation();return false}});if(d.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
d.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(g){g.originalEvent=g.originalEvent||{};if(!g.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(g);this._mouseDownEvent=g;var n=this,q=g.which==1,b=typeof this.options.cancel=="string"?d(g.target).parents().add(g.target).filter(this.options.cancel).length:false;if(!q||b||!this._mouseCapture(g))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)){this._mouseStarted=this._mouseStart(g)!==false;if(!this._mouseStarted){g.preventDefault();return true}}this._mouseMoveDelegate=function(v){return n._mouseMove(v)};this._mouseUpDelegate=function(v){return n._mouseUp(v)};d(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.browser.safari||g.preventDefault();return g.originalEvent.mouseHandled=true}},
_mouseMove:function(g){if(d.browser.msie&&!g.button)return this._mouseUp(g);if(this._mouseStarted){this._mouseDrag(g);return g.preventDefault()}if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,g)!==false)?this._mouseDrag(g):this._mouseUp(g);return!this._mouseStarted},_mouseUp:function(g){d(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=g.target==this._mouseDownEvent.target;this._mouseStop(g)}return false},_mouseDistanceMet:function(g){return Math.max(Math.abs(this._mouseDownEvent.pageX-g.pageX),Math.abs(this._mouseDownEvent.pageY-g.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};d.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);(function(d){d.widget("ui.resizable",d.extend({},d.ui.mouse,{_init:function(){var c=this,h=this.options;this.element.addClass("ui-resizable");d.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&d.browser.opera&&this.element.css({position:"relative",
top:"auto",left:"auto"});this.element.wrap(d('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),
marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=
h.handles||(!d(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var m=this.handles.split(",");this.handles={};for(var r=0;r<m.length;r++){var A=d.trim(m[r]),g=d('<div class="ui-resizable-handle '+("ui-resizable-"+A)+'"></div>');/sw|se|ne|nw/.test(A)&&
g.css({zIndex:++h.zIndex});"se"==A&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[A]=".ui-resizable-"+A;this.element.append(g)}}this._renderAxis=function(n){n=n||this.element;for(var q in this.handles){if(this.handles[q].constructor==String)this.handles[q]=d(this.handles[q],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var b=d(this.handles[q],this.element),v=0;v=/sw|ne|nw|se|n|s/.test(q)?b.outerHeight():b.outerWidth();
b=["padding",/ne|nw|n/.test(q)?"Top":/se|sw|s/.test(q)?"Bottom":/^e$/.test(q)?"Right":"Left"].join("");n.css(b,v);this._proportionallyResize()}d(this.handles[q])}};this._renderAxis(this.element);this._handles=d(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!c.resizing){if(this.className)var n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);c.axis=n&&n[1]?n[1]:"se"}});if(h.autoHide){this._handles.hide();d(this.element).addClass("ui-resizable-autohide").hover(function(){d(this).removeClass("ui-resizable-autohide");
c._handles.show()},function(){if(!c.resizing){d(this).addClass("ui-resizable-autohide");c._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var c=function(m){d(m).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){c(this.element);var h=this.element;h.parent().append(this.originalElement.css({position:h.css("position"),width:h.outerWidth(),height:h.outerHeight(),
top:h.css("top"),left:h.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);c(this.originalElement)},_mouseCapture:function(c){var h=false,m;for(m in this.handles)if(d(this.handles[m])[0]==c.target)h=true;return this.options.disabled||!!h},_mouseStart:function(c){var h=this.options,m=this.element.position(),r=this.element;this.resizing=true;this.documentScroll={top:d(document).scrollTop(),left:d(document).scrollLeft()};if(r.is(".ui-draggable")||/absolute/.test(r.css("position")))r.css({position:"absolute",
top:m.top,left:m.left});d.browser.opera&&/relative/.test(r.css("position"))&&r.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();m=i(this.helper.css("left"));var A=i(this.helper.css("top"));if(h.containment){m+=d(h.containment).scrollLeft()||0;A+=d(h.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:m,top:A};this.size=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()};this.originalSize=this._helper?{width:r.outerWidth(),
height:r.outerHeight()}:{width:r.width(),height:r.height()};this.originalPosition={left:m,top:A};this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()};this.originalMousePosition={left:c.pageX,top:c.pageY};this.aspectRatio=typeof h.aspectRatio=="number"?h.aspectRatio:this.originalSize.width/this.originalSize.height||1;h=d(".ui-resizable-"+this.axis).css("cursor");d("body").css("cursor",h=="auto"?this.axis+"-resize":h);r.addClass("ui-resizable-resizing");this._propagate("start",
c);return true},_mouseDrag:function(c){var h=this.helper,m=this.originalMousePosition,r=this._change[this.axis];if(!r)return false;m=r.apply(this,[c,c.pageX-m.left||0,c.pageY-m.top||0]);if(this._aspectRatio||c.shiftKey)m=this._updateRatio(m,c);m=this._respectSize(m,c);this._propagate("resize",c);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();
this._updateCache(m);this._trigger("resize",c,this.ui());return false},_mouseStop:function(c){this.resizing=false;var h=this.options;if(this._helper){var m=this._proportionallyResizeElements,r=m.length&&/textarea/i.test(m[0].nodeName);m=r&&d.ui.hasScroll(m[0],"left")?0:this.sizeDiff.height;r={width:this.size.width-(r?0:this.sizeDiff.width),height:this.size.height-m};m=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var A=parseInt(this.element.css("top"),
10)+(this.position.top-this.originalPosition.top)||null;h.animate||this.element.css(d.extend(r,{top:A,left:m}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!h.animate&&this._proportionallyResize()}d("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",c);this._helper&&this.helper.remove();return false},_updateCache:function(c){this.offset=this.helper.offset();if(l(c.left))this.position.left=c.left;if(l(c.top))this.position.top=
c.top;if(l(c.height))this.size.height=c.height;if(l(c.width))this.size.width=c.width},_updateRatio:function(c){var h=this.position,m=this.size,r=this.axis;if(c.height)c.width=m.height*this.aspectRatio;else if(c.width)c.height=m.width/this.aspectRatio;if(r=="sw"){c.left=h.left+(m.width-c.width);c.top=null}if(r=="nw"){c.top=h.top+(m.height-c.height);c.left=h.left+(m.width-c.width)}return c},_respectSize:function(c){var h=this.options,m=this.axis,r=l(c.width)&&h.maxWidth&&h.maxWidth<c.width,A=l(c.height)&&
h.maxHeight&&h.maxHeight<c.height,g=l(c.width)&&h.minWidth&&h.minWidth>c.width,n=l(c.height)&&h.minHeight&&h.minHeight>c.height;if(g)c.width=h.minWidth;if(n)c.height=h.minHeight;if(r)c.width=h.maxWidth;if(A)c.height=h.maxHeight;var q=this.originalPosition.left+this.originalSize.width,b=this.position.top+this.size.height,v=/sw|nw|w/.test(m);m=/nw|ne|n/.test(m);if(g&&v)c.left=q-h.minWidth;if(r&&v)c.left=q-h.maxWidth;if(n&&m)c.top=b-h.minHeight;if(A&&m)c.top=b-h.maxHeight;if((h=!c.width&&!c.height)&&
!c.left&&c.top)c.top=null;else if(h&&!c.top&&c.left)c.left=null;return c},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var c=this.helper||this.element,h=0;h<this._proportionallyResizeElements.length;h++){var m=this._proportionallyResizeElements[h];if(!this.borderDif){var r=[m.css("borderTopWidth"),m.css("borderRightWidth"),m.css("borderBottomWidth"),m.css("borderLeftWidth")],A=[m.css("paddingTop"),m.css("paddingRight"),m.css("paddingBottom"),m.css("paddingLeft")];
this.borderDif=d.map(r,function(g,n){var q=parseInt(g,10)||0,b=parseInt(A[n],10)||0;return q+b})}d.browser.msie&&(d(c).is(":hidden")||d(c).parents(":hidden").length)||m.css({height:c.height()-this.borderDif[0]-this.borderDif[2]||0,width:c.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var c=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||d('<div style="overflow:hidden;"></div>');var h=d.browser.msie&&d.browser.version<7,m=
h?1:0;h=h?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-m+"px",top:this.elementOffset.top-m+"px",zIndex:++c.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(c,h){return{width:this.originalSize.width+h}},w:function(c,h){return{left:this.originalPosition.left+h,width:this.originalSize.width-h}},n:function(c,h,m){return{top:this.originalPosition.top+
m,height:this.originalSize.height-m}},s:function(c,h,m){return{height:this.originalSize.height+m}},se:function(c,h,m){return d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[c,h,m]))},sw:function(c,h,m){return d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[c,h,m]))},ne:function(c,h,m){return d.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[c,h,m]))},nw:function(c,h,m){return d.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,
[c,h,m]))}},_propagate:function(c,h){d.ui.plugin.call(this,c,[h,this.ui()]);c!="resize"&&this._trigger(c,h,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));d.extend(d.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,
autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3}});d.ui.plugin.add("resizable","alsoResize",{start:function(){var c=d(this).data("resizable").options;_store=function(h){d(h).each(function(){d(this).data("resizable-alsoresize",{width:parseInt(d(this).width(),10),height:parseInt(d(this).height(),10),left:parseInt(d(this).css("left"),10),top:parseInt(d(this).css("top"),
10)})})};if(typeof c.alsoResize=="object"&&!c.alsoResize.parentNode)if(c.alsoResize.length){c.alsoResize=c.alsoResize[0];_store(c.alsoResize)}else d.each(c.alsoResize,function(h){_store(h)});else _store(c.alsoResize)},resize:function(){var c=d(this).data("resizable"),h=c.options,m=c.originalSize,r=c.originalPosition,A={height:c.size.height-m.height||0,width:c.size.width-m.width||0,top:c.position.top-r.top||0,left:c.position.left-r.left||0},g=function(n,q){d(n).each(function(){var b=d(this),v=d(this).data("resizable-alsoresize"),
C={};d.each((q&&q.length?q:["width","height","top","left"])||["width","height","top","left"],function(B,E){var H=(v[E]||0)+(A[E]||0);if(H&&H>=0)C[E]=H||null});if(/relative/.test(b.css("position"))&&d.browser.opera){c._revertToRelativePosition=true;b.css({position:"absolute",top:"auto",left:"auto"})}b.css(C)})};typeof h.alsoResize=="object"&&!h.alsoResize.nodeType?d.each(h.alsoResize,function(n,q){g(n,q)}):g(h.alsoResize)},stop:function(){var c=d(this).data("resizable");if(c._revertToRelativePosition&&
d.browser.opera){c._revertToRelativePosition=false;el.css({position:"relative"})}d(this).removeData("resizable-alsoresize-start")}});d.ui.plugin.add("resizable","animate",{stop:function(c){var h=d(this).data("resizable"),m=h.options,r=h._proportionallyResizeElements,A=r.length&&/textarea/i.test(r[0].nodeName),g=A&&d.ui.hasScroll(r[0],"left")?0:h.sizeDiff.height;A={width:h.size.width-(A?0:h.sizeDiff.width),height:h.size.height-g};g=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||
null;var n=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null;h.element.animate(d.extend(A,n&&g?{top:n,left:g}:{}),{duration:m.animateDuration,easing:m.animateEasing,step:function(){var q={width:parseInt(h.element.css("width"),10),height:parseInt(h.element.css("height"),10),top:parseInt(h.element.css("top"),10),left:parseInt(h.element.css("left"),10)};r&&r.length&&d(r[0]).css({width:q.width,height:q.height});h._updateCache(q);h._propagate("resize",c)}})}});d.ui.plugin.add("resizable",
"containment",{start:function(){var c=d(this).data("resizable"),h=c.element,m=c.options.containment;if(h=m instanceof d?m.get(0):/parent/.test(m)?h.parent().get(0):m){c.containerElement=d(h);if(/document/.test(m)||m==document){c.containerOffset={left:0,top:0};c.containerPosition={left:0,top:0};c.parentData={element:d(document),left:0,top:0,width:d(document).width(),height:d(document).height()||document.body.parentNode.scrollHeight}}else{var r=d(h),A=[];d(["Top","Right","Left","Bottom"]).each(function(q,
b){A[q]=i(r.css("padding"+b))});c.containerOffset=r.offset();c.containerPosition=r.position();c.containerSize={height:r.innerHeight()-A[3],width:r.innerWidth()-A[1]};m=c.containerOffset;var g=c.containerSize.height,n=c.containerSize.width;n=d.ui.hasScroll(h,"left")?h.scrollWidth:n;g=d.ui.hasScroll(h)?h.scrollHeight:g;c.parentData={element:h,left:m.left,top:m.top,width:n,height:g}}}},resize:function(c){var h=d(this).data("resizable"),m=h.options,r=h.containerOffset,A=h.position;c=h._aspectRatio||c.shiftKey;
var g={top:0,left:0},n=h.containerElement;if(n[0]!=document&&/static/.test(n.css("position")))g=r;if(A.left<(h._helper?r.left:0)){h.size.width+=h._helper?h.position.left-r.left:h.position.left-g.left;if(c)h.size.height=h.size.width/m.aspectRatio;h.position.left=m.helper?r.left:0}if(A.top<(h._helper?r.top:0)){h.size.height+=h._helper?h.position.top-r.top:h.position.top;if(c)h.size.width=h.size.height*m.aspectRatio;h.position.top=h._helper?r.top:0}h.offset.left=h.parentData.left+h.position.left;h.offset.top=
h.parentData.top+h.position.top;m=Math.abs((h._helper?h.offset.left-g.left:h.offset.left-g.left)+h.sizeDiff.width);r=Math.abs((h._helper?h.offset.top-g.top:h.offset.top-r.top)+h.sizeDiff.height);A=h.containerElement.get(0)==h.element.parent().get(0);g=/relative|absolute/.test(h.containerElement.css("position"));if(A&&g)m-=h.parentData.left;if(m+h.size.width>=h.parentData.width){h.size.width=h.parentData.width-m;if(c)h.size.height=h.size.width/h.aspectRatio}if(r+h.size.height>=h.parentData.height){h.size.height=
h.parentData.height-r;if(c)h.size.width=h.size.height*h.aspectRatio}},stop:function(){var c=d(this).data("resizable"),h=c.options,m=c.containerOffset,r=c.containerPosition,A=c.containerElement,g=d(c.helper),n=g.offset(),q=g.outerWidth()-c.sizeDiff.width;g=g.outerHeight()-c.sizeDiff.height;c._helper&&!h.animate&&/relative/.test(A.css("position"))&&d(this).css({left:n.left-r.left-m.left,width:q,height:g});c._helper&&!h.animate&&/static/.test(A.css("position"))&&d(this).css({left:n.left-r.left-m.left,
width:q,height:g})}});d.ui.plugin.add("resizable","ghost",{start:function(){var c=d(this).data("resizable"),h=c.options,m=c.size;c.ghost=c.originalElement.clone();c.ghost.css({opacity:0.25,display:"block",position:"relative",height:m.height,width:m.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");c.ghost.appendTo(c.helper)},resize:function(){var c=d(this).data("resizable");c.ghost&&c.ghost.css({position:"relative",height:c.size.height,width:c.size.width})},
stop:function(){var c=d(this).data("resizable");c.ghost&&c.helper&&c.helper.get(0).removeChild(c.ghost.get(0))}});d.ui.plugin.add("resizable","grid",{resize:function(){var c=d(this).data("resizable"),h=c.options,m=c.size,r=c.originalSize,A=c.originalPosition,g=c.axis;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var n=Math.round((m.width-r.width)/(h.grid[0]||1))*(h.grid[0]||1);h=Math.round((m.height-r.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(g)){c.size.width=r.width+n;c.size.height=
r.height+h}else if(/^(ne)$/.test(g)){c.size.width=r.width+n;c.size.height=r.height+h;c.position.top=A.top-h}else{if(/^(sw)$/.test(g)){c.size.width=r.width+n;c.size.height=r.height+h}else{c.size.width=r.width+n;c.size.height=r.height+h;c.position.top=A.top-h}c.position.left=A.left-n}}});var i=function(c){return parseInt(c,10)||0},l=function(c){return!isNaN(parseInt(c,10))}})(jQuery);(function(d){d.widget("ui.draggable",d.extend({},d.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy()}},_mouseCapture:function(i){var l=this.options;if(this.helper||l.disabled||d(i.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(i);if(!this.handle)return false;return true},_mouseStart:function(i){var l=this.options;this.helper=this._createHelper(i);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:i.pageX-this.offset.left,top:i.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(i);this.originalPageX=i.pageX;this.originalPageY=i.pageY;l.cursorAt&&this._adjustOffsetFromHelper(l.cursorAt);l.containment&&this._setContainment();this._trigger("start",i);this._cacheHelperProportions();d.ui.ddmanager&&
!l.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,i);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(i,true);return true},_mouseDrag:function(i,l){this.position=this._generatePosition(i);this.positionAbs=this._convertPositionTo("absolute");if(!l){var c=this._uiHash();this._trigger("drag",i,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=
this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,i);return false},_mouseStop:function(i){var l=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)l=d.ui.ddmanager.drop(this,i);if(this.dropped){l=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!l||this.options.revert=="valid"&&l||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,l)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
10),function(){c._trigger("stop",i);c._clear()})}else{this._trigger("stop",i);this._clear()}return false},_getHandle:function(i){var l=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==i.target)l=true});return l},_createHelper:function(i){var l=this.options;i=d.isFunction(l.helper)?d(l.helper.apply(this.element[0],[i])):l.helper=="clone"?this.element.clone():this.element;i.parents("body").length||
i.appendTo(l.appendTo=="parent"?this.element[0].parentNode:l.appendTo);i[0]!=this.element[0]&&!/(fixed|absolute)/.test(i.css("position"))&&i.css("position","absolute");return i},_adjustOffsetFromHelper:function(i){if(i.left!=undefined)this.offset.click.left=i.left+this.margins.left;if(i.right!=undefined)this.offset.click.left=this.helperProportions.width-i.right+this.margins.left;if(i.top!=undefined)this.offset.click.top=i.top+this.margins.top;if(i.bottom!=undefined)this.offset.click.top=this.helperProportions.height-
i.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var i=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){i.left+=this.scrollParent.scrollLeft();i.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)i={top:0,left:0};return{top:i.top+
(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:i.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var i=this.element.position();return{top:i.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:i.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),
10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var i=this.options;if(i.containment=="parent")i.containment=this.helper[0].parentNode;if(i.containment=="document"||i.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(i.containment=="document"?document:
window).width()-this.helperProportions.width-this.margins.left,(d(i.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(i.containment)&&i.containment.constructor!=Array){var l=d(i.containment)[0];if(l){i=d(i.containment).offset();var c=d(l).css("overflow")!="hidden";this.containment=[i.left+(parseInt(d(l).css("borderLeftWidth"),10)||0)+(parseInt(d(l).css("paddingLeft"),10)||
0)-this.margins.left,i.top+(parseInt(d(l).css("borderTopWidth"),10)||0)+(parseInt(d(l).css("paddingTop"),10)||0)-this.margins.top,i.left+(c?Math.max(l.scrollWidth,l.offsetWidth):l.offsetWidth)-(parseInt(d(l).css("borderLeftWidth"),10)||0)-(parseInt(d(l).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(c?Math.max(l.scrollHeight,l.offsetHeight):l.offsetHeight)-(parseInt(d(l).css("borderTopWidth"),10)||0)-(parseInt(d(l).css("paddingBottom"),10)||0)-this.helperProportions.height-
this.margins.top]}}else if(i.containment.constructor==Array)this.containment=i.containment},_convertPositionTo:function(i,l){if(!l)l=this.position;var c=i=="absolute"?1:-1,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,m=/(html|body)/i.test(h[0].tagName);return{top:l.top+this.offset.relative.top*c+this.offset.parent.top*c-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition==
"fixed"?-this.scrollParent.scrollTop():m?0:h.scrollTop())*c),left:l.left+this.offset.relative.left*c+this.offset.parent.left*c-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():m?0:h.scrollLeft())*c)}},_generatePosition:function(i){var l=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(c[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var m=i.pageX,r=i.pageY;if(this.originalPosition){if(this.containment){if(i.pageX-this.offset.click.left<this.containment[0])m=this.containment[0]+this.offset.click.left;if(i.pageY-this.offset.click.top<this.containment[1])r=this.containment[1]+this.offset.click.top;if(i.pageX-this.offset.click.left>this.containment[2])m=this.containment[2]+
this.offset.click.left;if(i.pageY-this.offset.click.top>this.containment[3])r=this.containment[3]+this.offset.click.top}if(l.grid){r=this.originalPageY+Math.round((r-this.originalPageY)/l.grid[1])*l.grid[1];r=this.containment?!(r-this.offset.click.top<this.containment[1]||r-this.offset.click.top>this.containment[3])?r:!(r-this.offset.click.top<this.containment[1])?r-l.grid[1]:r+l.grid[1]:r;m=this.originalPageX+Math.round((m-this.originalPageX)/l.grid[0])*l.grid[0];m=this.containment?!(m-this.offset.click.left<
this.containment[0]||m-this.offset.click.left>this.containment[2])?m:!(m-this.offset.click.left<this.containment[0])?m-l.grid[0]:m+l.grid[0]:m}}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:c.scrollTop()),left:m-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?
-this.scrollParent.scrollLeft():h?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(i,l,c){c=c||this._uiHash();d.ui.plugin.call(this,i,[l,c]);if(i=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.widget.prototype._trigger.call(this,i,l,c)},plugins:{},_uiHash:function(){return{helper:this.helper,
position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));d.extend(d.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,
snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});d.ui.plugin.add("draggable","connectToSortable",{start:function(i,l){var c=d(this).data("draggable"),h=c.options,m=d.extend({},l,{item:c.element});c.sortables=[];d(h.connectToSortable).each(function(){var r=d.data(this,"sortable");if(r&&!r.options.disabled){c.sortables.push({instance:r,shouldRevert:r.options.revert});r._refreshItems();r._trigger("activate",i,m)}})},stop:function(i,l){var c=d(this).data("draggable"),h=d.extend({},
l,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(i);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",i,h)}})},drag:function(i,l){var c=
d(this).data("draggable"),h=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(h).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return l.helper[0]};
i.target=this.instance.currentItem[0];this.instance._mouseCapture(i,true);this.instance._mouseStart(i,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",i);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&
this.instance._mouseDrag(i)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",i,this.instance._uiHash(this.instance));this.instance._mouseStop(i,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",i);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",
{start:function(){var i=d("body"),l=d(this).data("draggable").options;if(i.css("cursor"))l._cursor=i.css("cursor");i.css("cursor",l.cursor)},stop:function(){var i=d(this).data("draggable").options;i._cursor&&d("body").css("cursor",i._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){var i=d(this).data("draggable").options;d(i.iframeFix===true?"iframe":i.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+
"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(i,l){var c=d(l.helper),h=d(this).data("draggable").options;if(c.css("opacity"))h._opacity=c.css("opacity");c.css("opacity",h.opacity)},stop:function(i,l){var c=d(this).data("draggable").options;c._opacity&&d(l.helper).css("opacity",
c._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var i=d(this).data("draggable");if(i.scrollParent[0]!=document&&i.scrollParent[0].tagName!="HTML")i.overflowOffset=i.scrollParent.offset()},drag:function(i){var l=d(this).data("draggable"),c=l.options,h=false;if(l.scrollParent[0]!=document&&l.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x")if(l.overflowOffset.top+l.scrollParent[0].offsetHeight-i.pageY<c.scrollSensitivity)l.scrollParent[0].scrollTop=h=l.scrollParent[0].scrollTop+
c.scrollSpeed;else if(i.pageY-l.overflowOffset.top<c.scrollSensitivity)l.scrollParent[0].scrollTop=h=l.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(l.overflowOffset.left+l.scrollParent[0].offsetWidth-i.pageX<c.scrollSensitivity)l.scrollParent[0].scrollLeft=h=l.scrollParent[0].scrollLeft+c.scrollSpeed;else if(i.pageX-l.overflowOffset.left<c.scrollSensitivity)l.scrollParent[0].scrollLeft=h=l.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(i.pageY-d(document).scrollTop()<
c.scrollSensitivity)h=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(i.pageY-d(document).scrollTop())<c.scrollSensitivity)h=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(i.pageX-d(document).scrollLeft()<c.scrollSensitivity)h=d(document).scrollLeft(d(document).scrollLeft()-c.scrollSpeed);else if(d(window).width()-(i.pageX-d(document).scrollLeft())<c.scrollSensitivity)h=d(document).scrollLeft(d(document).scrollLeft()+
c.scrollSpeed)}h!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(l,i)}});d.ui.plugin.add("draggable","snap",{start:function(){var i=d(this).data("draggable"),l=i.options;i.snapElements=[];d(l.snap.constructor!=String?l.snap.items||":data(draggable)":l.snap).each(function(){var c=d(this),h=c.offset();this!=i.element[0]&&i.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:h.top,left:h.left})})},drag:function(i,l){for(var c=d(this).data("draggable"),
h=c.options,m=h.snapTolerance,r=l.offset.left,A=r+c.helperProportions.width,g=l.offset.top,n=g+c.helperProportions.height,q=c.snapElements.length-1;q>=0;q--){var b=c.snapElements[q].left,v=b+c.snapElements[q].width,C=c.snapElements[q].top,B=C+c.snapElements[q].height;if(b-m<r&&r<v+m&&C-m<g&&g<B+m||b-m<r&&r<v+m&&C-m<n&&n<B+m||b-m<A&&A<v+m&&C-m<g&&g<B+m||b-m<A&&A<v+m&&C-m<n&&n<B+m){if(h.snapMode!="inner"){var E=Math.abs(C-n)<=m,H=Math.abs(B-g)<=m,F=Math.abs(b-A)<=m,J=Math.abs(v-r)<=m;if(E)l.position.top=
c._convertPositionTo("relative",{top:C-c.helperProportions.height,left:0}).top-c.margins.top;if(H)l.position.top=c._convertPositionTo("relative",{top:B,left:0}).top-c.margins.top;if(F)l.position.left=c._convertPositionTo("relative",{top:0,left:b-c.helperProportions.width}).left-c.margins.left;if(J)l.position.left=c._convertPositionTo("relative",{top:0,left:v}).left-c.margins.left}var U=E||H||F||J;if(h.snapMode!="outer"){E=Math.abs(C-g)<=m;H=Math.abs(B-n)<=m;F=Math.abs(b-r)<=m;J=Math.abs(v-A)<=m;if(E)l.position.top=
c._convertPositionTo("relative",{top:C,left:0}).top-c.margins.top;if(H)l.position.top=c._convertPositionTo("relative",{top:B-c.helperProportions.height,left:0}).top-c.margins.top;if(F)l.position.left=c._convertPositionTo("relative",{top:0,left:b}).left-c.margins.left;if(J)l.position.left=c._convertPositionTo("relative",{top:0,left:v-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[q].snapping&&(E||H||F||J||U))c.options.snap.snap&&c.options.snap.snap.call(c.element,i,d.extend(c._uiHash(),
{snapItem:c.snapElements[q].item}));c.snapElements[q].snapping=E||H||F||J||U}else{c.snapElements[q].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,i,d.extend(c._uiHash(),{snapItem:c.snapElements[q].item}));c.snapElements[q].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var i=d(this).data("draggable").options,l=d.makeArray(d(i.stack.group)).sort(function(c,h){return(parseInt(d(c).css("zIndex"),10)||i.stack.min)-(parseInt(d(h).css("zIndex"),10)||
i.stack.min)});d(l).each(function(c){this.style.zIndex=i.stack.min+c});this[0].style.zIndex=i.stack.min+l.length}});d.ui.plugin.add("draggable","zIndex",{start:function(i,l){var c=d(l.helper),h=d(this).data("draggable").options;if(c.css("zIndex"))h._zIndex=c.css("zIndex");c.css("zIndex",h.zIndex)},stop:function(i,l){var c=d(this).data("draggable").options;c._zIndex&&d(l.helper).css("zIndex",c._zIndex)}})})(jQuery);(function(d){var i=1;d.fn.dropShadow=function(l){var c=d.extend({left:4,top:4,blur:2,opacity:0.5,color:"black",swap:false},l),h=d([]);this.not(".dropShadow").each(function(){var m=d(this),r=[],A=c.blur<=0?0:c.blur,g=A==0?c.opacity:c.opacity/(A*8),n=c.swap?i:i+1,q=c.swap?i+1:i,b;b=this.id?this.id+"_dropShadow":"ds"+(1+Math.floor(9999*Math.random()));d.data(this,"shadowId",b);d.data(this,"shadowOptions",l);m.attr("shadowId",b).css("zIndex",n);m.css("position")!="absolute"&&m.css({position:"relative",
zoom:1});bgColor=m.css("backgroundColor");if(bgColor=="rgba(0, 0, 0, 0)")bgColor="transparent";r[0]=bgColor!="transparent"||m.css("backgroundImage")!="none"||this.nodeName=="SELECT"||this.nodeName=="INPUT"||this.nodeName=="TEXTAREA"?d("<div></div>").css("background",c.color):m.clone().removeAttr("id").removeAttr("name").removeAttr("shadowId").css("color",c.color);r[0].addClass("dropShadow").css({height:m.outerHeight(),left:A,opacity:g,position:"absolute",top:A,width:m.outerWidth(),zIndex:q});g=8*
A+1;for(n=1;n<g;n++)r[n]=r[0].clone();n=1;for(var v=A;v>0;){r[n].css({left:v*2,top:0});r[n+1].css({left:v*4,top:v*2});r[n+2].css({left:v*2,top:v*4});r[n+3].css({left:0,top:v*2});r[n+4].css({left:v*3,top:v});r[n+5].css({left:v*3,top:v*3});r[n+6].css({left:v,top:v*3});r[n+7].css({left:v,top:v});n+=8;v--}var C=d("<div></div>").attr("id",b).addClass("dropShadow").css({left:m.position().left+c.left-A,marginTop:m.css("marginTop"),marginRight:m.css("marginRight"),marginBottom:m.css("marginBottom"),marginLeft:m.css("marginLeft"),
position:"absolute",top:m.position().top+c.top-A,zIndex:q});for(n=0;n<g;n++)C.append(r[n]);m.after(C);h=h.add(C);d(window).resize(function(){try{C.css({left:m.position().left+c.left-A,top:m.position().top+c.top-A})}catch(B){}});i+=2});return this.pushStack(h)};d.fn.redrawShadow=function(){this.removeShadow();return this.each(function(){var l=d.data(this,"shadowOptions");d(this).dropShadow(l)})};d.fn.removeShadow=function(){return this.each(function(){var l=d(this).shadowId();d("div#"+l).remove()})};
d.fn.shadowId=function(){return d.data(this[0],"shadowId")};d(function(){var l="<style type='text/css' media='print'>";l+=".dropShadow{visibility:hidden;}</style>";d("head").append(l)})})(jQuery);(function(d){function i(c){return typeof c=="object"?c:{top:c,left:c}}var l=d.scrollTo=function(c,h,m){d(window).scrollTo(c,h,m)};l.defaults={axis:"xy",duration:parseFloat(d.fn.jquery)>=1.3?0:1};l.window=function(){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){if(!(!this.nodeName||d.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1))return this;var c=(this.contentWindow||this).document||this.ownerDocument||this;return d.browser.safari||
c.compatMode=="BackCompat"?c.body:c.documentElement})};d.fn.scrollTo=function(c,h,m){if(typeof h=="object"){m=h;h=0}if(typeof m=="function")m={onAfter:m};if(c=="max")c=9E9;m=d.extend({},l.defaults,m);h=h||m.speed||m.duration;m.queue=m.queue&&m.axis.length>1;if(m.queue)h/=2;m.offset=i(m.offset);m.over=i(m.over);return this._scrollable().each(function(){function r(C){g.animate(b,h,m.easing,C&&function(){C.call(this,c,m)})}var A=this,g=d(A),n=c,q,b={},v=g.is("html,body");switch(typeof n){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(n)){n=
i(n);break}n=d(n,this);case "object":if(n.is||n.style)q=(n=d(n)).offset()}d.each(m.axis.split(""),function(C,B){var E=B=="x"?"Left":"Top",H=E.toLowerCase(),F="scroll"+E,J=A[F],U=l.max(A,B);if(q){b[F]=q[H]+(v?0:J-g.offset()[H]);if(m.margin){b[F]-=parseInt(n.css("margin"+E))||0;b[F]-=parseInt(n.css("border"+E+"Width"))||0}b[F]+=m.offset[H]||0;if(m.over[H])b[F]+=n[B=="x"?"width":"height"]()*m.over[H]}else{E=n[H];b[F]=E.slice&&E.slice(-1)=="%"?parseFloat(E)/100*U:E}if(/^\d+$/.test(b[F]))b[F]=b[F]<=0?
0:Math.min(b[F],U);if(!C&&m.queue){J!=b[F]&&r(m.onAfterFirst);delete b[F]}});r(m.onAfter)}).end()};l.max=function(c,h){var m=h=="x"?"Width":"Height",r="scroll"+m;if(!d(c).is("html,body"))return c[r]-d(c)[m.toLowerCase()]();m="client"+m;var A=c.ownerDocument.documentElement,g=c.ownerDocument.body;return Math.max(A[r],g[r])-Math.min(A[m],g[m])}})(jQuery);(function(d){d.extend(d.fx.step,{backgroundPosition:function(i){function l(h){h=h.replace(/left|top/g,"0px");h=h.replace(/right|bottom/g,"100%");h=h.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");h=h.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(h[1],10),h[2],parseFloat(h[3],10),h[4]]}if(i.state===0&&typeof i.end=="string"){var c=d.curCSS(i.elem,"backgroundPosition");c=l(c);i.start=[c[0],c[2]];c=l(i.end);i.end=[c[0],c[2]];i.unit=[c[1],c[3]]}c=[];c[0]=(i.end[0]-i.start[0])*
i.pos+i.start[0]+i.unit[0];c[1]=(i.end[1]-i.start[1])*i.pos+i.start[1]+i.unit[1];i.elem.style.backgroundPosition=c[0]+" "+c[1]}})})(jQuery);(function(d){function i(q){q=parseInt(q).toString(16);return q.length<2?"0"+q:q}function l(q){for(;q;){var b=d.css(q,"backgroundColor");if(b&&b!="transparent"&&b!="rgba(0, 0, 0, 0)"){if(b.indexOf("rgb")>=0){q=b.match(/\d+/g);return"#"+i(q[0])+i(q[1])+i(q[2])}return b}if(q.nodeName.toLowerCase()=="html")break;q=q.parentNode}return"#ffffff"}function c(q,b,v){switch(q){case "round":return Math.round(v*(1-Math.cos(Math.asin(b/v))));case "cool":return Math.round(v*(1+Math.cos(Math.asin(b/v))));case "sharp":return Math.round(v*
(1-Math.cos(Math.acos(b/v))));case "bite":return Math.round(v*Math.cos(Math.asin((v-b-1)/v)));case "slide":return Math.round(v*Math.atan2(b,v/b));case "jut":return Math.round(v*Math.atan2(v,v-b-1));case "curl":return Math.round(v*Math.atan(b));case "tear":return Math.round(v*Math.cos(b));case "wicked":return Math.round(v*Math.tan(b));case "long":return Math.round(v*Math.sqrt(b));case "sculpt":return Math.round(v*Math.log(v-b-1,v));case "dogfold":case "dog":return b&1?b+1:v;case "dog2":return b&2?
b+1:v;case "dog3":return b&3?b+1:v;case "fray":return b%2*v;case "notch":return v;case "bevelfold":case "bevel":return b+1}}var h=document.createElement("div").style,m=h.MozBorderRadius!==undefined,r=h.WebkitBorderRadius!==undefined,A=h.borderRadius!==undefined||h.BorderRadius!==undefined;h=document.documentMode||0;var g=d.browser.msie&&(d.browser.version<8&&!h||h<8),n=d.browser.msie&&function(){var q=document.createElement("div");try{q.style.setExpression("width","0+0");q.style.removeExpression("width")}catch(b){return false}return true}();
d.fn.corner=function(q){if(this.length==0){if(!d.isReady&&this.selector){var b=this.selector,v=this.context;d(function(){d(b,v).corner(q)})}return this}return this.each(function(){var C=d(this),B=[C.attr(d.fn.corner.defaults.metaAttr)||"",q||""].join(" ").toLowerCase(),E=/keep/.test(B),H=(B.match(/cc:(#[0-9a-f]+)/)||[])[1],F=(B.match(/sc:(#[0-9a-f]+)/)||[])[1],J=parseInt((B.match(/(\d+)px/)||[])[1])||10,U=(B.match(/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/)||
["round"])[0],ba=/dogfold|bevelfold/.test(B),aa={T:0,B:1};B={TL:/top|tl|left/.test(B),TR:/top|tr|right/.test(B),BL:/bottom|bl|left/.test(B),BR:/bottom|br|right/.test(B)};if(!B.TL&&!B.TR&&!B.BL&&!B.BR)B={TL:1,TR:1,BL:1,BR:1};if(d.fn.corner.defaults.useNative&&U=="round"&&(A||m||r)&&!H&&!F){if(B.TL)C.css(A?"border-top-left-radius":m?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",J+"px");if(B.TR)C.css(A?"border-top-right-radius":m?"-moz-border-radius-topright":"-webkit-border-top-right-radius",
J+"px");if(B.BL)C.css(A?"border-bottom-left-radius":m?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",J+"px");if(B.BR)C.css(A?"border-bottom-right-radius":m?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",J+"px")}else{C=document.createElement("div");d(C).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:F||"transparent",borderStyle:"solid"});F={T:parseInt(d.css(this,"paddingTop"))||0,R:parseInt(d.css(this,"paddingRight"))||
0,B:parseInt(d.css(this,"paddingBottom"))||0,L:parseInt(d.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!E)this.style.border="none";C.style.borderColor=H||l(this.parentNode);E=d(this).outerHeight();for(var Y in aa)if((H=aa[Y])&&(B.BL||B.BR)||!H&&(B.TL||B.TR)){C.style.borderStyle="none "+(B[Y+"R"]?"solid":"none")+" none "+(B[Y+"L"]?"solid":"none");var R=document.createElement("div");d(R).addClass("jquery-corner");var M=R.style;H?this.appendChild(R):this.insertBefore(R,
this.firstChild);if(H&&E!="auto"){if(d.css(this,"position")=="static")this.style.position="relative";M.position="absolute";M.bottom=M.left=M.padding=M.margin="0";if(n)M.setExpression("width","this.parentNode.offsetWidth");else M.width="100%"}else if(!H&&d.browser.msie){if(d.css(this,"position")=="static")this.style.position="relative";M.position="absolute";M.top=M.left=M.right=M.padding=M.margin="0";if(n){var S=(parseInt(d.css(this,"borderLeftWidth"))||0)+(parseInt(d.css(this,"borderRightWidth"))||
0);M.setExpression("width","this.parentNode.offsetWidth - "+S+'+ "px"')}else M.width="100%"}else{M.position="relative";M.margin=!H?"-"+F.T+"px -"+F.R+"px "+(F.T-J)+"px -"+F.L+"px":F.B-J+"px -"+F.R+"px -"+F.B+"px -"+F.L+"px"}for(M=0;M<J;M++){S=Math.max(0,c(U,M,J));var Z=C.cloneNode(false);Z.style.borderWidth="0 "+(B[Y+"R"]?S:0)+"px 0 "+(B[Y+"L"]?S:0)+"px";H?R.appendChild(Z):R.insertBefore(Z,R.firstChild)}if(ba&&d.support.boxModel)if(!(H&&g))for(var V in B)if(B[V])if(!(H&&(V=="TL"||V=="TR")))if(!(!H&&
(V=="BL"||V=="BR"))){M={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:C.style.borderColor};S=d("<div/>").css(M).css({width:J+"px",height:"1px"});switch(V){case "TL":S.css({bottom:0,left:0});break;case "TR":S.css({bottom:0,right:0});break;case "BL":S.css({top:0,left:0});break;case "BR":S.css({top:0,right:0})}R.appendChild(S[0]);M=d("<div/>").css(M).css({top:0,bottom:0,width:"1px",height:J+"px"});switch(V){case "TL":M.css({left:J});break;case "TR":M.css({right:J});
break;case "BL":M.css({left:J});break;case "BR":M.css({right:J})}R.appendChild(M[0])}}}})};d.fn.uncorner=function(){if(A||m||r)this.css(A?"border-radius":m?"-moz-border-radius":"-webkit-border-radius",0);d("div.jquery-corner",this).remove();return this};d.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);

