(function(){function c(f,l){l.src?i.ajax({url:l.src,async:false,dataType:"script"}):i.globalEval(l.text||l.textContent||l.innerHTML||"");l.parentNode&&l.parentNode.removeChild(l)}function d(f,l){return f[0]&&parseInt(i.curCSS(f[0],l,true),10)||0}function g(){return false}function a(){return true}function b(f){var l=RegExp("(^|\\.)"+f.type+"(\\.|$)"),m=true,p=[];i.each(i.data(this,"events").live||[],function(s,u){if(l.test(u.type)){var B=i(f.target).closest(u.data)[0];B&&p.push({elem:B,fn:u})}});p.sort(function(s,
u){return i.data(s.elem,"closest")-i.data(u.elem,"closest")});i.each(p,function(){if(this.fn.call(this.elem,f,this.fn.data)===false)return m=false});return m}function e(f,l){return["live",f,l.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function h(){if(!O){O=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);i.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);i.ready()}});document.documentElement.doScroll&&j==j.top&&function(){if(!i.isReady){try{document.documentElement.doScroll("left")}catch(f){setTimeout(arguments.callee,0);return}i.ready()}}()}i.event.add(j,"load",i.ready)}}function k(f,l){var m={};i.each(ca.concat.apply([],ca.slice(0,l)),function(){m[this]=f});return m}var j=this,n=j.jQuery,q=j.$,i=j.jQuery=j.$=function(f,l){return new i.fn.init(f,
l)},x=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,A=/^.[^:#\[\.,]*$/;i.fn=i.prototype={init:function(f,l){f=f||document;if(f.nodeType){this[0]=f;this.length=1;this.context=f;return this}if(typeof f==="string"){var m=x.exec(f);if(m&&(m[1]||!l))if(m[1])f=i.clean([m[1]],l);else{var p=document.getElementById(m[3]);if(p&&p.id!=m[3])return i().find(f);m=i(p||[]);m.context=document;m.selector=f;return m}else return i(l).find(f)}else if(i.isFunction(f))return i(document).ready(f);if(f.selector&&f.context){this.selector=
f.selector;this.context=f.context}return this.setArray(i.isArray(f)?f:i.makeArray(f))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(f){return f===void 0?Array.prototype.slice.call(this):this[f]},pushStack:function(f,l,m){f=i(f);f.prevObject=this;f.context=this.context;if(l==="find")f.selector=this.selector+(this.selector?" ":"")+m;else if(l)f.selector=this.selector+"."+l+"("+m+")";return f},setArray:function(f){this.length=0;Array.prototype.push.apply(this,f);return this},
each:function(f,l){return i.each(this,f,l)},index:function(f){return i.inArray(f&&f.jquery?f[0]:f,this)},attr:function(f,l,m){var p=f;if(typeof f==="string")if(l===void 0)return this[0]&&i[m||"attr"](this[0],f);else{p={};p[f]=l}return this.each(function(s){for(f in p)i.attr(m?this.style:this,f,i.prop(this,p[f],m,s,f))})},css:function(f,l){if((f=="width"||f=="height")&&parseFloat(l)<0)l=void 0;return this.attr(f,l,"curCSS")},text:function(f){if(typeof f!=="object"&&f!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(f));var l="";i.each(f||this,function(){i.each(this.childNodes,function(){if(this.nodeType!=8)l+=this.nodeType!=1?this.nodeValue:i.fn.text([this])})});return l},wrapAll:function(f){if(this[0]){f=i(f,this[0].ownerDocument).clone();this[0].parentNode&&f.insertBefore(this[0]);f.map(function(){for(var l=this;l.firstChild;)l=l.firstChild;return l}).append(this)}return this},wrapInner:function(f){return this.each(function(){i(this).contents().wrapAll(f)})},
wrap:function(f){return this.each(function(){i(this).wrapAll(f)})},append:function(){return this.domManip(arguments,true,function(f){this.nodeType==1&&this.appendChild(f)})},prepend:function(){return this.domManip(arguments,true,function(f){this.nodeType==1&&this.insertBefore(f,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(f){this.parentNode.insertBefore(f,this)})},after:function(){return this.domManip(arguments,false,function(f){this.parentNode.insertBefore(f,
this.nextSibling)})},end:function(){return this.prevObject||i([])},push:[].push,sort:[].sort,splice:[].splice,find:function(f){if(this.length===1){var l=this.pushStack([],"find",f);l.length=0;i.find(f,this[0],l);return l}else return this.pushStack(i.unique(i.map(this,function(m){return i.find(f,m)})),"find",f)},clone:function(f){var l=this.map(function(){if(!i.support.noCloneEvent&&!i.isXMLDoc(this)){var s=this.outerHTML;if(!s){s=this.ownerDocument.createElement("div");s.appendChild(this.cloneNode(true));
s=s.innerHTML}return i.clean([s.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(f===true){var m=this.find("*").andSelf(),p=0;l.find("*").andSelf().each(function(){if(this.nodeName===m[p].nodeName){var s=i.data(m[p],"events");for(var u in s)for(var B in s[u])i.event.add(this,u,s[u][B],s[u][B].data);p++}})}return l},filter:function(f){return this.pushStack(i.isFunction(f)&&i.grep(this,function(l,m){return f.call(l,m)})||i.multiFilter(f,i.grep(this,
function(l){return l.nodeType===1})),"filter",f)},closest:function(f){var l=i.expr.match.POS.test(f)?i(f):null,m=0;return this.map(function(){for(var p=this;p&&p.ownerDocument;){if(l?l.index(p)>-1:i(p).is(f)){i.data(p,"closest",m);return p}p=p.parentNode;m++}})},not:function(f){if(typeof f==="string")if(A.test(f))return this.pushStack(i.multiFilter(f,this,true),"not",f);else f=i.multiFilter(f,this);var l=f.length&&f[f.length-1]!==void 0&&!f.nodeType;return this.filter(function(){return l?i.inArray(this,
f)<0:this!=f})},add:function(f){return this.pushStack(i.unique(i.merge(this.get(),typeof f==="string"?i(f):i.makeArray(f))))},is:function(f){return!!f&&i.multiFilter(f,this).length>0},hasClass:function(f){return!!f&&this.is("."+f)},val:function(f){if(f===void 0){var l=this[0];if(l){if(i.nodeName(l,"option"))return(l.attributes.value||{}).specified?l.value:l.text;if(i.nodeName(l,"select")){var m=l.selectedIndex,p=[],s=l.options;l=l.type=="select-one";if(m<0)return null;var u=l?m:0;for(m=l?m+1:s.length;u<
m;u++){var B=s[u];if(B.selected){f=i(B).val();if(l)return f;p.push(f)}}return p}return(l.value||"").replace(/\r/g,"")}}else{if(typeof f==="number")f+="";return this.each(function(){if(this.nodeType==1)if(i.isArray(f)&&/radio|checkbox/.test(this.type))this.checked=i.inArray(this.value,f)>=0||i.inArray(this.name,f)>=0;else if(i.nodeName(this,"select")){var D=i.makeArray(f);i("option",this).each(function(){this.selected=i.inArray(this.value,D)>=0||i.inArray(this.text,D)>=0});if(!D.length)this.selectedIndex=
-1}else this.value=f})}},html:function(f){return f===void 0?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(f)},replaceWith:function(f){return this.after(f).remove()},eq:function(f){return this.slice(f,+f+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(f){return this.pushStack(i.map(this,function(l,m){return f.call(l,m,l)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(f,l,m){if(this[0]){var p=(this[0].ownerDocument||this[0]).createDocumentFragment();f=i.clean(f,this[0].ownerDocument||this[0],p);var s=p.firstChild;if(s)for(var u=0,B=this.length;u<B;u++)m.call(l&&i.nodeName(this[u],"table")&&i.nodeName(s,"tr")?this[u].getElementsByTagName("tbody")[0]||this[u].appendChild(this[u].ownerDocument.createElement("tbody")):this[u],this.length>1||u>0?p.cloneNode(true):p);f&&i.each(f,c)}return this}};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var f=
arguments[0]||{},l=1,m=arguments.length,p=false,s;if(typeof f==="boolean"){p=f;f=arguments[1]||{};l=2}if(typeof f!=="object"&&!i.isFunction(f))f={};if(m==l){f=this;--l}for(;l<m;l++)if((s=arguments[l])!=null)for(var u in s){var B=f[u],D=s[u];if(f!==D)if(p&&D&&typeof D==="object"&&!D.nodeType)f[u]=i.extend(p,B||(D.length!=null?[]:{}),D);else if(D!==void 0)f[u]=D}return f};var z=/z-?index|font-?weight|opacity|zoom|line-?height/i,E=document.defaultView||{},G=Object.prototype.toString;i.extend({noConflict:function(f){j.$=
q;if(f)j.jQuery=n;return i},isFunction:function(f){return G.call(f)==="[object Function]"},isArray:function(f){return G.call(f)==="[object Array]"},isXMLDoc:function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&i.isXMLDoc(f.ownerDocument)},globalEval:function(f){if(f&&/\S/.test(f)){var l=document.getElementsByTagName("head")[0]||document.documentElement,m=document.createElement("script");m.type="text/javascript";if(i.support.scriptEval)m.appendChild(document.createTextNode(f));
else m.text=f;l.insertBefore(m,l.firstChild);l.removeChild(m)}},nodeName:function(f,l){return f.nodeName&&f.nodeName.toUpperCase()==l.toUpperCase()},each:function(f,l,m){var p,s=0,u=f.length;if(m)if(u===void 0)for(p in f){if(l.apply(f[p],m)===false)break}else for(;s<u;){if(l.apply(f[s++],m)===false)break}else if(u===void 0)for(p in f){if(l.call(f[p],p,f[p])===false)break}else for(m=f[0];s<u&&l.call(m,s,m)!==false;m=f[++s]);return f},prop:function(f,l,m,p,s){if(i.isFunction(l))l=l.call(f,p);return typeof l===
"number"&&m=="curCSS"&&!z.test(s)?l+"px":l},className:{add:function(f,l){i.each((l||"").split(/\s+/),function(m,p){if(f.nodeType==1&&!i.className.has(f.className,p))f.className+=(f.className?" ":"")+p})},remove:function(f,l){if(f.nodeType==1)f.className=l!==void 0?i.grep(f.className.split(/\s+/),function(m){return!i.className.has(l,m)}).join(" "):""},has:function(f,l){return f&&i.inArray(l,(f.className||f).toString().split(/\s+/))>-1}},swap:function(f,l,m){var p={};for(var s in l){p[s]=f.style[s];
f.style[s]=l[s]}m.call(f);for(s in l)f.style[s]=p[s]},css:function(f,l,m,p){if(l=="width"||l=="height"){var s;m={position:"absolute",visibility:"hidden",display:"block"};var u=l=="width"?["Left","Right"]:["Top","Bottom"],B=function(){s=l=="width"?f.offsetWidth:f.offsetHeight;p!=="border"&&i.each(u,function(){p||(s-=parseFloat(i.curCSS(f,"padding"+this,true))||0);if(p==="margin")s+=parseFloat(i.curCSS(f,"margin"+this,true))||0;else s-=parseFloat(i.curCSS(f,"border"+this+"Width",true))||0})};f.offsetWidth!==
0?B():i.swap(f,m,B);return Math.max(0,Math.round(s))}return i.curCSS(f,l,m)},curCSS:function(f,l,m){var p,s=f.style;if(l=="opacity"&&!i.support.opacity){p=i.attr(s,"opacity");return p==""?"1":p}if(l.match(/float/i))l=R;if(!m&&s&&s[l])p=s[l];else if(E.getComputedStyle){if(l.match(/float/i))l="float";l=l.replace(/([A-Z])/g,"-$1").toLowerCase();if(f=E.getComputedStyle(f,null))p=f.getPropertyValue(l);if(l=="opacity"&&p=="")p="1"}else if(f.currentStyle){p=l.replace(/\-(\w)/g,function(u,B){return B.toUpperCase()});
p=f.currentStyle[l]||f.currentStyle[p];if(!/^\d+(px)?$/i.test(p)&&/^\d/.test(p)){l=s.left;m=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;s.left=p||0;p=s.pixelLeft+"px";s.left=l;f.runtimeStyle.left=m}}return p},clean:function(f,l,m){l=l||document;if(typeof l.createElement==="undefined")l=l.ownerDocument||l[0]&&l[0].ownerDocument||document;if(!m&&f.length===1&&typeof f[0]==="string"){var p=/^<(\w+)\s*\/?>$/.exec(f[0]);if(p)return[l.createElement(p[1])]}var s=[];p=[];var u=l.createElement("div");
i.each(f,function(B,D){if(typeof D==="number")D+="";if(D){if(typeof D==="string"){D=D.replace(/(<(\w+)[^>]*?)\/>/g,function(T,X,J){return J.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:X+"></"+J+">"});var L=D.replace(/^\s+/,"").substring(0,10).toLowerCase(),M=!L.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!L.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||L.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!L.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!L.indexOf("<td")||!L.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!L.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!i.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(u.innerHTML=M[1]+D+M[2];M[0]--;)u=u.lastChild;if(!i.support.tbody){var N=/<tbody/i.test(D);L=!L.indexOf("<table")&&!N?u.firstChild&&u.firstChild.childNodes:M[1]=="<table>"&&!N?u.childNodes:[];for(M=L.length-1;M>=0;--M)i.nodeName(L[M],"tbody")&&
!L[M].childNodes.length&&L[M].parentNode.removeChild(L[M])}!i.support.leadingWhitespace&&/^\s/.test(D)&&u.insertBefore(l.createTextNode(D.match(/^\s*/)[0]),u.firstChild);D=i.makeArray(u.childNodes)}if(D.nodeType)s.push(D);else s=i.merge(s,D)}});if(m){for(f=0;s[f];f++)if(i.nodeName(s[f],"script")&&(!s[f].type||s[f].type.toLowerCase()==="text/javascript"))p.push(s[f].parentNode?s[f].parentNode.removeChild(s[f]):s[f]);else{s[f].nodeType===1&&s.splice.apply(s,[f+1,0].concat(i.makeArray(s[f].getElementsByTagName("script"))));
m.appendChild(s[f])}return p}return s},attr:function(f,l,m){if(!(!f||f.nodeType==3||f.nodeType==8)){var p=!i.isXMLDoc(f),s=m!==void 0;l=p&&i.props[l]||l;if(f.tagName){var u=/href|src|style/.test(l);if(l in f&&p&&!u){if(s){if(l=="type"&&i.nodeName(f,"input")&&f.parentNode)throw"type property can't be changed";f[l]=m}if(i.nodeName(f,"form")&&f.getAttributeNode(l))return f.getAttributeNode(l).nodeValue;if(l=="tabIndex")return(l=f.getAttributeNode("tabIndex"))&&l.specified?l.value:f.nodeName.match(/(button|input|object|select|textarea)/i)?
0:f.nodeName.match(/^(a|area)$/i)&&f.href?0:void 0;return f[l]}if(!i.support.style&&p&&l=="style")return i.attr(f.style,"cssText",m);s&&f.setAttribute(l,""+m);f=!i.support.hrefNormalized&&p&&u?f.getAttribute(l,2):f.getAttribute(l);return f===null?void 0:f}if(!i.support.opacity&&l=="opacity"){if(s){f.zoom=1;f.filter=(f.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(m)+""=="NaN"?"":"alpha(opacity="+m*100+")")}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(f.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}l=l.replace(/-([a-z])/ig,function(B,D){return D.toUpperCase()});if(s)f[l]=m;return f[l]}},trim:function(f){return(f||"").replace(/^\s+|\s+$/g,"")},makeArray:function(f){var l=[];if(f!=null){var m=f.length;if(m==null||typeof f==="string"||i.isFunction(f)||f.setInterval)l[0]=f;else for(;m;)l[--m]=f[m]}return l},inArray:function(f,l){for(var m=0,p=l.length;m<p;m++)if(l[m]===f)return m;return-1},merge:function(f,l){var m=0,p,s=f.length;if(i.support.getAll)for(;(p=l[m++])!=null;)f[s++]=p;else for(;(p=
l[m++])!=null;)if(p.nodeType!=8)f[s++]=p;return f},unique:function(f){var l=[],m={};try{for(var p=0,s=f.length;p<s;p++){var u=i.data(f[p]);if(!m[u]){m[u]=true;l.push(f[p])}}}catch(B){l=f}return l},grep:function(f,l,m){for(var p=[],s=0,u=f.length;s<u;s++)!m!=!l(f[s],s)&&p.push(f[s]);return p},map:function(f,l){for(var m=[],p=0,s=f.length;p<s;p++){var u=l(f[p],p);if(u!=null)m[m.length]=u}return m.concat.apply([],m)}});var H=navigator.userAgent.toLowerCase();i.browser={version:(H.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(H),opera:/opera/.test(H),msie:/msie/.test(H)&&!/opera/.test(H),mozilla:/mozilla/.test(H)&&!/(compatible|webkit)/.test(H)};i.each({parent:function(f){return f.parentNode},parents:function(f){return i.dir(f,"parentNode")},next:function(f){return i.nth(f,2,"nextSibling")},prev:function(f){return i.nth(f,2,"previousSibling")},nextAll:function(f){return i.dir(f,"nextSibling")},prevAll:function(f){return i.dir(f,"previousSibling")},siblings:function(f){return i.sibling(f.parentNode.firstChild,
f)},children:function(f){return i.sibling(f.firstChild)},contents:function(f){return i.nodeName(f,"iframe")?f.contentDocument||f.contentWindow.document:i.makeArray(f.childNodes)}},function(f,l){i.fn[f]=function(m){var p=i.map(this,l);if(m&&typeof m=="string")p=i.multiFilter(m,p);return this.pushStack(i.unique(p),f,m)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,l){i.fn[f]=function(m){for(var p=[],s=i(m),u=0,B=s.length;u<
B;u++){var D=(u>0?this.clone(true):this).get();i.fn[l].apply(i(s[u]),D);p=p.concat(D)}return this.pushStack(p,f,m)}});i.each({removeAttr:function(f){i.attr(this,f,"");this.nodeType==1&&this.removeAttribute(f)},addClass:function(f){i.className.add(this,f)},removeClass:function(f){i.className.remove(this,f)},toggleClass:function(f,l){if(typeof l!=="boolean")l=!i.className.has(this,f);i.className[l?"add":"remove"](this,f)},remove:function(f){if(!f||i.filter(f,[this]).length){i("*",this).add([this]).each(function(){i.event.remove(this);
i.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(i(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(f,l){i.fn[f]=function(){return this.each(l,arguments)}});var K="jQuery"+ +new Date,P=0,U={};i.extend({cache:{},data:function(f,l,m){f=f==j?U:f;var p=f[K];p||(p=f[K]=++P);if(l&&!i.cache[p])i.cache[p]={};if(m!==void 0)i.cache[p][l]=m;return l?i.cache[p][l]:p},removeData:function(f,l){f=f==j?U:f;var m=f[K];if(l){if(i.cache[m]){delete i.cache[m][l];
l="";for(l in i.cache[m])break;l||i.removeData(f)}}else{try{delete f[K]}catch(p){f.removeAttribute&&f.removeAttribute(K)}delete i.cache[m]}},queue:function(f,l,m){if(f){l=(l||"fx")+"queue";var p=i.data(f,l);if(!p||i.isArray(m))p=i.data(f,l,i.makeArray(m));else m&&p.push(m)}return p},dequeue:function(f,l){var m=i.queue(f,l),p=m.shift();if(!l||l==="fx")p=m[0];p!==void 0&&p.call(f)}});i.fn.extend({data:function(f,l){var m=f.split(".");m[1]=m[1]?"."+m[1]:"";if(l===void 0){var p=this.triggerHandler("getData"+
m[1]+"!",[m[0]]);if(p===void 0&&this.length)p=i.data(this[0],f);return p===void 0&&m[1]?this.data(m[0]):p}else return this.trigger("setData"+m[1]+"!",[m[0],l]).each(function(){i.data(this,f,l)})},removeData:function(f){return this.each(function(){i.removeData(this,f)})},queue:function(f,l){if(typeof f!=="string"){l=f;f="fx"}if(l===void 0)return i.queue(this[0],f);return this.each(function(){var m=i.queue(this,f,l);f=="fx"&&m.length==1&&m[0].call(this)})},dequeue:function(f){return this.each(function(){i.dequeue(this,
f)})}});(function(){function f(o,r,v,w,y,C){y=0;for(var I=w.length;y<I;y++){var F=w[y];if(F){if(o=="previousSibling"&&!C&&F.nodeType===1){F.sizcache=v;F.sizset=y}F=F[o];for(var Q=false;F;){if(F.sizcache===v){Q=w[F.sizset];break}if(F.nodeType===1&&!C){F.sizcache=v;F.sizset=y}if(F.nodeName===r){Q=F;break}F=F[o]}w[y]=Q}}}function l(o,r,v,w,y,C){y=0;for(var I=w.length;y<I;y++){var F=w[y];if(F){if(o=="previousSibling"&&!C&&F.nodeType===1){F.sizcache=v;F.sizset=y}F=F[o];for(var Q=false;F;){if(F.sizcache===
v){Q=w[F.sizset];break}if(F.nodeType===1){if(!C){F.sizcache=v;F.sizset=y}if(typeof r!=="string"){if(F===r){Q=true;break}}else if(u.filter(r,[F]).length>0){Q=F;break}}F=F[o]}w[y]=Q}}}var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,p=0,s=Object.prototype.toString,u=function(o,r,v,w){v=v||[];r=r||document;if(r.nodeType!==1&&r.nodeType!==9)return[];if(!o||typeof o!=="string")return v;var y=[],C,I,F,Q=true;for(m.lastIndex=0;(C=
m.exec(o))!==null;){y.push(C[1]);if(C[2]){F=RegExp.rightContext;break}}if(y.length>1&&D.exec(o))if(y.length===2&&B.relative[y[0]])C=Z(y[0]+y[1],r);else for(C=B.relative[y[0]]?[r]:u(y.shift(),r);y.length;){o=y.shift();if(B.relative[o])o+=y.shift();C=Z(o,C)}else{C=w?{expr:y.pop(),set:M(w)}:u.find(y.pop(),y.length===1&&r.parentNode?r.parentNode:r,J(r));C=u.filter(C.expr,C.set);if(y.length>0)I=M(C);else Q=false;for(;y.length;){var ba=y.pop(),Y=ba;if(B.relative[ba])Y=y.pop();else ba="";if(Y==null)Y=r;
B.relative[ba](I,Y,J(r))}}I||(I=C);if(!I)throw"Syntax error, unrecognized expression: "+(ba||o);if(s.call(I)==="[object Array]")if(Q)if(r.nodeType===1)for(o=0;I[o]!=null;o++){if(I[o]&&(I[o]===true||I[o].nodeType===1&&X(r,I[o])))v.push(C[o])}else for(o=0;I[o]!=null;o++)I[o]&&I[o].nodeType===1&&v.push(C[o]);else v.push.apply(v,I);else M(I,v);if(F){u(F,r,v,w);if(T){hasDuplicate=false;v.sort(T);if(hasDuplicate)for(o=1;o<v.length;o++)v[o]===v[o-1]&&v.splice(o--,1)}}return v};u.matches=function(o,r){return u(o,
null,null,r)};u.find=function(o,r,v){var w,y;if(!o)return[];for(var C=0,I=B.order.length;C<I;C++){var F=B.order[C];if(y=B.match[F].exec(o)){var Q=RegExp.leftContext;if(Q.substr(Q.length-1)!=="\\"){y[1]=(y[1]||"").replace(/\\/g,"");w=B.find[F](y,r,v);if(w!=null){o=o.replace(B.match[F],"");break}}}}w||(w=r.getElementsByTagName("*"));return{set:w,expr:o}};u.filter=function(o,r,v,w){for(var y=o,C=[],I=r,F,Q,ba=r&&r[0]&&J(r[0]);o&&r.length;){for(var Y in B.filter)if((F=B.match[Y].exec(o))!=null){var ha=
B.filter[Y],da,ea;Q=false;if(I==C)C=[];if(B.preFilter[Y])if(F=B.preFilter[Y](F,I,v,C,w,ba)){if(F===true)continue}else Q=da=true;if(F)for(var fa=0;(ea=I[fa])!=null;fa++)if(ea){da=ha(ea,F,fa,I);var ga=w^!!da;if(v&&da!=null)if(ga)Q=true;else I[fa]=false;else if(ga){C.push(ea);Q=true}}if(da!==void 0){v||(I=C);o=o.replace(B.match[Y],"");if(!Q)return[];break}}if(o==y)if(Q==null)throw"Syntax error, unrecognized expression: "+o;else break;y=o}return I};var B=u.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(o){return o.getAttribute("href")}},
relative:{"+":function(o,r,v){var w=typeof r==="string",y=w&&!/\W/.test(r);w=w&&!y;if(y&&!v)r=r.toUpperCase();v=0;y=o.length;for(var C;v<y;v++)if(C=o[v]){for(;(C=C.previousSibling)&&C.nodeType!==1;);o[v]=w||C&&C.nodeName===r?C||false:C===r}w&&u.filter(r,o,true)},">":function(o,r,v){var w=typeof r==="string";if(w&&!/\W/.test(r)){r=v?r:r.toUpperCase();v=0;for(var y=o.length;v<y;v++){var C=o[v];if(C){w=C.parentNode;o[v]=w.nodeName===r?w:false}}}else{v=0;for(y=o.length;v<y;v++)if(C=o[v])o[v]=w?C.parentNode:
C.parentNode===r;w&&u.filter(r,o,true)}},"":function(o,r,v){var w=p++,y=l;if(!r.match(/\W/)){var C=r=v?r:r.toUpperCase();y=f}y("parentNode",r,w,o,C,v)},"~":function(o,r,v){var w=p++,y=l;if(typeof r==="string"&&!r.match(/\W/)){var C=r=v?r:r.toUpperCase();y=f}y("previousSibling",r,w,o,C,v)}},find:{ID:function(o,r,v){if(typeof r.getElementById!=="undefined"&&!v)return(o=r.getElementById(o[1]))?[o]:[]},NAME:function(o,r){if(typeof r.getElementsByName!=="undefined"){for(var v=[],w=r.getElementsByName(o[1]),
y=0,C=w.length;y<C;y++)w[y].getAttribute("name")===o[1]&&v.push(w[y]);return v.length===0?null:v}},TAG:function(o,r){return r.getElementsByTagName(o[1])}},preFilter:{CLASS:function(o,r,v,w,y,C){o=" "+o[1].replace(/\\/g,"")+" ";if(C)return o;C=0;for(var I;(I=r[C])!=null;C++)if(I)if(y^(I.className&&(" "+I.className+" ").indexOf(o)>=0))v||w.push(I);else if(v)r[C]=false;return false},ID:function(o){return o[1].replace(/\\/g,"")},TAG:function(o,r){for(var v=0;r[v]===false;v++);return r[v]&&J(r[v])?o[1]:
o[1].toUpperCase()},CHILD:function(o){if(o[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(o[2]=="even"&&"2n"||o[2]=="odd"&&"2n+1"||!/\D/.test(o[2])&&"0n+"+o[2]||o[2]);o[2]=r[1]+(r[2]||1)-0;o[3]=r[3]-0}o[0]=p++;return o},ATTR:function(o,r,v,w,y,C){r=o[1].replace(/\\/g,"");if(!C&&B.attrMap[r])o[1]=B.attrMap[r];if(o[2]==="~=")o[4]=" "+o[4]+" ";return o},PSEUDO:function(o,r,v,w,y){if(o[1]==="not")if(o[3].match(m).length>1||/^\w/.test(o[3]))o[3]=u(o[3],null,null,r);else{o=u.filter(o[3],r,v,true^y);v||
w.push.apply(w,o);return false}else if(B.match.POS.test(o[0])||B.match.CHILD.test(o[0]))return true;return o},POS:function(o){o.unshift(true);return o}},filters:{enabled:function(o){return o.disabled===false&&o.type!=="hidden"},disabled:function(o){return o.disabled===true},checked:function(o){return o.checked===true},selected:function(o){return o.selected===true},parent:function(o){return!!o.firstChild},empty:function(o){return!o.firstChild},has:function(o,r,v){return!!u(v[3],o).length},header:function(o){return/h\d/i.test(o.nodeName)},
text:function(o){return"text"===o.type},radio:function(o){return"radio"===o.type},checkbox:function(o){return"checkbox"===o.type},file:function(o){return"file"===o.type},password:function(o){return"password"===o.type},submit:function(o){return"submit"===o.type},image:function(o){return"image"===o.type},reset:function(o){return"reset"===o.type},button:function(o){return"button"===o.type||o.nodeName.toUpperCase()==="BUTTON"},input:function(o){return/input|select|textarea|button/i.test(o.nodeName)}},
setFilters:{first:function(o,r){return r===0},last:function(o,r,v,w){return r===w.length-1},even:function(o,r){return r%2===0},odd:function(o,r){return r%2===1},lt:function(o,r,v){return r<v[3]-0},gt:function(o,r,v){return r>v[3]-0},nth:function(o,r,v){return v[3]-0==r},eq:function(o,r,v){return v[3]-0==r}},filter:{PSEUDO:function(o,r,v,w){var y=r[1],C=B.filters[y];if(C)return C(o,v,r,w);else if(y==="contains")return(o.textContent||o.innerText||"").indexOf(r[3])>=0;else if(y==="not"){r=r[3];v=0;for(w=
r.length;v<w;v++)if(r[v]===o)return false;return true}},CHILD:function(o,r){var v=r[1],w=o;switch(v){case "only":case "first":for(;w=w.previousSibling;)if(w.nodeType===1)return false;if(v=="first")return true;w=o;case "last":for(;w=w.nextSibling;)if(w.nodeType===1)return false;return true;case "nth":v=r[2];var y=r[3];if(v==1&&y==0)return true;var C=r[0],I=o.parentNode;if(I&&(I.sizcache!==C||!o.nodeIndex)){var F=0;for(w=I.firstChild;w;w=w.nextSibling)if(w.nodeType===1)w.nodeIndex=++F;I.sizcache=C}w=
o.nodeIndex-y;return v==0?w==0:w%v==0&&w/v>=0}},ID:function(o,r){return o.nodeType===1&&o.getAttribute("id")===r},TAG:function(o,r){return r==="*"&&o.nodeType===1||o.nodeName===r},CLASS:function(o,r){return(" "+(o.className||o.getAttribute("class"))+" ").indexOf(r)>-1},ATTR:function(o,r){var v=r[1];v=B.attrHandle[v]?B.attrHandle[v](o):o[v]!=null?o[v]:o.getAttribute(v);var w=v+"",y=r[2],C=r[4];return v==null?y==="!=":y==="="?w===C:y==="*="?w.indexOf(C)>=0:y==="~="?(" "+w+" ").indexOf(C)>=0:!C?w&&v!==
false:y==="!="?w!=C:y==="^="?w.indexOf(C)===0:y==="$="?w.substr(w.length-C.length)===C:y==="|="?w===C||w.substr(0,C.length+1)===C+"-":false},POS:function(o,r,v,w){var y=B.setFilters[r[2]];if(y)return y(o,v,r,w)}}},D=B.match.POS;for(var L in B.match)B.match[L]=RegExp(B.match[L].source+/(?![^\[]*\])(?![^\(]*\))/.source);var M=function(o,r){o=Array.prototype.slice.call(o);if(r){r.push.apply(r,o);return r}return o};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){M=function(o,
r){var v=r||[];if(s.call(o)==="[object Array]")Array.prototype.push.apply(v,o);else if(typeof o.length==="number")for(var w=0,y=o.length;w<y;w++)v.push(o[w]);else for(w=0;o[w];w++)v.push(o[w]);return v}}var T;if(document.documentElement.compareDocumentPosition)T=function(o,r){var v=o.compareDocumentPosition(r)&4?-1:o===r?0:1;if(v===0)hasDuplicate=true;return v};else if("sourceIndex"in document.documentElement)T=function(o,r){var v=o.sourceIndex-r.sourceIndex;if(v===0)hasDuplicate=true;return v};else if(document.createRange)T=
function(o,r){var v=o.ownerDocument.createRange(),w=r.ownerDocument.createRange();v.selectNode(o);v.collapse(true);w.selectNode(r);w.collapse(true);v=v.compareBoundaryPoints(Range.START_TO_END,w);if(v===0)hasDuplicate=true;return v};(function(){var o=document.createElement("form"),r="script"+(new Date).getTime();o.innerHTML="<input name='"+r+"'/>";var v=document.documentElement;v.insertBefore(o,v.firstChild);if(document.getElementById(r)){B.find.ID=function(w,y,C){if(typeof y.getElementById!=="undefined"&&
!C)return(y=y.getElementById(w[1]))?y.id===w[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===w[1]?[y]:void 0:[]};B.filter.ID=function(w,y){var C=typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id");return w.nodeType===1&&C&&C.nodeValue===y}}v.removeChild(o)})();(function(){var o=document.createElement("div");o.appendChild(document.createComment(""));if(o.getElementsByTagName("*").length>0)B.find.TAG=function(r,v){var w=v.getElementsByTagName(r[1]);if(r[1]===
"*"){for(var y=[],C=0;w[C];C++)w[C].nodeType===1&&y.push(w[C]);w=y}return w};o.innerHTML="<a href='#'></a>";if(o.firstChild&&typeof o.firstChild.getAttribute!=="undefined"&&o.firstChild.getAttribute("href")!=="#")B.attrHandle.href=function(r){return r.getAttribute("href",2)}})();document.querySelectorAll&&function(){var o=u,r=document.createElement("div");r.innerHTML="<p class='TEST'></p>";if(!(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0)){u=function(v,w,y,C){w=w||document;if(!C&&w.nodeType===
9&&!J(w))try{return M(w.querySelectorAll(v),y)}catch(I){}return o(v,w,y,C)};u.find=o.find;u.filter=o.filter;u.selectors=o.selectors;u.matches=o.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var o=document.createElement("div");o.innerHTML="<div class='test e'></div><div class='test'></div>";if(o.getElementsByClassName("e").length!==0){o.lastChild.className="e";if(o.getElementsByClassName("e").length!==1){B.order.splice(1,0,"CLASS");B.find.CLASS=
function(r,v,w){if(typeof v.getElementsByClassName!=="undefined"&&!w)return v.getElementsByClassName(r[1])}}}}();var X=document.compareDocumentPosition?function(o,r){return o.compareDocumentPosition(r)&16}:function(o,r){return o!==r&&(o.contains?o.contains(r):true)},J=function(o){return o.nodeType===9&&o.documentElement.nodeName!=="HTML"||!!o.ownerDocument&&J(o.ownerDocument)},Z=function(o,r){for(var v=[],w="",y,C=r.nodeType?[r]:r;y=B.match.PSEUDO.exec(o);){w+=y[0];o=o.replace(B.match.PSEUDO,"")}o=
B.relative[o]?o+"*":o;y=0;for(var I=C.length;y<I;y++)u(o,C[y],v);return u.filter(w,v)};i.find=u;i.filter=u.filter;i.expr=u.selectors;i.expr[":"]=i.expr.filters;u.selectors.filters.hidden=function(o){return o.offsetWidth===0||o.offsetHeight===0};u.selectors.filters.visible=function(o){return o.offsetWidth>0||o.offsetHeight>0};u.selectors.filters.animated=function(o){return i.grep(i.timers,function(r){return o===r.elem}).length};i.multiFilter=function(o,r,v){if(v)o=":not("+o+")";return u.matches(o,
r)};i.dir=function(o,r){for(var v=[],w=o[r];w&&w!=document;){w.nodeType==1&&v.push(w);w=w[r]}return v};i.nth=function(o,r,v){for(var w=0;o;o=o[v])if(o.nodeType==1&&++w==(r||1))break;return o};i.sibling=function(o,r){for(var v=[];o;o=o.nextSibling)o.nodeType==1&&o!=r&&v.push(o);return v}})();i.event={add:function(f,l,m,p){if(!(f.nodeType==3||f.nodeType==8)){if(f.setInterval&&f!=j)f=j;if(!m.guid)m.guid=this.guid++;if(p!==void 0){m=this.proxy(m);m.data=p}var s=i.data(f,"events")||i.data(f,"events",{}),
u=i.data(f,"handle")||i.data(f,"handle",function(){return typeof i!=="undefined"&&!i.event.triggered?i.event.handle.apply(arguments.callee.elem,arguments):void 0});u.elem=f;i.each(l.split(/\s+/),function(B,D){var L=D.split(".");D=L.shift();m.type=L.slice().sort().join(".");var M=s[D];i.event.specialAll[D]&&i.event.specialAll[D].setup.call(f,p,L);if(!M){M=s[D]={};if(!i.event.special[D]||i.event.special[D].setup.call(f,p,L)===false)if(f.addEventListener)f.addEventListener(D,u,false);else f.attachEvent&&
f.attachEvent("on"+D,u)}M[m.guid]=m;i.event.global[D]=true});f=null}},guid:1,global:{},remove:function(f,l,m){if(!(f.nodeType==3||f.nodeType==8)){var p=i.data(f,"events"),s;if(p){if(l===void 0||typeof l==="string"&&l.charAt(0)==".")for(var u in p)this.remove(f,u+(l||""));else{if(l.type){m=l.handler;l=l.type}i.each(l.split(/\s+/),function(B,D){var L=D.split(".");D=L.shift();var M=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");if(p[D]){if(m)delete p[D][m.guid];else for(var N in p[D])M.test(p[D][N].type)&&
delete p[D][N];i.event.specialAll[D]&&i.event.specialAll[D].teardown.call(f,L);for(s in p[D])break;if(!s){if(!i.event.special[D]||i.event.special[D].teardown.call(f,L)===false)if(f.removeEventListener)f.removeEventListener(D,i.data(f,"handle"),false);else f.detachEvent&&f.detachEvent("on"+D,i.data(f,"handle"));s=null;delete p[D]}}})}for(s in p)break;if(!s){if(l=i.data(f,"handle"))l.elem=null;i.removeData(f,"events");i.removeData(f,"handle")}}}},trigger:function(f,l,m,p){var s=f.type||f;if(!p){f=typeof f===
"object"?f[K]?f:i.extend(i.Event(s),f):i.Event(s);if(s.indexOf("!")>=0){f.type=s=s.slice(0,-1);f.exclusive=true}if(!m){f.stopPropagation();this.global[s]&&i.each(i.cache,function(){this.events&&this.events[s]&&i.event.trigger(f,l,this.handle.elem)})}if(!m||m.nodeType==3||m.nodeType==8)return;f.result=void 0;f.target=m;l=i.makeArray(l);l.unshift(f)}f.currentTarget=m;var u=i.data(m,"handle");u&&u.apply(m,l);if((!m[s]||i.nodeName(m,"a")&&s=="click")&&m["on"+s]&&m["on"+s].apply(m,l)===false)f.result=
false;if(!p&&m[s]&&!f.isDefaultPrevented()&&!(i.nodeName(m,"a")&&s=="click")){this.triggered=true;try{m[s]()}catch(B){}}this.triggered=false;f.isPropagationStopped()||(m=m.parentNode||m.ownerDocument)&&i.event.trigger(f,l,m,true)},handle:function(f){var l,m;f=arguments[0]=i.event.fix(f||j.event);f.currentTarget=this;m=f.type.split(".");f.type=m.shift();l=!m.length&&!f.exclusive;var p=RegExp("(^|\\.)"+m.slice().sort().join(".*\\.")+"(\\.|$)");m=(i.data(this,"events")||{})[f.type];for(var s in m){var u=
m[s];if(l||p.test(u.type)){f.handler=u;f.data=u.data;u=u.apply(this,arguments);if(u!==void 0){f.result=u;if(u===false){f.preventDefault();f.stopPropagation()}}if(f.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(f){if(f[K])return f;var l=f;f=i.Event(l);for(var m=this.props.length,p;m;){p=this.props[--m];f[p]=l[p]}if(!f.target)f.target=f.srcElement||document;if(f.target.nodeType==3)f.target=f.target.parentNode;if(!f.relatedTarget&&f.fromElement)f.relatedTarget=f.fromElement==f.target?f.toElement:f.fromElement;if(f.pageX==null&&f.clientX!=null){l=document.documentElement;m=document.body;f.pageX=f.clientX+(l&&l.scrollLeft||m&&m.scrollLeft||0)-(l.clientLeft||0);f.pageY=f.clientY+(l&&l.scrollTop||
m&&m.scrollTop||0)-(l.clientTop||0)}if(!f.which&&(f.charCode||f.charCode===0?f.charCode:f.keyCode))f.which=f.charCode||f.keyCode;if(!f.metaKey&&f.ctrlKey)f.metaKey=f.ctrlKey;if(!f.which&&f.button)f.which=f.button&1?1:f.button&2?3:f.button&4?2:0;return f},proxy:function(f,l){l=l||function(){return f.apply(this,arguments)};l.guid=f.guid=f.guid||l.guid||this.guid++;return l},special:{ready:{setup:h,teardown:function(){}}},specialAll:{live:{setup:function(f,l){i.event.add(this,l[0],b)},teardown:function(f){if(f.length){var l=
0,m=RegExp("(^|\\.)"+f[0]+"(\\.|$)");i.each(i.data(this,"events").live||{},function(){m.test(this.type)&&l++});l<1&&i.event.remove(this,f[0],b)}}}}};i.Event=function(f){if(!this.preventDefault)return new i.Event(f);if(f&&f.type){this.originalEvent=f;this.type=f.type}else this.type=f;this.timeStamp=+new Date;this[K]=true};i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=a;var f=this.originalEvent;if(f){f.preventDefault&&f.preventDefault();f.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
a;var f=this.originalEvent;if(f){f.stopPropagation&&f.stopPropagation();f.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a;this.stopPropagation()},isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g};var W=function(f){for(var l=f.relatedTarget;l&&l!=this;)try{l=l.parentNode}catch(m){l=this}if(l!=this){f.type=f.data;i.event.handle.apply(this,arguments)}};i.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(f,l){i.event.special[l]=
{setup:function(){i.event.add(this,f,W,l)},teardown:function(){i.event.remove(this,f,W)}}});i.fn.extend({bind:function(f,l,m){return f=="unload"?this.one(f,l,m):this.each(function(){i.event.add(this,f,m||l,m&&l)})},one:function(f,l,m){var p=i.event.proxy(m||l,function(s){i(this).unbind(s,p);return(m||l).apply(this,arguments)});return this.each(function(){i.event.add(this,f,p,m&&l)})},unbind:function(f,l){return this.each(function(){i.event.remove(this,f,l)})},trigger:function(f,l){return this.each(function(){i.event.trigger(f,
l,this)})},triggerHandler:function(f,l){if(this[0]){var m=i.Event(f);m.preventDefault();m.stopPropagation();i.event.trigger(m,l,this[0]);return m.result}},toggle:function(f){for(var l=arguments,m=1;m<l.length;)i.event.proxy(f,l[m++]);return this.click(i.event.proxy(f,function(p){this.lastToggle=(this.lastToggle||0)%m;p.preventDefault();return l[this.lastToggle++].apply(this,arguments)||false}))},hover:function(f,l){return this.mouseenter(f).mouseleave(l)},ready:function(f){h();i.isReady?f.call(document,
i):i.readyList.push(f);return this},live:function(f,l){var m=i.event.proxy(l);m.guid+=this.selector+f;i(document).bind(e(f,this.selector),this.selector,m);return this},die:function(f,l){i(document).unbind(e(f,this.selector),l?{guid:l.guid+this.selector+f}:null);return this}});i.extend({isReady:false,readyList:[],ready:function(){if(!i.isReady){i.isReady=true;if(i.readyList){i.each(i.readyList,function(){this.call(document,i)});i.readyList=null}i(document).triggerHandler("ready")}}});var O=false;i.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),
function(f,l){i.fn[l]=function(m){return m?this.bind(l,m):this.trigger(l)}});i(j).bind("unload",function(){for(var f in i.cache)f!=1&&i.cache[f].handle&&i.event.remove(i.cache[f].handle.elem)});(function(){i.support={};var f=document.documentElement,l=document.createElement("script"),m=document.createElement("div"),p="script"+(new Date).getTime();m.style.display="none";m.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 s=m.getElementsByTagName("*"),u=m.getElementsByTagName("a")[0];if(!(!s||!s.length||!u)){i.support={leadingWhitespace:m.firstChild.nodeType==3,tbody:!m.getElementsByTagName("tbody").length,objectAll:!!m.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/red/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:u.style.opacity==="0.5",cssFloat:!!u.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};l.type="text/javascript";try{l.appendChild(document.createTextNode("window."+p+"=1;"))}catch(B){}f.insertBefore(l,f.firstChild);if(j[p]){i.support.scriptEval=true;delete j[p]}f.removeChild(l);if(m.attachEvent&&m.fireEvent){m.attachEvent("onclick",function(){i.support.noCloneEvent=false;m.detachEvent("onclick",arguments.callee)});m.cloneNode(true).fireEvent("onclick")}i(function(){var D=document.createElement("div");D.style.width=D.style.paddingLeft="1px";document.body.appendChild(D);
i.boxModel=i.support.boxModel=D.offsetWidth===2;document.body.removeChild(D).style.display="none"})}})();var R=i.support.cssFloat?"cssFloat":"styleFloat";i.props={"for":"htmlFor","class":"className","float":R,cssFloat:R,styleFloat:R,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};i.fn.extend({_load:i.fn.load,load:function(f,l,m){if(typeof f!=="string")return this._load(f);var p=f.indexOf(" ");if(p>=0){var s=f.slice(p,f.length);f=f.slice(0,
p)}p="GET";if(l)if(i.isFunction(l)){m=l;l=null}else if(typeof l==="object"){l=i.param(l);p="POST"}var u=this;i.ajax({url:f,type:p,dataType:"html",data:l,complete:function(B,D){if(D=="success"||D=="notmodified")u.html(s?i("<div/>").append(B.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(s):B.responseText);m&&u.each(m,[B.responseText,D,B])}});return this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
i.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(f,l){var m=i(this).val();return m==null?null:i.isArray(m)?i.map(m,function(p){return{name:l.name,value:p}}):{name:l.name,value:m}}).get()}});i.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(f,l){i.fn[l]=function(m){return this.bind(l,m)}});var S=+new Date;
i.extend({get:function(f,l,m,p){if(i.isFunction(l)){m=l;l=null}return i.ajax({type:"GET",url:f,data:l,success:m,dataType:p})},getScript:function(f,l){return i.get(f,null,l,"script")},getJSON:function(f,l,m){return i.get(f,l,m,"json")},post:function(f,l,m,p){if(i.isFunction(l)){m=l;l={}}return i.ajax({type:"POST",url:f,data:l,success:m,dataType:p})},ajaxSetup:function(f){i.extend(i.ajaxSettings,f)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,xhr:function(){return j.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(f){function l(){f.success&&f.success(B,u);f.global&&i.event.trigger("ajaxSuccess",[J,f])}function m(){f.complete&&f.complete(J,u);f.global&&i.event.trigger("ajaxComplete",
[J,f]);f.global&&!--i.active&&i.event.trigger("ajaxStop")}f=i.extend(true,f,i.extend(true,{},i.ajaxSettings,f));var p,s=/=\?(&|$)/g,u,B,D=f.type.toUpperCase();if(f.data&&f.processData&&typeof f.data!=="string")f.data=i.param(f.data);if(f.dataType=="jsonp"){if(D=="GET")f.url.match(s)||(f.url+=(f.url.match(/\?/)?"&":"?")+(f.jsonp||"callback")+"=?");else if(!f.data||!f.data.match(s))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType=="json"&&(f.data&&f.data.match(s)||
f.url.match(s))){p="jsonp"+S++;if(f.data)f.data=(f.data+"").replace(s,"="+p+"$1");f.url=f.url.replace(s,"="+p+"$1");f.dataType="script";j[p]=function(w){B=w;l();m();j[p]=void 0;try{delete j[p]}catch(y){}M&&M.removeChild(N)}}if(f.dataType=="script"&&f.cache==null)f.cache=false;if(f.cache===false&&D=="GET"){s=+new Date;var L=f.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+s+"$2");f.url=L+(L==f.url?(f.url.match(/\?/)?"&":"?")+"_="+s:"")}if(f.data&&D=="GET"){f.url+=(f.url.match(/\?/)?"&":"?")+f.data;f.data=null}f.global&&
!i.active++&&i.event.trigger("ajaxStart");s=/^(\w+:)?\/\/([^\/?#]+)/.exec(f.url);if(f.dataType=="script"&&D=="GET"&&s&&(s[1]&&s[1]!=location.protocol||s[2]!=location.host)){var M=document.getElementsByTagName("head")[0],N=document.createElement("script");N.src=f.url;if(f.scriptCharset)N.charset=f.scriptCharset;if(!p){var T=false;N.onload=N.onreadystatechange=function(){if(!T&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){T=true;l();m();N.onload=N.onreadystatechange=null;
M.removeChild(N)}}}M.appendChild(N)}else{var X=false,J=f.xhr();f.username?J.open(D,f.url,f.async,f.username,f.password):J.open(D,f.url,f.async);try{f.data&&J.setRequestHeader("Content-Type",f.contentType);if(f.ifModified)J.setRequestHeader("If-Modified-Since",i.lastModified[f.url]||"Thu, 01 Jan 1970 00:00:00 GMT");J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?f.accepts[f.dataType]+", */*":f.accepts._default)}catch(Z){}if(f.beforeSend&&
f.beforeSend(J,f)===false){f.global&&!--i.active&&i.event.trigger("ajaxStop");J.abort();return false}f.global&&i.event.trigger("ajaxSend",[J,f]);var o=function(w){if(J.readyState==0){if(r){clearInterval(r);r=null;f.global&&!--i.active&&i.event.trigger("ajaxStop")}}else if(!X&&J&&(J.readyState==4||w=="timeout")){X=true;if(r){clearInterval(r);r=null}u=w=="timeout"?"timeout":!i.httpSuccess(J)?"error":f.ifModified&&i.httpNotModified(J,f.url)?"notmodified":"success";if(u=="success")try{B=i.httpData(J,
f.dataType,f)}catch(y){u="parsererror"}if(u=="success"){var C;try{C=J.getResponseHeader("Last-Modified")}catch(I){}if(f.ifModified&&C)i.lastModified[f.url]=C;p||l()}else i.handleError(f,J,u);m();w&&J.abort();if(f.async)J=null}};if(f.async){var r=setInterval(o,13);f.timeout>0&&setTimeout(function(){J&&!X&&o("timeout")},f.timeout)}try{J.send(f.data)}catch(v){i.handleError(f,J,null,v)}f.async||o();return J}},handleError:function(f,l,m,p){f.error&&f.error(l,m,p);f.global&&i.event.trigger("ajaxError",
[l,f,p])},active:0,httpSuccess:function(f){try{return!f.status&&location.protocol=="file:"||f.status>=200&&f.status<300||f.status==304||f.status==1223}catch(l){}return false},httpNotModified:function(f,l){try{var m=f.getResponseHeader("Last-Modified");return f.status==304||m==i.lastModified[l]}catch(p){}return false},httpData:function(f,l,m){var p=f.getResponseHeader("content-type");f=(p=l=="xml"||!l&&p&&p.indexOf("xml")>=0)?f.responseXML:f.responseText;if(p&&f.documentElement.tagName=="parsererror")throw"parsererror";
if(m&&m.dataFilter)f=m.dataFilter(f,l);if(typeof f==="string"){l=="script"&&i.globalEval(f);if(l=="json")f=j.eval("("+f+")")}return f},param:function(f){function l(s,u){m[m.length]=encodeURIComponent(s)+"="+encodeURIComponent(u)}var m=[];if(i.isArray(f)||f.jquery)i.each(f,function(){l(this.name,this.value)});else for(var p in f)i.isArray(f[p])?i.each(f[p],function(){l(p,this)}):l(p,i.isFunction(f[p])?f[p]():f[p]);return m.join("&").replace(/%20/g,"+")}});var aa={},V,ca=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];i.fn.extend({show:function(f,l){if(f)return this.animate(k("show",3),f,l);else{for(var m=0,p=this.length;m<p;m++){var s=i.data(this[m],"olddisplay");this[m].style.display=s||"";if(i.css(this[m],"display")==="none"){s=this[m].tagName;var u;if(aa[s])u=aa[s];else{var B=i("<"+s+" />").appendTo("body");u=B.css("display");if(u==="none")u="block";B.remove();aa[s]=u}i.data(this[m],"olddisplay",u)}}m=
0;for(p=this.length;m<p;m++)this[m].style.display=i.data(this[m],"olddisplay")||"";return this}},hide:function(f,l){if(f)return this.animate(k("hide",3),f,l);else{for(var m=0,p=this.length;m<p;m++){var s=i.data(this[m],"olddisplay");!s&&s!=="none"&&i.data(this[m],"olddisplay",i.css(this[m],"display"))}m=0;for(p=this.length;m<p;m++)this[m].style.display="none";return this}},_toggle:i.fn.toggle,toggle:function(f,l){var m=typeof f==="boolean";return i.isFunction(f)&&i.isFunction(l)?this._toggle.apply(this,
arguments):f==null||m?this.each(function(){var p=m?f:i(this).is(":hidden");i(this)[p?"show":"hide"]()}):this.animate(k("toggle",3),f,l)},fadeTo:function(f,l,m){return this.animate({opacity:l},f,m)},animate:function(f,l,m,p){var s=i.speed(l,m,p);return this[s.queue===false?"each":"queue"](function(){var u=i.extend({},s),B,D=this.nodeType==1&&i(this).is(":hidden"),L=this;for(B in f){if(f[B]=="hide"&&D||f[B]=="show"&&!D)return u.complete.call(this);if((B=="height"||B=="width")&&this.style){u.display=
i.css(this,"display");u.overflow=this.style.overflow}}if(u.overflow!=null)this.style.overflow="hidden";u.curAnim=i.extend({},f);i.each(f,function(M,N){var T=new i.fx(L,u,M);if(/toggle|show|hide/.test(N))T[N=="toggle"?D?"show":"hide":N](f);else{var X=N.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),J=T.cur(true)||0;if(X){var Z=parseFloat(X[2]),o=X[3]||"px";if(o!="px"){L.style[M]=(Z||1)+o;J=(Z||1)/T.cur(true)*J;L.style[M]=J+o}if(X[1])Z=(X[1]=="-="?-1:1)*Z+J;T.custom(J,Z,o)}else T.custom(J,N,"")}});return true})},
stop:function(f,l){var m=i.timers;f&&this.queue([]);this.each(function(){for(var p=m.length-1;p>=0;p--)if(m[p].elem==this){l&&m[p](true);m.splice(p,1)}});l||this.dequeue();return this}});i.each({slideDown:k("show",1),slideUp:k("hide",1),slideToggle:k("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(f,l){i.fn[f]=function(m,p){return this.animate(l,m,p)}});i.extend({speed:function(f,l,m){var p=typeof f==="object"?f:{complete:m||!m&&l||i.isFunction(f)&&f,duration:f,easing:m&&l||
l&&!i.isFunction(l)&&l};p.duration=i.fx.off?0:typeof p.duration==="number"?p.duration:i.fx.speeds[p.duration]||i.fx.speeds._default;p.old=p.complete;p.complete=function(){p.queue!==false&&i(this).dequeue();i.isFunction(p.old)&&p.old.call(this)};return p},easing:{linear:function(f,l,m,p){return m+p*f},swing:function(f,l,m,p){return(-Math.cos(f*Math.PI)/2+0.5)*p+m}},timers:[],fx:function(f,l,m){this.options=l;this.elem=f;this.prop=m;if(!l.orig)l.orig={}}});i.fx.prototype={update:function(){this.options.step&&
this.options.step.call(this.elem,this.now,this);(i.fx.step[this.prop]||i.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(f){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(f=parseFloat(i.css(this.elem,this.prop,f)))&&f>-10000?f:parseFloat(i.curCSS(this.elem,this.prop))||0},custom:function(f,l,m){function p(u){return s.step(u)}this.startTime=+new Date;
this.start=f;this.end=l;this.unit=m||this.unit||"px";this.now=this.start;this.pos=this.state=0;var s=this;p.elem=this.elem;if(p()&&i.timers.push(p)&&!V)V=setInterval(function(){for(var u=i.timers,B=0;B<u.length;B++)u[B]()||u.splice(B--,1);if(!u.length){clearInterval(V);V=void 0}},13)},show:function(){this.options.orig[this.prop]=i.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());i(this.elem).show()},hide:function(){this.options.orig[this.prop]=
i.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(f){var l=+new Date;if(f||l>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f=this.options.curAnim[this.prop]=true;for(var m in this.options.curAnim)if(this.options.curAnim[m]!==true)f=false;if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(i.css(this.elem,"display")=="none")this.elem.style.display=
"block"}this.options.hide&&i(this.elem).hide();if(this.options.hide||this.options.show)for(var p in this.options.curAnim)i.attr(this.elem.style,p,this.options.orig[p]);this.options.complete.call(this.elem)}return false}else{m=l-this.startTime;this.state=m/this.options.duration;this.pos=i.easing[this.options.easing||(i.easing.swing?"swing":"linear")](this.state,m,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};i.extend(i.fx,{speeds:{slow:600,
fast:200,_default:400},step:{opacity:function(f){i.attr(f.elem.style,"opacity",f.now)},_default:function(f){if(f.elem.style&&f.elem.style[f.prop]!=null)f.elem.style[f.prop]=f.now+f.unit;else f.elem[f.prop]=f.now}}});i.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return i.offset.bodyOffset(this[0]);var f=this[0].getBoundingClientRect(),l=this[0].ownerDocument,m=l.body;l=l.documentElement;return{top:f.top+
(self.pageYOffset||i.boxModel&&l.scrollTop||m.scrollTop)-(l.clientTop||m.clientTop||0),left:f.left+(self.pageXOffset||i.boxModel&&l.scrollLeft||m.scrollLeft)-(l.clientLeft||m.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return i.offset.bodyOffset(this[0]);i.offset.initialized||i.offset.initialize();var f=this[0],l=f.offsetParent,m=f.ownerDocument,p,s=m.documentElement,u=m.body;m=m.defaultView;p=m.getComputedStyle(f,null);for(var B=f.offsetTop,
D=f.offsetLeft;(f=f.parentNode)&&f!==u&&f!==s;){p=m.getComputedStyle(f,null);B-=f.scrollTop;D-=f.scrollLeft;if(f===l){B+=f.offsetTop;D+=f.offsetLeft;if(i.offset.doesNotAddBorder&&!(i.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){B+=parseInt(p.borderTopWidth,10)||0;D+=parseInt(p.borderLeftWidth,10)||0}l=f.offsetParent}if(i.offset.subtractsBorderForOverflowNotVisible&&p.overflow!=="visible"){B+=parseInt(p.borderTopWidth,10)||0;D+=parseInt(p.borderLeftWidth,10)||0}p=p}if(p.position===
"relative"||p.position==="static"){B+=u.offsetTop;D+=u.offsetLeft}if(p.position==="fixed"){B+=Math.max(s.scrollTop,u.scrollTop);D+=Math.max(s.scrollLeft,u.scrollLeft)}return{top:B,left:D}};i.offset={initialize:function(){if(!this.initialized){var f=document.body,l=document.createElement("div"),m,p,s,u=f.style.marginTop;m={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(p in m)l.style[p]=m[p];l.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>';
f.insertBefore(l,f.firstChild);m=l.firstChild;p=m.firstChild;s=m.nextSibling.firstChild.firstChild;this.doesNotAddBorder=p.offsetTop!==5;this.doesAddBorderForTableAndCells=s.offsetTop===5;m.style.overflow="hidden";m.style.position="relative";this.subtractsBorderForOverflowNotVisible=p.offsetTop===-5;f.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=f.offsetTop===0;f.style.marginTop=u;f.removeChild(l);this.initialized=true}},bodyOffset:function(f){i.offset.initialized||i.offset.initialize();
var l=f.offsetTop,m=f.offsetLeft;if(i.offset.doesNotIncludeMarginInBodyOffset){l+=parseInt(i.curCSS(f,"marginTop",true),10)||0;m+=parseInt(i.curCSS(f,"marginLeft",true),10)||0}return{top:l,left:m}}};i.fn.extend({position:function(){var f;if(this[0]){f=this.offsetParent();var l=this.offset(),m=/^body|html$/i.test(f[0].tagName)?{top:0,left:0}:f.offset();l.top-=d(this,"marginTop");l.left-=d(this,"marginLeft");m.top+=d(f,"borderTopWidth");m.left+=d(f,"borderLeftWidth");f={top:l.top-m.top,left:l.left-
m.left}}return f},offsetParent:function(){for(var f=this[0].offsetParent||document.body;f&&!/^body|html$/i.test(f.tagName)&&i.css(f,"position")=="static";)f=f.offsetParent;return i(f)}});i.each(["Left","Top"],function(f,l){var m="scroll"+l;i.fn[m]=function(p){if(!this[0])return null;return p!==void 0?this.each(function(){this==j||this==document?j.scrollTo(!f?p:i(j).scrollLeft(),f?p:i(j).scrollTop()):(this[m]=p)}):this[0]==j||this[0]==document?self[f?"pageYOffset":"pageXOffset"]||i.boxModel&&document.documentElement[m]||
document.body[m]:this[0][m]}});i.each(["Height","Width"],function(f,l){var m=l.toLowerCase();i.fn["inner"+l]=function(){return this[0]?i.css(this[0],m,false,"padding"):null};i.fn["outer"+l]=function(s){return this[0]?i.css(this[0],m,false,s?"margin":"border"):null};var p=l.toLowerCase();i.fn[p]=function(s){return this[0]==j?document.compatMode=="CSS1Compat"&&document.documentElement["client"+l]||document.body["client"+l]:this[0]==document?Math.max(document.documentElement["client"+l],document.body["scroll"+
l],document.documentElement["scroll"+l],document.body["offset"+l],document.documentElement["offset"+l]):s===void 0?this.length?i.css(this[0],p):null:this.css(p,typeof s==="string"?s:s+"px")}})})();
jQuery.ui||function(c){function d(j,n,q,i){function x(z){z=c[j][n][z]||[];return typeof z=="string"?z.split(/,?\s+/):z}var A=x("getter");if(i.length==1&&typeof i[0]=="string")A=A.concat(x("getterSetter"));return c.inArray(q,A)!=-1}var g=c.fn.remove,a=c.browser.mozilla&&parseFloat(c.browser.version)<1.9;c.ui={version:"1.7.2",plugin:{add:function(j,n,q){j=c.ui[j].prototype;for(var i in q){j.plugins[i]=j.plugins[i]||[];j.plugins[i].push([n,q[i]])}},call:function(j,n,q){if((n=j.plugins[n])&&j.element[0].parentNode)for(var i=
0;i<n.length;i++)j.options[n[i][0]]&&n[i][1].apply(j.element,q)}},contains:function(j,n){return document.compareDocumentPosition?j.compareDocumentPosition(n)&16:j!==n&&j.contains(n)},hasScroll:function(j,n){if(c(j).css("overflow")=="hidden")return false;var q=n&&n=="left"?"scrollLeft":"scrollTop",i=false;if(j[q]>0)return true;j[q]=1;i=j[q]>0;j[q]=0;return i},isOverAxis:function(j,n,q){return j>n&&j<n+q},isOver:function(j,n,q,i,x,A){return c.ui.isOverAxis(j,q,x)&&c.ui.isOverAxis(n,i,A)},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(a){var b=c.attr,e=c.fn.removeAttr,h=/^aria-/,k=/^wairole:/;c.attr=function(j,n,q){var i=q!==undefined;return n=="role"?i?b.call(this,j,n,"wairole:"+q):(b.apply(this,arguments)||"").replace(k,""):h.test(n)?i?j.setAttributeNS("http://www.w3.org/2005/07/aaa",
n.replace(h,"aaa:"),q):b.call(this,j,n.replace(h,"aaa:")):b.apply(this,arguments)};c.fn.removeAttr=function(j){return h.test(j)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",j.replace(h,""))}):e.call(this,j)}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return g.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;j=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,
"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(j,n,q){return!!c.data(j,q[3])},focusable:function(j){var n=j.nodeName.toLowerCase(),q=c.attr(j,"tabindex");return(/input|select|textarea|button|object/.test(n)?!j.disabled:"a"==n||"area"==n?j.href||!isNaN(q):!isNaN(q))&&!c(j)["area"==n?"parents":"closest"](":hidden").length},tabbable:function(j){var n=c.attr(j,"tabindex");
return(isNaN(n)||n>=0)&&c(j).is(":focusable")}});c.widget=function(j,n){var q=j.split(".")[0];j=j.split(".")[1];c.fn[j]=function(i){var x=typeof i=="string",A=Array.prototype.slice.call(arguments,1);if(x&&i.substring(0,1)=="_")return this;if(x&&d(q,j,i,A)){var z=c.data(this[0],j);return z?z[i].apply(z,A):undefined}return this.each(function(){var E=c.data(this,j);!E&&!x&&c.data(this,j,new c[q][j](this,i))._init();E&&x&&c.isFunction(E[i])&&E[i].apply(E,A)})};c[q]=c[q]||{};c[q][j]=function(i,x){var A=
this;this.namespace=q;this.widgetName=j;this.widgetEventPrefix=c[q][j].eventPrefix||j;this.widgetBaseClass=q+"-"+j;this.options=c.extend({},c.widget.defaults,c[q][j].defaults,c.metadata&&c.metadata.get(i)[j],x);this.element=c(i).bind("setData."+j,function(z,E,G){if(z.target==i)return A._setData(E,G)}).bind("getData."+j,function(z,E){if(z.target==i)return A._getData(E)}).bind("remove",function(){return A.destroy()})};c[q][j].prototype=c.extend({},c.widget.prototype,n);c[q][j].getterSetter="option"};
c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(j,n){var q=j,i=this;if(typeof j=="string"){if(n===undefined)return this._getData(j);q={};q[j]=n}c.each(q,function(x,A){i._setData(x,A)})},_getData:function(j){return this.options[j]},_setData:function(j,n){this.options[j]=n;if(j=="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(j,n,q){var i=this.options[j];j=j==this.widgetEventPrefix?j:this.widgetEventPrefix+j;n=c.Event(n);n.type=j;if(n.originalEvent){j=c.event.props.length;for(var x;j;){x=c.event.props[--j];n[x]=n.originalEvent[x]}}this.element.trigger(n,q);return!(c.isFunction(i)&&i.call(this.element[0],n,q)===false||n.isDefaultPrevented())}};
c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(n){return j._mouseDown(n)}).bind("click."+this.widgetName,function(n){if(j._preventClickEvent){j._preventClickEvent=false;n.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(j){j.originalEvent=j.originalEvent||{};if(!j.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(j);this._mouseDownEvent=j;var n=this,q=j.which==1,i=typeof this.options.cancel=="string"?c(j.target).parents().add(j.target).filter(this.options.cancel).length:false;if(!q||i||!this._mouseCapture(j))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=this._mouseStart(j)!==false;if(!this._mouseStarted){j.preventDefault();return true}}this._mouseMoveDelegate=function(x){return n._mouseMove(x)};this._mouseUpDelegate=function(x){return n._mouseUp(x)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||j.preventDefault();return j.originalEvent.mouseHandled=true}},
_mouseMove:function(j){if(c.browser.msie&&!j.button)return this._mouseUp(j);if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,j)!==false)?this._mouseDrag(j):this._mouseUp(j);return!this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=j.target==this._mouseDownEvent.target;this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
(function(c){c.widget("ui.draggable",c.extend({},c.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(d){var g=this.options;if(this.helper||g.disabled||c(d.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(d);if(!this.handle)return false;return true},_mouseStart:function(d){var g=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(c.ui.ddmanager)c.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};c.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);g.containment&&this._setContainment();this._trigger("start",d);this._cacheHelperProportions();c.ui.ddmanager&&
!g.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,g){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!g){var a=this._uiHash();this._trigger("drag",d,a);this.position=a.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";c.ui.ddmanager&&c.ui.ddmanager.drag(this,d);return false},_mouseStop:function(d){var g=false;if(c.ui.ddmanager&&!this.options.dropBehaviour)g=c.ui.ddmanager.drop(this,d);if(this.dropped){g=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!g||this.options.revert=="valid"&&g||this.options.revert===true||c.isFunction(this.options.revert)&&this.options.revert.call(this.element,g)){var a=this;c(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
10),function(){a._trigger("stop",d);a._clear()})}else{this._trigger("stop",d);this._clear()}return false},_getHandle:function(d){var g=!this.options.handle||!c(this.options.handle,this.element).length?true:false;c(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==d.target)g=true});return g},_createHelper:function(d){var g=this.options;d=c.isFunction(g.helper)?c(g.helper.apply(this.element[0],[d])):g.helper=="clone"?this.element.clone():this.element;d.parents("body").length||
d.appendTo(g.appendTo=="parent"?this.element[0].parentNode:g.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){if(d.left!=undefined)this.offset.click.left=d.left+this.margins.left;if(d.right!=undefined)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if(d.top!=undefined)this.offset.click.top=d.top+this.margins.top;if(d.bottom!=undefined)this.offset.click.top=this.helperProportions.height-
d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)d={top:0,left:0};return{top:d.top+
(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.element.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.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 d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(d.containment=="document"?document:
window).width()-this.helperProportions.width-this.margins.left,(c(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){var g=c(d.containment)[0];if(g){d=c(d.containment).offset();var a=c(g).css("overflow")!="hidden";this.containment=[d.left+(parseInt(c(g).css("borderLeftWidth"),10)||0)+(parseInt(c(g).css("paddingLeft"),10)||
0)-this.margins.left,d.top+(parseInt(c(g).css("borderTopWidth"),10)||0)+(parseInt(c(g).css("paddingTop"),10)||0)-this.margins.top,d.left+(a?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(c(g).css("borderLeftWidth"),10)||0)-(parseInt(c(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(a?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(c(g).css("borderTopWidth"),10)||0)-(parseInt(c(g).css("paddingBottom"),10)||0)-this.helperProportions.height-
this.margins.top]}}else if(d.containment.constructor==Array)this.containment=d.containment},_convertPositionTo:function(d,g){if(!g)g=this.position;var a=d=="absolute"?1:-1,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(b[0].tagName);return{top:g.top+this.offset.relative.top*a+this.offset.parent.top*a-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition==
"fixed"?-this.scrollParent.scrollTop():e?0:b.scrollTop())*a),left:g.left+this.offset.relative.left*a+this.offset.parent.left*a-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:b.scrollLeft())*a)}},_generatePosition:function(d){var g=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(a[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var e=d.pageX,h=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+
this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])h=this.containment[3]+this.offset.click.top}if(g.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/g.grid[1])*g.grid[1];h=this.containment?!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:!(h-this.offset.click.top<this.containment[1])?h-g.grid[1]:h+g.grid[1]:h;e=this.originalPageX+Math.round((e-this.originalPageX)/g.grid[0])*g.grid[0];e=this.containment?!(e-this.offset.click.left<
this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-g.grid[0]:e+g.grid[0]:e}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:a.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?
-this.scrollParent.scrollLeft():b?0:a.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(d,g,a){a=a||this._uiHash();c.ui.plugin.call(this,d,[g,a]);if(d=="drag")this.positionAbs=this._convertPositionTo("absolute");return c.widget.prototype._trigger.call(this,d,g,a)},plugins:{},_uiHash:function(){return{helper:this.helper,
position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));c.extend(c.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}});c.ui.plugin.add("draggable","connectToSortable",{start:function(d,g){var a=c(this).data("draggable"),b=a.options,e=c.extend({},g,{item:a.element});a.sortables=[];c(b.connectToSortable).each(function(){var h=c.data(this,"sortable");if(h&&!h.options.disabled){a.sortables.push({instance:h,shouldRevert:h.options.revert});h._refreshItems();h._trigger("activate",d,e)}})},stop:function(d,g){var a=c(this).data("draggable"),b=c.extend({},
g,{item:a.element});c.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;a.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;a.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,b)}})},drag:function(d,g){var a=
c(this).data("draggable"),b=this;c.each(a.sortables,function(){this.instance.positionAbs=a.positionAbs;this.instance.helperProportions=a.helperProportions;this.instance.offset.click=a.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=c(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};
d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=a.offset.click.top;this.instance.offset.click.left=a.offset.click.left;this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top;a._trigger("toSortable",d);a.dropped=this.instance.element;a.currentItem=a.element;this.instance.fromOutside=a}this.instance.currentItem&&
this.instance._mouseDrag(d)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();a._trigger("fromSortable",d);a.dropped=false}})}});c.ui.plugin.add("draggable","cursor",
{start:function(){var d=c("body"),g=c(this).data("draggable").options;if(d.css("cursor"))g._cursor=d.css("cursor");d.css("cursor",g.cursor)},stop:function(){var d=c(this).data("draggable").options;d._cursor&&c("body").css("cursor",d._cursor)}});c.ui.plugin.add("draggable","iframeFix",{start:function(){var d=c(this).data("draggable").options;c(d.iframeFix===true?"iframe":d.iframeFix).each(function(){c('<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(c(this).offset()).appendTo("body")})},stop:function(){c("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});c.ui.plugin.add("draggable","opacity",{start:function(d,g){var a=c(g.helper),b=c(this).data("draggable").options;if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(d,g){var a=c(this).data("draggable").options;a._opacity&&c(g.helper).css("opacity",
a._opacity)}});c.ui.plugin.add("draggable","scroll",{start:function(){var d=c(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var g=c(this).data("draggable"),a=g.options,b=false;if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML"){if(!a.axis||a.axis!="x")if(g.overflowOffset.top+g.scrollParent[0].offsetHeight-d.pageY<a.scrollSensitivity)g.scrollParent[0].scrollTop=b=g.scrollParent[0].scrollTop+
a.scrollSpeed;else if(d.pageY-g.overflowOffset.top<a.scrollSensitivity)g.scrollParent[0].scrollTop=b=g.scrollParent[0].scrollTop-a.scrollSpeed;if(!a.axis||a.axis!="y")if(g.overflowOffset.left+g.scrollParent[0].offsetWidth-d.pageX<a.scrollSensitivity)g.scrollParent[0].scrollLeft=b=g.scrollParent[0].scrollLeft+a.scrollSpeed;else if(d.pageX-g.overflowOffset.left<a.scrollSensitivity)g.scrollParent[0].scrollLeft=b=g.scrollParent[0].scrollLeft-a.scrollSpeed}else{if(!a.axis||a.axis!="x")if(d.pageY-c(document).scrollTop()<
a.scrollSensitivity)b=c(document).scrollTop(c(document).scrollTop()-a.scrollSpeed);else if(c(window).height()-(d.pageY-c(document).scrollTop())<a.scrollSensitivity)b=c(document).scrollTop(c(document).scrollTop()+a.scrollSpeed);if(!a.axis||a.axis!="y")if(d.pageX-c(document).scrollLeft()<a.scrollSensitivity)b=c(document).scrollLeft(c(document).scrollLeft()-a.scrollSpeed);else if(c(window).width()-(d.pageX-c(document).scrollLeft())<a.scrollSensitivity)b=c(document).scrollLeft(c(document).scrollLeft()+
a.scrollSpeed)}b!==false&&c.ui.ddmanager&&!a.dropBehaviour&&c.ui.ddmanager.prepareOffsets(g,d)}});c.ui.plugin.add("draggable","snap",{start:function(){var d=c(this).data("draggable"),g=d.options;d.snapElements=[];c(g.snap.constructor!=String?g.snap.items||":data(draggable)":g.snap).each(function(){var a=c(this),b=a.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:b.top,left:b.left})})},drag:function(d,g){for(var a=c(this).data("draggable"),
b=a.options,e=b.snapTolerance,h=g.offset.left,k=h+a.helperProportions.width,j=g.offset.top,n=j+a.helperProportions.height,q=a.snapElements.length-1;q>=0;q--){var i=a.snapElements[q].left,x=i+a.snapElements[q].width,A=a.snapElements[q].top,z=A+a.snapElements[q].height;if(i-e<h&&h<x+e&&A-e<j&&j<z+e||i-e<h&&h<x+e&&A-e<n&&n<z+e||i-e<k&&k<x+e&&A-e<j&&j<z+e||i-e<k&&k<x+e&&A-e<n&&n<z+e){if(b.snapMode!="inner"){var E=Math.abs(A-n)<=e,G=Math.abs(z-j)<=e,H=Math.abs(i-k)<=e,K=Math.abs(x-h)<=e;if(E)g.position.top=
a._convertPositionTo("relative",{top:A-a.helperProportions.height,left:0}).top-a.margins.top;if(G)g.position.top=a._convertPositionTo("relative",{top:z,left:0}).top-a.margins.top;if(H)g.position.left=a._convertPositionTo("relative",{top:0,left:i-a.helperProportions.width}).left-a.margins.left;if(K)g.position.left=a._convertPositionTo("relative",{top:0,left:x}).left-a.margins.left}var P=E||G||H||K;if(b.snapMode!="outer"){E=Math.abs(A-j)<=e;G=Math.abs(z-n)<=e;H=Math.abs(i-h)<=e;K=Math.abs(x-k)<=e;if(E)g.position.top=
a._convertPositionTo("relative",{top:A,left:0}).top-a.margins.top;if(G)g.position.top=a._convertPositionTo("relative",{top:z-a.helperProportions.height,left:0}).top-a.margins.top;if(H)g.position.left=a._convertPositionTo("relative",{top:0,left:i}).left-a.margins.left;if(K)g.position.left=a._convertPositionTo("relative",{top:0,left:x-a.helperProportions.width}).left-a.margins.left}if(!a.snapElements[q].snapping&&(E||G||H||K||P))a.options.snap.snap&&a.options.snap.snap.call(a.element,d,c.extend(a._uiHash(),
{snapItem:a.snapElements[q].item}));a.snapElements[q].snapping=E||G||H||K||P}else{a.snapElements[q].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,d,c.extend(a._uiHash(),{snapItem:a.snapElements[q].item}));a.snapElements[q].snapping=false}}}});c.ui.plugin.add("draggable","stack",{start:function(){var d=c(this).data("draggable").options,g=c.makeArray(c(d.stack.group)).sort(function(a,b){return(parseInt(c(a).css("zIndex"),10)||d.stack.min)-(parseInt(c(b).css("zIndex"),10)||
d.stack.min)});c(g).each(function(a){this.style.zIndex=d.stack.min+a});this[0].style.zIndex=d.stack.min+g.length}});c.ui.plugin.add("draggable","zIndex",{start:function(d,g){var a=c(g.helper),b=c(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(d,g){var a=c(this).data("draggable").options;a._zIndex&&c(g.helper).css("zIndex",a._zIndex)}})})(jQuery);
(function(c){c.widget("ui.droppable",{_init:function(){var d=this.options.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&c.isFunction(this.options.accept)?this.options.accept:function(g){return g.is(d)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};c.ui.ddmanager.droppables[this.options.scope]=c.ui.ddmanager.droppables[this.options.scope]||[];c.ui.ddmanager.droppables[this.options.scope].push(this);this.options.addClasses&&this.element.addClass("ui-droppable")},
destroy:function(){for(var d=c.ui.ddmanager.droppables[this.options.scope],g=0;g<d.length;g++)d[g]==this&&d.splice(g,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(d,g){if(d=="accept")this.options.accept=g&&c.isFunction(g)?g:function(a){return a.is(g)};else c.widget.prototype._setData.apply(this,arguments)},_activate:function(d){var g=c.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);
g&&this._trigger("activate",d,this.ui(g))},_deactivate:function(d){var g=c.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);g&&this._trigger("deactivate",d,this.ui(g))},_over:function(d){var g=c.ui.ddmanager.current;if(!(!g||(g.currentItem||g.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],g.currentItem||g.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",d,this.ui(g))}},
_out:function(d){var g=c.ui.ddmanager.current;if(!(!g||(g.currentItem||g.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],g.currentItem||g.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(g))}},_drop:function(d,g){var a=g||c.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0])return false;var b=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var e=
c.data(this,"droppable");if(e.options.greedy&&c.ui.intersect(a,c.extend(e,{offset:e.element.offset()}),e.options.tolerance)){b=true;return false}});if(b)return false;if(this.options.accept.call(this.element[0],a.currentItem||a.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",d,this.ui(a));return this.element}return false},ui:function(d){return{draggable:d.currentItem||
d.element,helper:d.helper,position:d.position,absolutePosition:d.positionAbs,offset:d.positionAbs}}});c.extend(c.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});c.ui.intersect=function(d,g,a){if(!g.offset)return false;var b=(d.positionAbs||d.position.absolute).left,e=b+d.helperProportions.width,h=(d.positionAbs||d.position.absolute).top,k=h+d.helperProportions.height,j=g.offset.left,
n=j+g.proportions.width,q=g.offset.top,i=q+g.proportions.height;switch(a){case "fit":return j<b&&e<n&&q<h&&k<i;case "intersect":return j<b+d.helperProportions.width/2&&e-d.helperProportions.width/2<n&&q<h+d.helperProportions.height/2&&k-d.helperProportions.height/2<i;case "pointer":return c.ui.isOver((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top,(d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left,q,j,g.proportions.height,g.proportions.width);
case "touch":return(h>=q&&h<=i||k>=q&&k<=i||h<q&&k>i)&&(b>=j&&b<=n||e>=j&&e<=n||b<j&&e>n);default:return false}};c.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,g){var a=c.ui.ddmanager.droppables[d.options.scope],b=g?g.type:null,e=(d.currentItem||d.element).find(":data(droppable)").andSelf(),h=0;a:for(;h<a.length;h++)if(!(a[h].options.disabled||d&&!a[h].options.accept.call(a[h].element[0],d.currentItem||d.element))){for(var k=0;k<e.length;k++)if(e[k]==a[h].element[0]){a[h].proportions.height=
0;continue a}a[h].visible=a[h].element.css("display")!="none";if(a[h].visible){a[h].offset=a[h].element.offset();a[h].proportions={width:a[h].element[0].offsetWidth,height:a[h].element[0].offsetHeight};b=="mousedown"&&a[h]._activate.call(a[h],g)}}},drop:function(d,g){var a=false;c.each(c.ui.ddmanager.droppables[d.options.scope],function(){if(this.options){if(!this.options.disabled&&this.visible&&c.ui.intersect(d,this,this.options.tolerance))a=this._drop.call(this,g);if(!this.options.disabled&&this.visible&&
this.options.accept.call(this.element[0],d.currentItem||d.element)){this.isout=1;this.isover=0;this._deactivate.call(this,g)}}});return a},drag:function(d,g){d.options.refreshPositions&&c.ui.ddmanager.prepareOffsets(d,g);c.each(c.ui.ddmanager.droppables[d.options.scope],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var a=c.ui.intersect(d,this,this.options.tolerance);if(a=!a&&this.isover==1?"isout":a&&this.isover==0?"isover":null){var b;if(this.options.greedy){var e=this.element.parents(":data(droppable):eq(0)");
if(e.length){b=c.data(e[0],"droppable");b.greedyChild=a=="isover"?1:0}}if(b&&a=="isover"){b.isover=0;b.isout=1;b._out.call(b,g)}this[a]=1;this[a=="isout"?"isover":"isout"]=0;this[a=="isover"?"_over":"_out"].call(this,g);if(b&&a=="isout"){b.isout=0;b.isover=1;b._over.call(b,g)}}}})}}})(jQuery);
(function(c){c.widget("ui.resizable",c.extend({},c.ui.mouse,{_init:function(){var a=this,b=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!b.aspectRatio,aspectRatio:b.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&c.browser.opera&&this.element.css({position:"relative",
top:"auto",left:"auto"});this.element.wrap(c('<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=
b.handles||(!c(".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 e=this.handles.split(",");this.handles={};for(var h=0;h<e.length;h++){var k=c.trim(e[h]),j=c('<div class="ui-resizable-handle '+("ui-resizable-"+k)+'"></div>');/sw|se|ne|nw/.test(k)&&
j.css({zIndex:++b.zIndex});"se"==k&&j.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[k]=".ui-resizable-"+k;this.element.append(j)}}this._renderAxis=function(n){n=n||this.element;for(var q in this.handles){if(this.handles[q].constructor==String)this.handles[q]=c(this.handles[q],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var i=c(this.handles[q],this.element),x=0;x=/sw|ne|nw|se|n|s/.test(q)?i.outerHeight():i.outerWidth();
i=["padding",/ne|nw|n/.test(q)?"Top":/se|sw|s/.test(q)?"Bottom":/^e$/.test(q)?"Right":"Left"].join("");n.css(i,x);this._proportionallyResize()}c(this.handles[q])}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!a.resizing){if(this.className)var n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);a.axis=n&&n[1]?n[1]:"se"}});if(b.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");
a._handles.show()},function(){if(!a.resizing){c(this).addClass("ui-resizable-autohide");a._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var a=function(e){c(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){a(this.element);var b=this.element;b.parent().append(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),
top:b.css("top"),left:b.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);a(this.originalElement)},_mouseCapture:function(a){var b=false;for(var e in this.handles)if(c(this.handles[e])[0]==a.target)b=true;return this.options.disabled||!!b},_mouseStart:function(a){var b=this.options,e=this.element.position(),h=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(h.is(".ui-draggable")||/absolute/.test(h.css("position")))h.css({position:"absolute",
top:e.top,left:e.left});c.browser.opera&&/relative/.test(h.css("position"))&&h.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();e=d(this.helper.css("left"));var k=d(this.helper.css("top"));if(b.containment){e+=c(b.containment).scrollLeft()||0;k+=c(b.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:e,top:k};this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalSize=this._helper?{width:h.outerWidth(),
height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalPosition={left:e,top:k};this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()};this.originalMousePosition={left:a.pageX,top:a.pageY};this.aspectRatio=typeof b.aspectRatio=="number"?b.aspectRatio:this.originalSize.width/this.originalSize.height||1;b=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",b=="auto"?this.axis+"-resize":b);h.addClass("ui-resizable-resizing");this._propagate("start",
a);return true},_mouseDrag:function(a){var b=this.helper,e=this.originalMousePosition,h=this._change[this.axis];if(!h)return false;e=h.apply(this,[a,a.pageX-e.left||0,a.pageY-e.top||0]);if(this._aspectRatio||a.shiftKey)e=this._updateRatio(e,a);e=this._respectSize(e,a);this._propagate("resize",a);b.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(e);this._trigger("resize",a,this.ui());return false},_mouseStop:function(a){this.resizing=false;var b=this.options;if(this._helper){var e=this._proportionallyResizeElements,h=e.length&&/textarea/i.test(e[0].nodeName);e=h&&c.ui.hasScroll(e[0],"left")?0:this.sizeDiff.height;h={width:this.size.width-(h?0:this.sizeDiff.width),height:this.size.height-e};e=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var k=parseInt(this.element.css("top"),
10)+(this.position.top-this.originalPosition.top)||null;b.animate||this.element.css(c.extend(h,{top:k,left:e}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!b.animate&&this._proportionallyResize()}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",a);this._helper&&this.helper.remove();return false},_updateCache:function(a){this.offset=this.helper.offset();if(g(a.left))this.position.left=a.left;if(g(a.top))this.position.top=
a.top;if(g(a.height))this.size.height=a.height;if(g(a.width))this.size.width=a.width},_updateRatio:function(a){var b=this.position,e=this.size,h=this.axis;if(a.height)a.width=e.height*this.aspectRatio;else if(a.width)a.height=e.width/this.aspectRatio;if(h=="sw"){a.left=b.left+(e.width-a.width);a.top=null}if(h=="nw"){a.top=b.top+(e.height-a.height);a.left=b.left+(e.width-a.width)}return a},_respectSize:function(a){var b=this.options,e=this.axis,h=g(a.width)&&b.maxWidth&&b.maxWidth<a.width,k=g(a.height)&&
b.maxHeight&&b.maxHeight<a.height,j=g(a.width)&&b.minWidth&&b.minWidth>a.width,n=g(a.height)&&b.minHeight&&b.minHeight>a.height;if(j)a.width=b.minWidth;if(n)a.height=b.minHeight;if(h)a.width=b.maxWidth;if(k)a.height=b.maxHeight;var q=this.originalPosition.left+this.originalSize.width,i=this.position.top+this.size.height,x=/sw|nw|w/.test(e);e=/nw|ne|n/.test(e);if(j&&x)a.left=q-b.minWidth;if(h&&x)a.left=q-b.maxWidth;if(n&&e)a.top=i-b.minHeight;if(k&&e)a.top=i-b.maxHeight;if((b=!a.width&&!a.height)&&
!a.left&&a.top)a.top=null;else if(b&&!a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a=this.helper||this.element,b=0;b<this._proportionallyResizeElements.length;b++){var e=this._proportionallyResizeElements[b];if(!this.borderDif){var h=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],k=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];
this.borderDif=c.map(h,function(j,n){var q=parseInt(j,10)||0,i=parseInt(k[n],10)||0;return q+i})}c.browser.msie&&(c(a).is(":hidden")||c(a).parents(":hidden").length)||e.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var a=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var b=c.browser.msie&&c.browser.version<7,e=
b?1:0;b=b?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-e+"px",top:this.elementOffset.top-e+"px",zIndex:++a.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(a,b,e){return{top:this.originalPosition.top+
e,height:this.originalSize.height-e}},s:function(a,b,e){return{height:this.originalSize.height+e}},se:function(a,b,e){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,b,e]))},sw:function(a,b,e){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,b,e]))},ne:function(a,b,e){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,b,e]))},nw:function(a,b,e){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,
[a,b,e]))}},_propagate:function(a,b){c.ui.plugin.call(this,a,[b,this.ui()]);a!="resize"&&this._trigger(a,b,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}}}));c.extend(c.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}});c.ui.plugin.add("resizable","alsoResize",{start:function(){var a=c(this).data("resizable").options;_store=function(b){c(b).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),
10)})})};if(typeof a.alsoResize=="object"&&!a.alsoResize.parentNode)if(a.alsoResize.length){a.alsoResize=a.alsoResize[0];_store(a.alsoResize)}else c.each(a.alsoResize,function(b){_store(b)});else _store(a.alsoResize)},resize:function(){var a=c(this).data("resizable"),b=a.options,e=a.originalSize,h=a.originalPosition,k={height:a.size.height-e.height||0,width:a.size.width-e.width||0,top:a.position.top-h.top||0,left:a.position.left-h.left||0},j=function(n,q){c(n).each(function(){var i=c(this),x=c(this).data("resizable-alsoresize"),
A={};c.each((q&&q.length?q:["width","height","top","left"])||["width","height","top","left"],function(z,E){var G=(x[E]||0)+(k[E]||0);if(G&&G>=0)A[E]=G||null});if(/relative/.test(i.css("position"))&&c.browser.opera){a._revertToRelativePosition=true;i.css({position:"absolute",top:"auto",left:"auto"})}i.css(A)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?c.each(b.alsoResize,function(n,q){j(n,q)}):j(b.alsoResize)},stop:function(){var a=c(this).data("resizable");if(a._revertToRelativePosition&&
c.browser.opera){a._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});c.ui.plugin.add("resizable","animate",{stop:function(a){var b=c(this).data("resizable"),e=b.options,h=b._proportionallyResizeElements,k=h.length&&/textarea/i.test(h[0].nodeName),j=k&&c.ui.hasScroll(h[0],"left")?0:b.sizeDiff.height;k={width:b.size.width-(k?0:b.sizeDiff.width),height:b.size.height-j};j=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||
null;var n=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(c.extend(k,n&&j?{top:n,left:j}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var q={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};h&&h.length&&c(h[0]).css({width:q.width,height:q.height});b._updateCache(q);b._propagate("resize",a)}})}});c.ui.plugin.add("resizable",
"containment",{start:function(){var a=c(this).data("resizable"),b=a.element,e=a.options.containment;if(b=e instanceof c?e.get(0):/parent/.test(e)?b.parent().get(0):e){a.containerElement=c(b);if(/document/.test(e)||e==document){a.containerOffset={left:0,top:0};a.containerPosition={left:0,top:0};a.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var h=c(b),k=[];c(["Top","Right","Left","Bottom"]).each(function(q,
i){k[q]=d(h.css("padding"+i))});a.containerOffset=h.offset();a.containerPosition=h.position();a.containerSize={height:h.innerHeight()-k[3],width:h.innerWidth()-k[1]};e=a.containerOffset;var j=a.containerSize.height,n=a.containerSize.width;n=c.ui.hasScroll(b,"left")?b.scrollWidth:n;j=c.ui.hasScroll(b)?b.scrollHeight:j;a.parentData={element:b,left:e.left,top:e.top,width:n,height:j}}}},resize:function(a){var b=c(this).data("resizable"),e=b.options,h=b.containerOffset,k=b.position;a=b._aspectRatio||a.shiftKey;
var j={top:0,left:0},n=b.containerElement;if(n[0]!=document&&/static/.test(n.css("position")))j=h;if(k.left<(b._helper?h.left:0)){b.size.width+=b._helper?b.position.left-h.left:b.position.left-j.left;if(a)b.size.height=b.size.width/e.aspectRatio;b.position.left=e.helper?h.left:0}if(k.top<(b._helper?h.top:0)){b.size.height+=b._helper?b.position.top-h.top:b.position.top;if(a)b.size.width=b.size.height*e.aspectRatio;b.position.top=b._helper?h.top:0}b.offset.left=b.parentData.left+b.position.left;b.offset.top=
b.parentData.top+b.position.top;e=Math.abs((b._helper?b.offset.left-j.left:b.offset.left-j.left)+b.sizeDiff.width);h=Math.abs((b._helper?b.offset.top-j.top:b.offset.top-h.top)+b.sizeDiff.height);k=b.containerElement.get(0)==b.element.parent().get(0);j=/relative|absolute/.test(b.containerElement.css("position"));if(k&&j)e-=b.parentData.left;if(e+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-e;if(a)b.size.height=b.size.width/b.aspectRatio}if(h+b.size.height>=b.parentData.height){b.size.height=
b.parentData.height-h;if(a)b.size.width=b.size.height*b.aspectRatio}},stop:function(){var a=c(this).data("resizable"),b=a.options,e=a.containerOffset,h=a.containerPosition,k=a.containerElement,j=c(a.helper),n=j.offset(),q=j.outerWidth()-a.sizeDiff.width;j=j.outerHeight()-a.sizeDiff.height;a._helper&&!b.animate&&/relative/.test(k.css("position"))&&c(this).css({left:n.left-h.left-e.left,width:q,height:j});a._helper&&!b.animate&&/static/.test(k.css("position"))&&c(this).css({left:n.left-h.left-e.left,
width:q,height:j})}});c.ui.plugin.add("resizable","ghost",{start:function(){var a=c(this).data("resizable"),b=a.options,e=a.size;a.ghost=a.originalElement.clone();a.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof b.ghost=="string"?b.ghost:"");a.ghost.appendTo(a.helper)},resize:function(){var a=c(this).data("resizable");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},
stop:function(){var a=c(this).data("resizable");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});c.ui.plugin.add("resizable","grid",{resize:function(){var a=c(this).data("resizable"),b=a.options,e=a.size,h=a.originalSize,k=a.originalPosition,j=a.axis;b.grid=typeof b.grid=="number"?[b.grid,b.grid]:b.grid;var n=Math.round((e.width-h.width)/(b.grid[0]||1))*(b.grid[0]||1);b=Math.round((e.height-h.height)/(b.grid[1]||1))*(b.grid[1]||1);if(/^(se|s|e)$/.test(j)){a.size.width=h.width+n;a.size.height=
h.height+b}else if(/^(ne)$/.test(j)){a.size.width=h.width+n;a.size.height=h.height+b;a.position.top=k.top-b}else{if(/^(sw)$/.test(j)){a.size.width=h.width+n;a.size.height=h.height+b}else{a.size.width=h.width+n;a.size.height=h.height+b;a.position.top=k.top-b}a.position.left=k.left-n}}});var d=function(a){return parseInt(a,10)||0},g=function(a){return!isNaN(parseInt(a,10))}})(jQuery);
(function(c){c.widget("ui.selectable",c.extend({},c.ui.mouse,{_init:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var g;this.refresh=function(){g=c(d.options.filter,d.element[0]);g.each(function(){var a=c(this),b=a.offset();c.data(this,"selectable-item",{element:this,$element:a,left:b.left,top:b.top,right:b.left+a.outerWidth(),bottom:b.top+a.outerHeight(),startselected:false,selected:a.hasClass("ui-selected"),selecting:a.hasClass("ui-selecting"),unselecting:a.hasClass("ui-unselecting")})})};
this.refresh();this.selectees=g.addClass("ui-selectee");this._mouseInit();this.helper=c(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(d){var g=this;this.opos=[d.pageX,d.pageY];if(!this.options.disabled){var a=this.options;this.selectees=c(a.filter,this.element[0]);this._trigger("start",
d);c(a.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:d.clientX,top:d.clientY,width:0,height:0});a.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=c.data(this,"selectable-item");b.startselected=true;if(!d.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;g._trigger("unselecting",d,{unselecting:b.element})}});c(d.target).parents().andSelf().each(function(){var b=
c.data(this,"selectable-item");if(b){b.$element.removeClass("ui-unselecting").addClass("ui-selecting");b.unselecting=false;b.selecting=true;b.selected=true;g._trigger("selecting",d,{selecting:b.element});return false}})}},_mouseDrag:function(d){var g=this;this.dragged=true;if(!this.options.disabled){var a=this.options,b=this.opos[0],e=this.opos[1],h=d.pageX,k=d.pageY;if(b>h){var j=h;h=b;b=j}if(e>k){j=k;k=e;e=j}this.helper.css({left:b,top:e,width:h-b,height:k-e});this.selectees.each(function(){var n=
c.data(this,"selectable-item");if(!(!n||n.element==g.element[0])){var q=false;if(a.tolerance=="touch")q=!(n.left>h||n.right<b||n.top>k||n.bottom<e);else if(a.tolerance=="fit")q=n.left>b&&n.right<h&&n.top>e&&n.bottom<k;if(q){if(n.selected){n.$element.removeClass("ui-selected");n.selected=false}if(n.unselecting){n.$element.removeClass("ui-unselecting");n.unselecting=false}if(!n.selecting){n.$element.addClass("ui-selecting");n.selecting=true;g._trigger("selecting",d,{selecting:n.element})}}else{if(n.selecting)if(d.metaKey&&
n.startselected){n.$element.removeClass("ui-selecting");n.selecting=false;n.$element.addClass("ui-selected");n.selected=true}else{n.$element.removeClass("ui-selecting");n.selecting=false;if(n.startselected){n.$element.addClass("ui-unselecting");n.unselecting=true}g._trigger("unselecting",d,{unselecting:n.element})}if(n.selected)if(!d.metaKey&&!n.startselected){n.$element.removeClass("ui-selected");n.selected=false;n.$element.addClass("ui-unselecting");n.unselecting=true;g._trigger("unselecting",d,
{unselecting:n.element})}}}});return false}},_mouseStop:function(d){var g=this;this.dragged=false;c(".ui-unselecting",this.element[0]).each(function(){var a=c.data(this,"selectable-item");a.$element.removeClass("ui-unselecting");a.unselecting=false;a.startselected=false;g._trigger("unselected",d,{unselected:a.element})});c(".ui-selecting",this.element[0]).each(function(){var a=c.data(this,"selectable-item");a.$element.removeClass("ui-selecting").addClass("ui-selected");a.selecting=false;a.selected=
true;a.startselected=true;g._trigger("selected",d,{selected:a.element})});this._trigger("stop",d);this.helper.remove();return false}}));c.extend(c.ui.selectable,{version:"1.7.2",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);
(function(c){c.widget("ui.sortable",c.extend({},c.ui.mouse,{_init:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item")},
_mouseCapture:function(d,g){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var a=null,b=this;c(d.target).parents().each(function(){if(c.data(this,"sortable-item")==b){a=c(this);return false}});if(c.data(d.target,"sortable-item")==b)a=c(d.target);if(!a)return false;if(this.options.handle&&!g){var e=false;c(this.options.handle,a).find("*").andSelf().each(function(){if(this==d.target)e=true});if(!e)return false}this.currentItem=
a;this._removeCurrentsFromItems();return true},_mouseStart:function(d,g,a){g=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");c.extend(this.offset,
{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();g.containment&&this._setContainment();
if(g.cursor){if(c("body").css("cursor"))this._storedCursor=c("body").css("cursor");c("body").css("cursor",g.cursor)}if(g.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",g.opacity)}if(g.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",g.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!a)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",d,this._uiHash(this));if(c.ui.ddmanager)c.ui.ddmanager.current=this;c.ui.ddmanager&&!g.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);return true},_mouseDrag:function(d){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var g=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<g.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+g.scrollSpeed;else if(d.pageY-this.overflowOffset.top<g.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-g.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-d.pageX<g.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+g.scrollSpeed;else if(d.pageX-this.overflowOffset.left<g.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-g.scrollSpeed}else{if(d.pageY-c(document).scrollTop()<g.scrollSensitivity)a=c(document).scrollTop(c(document).scrollTop()-g.scrollSpeed);else if(c(window).height()-(d.pageY-c(document).scrollTop())<g.scrollSensitivity)a=c(document).scrollTop(c(document).scrollTop()+
g.scrollSpeed);if(d.pageX-c(document).scrollLeft()<g.scrollSensitivity)a=c(document).scrollLeft(c(document).scrollLeft()-g.scrollSpeed);else if(c(window).width()-(d.pageX-c(document).scrollLeft())<g.scrollSensitivity)a=c(document).scrollLeft(c(document).scrollLeft()+g.scrollSpeed)}a!==false&&c.ui.ddmanager&&!g.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,d)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(g=this.items.length-1;g>=0;g--){a=this.items[g];var b=a.item[0],e=this._intersectsWithPointer(a);if(e)if(b!=this.currentItem[0]&&this.placeholder[e==1?"next":"prev"]()[0]!=b&&!c.ui.contains(this.placeholder[0],b)&&(this.options.type=="semi-dynamic"?!c.ui.contains(this.element[0],b):true)){this.direction=e==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(a))this._rearrange(d,
a);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);c.ui.ddmanager&&c.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,g){if(d){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,d);if(this.options.revert){var a=this,b=a.placeholder.offset();a.reverting=true;c(this.helper).animate({left:b.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(d)})}else this._clear(d,g);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,this._uiHash(this));this.containers[d].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();c.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?c(this.domPosition.prev).after(this.currentItem):
c(this.domPosition.parent).prepend(this.currentItem);return true},serialize:function(d){var g=this._getItemsAsjQuery(d&&d.connected),a=[];d=d||{};c(g).each(function(){var b=(c(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(b)a.push((d.key||b[1]+"[]")+"="+(d.key&&d.expression?b[1]:b[2]))});return a.join("&")},toArray:function(d){var g=this._getItemsAsjQuery(d&&d.connected),a=[];d=d||{};g.each(function(){a.push(c(d.item||this).attr(d.attribute||"id")||"")});return a},
_intersectsWith:function(d){var g=this.positionAbs.left,a=g+this.helperProportions.width,b=this.positionAbs.top,e=b+this.helperProportions.height,h=d.left,k=h+d.width,j=d.top,n=j+d.height,q=this.offset.click.top,i=this.offset.click.left;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>d[this.floating?"width":"height"]?b+q>j&&b+q<n&&g+i>h&&g+i<k:h<g+this.helperProportions.width/
2&&a-this.helperProportions.width/2<k&&j<b+this.helperProportions.height/2&&e-this.helperProportions.height/2<n},_intersectsWithPointer:function(d){var g=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);g=g&&d;d=this._getDragVerticalDirection();var a=this._getDragHorizontalDirection();if(!g)return false;return this.floating?a&&a=="right"||d=="down"?2:1:d&&(d=="down"?2:1)},_intersectsWithSides:function(d){var g=
c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var a=this._getDragVerticalDirection(),b=this._getDragHorizontalDirection();return this.floating&&b?b=="right"&&d||b=="left"&&!d:a&&(a=="down"&&g||a=="up"&&!g)},_getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return d!=0&&(d>0?"down":"up")},_getDragHorizontalDirection:function(){var d=
this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions()},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var g=[],a=[],b=this._connectWith();if(b&&d)for(d=b.length-1;d>=0;d--)for(var e=c(b[d]),h=e.length-1;h>=0;h--){var k=c.data(e[h],"sortable");if(k&&k!=this&&!k.options.disabled)a.push([c.isFunction(k.options.items)?
k.options.items.call(k.element):c(k.options.items,k.element).not(".ui-sortable-helper"),k])}a.push([c.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(d=a.length-1;d>=0;d--)a[d][0].each(function(){g.push(this)});return c(g)},_removeCurrentsFromItems:function(){for(var d=this.currentItem.find(":data(sortable-item)"),g=0;g<this.items.length;g++)for(var a=0;a<
d.length;a++)d[a]==this.items[g].item[0]&&this.items.splice(g,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var g=this.items,a=[[c.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):c(this.options.items,this.element),this]],b=this._connectWith();if(b)for(var e=b.length-1;e>=0;e--)for(var h=c(b[e]),k=h.length-1;k>=0;k--){var j=c.data(h[k],"sortable");if(j&&j!=this&&!j.options.disabled){a.push([c.isFunction(j.options.items)?j.options.items.call(j.element[0],
d,{item:this.currentItem}):c(j.options.items,j.element),j]);this.containers.push(j)}}for(e=a.length-1;e>=0;e--){d=a[e][1];b=a[e][0];k=0;for(h=b.length;k<h;k++){j=c(b[k]);j.data("sortable-item",d);g.push({item:j,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var g=this.items.length-1;g>=0;g--){var a=this.items[g];if(!(a.instance!=this.currentContainer&&this.currentContainer&&a.item[0]!=this.currentItem[0])){var b=
this.options.toleranceElement?c(this.options.toleranceElement,a.item):a.item;if(!d){a.width=b.outerWidth();a.height=b.outerHeight()}b=b.offset();a.left=b.left;a.top=b.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(g=this.containers.length-1;g>=0;g--){b=this.containers[g].element.offset();this.containers[g].containerCache.left=b.left;this.containers[g].containerCache.top=b.top;this.containers[g].containerCache.width=this.containers[g].element.outerWidth();
this.containers[g].containerCache.height=this.containers[g].element.outerHeight()}},_createPlaceholder:function(d){var g=d||this,a=g.options;if(!a.placeholder||a.placeholder.constructor==String){var b=a.placeholder;a.placeholder={element:function(){var e=c(document.createElement(g.currentItem[0].nodeName)).addClass(b||g.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!b)e.style.visibility="hidden";return e},update:function(e,h){if(!(b&&!a.forcePlaceholderSize)){h.height()||
h.height(g.currentItem.innerHeight()-parseInt(g.currentItem.css("paddingTop")||0,10)-parseInt(g.currentItem.css("paddingBottom")||0,10));h.width()||h.width(g.currentItem.innerWidth()-parseInt(g.currentItem.css("paddingLeft")||0,10)-parseInt(g.currentItem.css("paddingRight")||0,10))}}}}g.placeholder=c(a.placeholder.element.call(g.element,g.currentItem));g.currentItem.after(g.placeholder);a.placeholder.update(g,g.placeholder)},_contactContainers:function(d){for(var g=this.containers.length-1;g>=0;g--)if(this._intersectsWith(this.containers[g].containerCache)){if(!this.containers[g].containerCache.over){if(this.currentContainer!=
this.containers[g]){for(var a=1E4,b=null,e=this.positionAbs[this.containers[g].floating?"left":"top"],h=this.items.length-1;h>=0;h--)if(c.ui.contains(this.containers[g].element[0],this.items[h].item[0])){var k=this.items[h][this.containers[g].floating?"left":"top"];if(Math.abs(k-e)<a){a=Math.abs(k-e);b=this.items[h]}}if(!b&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[g];b?this._rearrange(d,b,null,true):this._rearrange(d,null,this.containers[g].element,true);this._trigger("change",
d,this._uiHash());this.containers[g]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[g]._trigger("over",d,this._uiHash(this));this.containers[g].containerCache.over=1}}else if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",d,this._uiHash(this));this.containers[g].containerCache.over=0}},_createHelper:function(d){var g=this.options;d=c.isFunction(g.helper)?c(g.helper.apply(this.element[0],[d,
this.currentItem])):g.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||c(g.appendTo!="parent"?g.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==""||g.forceHelperSize)d.width(this.currentItem.width());
if(d[0].style.height==""||g.forceHelperSize)d.height(this.currentItem.height());return d},_adjustOffsetFromHelper:function(d){if(d.left!=undefined)this.offset.click.left=d.left+this.margins.left;if(d.right!=undefined)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if(d.top!=undefined)this.offset.click.top=d.top+this.margins.top;if(d.bottom!=undefined)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c(d.containment=="document"?document:window).height()||
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var g=c(d.containment)[0];d=c(d.containment).offset();var a=c(g).css("overflow")!="hidden";this.containment=[d.left+(parseInt(c(g).css("borderLeftWidth"),10)||0)+(parseInt(c(g).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(c(g).css("borderTopWidth"),10)||0)+(parseInt(c(g).css("paddingTop"),10)||0)-this.margins.top,d.left+(a?Math.max(g.scrollWidth,
g.offsetWidth):g.offsetWidth)-(parseInt(c(g).css("borderLeftWidth"),10)||0)-(parseInt(c(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(a?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(c(g).css("borderTopWidth"),10)||0)-(parseInt(c(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,g){if(!g)g=this.position;var a=d=="absolute"?1:-1,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(b[0].tagName);return{top:g.top+this.offset.relative.top*a+this.offset.parent.top*a-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:b.scrollTop())*a),left:g.left+this.offset.relative.left*a+this.offset.parent.left*a-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
e?0:b.scrollLeft())*a)}},_generatePosition:function(d){var g=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var e=d.pageX,h=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-
this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])h=this.containment[3]+this.offset.click.top}if(g.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/g.grid[1])*g.grid[1];h=this.containment?!(h-this.offset.click.top<
this.containment[1]||h-this.offset.click.top>this.containment[3])?h:!(h-this.offset.click.top<this.containment[1])?h-g.grid[1]:h+g.grid[1]:h;e=this.originalPageX+Math.round((e-this.originalPageX)/g.grid[0])*g.grid[0];e=this.containment?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-g.grid[0]:e+g.grid[0]:e}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&
this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:a.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:a.scrollLeft())}},_rearrange:function(d,g,a,b){a?a[0].appendChild(this.placeholder[0]):g.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?g.item[0]:g.item[0].nextSibling);this.counter=
this.counter?++this.counter:1;var e=this,h=this.counter;window.setTimeout(function(){h==e.counter&&e.refreshPositions(!b)},0)},_clear:function(d,g){this.reverting=false;var a=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var b in this._storedCSS)if(this._storedCSS[b]=="auto"||this._storedCSS[b]=="static")this._storedCSS[b]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
this.fromOutside&&!g&&a.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!g)a.push(function(e){this._trigger("update",e,this._uiHash())});if(!c.ui.contains(this.element[0],this.currentItem[0])){g||a.push(function(e){this._trigger("remove",e,this._uiHash())});for(b=this.containers.length-1;b>=0;b--)if(c.ui.contains(this.containers[b].element[0],
this.currentItem[0])&&!g){a.push(function(e){return function(h){e._trigger("receive",h,this._uiHash(this))}}.call(this,this.containers[b]));a.push(function(e){return function(h){e._trigger("update",h,this._uiHash(this))}}.call(this,this.containers[b]))}}for(b=this.containers.length-1;b>=0;b--){g||a.push(function(e){return function(h){e._trigger("deactivate",h,this._uiHash(this))}}.call(this,this.containers[b]));if(this.containers[b].containerCache.over){a.push(function(e){return function(h){e._trigger("out",
h,this._uiHash(this))}}.call(this,this.containers[b]));this.containers[b].containerCache.over=0}}this._storedCursor&&c("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!g){this._trigger("beforeStop",d,this._uiHash());for(b=0;b<a.length;b++)a[b].call(this,d);this._trigger("stop",d,this._uiHash())}return false}g||
this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!g){for(b=0;b<a.length;b++)a[b].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){c.widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var g=d||this;return{helper:g.helper,placeholder:g.placeholder||c([]),position:g.position,
absolutePosition:g.positionAbs,offset:g.positionAbs,item:g.currentItem,sender:d?d.element:null}}}));c.extend(c.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,
scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3}})})(jQuery);
(function(c){c.widget("ui.accordion",{_init:function(){var d=this.options,g=this;this.running=0;if(d.collapsible==c.ui.accordion.defaults.collapsible&&d.alwaysOpen!=c.ui.accordion.defaults.alwaysOpen)d.collapsible=!d.alwaysOpen;if(d.navigation){var a=this.element.find("a").filter(d.navigationFilter);if(a.length)if(a.filter(d.header).length)this.active=a;else{this.active=a.parent().parent().prev();a.addClass("ui-accordion-content-active")}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.element[0].nodeName==
"UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");c("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);c.browser.msie&&this.element.find("a").css("zoom","1");this.resize();this.element.attr("role","tablist");
this.headers.attr("role","tab").bind("keydown",function(b){return g._keydown(b)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");c.browser.safari||this.headers.find("a").attr("tabIndex","-1");d.event&&this.headers.bind(d.event+".accordion",function(b){return g._clickHandler.call(g,b,this)})},destroy:function(){var d=
this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var g=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");
if(d.autoHeight||d.fillHeight)g.css("height","")},_setData:function(d,g){if(d=="alwaysOpen"){d="collapsible";g=!g}c.widget.prototype._setData.apply(this,arguments)},_keydown:function(d){var g=c.ui.keyCode;if(!(this.options.disabled||d.altKey||d.ctrlKey)){var a=this.headers.length,b=this.headers.index(d.target),e=false;switch(d.keyCode){case g.RIGHT:case g.DOWN:e=this.headers[(b+1)%a];break;case g.LEFT:case g.UP:e=this.headers[(b-1+a)%a];break;case g.SPACE:case g.ENTER:return this._clickHandler({target:d.target},
d.target)}if(e){c(d.target).attr("tabIndex","-1");c(e).attr("tabIndex","0");e.focus();return false}return true}},resize:function(){var d=this.options,g;if(d.fillSpace){if(c.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}g=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",a);this.headers.each(function(){g-=c(this).outerHeight()});var b=0;this.headers.next().each(function(){b=Math.max(b,c(this).innerHeight()-
c(this).height())}).height(Math.max(0,g-b)).css("overflow","auto")}else if(d.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,c(this).outerHeight())}).height(g)}},activate:function(d){d=this._findActive(d)[0];this._clickHandler({target:d},d)},_findActive:function(d){return d?typeof d=="number"?this.headers.filter(":eq("+d+")"):this.headers.not(this.headers.not(d)):d===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(d,g){var a=this.options;if(a.disabled)return false;
if(!d.target&&a.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");var b=this.active.next();a={options:a,newHeader:c([]),oldHeader:a.active,newContent:c([]),oldContent:b};var e=this.active=c([]);this._toggle(e,b,a);return false}var h=c(d.currentTarget||g),k=h[0]==this.active[0];if(this.running||!a.collapsible&&
k)return false;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!k){h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(a.icons.header).addClass(a.icons.headerSelected);h.next().addClass("ui-accordion-content-active")}e=h.next();b=this.active.next();
a={options:a,newHeader:k&&a.collapsible?c([]):h,oldHeader:this.active,newContent:k&&a.collapsible?c([]):e.find("> *"),oldContent:b.find("> *")};var j=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=k?c([]):h;this._toggle(e,b,a,k,j);return false},_toggle:function(d,g,a,b,e){var h=this.options,k=this;this.toShow=d;this.toHide=g;this.data=a;var j=function(){if(k)return k._completed.apply(k,arguments)};this._trigger("changestart",null,this.data);this.running=g.size()===0?d.size():
g.size();if(h.animated){a={};a=h.collapsible&&b?{toShow:c([]),toHide:g,complete:j,down:e,autoHeight:h.autoHeight||h.fillSpace}:{toShow:d,toHide:g,complete:j,down:e,autoHeight:h.autoHeight||h.fillSpace};if(!h.proxied)h.proxied=h.animated;if(!h.proxiedDuration)h.proxiedDuration=h.duration;h.animated=c.isFunction(h.proxied)?h.proxied(a):h.proxied;h.duration=c.isFunction(h.proxiedDuration)?h.proxiedDuration(a):h.proxiedDuration;b=c.ui.accordion.animations;var n=h.duration,q=h.animated;b[q]||(b[q]=function(i){this.slide(i,
{easing:q,duration:n||700})});b[q](a)}else{if(h.collapsible&&b)d.toggle();else{g.hide();d.show()}j(true)}g.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();d.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(d){var g=this.options;this.running=d?0:--this.running;if(!this.running){g.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.7.2",defaults:{active:null,
alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(d,g){d=c.extend({easing:"swing",duration:300},d,g);if(d.toHide.size())if(d.toShow.size()){var a=d.toShow.css("overflow"),b,e={},h={},
k,j=d.toShow;k=j[0].style.width;j.width(parseInt(j.parent().width(),10)-parseInt(j.css("paddingLeft"),10)-parseInt(j.css("paddingRight"),10)-(parseInt(j.css("borderLeftWidth"),10)||0)-(parseInt(j.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(n,q){h[q]="hide";var i=(""+c.css(d.toShow[0],q)).match(/^([\d+-.]+)(.*)$/);e[q]={value:i[1],unit:i[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(h,
{step:function(n,q){if(q.prop=="height")b=(q.now-q.start)/(q.end-q.start);d.toShow[0].style[q.prop]=b*e[q.prop].value+e[q.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css("width",k);d.toShow.css({overflow:a});d.complete()}})}else d.toHide.animate({height:"hide"},d);else d.toShow.animate({height:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})},easeslide:function(d){this.slide(d,
{easing:"easeinout",duration:700})}}})})(jQuery);
(function(c){var d={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var g=this,a=this.options,b=a.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),h=(this.uiDialog=
c("<div/>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){a.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&g.close(n)}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){g.moveToTop(false,n)});this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(h);
var k=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(h),j=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).mousedown(function(n){n.stopPropagation()}).click(function(n){g.close(n);return false}).appendTo(k);
(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(a.closeText).appendTo(j);c("<span/>").addClass("ui-dialog-title").attr("id",e).html(b).prependTo(k);k.find("*").add(k).disableSelection();a.draggable&&c.fn.draggable&&this._makeDraggable();a.resizable&&c.fn.resizable&&this._makeResizable();this._createButtons(a.buttons);this._isOpen=false;a.bgiframe&&c.fn.bgiframe&&h.bgiframe();a.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();
this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle)},close:function(g){var a=this;if(false!==a._trigger("beforeclose",g)){a.overlay&&a.overlay.destroy();a.uiDialog.unbind("keypress.ui-dialog");a.options.hide?a.uiDialog.hide(a.options.hide,function(){a._trigger("close",g)}):a.uiDialog.hide()&&a._trigger("close",g);c.ui.dialog.overlay.resize();
a._isOpen=false;if(a.options.modal){var b=0;c(".ui-dialog").each(function(){if(this!=a.uiDialog[0])b=Math.max(b,c(this).css("z-index"))});c.ui.dialog.maxZ=b}}},isOpen:function(){return this._isOpen},moveToTop:function(g,a){if(this.options.modal&&!g||!this.options.stack&&!this.options.modal)return this._trigger("focus",a);if(this.options.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=this.options.zIndex;this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ);var b={scrollTop:this.element.attr("scrollTop"),
scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(b);this._trigger("focus",a)},open:function(){if(!this._isOpen){var g=this.options,a=this.uiDialog;this.overlay=g.modal?new c.ui.dialog.overlay(this):null;a.next().length&&a.appendTo("body");this._size();this._position(g.position);a.show(g.show);this.moveToTop(true);g.modal&&a.bind("keypress.ui-dialog",function(b){if(b.keyCode==c.ui.keyCode.TAB){var e=c(":tabbable",this),h=e.filter(":first")[0],
k=e.filter(":last")[0];if(b.target==k&&!b.shiftKey)setTimeout(function(){h.focus()},1);else b.target==h&&b.shiftKey&&setTimeout(function(){k.focus()},1)}});c([]).add(a.find(".ui-dialog-content :tabbable:first")).add(a.find(".ui-dialog-buttonpane :tabbable:first")).add(a).filter(":first").focus();this._trigger("open");this._isOpen=true}},_createButtons:function(g){var a=this,b=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof g=="object"&&g!==null&&c.each(g,function(){return!(b=true)});if(b){c.each(g,function(h,k){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){k.apply(a.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var g=
this,a=this.options,b;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){b=a.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");a.dragStart&&a.dragStart.apply(g.element[0],arguments)},drag:function(){a.drag&&a.drag.apply(g.element[0],arguments)},stop:function(){c(this).removeClass("ui-dialog-dragging").height(b);a.dragStop&&a.dragStop.apply(g.element[0],arguments);c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=
g===undefined?this.options.resizable:g;var a=this,b=this.options;this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:b.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");b.resizeStart&&b.resizeStart.apply(a.element[0],arguments)},resize:function(){b.resize&&b.resize.apply(a.element[0],arguments)},handles:typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw",stop:function(){c(this).removeClass("ui-dialog-resizing");
b.height=c(this).height();b.width=c(this).width();b.resizeStop&&b.resizeStop.apply(a.element[0],arguments);c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(g){var a=c(window),b=c(document),e=b.scrollTop();b=b.scrollLeft();var h=e;if(c.inArray(g,["center","top","right","bottom","left"])>=0)g=[g=="right"||g=="left"?g:"center",g=="top"||g=="bottom"?g:"middle"];if(g.constructor!=Array)g=["center","middle"];if(g[0].constructor==Number)b+=
g[0];else switch(g[0]){case "left":b+=0;break;case "right":b+=a.width()-this.uiDialog.outerWidth();break;default:case "center":b+=(a.width()-this.uiDialog.outerWidth())/2}if(g[1].constructor==Number)e+=g[1];else switch(g[1]){case "top":e+=0;break;case "bottom":e+=a.height()-this.uiDialog.outerHeight();break;default:case "middle":e+=(a.height()-this.uiDialog.outerHeight())/2}e=Math.max(e,h);this.uiDialog.css({top:e,left:b})},_setData:function(g,a){d[g]&&this.uiDialog.data(d[g],a);switch(g){case "buttons":this._createButtons(a);
break;case "closeText":this.uiDialogTitlebarCloseText.text(a);break;case "dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a);break;case "draggable":a?this._makeDraggable():this.uiDialog.draggable("destroy");break;case "height":this.uiDialog.height(a);break;case "position":this._position(a);break;case "resizable":var b=this.uiDialog,e=this.uiDialog.is(":data(resizable)");e&&!a&&b.resizable("destroy");e&&typeof a=="string"&&
b.resizable("option","handles",a);e||this._makeResizable(a);break;case "title":c(".ui-dialog-title",this.uiDialogTitlebar).html(a||"&nbsp;");break;case "width":this.uiDialog.width(a);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var g=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var a=this.uiDialog.css({height:"auto",width:g.width}).height();this.element.css({minHeight:Math.max(g.minHeight-a,0),height:g.height=="auto"?"auto":Math.max(g.height-a,0)})}});
c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(g){return"ui-dialog-title-"+(g.attr("id")||++this.uuid)},overlay:function(g){this.$el=c.ui.dialog.overlay.create(g)}});
c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(g){return g+".dialog-overlay"}).join(" "),create:function(g){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(b){return(c(b.target).parents(".ui-dialog").css("zIndex")||0)>c.ui.dialog.overlay.maxZ})},1);c(document).bind("keydown.dialog-overlay",function(b){g.options.closeOnEscape&&
b.keyCode&&b.keyCode==c.ui.keyCode.ESCAPE&&g.close(b)});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var a=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});g.options.bgiframe&&c.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(g){this.instances.splice(c.inArray(this.instances,g),1);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");g.remove();var a=0;c.each(this.instances,
function(){a=Math.max(a,this.css("z-index"))});this.maxZ=a},height:function(){if(c.browser.msie&&c.browser.version<7){var g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return g<Math.max(document.documentElement.offsetHeight,document.body.offsetHeight)?c(window).height()+"px":g+"px"}else return c(document).height()+"px"},width:function(){if(c.browser.msie&&c.browser.version<7){var g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);return g<Math.max(document.documentElement.offsetWidth,
document.body.offsetWidth)?c(window).width()+"px":g+"px"}else return c(document).width()+"px"},resize:function(){var g=c([]);c.each(c.ui.dialog.overlay.instances,function(){g=g.add(this)});g.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(c){c.widget("ui.slider",c.extend({},c.ui.mouse,{_init:function(){var d=this,g=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=c([]);if(g.range){if(g.range===true){this.range=c("<div></div>");if(!g.values)g.values=[this._valueMin(),this._valueMin()];if(g.values.length&&g.values.length!=2)g.values=[g.values[0],g.values[0]]}else this.range=
c("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(g.range=="min"||g.range=="max")this.range.addClass("ui-slider-range-"+g.range);this.range.addClass("ui-widget-header")}c(".ui-slider-handle",this.element).length==0&&c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(g.values&&g.values.length)for(;c(".ui-slider-handle",this.element).length<g.values.length;)c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=
c(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){g.disabled||c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){if(g.disabled)c(this).blur();else{c(".ui-slider .ui-state-focus").removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}}).blur(function(){c(this).removeClass("ui-state-focus")});
this.handles.each(function(a){c(this).data("index.ui-slider-handle",a)});this.handles.keydown(function(a){var b=true,e=c(this).data("index.ui-slider-handle");if(!d.options.disabled){switch(a.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:b=false;if(!d._keySliding){d._keySliding=true;c(this).addClass("ui-state-active");d._start(a,e)}break}var h,k,j=d._step();h=d.options.values&&d.options.values.length?
(k=d.values(e)):(k=d.value());switch(a.keyCode){case c.ui.keyCode.HOME:k=d._valueMin();break;case c.ui.keyCode.END:k=d._valueMax();break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:if(h==d._valueMax())return;k=h+j;break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(h==d._valueMin())return;k=h-j;break}d._slide(a,e,k);return b}}).keyup(function(a){var b=c(this).data("index.ui-slider-handle");if(d._keySliding){d._stop(a,b);d._change(a,b);d._keySliding=false;c(this).removeClass("ui-state-active")}});
this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(d){var g=this.options;if(g.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var a={x:d.pageX,y:d.pageY},
b=this._normValueFromMouse(a),e=this._valueMax()-this._valueMin()+1,h,k=this,j;this.handles.each(function(n){var q=Math.abs(b-k.values(n));if(e>q){e=q;h=c(this);j=n}});if(g.range==true&&this.values(1)==g.min)h=c(this.handles[++j]);this._start(d,j);k._handleIndex=j;h.addClass("ui-state-active").focus();g=h.offset();this._clickOffset=!c(d.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:d.pageX-g.left-h.width()/2,top:d.pageY-g.top-h.height()/2-(parseInt(h.css("borderTopWidth"),
10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};b=this._normValueFromMouse(a);this._slide(d,j,b);return true},_mouseStart:function(){return true},_mouseDrag:function(d){var g=this._normValueFromMouse({x:d.pageX,y:d.pageY});this._slide(d,this._handleIndex,g);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._clickOffset=this._handleIndex=null;return false},
_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var g;if("horizontal"==this.orientation){g=this.elementSize.width;d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{g=this.elementSize.height;d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}g=d/g;if(g>1)g=1;if(g<0)g=0;if("vertical"==this.orientation)g=1-g;d=this._valueMax()-this._valueMin();d=g*d;g=d%this.options.step;
d=this._valueMin()+d-g;if(g>this.options.step/2)d+=this.options.step;return parseFloat(d.toFixed(5))},_start:function(d,g){var a={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(g);a.values=this.values()}this._trigger("start",d,a)},_slide:function(d,g,a){if(this.options.values&&this.options.values.length){var b=this.values(g?0:1);if(this.options.values.length==2&&this.options.range===true&&(g==0&&a>b||g==1&&a<b))a=b;if(a!=this.values(g)){b=
this.values();b[g]=a;b=this._trigger("slide",d,{handle:this.handles[g],value:a,values:b});this.values(g?0:1);b!==false&&this.values(g,a,d.type=="mousedown"&&this.options.animate,true)}}else if(a!=this.value()){b=this._trigger("slide",d,{handle:this.handles[g],value:a});b!==false&&this._setData("value",a,d.type=="mousedown"&&this.options.animate)}},_stop:function(d,g){var a={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(g);a.values=
this.values()}this._trigger("stop",d,a)},_change:function(d,g){var a={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(g);a.values=this.values()}this._trigger("change",d,a)},value:function(d){if(arguments.length){this._setData("value",d);this._change(null,0)}return this._value()},values:function(d,g,a,b){if(arguments.length>1){this.options.values[d]=g;this._refreshValue(a);b||this._change(null,d)}return arguments.length?this.options.values&&
this.options.values.length?this._values(d):this.value():this._values()},_setData:function(d,g,a){c.widget.prototype._setData.apply(this,arguments);switch(d){case "disabled":if(g){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue(a);break;case "value":this._refreshValue(a);break}},_step:function(){return this.options.step},_value:function(){var d=this.options.value;if(d<this._valueMin())d=this._valueMin();if(d>this._valueMax())d=this._valueMax();return d},_values:function(d){if(arguments.length){var g=this.options.values[d];if(g<this._valueMin())g=this._valueMin();if(g>this._valueMax())g=this._valueMax();return g}else return this.options.values},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(d){var g=this.options.range,a=this.options,b=this;if(this.options.values&&this.options.values.length)this.handles.each(function(j){var n=(b.values(j)-b._valueMin())/(b._valueMax()-b._valueMin())*100,q={};q[b.orientation=="horizontal"?"left":"bottom"]=n+"%";c(this).stop(1,1)[d?"animate":"css"](q,a.animate);if(b.options.range===true)if(b.orientation=="horizontal"){j==0&&b.range.stop(1,1)[d?"animate":"css"]({left:n+"%"},a.animate);j==1&&b.range[d?"animate":"css"]({width:n-lastValPercent+
"%"},{queue:false,duration:a.animate})}else{j==0&&b.range.stop(1,1)[d?"animate":"css"]({bottom:n+"%"},a.animate);j==1&&b.range[d?"animate":"css"]({height:n-lastValPercent+"%"},{queue:false,duration:a.animate})}lastValPercent=n});else{var e=this.value(),h=this._valueMin(),k=this._valueMax();e=k!=h?(e-h)/(k-h)*100:0;h={};h[b.orientation=="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[d?"animate":"css"](h,a.animate);g=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[d?"animate":
"css"]({width:e+"%"},a.animate);g=="max"&&this.orientation=="horizontal"&&this.range[d?"animate":"css"]({width:100-e+"%"},{queue:false,duration:a.animate});g=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[d?"animate":"css"]({height:e+"%"},a.animate);g=="max"&&this.orientation=="vertical"&&this.range[d?"animate":"css"]({height:100-e+"%"},{queue:false,duration:a.animate})}}}));c.extend(c.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,
distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
(function(c){c.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined)this.options.collapsible=this.options.deselectable;this._tabify(true)},_setData:function(d,g){if(d=="selected")this.options.collapsible&&g==this.options.selected||this.select(g);else{this.options[d]=g;if(d=="deselectable")this.options.collapsible=g;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+c.data(d)},_sanitizeSelector:function(d){return d.replace(/:/g,
"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+c.data(this.list[0]));return c.cookie.apply(null,[d].concat(c.makeArray(arguments)))},_ui:function(d,g){return{tab:d,panel:g,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=c(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(d){function g(x,A){x.css({display:""});
c.browser.msie&&A.opacity&&x[0].style.removeAttribute("filter")}this.list=this.element.children("ul:first");this.lis=c("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);var a=this,b=this.options,e=/^#.+/;this.anchors.each(function(x,A){var z=c(A).attr("href"),E=z.split("#")[0],G;if(E&&(E===location.toString().split("#")[0]||(G=c("base")[0])&&E===G.href)){z=A.hash;A.href=z}if(e.test(z))a.panels=a.panels.add(a._sanitizeSelector(z));else if(z!=
"#"){c.data(A,"href.tabs",z);c.data(A,"load.tabs",z.replace(/#.*$/,""));z=a._tabId(A);A.href="#"+z;E=c("#"+z);if(!E.length){E=c(b.panelTemplate).attr("id",z).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[x-1]||a.list);E.data("destroy.tabs",true)}a.panels=a.panels.add(E)}else b.disabled.push(x)});if(d){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(b.selected===undefined){location.hash&&this.anchors.each(function(x,A){if(A.hash==location.hash){b.selected=x;return false}});if(typeof b.selected!="number"&&b.cookie)b.selected=parseInt(a._cookie(),10);if(typeof b.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)b.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));b.selected=b.selected||0}else if(b.selected===
null)b.selected=-1;b.selected=b.selected>=0&&this.anchors[b.selected]||b.selected<0?b.selected:0;b.disabled=c.unique(b.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(x){return a.lis.index(x)}))).sort();c.inArray(b.selected,b.disabled)!=-1&&b.disabled.splice(c.inArray(b.selected,b.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(b.selected>=0&&this.anchors.length){this.panels.eq(b.selected).removeClass("ui-tabs-hide");
this.lis.eq(b.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[b.selected],a.panels[b.selected]))});this.load(b.selected)}c(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else b.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[b.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");b.cookie&&this._cookie(b.selected,b.cookie);d=0;for(var h;h=
this.lis[d];d++)c(h)[c.inArray(d,b.disabled)!=-1&&!c(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");b.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(b.event!="mouseover"){var k=function(x,A){A.is(":not(.ui-state-disabled)")&&A.addClass("ui-state-"+x)};this.lis.bind("mouseover.tabs",function(){k("hover",c(this))});this.lis.bind("mouseout.tabs",function(){c(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",
function(){k("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){c(this).closest("li").removeClass("ui-state-focus")})}var j,n;if(b.fx)if(c.isArray(b.fx)){j=b.fx[0];n=b.fx[1]}else j=n=b.fx;var q=n?function(x,A){c(x).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");A.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",function(){g(A,n);a._trigger("show",null,a._ui(x,A[0]))})}:function(x,A){c(x).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");
A.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(x,A[0]))},i=j?function(x,A){A.animate(j,j.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");A.addClass("ui-tabs-hide");g(A,j);a.element.dequeue("tabs")})}:function(x,A){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");A.addClass("ui-tabs-hide");a.element.dequeue("tabs")};this.anchors.bind(b.event+".tabs",function(){var x=this,A=c(this).closest("li"),
z=a.panels.filter(":not(.ui-tabs-hide)"),E=c(a._sanitizeSelector(this.hash));if(A.hasClass("ui-tabs-selected")&&!b.collapsible||A.hasClass("ui-state-disabled")||A.hasClass("ui-state-processing")||a._trigger("select",null,a._ui(this,E[0]))===false){this.blur();return false}b.selected=a.anchors.index(this);a.abort();if(b.collapsible)if(A.hasClass("ui-tabs-selected")){b.selected=-1;b.cookie&&a._cookie(b.selected,b.cookie);a.element.queue("tabs",function(){i(x,z)}).dequeue("tabs");this.blur();return false}else if(!z.length){b.cookie&&
a._cookie(b.selected,b.cookie);a.element.queue("tabs",function(){q(x,E)});a.load(a.anchors.index(this));this.blur();return false}b.cookie&&a._cookie(b.selected,b.cookie);if(E.length){z.length&&a.element.queue("tabs",function(){i(x,z)});a.element.queue("tabs",function(){q(x,E)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";c.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var d=this.options;this.abort();
this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var g=c.data(this,"href.tabs");if(g)this.href=g;var a=c(this).unbind(".tabs");c.each(["href","load","cache"],function(b,e){a.removeData(e+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){c.data(this,"destroy.tabs")?
c(this).remove():c(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});d.cookie&&this._cookie(null,d.cookie)},add:function(d,g,a){if(a===undefined)a=this.anchors.length;var b=this,e=this.options;g=c(e.tabTemplate.replace(/#\{href\}/g,d).replace(/#\{label\}/g,g));d=!d.indexOf("#")?d.replace("#",""):this._tabId(c("a",g)[0]);g.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
true);var h=c("#"+d);h.length||(h=c(e.panelTemplate).attr("id",d).data("destroy.tabs",true));h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){g.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{g.insertBefore(this.lis[a]);h.insertBefore(this.panels[a])}e.disabled=c.map(e.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){g.addClass("ui-tabs-selected ui-state-active");h.removeClass("ui-tabs-hide");this.element.queue("tabs",
function(){b._trigger("show",null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]))},remove:function(d){var g=this.options,a=this.lis.eq(d).remove(),b=this.panels.eq(d).remove();if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(d+(d+1<this.anchors.length?1:-1));g.disabled=c.map(c.grep(g.disabled,function(e){return e!=d}),function(e){return e>=d?--e:e});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],
b[0]))},enable:function(d){var g=this.options;if(c.inArray(d,g.disabled)!=-1){this.lis.eq(d).removeClass("ui-state-disabled");g.disabled=c.grep(g.disabled,function(a){return a!=d});this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]))}},disable:function(d){var g=this.options;if(d!=g.selected){this.lis.eq(d).addClass("ui-state-disabled");g.disabled.push(d);g.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))}},select:function(d){if(typeof d=="string")d=
this.anchors.index(this.anchors.filter("[href$="+d+"]"));else if(d===null)d=-1;if(d==-1&&this.options.collapsible)d=this.options.selected;this.anchors.eq(d).trigger(this.options.event+".tabs")},load:function(d){var g=this,a=this.options,b=this.anchors.eq(d)[0],e=c.data(b,"load.tabs");this.abort();if(!e||this.element.queue("tabs").length!==0&&c.data(b,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(d).addClass("ui-state-processing");if(a.spinner){var h=c("span",b);h.data("label.tabs",h.html()).html(a.spinner)}this.xhr=
c.ajax(c.extend({},a.ajaxOptions,{url:e,success:function(k,j){c(g._sanitizeSelector(b.hash)).html(k);g._cleanup();a.cache&&c.data(b,"cache.tabs",true);g._trigger("load",null,g._ui(g.anchors[d],g.panels[d]));try{a.ajaxOptions.success(k,j)}catch(n){}g.element.dequeue("tabs")}}))}},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(d,g){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",g)},length:function(){return this.anchors.length}});
c.extend(c.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(d,g){var a=this,b=this.options,e=a._rotate||(a._rotate=function(k){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var j=b.selected;
a.select(++j<a.anchors.length?j:0)},d);k&&k.stopPropagation()}),h=a._unrotate||(a._unrotate=!g?function(k){k.clientX&&a.rotate(null)}:function(){t=b.selected;e()});if(d){this.element.bind("tabsshow",e);this.anchors.bind(b.event+".tabs",h);e()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",e);this.anchors.unbind(b.event+".tabs",h);delete this._rotate;delete this._unrotate}}})})(jQuery);
(function(c){function d(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,
beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};c.extend(this._defaults,this.regional[""]);this.dpDiv=c('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function g(a,b){c.extend(a,b);for(var e in b)if(b[e]==null||b[e]==undefined)a[e]=b[e];return a}
c.extend(c.ui,{datepicker:{version:"1.7.2"}});c.extend(d.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},setDefaults:function(a){g(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var e=null;for(var h in this._defaults){var k=a.getAttribute("date:"+h);if(k){e=e||{};try{e[h]=eval(k)}catch(j){e[h]=k}}}h=a.nodeName.toLowerCase();k=h=="div"||h=="span";if(!a.id)a.id="dp"+ ++this.uuid;var n=this._newInst(c(a),k);n.settings=c.extend({},
b||{},e||{});if(h=="input")this._connectDatepicker(a,n);else k&&this._inlineDatepicker(a,n)},_newInst:function(a,b){return{id:a[0].id.replace(/([:\[\]\.])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:c('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,b){var e=c(a);b.append=c([]);b.trigger=c([]);if(!e.hasClass(this.markerClassName)){var h=
this._get(b,"appendText"),k=this._get(b,"isRTL");if(h){b.append=c('<span class="'+this._appendClass+'">'+h+"</span>");e[k?"before":"after"](b.append)}h=this._get(b,"showOn");if(h=="focus"||h=="both")e.focus(this._showDatepicker);if(h=="button"||h=="both"){h=this._get(b,"buttonText");var j=this._get(b,"buttonImage");b.trigger=c(this._get(b,"buttonImageOnly")?c("<img/>").addClass(this._triggerClass).attr({src:j,alt:h,title:h}):c('<button type="button"></button>').addClass(this._triggerClass).html(j==
""?h:c("<img/>").attr({src:j,alt:h,title:h})));e[k?"before":"after"](b.trigger);b.trigger.click(function(){c.datepicker._datepickerShowing&&c.datepicker._lastInput==a?c.datepicker._hideDatepicker():c.datepicker._showDatepicker(a);return false})}e.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(n,q,i){b.settings[q]=i}).bind("getData.datepicker",function(n,q){return this._get(b,q)});c.data(a,"datepicker",b)}},_inlineDatepicker:function(a,
b){var e=c(a);if(!e.hasClass(this.markerClassName)){e.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(h,k,j){b.settings[k]=j}).bind("getData.datepicker",function(h,k){return this._get(b,k)});c.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b));this._updateDatepicker(b);this._updateAlternate(b)}},_dialogDatepicker:function(a,b,e,h,k){a=this._dialogInst;if(!a){a="dp"+ ++this.uuid;this._dialogInput=c('<input type="text" id="'+a+'" size="1" style="position: absolute; top: -100px;"/>');
this._dialogInput.keydown(this._doKeyDown);c("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};c.data(this._dialogInput[0],"datepicker",a)}g(a.settings,h||{});this._dialogInput.val(b);this._pos=k?k.length?k:[k.pageX,k.pageY]:null;if(!this._pos)this._pos=[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),(window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight)/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");a.settings.onSelect=e;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);c.blockUI&&c.blockUI(this.dpDiv);c.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=c(a),e=c.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var h=a.nodeName.toLowerCase();
c.removeData(a,"datepicker");if(h=="input"){e.append.remove();e.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else if(h=="div"||h=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=c(a),e=c.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var h=a.nodeName.toLowerCase();if(h=="input"){a.disabled=false;e.trigger.filter("button").each(function(){this.disabled=
false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(h=="div"||h=="span")b.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=c.map(this._disabledInputs,function(k){return k==a?null:k})}},_disableDatepicker:function(a){var b=c(a),e=c.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var h=a.nodeName.toLowerCase();if(h=="input"){a.disabled=true;e.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",
cursor:"default"})}else if(h=="div"||h=="span")b.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=c.map(this._disabledInputs,function(k){return k==a?null:k});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return c.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";
}},_optionDatepicker:function(a,b,e){var h=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?c.extend({},c.datepicker._defaults):h?b=="all"?c.extend({},h.settings):this._get(h,b):null;var k=b||{};if(typeof b=="string"){k={};k[b]=e}if(h){this._curInst==h&&this._hideDatepicker(null);var j=this._getDateDatepicker(a);g(h.settings,k);this._setDateDatepicker(a,j);this._updateDatepicker(h)}},_changeDatepicker:function(a,b,e){this._optionDatepicker(a,b,e)},_refreshDatepicker:function(a){(a=
this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b,e){if(a=this._getInst(a)){this._setDate(a,b,e);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a);return a?this._getDate(a):null},_doKeyDown:function(a){var b=c.datepicker._getInst(a.target),e=true,h=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(c.datepicker._datepickerShowing)switch(a.keyCode){case 9:c.datepicker._hideDatepicker(null,
"");break;case 13:e=c("td."+c.datepicker._dayOverClass+", td."+c.datepicker._currentClass,b.dpDiv);e[0]?c.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,e[0]):c.datepicker._hideDatepicker(null,c.datepicker._get(b,"duration"));return false;case 27:c.datepicker._hideDatepicker(null,c.datepicker._get(b,"duration"));break;case 33:c.datepicker._adjustDate(a.target,a.ctrlKey?-c.datepicker._get(b,"stepBigMonths"):-c.datepicker._get(b,"stepMonths"),"M");break;case 34:c.datepicker._adjustDate(a.target,
a.ctrlKey?+c.datepicker._get(b,"stepBigMonths"):+c.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)c.datepicker._clearDate(a.target);e=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)c.datepicker._gotoToday(a.target);e=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)c.datepicker._adjustDate(a.target,h?+1:-1,"D");e=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)c.datepicker._adjustDate(a.target,a.ctrlKey?-c.datepicker._get(b,"stepBigMonths"):-c.datepicker._get(b,
"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)c.datepicker._adjustDate(a.target,-7,"D");e=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)c.datepicker._adjustDate(a.target,h?-1:+1,"D");e=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)c.datepicker._adjustDate(a.target,a.ctrlKey?+c.datepicker._get(b,"stepBigMonths"):+c.datepicker._get(b,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)c.datepicker._adjustDate(a.target,+7,"D");e=a.ctrlKey||a.metaKey;break;default:e=false}else if(a.keyCode==
36&&a.ctrlKey)c.datepicker._showDatepicker(this);else e=false;if(e){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=c.datepicker._getInst(a.target);if(c.datepicker._get(b,"constrainInput")){b=c.datepicker._possibleChars(c.datepicker._get(b,"dateFormat"));var e=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);return a.ctrlKey||e<" "||!b||b.indexOf(e)>-1}},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=c("input",a.parentNode)[0];
if(!(c.datepicker._isDisabledDatepicker(a)||c.datepicker._lastInput==a)){var b=c.datepicker._getInst(a),e=c.datepicker._get(b,"beforeShow");g(b.settings,e?e.apply(a,[a,b]):{});c.datepicker._hideDatepicker(null,"");c.datepicker._lastInput=a;c.datepicker._setDateFromField(b);if(c.datepicker._inDialog)a.value="";if(!c.datepicker._pos){c.datepicker._pos=c.datepicker._findPos(a);c.datepicker._pos[1]+=a.offsetHeight}var h=false;c(a).parents().each(function(){h|=c(this).css("position")=="fixed";return!h});
if(h&&c.browser.opera){c.datepicker._pos[0]-=document.documentElement.scrollLeft;c.datepicker._pos[1]-=document.documentElement.scrollTop}a={left:c.datepicker._pos[0],top:c.datepicker._pos[1]};c.datepicker._pos=null;b.rangeStart=null;b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});c.datepicker._updateDatepicker(b);a=c.datepicker._checkOffset(b,a,h);b.dpDiv.css({position:c.datepicker._inDialog&&c.blockUI?"static":h?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"});
if(!b.inline){a=c.datepicker._get(b,"showAnim")||"show";e=c.datepicker._get(b,"duration");var k=function(){c.datepicker._datepickerShowing=true;c.browser.msie&&parseInt(c.browser.version,10)<7&&c("iframe.ui-datepicker-cover").css({width:b.dpDiv.width()+4,height:b.dpDiv.height()+4})};c.effects&&c.effects[a]?b.dpDiv.show(a,c.datepicker._get(b,"showOptions"),e,k):b.dpDiv[a](e,k);e==""&&k();b.input[0].type!="hidden"&&b.input[0].focus();c.datepicker._curInst=b}}},_updateDatepicker:function(a){var b={width:a.dpDiv.width()+
4,height:a.dpDiv.height()+4},e=this;a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({width:b.width,height:b.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){c(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&c(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&c(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",
function(){if(!e._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){c(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");c(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&c(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&c(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();b=this._getNumberOfMonths(a);var h=b[1];h>
1?a.dpDiv.addClass("ui-datepicker-multi-"+h).css("width",17*h+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a.input&&a.input[0].type!="hidden"&&a==c.datepicker._curInst&&c(a.input[0]).focus()},_checkOffset:function(a,b,e){var h=a.dpDiv.outerWidth(),k=a.dpDiv.outerHeight(),j=a.input?a.input.outerWidth():
0,n=a.input?a.input.outerHeight():0,q=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+c(document).scrollLeft(),i=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+c(document).scrollTop();b.left-=this._get(a,"isRTL")?h-j:0;b.left-=e&&b.left==a.input.offset().left?c(document).scrollLeft():0;b.top-=e&&b.top==a.input.offset().top+n?c(document).scrollTop():0;b.left-=b.left+h>q&&q>h?Math.abs(b.left+h-q):0;b.top-=b.top+k>i&&i>k?Math.abs(b.top+
k+n*2-i):0;return b},_findPos:function(a){for(;a&&(a.type=="hidden"||a.nodeType!=1);)a=a.nextSibling;a=c(a).offset();return[a.left,a.top]},_hideDatepicker:function(a,b){var e=this._curInst;if(!(!e||a&&e!=c.data(a,"datepicker"))){e.stayOpen&&this._selectDate("#"+e.id,this._formatDate(e,e.currentDay,e.currentMonth,e.currentYear));e.stayOpen=false;if(this._datepickerShowing){b=b!=null?b:this._get(e,"duration");var h=this._get(e,"showAnim"),k=function(){c.datepicker._tidyDialog(e)};b!=""&&c.effects&&
c.effects[h]?e.dpDiv.hide(h,c.datepicker._get(e,"showOptions"),b,k):e.dpDiv[b==""?"hide":h=="slideDown"?"slideUp":h=="fadeIn"?"fadeOut":"hide"](b,k);b==""&&this._tidyDialog(e);if(h=this._get(e,"onClose"))h.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(c.blockUI){c.unblockUI();c("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null}},
_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(c.datepicker._curInst){a=c(a.target);a.parents("#"+c.datepicker._mainDivId).length==0&&!a.hasClass(c.datepicker.markerClassName)&&!a.hasClass(c.datepicker._triggerClass)&&c.datepicker._datepickerShowing&&!(c.datepicker._inDialog&&c.blockUI)&&c.datepicker._hideDatepicker(null,"")}},_adjustDate:function(a,b,e){a=c(a);var h=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(h,
b+(e=="M"?this._get(h,"showCurrentAtPos"):0),e);this._updateDatepicker(h)}},_gotoToday:function(a){a=c(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var e=new Date;b.selectedDay=e.getDate();b.drawMonth=b.selectedMonth=e.getMonth();b.drawYear=b.selectedYear=e.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,e){a=c(a);var h=
this._getInst(a[0]);h._selectingMonthYear=false;h["selected"+(e=="M"?"Month":"Year")]=h["draw"+(e=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(h);this._adjustDate(a)},_clickMonthYear:function(a){a=this._getInst(c(a)[0]);a.input&&a._selectingMonthYear&&!c.browser.msie&&a.input[0].focus();a._selectingMonthYear=!a._selectingMonthYear},_selectDay:function(a,b,e,h){var k=c(a);if(!(c(h).hasClass(this._unselectableClass)||this._isDisabledDatepicker(k[0]))){k=this._getInst(k[0]);
k.selectedDay=k.currentDay=c("a",h).html();k.selectedMonth=k.currentMonth=b;k.selectedYear=k.currentYear=e;if(k.stayOpen)k.endDay=k.endMonth=k.endYear=null;this._selectDate(a,this._formatDate(k,k.currentDay,k.currentMonth,k.currentYear));if(k.stayOpen){k.rangeStart=this._daylightSavingAdjust(new Date(k.currentYear,k.currentMonth,k.currentDay));this._updateDatepicker(k)}}},_clearDate:function(a){a=c(a);var b=this._getInst(a[0]);b.stayOpen=false;b.endDay=b.endMonth=b.endYear=b.rangeStart=null;this._selectDate(a,
"")},_selectDate:function(a,b){var e=this._getInst(c(a)[0]);b=b!=null?b:this._formatDate(e);e.input&&e.input.val(b);this._updateAlternate(e);var h=this._get(e,"onSelect");if(h)h.apply(e.input?e.input[0]:null,[b,e]);else e.input&&e.input.trigger("change");if(e.inline)this._updateDatepicker(e);else if(!e.stayOpen){this._hideDatepicker(null,this._get(e,"duration"));this._lastInput=e.input[0];typeof e.input[0]!="object"&&e.input[0].focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,
"altField");if(b){var e=this._get(a,"altFormat")||this._get(a,"dateFormat"),h=this._getDate(a);dateStr=this.formatDate(e,h,this._getFormatConfig(a));c(b).each(function(){c(this).val(dateStr)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getFullYear(),a.getMonth(),a.getDate());var b=new Date(a.getFullYear(),0,4),e=b.getDay()||7;b.setDate(b.getDate()+1-e);if(e<4&&a<b){a.setDate(a.getDate()-3);return c.datepicker.iso8601Week(a)}else if(a>new Date(a.getFullYear(),
11,28)){e=(new Date(a.getFullYear()+1,0,4)).getDay()||7;if(e>4&&(a.getDay()||7)<e-3)return 1}return Math.floor((a-b)/864E5/7)+1},parseDate:function(a,b,e){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;for(var h=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,k=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,j=(e?e.dayNames:null)||this._defaults.dayNames,n=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,q=(e?e.monthNames:
null)||this._defaults.monthNames,i=e=-1,x=-1,A=-1,z=false,E=function(O){(O=U+1<a.length&&a.charAt(U+1)==O)&&U++;return O},G=function(O){E(O);for(var R=O=O=="@"?14:O=="y"?4:O=="o"?3:2,S=0;R>0&&P<b.length&&b.charAt(P)>="0"&&b.charAt(P)<="9";){S=S*10+parseInt(b.charAt(P++),10);R--}if(R==O)throw"Missing number at position "+P;return S},H=function(O,R,S){O=E(O)?S:R;for(S=R=0;S<O.length;S++)R=Math.max(R,O[S].length);S="";for(var aa=P;R>0&&P<b.length;){S+=b.charAt(P++);for(var V=0;V<O.length;V++)if(S==O[V])return V+
1;R--}throw"Unknown name at position "+aa;},K=function(){if(b.charAt(P)!=a.charAt(U))throw"Unexpected literal at position "+P;P++},P=0,U=0;U<a.length;U++)if(z)if(a.charAt(U)=="'"&&!E("'"))z=false;else K();else switch(a.charAt(U)){case "d":x=G("d");break;case "D":H("D",k,j);break;case "o":A=G("o");break;case "m":i=G("m");break;case "M":i=H("M",n,q);break;case "y":e=G("y");break;case "@":var W=new Date(G("@"));e=W.getFullYear();i=W.getMonth()+1;x=W.getDate();break;case "'":if(E("'"))K();else z=true;
break;default:K()}if(e==-1)e=(new Date).getFullYear();else if(e<100)e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=h?0:-100);if(A>-1){i=1;x=A;do{h=this._getDaysInMonth(e,i-1);if(x<=h)break;i++;x-=h}while(1)}W=this._daylightSavingAdjust(new Date(e,i-1,x));if(W.getFullYear()!=e||W.getMonth()+1!=i||W.getDate()!=x)throw"Invalid date";return W},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",
RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(a,b,e){if(!b)return"";var h=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,k=(e?e.dayNames:null)||this._defaults.dayNames,j=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort;e=(e?e.monthNames:null)||this._defaults.monthNames;var n=function(H){(H=z+1<a.length&&a.charAt(z+1)==H)&&z++;return H},q=function(H,K,P){K=""+K;if(n(H))for(;K.length<P;)K="0"+K;return K},i=function(H,K,P,U){return n(H)?U[K]:P[K]},x="",A=false;if(b)for(var z=
0;z<a.length;z++)if(A)if(a.charAt(z)=="'"&&!n("'"))A=false;else x+=a.charAt(z);else switch(a.charAt(z)){case "d":x+=q("d",b.getDate(),2);break;case "D":x+=i("D",b.getDay(),h,k);break;case "o":for(var E=b.getDate(),G=b.getMonth()-1;G>=0;G--)E+=this._getDaysInMonth(b.getFullYear(),G);x+=q("o",E,3);break;case "m":x+=q("m",b.getMonth()+1,2);break;case "M":x+=i("M",b.getMonth(),j,e);break;case "y":x+=n("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":x+=b.getTime();break;
case "'":if(n("'"))x+="'";else A=true;break;default:x+=a.charAt(z)}return x},_possibleChars:function(a){for(var b="",e=false,h=0;h<a.length;h++)if(e)if(a.charAt(h)=="'"&&!lookAhead("'"))e=false;else b+=a.charAt(h);else switch(a.charAt(h)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(lookAhead("'"))b+="'";else e=true;break;default:b+=a.charAt(h)}return b},_get:function(a,b){return a.settings[b]!==undefined?a.settings[b]:this._defaults[b]},_setDateFromField:function(a){var b=
this._get(a,"dateFormat"),e=a.input?a.input.val():null;a.endDay=a.endMonth=a.endYear=null;var h=defaultDate=this._getDefaultDate(a),k=this._getFormatConfig(a);try{h=this.parseDate(b,e,k)||defaultDate}catch(j){this.log(j);h=defaultDate}a.selectedDay=h.getDate();a.drawMonth=a.selectedMonth=h.getMonth();a.drawYear=a.selectedYear=h.getFullYear();a.currentDay=e?h.getDate():0;a.currentMonth=e?h.getMonth():0;a.currentYear=e?h.getFullYear():0;this._adjustInstDate(a)},_getDefaultDate:function(a){var b=this._determineDate(this._get(a,
"defaultDate"),new Date),e=this._getMinMaxDate(a,"min",true);a=this._getMinMaxDate(a,"max");b=e&&b<e?e:b;return a&&b>a?a:b},_determineDate:function(a,b){var e=function(h){var k=new Date;k.setDate(k.getDate()+h);return k};if(a=(a=a==null?b:typeof a=="string"?function(h,k){var j=new Date,n=j.getFullYear(),q=j.getMonth();j=j.getDate();for(var i=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,x=i.exec(h);x;){switch(x[2]||"d"){case "d":case "D":j+=parseInt(x[1],10);break;case "w":case "W":j+=parseInt(x[1],10)*7;
break;case "m":case "M":q+=parseInt(x[1],10);j=Math.min(j,k(n,q));break;case "y":case "Y":n+=parseInt(x[1],10);j=Math.min(j,k(n,q));break}x=i.exec(h)}return new Date(n,q,j)}(a,this._getDaysInMonth):typeof a=="number"?isNaN(a)?b:e(a):a)&&a.toString()=="Invalid Date"?b:a){a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)}return this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,
b){var e=!b,h=a.selectedMonth,k=a.selectedYear;b=this._determineDate(b,new Date);a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if(h!=a.selectedMonth||k!=a.selectedYear)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,
a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var e=this._get(a,"isRTL"),h=this._get(a,"showButtonPanel"),k=this._get(a,"hideIfNoPrevNext"),j=this._get(a,"navigationAsDateFormat"),n=this._getNumberOfMonths(a),q=this._get(a,"showCurrentAtPos"),i=this._get(a,"stepMonths");this._get(a,"stepBigMonths");var x=n[0]!=1||n[1]!=1,A=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,
a.currentDay)),z=this._getMinMaxDate(a,"min",true),E=this._getMinMaxDate(a,"max");q=a.drawMonth-q;var G=a.drawYear;if(q<0){q+=12;G--}if(E)for(var H=this._daylightSavingAdjust(new Date(E.getFullYear(),E.getMonth()-n[1]+1,E.getDate()));this._daylightSavingAdjust(new Date(G,q,1))>(z&&H<z?z:H);){q--;if(q<0){q=11;G--}}a.drawMonth=q;a.drawYear=G;H=this._get(a,"prevText");H=!j?H:this.formatDate(H,this._daylightSavingAdjust(new Date(G,q-i,1)),this._getFormatConfig(a));H=this._canAdjustMonth(a,-1,G,q)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+
a.id+"', -"+i+", 'M');\" title=\""+H+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+H+"</span></a>":k?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+H+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+H+"</span></a>";var K=this._get(a,"nextText");K=!j?K:this.formatDate(K,this._daylightSavingAdjust(new Date(G,q+i,1)),this._getFormatConfig(a));k=this._canAdjustMonth(a,+1,G,q)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+
a.id+"', +"+i+", 'M');\" title=\""+K+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+K+"</span></a>":k?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+K+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+K+"</span></a>";i=this._get(a,"currentText");K=this._get(a,"gotoCurrent")&&a.currentDay?A:b;i=!j?i:this.formatDate(i,K,this._getFormatConfig(a));j=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+
this._get(a,"closeText")+"</button>":"";h=h?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(e?j:"")+(this._isInRange(a,K)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+a.id+"');\">"+i+"</button>":"")+(e?"":j)+"</div>":"";j=parseInt(this._get(a,"firstDay"),10);j=isNaN(j)?0:j;i=this._get(a,"dayNames");this._get(a,"dayNamesShort");K=this._get(a,"dayNamesMin");var P=this._get(a,"monthNames"),
U=this._get(a,"monthNamesShort"),W=this._get(a,"beforeShowDay"),O=this._get(a,"showOtherMonths");this._get(a,"calculateWeek");for(var R=a.endDay?this._daylightSavingAdjust(new Date(a.endYear,a.endMonth,a.endDay)):A,S=this._getDefaultDate(a),aa="",V=0;V<n[0];V++){for(var ca="",f=0;f<n[1];f++){var l=this._daylightSavingAdjust(new Date(G,q,a.selectedDay)),m=" ui-corner-all",p="";if(x){p+='<div class="ui-datepicker-group ui-datepicker-group-';switch(f){case 0:p+="first";m=" ui-corner-"+(e?"right":"left");
break;case n[1]-1:p+="last";m=" ui-corner-"+(e?"left":"right");break;default:p+="middle";m="";break}p+='">'}p+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+m+'">'+(/all|left/.test(m)&&V==0?e?k:H:"")+(/all|right/.test(m)&&V==0?e?H:k:"")+this._generateMonthYearHeader(a,q,G,z,E,l,V>0||f>0,P,U)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var s="";for(m=0;m<7;m++){var u=(m+j)%7;s+="<th"+((m+j+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+i[u]+'">'+
K[u]+"</span></th>"}p+=s+"</tr></thead><tbody>";s=this._getDaysInMonth(G,q);if(G==a.selectedYear&&q==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,s);m=(this._getFirstDayOfMonth(G,q)-j+7)%7;s=x?6:Math.ceil((m+s)/7);u=this._daylightSavingAdjust(new Date(G,q,1-m));for(var B=0;B<s;B++){p+="<tr>";var D="";for(m=0;m<7;m++){var L=W?W.apply(a.input?a.input[0]:null,[u]):[true,""],M=u.getMonth()!=q,N=M||!L[0]||z&&u<z||E&&u>E;D+='<td class="'+((m+j+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":
"")+(u.getTime()==l.getTime()&&q==a.selectedMonth&&a._keyEvent||S.getTime()==u.getTime()&&S.getTime()==l.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!O?"":" "+L[1]+(u.getTime()>=A.getTime()&&u.getTime()<=R.getTime()?" "+this._currentClass:"")+(u.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!M||O)&&L[2]?' title="'+L[2]+'"':"")+(N?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+a.id+"',"+q+","+G+', this);return false;"')+">"+(M?O?u.getDate():
"&#xa0;":N?'<span class="ui-state-default">'+u.getDate()+"</span>":'<a class="ui-state-default'+(u.getTime()==b.getTime()?" ui-state-highlight":"")+(u.getTime()>=A.getTime()&&u.getTime()<=R.getTime()?" ui-state-active":"")+'" href="#">'+u.getDate()+"</a>")+"</td>";u.setDate(u.getDate()+1);u=this._daylightSavingAdjust(u)}p+=D+"</tr>"}q++;if(q>11){q=0;G++}p+="</tbody></table>"+(x?"</div>"+(n[0]>0&&f==n[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");ca+=p}aa+=ca}aa+=h+(c.browser.msie&&parseInt(c.browser.version,
10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return aa},_generateMonthYearHeader:function(a,b,e,h,k,j,n,q,i){h=a.rangeStart&&h&&j<h?j:h;j=this._get(a,"changeMonth");var x=this._get(a,"changeYear"),A=this._get(a,"showMonthAfterYear"),z='<div class="ui-datepicker-title">',E="";if(n||!j)E+='<span class="ui-datepicker-month">'+q[b]+"</span> ";else{q=h&&h.getFullYear()==e;var G=k&&k.getFullYear()==e;E+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+
a.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";for(var H=0;H<12;H++)if((!q||H>=h.getMonth())&&(!G||H<=k.getMonth()))E+='<option value="'+H+'"'+(H==b?' selected="selected"':"")+">"+i[H]+"</option>";E+="</select>"}A||(z+=E+((n||j||x)&&!(j&&x)?"&#xa0;":""));if(n||!x)z+='<span class="ui-datepicker-year">'+e+"</span>";else{b=this._get(a,"yearRange").split(":");if(b.length!=2){i=e-10;q=e+10}else if(b[0].charAt(0)=="+"||b[0].charAt(0)=="-"){i=e+parseInt(b[0],10);
q=e+parseInt(b[1],10)}else{i=parseInt(b[0],10);q=parseInt(b[1],10)}i=h?Math.max(i,h.getFullYear()):i;q=k?Math.min(q,k.getFullYear()):q;for(z+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";i<=q;i++)z+='<option value="'+i+'"'+(i==e?' selected="selected"':"")+">"+i+"</option>";z+="</select>"}if(A)z+=(n||j||x?"&#xa0;":"")+E;z+="</div>";return z},_adjustInstDate:function(a,
b,e){var h=a.drawYear+(e=="Y"?b:0),k=a.drawMonth+(e=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(h,k))+(e=="D"?b:0);h=this._daylightSavingAdjust(new Date(h,k,b));k=this._getMinMaxDate(a,"min",true);b=this._getMinMaxDate(a,"max");h=k&&h<k?k:h;h=b&&h>b?b:h;a.selectedDay=h.getDate();a.drawMonth=a.selectedMonth=h.getMonth();a.drawYear=a.selectedYear=h.getFullYear();if(e=="M"||e=="Y")this._notifyChange(a)},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input?
a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b,e){b=this._determineDate(this._get(a,b+"Date"),null);return!e||!a.rangeStart?b:!b||a.rangeStart>b?a.rangeStart:b},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,e,h){var k=this._getNumberOfMonths(a);
e=this._daylightSavingAdjust(new Date(e,h+(b<0?b:k[1]),1));b<0&&e.setDate(this._getDaysInMonth(e.getFullYear(),e.getMonth()));return this._isInRange(a,e)},_isInRange:function(a,b){var e=!a.rangeStart?null:this._daylightSavingAdjust(new Date(a.selectedYear,a.selectedMonth,a.selectedDay));e=(e=e&&a.rangeStart<e?a.rangeStart:e)||this._getMinMaxDate(a,"min");var h=this._getMinMaxDate(a,"max");return(!e||b>=e)&&(!h||b<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?
b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,e,h){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(h,e,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));
return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});c.fn.datepicker=function(a){if(!c.datepicker.initialized){c(document).mousedown(c.datepicker._checkExternalClick).find("body").append(c.datepicker.dpDiv);c.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"))return c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]==
"string")return c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(b));return this.each(function(){typeof a=="string"?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this].concat(b)):c.datepicker._attachDatepicker(this,a)})};c.datepicker=new d;c.datepicker.initialized=false;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="1.7.2";window.DP_jQuery=c})(jQuery);
(function(c){c.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=c('<div class="ui-progressbar-value ui-widget-header ui-corner-left"></div>').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow").removeData("progressbar").unbind(".progressbar");
this.valueDiv.remove();c.widget.prototype.destroy.apply(this,arguments)},value:function(d){if(d===undefined)return this._value();this._setData("value",d);return this},_setData:function(d,g){switch(d){case "value":this.options.value=g;this._refreshValue();this._trigger("change",null,{});break}c.widget.prototype._setData.apply(this,arguments)},_value:function(){var d=this.options.value;if(d<this._valueMin())d=this._valueMin();if(d>this._valueMax())d=this._valueMax();return d},_valueMin:function(){return 0},
_valueMax:function(){return 100},_refreshValue:function(){var d=this.value();this.valueDiv[d==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(d+"%");this.element.attr("aria-valuenow",d)}});c.extend(c.ui.progressbar,{version:"1.7.2",defaults:{value:0}})})(jQuery);
jQuery.effects||function(c){function d(b,e){var h=b[1]&&b[1].constructor==Object?b[1]:{};if(e)h.mode=e;var k=b[1]&&b[1].constructor!=Object?b[1]:h.duration?h.duration:b[2];k=c.fx.off?0:typeof k==="number"?k:c.fx.speeds[k]||c.fx.speeds._default;var j=h.callback||c.isFunction(b[1])&&b[1]||c.isFunction(b[2])&&b[2]||c.isFunction(b[3])&&b[3];return[b[0],h,k,j]}function g(b){var e;if(b&&b.constructor==Array&&b.length==3)return b;if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))return[parseInt(e[1],
10),parseInt(e[2],10),parseInt(e[3],10)];if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55];if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)];if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(b))return a.transparent;
return a[c.trim(b).toLowerCase()]}c.effects={version:"1.7.2",save:function(b,e){for(var h=0;h<e.length;h++)e[h]!==null&&b.data("ec.storage."+e[h],b[0].style[e[h]])},restore:function(b,e){for(var h=0;h<e.length;h++)e[h]!==null&&b.css(e[h],b.data("ec.storage."+e[h]))},setMode:function(b,e){if(e=="toggle")e=b.is(":hidden")?"show":"hide";return e},getBaseline:function(b,e){var h,k;switch(b[0]){case "top":h=0;break;case "middle":h=0.5;break;case "bottom":h=1;break;default:h=b[0]/e.height}switch(b[1]){case "left":k=
0;break;case "center":k=0.5;break;case "right":k=1;break;default:k=b[1]/e.width}return{x:k,y:h}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var e={width:b.outerWidth(true),height:b.outerHeight(true),"float":b.css("float")};b.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var h=b.parent();if(b.css("position")=="static"){h.css({position:"relative"});b.css({position:"relative"})}else{var k=
b.css("top");if(isNaN(parseInt(k,10)))k="auto";var j=b.css("left");if(isNaN(parseInt(j,10)))j="auto";h.css({position:b.css("position"),top:k,left:j,zIndex:b.css("z-index")}).show();b.css({position:"relative",top:0,left:0})}h.css(e);return h},removeWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent().replaceWith(b);return b},setTransition:function(b,e,h,k){k=k||{};c.each(e,function(j,n){unit=b.cssUnit(n);if(unit[0]>0)k[n]=unit[0]*h+unit[1]});return k},animateClass:function(b,
e,h,k){var j=typeof h=="function"?h:k?k:null,n=typeof h=="string"?h:null;return this.each(function(){var q={},i=c(this),x=i.attr("style")||"";if(typeof x=="object")x=x.cssText;if(b.toggle)i.hasClass(b.toggle)?(b.remove=b.toggle):(b.add=b.toggle);var A=c.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);b.add&&i.addClass(b.add);b.remove&&i.removeClass(b.remove);var z=c.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);
b.add&&i.removeClass(b.add);b.remove&&i.addClass(b.remove);for(var E in z)if(typeof z[E]!="function"&&z[E]&&E.indexOf("Moz")==-1&&E.indexOf("length")==-1&&z[E]!=A[E]&&(E.match(/color/i)||!E.match(/color/i)&&!isNaN(parseInt(z[E],10)))&&(A.position!="static"||A.position=="static"&&!E.match(/left|top|bottom|right/)))q[E]=z[E];i.animate(q,e,n,function(){if(typeof c(this).attr("style")=="object"){c(this).attr("style").cssText="";c(this).attr("style").cssText=x}else c(this).attr("style",x);b.add&&c(this).addClass(b.add);
b.remove&&c(this).removeClass(b.remove);j&&j.apply(this,arguments)})})}};c.fn.extend({_show:c.fn.show,_hide:c.fn.hide,__toggle:c.fn.toggle,_addClass:c.fn.addClass,_removeClass:c.fn.removeClass,_toggleClass:c.fn.toggleClass,effect:function(b,e,h,k){return c.effects[b]?c.effects[b].call(this,{method:b,options:e||{},duration:h,callback:k}):null},show:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._show.apply(this,arguments):this.effect.apply(this,
d(arguments,"show"))},hide:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._hide.apply(this,arguments):this.effect.apply(this,d(arguments,"hide"))},toggle:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||c.isFunction(arguments[0])||typeof arguments[0]=="boolean"?this.__toggle.apply(this,arguments):this.effect.apply(this,d(arguments,"toggle"))},addClass:function(b,e,h,k){return e?
c.effects.animateClass.apply(this,[{add:b},e,h,k]):this._addClass(b)},removeClass:function(b,e,h,k){return e?c.effects.animateClass.apply(this,[{remove:b},e,h,k]):this._removeClass(b)},toggleClass:function(b,e,h,k){return typeof e!=="boolean"&&e?c.effects.animateClass.apply(this,[{toggle:b},e,h,k]):this._toggleClass(b,e)},morph:function(b,e,h,k,j){return c.effects.animateClass.apply(this,[{add:e,remove:b},h,k,j])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(b){var e=
this.css(b),h=[];c.each(["em","px","%","pt"],function(k,j){if(e.indexOf(j)>0)h=[parseFloat(e),j]});return h}});c.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(b,e){c.fx.step[e]=function(h){if(h.state==0){var k;k=h.elem;var j=e,n;do{n=c.curCSS(k,j);if(n!=""&&n!="transparent"||c.nodeName(k,"body"))break;j="backgroundColor"}while(k=k.parentNode);k=g(n);h.start=k;h.end=g(h.end)}h.elem.style[e]="rgb("+[Math.max(Math.min(parseInt(h.pos*
(h.end[0]-h.start[0])+h.start[0],10),255),0),Math.max(Math.min(parseInt(h.pos*(h.end[1]-h.start[1])+h.start[1],10),255),0),Math.max(Math.min(parseInt(h.pos*(h.end[2]-h.start[2])+h.start[2],10),255),0)].join(",")+")"}});var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,
47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,
0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};c.easing.jswing=c.easing.swing;c.extend(c.easing,{def:"easeOutQuad",swing:function(b,e,h,k,j){return c.easing[c.easing.def](b,e,h,k,j)},easeInQuad:function(b,e,h,k,j){return k*(e/=j)*e+h},easeOutQuad:function(b,e,h,k,j){return-k*(e/=j)*(e-2)+h},easeInOutQuad:function(b,e,h,k,j){if((e/=j/2)<1)return k/2*e*e+h;return-k/2*(--e*(e-2)-1)+h},easeInCubic:function(b,e,h,k,j){return k*(e/=j)*e*e+h},
easeOutCubic:function(b,e,h,k,j){return k*((e=e/j-1)*e*e+1)+h},easeInOutCubic:function(b,e,h,k,j){if((e/=j/2)<1)return k/2*e*e*e+h;return k/2*((e-=2)*e*e+2)+h},easeInQuart:function(b,e,h,k,j){return k*(e/=j)*e*e*e+h},easeOutQuart:function(b,e,h,k,j){return-k*((e=e/j-1)*e*e*e-1)+h},easeInOutQuart:function(b,e,h,k,j){if((e/=j/2)<1)return k/2*e*e*e*e+h;return-k/2*((e-=2)*e*e*e-2)+h},easeInQuint:function(b,e,h,k,j){return k*(e/=j)*e*e*e*e+h},easeOutQuint:function(b,e,h,k,j){return k*((e=e/j-1)*e*e*e*
e+1)+h},easeInOutQuint:function(b,e,h,k,j){if((e/=j/2)<1)return k/2*e*e*e*e*e+h;return k/2*((e-=2)*e*e*e*e+2)+h},easeInSine:function(b,e,h,k,j){return-k*Math.cos(e/j*(Math.PI/2))+k+h},easeOutSine:function(b,e,h,k,j){return k*Math.sin(e/j*(Math.PI/2))+h},easeInOutSine:function(b,e,h,k,j){return-k/2*(Math.cos(Math.PI*e/j)-1)+h},easeInExpo:function(b,e,h,k,j){return e==0?h:k*Math.pow(2,10*(e/j-1))+h},easeOutExpo:function(b,e,h,k,j){return e==j?h+k:k*(-Math.pow(2,-10*e/j)+1)+h},easeInOutExpo:function(b,
e,h,k,j){if(e==0)return h;if(e==j)return h+k;if((e/=j/2)<1)return k/2*Math.pow(2,10*(e-1))+h;return k/2*(-Math.pow(2,-10*--e)+2)+h},easeInCirc:function(b,e,h,k,j){return-k*(Math.sqrt(1-(e/=j)*e)-1)+h},easeOutCirc:function(b,e,h,k,j){return k*Math.sqrt(1-(e=e/j-1)*e)+h},easeInOutCirc:function(b,e,h,k,j){if((e/=j/2)<1)return-k/2*(Math.sqrt(1-e*e)-1)+h;return k/2*(Math.sqrt(1-(e-=2)*e)+1)+h},easeInElastic:function(b,e,h,k,j){var n=0,q=k;if(e==0)return h;if((e/=j)==1)return h+k;n||(n=j*0.3);if(q<Math.abs(k)){q=
k;b=n/4}else b=n/(2*Math.PI)*Math.asin(k/q);return-(q*Math.pow(2,10*(e-=1))*Math.sin((e*j-b)*2*Math.PI/n))+h},easeOutElastic:function(b,e,h,k,j){var n=0,q=k;if(e==0)return h;if((e/=j)==1)return h+k;n||(n=j*0.3);if(q<Math.abs(k)){q=k;b=n/4}else b=n/(2*Math.PI)*Math.asin(k/q);return q*Math.pow(2,-10*e)*Math.sin((e*j-b)*2*Math.PI/n)+k+h},easeInOutElastic:function(b,e,h,k,j){var n=0,q=k;if(e==0)return h;if((e/=j/2)==2)return h+k;n||(n=j*0.3*1.5);if(q<Math.abs(k)){q=k;b=n/4}else b=n/(2*Math.PI)*Math.asin(k/
q);if(e<1)return-0.5*q*Math.pow(2,10*(e-=1))*Math.sin((e*j-b)*2*Math.PI/n)+h;return q*Math.pow(2,-10*(e-=1))*Math.sin((e*j-b)*2*Math.PI/n)*0.5+k+h},easeInBack:function(b,e,h,k,j,n){if(n==undefined)n=1.70158;return k*(e/=j)*e*((n+1)*e-n)+h},easeOutBack:function(b,e,h,k,j,n){if(n==undefined)n=1.70158;return k*((e=e/j-1)*e*((n+1)*e+n)+1)+h},easeInOutBack:function(b,e,h,k,j,n){if(n==undefined)n=1.70158;if((e/=j/2)<1)return k/2*e*e*(((n*=1.525)+1)*e-n)+h;return k/2*((e-=2)*e*(((n*=1.525)+1)*e+n)+2)+h},
easeInBounce:function(b,e,h,k,j){return k-c.easing.easeOutBounce(b,j-e,0,k,j)+h},easeOutBounce:function(b,e,h,k,j){return(e/=j)<1/2.75?k*7.5625*e*e+h:e<2/2.75?k*(7.5625*(e-=1.5/2.75)*e+0.75)+h:e<2.5/2.75?k*(7.5625*(e-=2.25/2.75)*e+0.9375)+h:k*(7.5625*(e-=2.625/2.75)*e+0.984375)+h},easeInOutBounce:function(b,e,h,k,j){if(e<j/2)return c.easing.easeInBounce(b,e*2,0,k,j)*0.5+h;return c.easing.easeOutBounce(b,e*2-j,0,k,j)*0.5+k*0.5+h}})}(jQuery);
(function(c){c.effects.blind=function(d){return this.queue(function(){var g=c(this),a=["position","top","left"],b=c.effects.setMode(g,d.options.mode||"hide"),e=d.options.direction||"vertical";c.effects.save(g,a);g.show();var h=c.effects.createWrapper(g).css({overflow:"hidden"}),k=e=="vertical"?"height":"width";e=e=="vertical"?h.height():h.width();b=="show"&&h.css(k,0);var j={};j[k]=b=="show"?e:0;h.animate(j,d.duration,d.options.easing,function(){b=="hide"&&g.hide();c.effects.restore(g,a);c.effects.removeWrapper(g);
d.callback&&d.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);
(function(c){c.effects.bounce=function(d){return this.queue(function(){var g=c(this),a=["position","top","left"],b=c.effects.setMode(g,d.options.mode||"effect"),e=d.options.direction||"up",h=d.options.distance||20,k=d.options.times||5,j=d.duration||250;/show|hide/.test(b)&&a.push("opacity");c.effects.save(g,a);g.show();c.effects.createWrapper(g);var n=e=="up"||e=="down"?"top":"left";e=e=="up"||e=="left"?"pos":"neg";h=d.options.distance||(n=="top"?g.outerHeight({margin:true})/3:g.outerWidth({margin:true})/
3);if(b=="show")g.css("opacity",0).css(n,e=="pos"?-h:h);if(b=="hide")h/=k*2;b!="hide"&&k--;if(b=="show"){var q={opacity:1};q[n]=(e=="pos"?"+=":"-=")+h;g.animate(q,j/2,d.options.easing);h/=2;k--}for(q=0;q<k;q++){var i={},x={};i[n]=(e=="pos"?"-=":"+=")+h;x[n]=(e=="pos"?"+=":"-=")+h;g.animate(i,j/2,d.options.easing).animate(x,j/2,d.options.easing);h=b=="hide"?h*2:h/2}if(b=="hide"){q={opacity:0};q[n]=(e=="pos"?"-=":"+=")+h;g.animate(q,j/2,d.options.easing,function(){g.hide();c.effects.restore(g,a);c.effects.removeWrapper(g);
d.callback&&d.callback.apply(this,arguments)})}else{i={};x={};i[n]=(e=="pos"?"-=":"+=")+h;x[n]=(e=="pos"?"+=":"-=")+h;g.animate(i,j/2,d.options.easing).animate(x,j/2,d.options.easing,function(){c.effects.restore(g,a);c.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments)})}g.queue("fx",function(){g.dequeue()});g.dequeue()})}})(jQuery);
(function(c){c.effects.clip=function(d){return this.queue(function(){var g=c(this),a=["position","top","left","height","width"],b=c.effects.setMode(g,d.options.mode||"hide"),e=d.options.direction||"vertical";c.effects.save(g,a);g.show();var h=c.effects.createWrapper(g).css({overflow:"hidden"});h=g[0].tagName=="IMG"?h:g;var k={size:e=="vertical"?"height":"width",position:e=="vertical"?"top":"left"};e=e=="vertical"?h.height():h.width();if(b=="show"){h.css(k.size,0);h.css(k.position,e/2)}var j={};j[k.size]=
b=="show"?e:0;j[k.position]=b=="show"?0:e/2;h.animate(j,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){b=="hide"&&g.hide();c.effects.restore(g,a);c.effects.removeWrapper(g);d.callback&&d.callback.apply(g[0],arguments);g.dequeue()}})})}})(jQuery);
(function(c){c.effects.drop=function(d){return this.queue(function(){var g=c(this),a=["position","top","left","opacity"],b=c.effects.setMode(g,d.options.mode||"hide"),e=d.options.direction||"left";c.effects.save(g,a);g.show();c.effects.createWrapper(g);var h=e=="up"||e=="down"?"top":"left";e=e=="up"||e=="left"?"pos":"neg";var k=d.options.distance||(h=="top"?g.outerHeight({margin:true})/2:g.outerWidth({margin:true})/2);if(b=="show")g.css("opacity",0).css(h,e=="pos"?-k:k);var j={opacity:b=="show"?1:
0};j[h]=(b=="show"?e=="pos"?"+=":"-=":e=="pos"?"-=":"+=")+k;g.animate(j,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){b=="hide"&&g.hide();c.effects.restore(g,a);c.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(c){c.effects.explode=function(d){return this.queue(function(){var g=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3,a=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3;d.options.mode=d.options.mode=="toggle"?c(this).is(":visible")?"hide":"show":d.options.mode;var b=c(this).show().css("visibility","hidden"),e=b.offset();e.top-=parseInt(b.css("marginTop"),10)||0;e.left-=parseInt(b.css("marginLeft"),10)||0;for(var h=b.outerWidth(true),k=b.outerHeight(true),j=0;j<g;j++)for(var n=
0;n<a;n++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*(h/a),top:-j*(k/g)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/a,height:k/g,left:e.left+n*(h/a)+(d.options.mode=="show"?(n-Math.floor(a/2))*(h/a):0),top:e.top+j*(k/g)+(d.options.mode=="show"?(j-Math.floor(g/2))*(k/g):0),opacity:d.options.mode=="show"?0:1}).animate({left:e.left+n*(h/a)+(d.options.mode=="show"?0:(n-Math.floor(a/2))*(h/a)),top:e.top+
j*(k/g)+(d.options.mode=="show"?0:(j-Math.floor(g/2))*(k/g)),opacity:d.options.mode=="show"?1:0},d.duration||500);setTimeout(function(){d.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();d.callback&&d.callback.apply(b[0]);b.dequeue();c("div.ui-effects-explode").remove()},d.duration||500)})}})(jQuery);
(function(c){c.effects.fold=function(d){return this.queue(function(){var g=c(this),a=["position","top","left"],b=c.effects.setMode(g,d.options.mode||"hide"),e=d.options.size||15,h=!!d.options.horizFirst,k=d.duration?d.duration/2:c.fx.speeds._default/2;c.effects.save(g,a);g.show();var j=c.effects.createWrapper(g).css({overflow:"hidden"}),n=b=="show"!=h,q=n?["width","height"]:["height","width"];n=n?[j.width(),j.height()]:[j.height(),j.width()];var i=/([0-9]+)%/.exec(e);if(i)e=parseInt(i[1],10)/100*
n[b=="hide"?0:1];if(b=="show")j.css(h?{height:0,width:e}:{height:e,width:0});h={};i={};h[q[0]]=b=="show"?n[0]:e;i[q[1]]=b=="show"?n[1]:0;j.animate(h,k,d.options.easing).animate(i,k,d.options.easing,function(){b=="hide"&&g.hide();c.effects.restore(g,a);c.effects.removeWrapper(g);d.callback&&d.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);
(function(c){c.effects.highlight=function(d){return this.queue(function(){var g=c(this),a=["backgroundImage","backgroundColor","opacity"],b=c.effects.setMode(g,d.options.mode||"show"),e=d.options.color||"#ffff99",h=g.css("backgroundColor");c.effects.save(g,a);g.show();g.css({backgroundImage:"none",backgroundColor:e});e={backgroundColor:h};if(b=="hide")e.opacity=0;g.animate(e,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){b=="hide"&&g.hide();c.effects.restore(g,a);b==
"show"&&c.browser.msie&&this.style.removeAttribute("filter");d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(c){c.effects.pulsate=function(d){return this.queue(function(){var g=c(this),a=c.effects.setMode(g,d.options.mode||"show"),b=d.options.times||5,e=d.duration?d.duration/2:c.fx.speeds._default/2;a=="hide"&&b--;if(g.is(":hidden")){g.css("opacity",0);g.show();g.animate({opacity:1},e,d.options.easing);b-=2}for(var h=0;h<b;h++)g.animate({opacity:0},e,d.options.easing).animate({opacity:1},e,d.options.easing);a=="hide"?g.animate({opacity:0},e,d.options.easing,function(){g.hide();d.callback&&d.callback.apply(this,
arguments)}):g.animate({opacity:0},e,d.options.easing).animate({opacity:1},e,d.options.easing,function(){d.callback&&d.callback.apply(this,arguments)});g.queue("fx",function(){g.dequeue()});g.dequeue()})}})(jQuery);
(function(c){c.effects.puff=function(d){return this.queue(function(){var g=c(this),a=c.extend(true,{},d.options),b=c.effects.setMode(g,d.options.mode||"hide"),e=parseInt(d.options.percent,10)||150;a.fade=true;var h={height:g.height(),width:g.width()},k=e/100;g.from=b=="hide"?h:{height:h.height*k,width:h.width*k};a.from=g.from;a.percent=b=="hide"?e:100;a.mode=b;g.effect("scale",a,d.duration,d.callback);g.dequeue()})};c.effects.scale=function(d){return this.queue(function(){var g=c(this),a=c.extend(true,
{},d.options),b=c.effects.setMode(g,d.options.mode||"effect"),e=parseInt(d.options.percent,10)||(parseInt(d.options.percent,10)==0?0:b=="hide"?0:100),h=d.options.direction||"both",k=d.options.origin;if(b!="effect"){a.origin=k||["middle","center"];a.restore=true}k={height:g.height(),width:g.width()};g.from=d.options.from||(b=="show"?{height:0,width:0}:k);e={y:h!="horizontal"?e/100:1,x:h!="vertical"?e/100:1};g.to={height:k.height*e.y,width:k.width*e.x};if(d.options.fade){if(b=="show"){g.from.opacity=
0;g.to.opacity=1}if(b=="hide"){g.from.opacity=1;g.to.opacity=0}}a.from=g.from;a.to=g.to;a.mode=b;g.effect("size",a,d.duration,d.callback);g.dequeue()})};c.effects.size=function(d){return this.queue(function(){var g=c(this),a=["position","top","left","width","height","overflow","opacity"],b=["position","top","left","overflow","opacity"],e=["width","height","overflow"],h=["fontSize"],k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],j=["borderLeftWidth","borderRightWidth","paddingLeft",
"paddingRight"],n=c.effects.setMode(g,d.options.mode||"effect"),q=d.options.restore||false,i=d.options.scale||"both",x=d.options.origin,A={height:g.height(),width:g.width()};g.from=d.options.from||A;g.to=d.options.to||A;if(x){x=c.effects.getBaseline(x,A);g.from.top=(A.height-g.from.height)*x.y;g.from.left=(A.width-g.from.width)*x.x;g.to.top=(A.height-g.to.height)*x.y;g.to.left=(A.width-g.to.width)*x.x}var z={from:{y:g.from.height/A.height,x:g.from.width/A.width},to:{y:g.to.height/A.height,x:g.to.width/
A.width}};if(i=="box"||i=="both"){if(z.from.y!=z.to.y){a=a.concat(k);g.from=c.effects.setTransition(g,k,z.from.y,g.from);g.to=c.effects.setTransition(g,k,z.to.y,g.to)}if(z.from.x!=z.to.x){a=a.concat(j);g.from=c.effects.setTransition(g,j,z.from.x,g.from);g.to=c.effects.setTransition(g,j,z.to.x,g.to)}}if(i=="content"||i=="both")if(z.from.y!=z.to.y){a=a.concat(h);g.from=c.effects.setTransition(g,h,z.from.y,g.from);g.to=c.effects.setTransition(g,h,z.to.y,g.to)}c.effects.save(g,q?a:b);g.show();c.effects.createWrapper(g);
g.css("overflow","hidden").css(g.from);if(i=="content"||i=="both"){k=k.concat(["marginTop","marginBottom"]).concat(h);j=j.concat(["marginLeft","marginRight"]);e=a.concat(k).concat(j);g.find("*[width]").each(function(){child=c(this);q&&c.effects.save(child,e);var E={height:child.height(),width:child.width()};child.from={height:E.height*z.from.y,width:E.width*z.from.x};child.to={height:E.height*z.to.y,width:E.width*z.to.x};if(z.from.y!=z.to.y){child.from=c.effects.setTransition(child,k,z.from.y,child.from);
child.to=c.effects.setTransition(child,k,z.to.y,child.to)}if(z.from.x!=z.to.x){child.from=c.effects.setTransition(child,j,z.from.x,child.from);child.to=c.effects.setTransition(child,j,z.to.x,child.to)}child.css(child.from);child.animate(child.to,d.duration,d.options.easing,function(){q&&c.effects.restore(child,e)})})}g.animate(g.to,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){n=="hide"&&g.hide();c.effects.restore(g,q?a:b);c.effects.removeWrapper(g);d.callback&&d.callback.apply(this,
arguments);g.dequeue()}})})}})(jQuery);
(function(c){c.effects.shake=function(d){return this.queue(function(){var g=c(this),a=["position","top","left"];c.effects.setMode(g,d.options.mode||"effect");var b=d.options.direction||"left",e=d.options.distance||20,h=d.options.times||3,k=d.duration||d.options.duration||140;c.effects.save(g,a);g.show();c.effects.createWrapper(g);var j=b=="up"||b=="down"?"top":"left",n=b=="up"||b=="left"?"pos":"neg";b={};var q={},i={};b[j]=(n=="pos"?"-=":"+=")+e;q[j]=(n=="pos"?"+=":"-=")+e*2;i[j]=(n=="pos"?"-=":"+=")+
e*2;g.animate(b,k,d.options.easing);for(e=1;e<h;e++)g.animate(q,k,d.options.easing).animate(i,k,d.options.easing);g.animate(q,k,d.options.easing).animate(b,k/2,d.options.easing,function(){c.effects.restore(g,a);c.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments)});g.queue("fx",function(){g.dequeue()});g.dequeue()})}})(jQuery);
(function(c){c.effects.slide=function(d){return this.queue(function(){var g=c(this),a=["position","top","left"],b=c.effects.setMode(g,d.options.mode||"show"),e=d.options.direction||"left";c.effects.save(g,a);g.show();c.effects.createWrapper(g).css({overflow:"hidden"});var h=e=="up"||e=="down"?"top":"left";e=e=="up"||e=="left"?"pos":"neg";var k=d.options.distance||(h=="top"?g.outerHeight({margin:true}):g.outerWidth({margin:true}));if(b=="show")g.css(h,e=="pos"?-k:k);var j={};j[h]=(b=="show"?e=="pos"?
"+=":"-=":e=="pos"?"-=":"+=")+k;g.animate(j,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){b=="hide"&&g.hide();c.effects.restore(g,a);c.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(c){c.effects.transfer=function(d){return this.queue(function(){var g=c(this),a=c(d.options.to),b=a.offset();a={top:b.top,left:b.left,height:a.innerHeight(),width:a.innerWidth()};b=g.offset();var e=c('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(d.options.className).css({top:b.top,left:b.left,height:g.innerHeight(),width:g.innerWidth(),position:"absolute"}).animate(a,d.duration,d.options.easing,function(){e.remove();d.callback&&d.callback.apply(g[0],arguments);
g.dequeue()})})}})(jQuery);function MenuGraph(c,d){this.GetParent=function(){return d};this.GetValue=function(){return c}}
function MenuEventSpy(c){var d=[],g=[],a=$("body");this.makeTimeout=function(e){d[e]=false;a.find(".dynamic-layer-menu-container[unic="+e+"]").hide("blind",500);a.find(".dynamic-layer-menu-element.hover").removeClass("hover")};Inst=this;var b=a.find(".dynamic-layer-menu-element");$.each(b,function(){var e=$(this),h=e.attr("unic"),k=a.find(".dynamic-layer-menu-container[unic="+h+"]");if(k.length!=0){var j=null;e.hover(function(){g[h]!=null&&window.clearTimeout(g[h]);d[h]||(j=window.setTimeout(function(){d[h]=
true;e.addClass("hover");k.show("blind",500)},500))},function(){window.clearTimeout(j);if(d[h])g[h]=window.setTimeout(function(){d[h]=false;e.removeClass("hover");k.hide("blind",500)},500)});k.hover(function(){g[h]!=null&&window.clearTimeout(g[h]);for(var n=c[h].GetParent();n!=null;){g[n]!=null&&window.clearTimeout(g[n]);n=c[n].GetParent()}},function(){g[h]=window.setTimeout(function(){d[h]=false;e.removeClass("hover");k.hide("blind",500)},500);for(var n=c[h].GetParent();n!=null;){g[n]=window.setTimeout("Inst.makeTimeout("+
n+")",500);n=c[n].GetParent()}})}})}
function DynamicLayerMenu(c,d){function g(h,k,j,n,q,i){var x=j+1,A=i;if(A==null)A=0;$.each(k,function(){var z=$(this),E=z.children("a:first");z=z.children("ul:first");E=i==null?$("<td><div unic="+A+" class='dynamic-layer-menu-element'><div class='submenu-element'><div class='submenu-element-r shsize'></div><div class='submenu-element-l shsize'></div><div class='submenu-element-c'><a href='"+E.attr("href")+"'>"+E.html()+"</a></div></div></div></td><td width='1'><img class='bimg' width='1' height='56' alt='' src='fileadmin/templates/main/css/images/line.gif'/></td>"):$("<div unic="+
A+" class='dynamic-layer-menu-element'><a href='"+E.attr("href")+"'>"+E.html()+"</a></div>");e[A]=i==null?new MenuGraph(A,i):new MenuGraph(A,i-1);h.append(E);var G=$("<div></div>").addClass("dynamic-layer-menu-container dynamic-layer-menu-container-innerContainer").attr("unic",A);$("body").append(G);A++;A=g(G,z.children("li"),x,n,q+E.position().top+E.outerHeight()+10,A)});i!=null&&h.css({"z-index":x,left:n,top:q});return A}var a=$(c),b=$(d).children("ul").children("li");$("body");a.html("");var e=
[];(function(){var h=$("<tr></tr>");a.append(h);g(h,b.children("ul:first").children("li"),1,a.position().left,a.position().top);h.wrap("<table class='navi_horizont_table' width='100%'></table>");h.find("td:last").remove();h=$("body").find(".dynamic-layer-menu-container-innerContainer");a.innerHeight();$.each(h,function(k){var j=$(this),n=j.position().top,q=j.position().left;if(j.html()!=""){k=j.html();j.html("<div class='sub_menu'><div class='st sbsize'></div><div class='sumbenu-content'><div class='inder'>"+
k+"</div></div><div class='sb sbsize'></div>");if($.browser.msie){j.css("top",n-20);j.css("left",q-40);$.browser.version<8&&j.css("top",n+343)}else{j.css("top",n-20);j.css("left",q-40)}j.hide()}else{e[k]=null;j.remove()}})})();new MenuEventSpy(e)}
var month=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"];function hText(){var c=$("div#header-text").find("li");var d=$("div#header-text-view");var e=0;window.setInterval(function(){var a=d.find("p");a.remove();if(c.length<1)return;if(e>=c.length)e=0;var b=$("<p>"+$(c[e]).html()+"</p>").hide();d.append(b);b.show("blind",1000);e++},5000);var f=d.find("p");f.remove();if(c.length<1)return;if(e>=c.length)e=0;var g=$("<p>"+$(c[e]).html()+"</p>").hide();d.append(g);g.show("blind",1000);e++}function hImg(){var a=$("div#header-img").find("img");var b=$("div.i-img");var c=0;window.setInterval(function(){if(a.length<1)return;b.fadeOut(1000,function(){if(c>=a.length)c=0;b.css("background","url('"+$(a[c]).attr("src")+"') center center no-repeat");b.fadeIn(1000,null);c++})},10000);if(a.length<1)return;if(c>=a.length)c=0;b.css("background","url('"+$(a[c]).attr("src")+"') center center no-repeat");b.fadeIn(1000,null);c++}var orderdlg=null;$(document).ready(function(){$("a[href=produkcija/]").parent().parent().hide();$.each($("div.spec"),function(i){var t=$(this);t.addClass("lm"+i)});$.each($("div.spec").children("a"),function(i){var t=$(this);t.text("")});hText();hImg();var k=$("#order-dialog .tx_mailform_field_submit input[type=submit]");k.hide();$("#order-dialog").attr("title","Заявка на заказ");orderdlg=$("#order-dialog").dialog({autoOpen:false,modal:true,resizable:false,position:'center',width:'550px',buttons:{"Отмена":function(e){orderdlg.dialog("close")},"Отправить заявку":function(e){k.click()}}});var l=$("a[href=neworder/]");if(l.length>0){$.each(l,function(i){var t=$(this);t.after("<div class='a order'>"+t.html()+"</div>").remove()});$("div.order").click(function(e){orderdlg.dialog("open")})}var m=$("p.csc-header-date");$.each(m,function(i){var t=$(this);var h=t.html();var j=h.split("/");t.html("<i>создано: "+j[1]+" "+month[j[0]-1]+" 20"+j[2]+"г.</i>");t.attr("title","Нажмите для фильтра по дате");t.attr("date",j[1]+"."+j[0]+".20"+j[2]);t.click(function(e){var t=$(this);if(t.attr("filtered")=="true"){var f=$("div.text");var g=f.children();g.show();f.find("p.csc-header-date[filtered=true]").attr("filtered","false");f.find("p.csc-header-date.filtered").removeClass("filtered");return}t.datepicker('dialog',t.attr("date"),function(c){var d=$("div.text");var e=d.children();$.each(e,function(i){var t=$(this);var a=t.find("p.csc-header-date");a.attr("filtered","true");a.addClass("filtered");var b=a.attr("date");if(b!=c)t.hide()})},{duration:1,showButtonPanel:true},e)})})});
