(function(){var S=this,ac,E=S.jQuery,G=S.$,V=S.jQuery=S.$=function(a,b){return new V.fn.init(a,b)},ag=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ab=/^.[^:#\[\.,]*$/;V.fn=V.prototype={init:function(d,b){d=d||document;if(d.nodeType){this[0]=d;this.length=1;this.context=d;return this}if(typeof d==="string"){var a=ag.exec(d);if(a&&(a[1]||!b)){if(a[1]){d=V.clean([a[1]],b)}else{var c=document.getElementById(a[3]);if(c&&c.id!=a[3]){return V().find(d)}var e=V(c||[]);e.context=document;e.selector=d;return e}}else{return V(b).find(d)}}else{if(V.isFunction(d)){return V(document).ready(d)}}if(d.selector&&d.context){this.selector=d.selector;this.context=d.context}return this.setArray(V.isArray(d)?d:V.makeArray(d))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ac?Array.prototype.slice.call(this):this[a]},pushStack:function(d,b,c){var a=V(d);a.prevObject=this;a.context=this.context;if(b==="find"){a.selector=this.selector+(this.selector?" ":"")+c}else{if(b){a.selector=this.selector+"."+b+"("+c+")"
}}return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(b,a){return V.each(this,b,a)},index:function(a){return V.inArray(a&&a.jquery?a[0]:a,this)},attr:function(d,b,a){var c=d;if(typeof d==="string"){if(b===ac){return this[0]&&V[a||"attr"](this[0],d)}else{c={};c[d]=b}}return this.each(function(e){for(d in c){V.attr(a?this.style:this,d,V.prop(this,c[d],a,e,d))}})},css:function(a,b){if((a=="width"||a=="height")&&parseFloat(b)<0){b=ac}return this.attr(a,b,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b))}var a="";V.each(b||this,function(){V.each(this.childNodes,function(){if(this.nodeType!=8){a+=this.nodeType!=1?this.nodeValue:V.fn.text([this])}})});return a},wrapAll:function(a){if(this[0]){var b=V(a,this[0].ownerDocument).clone();if(this[0].parentNode){b.insertBefore(this[0])}b.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)
}return this},wrapInner:function(a){return this.each(function(){V(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){V(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||V([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var b=this.pushStack([],"find",a);b.length=0;V.find(a,this[0],b);return b}else{return this.pushStack(V.unique(V.map(this,function(c){return V.find(a,c)})),"find",a)}},clone:function(a){var c=this.map(function(){if(!V.support.noCloneEvent&&!V.isXMLDoc(this)){var e=this.outerHTML;
if(!e){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));e=f.innerHTML}return V.clean([e.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(a===true){var b=this.find("*").andSelf(),d=0;c.find("*").andSelf().each(function(){if(this.nodeName!==b[d].nodeName){return}var e=V.data(b[d],"events");for(var g in e){for(var f in e[g]){V.event.add(this,g,e[g][f],e[g][f].data)}}d++})}return c},filter:function(a){return this.pushStack(V.isFunction(a)&&V.grep(this,function(b,c){return a.call(b,c)})||V.multiFilter(a,V.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(b){var a=V.expr.match.POS.test(b)?V(b):null,c=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:V(d).is(b)){V.data(d,"closest",c);return d}d=d.parentNode;c++}})},not:function(a){if(typeof a==="string"){if(ab.test(a)){return this.pushStack(V.multiFilter(a,this,true),"not",a)}else{a=V.multiFilter(a,this)}}var b=a.length&&a[a.length-1]!==ac&&!a.nodeType;
return this.filter(function(){return b?V.inArray(this,a)<0:this!=a})},add:function(a){return this.pushStack(V.unique(V.merge(this.get(),typeof a==="string"?V(a):V.makeArray(a))))},is:function(a){return !!a&&V.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(g){if(g===ac){var a=this[0];if(a){if(V.nodeName(a,"option")){return(a.attributes.value||{}).specified?a.value:a.text}if(V.nodeName(a,"select")){var e=a.selectedIndex,h=[],j=a.options,d=a.type=="select-one";if(e<0){return null}for(var b=d?e:0,f=d?e+1:j.length;b<f;b++){var c=j[b];if(c.selected){g=V(c).val();if(d){return g}h.push(g)}}return h}return(a.value||"").replace(/\r/g,"")}return ac}if(typeof g==="number"){g+=""}return this.each(function(){if(this.nodeType!=1){return}if(V.isArray(g)&&/radio|checkbox/.test(this.type)){this.checked=(V.inArray(this.value,g)>=0||V.inArray(this.name,g)>=0)}else{if(V.nodeName(this,"select")){var k=V.makeArray(g);V("option",this).each(function(){this.selected=(V.inArray(this.value,k)>=0||V.inArray(this.text,k)>=0)
});if(!k.length){this.selectedIndex=-1}}else{this.value=g}}})},html:function(a){return a===ac?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(V.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(f,j,h){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),b=V.clean(f,(this[0].ownerDocument||this[0]),e),d=e.firstChild;if(d){for(var c=0,a=this.length;c<a;c++){h.call(g(this[c],d),this.length>1||c>0?e.cloneNode(true):e)}}if(b){V.each(b,F)}}return this;function g(k,l){return j&&V.nodeName(k,"table")&&V.nodeName(l,"tr")?(k.getElementsByTagName("tbody")[0]||k.appendChild(k.ownerDocument.createElement("tbody"))):k
}}};V.fn.init.prototype=V.fn;function F(a,b){if(b.src){V.ajax({url:b.src,async:false,dataType:"script"})}else{V.globalEval(b.text||b.textContent||b.innerHTML||"")}if(b.parentNode){b.parentNode.removeChild(b)}}function aa(){return +new Date}V.extend=V.fn.extend=function(){var f=arguments[0]||{},d=1,e=arguments.length,a=false,c;if(typeof f==="boolean"){a=f;f=arguments[1]||{};d=2}if(typeof f!=="object"&&!V.isFunction(f)){f={}}if(e==d){f=this;--d}for(;d<e;d++){if((c=arguments[d])!=null){for(var b in c){var g=f[b],h=c[b];if(f===h){continue}if(a&&h&&typeof h==="object"&&!h.nodeType){f[b]=V.extend(a,g||(h.length!=null?[]:{}),h)}else{if(h!==ac){f[b]=h}}}}}return f};var X=/z-?index|font-?weight|opacity|zoom|line-?height/i,H=document.defaultView||{},J=Object.prototype.toString;V.extend({noConflict:function(a){S.$=G;if(a){S.jQuery=E}return V},isFunction:function(a){return J.call(a)==="[object Function]"},isArray:function(a){return J.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&V.isXMLDoc(a.ownerDocument)
},globalEval:function(a){if(a&&/\S/.test(a)){var c=document.getElementsByTagName("head")[0]||document.documentElement,b=document.createElement("script");b.type="text/javascript";if(V.support.scriptEval){b.appendChild(document.createTextNode(a))}else{b.text=a}c.insertBefore(b,c.firstChild);c.removeChild(b)}},nodeName:function(b,a){return b.nodeName&&b.nodeName.toUpperCase()==a.toUpperCase()},each:function(a,g,c){var f,d=0,e=a.length;if(c){if(e===ac){for(f in a){if(g.apply(a[f],c)===false){break}}}else{for(;d<e;){if(g.apply(a[d++],c)===false){break}}}}else{if(e===ac){for(f in a){if(g.call(a[f],f,a[f])===false){break}}}else{for(var b=a[0];d<e&&g.call(b,d,b)!==false;b=a[++d]){}}}return a},prop:function(b,c,a,e,d){if(V.isFunction(c)){c=c.call(b,e)}return typeof c==="number"&&a=="curCSS"&&!X.test(d)?c+"px":c},className:{add:function(a,b){V.each((b||"").split(/\s+/),function(c,d){if(a.nodeType==1&&!V.className.has(a.className,d)){a.className+=(a.className?" ":"")+d}})},remove:function(a,b){if(a.nodeType==1){a.className=b!==ac?V.grep(a.className.split(/\s+/),function(c){return !V.className.has(b,c)
}).join(" "):""}},has:function(b,a){return b&&V.inArray(a,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,a,c){var d={};for(var e in a){d[e]=b.style[e];b.style[e]=a[e]}c.call(b);for(var e in a){b.style[e]=d[e]}},css:function(d,b,f,a){if(b=="width"||b=="height"){var h,c={position:"absolute",visibility:"hidden",display:"block"},g=b=="width"?["Left","Right"]:["Top","Bottom"];function e(){h=b=="width"?d.offsetWidth:d.offsetHeight;if(a==="border"){return}V.each(g,function(){if(!a){h-=parseFloat(V.curCSS(d,"padding"+this,true))||0}if(a==="margin"){h+=parseFloat(V.curCSS(d,"margin"+this,true))||0}else{h-=parseFloat(V.curCSS(d,"border"+this+"Width",true))||0}})}if(d.offsetWidth!==0){e()}else{V.swap(d,c,e)}return Math.max(0,Math.round(h))}return V.curCSS(d,b,f)},curCSS:function(e,b,c){var h,a=e.style;if(b=="opacity"&&!V.support.opacity){h=V.attr(a,"opacity");return h==""?"1":h}if(b.match(/float/i)){b=N}if(!c&&a&&a[b]){h=a[b]}else{if(H.getComputedStyle){if(b.match(/float/i)){b="float"}b=b.replace(/([A-Z])/g,"-$1").toLowerCase();
var j=H.getComputedStyle(e,null);if(j){h=j.getPropertyValue(b)}if(b=="opacity"&&h==""){h="1"}}else{if(e.currentStyle){var f=b.replace(/\-(\w)/g,function(k,l){return l.toUpperCase()});h=e.currentStyle[b]||e.currentStyle[f];if(!/^\d+(px)?$/i.test(h)&&/^\d/.test(h)){var d=a.left,g=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;a.left=h||0;h=a.pixelLeft+"px";a.left=d;e.runtimeStyle.left=g}}}}return h},clean:function(b,g,e){g=g||document;if(typeof g.createElement==="undefined"){g=g.ownerDocument||g[0]&&g[0].ownerDocument||document}if(!e&&b.length===1&&typeof b[0]==="string"){var d=/^<(\w+)\s*\/?>$/.exec(b[0]);if(d){return[g.createElement(d[1])]}}var c=[],a=[],h=g.createElement("div");V.each(b,function(p,l){if(typeof l==="number"){l+=""}if(!l){return}if(typeof l==="string"){l=l.replace(/(<(\w+)[^>]*?)\/>/g,function(r,s,q){return q.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:s+"></"+q+">"});var m=l.replace(/^\s+/,"").substring(0,10).toLowerCase();var j=!m.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!m.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||m.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!m.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!m.indexOf("<td")||!m.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!m.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!V.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
h.innerHTML=j[1]+l+j[2];while(j[0]--){h=h.lastChild}if(!V.support.tbody){var k=/<tbody/i.test(l),o=!m.indexOf("<table")&&!k?h.firstChild&&h.firstChild.childNodes:j[1]=="<table>"&&!k?h.childNodes:[];for(var n=o.length-1;n>=0;--n){if(V.nodeName(o[n],"tbody")&&!o[n].childNodes.length){o[n].parentNode.removeChild(o[n])}}}if(!V.support.leadingWhitespace&&/^\s/.test(l)){h.insertBefore(g.createTextNode(l.match(/^\s*/)[0]),h.firstChild)}l=V.makeArray(h.childNodes)}if(l.nodeType){c.push(l)}else{c=V.merge(c,l)}});if(e){for(var f=0;c[f];f++){if(V.nodeName(c[f],"script")&&(!c[f].type||c[f].type.toLowerCase()==="text/javascript")){a.push(c[f].parentNode?c[f].parentNode.removeChild(c[f]):c[f])}else{if(c[f].nodeType===1){c.splice.apply(c,[f+1,0].concat(V.makeArray(c[f].getElementsByTagName("script"))))}e.appendChild(c[f])}}return a}return c},attr:function(f,c,g){if(!f||f.nodeType==3||f.nodeType==8){return ac}var d=!V.isXMLDoc(f),h=g!==ac;c=d&&V.props[c]||c;if(f.tagName){var b=/href|src|style/.test(c);if(c=="selected"&&f.parentNode){f.parentNode.selectedIndex
}if(c in f&&d&&!b){if(h){if(c=="type"&&V.nodeName(f,"input")&&f.parentNode){throw"type property can't be changed"}f[c]=g}if(V.nodeName(f,"form")&&f.getAttributeNode(c)){return f.getAttributeNode(c).nodeValue}if(c=="tabIndex"){var e=f.getAttributeNode("tabIndex");return e&&e.specified?e.value:f.nodeName.match(/(button|input|object|select|textarea)/i)?0:f.nodeName.match(/^(a|area)$/i)&&f.href?0:ac}return f[c]}if(!V.support.style&&d&&c=="style"){return V.attr(f.style,"cssText",g)}if(h){f.setAttribute(c,""+g)}var a=!V.support.hrefNormalized&&d&&b?f.getAttribute(c,2):f.getAttribute(c);return a===null?ac:a}if(!V.support.opacity&&c=="opacity"){if(h){f.zoom=1;f.filter=(f.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(g)+""=="NaN"?"":"alpha(opacity="+g*100+")")}return f.filter&&f.filter.indexOf("opacity=")>=0?(parseFloat(f.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}c=c.replace(/-([a-z])/ig,function(j,k){return k.toUpperCase()});if(h){f[c]=g}return f[c]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var b=[];
if(a!=null){var c=a.length;if(c==null||typeof a==="string"||V.isFunction(a)||a.setInterval){b[0]=a}else{while(c){b[--c]=a[c]}}}return b},inArray:function(a,b){for(var c=0,d=b.length;c<d;c++){if(b[c]===a){return c}}return -1},merge:function(b,d){var e=0,a,c=b.length;if(!V.support.getAll){while((a=d[e++])!=null){if(a.nodeType!=8){b[c++]=a}}}else{while((a=d[e++])!=null){b[c++]=a}}return b},unique:function(g){var c=[],f={};try{for(var a=0,d=g.length;a<d;a++){var b=V.data(g[a]);if(!f[b]){f[b]=true;c.push(g[a])}}}catch(e){c=g}return c},grep:function(f,e,b){var a=[];for(var c=0,d=f.length;c<d;c++){if(!b!=!e(f[c],c)){a.push(f[c])}}return a},map:function(e,b){var f=[];for(var a=0,c=e.length;a<c;a++){var d=b(e[a],a);if(d!=null){f[f.length]=d}}return f.concat.apply([],f)}});var af=navigator.userAgent.toLowerCase();V.browser={version:(af.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(af),opera:/opera/.test(af),msie:/msie/.test(af)&&!/opera/.test(af),mozilla:/mozilla/.test(af)&&!/(compatible|webkit)/.test(af)};
V.each({parent:function(a){return a.parentNode},parents:function(a){return V.dir(a,"parentNode")},next:function(a){return V.nth(a,2,"nextSibling")},prev:function(a){return V.nth(a,2,"previousSibling")},nextAll:function(a){return V.dir(a,"nextSibling")},prevAll:function(a){return V.dir(a,"previousSibling")},siblings:function(a){return V.sibling(a.parentNode.firstChild,a)},children:function(a){return V.sibling(a.firstChild)},contents:function(a){return V.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:V.makeArray(a.childNodes)}},function(a,b){V.fn[a]=function(c){var d=V.map(this,b);if(c&&typeof c=="string"){d=V.multiFilter(c,d)}return this.pushStack(V.unique(d),a,c)}});V.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){V.fn[a]=function(c){var g=[],d=V(c);for(var h=0,e=d.length;h<e;h++){var f=(h>0?this.clone(true):this).get();V.fn[b].apply(V(d[h]),f);g=g.concat(f)}return this.pushStack(g,a,c)}});V.each({removeAttr:function(a){V.attr(this,a,"");
if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){V.className.add(this,a)},removeClass:function(a){V.className.remove(this,a)},toggleClass:function(b,a){if(typeof a!=="boolean"){a=!V.className.has(this,b)}V.className[a?"add":"remove"](this,b)},remove:function(a){if(!a||V.filter(a,[this]).length){V("*",this).add([this]).each(function(){V.event.remove(this);V.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){V(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(a,b){V.fn[a]=function(){return this.each(b,arguments)}});function Q(a,b){return a[0]&&parseInt(V.curCSS(a[0],b,true),10)||0}var O="jQuery"+aa(),M=0,ad={};V.extend({cache:{},data:function(d,c,a){d=d==S?ad:d;var b=d[O];if(!b){b=d[O]=++M}if(c&&!V.cache[b]){V.cache[b]={}}if(a!==ac){V.cache[b][c]=a}return c?V.cache[b][c]:b},removeData:function(d,c){d=d==S?ad:d;var b=d[O];if(c){if(V.cache[b]){delete V.cache[b][c];c="";for(c in V.cache[b]){break}if(!c){V.removeData(d)
}}}else{try{delete d[O]}catch(a){if(d.removeAttribute){d.removeAttribute(O)}}delete V.cache[b]}},queue:function(d,c,b){if(d){c=(c||"fx")+"queue";var a=V.data(d,c);if(!a||V.isArray(b)){a=V.data(d,c,V.makeArray(b))}else{if(b){a.push(b)}}}return a},dequeue:function(b,a){var c=V.queue(b,a),d=c.shift();if(!a||a==="fx"){d=c[0]}if(d!==ac){d.call(b)}}});V.fn.extend({data:function(c,a){var b=c.split(".");b[1]=b[1]?"."+b[1]:"";if(a===ac){var d=this.triggerHandler("getData"+b[1]+"!",[b[0]]);if(d===ac&&this.length){d=V.data(this[0],c)}return d===ac&&b[1]?this.data(b[0]):d}else{return this.trigger("setData"+b[1]+"!",[b[0],a]).each(function(){V.data(this,c,a)})}},removeData:function(a){return this.each(function(){V.removeData(this,a)})},queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===ac){return V.queue(this[0],a)}return this.each(function(){var c=V.queue(this,a,b);if(a=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){V.dequeue(this,a)})}});(function(){var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,l=0,g=Object.prototype.toString;
var b=function(ai,v,z,q){z=z||[];v=v||document;if(v.nodeType!==1&&v.nodeType!==9){return[]}if(!ai||typeof ai!=="string"){return z}var aj=[],x,s,r,u,A,w,D=true;e.lastIndex=0;while((x=e.exec(ai))!==null){aj.push(x[1]);if(x[2]){w=RegExp.rightContext;break}}if(aj.length>1&&m.exec(ai)){if(aj.length===2&&h.relative[aj[0]]){s=j(aj[0]+aj[1],v)}else{s=h.relative[aj[0]]?[v]:b(aj.shift(),v);while(aj.length){ai=aj.shift();if(h.relative[ai]){ai+=aj.shift()}s=j(ai,s)}}}else{var C=q?{expr:aj.pop(),set:a(q)}:b.find(aj.pop(),aj.length===1&&v.parentNode?v.parentNode:v,d(v));s=b.filter(C.expr,C.set);if(aj.length>0){r=a(s)}else{D=false}while(aj.length){var B=aj.pop(),y=B;if(!h.relative[B]){B=""}else{y=aj.pop()}if(y==null){y=v}h.relative[B](r,y,d(v))}}if(!r){r=s}if(!r){throw"Syntax error, unrecognized expression: "+(B||ai)}if(g.call(r)==="[object Array]"){if(!D){z.push.apply(z,r)}else{if(v.nodeType===1){for(var t=0;r[t]!=null;t++){if(r[t]&&(r[t]===true||r[t].nodeType===1&&k(v,r[t]))){z.push(s[t])}}}else{for(var t=0;r[t]!=null;t++){if(r[t]&&r[t].nodeType===1){z.push(s[t])
}}}}}else{a(r,z)}if(w){b(w,v,z,q);if(c){hasDuplicate=false;z.sort(c);if(hasDuplicate){for(var t=1;t<z.length;t++){if(z[t]===z[t-1]){z.splice(t--,1)}}}}}return z};b.matches=function(q,r){return b(q,null,null,r)};b.find=function(q,r,v){var y,w;if(!q){return[]}for(var u=0,t=h.order.length;u<t;u++){var x=h.order[u],w;if((w=h.match[x].exec(q))){var s=RegExp.leftContext;if(s.substr(s.length-1)!=="\\"){w[1]=(w[1]||"").replace(/\\/g,"");y=h.find[x](w,r,v);if(y!=null){q=q.replace(h.match[x],"");break}}}}if(!y){y=r.getElementsByTagName("*")}return{set:y,expr:q}};b.filter=function(v,q,z,y){var x=v,r=[],u=q,ai,C,aj=q&&q[0]&&d(q[0]);while(v&&q.length){for(var A in h.filter){if((ai=h.match[A].exec(v))!=null){var w=h.filter[A],B,t;C=false;if(u==r){r=[]}if(h.preFilter[A]){ai=h.preFilter[A](ai,u,z,r,y,aj);if(!ai){C=B=true}else{if(ai===true){continue}}}if(ai){for(var D=0;(t=u[D])!=null;D++){if(t){B=w(t,ai,D,u);var s=y^!!B;if(z&&B!=null){if(s){C=true}else{u[D]=false}}else{if(s){r.push(t);C=true}}}}}if(B!==ac){if(!z){u=r}v=v.replace(h.match[A],"");
if(!C){return[]}break}}}if(v==x){if(C==null){throw"Syntax error, unrecognized expression: "+v}else{break}}x=v}return u};var h=b.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(q){return q.getAttribute("href")}},relative:{"+":function(q,r,y){var w=typeof r==="string",v=w&&!/\W/.test(r),x=w&&!v;if(v&&!y){r=r.toUpperCase()}for(var u=0,t=q.length,s;u<t;u++){if((s=q[u])){while((s=s.previousSibling)&&s.nodeType!==1){}q[u]=x||s&&s.nodeName===r?s||false:s===r}}if(x){b.filter(r,q,true)}},">":function(x,s,q){var v=typeof s==="string";
if(v&&!/\W/.test(s)){s=q?s:s.toUpperCase();for(var t=0,r=x.length;t<r;t++){var w=x[t];if(w){var u=w.parentNode;x[t]=u.nodeName===s?u:false}}}else{for(var t=0,r=x.length;t<r;t++){var w=x[t];if(w){x[t]=v?w.parentNode:w.parentNode===s}}if(v){b.filter(s,x,true)}}},"":function(u,s,r){var t=l++,v=f;if(!s.match(/\W/)){var q=s=r?s:s.toUpperCase();v=p}v("parentNode",s,t,u,q,r)},"~":function(u,s,r){var t=l++,v=f;if(typeof s==="string"&&!s.match(/\W/)){var q=s=r?s:s.toUpperCase();v=p}v("previousSibling",s,t,u,q,r)}},find:{ID:function(r,s,t){if(typeof s.getElementById!=="undefined"&&!t){var q=s.getElementById(r[1]);return q?[q]:[]}},NAME:function(t,r,s){if(typeof r.getElementsByName!=="undefined"){var w=[],q=r.getElementsByName(t[1]);for(var u=0,v=q.length;u<v;u++){if(q[u].getAttribute("name")===t[1]){w.push(q[u])}}return w.length===0?null:w}},TAG:function(q,r){return r.getElementsByTagName(q[1])}},preFilter:{CLASS:function(u,s,t,r,x,q){u=" "+u[1].replace(/\\/g,"")+" ";if(q){return u}for(var v=0,w;(w=s[v])!=null;v++){if(w){if(x^(w.className&&(" "+w.className+" ").indexOf(u)>=0)){if(!t){r.push(w)
}}else{if(t){s[v]=false}}}}return false},ID:function(q){return q[1].replace(/\\/g,"")},TAG:function(r,q){for(var s=0;q[s]===false;s++){}return q[s]&&d(q[s])?r[1]:r[1].toUpperCase()},CHILD:function(q){if(q[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(q[2]=="even"&&"2n"||q[2]=="odd"&&"2n+1"||!/\D/.test(q[2])&&"0n+"+q[2]||q[2]);q[2]=(r[1]+(r[2]||1))-0;q[3]=r[3]-0}q[0]=l++;return q},ATTR:function(q,s,t,r,v,w){var u=q[1].replace(/\\/g,"");if(!w&&h.attrMap[u]){q[1]=h.attrMap[u]}if(q[2]==="~="){q[4]=" "+q[4]+" "}return q},PSEUDO:function(q,s,t,r,v){if(q[1]==="not"){if(q[3].match(e).length>1||/^\w/.test(q[3])){q[3]=b(q[3],null,null,s)}else{var u=b.filter(q[3],s,t,true^v);if(!t){r.push.apply(r,u)}return false}}else{if(h.match.POS.test(q[0])||h.match.CHILD.test(q[0])){return true}}return q},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){q.parentNode.selectedIndex;
return q.selected===true},parent:function(q){return !!q.firstChild},empty:function(q){return !q.firstChild},has:function(s,r,q){return !!b(q[3],s).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"===q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toUpperCase()==="BUTTON"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(r,q){return q===0},last:function(s,r,q,t){return r===t.length-1},even:function(r,q){return q%2===0},odd:function(r,q){return q%2===1},lt:function(s,r,q){return r<q[3]-0},gt:function(s,r,q){return r>q[3]-0},nth:function(s,r,q){return q[3]-0==r},eq:function(s,r,q){return q[3]-0==r}},filter:{PSEUDO:function(x,t,u,q){var s=t[1],v=h.filters[s];
if(v){return v(x,u,t,q)}else{if(s==="contains"){return(x.textContent||x.innerText||"").indexOf(t[3])>=0}else{if(s==="not"){var w=t[3];for(var u=0,r=w.length;u<r;u++){if(w[u]===x){return false}}return true}}}},CHILD:function(s,v){var z=v[1],t=s;switch(z){case"only":case"first":while(t=t.previousSibling){if(t.nodeType===1){return false}}if(z=="first"){return true}t=s;case"last":while(t=t.nextSibling){if(t.nodeType===1){return false}}return true;case"nth":var u=v[2],q=v[3];if(u==1&&q==0){return true}var y=v[0],w=s.parentNode;if(w&&(w.sizcache!==y||!s.nodeIndex)){var x=0;for(t=w.firstChild;t;t=t.nextSibling){if(t.nodeType===1){t.nodeIndex=++x}}w.sizcache=y}var r=s.nodeIndex-q;if(u==0){return r==0}else{return(r%u==0&&r/u>=0)}}},ID:function(r,q){return r.nodeType===1&&r.getAttribute("id")===q},TAG:function(r,q){return(q==="*"&&r.nodeType===1)||r.nodeName===q},CLASS:function(r,q){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(q)>-1},ATTR:function(r,u){var t=u[1],v=h.attrHandle[t]?h.attrHandle[t](r):r[t]!=null?r[t]:r.getAttribute(t),s=v+"",q=u[2],w=u[4];
return v==null?q==="!=":q==="="?s===w:q==="*="?s.indexOf(w)>=0:q==="~="?(" "+s+" ").indexOf(w)>=0:!w?s&&v!==false:q==="!="?s!=w:q==="^="?s.indexOf(w)===0:q==="$="?s.substr(s.length-w.length)===w:q==="|="?s===w||s.substr(0,w.length+1)===w+"-":false},POS:function(q,s,t,r){var v=s[2],u=h.setFilters[v];if(u){return u(q,t,s,r)}}}};var m=h.match.POS;for(var o in h.match){h.match[o]=RegExp(h.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var a=function(r,q){r=Array.prototype.slice.call(r);if(q){q.push.apply(q,r);return q}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(n){a=function(q,u){var s=u||[];if(g.call(q)==="[object Array]"){Array.prototype.push.apply(s,q)}else{if(typeof q.length==="number"){for(var t=0,r=q.length;t<r;t++){s.push(q[t])}}else{for(var t=0;q[t];t++){s.push(q[t])}}}return s}}var c;if(document.documentElement.compareDocumentPosition){c=function(r,q){var s=r.compareDocumentPosition(q)&4?-1:r===q?0:1;if(s===0){hasDuplicate=true}return s}}else{if("sourceIndex" in document.documentElement){c=function(r,q){var s=r.sourceIndex-q.sourceIndex;
if(s===0){hasDuplicate=true}return s}}else{if(document.createRange){c=function(u,s){var t=u.ownerDocument.createRange(),r=s.ownerDocument.createRange();t.selectNode(u);t.collapse(true);r.selectNode(s);r.collapse(true);var q=t.compareBoundaryPoints(Range.START_TO_END,r);if(q===0){hasDuplicate=true}return q}}}}(function(){var r=document.createElement("form"),s="script"+(new Date).getTime();r.innerHTML="<input name='"+s+"'/>";var q=document.documentElement;q.insertBefore(r,q.firstChild);if(!!document.getElementById(s)){h.find.ID=function(t,u,v){if(typeof u.getElementById!=="undefined"&&!v){var w=u.getElementById(t[1]);return w?w.id===t[1]||typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id").nodeValue===t[1]?[w]:ac:[]}};h.filter.ID=function(u,v){var t=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&t&&t.nodeValue===v}}q.removeChild(r)})();(function(){var q=document.createElement("div");q.appendChild(document.createComment(""));if(q.getElementsByTagName("*").length>0){h.find.TAG=function(t,s){var r=s.getElementsByTagName(t[1]);
if(t[1]==="*"){var v=[];for(var u=0;r[u];u++){if(r[u].nodeType===1){v.push(r[u])}}r=v}return r}}q.innerHTML="<a href='#'></a>";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#"){h.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var q=b,r=document.createElement("div");r.innerHTML="<p class='TEST'></p>";if(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0){return}b=function(t,s,v,w){s=s||document;if(!w&&s.nodeType===9&&!d(s)){try{return a(s.querySelectorAll(t),v)}catch(u){}}return q(t,s,v,w)};b.find=q.find;b.filter=q.filter;b.selectors=q.selectors;b.matches=q.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var q=document.createElement("div");q.innerHTML="<div class='test e'></div><div class='test'></div>";if(q.getElementsByClassName("e").length===0){return}q.lastChild.className="e";if(q.getElementsByClassName("e").length===1){return
}h.order.splice(1,0,"CLASS");h.find.CLASS=function(r,s,t){if(typeof s.getElementsByClassName!=="undefined"&&!t){return s.getElementsByClassName(r[1])}}})()}function p(u,A,z,t,s,q){var x=u=="previousSibling"&&!q;for(var w=0,v=t.length;w<v;w++){var r=t[w];if(r){if(x&&r.nodeType===1){r.sizcache=z;r.sizset=w}r=r[u];var y=false;while(r){if(r.sizcache===z){y=t[r.sizset];break}if(r.nodeType===1&&!q){r.sizcache=z;r.sizset=w}if(r.nodeName===A){y=r;break}r=r[u]}t[w]=y}}}function f(u,A,z,t,s,q){var x=u=="previousSibling"&&!q;for(var w=0,v=t.length;w<v;w++){var r=t[w];if(r){if(x&&r.nodeType===1){r.sizcache=z;r.sizset=w}r=r[u];var y=false;while(r){if(r.sizcache===z){y=t[r.sizset];break}if(r.nodeType===1){if(!q){r.sizcache=z;r.sizset=w}if(typeof A!=="string"){if(r===A){y=true;break}}else{if(b.filter(A,[r]).length>0){y=r;break}}}r=r[u]}t[w]=y}}}var k=document.compareDocumentPosition?function(r,q){return r.compareDocumentPosition(q)&16}:function(r,q){return r!==q&&(r.contains?r.contains(q):true)};var d=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&d(q.ownerDocument)
};var j=function(r,q){var u=[],v="",w,t=q.nodeType?[q]:q;while((w=h.match.PSEUDO.exec(r))){v+=w[0];r=r.replace(h.match.PSEUDO,"")}r=h.relative[r]?r+"*":r;for(var x=0,s=t.length;x<s;x++){b(r,t[x],u)}return b.filter(v,u)};V.find=b;V.filter=b.filter;V.expr=b.selectors;V.expr[":"]=V.expr.filters;b.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};b.selectors.filters.visible=function(q){return q.offsetWidth>0||q.offsetHeight>0};b.selectors.filters.animated=function(q){return V.grep(V.timers,function(r){return q===r.elem}).length};V.multiFilter=function(s,q,r){if(r){s=":not("+s+")"}return b.matches(s,q)};V.dir=function(s,r){var q=[],t=s[r];while(t&&t!=document){if(t.nodeType==1){q.push(t)}t=t[r]}return q};V.nth=function(q,r,t,u){r=r||1;var s=0;for(;q;q=q[t]){if(q.nodeType==1&&++s==r){break}}return q};V.sibling=function(s,r){var q=[];for(;s;s=s.nextSibling){if(s.nodeType==1&&s!=r){q.push(s)}}return q};return;S.Sizzle=b})();V.event={add:function(e,g,d,c){if(e.nodeType==3||e.nodeType==8){return
}if(e.setInterval&&e!=S){e=S}if(!d.guid){d.guid=this.guid++}if(c!==ac){var a=d;d=this.proxy(a);d.data=c}var f=V.data(e,"events")||V.data(e,"events",{}),b=V.data(e,"handle")||V.data(e,"handle",function(){return typeof V!=="undefined"&&!V.event.triggered?V.event.handle.apply(arguments.callee.elem,arguments):ac});b.elem=e;V.each(g.split(/\s+/),function(j,k){var l=k.split(".");k=l.shift();d.type=l.slice().sort().join(".");var h=f[k];if(V.event.specialAll[k]){V.event.specialAll[k].setup.call(e,c,l)}if(!h){h=f[k]={};if(!V.event.special[k]||V.event.special[k].setup.call(e,c,l)===false){if(e.addEventListener){e.addEventListener(k,b,false)}else{if(e.attachEvent){e.attachEvent("on"+k,b)}}}}h[d.guid]=d;V.event.global[k]=true});e=null},guid:1,global:{},remove:function(g,d,f){if(g.nodeType==3||g.nodeType==8){return}var c=V.data(g,"events"),b,a;if(c){if(d===ac||(typeof d==="string"&&d.charAt(0)==".")){for(var e in c){this.remove(g,e+(d||""))}}else{if(d.type){f=d.handler;d=d.type}V.each(d.split(/\s+/),function(k,m){var j=m.split(".");
m=j.shift();var l=RegExp("(^|\\.)"+j.slice().sort().join(".*\\.")+"(\\.|$)");if(c[m]){if(f){delete c[m][f.guid]}else{for(var n in c[m]){if(l.test(c[m][n].type)){delete c[m][n]}}}if(V.event.specialAll[m]){V.event.specialAll[m].teardown.call(g,j)}for(b in c[m]){break}if(!b){if(!V.event.special[m]||V.event.special[m].teardown.call(g,j)===false){if(g.removeEventListener){g.removeEventListener(m,V.data(g,"handle"),false)}else{if(g.detachEvent){g.detachEvent("on"+m,V.data(g,"handle"))}}}b=null;delete c[m]}}})}for(b in c){break}if(!b){var h=V.data(g,"handle");if(h){h.elem=null}V.removeData(g,"events");V.removeData(g,"handle")}}},trigger:function(e,g,d,a){var c=e.type||e;if(!a){e=typeof e==="object"?e[O]?e:V.extend(V.Event(c),e):V.Event(c);if(c.indexOf("!")>=0){e.type=c=c.slice(0,-1);e.exclusive=true}if(!d){e.stopPropagation();if(this.global[c]){V.each(V.cache,function(){if(this.events&&this.events[c]){V.event.trigger(e,g,this.handle.elem)}})}}if(!d||d.nodeType==3||d.nodeType==8){return ac}e.result=ac;e.target=d;g=V.makeArray(g);
g.unshift(e)}e.currentTarget=d;var f=V.data(d,"handle");if(f){f.apply(d,g)}if((!d[c]||(V.nodeName(d,"a")&&c=="click"))&&d["on"+c]&&d["on"+c].apply(d,g)===false){e.result=false}if(!a&&d[c]&&!e.isDefaultPrevented()&&!(V.nodeName(d,"a")&&c=="click")){this.triggered=true;try{d[c]()}catch(h){}}this.triggered=false;if(!e.isPropagationStopped()){var b=d.parentNode||d.ownerDocument;if(b){V.event.trigger(e,g,b,true)}}},handle:function(g){var f,a;g=arguments[0]=V.event.fix(g||S.event);g.currentTarget=this;var h=g.type.split(".");g.type=h.shift();f=!h.length&&!g.exclusive;var e=RegExp("(^|\\.)"+h.slice().sort().join(".*\\.")+"(\\.|$)");a=(V.data(this,"events")||{})[g.type];for(var c in a){var d=a[c];if(f||e.test(d.type)){g.handler=d;g.data=d.data;var b=d.apply(this,arguments);if(b!==ac){g.result=b;if(b===false){g.preventDefault();g.stopPropagation()}}if(g.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[O]){return c
}var f=c;c=V.Event(f);for(var a=this.props.length,e;a;){e=this.props[--a];c[e]=f[e]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var d=document.documentElement,b=document.body;c.pageX=c.clientX+(d&&d.scrollLeft||b&&b.scrollLeft||0)-(d.clientLeft||0);c.pageY=c.clientY+(d&&d.scrollTop||b&&b.scrollTop||0)-(d.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},proxy:function(b,a){a=a||function(){return b.apply(this,arguments)};a.guid=b.guid=b.guid||a.guid||this.guid++;return a},special:{ready:{setup:ae,teardown:function(){}}},specialAll:{live:{setup:function(a,b){V.event.add(this,b[0],Y)},teardown:function(a){if(a.length){var b=0,c=RegExp("(^|\\.)"+a[0]+"(\\.|$)");
V.each((V.data(this,"events").live||{}),function(){if(c.test(this.type)){b++}});if(b<1){V.event.remove(this,a[0],Y)}}}}}};V.Event=function(a){if(!this.preventDefault){return new V.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=aa();this[O]=true};function R(){return false}function L(){return true}V.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=L;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;this.stopPropagation()},isDefaultPrevented:R,isPropagationStopped:R,isImmediatePropagationStopped:R};var W=function(c){var b=c.relatedTarget;while(b&&b!=this){try{b=b.parentNode}catch(a){b=this}}if(b!=this){c.type=c.data;V.event.handle.apply(this,arguments)}};V.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,a){V.event.special[a]={setup:function(){V.event.add(this,b,W,a)
},teardown:function(){V.event.remove(this,b,W)}}});V.fn.extend({bind:function(c,a,b){return c=="unload"?this.one(c,a,b):this.each(function(){V.event.add(this,c,b||a,b&&a)})},one:function(a,b,d){var c=V.event.proxy(d||b,function(e){V(this).unbind(e,c);return(d||b).apply(this,arguments)});return this.each(function(){V.event.add(this,a,c,d&&b)})},unbind:function(b,a){return this.each(function(){V.event.remove(this,b,a)})},trigger:function(a,b){return this.each(function(){V.event.trigger(a,b,this)})},triggerHandler:function(b,a){if(this[0]){var c=V.Event(b);c.preventDefault();c.stopPropagation();V.event.trigger(c,a,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length){V.event.proxy(a,b[c++])}return this.click(V.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%c;d.preventDefault();return b[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){ae();if(V.isReady){a.call(document,V)}else{V.readyList.push(a)
}return this},live:function(a,c){var b=V.event.proxy(c);b.guid+=this.selector+a;V(document).bind(P(a,this.selector),this.selector,b);return this},die:function(b,a){V(document).unbind(P(b,this.selector),a?{guid:a.guid+this.selector+b}:null);return this}});function Y(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),a=true,d=[];V.each(V.data(this,"events").live||[],function(e,f){if(c.test(f.type)){var g=V(b.target).closest(f.data)[0];if(g){d.push({elem:g,fn:f})}}});d.sort(function(f,e){return V.data(f.elem,"closest")-V.data(e.elem,"closest")});V.each(d,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(a=false)}});return a}function P(b,a){return["live",b,a.replace(/\./g,"`").replace(/ /g,"|")].join(".")}V.extend({isReady:false,readyList:[],ready:function(){if(!V.isReady){V.isReady=true;if(V.readyList){V.each(V.readyList,function(){this.call(document,V)});V.readyList=null}V(document).triggerHandler("ready")}}});var ah=false;function ae(){if(ah){return}ah=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
V.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);V.ready()}});if(document.documentElement.doScroll&&S==S.top){(function(){if(V.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}V.ready()})()}}}V.event.add(S,"load",V.ready)}V.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(b,a){V.fn[a]=function(c){return c?this.bind(a,c):this.trigger(a)}});V(S).bind("unload",function(){for(var a in V.cache){if(a!=1&&V.cache[a].handle){V.event.remove(V.cache[a].handle.elem)}}});(function(){V.support={};var g=document.documentElement,a=document.createElement("script"),c=document.createElement("div"),f="script"+(new Date).getTime();c.style.display="none";c.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 d=c.getElementsByTagName("*"),b=c.getElementsByTagName("a")[0];if(!d||!d.length||!b){return}V.support={leadingWhitespace:c.firstChild.nodeType==3,tbody:!c.getElementsByTagName("tbody").length,objectAll:!!c.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/red/.test(b.getAttribute("style")),hrefNormalized:b.getAttribute("href")==="/a",opacity:b.style.opacity==="0.5",cssFloat:!!b.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};a.type="text/javascript";try{a.appendChild(document.createTextNode("window."+f+"=1;"))}catch(e){}g.insertBefore(a,g.firstChild);if(S[f]){V.support.scriptEval=true;delete S[f]}g.removeChild(a);if(c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function(){V.support.noCloneEvent=false;c.detachEvent("onclick",arguments.callee)});c.cloneNode(true).fireEvent("onclick")}V(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);V.boxModel=V.support.boxModel=h.offsetWidth===2;
document.body.removeChild(h).style.display="none"})})();var N=V.support.cssFloat?"cssFloat":"styleFloat";V.props={"for":"htmlFor","class":"className","float":N,cssFloat:N,styleFloat:N,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};V.fn.extend({_load:V.fn.load,load:function(a,f,g){if(typeof a!=="string"){return this._load(a)}var e=a.indexOf(" ");if(e>=0){var b=a.slice(e,a.length);a=a.slice(0,e)}var d="GET";if(f){if(V.isFunction(f)){g=f;f=null}else{if(typeof f==="object"){f=V.param(f);d="POST"}}}var c=this;V.ajax({url:a,type:d,dataType:"html",data:f,complete:function(j,h){if(h=="success"||h=="notmodified"){c.html(b?V("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(b):j.responseText)}if(g){c.each(g,[j.responseText,h,j])}}});return this},serialize:function(){return V.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?V.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(b,c){var a=V(this).val();return a==null?null:V.isArray(a)?V.map(a,function(e,d){return{name:c.name,value:e}}):{name:c.name,value:a}}).get()}});V.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,b){V.fn[b]=function(c){return this.bind(b,c)}});var I=aa();V.extend({get:function(c,a,b,d){if(V.isFunction(a)){b=a;a=null}return V.ajax({type:"GET",url:c,data:a,success:b,dataType:d})},getScript:function(a,b){return V.get(a,null,b,"script")},getJSON:function(b,c,a){return V.get(b,c,a,"json")},post:function(c,a,b,d){if(V.isFunction(a)){b=a;a={}}return V.ajax({type:"POST",url:c,data:a,success:b,dataType:d})},ajaxSetup:function(a){V.extend(V.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(o){o=V.extend(true,o,V.extend(true,{},V.ajaxSettings,o));
var h,s=/=\?(&|$)/g,c,g,t=o.type.toUpperCase();if(o.data&&o.processData&&typeof o.data!=="string"){o.data=V.param(o.data)}if(o.dataType=="jsonp"){if(t=="GET"){if(!o.url.match(s)){o.url+=(o.url.match(/\?/)?"&":"?")+(o.jsonp||"callback")+"=?"}}else{if(!o.data||!o.data.match(s)){o.data=(o.data?o.data+"&":"")+(o.jsonp||"callback")+"=?"}}o.dataType="json"}if(o.dataType=="json"&&(o.data&&o.data.match(s)||o.url.match(s))){h="jsonp"+I++;if(o.data){o.data=(o.data+"").replace(s,"="+h+"$1")}o.url=o.url.replace(s,"="+h+"$1");o.dataType="script";S[h]=function(u){g=u;k();n();S[h]=ac;try{delete S[h]}catch(v){}if(j){j.removeChild(e)}}}if(o.dataType=="script"&&o.cache==null){o.cache=false}if(o.cache===false&&t=="GET"){var r=aa();var f=o.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+r+"$2");o.url=f+((f==o.url)?(o.url.match(/\?/)?"&":"?")+"_="+r:"")}if(o.data&&t=="GET"){o.url+=(o.url.match(/\?/)?"&":"?")+o.data;o.data=null}if(o.global&&!V.active++){V.event.trigger("ajaxStart")}var b=/^(\w+:)?\/\/([^\/?#]+)/.exec(o.url);if(o.dataType=="script"&&t=="GET"&&b&&(b[1]&&b[1]!=location.protocol||b[2]!=location.host)){var j=document.getElementsByTagName("head")[0];
var e=document.createElement("script");e.src=o.url;if(o.scriptCharset){e.charset=o.scriptCharset}if(!h){var q=false;e.onload=e.onreadystatechange=function(){if(!q&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){q=true;k();n();e.onload=e.onreadystatechange=null;j.removeChild(e)}}}j.appendChild(e);return ac}var m=false;var l=o.xhr();if(o.username){l.open(t,o.url,o.async,o.username,o.password)}else{l.open(t,o.url,o.async)}try{if(o.data){l.setRequestHeader("Content-Type",o.contentType)}if(o.ifModified){l.setRequestHeader("If-Modified-Since",V.lastModified[o.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}l.setRequestHeader("X-Requested-With","XMLHttpRequest");l.setRequestHeader("Accept",o.dataType&&o.accepts[o.dataType]?o.accepts[o.dataType]+", */*":o.accepts._default)}catch(d){}if(o.beforeSend&&o.beforeSend(l,o)===false){if(o.global&&!--V.active){V.event.trigger("ajaxStop")}l.abort();return false}if(o.global){V.event.trigger("ajaxSend",[l,o])}var p=function(u){if(l.readyState==0){if(a){clearInterval(a);
a=null;if(o.global&&!--V.active){V.event.trigger("ajaxStop")}}}else{if(!m&&l&&(l.readyState==4||u=="timeout")){m=true;if(a){clearInterval(a);a=null}c=u=="timeout"?"timeout":!V.httpSuccess(l)?"error":o.ifModified&&V.httpNotModified(l,o.url)?"notmodified":"success";if(c=="success"){try{g=V.httpData(l,o.dataType,o)}catch(w){c="parsererror"}}if(c=="success"){var v;try{v=l.getResponseHeader("Last-Modified")}catch(w){}if(o.ifModified&&v){V.lastModified[o.url]=v}if(!h){k()}}else{V.handleError(o,l,c)}n();if(u){l.abort()}if(o.async){l=null}}}};if(o.async){var a=setInterval(p,13);if(o.timeout>0){setTimeout(function(){if(l&&!m){p("timeout")}},o.timeout)}}try{l.send(o.data)}catch(d){V.handleError(o,l,null,d)}if(!o.async){p()}function k(){if(o.success){o.success(g,c)}if(o.global){V.event.trigger("ajaxSuccess",[l,o])}}function n(){if(o.complete){o.complete(l,c)}if(o.global){V.event.trigger("ajaxComplete",[l,o])}if(o.global&&!--V.active){V.event.trigger("ajaxStop")}}return l},handleError:function(d,b,c,a){if(d.error){d.error(b,c,a)
}if(d.global){V.event.trigger("ajaxError",[b,d,a])}},active:0,httpSuccess:function(b){try{return !b.status&&location.protocol=="file:"||(b.status>=200&&b.status<300)||b.status==304||b.status==1223}catch(a){}return false},httpNotModified:function(a,c){try{var b=a.getResponseHeader("Last-Modified");return a.status==304||b==V.lastModified[c]}catch(d){}return false},httpData:function(e,c,a){var f=e.getResponseHeader("content-type"),b=c=="xml"||!c&&f&&f.indexOf("xml")>=0,d=b?e.responseXML:e.responseText;if(b&&d.documentElement.tagName=="parsererror"){throw"parsererror"}if(a&&a.dataFilter){d=a.dataFilter(d,c)}if(typeof d==="string"){if(c=="script"){V.globalEval(d)}if(c=="json"){d=S["eval"]("("+d+")")}}return d},param:function(c){var a=[];function b(e,f){a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(f)}if(V.isArray(c)||c.jquery){V.each(c,function(){b(this.name,this.value)})}else{for(var d in c){if(V.isArray(c[d])){V.each(c[d],function(){b(d,this)})}else{b(d,V.isFunction(c[d])?c[d]():c[d])}}}return a.join("&").replace(/%20/g,"+")
}});var T={},U,Z=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(c,b){var a={};V.each(Z.concat.apply([],Z.slice(0,b)),function(){a[this]=c});return a}V.fn.extend({show:function(f,h){if(f){return this.animate(K("show",3),f,h)}else{for(var d=0,b=this.length;d<b;d++){var a=V.data(this[d],"olddisplay");this[d].style.display=a||"";if(V.css(this[d],"display")==="none"){var c=this[d].tagName,g;if(T[c]){g=T[c]}else{var e=V("<"+c+" />").appendTo("body");g=e.css("display");if(g==="none"){g="block"}e.remove();T[c]=g}V.data(this[d],"olddisplay",g)}}for(var d=0,b=this.length;d<b;d++){this[d].style.display=V.data(this[d],"olddisplay")||""}return this}},hide:function(b,c){if(b){return this.animate(K("hide",3),b,c)}else{for(var a=0,e=this.length;a<e;a++){var d=V.data(this[a],"olddisplay");if(!d&&d!=="none"){V.data(this[a],"olddisplay",V.css(this[a],"display"))}}for(var a=0,e=this.length;a<e;a++){this[a].style.display="none"
}return this}},_toggle:V.fn.toggle,toggle:function(a,c){var b=typeof a==="boolean";return V.isFunction(a)&&V.isFunction(c)?this._toggle.apply(this,arguments):a==null||b?this.each(function(){var d=b?a:V(this).is(":hidden");V(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),a,c)},fadeTo:function(b,a,c){return this.animate({opacity:a},b,c)},animate:function(c,e,b,a){var d=V.speed(e,b,a);return this[d.queue===false?"each":"queue"](function(){var j=V.extend({},d),g,f=this.nodeType==1&&V(this).is(":hidden"),h=this;for(g in c){if(c[g]=="hide"&&f||c[g]=="show"&&!f){return j.complete.call(this)}if((g=="height"||g=="width")&&this.style){j.display=V.css(this,"display");j.overflow=this.style.overflow}}if(j.overflow!=null){this.style.overflow="hidden"}j.curAnim=V.extend({},c);V.each(c,function(n,m){var l=new V.fx(h,j,n);if(/toggle|show|hide/.test(m)){l[m=="toggle"?f?"show":"hide":m](c)}else{var k=m.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),p=l.cur(true)||0;if(k){var o=parseFloat(k[2]),q=k[3]||"px";if(q!="px"){h.style[n]=(o||1)+q;
p=((o||1)/l.cur(true))*p;h.style[n]=p+q}if(k[1]){o=((k[1]=="-="?-1:1)*o)+p}l.custom(p,o,q)}else{l.custom(p,m,"")}}});return true})},stop:function(c,b){var a=V.timers;if(c){this.queue([])}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(b){a[d](true)}a.splice(d,1)}}});if(!b){this.dequeue()}return this}});V.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){V.fn[a]=function(c,d){return this.animate(b,c,d)}});V.extend({speed:function(a,b,d){var c=typeof a==="object"?a:{complete:d||!d&&b||V.isFunction(a)&&a,duration:a,easing:d&&b||b&&!V.isFunction(b)&&b};c.duration=V.fx.off?0:typeof c.duration==="number"?c.duration:V.fx.speeds[c.duration]||V.fx.speeds._default;c.old=c.complete;c.complete=function(){if(c.queue!==false){V(this).dequeue()}if(V.isFunction(c.old)){c.old.call(this)}};return c},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return((-Math.cos(a*Math.PI)/2)+0.5)*d+c}},timers:[],fx:function(c,b,a){this.options=b;
this.elem=c;this.prop=a;if(!b.orig){b.orig={}}}});V.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(V.fx.step[this.prop]||V.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var a=parseFloat(V.css(this.elem,this.prop,b));return a&&a>-10000?a:parseFloat(V.curCSS(this.elem,this.prop))||0},custom:function(c,b,a){this.startTime=aa();this.start=c;this.end=b;this.unit=a||this.unit||"px";this.now=this.start;this.pos=this.state=0;var d=this;function e(f){return d.step(f)}e.elem=this.elem;if(e()&&V.timers.push(e)&&!U){U=setInterval(function(){var g=V.timers;for(var f=0;f<g.length;f++){if(!g[f]()){g.splice(f--,1)}}if(!g.length){clearInterval(U);U=ac}},13)}},show:function(){this.options.orig[this.prop]=V.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());
V(this.elem).show()},hide:function(){this.options.orig[this.prop]=V.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var a=aa();if(c||a>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var e=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){e=false}}if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(V.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){V(this.elem).hide()}if(this.options.hide||this.options.show){for(var d in this.options.curAnim){V.attr(this.elem.style,d,this.options.orig[d])}}this.options.complete.call(this.elem)}return false}else{var b=a-this.startTime;this.state=b/this.options.duration;this.pos=V.easing[this.options.easing||(V.easing.swing?"swing":"linear")](this.state,b,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);
this.update()}return true}};V.extend(V.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){V.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){V.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return V.offset.bodyOffset(this[0])}var c=this[0].getBoundingClientRect(),f=this[0].ownerDocument,b=f.body,a=f.documentElement,h=a.clientTop||b.clientTop||0,g=a.clientLeft||b.clientLeft||0,e=c.top+(self.pageYOffset||V.boxModel&&a.scrollTop||b.scrollTop)-h,d=c.left+(self.pageXOffset||V.boxModel&&a.scrollLeft||b.scrollLeft)-g;return{top:e,left:d}}}else{V.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return V.offset.bodyOffset(this[0])}V.offset.initialized||V.offset.initialize();var f=this[0],c=f.offsetParent,b=f,l=f.ownerDocument,j,d=l.documentElement,g=l.body,h=l.defaultView,a=h.getComputedStyle(f,null),k=f.offsetTop,e=f.offsetLeft;
while((f=f.parentNode)&&f!==g&&f!==d){j=h.getComputedStyle(f,null);k-=f.scrollTop,e-=f.scrollLeft;if(f===c){k+=f.offsetTop,e+=f.offsetLeft;if(V.offset.doesNotAddBorder&&!(V.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){k+=parseInt(j.borderTopWidth,10)||0,e+=parseInt(j.borderLeftWidth,10)||0}b=c,c=f.offsetParent}if(V.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseInt(j.borderTopWidth,10)||0,e+=parseInt(j.borderLeftWidth,10)||0}a=j}if(a.position==="relative"||a.position==="static"){k+=g.offsetTop,e+=g.offsetLeft}if(a.position==="fixed"){k+=Math.max(d.scrollTop,g.scrollTop),e+=Math.max(d.scrollLeft,g.scrollLeft)}return{top:k,left:e}}}V.offset={initialize:function(){if(this.initialized){return}var h=document.body,b=document.createElement("div"),d,c,k,e,j,a,f=h.style.marginTop,g='<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>';
j={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(a in j){b.style[a]=j[a]}b.innerHTML=g;h.insertBefore(b,h.firstChild);d=b.firstChild,c=d.firstChild,e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(c.offsetTop!==5);this.doesAddBorderForTableAndCells=(e.offsetTop===5);d.style.overflow="hidden",d.style.position="relative";this.subtractsBorderForOverflowNotVisible=(c.offsetTop===-5);h.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(h.offsetTop===0);h.style.marginTop=f;h.removeChild(b);this.initialized=true},bodyOffset:function(b){V.offset.initialized||V.offset.initialize();var a=b.offsetTop,c=b.offsetLeft;if(V.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(V.curCSS(b,"marginTop",true),10)||0,c+=parseInt(V.curCSS(b,"marginLeft",true),10)||0}return{top:a,left:c}}};V.fn.extend({position:function(){var d=0,c=0,f;if(this[0]){var a=this.offsetParent(),e=this.offset(),b=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();e.top-=Q(this,"marginTop");
e.left-=Q(this,"marginLeft");b.top+=Q(a,"borderTopWidth");b.left+=Q(a,"borderLeftWidth");f={top:e.top-b.top,left:e.left-b.left}}return f},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&V.css(a,"position")=="static")){a=a.offsetParent}return V(a)}});V.each(["Left","Top"],function(c,b){var a="scroll"+b;V.fn[a]=function(d){if(!this[0]){return null}return d!==ac?this.each(function(){this==S||this==document?S.scrollTo(!c?d:V(S).scrollLeft(),c?d:V(S).scrollTop()):this[a]=d}):this[0]==S||this[0]==document?self[c?"pageYOffset":"pageXOffset"]||V.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});V.each(["Height","Width"],function(d,a){var e=d?"Left":"Top",c=d?"Right":"Bottom",f=a.toLowerCase();V.fn["inner"+a]=function(){return this[0]?V.css(this[0],f,false,"padding"):null};V.fn["outer"+a]=function(g){return this[0]?V.css(this[0],f,false,g?"margin":"border"):null};var b=a.toLowerCase();V.fn[b]=function(g){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+a]||document.body["client"+a]:this[0]==document?Math.max(document.documentElement["client"+a],document.body["scroll"+a],document.documentElement["scroll"+a],document.body["offset"+a],document.documentElement["offset"+a]):g===ac?(this.length?V.css(this[0],b):null):this.css(b,typeof g==="string"?g:g+"px")
}})})();jQuery.ui||(function(c){var h=c.fn.remove,a=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(m,n,k){var l=c.ui[m].prototype;for(var o in k){l.plugins[o]=l.plugins[o]||[];l.plugins[o].push([n,k[o]])}},call:function(n,l,m){var k=n.plugins[l];if(!k||!n.element[0].parentNode){return}for(var o=0;o<k.length;o++){if(n.options[k[o][0]]){k[o][1].apply(n.element,m)}}}},contains:function(k,l){return document.compareDocumentPosition?k.compareDocumentPosition(l)&16:k!==l&&k.contains(l)},hasScroll:function(k,l){if(c(k).css("overflow")=="hidden"){return false}var m=(l&&l=="left")?"scrollLeft":"scrollTop",n=false;if(k[m]>0){return true}k[m]=1;n=(k[m]>0);k[m]=0;return n},isOverAxis:function(l,m,k){return(l>m)&&(l<(m+k))},isOver:function(l,k,m,p,n,o){return c.ui.isOverAxis(l,m,n)&&c.ui.isOverAxis(k,p,o)},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,d=c.fn.removeAttr,g="http://www.w3.org/2005/07/aaa",e=/^aria-/,j=/^wairole:/;c.attr=function(m,l,n){var k=n!==undefined;return(l=="role"?(k?b.call(this,m,l,"wairole:"+n):(b.apply(this,arguments)||"").replace(j,"")):(e.test(l)?(k?m.setAttributeNS(g,l.replace(e,"aaa:"),n):b.call(this,m,l.replace(e,"aaa:"))):b.apply(this,arguments)))};c.fn.removeAttr=function(k){return(e.test(k)?this.each(function(){this.removeAttributeNS(g,k.replace(e,""))}):d.call(this,k))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return h.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 k;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){k=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))
}).eq(0)}else{k=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"))||!k.length?c(document):k}});c.extend(c.expr[":"],{data:function(l,m,k){return !!c.data(l,k[3])},focusable:function(m){var k=m.nodeName.toLowerCase(),l=c.attr(m,"tabindex");return(/input|select|textarea|button|object/.test(k)?!m.disabled:"a"==k||"area"==k?m.href||!isNaN(l):!isNaN(l))&&!c(m)["area"==k?"parents":"closest"](":hidden").length},tabbable:function(l){var k=c.attr(l,"tabindex");return(isNaN(k)||k>=0)&&c(l).is(":focusable")}});function f(k,o,l,m){function n(r){var q=c[k][o][r]||[];return(typeof q=="string"?q.split(/,?\s+/):q)}var p=n("getter");if(m.length==1&&typeof m[0]=="string"){p=p.concat(n("getterSetter"))}return(c.inArray(l,p)!=-1)}c.widget=function(l,m){var k=l.split(".")[0];l=l.split(".")[1];c.fn[l]=function(q){var o=(typeof q=="string"),n=Array.prototype.slice.call(arguments,1);if(o&&q.substring(0,1)=="_"){return this
}if(o&&f(k,l,q,n)){var p=c.data(this[0],l);return(p?p[q].apply(p,n):undefined)}return this.each(function(){var r=c.data(this,l);(!r&&!o&&c.data(this,l,new c[k][l](this,q))._init());(r&&o&&c.isFunction(r[q])&&r[q].apply(r,n))})};c[k]=c[k]||{};c[k][l]=function(o,p){var n=this;this.namespace=k;this.widgetName=l;this.widgetEventPrefix=c[k][l].eventPrefix||l;this.widgetBaseClass=k+"-"+l;this.options=c.extend({},c.widget.defaults,c[k][l].defaults,c.metadata&&c.metadata.get(o)[l],p);this.element=c(o).bind("setData."+l,function(s,r,q){if(s.target==o){return n._setData(r,q)}}).bind("getData."+l,function(r,q){if(r.target==o){return n._getData(q)}}).bind("remove",function(){return n.destroy()})};c[k][l].prototype=c.extend({},c.widget.prototype,m);c[k][l].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(l,k){var n=l,m=this;if(typeof l=="string"){if(k===undefined){return this._getData(l)
}n={};n[l]=k}c.each(n,function(p,o){m._setData(p,o)})},_getData:function(k){return this.options[k]},_setData:function(l,k){this.options[l]=k;if(l=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(m,q,n){var l=this.options[m],p=(m==this.widgetEventPrefix?m:this.widgetEventPrefix+m);q=c.Event(q);q.type=p;if(q.originalEvent){for(var o=c.event.props.length,k;o;){k=c.event.props[--o];q[k]=q.originalEvent[k]}}this.element.trigger(q,n);return !(c.isFunction(l)&&l.call(this.element[0],q,n)===false||q.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var k=this;this.element.bind("mousedown."+this.widgetName,function(l){return k._mouseDown(l)}).bind("click."+this.widgetName,function(l){if(k._preventClickEvent){k._preventClickEvent=false;l.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(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var m=this,k=(l.which==1),n=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!k||n||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){m.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(o){return m._mouseMove(o)};this._mouseUpDelegate=function(o){return m._mouseUp(o)
};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(k){if(c.browser.msie&&!k.button){return this._mouseUp(k)}if(this._mouseStarted){this._mouseDrag(k);return k.preventDefault()}if(this._mouseDistanceMet(k)&&this._mouseDelayMet(k)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,k)!==false);(this._mouseStarted?this._mouseDrag(k):this._mouseUp(k))}return !this._mouseStarted},_mouseUp:function(k){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(k.target==this._mouseDownEvent.target);this._mouseStop(k)}return false},_mouseDistanceMet:function(k){return(Math.max(Math.abs(this._mouseDownEvent.pageX-k.pageX),Math.abs(this._mouseDownEvent.pageY-k.pageY))>=this.options.distance)
},_mouseDelayMet:function(k){return this.mouseDelayMet},_mouseStart:function(k){},_mouseDrag:function(k){},_mouseStop:function(k){},_mouseCapture:function(k){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){var a={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},c="ui-dialog ui-widget ui-widget-content ui-corner-all ";b.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var m=this,d=this.options,f=d.title||this.originalTitle||"&nbsp;",j=b.ui.dialog.getTitleId(this.element),l=(this.uiDialog=b("<div/>")).appendTo(document.body).hide().addClass(c+d.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(o){(d.closeOnEscape&&o.keyCode&&o.keyCode==b.ui.keyCode.ESCAPE&&m.close(o))
}).attr({role:"dialog","aria-labelledby":j}).mousedown(function(o){m.moveToTop(false,o)}),k=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(l),g=(this.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(l),h=b('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).mousedown(function(o){o.stopPropagation()}).click(function(o){m.close(o);return false}).appendTo(g),n=(this.uiDialogTitlebarCloseText=b("<span/>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(h),e=b("<span/>").addClass("ui-dialog-title").attr("id",j).html(f).prependTo(g);g.find("*").add(g).disableSelection();(d.draggable&&b.fn.draggable&&this._makeDraggable());(d.resizable&&b.fn.resizable&&this._makeResizable());
this._createButtons(d.buttons);this._isOpen=false;(d.bgiframe&&b.fn.bgiframe&&l.bgiframe());(d.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(d){var e=this;if(false===e._trigger("beforeclose",d)){return}(e.overlay&&e.overlay.destroy());e.uiDialog.unbind("keypress.ui-dialog");(e.options.hide?e.uiDialog.hide(e.options.hide,function(){e._trigger("close",d)}):e.uiDialog.hide()&&e._trigger("close",d));b.ui.dialog.overlay.resize();e._isOpen=false;if(e.options.modal){var f=0;b(".ui-dialog").each(function(){if(this!=e.uiDialog[0]){f=Math.max(f,b(this).css("z-index"))}});b.ui.dialog.maxZ=f}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)
}if(this.options.zIndex>b.ui.dialog.maxZ){b.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=++b.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++b.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new b.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=b.ui.keyCode.TAB){return}var f=b(":tabbable",this),g=f.filter(":first")[0],j=f.filter(":last")[0];if(h.target==j&&!h.shiftKey){setTimeout(function(){g.focus()},1)}else{if(h.target==g&&h.shiftKey){setTimeout(function(){j.focus()},1)}}}));b([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();
this._trigger("open");this._isOpen=true},_createButtons:function(e){var f=this,g=false,d=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof e=="object"&&e!==null&&b.each(e,function(){return !(g=true)}));if(g){b.each(e,function(j,h){b('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(j).click(function(){h.apply(f.element[0],arguments)}).hover(function(){b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){b(this).addClass("ui-state-focus")}).blur(function(){b(this).removeClass("ui-state-focus")}).appendTo(d)});d.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,e=this.options,f;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){f=e.height;b(this).height(b(this).height()).addClass("ui-dialog-dragging");(e.dragStart&&e.dragStart.apply(d.element[0],arguments))
},drag:function(){(e.drag&&e.drag.apply(d.element[0],arguments))},stop:function(){b(this).removeClass("ui-dialog-dragging").height(f);(e.dragStop&&e.dragStop.apply(d.element[0],arguments));b.ui.dialog.overlay.resize()}})},_makeResizable:function(d){d=(d===undefined?this.options.resizable:d);var f=this,g=this.options,e=typeof d=="string"?d:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:g.maxWidth,maxHeight:g.maxHeight,minWidth:g.minWidth,minHeight:g.minHeight,start:function(){b(this).addClass("ui-dialog-resizing");(g.resizeStart&&g.resizeStart.apply(f.element[0],arguments))},resize:function(){(g.resize&&g.resize.apply(f.element[0],arguments))},handles:e,stop:function(){b(this).removeClass("ui-dialog-resizing");g.height=b(this).height();g.width=b(this).width();(g.resizeStop&&g.resizeStop.apply(f.element[0],arguments));b.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(g){var e=b(window),d=b(document),f=d.scrollTop(),h=d.scrollLeft(),j=f;
if(b.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){h+=g[0]}else{switch(g[0]){case"left":h+=0;break;case"right":h+=e.width()-this.uiDialog.outerWidth();break;default:case"center":h+=(e.width()-this.uiDialog.outerWidth())/2}}if(g[1].constructor==Number){f+=g[1]}else{switch(g[1]){case"top":f+=0;break;case"bottom":f+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":f+=(e.height()-this.uiDialog.outerHeight())/2}}f=Math.max(f,j);this.uiDialog.css({top:f,left:h})},_setData:function(f,e){(a[f]&&this.uiDialog.data(a[f],e));switch(f){case"buttons":this._createButtons(e);break;case"closeText":this.uiDialogTitlebarCloseText.text(e);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(c+e);break;case"draggable":(e?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(e);break;case"position":this._position(e);
break;case"resizable":var g=this.uiDialog,d=this.uiDialog.is(":data(resizable)");(d&&!e&&g.resizable("destroy"));(d&&typeof e=="string"&&g.resizable("option","handles",e));(d||this._makeResizable(e));break;case"title":b(".ui-dialog-title",this.uiDialogTitlebar).html(e||"&nbsp;");break;case"width":this.uiDialog.width(e);break}b.widget.prototype._setData.apply(this,arguments)},_size:function(){var d=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var e=this.uiDialog.css({height:"auto",width:d.width}).height();this.element.css({minHeight:Math.max(d.minHeight-e,0),height:d.height=="auto"?"auto":Math.max(d.height-e,0)})}});b.extend(b.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:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)
},overlay:function(d){this.$el=b.ui.dialog.overlay.create(d)}});b.extend(b.ui.dialog.overlay,{instances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(b.ui.dialog.overlay.instances.length){b(document).bind(b.ui.dialog.overlay.events,function(g){var f=b(g.target).parents(".ui-dialog").css("zIndex")||0;return(f>b.ui.dialog.overlay.maxZ)})}},1);b(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==b.ui.keyCode.ESCAPE&&e.close(f))});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var d=b("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&b.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(b.inArray(this.instances,d),1);if(this.instances.length===0){b([document,window]).unbind(".dialog-overlay")
}d.remove();var e=0;b.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(b.browser.msie&&b.browser.version<7){var d=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var e=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(d<e){return b(window).height()+"px"}else{return d+"px"}}else{return b(document).height()+"px"}},width:function(){if(b.browser.msie&&b.browser.version<7){var e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(e<d){return b(window).width()+"px"}else{return e+"px"}}else{return b(document).width()+"px"}},resize:function(){var d=b([]);b.each(b.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)
}})})(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(c){var b=this.options;if(this.helper||b.disabled||a(c.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(c);if(!this.handle){return false}return true},_mouseStart:function(c){var b=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();
this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;if(b.cursorAt){this._adjustOffsetFromHelper(b.cursorAt)}if(b.containment){this._setContainment()}this._trigger("start",c);this._cacheHelperProportions();if(a.ui.ddmanager&&!b.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(d,b){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!b){var c=this._uiHash();this._trigger("drag",d,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"
}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,d)}return false},_mouseStop:function(b){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,b)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var c=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b);c._clear()})}else{this._trigger("stop",b);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(d){var b=this.options;var c=a.isFunction(b.helper)?a(b.helper.apply(this.element[0],[d])):(b.helper=="clone"?this.element.clone():this.element);if(!c.parents("body").length){c.appendTo((b.appendTo=="parent"?this.element[0].parentNode:b.appendTo))
}if(c[0]!=this.element[0]&&!(/(fixed|absolute)/).test(c.css("position"))){c.css("position","absolute")}return c},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent"){c.containment=this.helper[0].parentNode}if(c.containment=="document"||c.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!(/^(document|window|parent)$/).test(c.containment)&&c.containment.constructor!=Array){var d=a(c.containment)[0];if(!d){return}var e=a(c.containment).offset();var b=(a(d).css("overflow")!="hidden");this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(c.containment.constructor==Array){this.containment=c.containment}}},_convertPositionTo:function(f,e){if(!e){e=this.position}var h=f=="absolute"?1:-1;var c=this.options,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=(/(html|body)/i).test(g[0].tagName);
return{top:(e.top+this.offset.relative.top*h+this.offset.parent.top*h-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(b?0:g.scrollTop()))*h)),left:(e.left+this.offset.relative.left*h+this.offset.parent.left*h-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:g.scrollLeft())*h))}},_generatePosition:function(g){var f=this.options,j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=(/(html|body)/i).test(j[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=g.pageX;var e=g.pageY;if(this.originalPosition){if(this.containment){if(g.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(g.pageY-this.offset.click.top<this.containment[1]){e=this.containment[1]+this.offset.click.top
}if(g.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(g.pageY-this.offset.click.top>this.containment[3]){e=this.containment[3]+this.offset.click.top}}if(f.grid){var c=this.originalPageY+Math.round((e-this.originalPageY)/f.grid[1])*f.grid[1];e=this.containment?(!(c-this.offset.click.top<this.containment[1]||c-this.offset.click.top>this.containment[3])?c:(!(c-this.offset.click.top<this.containment[1])?c-f.grid[1]:c+f.grid[1])):c;var b=this.originalPageX+Math.round((d-this.originalPageX)/f.grid[0])*f.grid[0];d=this.containment?(!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:(!(b-this.offset.click.left<this.containment[0])?b-f.grid[0]:b+f.grid[0])):b}}return{top:(e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:j.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:j.scrollLeft())))}
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,d,b){b=b||this._uiHash();a.ui.plugin.call(this,c,[d,b]);if(c=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,c,d,b)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.7.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}});
a.ui.plugin.add("draggable","connectToSortable",{start:function(e,d){var c=a(this).data("draggable"),f=c.options,b=a.extend({},d,{item:c.element});c.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",e,b)}})},stop:function(e,d){var c=a(this).data("draggable"),b=a.extend({},d,{item:c.element});a.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;if(c.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",e,b)}})},drag:function(e,d){var b=a(this).data("draggable"),f=this;var c=function(j){var p=this.offset.click.top,n=this.offset.click.left;
var h=this.positionAbs.top,m=this.positionAbs.left;var k=j.height,q=j.width;var g=j.top,l=j.left;return a.ui.isOver(h+p,m+n,g,l,k,q)};a.each(b.sortables,function(g){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,true,true);this.instance.offset.click.top=b.offset.click.top;this.instance.offset.click.left=b.offset.click.left;this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top;b._trigger("toSortable",e);
b.dropped=this.instance.element;b.currentItem=b.element;this.instance.fromOutside=b}if(this.instance.currentItem){this.instance._mouseDrag(e)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}b._trigger("fromSortable",e);b.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(d,c){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor")}b.css("cursor",e.cursor)},stop:function(d,c){var b=a(this).data("draggable").options;if(b._cursor){a("body").css("cursor",b._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(d,c){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")
})},stop:function(c,b){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(d,c){var b=a(c.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(d,c){var b=a(this).data("draggable").options;if(b._opacity){a(c.helper).css("opacity",b._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,b){var d=a(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){d.overflowOffset=d.scrollParent.offset()}},drag:function(e,d){var f=a(this).data("draggable"),c=f.options,b=false;if(f.scrollParent[0]!=document&&f.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x"){if((f.overflowOffset.top+f.scrollParent[0].offsetHeight)-e.pageY<c.scrollSensitivity){f.scrollParent[0].scrollTop=b=f.scrollParent[0].scrollTop+c.scrollSpeed}else{if(e.pageY-f.overflowOffset.top<c.scrollSensitivity){f.scrollParent[0].scrollTop=b=f.scrollParent[0].scrollTop-c.scrollSpeed
}}}if(!c.axis||c.axis!="y"){if((f.overflowOffset.left+f.scrollParent[0].offsetWidth)-e.pageX<c.scrollSensitivity){f.scrollParent[0].scrollLeft=b=f.scrollParent[0].scrollLeft+c.scrollSpeed}else{if(e.pageX-f.overflowOffset.left<c.scrollSensitivity){f.scrollParent[0].scrollLeft=b=f.scrollParent[0].scrollLeft-c.scrollSpeed}}}}else{if(!c.axis||c.axis!="x"){if(e.pageY-a(document).scrollTop()<c.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-c.scrollSpeed)}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<c.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+c.scrollSpeed)}}}if(!c.axis||c.axis!="y"){if(e.pageX-a(document).scrollLeft()<c.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-c.scrollSpeed)}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<c.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+c.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(f,e)}}});a.ui.plugin.add("draggable","snap",{start:function(d,c){var e=a(this).data("draggable"),b=e.options;
e.snapElements=[];a(b.snap.constructor!=String?(b.snap.items||":data(draggable)"):b.snap).each(function(){var g=a(this);var f=g.offset();if(this!=e.element[0]){e.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(e,m){var A=a(this).data("draggable"),q=A.options;var w=q.snapTolerance;var s=m.offset.left,x=s+A.helperProportions.width,u=m.offset.top,y=u+A.helperProportions.height;for(var n=A.snapElements.length-1;n>=0;n--){var p=A.snapElements[n].left,g=p+A.snapElements[n].width,j=A.snapElements[n].top,v=j+A.snapElements[n].height;if(!((p-w<s&&s<g+w&&j-w<u&&u<v+w)||(p-w<s&&s<g+w&&j-w<y&&y<v+w)||(p-w<x&&x<g+w&&j-w<u&&u<v+w)||(p-w<x&&x<g+w&&j-w<y&&y<v+w))){if(A.snapElements[n].snapping){(A.options.snap.release&&A.options.snap.release.call(A.element,e,a.extend(A._uiHash(),{snapItem:A.snapElements[n].item})))}A.snapElements[n].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(j-y)<=w;var k=Math.abs(v-u)<=w;var f=Math.abs(p-x)<=w;var z=Math.abs(g-s)<=w;
if(c){m.position.top=A._convertPositionTo("relative",{top:j-A.helperProportions.height,left:0}).top-A.margins.top}if(k){m.position.top=A._convertPositionTo("relative",{top:v,left:0}).top-A.margins.top}if(f){m.position.left=A._convertPositionTo("relative",{top:0,left:p-A.helperProportions.width}).left-A.margins.left}if(z){m.position.left=A._convertPositionTo("relative",{top:0,left:g}).left-A.margins.left}}var h=(c||k||f||z);if(q.snapMode!="outer"){var c=Math.abs(j-u)<=w;var k=Math.abs(v-y)<=w;var f=Math.abs(p-s)<=w;var z=Math.abs(g-x)<=w;if(c){m.position.top=A._convertPositionTo("relative",{top:j,left:0}).top-A.margins.top}if(k){m.position.top=A._convertPositionTo("relative",{top:v-A.helperProportions.height,left:0}).top-A.margins.top}if(f){m.position.left=A._convertPositionTo("relative",{top:0,left:p}).left-A.margins.left}if(z){m.position.left=A._convertPositionTo("relative",{top:0,left:g-A.helperProportions.width}).left-A.margins.left}}if(!A.snapElements[n].snapping&&(c||k||f||z||h)){(A.options.snap.snap&&A.options.snap.snap.call(A.element,e,a.extend(A._uiHash(),{snapItem:A.snapElements[n].item})))
}A.snapElements[n].snapping=(c||k||f||z||h)}}});a.ui.plugin.add("draggable","stack",{start:function(d,c){var b=a(this).data("draggable").options;var e=a.makeArray(a(b.stack.group)).sort(function(f,g){return(parseInt(a(f).css("zIndex"),10)||b.stack.min)-(parseInt(a(g).css("zIndex"),10)||b.stack.min)});a(e).each(function(f){this.style.zIndex=b.stack.min+f});this[0].style.zIndex=b.stack.min+e.length}});a.ui.plugin.add("draggable","zIndex",{start:function(d,c){var b=a(c.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex")}b.css("zIndex",e.zIndex)},stop:function(d,c){var b=a(this).data("draggable").options;if(b._zIndex){a(c.helper).css("zIndex",b._zIndex)}}})})(jQuery);(function(a){a.widget("ui.resizable",a.extend({},a.ui.mouse,{_init:function(){var h=this,e=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!(e.aspectRatio),aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null});
if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&a.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));
this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=e.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var d=this.handles.split(",");this.handles={};for(var f=0;f<d.length;f++){var k=a.trim(d[f]),g="ui-resizable-"+k;var j=a('<div class="ui-resizable-handle '+g+'"></div>');if(/sw|se|ne|nw/.test(k)){j.css({zIndex:++e.zIndex})}if("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 o in this.handles){if(this.handles[o].constructor==String){this.handles[o]=a(this.handles[o],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var p=a(this.handles[o],this.element),l=0;
l=/sw|ne|nw|se|n|s/.test(o)?p.outerHeight():p.outerWidth();var m=["padding",/ne|nw|n/.test(o)?"Top":/se|sw|s/.test(o)?"Bottom":/^e$/.test(o)?"Right":"Left"].join("");n.css(m,l);this._proportionallyResize()}if(!a(this.handles[o]).length){continue}}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!h.resizing){if(this.className){var l=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}h.axis=l&&l[1]?l[1]:"se"}});if(e.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");h._handles.show()},function(){if(!h.resizing){a(this).addClass("ui-resizable-autohide");h._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){a(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);
var e=this.element;e.parent().append(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(d){var f=false;for(var e in this.handles){if(a(this.handles[e])[0]==d.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(h){var e=this.options,k=this.element.position(),f=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(f.is(".ui-draggable")||(/absolute/).test(f.css("position"))){f.css({position:"absolute",top:k.top,left:k.left})}if(a.browser.opera&&(/relative/).test(f.css("position"))){f.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var j=c(this.helper.css("left")),g=c(this.helper.css("top"));if(e.containment){j+=a(e.containment).scrollLeft()||0;g+=a(e.containment).scrollTop()||0}this.offset=this.helper.offset();
this.position={left:j,top:g};this.size=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()};this.originalMousePosition={left:h.pageX,top:h.pageY};this.aspectRatio=(typeof e.aspectRatio=="number")?e.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var d=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",d=="auto"?this.axis+"-resize":d);f.addClass("ui-resizable-resizing");this._propagate("start",h);return true},_mouseDrag:function(r){var k=this.helper,f=this.options,e={},q=this,g=this.originalMousePosition,h=this.axis;var n=(r.pageX-g.left)||0,p=(r.pageY-g.top)||0;var d=this._change[h];if(!d){return false}var j=d.apply(this,[r,n,p]),m=a.browser.msie&&a.browser.version<7,l=this.sizeDiff;if(this._aspectRatio||r.shiftKey){j=this._updateRatio(j,r)
}j=this._respectSize(j,r);this._propagate("resize",r);k.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(j);this._trigger("resize",r,this.ui());return false},_mouseStop:function(h){this.resizing=false;var g=this.options,n=this;if(this._helper){var l=this._proportionallyResizeElements,j=l.length&&(/textarea/i).test(l[0].nodeName),e=j&&a.ui.hasScroll(l[0],"left")?0:n.sizeDiff.height,k=j?0:n.sizeDiff.width;var m={width:(n.size.width-k),height:(n.size.height-e)},f=(parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left))||null,d=(parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top))||null;if(!g.animate){this.element.css(a.extend(m,{top:d,left:f}))}n.helper.height(n.size.height);n.helper.width(n.size.width);if(this._helper&&!g.animate){this._proportionallyResize()}}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",h);if(this._helper){this.helper.remove()}return false},_updateCache:function(e){var d=this.options;this.offset=this.helper.offset();if(b(e.left)){this.position.left=e.left}if(b(e.top)){this.position.top=e.top}if(b(e.height)){this.size.height=e.height}if(b(e.width)){this.size.width=e.width}},_updateRatio:function(j,g){var e=this.options,h=this.position,d=this.size,f=this.axis;if(j.height){j.width=(d.height*this.aspectRatio)}else{if(j.width){j.height=(d.width/this.aspectRatio)}}if(f=="sw"){j.left=h.left+(d.width-j.width);j.top=null}if(f=="nw"){j.top=h.top+(d.height-j.height);j.left=h.left+(d.width-j.width)}return j},_respectSize:function(g,e){var h=this.helper,d=this.options,p=this._aspectRatio||e.shiftKey,f=this.axis,s=b(g.width)&&d.maxWidth&&(d.maxWidth<g.width),n=b(g.height)&&d.maxHeight&&(d.maxHeight<g.height),j=b(g.width)&&d.minWidth&&(d.minWidth>g.width),m=b(g.height)&&d.minHeight&&(d.minHeight>g.height);if(j){g.width=d.minWidth}if(m){g.height=d.minHeight}if(s){g.width=d.maxWidth}if(n){g.height=d.maxHeight
}var k=this.originalPosition.left+this.originalSize.width,q=this.position.top+this.size.height;var l=/sw|nw|w/.test(f),t=/nw|ne|n/.test(f);if(j&&l){g.left=k-d.minWidth}if(s&&l){g.left=k-d.maxWidth}if(m&&t){g.top=q-d.minHeight}if(n&&t){g.top=q-d.maxHeight}var r=!g.width&&!g.height;if(r&&!g.left&&g.top){g.top=null}else{if(r&&!g.top&&g.left){g.left=null}}return g},_proportionallyResize:function(){var e=this.options;if(!this._proportionallyResizeElements.length){return}var h=this.helper||this.element;for(var f=0;f<this._proportionallyResizeElements.length;f++){var j=this._proportionallyResizeElements[f];if(!this.borderDif){var g=[j.css("borderTopWidth"),j.css("borderRightWidth"),j.css("borderBottomWidth"),j.css("borderLeftWidth")],d=[j.css("paddingTop"),j.css("paddingRight"),j.css("paddingBottom"),j.css("paddingLeft")];this.borderDif=a.map(g,function(l,n){var m=parseInt(l,10)||0,k=parseInt(d[n],10)||0;return m+k})}if(a.browser.msie&&!(!(a(h).is(":hidden")||a(h).parents(":hidden").length))){continue}j.css({height:(h.height()-this.borderDif[0]-this.borderDif[2])||0,width:(h.width()-this.borderDif[1]-this.borderDif[3])||0})
}},_renderProxy:function(){var f=this.element,e=this.options;this.elementOffset=f.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var h=a.browser.msie&&a.browser.version<7,d=(h?1:0),g=(h?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(d,f,e){return{width:this.originalSize.width+f}},w:function(f,j,g){var e=this.options,h=this.originalSize,d=this.originalPosition;return{left:d.left+j,width:h.width-j}},n:function(f,j,g){var e=this.options,h=this.originalSize,d=this.originalPosition;return{top:d.top+g,height:h.height-g}},s:function(d,f,e){return{height:this.originalSize.height+e}},se:function(d,f,e){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[d,f,e]))},sw:function(d,f,e){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[d,f,e]))
},ne:function(d,f,e){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[d,f,e]))},nw:function(d,f,e){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[d,f,e]))}},_propagate:function(d,e){a.ui.plugin.call(this,d,[e,this.ui()]);(d!="resize"&&this._trigger(d,e,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));a.extend(a.ui.resizable,{version:"1.7.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:1000}});a.ui.plugin.add("resizable","alsoResize",{start:function(f,e){var g=a(this).data("resizable"),d=g.options;_store=function(h){a(h).each(function(){a(this).data("resizable-alsoresize",{width:parseInt(a(this).width(),10),height:parseInt(a(this).height(),10),left:parseInt(a(this).css("left"),10),top:parseInt(a(this).css("top"),10)})
})};if(typeof(d.alsoResize)=="object"&&!d.alsoResize.parentNode){if(d.alsoResize.length){d.alsoResize=d.alsoResize[0];_store(d.alsoResize)}else{a.each(d.alsoResize,function(h,j){_store(h)})}}else{_store(d.alsoResize)}},resize:function(f,j){var l=a(this).data("resizable"),e=l.options,k=l.originalSize,h=l.originalPosition;var d={height:(l.size.height-k.height)||0,width:(l.size.width-k.width)||0,top:(l.position.top-h.top)||0,left:(l.position.left-h.left)||0},g=function(m,n){a(m).each(function(){var p=a(this),q=a(this).data("resizable-alsoresize"),r={},o=n&&n.length?n:["width","height","top","left"];a.each(o||["width","height","top","left"],function(s,u){var t=(q[u]||0)+(d[u]||0);if(t&&t>=0){r[u]=t||null}});if(/relative/.test(p.css("position"))&&a.browser.opera){l._revertToRelativePosition=true;p.css({position:"absolute",top:"auto",left:"auto"})}p.css(r)})};if(typeof(e.alsoResize)=="object"&&!e.alsoResize.nodeType){a.each(e.alsoResize,function(m,n){g(m,n)})}else{g(e.alsoResize)}},stop:function(e,d){var f=a(this).data("resizable");
if(f._revertToRelativePosition&&a.browser.opera){f._revertToRelativePosition=false;el.css({position:"relative"})}a(this).removeData("resizable-alsoresize-start")}});a.ui.plugin.add("resizable","animate",{stop:function(h,l){var p=a(this).data("resizable"),g=p.options;var m=p._proportionallyResizeElements,j=m.length&&(/textarea/i).test(m[0].nodeName),e=j&&a.ui.hasScroll(m[0],"left")?0:p.sizeDiff.height,k=j?0:p.sizeDiff.width;var n={width:(p.size.width-k),height:(p.size.height-e)},f=(parseInt(p.element.css("left"),10)+(p.position.left-p.originalPosition.left))||null,d=(parseInt(p.element.css("top"),10)+(p.position.top-p.originalPosition.top))||null;p.element.animate(a.extend(n,d&&f?{top:d,left:f}:{}),{duration:g.animateDuration,easing:g.animateEasing,step:function(){var o={width:parseInt(p.element.css("width"),10),height:parseInt(p.element.css("height"),10),top:parseInt(p.element.css("top"),10),left:parseInt(p.element.css("left"),10)};if(m&&m.length){a(m[0]).css({width:o.width,height:o.height})}p._updateCache(o);
p._propagate("resize",h)}})}});a.ui.plugin.add("resizable","containment",{start:function(g,m){var t=a(this).data("resizable"),f=t.options,j=t.element;var s=f.containment,r=(s instanceof a)?s.get(0):(/parent/.test(s))?j.parent().get(0):s;if(!r){return}t.containerElement=a(r);if(/document/.test(s)||s==document){t.containerOffset={left:0,top:0};t.containerPosition={left:0,top:0};t.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var e=a(r),n=[];a(["Top","Right","Left","Bottom"]).each(function(p,o){n[p]=c(e.css("padding"+o))});t.containerOffset=e.offset();t.containerPosition=e.position();t.containerSize={height:(e.innerHeight()-n[3]),width:(e.innerWidth()-n[1])};var l=t.containerOffset,q=t.containerSize.height,h=t.containerSize.width,d=(a.ui.hasScroll(r,"left")?r.scrollWidth:h),k=(a.ui.hasScroll(r)?r.scrollHeight:q);t.parentData={element:r,left:l.left,top:l.top,width:d,height:k}}},resize:function(h,m){var s=a(this).data("resizable"),g=s.options,d=s.containerSize,l=s.containerOffset,r=s.size,n=s.position,q=s._aspectRatio||h.shiftKey,t={top:0,left:0},f=s.containerElement;
if(f[0]!=document&&(/static/).test(f.css("position"))){t=l}if(n.left<(s._helper?l.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-l.left):(s.position.left-t.left));if(q){s.size.height=s.size.width/g.aspectRatio}s.position.left=g.helper?l.left:0}if(n.top<(s._helper?l.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-l.top):s.position.top);if(q){s.size.width=s.size.height*g.aspectRatio}s.position.top=s._helper?l.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-t.left:(s.offset.left-t.left))+s.sizeDiff.width),e=Math.abs((s._helper?s.offset.top-t.top:(s.offset.top-l.top))+s.sizeDiff.height);var p=s.containerElement.get(0)==s.element.parent().get(0),j=/relative|absolute/.test(s.containerElement.css("position"));if(p&&j){k-=s.parentData.left}if(k+s.size.width>=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(e+s.size.height>=s.parentData.height){s.size.height=s.parentData.height-e;
if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(j,l){var p=a(this).data("resizable"),g=p.options,m=p.position,k=p.containerOffset,n=p.containerPosition,f=p.containerElement;var e=a(p.helper),d=e.offset(),q=e.outerWidth()-p.sizeDiff.width,r=e.outerHeight()-p.sizeDiff.height;if(p._helper&&!g.animate&&(/relative/).test(f.css("position"))){a(this).css({left:d.left-n.left-k.left,width:q,height:r})}if(p._helper&&!g.animate&&(/static/).test(f.css("position"))){a(this).css({left:d.left-n.left-k.left,width:q,height:r})}}});a.ui.plugin.add("resizable","ghost",{start:function(f,e){var g=a(this).data("resizable"),d=g.options,h=g.size;g.ghost=g.originalElement.clone();g.ghost.css({opacity:0.25,display:"block",position:"relative",height:h.height,width:h.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof d.ghost=="string"?d.ghost:"");g.ghost.appendTo(g.helper)},resize:function(f,e){var g=a(this).data("resizable"),d=g.options;if(g.ghost){g.ghost.css({position:"relative",height:g.size.height,width:g.size.width})
}},stop:function(f,e){var g=a(this).data("resizable"),d=g.options;if(g.ghost&&g.helper){g.helper.get(0).removeChild(g.ghost.get(0))}}});a.ui.plugin.add("resizable","grid",{resize:function(f,j){var p=a(this).data("resizable"),e=p.options,n=p.size,l=p.originalSize,h=p.originalPosition,g=p.axis,k=e._aspectRatio||f.shiftKey;e.grid=typeof e.grid=="number"?[e.grid,e.grid]:e.grid;var d=Math.round((n.width-l.width)/(e.grid[0]||1))*(e.grid[0]||1),m=Math.round((n.height-l.height)/(e.grid[1]||1))*(e.grid[1]||1);if(/^(se|s|e)$/.test(g)){p.size.width=l.width+d;p.size.height=l.height+m}else{if(/^(ne)$/.test(g)){p.size.width=l.width+d;p.size.height=l.height+m;p.position.top=h.top-m}else{if(/^(sw)$/.test(g)){p.size.width=l.width+d;p.size.height=l.height+m;p.position.left=h.left-d}else{p.size.width=l.width+d;p.size.height=l.height+m;p.position.top=h.top-m;p.position.left=h.left-d}}}}});var c=function(d){return parseInt(d,10)||0};var b=function(d){return !isNaN(parseInt(d,10))}})(jQuery);(function(c){c.fn.media=function(m,n,l){return this.each(function(){if(typeof m=="function"){l=n;
n=m;m={}}var s=h(this,m);if(typeof n=="function"){n(this,s)}var p=j();var u=p.exec(s.src.toLowerCase())||[""];s.type?u[0]=s.type:u.shift();for(var t=0;t<u.length;t++){fn=u[t].toLowerCase();if(g(fn[0])){fn="fn"+fn}if(!c.fn.media[fn]){continue}var v=c.fn.media[fn+"_player"];if(!s.params){s.params={}}if(v){var w=v.autoplayAttr=="autostart";s.params[v.autoplayAttr||"autoplay"]=w?(s.autoplay?1:0):s.autoplay?true:false}var q=c.fn.media[fn](this,s);q.css("backgroundColor",s.bgColor).width(s.width);if(typeof l=="function"){l(this,q[0],s,v.name)}break}})};c.fn.media.mapFormat=function(m,l){if(!m||!l||!c.fn.media.defaults.players[l]){return}m=m.toLowerCase();if(g(m[0])){m="fn"+m}c.fn.media[m]=c.fn.media[l];c.fn.media[m+"_player"]=c.fn.media.defaults.players[l]};c.fn.media.defaults={width:400,height:400,autoplay:0,bgColor:"#ffffff",params:{wmode:"transparent"},attrs:{},flvKeyName:"file",flashvars:{},flashVersion:"7",expressInstaller:null,flvPlayer:"mediaplayer.swf",mp3Player:"mediaplayer.swf",silverlight:{inplaceInstallPrompt:"true",isWindowless:"true",framerate:"24",version:"0.9",onError:null,onLoad:null,initParams:null,userContext:null}};
c.fn.media.defaults.players={flash:{name:"flash",types:"flv,mp3,swf",oAttrs:{classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",type:"application/x-oleobject",codebase:"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+c.fn.media.defaults.flashVersion},eAttrs:{type:"application/x-shockwave-flash",pluginspage:"http://www.adobe.com/go/getflashplayer"}},quicktime:{name:"quicktime",types:"aif,aiff,aac,au,bmp,gsm,mov,mid,midi,mpg,mpeg,mp4,m4a,psd,qt,qtif,qif,qti,snd,tif,tiff,wav,3g2,3gp",oAttrs:{classid:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",codebase:"http://www.apple.com/qtactivex/qtplugin.cab"},eAttrs:{pluginspage:"http://www.apple.com/quicktime/download/"}},realplayer:{name:"real",types:"ra,ram,rm,rpm,rv,smi,smil",autoplayAttr:"autostart",oAttrs:{classid:"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"},eAttrs:{type:"audio/x-pn-realaudio-plugin",pluginspage:"http://www.real.com/player/"}},winmedia:{name:"winmedia",types:"asx,asf,avi,wma,wmv",autoplayAttr:"autostart",oUrl:"url",oAttrs:{classid:"clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6",type:"application/x-oleobject"},eAttrs:{type:c.browser.mozilla&&d()?"application/x-ms-wmp":"application/x-mplayer2",pluginspage:"http://www.microsoft.com/Windows/MediaPlayer/"}},iframe:{name:"iframe",types:"html,pdf"},silverlight:{name:"silverlight",types:"xaml"}};
function d(){var l=navigator.plugins;for(i=0;i<l.length;i++){var m=l[i];if(m.filename=="np-mswmp.dll"){return true}}return false}var f=1;for(var e in c.fn.media.defaults.players){var b=c.fn.media.defaults.players[e].types;c.each(b.split(","),function(m,l){if(g(l[0])){l="fn"+l}c.fn.media[l]=c.fn.media[e]=k(e);c.fn.media[l+"_player"]=c.fn.media.defaults.players[e]})}function j(){var m="";for(var l in c.fn.media.defaults.players){if(m.length){m+=","}m+=c.fn.media.defaults.players[l].types}return new RegExp("\\.("+m.replace(/,/g,"|")+")($|&|\\?)")}function k(l){return function(m,n){return a(m,n,l)}}function g(l){return"0123456789".indexOf(l)>-1}function h(r,l){l=l||{};var m=c(r);var n=r.className||"";var u=c.metadata?m.metadata():c.meta?m.data():{};u=u||{};var x=u.width||parseInt(((n.match(/w:(\d+)/)||[])[1]||0));var y=u.height||parseInt(((n.match(/h:(\d+)/)||[])[1]||0));if(x){u.width=x}if(y){u.height=y}if(n){u.cls=n}var o=c.fn.media.defaults;var q=l;var v=u;var t={params:{bgColor:l.bgColor||c.fn.media.defaults.bgColor}};
var s=c.extend({},o,q,v);c.each(["attrs","params","flashvars","silverlight"],function(w,p){s[p]=c.extend({},t[p]||{},o[p]||{},q[p]||{},v[p]||{})});if(typeof s.caption=="undefined"){s.caption=m.text()}s.src=s.src||m.attr("href")||m.attr("src")||"unknown";return s}c.fn.media.swf=function(o,u){if(!window.SWFObject&&!window.swfobject){if(u.flashvars){var n=[];for(var q in u.flashvars){n.push(q+"="+u.flashvars[q])}if(!u.params){u.params={}}u.params.flashvars=n.join("&")}return a(o,u,"flash")}var l=o.id?(' id="'+o.id+'"'):"";var m=u.cls?(' class="'+u.cls+'"'):"";var s=c("<div"+l+m+">");if(window.swfobject){c(o).after(s).appendTo(s);if(!o.id){o.id="movie_player_"+f++}swfobject.embedSWF(u.src,o.id,u.width,u.height,u.flashVersion,u.expressInstaller,u.flashvars,u.params,u.attrs)}else{c(o).after(s).remove();var t=new SWFObject(u.src,"movie_player_"+f++,u.width,u.height,u.flashVersion,u.bgColor);if(u.expressInstaller){t.useExpressInstall(u.expressInstaller)}for(var r in u.params){if(r!="bgColor"){t.addParam(r,u.params[r])
}}for(var q in u.flashvars){t.addVariable(q,u.flashvars[q])}t.write(s[0])}if(u.caption){c("<div>").appendTo(s).html(u.caption)}return s};c.fn.media.flv=c.fn.media.mp3=function(n,l){var q=l.src;var p=/\.mp3\b/i.test(q)?(l.mp3Player||c.fn.media.defaults.mp3Player):(l.flvPlayer||c.fn.media.defaults.flvPlayer);var m=l.flvKeyName;q=encodeURIComponent(q);l.src=p;l.src=l.src+"?"+m+"="+(q);var o={};o[m]=q;l.flashvars=c.extend({},o,l.flashvars);return c.fn.media.swf(n,l)};c.fn.media.xaml=function(p,s){if(!window.Sys||!window.Sys.Silverlight){if(c.fn.media.xaml.warning){return}c.fn.media.xaml.warning=1;alert("You must include the Silverlight.js script.");return}var n={width:s.width,height:s.height,background:s.bgColor,inplaceInstallPrompt:s.silverlight.inplaceInstallPrompt,isWindowless:s.silverlight.isWindowless,framerate:s.silverlight.framerate,version:s.silverlight.version};var o={onError:s.silverlight.onError,onLoad:s.silverlight.onLoad};var q=p.id?(' id="'+p.id+'"'):"";var l=s.id||"AG"+f++;var m=s.cls?(' class="'+s.cls+'"'):"";
var r=c("<div"+q+m+">");c(p).after(r).remove();Sys.Silverlight.createObjectEx({source:s.src,initParams:s.silverlight.initParams,userContext:s.silverlight.userContext,id:l,parentElement:r[0],properties:n,events:o});if(s.caption){c("<div>").appendTo(r).html(s.caption)}return r};function a(u,A,w){var s=c(u);var r=c.fn.media.defaults.players[w];if(w=="iframe"){var r=c('<iframe width="'+A.width+'" height="'+A.height+'" >');r.attr("src",A.src);r.css("backgroundColor",r.bgColor)}else{if(c.browser.msie){var t=['<object width="'+A.width+'" height="'+A.height+'" '];for(var n in A.attrs){t.push(n+'="'+A.attrs[n]+'" ')}for(var n in r.oAttrs||{}){var z=r.oAttrs[n];if(n=="codebase"&&window.location.protocol=="https:"){z=z.replace("http","https")}t.push(n+'="'+z+'" ')}t.push("></object>");var x=['<param name="'+(r.oUrl||"src")+'" value="'+A.src+'">'];for(var n in A.params){x.push('<param name="'+n+'" value="'+A.params[n]+'">')}var r=document.createElement(t.join(""));for(var l=0;l<x.length;l++){r.appendChild(document.createElement(x[l]))
}}else{var t=['<embed width="'+A.width+'" height="'+A.height+'" style="display:block"'];if(A.src){t.push(' src="'+A.src+'" ')}for(var n in A.attrs){t.push(n+'="'+A.attrs[n]+'" ')}for(var n in r.eAttrs||{}){t.push(n+'="'+r.eAttrs[n]+'" ')}for(var n in A.params){if(n=="wmode"&&w!="flash"){continue}t.push(n+'="'+A.params[n]+'" ')}t.push("></embed>")}}var m=u.id?(' id="'+u.id+'"'):"";var q=A.cls?(' class="'+A.cls+'"'):"";var y=c("<div"+m+q+">");s.after(y).remove();(c.browser.msie||w=="iframe")?y.append(r):y.html(t.join(""));if(A.caption){c("<div>").appendTo(y).html(A.caption)}return y}})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);
if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(a){a.fn.newsTicker=a.fn.newsticker=function(b){b=b||4000;initTicker=function(c){stopTicker(c);c.items=a("li",c);c.items.not(":eq(0)").hide().end();c.currentitem=0;startTicker(c)};startTicker=function(c){c.tickfn=setInterval(function(){this.doTick(c)},b)};stopTicker=function(c){clearInterval(c.tickfn)};pauseTicker=function(c){c.pause=true};resumeTicker=function(c){c.pause=false};doTick=function(c){if(c.pause){return}c.pause=true;a(c.items[c.currentitem]).fadeOut("fast",function(){a(this).hide();c.currentitem=++c.currentitem%(c.items.size());
a(c.items[c.currentitem]).fadeIn("fast",function(){c.pause=false})})};this.each(function(){if(this.nodeName.toLowerCase()!="ul"){return}initTicker(this)}).addClass("newsticker").hover(function(){pauseTicker(this)},function(){resumeTicker(this)});return this}})(jQuery);(function(a){a.fn.newsScroller=function(b,d,c){b=b||1<<30;d=d||5000;c=c||250;initScroller=function(e){stopScroller(e);e.items=a(">*",e);e.items.show();if(e.items.length<=b){return}startScroller(e)};startScroller=function(e){e.scrollitemfn=setInterval(function(){this.doScrollItem(e)},d)};stopScroller=function(e){clearInterval(e.scrollitemfn)};pauseScroller=function(e){e.pause=true};resumeScroller=function(e){e.pause=false};doScrollItem=function(f){if(f.pause||f.pauseAnim||f.items.length<=b){return}f.pauseAnim=true;f.items=a(f.items.selector,f.items.context);var e=a(f.items[0]);var g=e.clone(true);e.animate({marginTop:-e.height()+"px"},c,function(){e.remove();a(f.items.context).append(g);f.pauseAnim=false})};this.each(function(){initScroller(this);
a(this).hover(function(){pauseScroller(this)},function(){resumeScroller(this)})});return this}})(jQuery);