/*jquery 1.4*/
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.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\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);

/*ui core*/
jQuery.ui||(function(B){var G=B.fn.remove,F=B.browser.mozilla&&(parseFloat(B.browser.version)<1.9);B.ui={version:"1.7",plugin:{add:function($,C,_){var A=B.ui[$].prototype;for(var D in _){A.plugins[D]=A.plugins[D]||[];A.plugins[D].push([C,_[D]])}},call:function(B,A,_){var $=B.plugins[A];if(!$||!B.element[0].parentNode)return;for(var C=0;C<$.length;C++)if(B.options[$[C][0]])$[C][1].apply(B.element,_)}},contains:function(_,$){return document.compareDocumentPosition?_.compareDocumentPosition($)&16:_!==$&&_.contains($)},hasScroll:function($,A){if(B($).css("overflow")=="hidden")return false;var _=(A&&A=="left")?"scrollLeft":"scrollTop",C=false;if($[_]>0)return true;$[_]=1;C=($[_]>0);$[_]=0;return C},isOverAxis:function(A,$,_){return(A>$)&&(A<($+_))},isOver:function(C,E,D,A,$,_){return B.ui.isOverAxis(C,D,$)&&B.ui.isOverAxis(E,A,_)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(F){var E=B.attr,_=B.fn.removeAttr,C="http://www.w3.org/2005/07/aaa",D=/^aria-/,$=/^wairole:/;B.attr=function(_,B,F){var A=F!==undefined;return(B=="role"?(A?E.call(this,_,B,"wairole:"+F):(E.apply(this,arguments)||"").replace($,"")):(D.test(B)?(A?_.setAttributeNS(C,B.replace(D,"aaa:"),F):E.call(this,_,B.replace(D,"aaa:"))):E.apply(this,arguments)))};B.fn.removeAttr=function($){return(D.test($)?this.each(function(){this.removeAttributeNS(C,$.replace(D,""))}):_.call(this,$))}}B.fn.extend({remove:function(){B("*",this).add(this).each(function(){B(this).triggerHandler("remove")});return G.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var $;if((B.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position")))$=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(B.curCSS(this,"position",1))&&(/(auto|scroll)/).test(B.curCSS(this,"overflow",1)+B.curCSS(this,"overflow-y",1)+B.curCSS(this,"overflow-x",1))}).eq(0);else $=this.parents().filter(function(){return(/(auto|scroll)/).test(B.curCSS(this,"overflow",1)+B.curCSS(this,"overflow-y",1)+B.curCSS(this,"overflow-x",1))}).eq(0);return(/fixed/).test(this.css("position"))||!$.length?B(document):$}});B.extend(B.expr[":"],{data:function($,A,_){return!!B.data($,_[3])},focusable:function($){var A=$.nodeName.toLowerCase(),_=B.attr($,"tabindex");return(/input|select|textarea|button|object/.test(A)?!$.disabled:"a"==A||"area"==A?$.href||!isNaN(_):!isNaN(_))&&!B($)["area"==A?"parents":"closest"](":hidden").length},tabbable:function($){var _=B.attr($,"tabindex");return(isNaN(_)||_>=0)&&B($).is(":focusable")}});function A(E,D,C,A){function $(_){var $=B[E][D][_]||[];return(typeof $=="string"?$.split(/,?\s+/):$)}var _=$("getter");if(A.length==1&&typeof A[0]=="string")_=_.concat($("getterSetter"));return(B.inArray(C,_)!=-1)}B.widget=function($,_){var C=$.split(".")[0];$=$.split(".")[1];B.fn[$]=function(F){var D=(typeof F=="string"),_=Array.prototype.slice.call(arguments,1);if(D&&F.substring(0,1)=="_")return this;if(D&&A(C,$,F,_)){var E=B.data(this[0],$);return(E?E[F].apply(E,_):undefined)}return this.each(function(){var A=B.data(this,$);(!A&&!D&&B.data(this,$,new B[C][$](this,F))._init());(A&&D&&B.isFunction(A[F])&&A[F].apply(A,_))})};B[C]=B[C]||{};B[C][$]=function(_,D){var A=this;this.namespace=C;this.widgetName=$;this.widgetEventPrefix=B[C][$].eventPrefix||$;this.widgetBaseClass=C+"-"+$;this.options=B.extend({},B.widget.defaults,B[C][$].defaults,B.metadata&&B.metadata.get(_)[$],D);this.element=B(_).bind("setData."+$,function($,C,B){if($.target==_)return A._setData(C,B)}).bind("getData."+$,function($,B){if($.target==_)return A._getData(B)}).bind("remove",function(){return A.destroy()})};B[C][$].prototype=B.extend({},B.widget.prototype,_);B[C][$].getterSetter="option"};B.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled"+" "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(A,$){var C=A,_=this;if(typeof A=="string"){if($===undefined)return this._getData(A);C={};C[A]=$}B.each(C,function(A,$){_._setData(A,$)})},_getData:function($){return this.options[$]},_setData:function(_,$){this.options[_]=$;if(_=="disabled")this.element[$?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+this.namespace+"-state-disabled").attr("aria-disabled",$)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(E,$,C){var A=this.options[E],D=(E==this.widgetEventPrefix?E:this.widgetEventPrefix+E);$=B.Event($);$.type=D;if($.originalEvent)for(var F=B.event.props.length,_;F;){_=B.event.props[--F];$[_]=$.originalEvent[_]}this.element.trigger($,C);return!(B.isFunction(A)&&A.call(this.element[0],$,C)===false||$.isDefaultPrevented())}};B.widget.defaults={disabled:false};B.ui.mouse={_mouseInit:function(){var $=this;this.element.bind("mousedown."+this.widgetName,function(_){return $._mouseDown(_)}).bind("click."+this.widgetName,function(_){if($._preventClickEvent){$._preventClickEvent=false;_.stopImmediatePropagation();return false}});if(B.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(B.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(_){_.originalEvent=_.originalEvent||{};if(_.originalEvent.mouseHandled)return;(this._mouseStarted&&this._mouseUp(_));this._mouseDownEvent=_;var A=this,C=(_.which==1),$=(typeof this.options.cancel=="string"?B(_.target).parents().add(_.target).filter(this.options.cancel).length:false);if(!C||$||!this._mouseCapture(_))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){A.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(_)&&this._mouseDelayMet(_)){this._mouseStarted=(this._mouseStart(_)!==false);if(!this._mouseStarted){_.preventDefault();return true}}this._mouseMoveDelegate=function($){return A._mouseMove($)};this._mouseUpDelegate=function($){return A._mouseUp($)};B(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(B.browser.safari||_.preventDefault());_.originalEvent.mouseHandled=true;return true},_mouseMove:function($){if(B.browser.msie&&!$.button)return this._mouseUp($);if(this._mouseStarted){this._mouseDrag($);return $.preventDefault()}if(this._mouseDistanceMet($)&&this._mouseDelayMet($)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,$)!==false);(this._mouseStarted?this._mouseDrag($):this._mouseUp($))}return!this._mouseStarted},_mouseUp:function($){B(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=($.target==this._mouseDownEvent.target);this._mouseStop($)}return false},_mouseDistanceMet:function($){return(Math.max(Math.abs(this._mouseDownEvent.pageX-$.pageX),Math.abs(this._mouseDownEvent.pageY-$.pageY))>=this.options.distance)},_mouseDelayMet:function($){return this.mouseDelayMet},_mouseStart:function($){},_mouseDrag:function($){},_mouseStop:function($){},_mouseCapture:function($){return true}};B.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery)
/*webform*/
;(function($){function getCheckedCount(a){var b=0;$('input[name="'+a+'"]').each(function(){try{if($(this).attr('checked')){b++}}catch(e){alert(a)}});return b}function isNumber(a){return(/^-?\d*\.?\d+(e-?\d+)?$/).test(a)}var g={typeMismatch:false,rangeUnderflow:false,rangeOverflow:false,stepMismatch:false,tooLong:false,tooShort:false,equalto:false,patternMismatch:false,valueMissing:false,customError:false,valid:true};var h={typeMismatch:function(a){var b=$(a).attr('wftype');switch(b){case'date':return'请按"年-月-日"的格式填写';case'email':return'输入格式必须为E-mail.';case'number':return'必须输入数字.';case'url':return'必须输入合法的URL.'}},rangeUnderflow:function(a){return'数值不能小于 '+$(a).attr('min')+'.'},rangeOverflow:function(a){return'数值不能大于 '+$(a).attr('max')+'.'},stepMismatch:'递增值不符.',tooLong:function(a){return'字符串长度不能大于 '+$(a).attr('maxlength')+' 字节.'},tooShort:function(a){return'字符串长度不能小于 '+$(a).attr('minlength')+' 字节.'},patternMismatch:function(a){var b=$(a).attr('title');return(b?b:'格式不符')},equalto:function(a){return'两次输入不相同'},valueMissing:'黄色框是必填项目.',customError:function(a){return getWebForms(a).customErrorMessage}};var i={typeMismatch:function(a){var b=a.attr('wftype');var c=a.val();if(c!==''){switch(b){case'email':temail=a.attr('email');if(!temail){temail=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i}return temail.test(c);case'date':tdate=a.attr('date');if(!tdate){tdate=/^(^(\d{4})(\-|\/|\.)\d{1,2}(\-|\/|\.)\d{1,2}$)/i}return tdate.test(c);case'number':case'range':return isNumber(c);case'url':turl=a.attr('url');if(!turl){turl=/(http[s]?|ftp|rtsp|mms):\/\/[^\/\.]+?[\..+\w]/i}return turl.test(c)}}return true},rangeUnderflow:function(a){var b=a.attr('min');if((b!=='')&&isNumber(b)){var c=a.val();if(isNumber(c)){return(Number(b)<=Number(c))}}return true},rangeOverflow:function(a){var b=a.attr('max');if((b!=='')&&isNumber(b)){var c=a.val();if(isNumber(c)){return(Number(b)>=Number(c))}}return true},stepMismatch:function(a){var b=a.attr('step');if(!isNumber(b)){b=1}var c=a.attr('min');if((c==='')||!isNumber(c)){c=a.attr('max')}if((c!=='')&&isNumber(c)){var d=a.val();if(isNumber(d)){return(parseInt((d-c)/b,10)==((d-c)/b))}}return true},tooLong:function(a){var b=a.attr('maxlength');if(b&&(b>0)){return(b>=a.val().length)}return true},equalto:function(a){try{if(a.attr('refer')){var b=$('input[id="'+a.attr('refer')+'"]');var c=a.val();var d=0;if(b.length>0)d=b.length-1;if(c){return(b.get(d).value==c)}}}catch(e){return true}return true},tooShort:function(a){var b=a.attr('minlength');if(b&&(b>0)){return(b<=a.val().length)}return true},patternMismatch:function(a){var b=a.attr('pattern');var c=a.val();if((b||(b===0))&&(c!=='')){var d=new RegExp('^(?:'+b+')$');if(!d.test(c)){return false}}return true},valueMissing:function(a){if(a.attr('required')){switch(a.attr('type')){case'checkbox':case'radio':var b=getCheckedCount(a.attr('name'));if(a.attr('type')=='checkbox'){return(b>=1)}else{return(b==1)}break;default:if($.trim(a.val())===''){return false}break}}return true}};var j=''+':input'+':not(:disabled):not([readonly])'+':not([type="hidden"]):not(:button):not(:reset):not(:submit)';function initializeWebForms(a){var b={willValidate:$(a).willValidate(),validity:$.extend({},g),customErrorMessage:''};$.data(a,'webForms',b);return b}function getWebForms(a){var b=$.data(a,'webForms');if(b===undefined){b=initializeWebForms(a)}return b}function validate(a,b){var c=$(a);b.validity.valid=!b.validity.customError;$.each(i,function(e,f){b.validity.valid=!(b.validity[e]=!(f(c)))&&b.validity.valid})}function getValidationMessage(a,b){var c=$.extend({},b.validity);delete c.valid;var d='';$.each(c,function(e,v){if(v){if(typeof h[e]=='string'){d+=h[e]+"\n"}else if($.isFunction(h[e])){d+=h[e](a)+"\n"}}});return $.trim(d)}$.extend({webForms:{beforeValidate:function(a){},errorHandler:function(a){},validHandler:function(a){},validationMessages:function(a){$.extend(h,a)}},isDefaultSubmit:function(a){return a===$(a.form).find(':submit:first')[0]},isIndeterminate:function(a){return a.type=='radio'&&getCheckedCount(a.name)===0}});$.extend($.expr[':'],{indeterminate:'jQuery.isIndeterminate(a)','default':'jQuery.isDefaultSubmit(a) || a.defaultChecked || a.defaultSelected',valid:'jQuery(a).validity().valid',invalid:'!jQuery(a).validity().valid','in-range':'!jQuery(a).validity().typeMismatch '+'&& !jQuery(a).validity().rangeUnderflow '+'&& !jQuery(a).validity().rangeOverflow','out-of-range':'jQuery(a).validity().rangeUnderflow '+'|| jQuery(a).validity().rangeOverflow',required:'jQuery(a).attr("required")',optional:'/input|textarea/i.test(a.nodeName) '+'&& !/hidden|image|reset|submit|button/i.test(a.type) '+'&& !jQuery(a).attr("required")','read-only':'jQuery(a).is("[readonly]")','read-write':'!jQuery(a).is("[readonly]")'});$.fn.extend({willValidate:function(){return this.is(j)},validity:function(){if(this.length){return getWebForms(this[0]).validity}},setCustomValidity:function(b){b=b||'';var c=!!b;return this.each(function(){var a=getWebForms(this);a.customErrorMessage=b;a.validity.valid=!(a.validity.customError=c);for(e in i){a.validity.valid=a.validity.valid&&!a.validity[e]}$.data(this,'webForms',a)})},checkValidity:function(){if(this.length){var a=this[0];$.webForms.beforeValidate(a);if($(a).is('form')){var b=true;$(j,a).each(function(){b=$(this).checkValidity()&&b});return b}else{var c=getWebForms(a);if(!c)return true;if(c.willValidate){validate(a,c);if(c.validity.valid){return $.webForms.validHandler(a)}else{if($(a).triggerHandler('invalid')!==false){$.webForms.errorHandler(a)}}return c.validity.valid}}}},validationMessage:function(){var a='';if(this.length){var b=getWebForms(this[0]);if(!b.validity.valid){a=getValidationMessage(this[0],b)}}return a}});$(document).ready(function(){var d;function processData(a){var b=$(a);if(b.attr('xmlns')!='http://www.w3.org/1999/xhtml'){return}if(b.attr('wftype')!='incremental'){d.empty()}var c=d.val();b.children('option').each(function(){d.append(this)});d.val(c)}$('select[data]').each(function(){d=$(this);var a=d.attr('data');a=/^data:/.test(a)?unescape(a.substring(a.indexOf(',')+1)):$.ajax({url:a,async:false}).responseText;processData(a)})});$.webforms=$.webForms})(jQuery);
$.extend($.webForms,{beforeValidate:function(elem){var tipsobj=$(elem).parent().parent().find('.forminstant');if(!$(elem).attr('tips')&&!tipsobj.hasClass('formerror')&&!tipsobj.hasClass('formright')){$(elem).attr('tips',tipsobj.html())}},errorHandler:function(elem){$(elem).addClass('error');if($(elem).val()=='')return true;var tipsobj=$(elem).parent().parent().find('.forminstant');if(tipsobj.length){tipsobj.addClass('formerror').html('<div class="check-error"></div><h1>'+$(elem).validationMessage()+'</h1>')}tipsobj.removeClass('formright');if($(elem).parents().find('.ajaxerror').length){$($(elem).parents().find('.ajaxerror').get(0)).html($(elem).validationMessage()).fadeIn('fast')}},validHandler:function(elem){var tipsobj=$(elem).parent().parent().find('.forminstant');if($(elem).attr('href')){if($(elem).attr('type')=='text'&&$(elem).attr('oldvalue')==$(elem).val()){if($(elem).attr('valid')=='true')return true;else return false};if($(elem).val()=='')return true;$.get($(elem).attr('href'),elem.name+"="+elem.value,function(data){json=JsonAction(data);$(elem).attr('oldvalue',$(elem).val());if($(elem).parent().parent().find('.forminstant').length)$(elem).parent().parent().find('.forminstant').html('<h1>'+json.data+'</h1>');else if($(elem).parents().find('.ajaxerror').length)$($(elem).parents().find('.ajaxerror').get(0)).html('<h1>'+json.data+'</h1>').fadeIn('fast');if(json.status){$(elem).attr('valid','true');tipsobj.removeClass('formerror').addClass('formright')}else{$(elem).attr('valid','false');tipsobj.removeClass('formright').addClass('formerror')}});if($(elem).attr('valid')=='true')return true;else return false}else{$(elem).removeClass('error');$(elem).attr('valid','true');tipsobj.removeClass('formerror').addClass('formright');return true}}});function initFormValidation(elem){$("form[valid]",$(elem)).bind('submit',function(){var formvalid=$(this).checkValidity();if(formvalid)$(this).attr('valid','true');return formvalid});$(':input[type!="submit"][type!="button"]',$(elem)).focus(function(){$(this).addClass('inputFocus')});$(':input[type!="submit"][type!="button"]',$(elem)).blur(function(){$(this).removeClass('inputFocus')});$('input[valid],textarea[valid]',$(elem)).focus(function(){var tipsobj=$(this).parent().parent().find('.forminstant');if($(this).attr('tips')&&$(this).val()==''){tipsobj.removeClass('formerror').removeClass('formright').html($(this).attr('tips'))}});$('input[valid],textarea[valid]',$(elem)).blur(function(){if($(this).attr('type')=='text'&&$(this).attr('oldvalue')==$(this).val()){if($(this).attr('valid')=='true')return true};var re=$(this).checkValidity();if(re)$(this).attr('valid','true');if($(this).val()!='')$(this).attr('oldvalue',$(this).val());if($(this).find("input[valid][valid!='true'],textarea[valid][valid!='true']").length==0)$("form[valid]",$(elem)).attr('valid','true');return re})}
/*ui corner*/
;(function($){$.fn.corner=function(E){var A=$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function L(_,A){return parseInt($.css(_,A))||0}function D($){$=parseInt($).toString(16);return($.length<2)?"0"+$:$}function G(A){for(;A&&A.nodeName.toLowerCase()!="html";A=A.parentNode){var _=$.css(A,"backgroundColor");if(_.indexOf("rgb")>=0){if($.browser.safari&&_=="rgba(0, 0, 0, 0)")continue;var B=_.match(/\d+/g);return"#"+D(B[0])+D(B[1])+D(B[2])}if(_&&_!="transparent")return _}return"#ffffff"}function K($){switch(B){case"round":return Math.round(C*(1-Math.cos(Math.asin($/C))));case"cool":return Math.round(C*(1+Math.cos(Math.asin($/C))));case"sharp":return Math.round(C*(1-Math.cos(Math.acos($/C))));case"bite":return Math.round(C*(Math.cos(Math.asin((C-$-1)/C))));case"slide":return Math.round(C*(Math.atan2($,C/$)));case"jut":return Math.round(C*(Math.atan2(C,(C-$-1))));case"curl":return Math.round(C*(Math.atan($)));case"tear":return Math.round(C*(Math.cos($)));case"wicked":return Math.round(C*(Math.tan($)));case"long":return Math.round(C*(Math.sqrt($)));case"sculpt":return Math.round(C*(Math.log((C-$-1),C)));case"dog":return($&1)?($+1):C;case"dog2":return($&2)?($+1):C;case"dog3":return($&3)?($+1):C;case"fray":return($%2)*C;case"notch":return C;case"bevel":return $+1}}E=(E||"").toLowerCase();var N=/keep/.test(E),M=((E.match(/cc:(#[0-9a-f]+)/)||[])[1]),F=((E.match(/sc:(#[0-9a-f]+)/)||[])[1]),C=parseInt((E.match(/(\d+)px/)||[])[1])||10,I=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/,B=((E.match(I)||["round"])[0]),J={T:0,B:1},_={TL:/top|tl/.test(E),TR:/top|tr/.test(E),BL:/bottom|bl/.test(E),BR:/bottom|br/.test(E)};if(!_.TL&&!_.TR&&!_.BL&&!_.BR)_={TL:1,TR:1,BL:1,BR:1};var H=document.createElement("div");H.style.overflow="hidden";H.style.height="1px";H.style.backgroundColor=F||"transparent";H.style.borderStyle="solid";return this.each(function(I){var E={T:parseInt($.css(this,"paddingTop"))||0,R:parseInt($.css(this,"paddingRight"))||0,B:parseInt($.css(this,"paddingBottom"))||0,L:parseInt($.css(this,"paddingLeft"))||0};if($.browser.msie)this.style.zoom=1;if(!N)this.style.border="none";H.style.borderColor=M||G(this.parentNode);var D=$.curCSS(this,"height");for(var R in J){var P=J[R];if((P&&(_.BL||_.BR))||(!P&&(_.TL||_.TR))){H.style.borderStyle="none "+(_[R+"R"]?"solid":"none")+" none "+(_[R+"L"]?"solid":"none");var F=document.createElement("div");$(F).addClass("jquery-corner");var S=F.style;P?this.appendChild(F):this.insertBefore(F,this.firstChild);if(P&&D!="auto"){if($.css(this,"position")=="static")this.style.position="relative";S.position="absolute";S.bottom=S.left=S.padding=S.margin="0";if($.browser.msie&&$.browser.version<=7)S.setExpression("width","this.parentNode.offsetWidth");else S.width="100%"}else if(!P&&$.browser.msie){if($.css(this,"position")=="static")this.style.position="relative";S.position="absolute";S.top=S.left=S.right=S.padding=S.margin="0";var Q=0;if(A||!$.boxModel)Q=L(this,"borderLeftWidth")+L(this,"borderRightWidth");A?S.setExpression("width","this.parentNode.offsetWidth - "+Q+'+ "px"'):S.width="100%"}else S.margin=!P?"-"+E.T+"px -"+E.R+"px "+(E.T-C)+"px -"+E.L+"px":(E.B-C)+"px -"+E.R+"px -"+E.B+"px -"+E.L+"px";for(var T=0;T<C;T++){var B=Math.max(0,K(T)),O=H.cloneNode(false);O.style.borderWidth="0 "+(_[R+"R"]?B:0)+"px 0 "+(_[R+"L"]?B:0)+"px";P?F.appendChild(O):F.insertBefore(O,F.firstChild)}}}})};$.fn.uncorner=function(_){return $(".jquery-corner",this).remove()}})(jQuery)
/*ui tabs*/
;(function($){$.widget("ui.tabs",{_init:function(){this._tabify(true)},destroy:function(){var _=this.options;this.list.unbind(".tabs").removeClass(_.navClass).removeData("tabs");this.$tabs.each(function(){var A=$.data(this,"href.tabs");if(A)this.href=A;var _=$(this).unbind(".tabs");$.each(["href","load","cache"],function(A,$){_.removeData($+".tabs")})});this.$lis.unbind(".tabs").add(this.$panels).each(function(){if($.data(this,"destroy.tabs"))$(this).remove();else $(this).removeClass([_.tabClass,_.selectedClass,_.deselectableClass,_.disabledClass,_.panelClass,_.hideClass].join(" "))});if(_.cookie)this._cookie(null,_.cookie)},_setData:function(_,$){if((/^selected/).test(_))this.select($);else{this.options[_]=$;this._tabify()}},length:function(){return this.$tabs.length},_tabId:function(_){return _.title&&_.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+$.data(_)},_sanitizeSelector:function($){return $.replace(/:/g,"\\:")},_cookie:function(){var _=this.cookie||(this.cookie="ui-tabs-"+$.data(this.list[0]));return $.cookie.apply(null,[_].concat($.makeArray(arguments)))},_tabify:function(D){this.list=this.element.is("div")?this.element.children("ul:first, ol:first").eq(0):this.element;this.$lis=$("li:has(a[href])",this.list);this.$tabs=this.$lis.map(function(){return $("a",this)[0]});this.$panels=$([]);var H=this,E=this.options;this.$tabs.each(function(C,B){if(B.hash&&B.hash.replace("#",""))H.$panels=H.$panels.add(H._sanitizeSelector(B.hash));else if($(B).attr("href")!="#"){$.data(B,"href.tabs",B.href);$.data(B,"load.tabs",B.href);var _=H._tabId(B);B.href="#"+_;var A=$("#"+_);if(!A.length){A=$(E.panelTemplate).attr("id",_).addClass(E.panelClass).insertAfter(H.$panels[C-1]||H.list);A.data("destroy.tabs",true)}H.$panels=H.$panels.add(A)}else E.disabled.push(C+1)});if(D){if(this.element.is("div"))this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass(E.navClass);this.$lis.addClass(E.tabClass);this.$panels.addClass(E.panelClass);if(E.selected===undefined)if(location.hash)this.$tabs.each(function(_,$){if($.hash==location.hash){E.selected=_;return false}});else if(E.cookie){var B=parseInt(H._cookie(),10);if(B&&H.$tabs[B])E.selected=B}else if(H.$lis.filter("."+E.selectedClass).length)E.selected=H.$lis.index(H.$lis.filter("."+E.selectedClass)[0]);E.selected=E.selected===null||E.selected!==undefined?E.selected:0;E.disabled=$.unique(E.disabled.concat($.map(this.$lis.filter("."+E.disabledClass),function($,_){return H.$lis.index($)}))).sort();if($.inArray(E.selected,E.disabled)!=-1)E.disabled.splice($.inArray(E.selected,E.disabled),1);this.$panels.addClass(E.hideClass);this.$lis.removeClass(E.selectedClass);if(E.selected!==null&&this.$tabs.length){this.$panels.eq(E.selected).removeClass(E.hideClass);var _=[E.selectedClass];if(E.deselectable)_.push(E.deselectableClass);this.$lis.eq(E.selected).addClass(_.join(" "));var L=function(){H._trigger("show",null,H.ui(H.$tabs[E.selected],H.$panels[E.selected]))};if($.data(this.$tabs[E.selected],"load.tabs"))this.load(E.selected,L);else L()}var M=function(_,$){if($.is(":not(."+E.disabledClass+")"))$.toggleClass("ui-state-"+_)};this.$lis.bind("mouseover.tabs mouseout.tabs",function(){M("hover",$(this))});this.$tabs.bind("focus.tabs blur.tabs",function(){M("focus",$(this).parents("li:first"))});$(window).bind("unload",function(){H.$lis.add(H.$tabs).unbind(".tabs");H.$lis=H.$tabs=H.$panels=null})}else E.selected=this.$lis.index(this.$lis.filter("."+E.selectedClass)[0]);if(E.cookie)this._cookie(E.selected,E.cookie);for(var J=0,K;K=this.$lis[J];J++)$(K)[$.inArray(J,E.disabled)!=-1&&!$(K).hasClass(E.selectedClass)?"addClass":"removeClass"](E.disabledClass);if(E.cache===false)this.$tabs.removeData("cache.tabs");var F,N;if(E.fx)if(E.fx.constructor==Array){F=E.fx[0];N=E.fx[1]}else F=N=E.fx;function C(A,_){A.css({display:""});if($.browser.msie&&_.opacity)A[0].style.removeAttribute("filter")}var G=N?function(_,$){$.animate(N,N.duration||"normal",function(){$.removeClass(E.hideClass);C($,N);H._trigger("show",null,H.ui(_,$[0]))})}:function(_,$){$.removeClass(E.hideClass);H._trigger("show",null,H.ui(_,$[0]))},A=F?function(A,_,$){_.animate(F,F.duration||"normal",function(){_.addClass(E.hideClass);C(_,F);if($)G(A,$,_)})}:function(A,_,$){_.addClass(E.hideClass);if($)G(A,$)};function I(D,B,C,_){var $=[E.selectedClass];if(E.deselectable)$.push(E.deselectableClass);B.removeClass("ui-state-default").addClass($.join(" ")).siblings().removeClass($.join(" ")).addClass("ui-state-default");A(D,C,_)}this.$tabs.unbind(".tabs").bind(E.event+".tabs",function(){var C=$(this).parents("li:eq(0)"),D=H.$panels.filter(":visible"),_=$(H._sanitizeSelector(this.hash));if((C.hasClass("ui-state-active")&&!E.deselectable)||C.hasClass(E.disabledClass)||$(this).hasClass(E.loadingClass)||H._trigger("select",null,H.ui(this,_[0]))===false){this.blur();return false}E.selected=H.$tabs.index(this);if(E.deselectable)if(C.hasClass("ui-state-active")){H.options.selected=null;C.removeClass([E.selectedClass,E.deselectableClass].join(" ")).addClass("ui-state-default");H.$panels.stop();A(this,D);this.blur();return false}else if(!D.length){H.$panels.stop();var B=this;H.load(H.$tabs.index(this),function(){C.addClass([E.selectedClass,E.deselectableClass].join(" ")).removeClass("ui-state-default");G(B,_)});this.blur();return false}if(E.cookie)H._cookie(E.selected,E.cookie);H.$panels.stop();if(_.length){B=this;H.load(H.$tabs.index(this),D.length?function(){I(B,C,D,_)}:function(){C.addClass(E.selectedClass).removeClass("ui-state-default");G(B,_)})}else throw"jQuery UI Tabs: Mismatching fragment identifier.";if($.browser.msie)this.blur();return false});if(E.event!="click")this.$tabs.bind("click.tabs",function(){return false})},add:function(G,D,A){if(A==undefined)A=this.$tabs.length;var C=this.options,E=$(C.tabTemplate.replace(/#\{href\}/g,G).replace(/#\{label\}/g,D));E.addClass(C.tabClass).data("destroy.tabs",true);var _=G.indexOf("#")==0?G.replace("#",""):this._tabId($("a:first-child",E)[0]),B=$("#"+_);if(!B.length)B=$(C.panelTemplate).attr("id",_).addClass(C.hideClass).data("destroy.tabs",true);B.addClass(C.panelClass);if(A>=this.$lis.length){E.appendTo(this.list);B.appendTo(this.list[0].parentNode)}else{E.insertBefore(this.$lis[A]);B.insertBefore(this.$panels[A])}C.disabled=$.map(C.disabled,function($,_){return $>=A?++$:$});this._tabify();if(this.$tabs.length==1){E.addClass(C.selectedClass);B.removeClass(C.hideClass);var F=$.data(this.$tabs[0],"load.tabs");if(F)this.load(A,F)}this._trigger("add",null,this.ui(this.$tabs[A],this.$panels[A]))},remove:function(_){var B=this.options,C=this.$lis.eq(_).remove(),A=this.$panels.eq(_).remove();if(C.hasClass(B.selectedClass)&&this.$tabs.length>1)this.select(_+(_+1<this.$tabs.length?1:-1));B.disabled=$.map($.grep(B.disabled,function($,A){return $!=_}),function($,A){return $>=_?--$:$});this._tabify();this._trigger("remove",null,this.ui(C.find("a")[0],A[0]))},enable:function(_){var A=this.options;if($.inArray(_,A.disabled)==-1)return;var B=this.$lis.eq(_).removeClass(A.disabledClass);if($.browser.safari){B.css("display","inline-block");setTimeout(function(){B.css("display","block")},0)}A.disabled=$.grep(A.disabled,function($,A){return $!=_});this._trigger("enable",null,this.ui(this.$tabs[_],this.$panels[_]))},disable:function($){var A=this,_=this.options;if($!=_.selected){this.$lis.eq($).addClass(_.disabledClass);_.disabled.push($);_.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[$],this.$panels[$]))}},select:function($){if(typeof $=="string")$=this.$tabs.index(this.$tabs.filter("[href$="+$+"]")[0]);this.$tabs.eq($).trigger(this.options.event+".tabs")},load:function(A,J){var F=this,E=this.options,K=this.$tabs.eq(A),C=K[0],H=J==undefined||J===false,I=K.data("load.tabs");J=J||function(){};if(!I||!H&&$.data(C,"cache.tabs")){J();return}var B=function(B){var A=$(B),_=A.find("*:last");return _.length&&_.is(":not(img)")&&_||A},_=function(){F.$tabs.filter("."+E.loadingClass).removeClass(E.loadingClass).each(function(){if(E.spinner)B(this).parent().html(B(this).data("label.tabs"))});F.xhr=null};if(E.spinner){var G=B(C).html();B(C).wrapInner("<em></em>").find("em").data("label.tabs",G).html(E.spinner)}var D=$.extend({},E.ajaxOptions,{url:I,success:function(D,B){$(F._sanitizeSelector(C.hash)).html(D);_();if(E.cache)$.data(C,"cache.tabs",true);F._trigger("load",null,F.ui(F.$tabs[A],F.$panels[A]));try{E.ajaxOptions.success(D,B)}catch(G){}J()}});if(this.xhr){this.xhr.abort();_()}K.addClass(E.loadingClass);F.xhr=$.ajax(D)},url:function($,_){this.$tabs.eq($).removeData("cache.tabs").data("load.tabs",_)},ui:function(_,$){return{options:this.options,tab:_,panel:$,index:this.$tabs.index(_)}}});$.extend($.ui.tabs,{version:"1.6rc5",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,deselectable:false,deselectableClass:"ui-tabs-deselectable",disabled:[],disabledClass:"ui-state-disabled",event:"click",fx:null,hideClass:"ui-tabs-hide",idPrefix:"ui-tabs-",loadingClass:"ui-tabs-loading",navClass:"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all",tabClass:"ui-state-default ui-corner-top",panelClass:"ui-tabs-panel ui-widget-content ui-corner-bottom",panelTemplate:"<div></div>",selectedClass:"ui-tabs-selected ui-state-active",spinner:"Loading&#8230;",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(C,A){A=A||false;var D=this,_=this.options.selected;function B(){D.rotation=setInterval(function(){_=++_<D.$tabs.length?_:0;D.select(_)},C)}function $($){if(!$||$.clientX)clearInterval(D.rotation)}if(C){B();if(!A)this.$tabs.bind(this.options.event+".tabs",$);else this.$tabs.bind(this.options.event+".tabs",function(){$();_=D.options.selected;B()})}else{$();this.$tabs.unbind(this.options.event+".tabs",$)}}})})(jQuery)
/*ui draggable*/
;(function($){$.widget("ui.draggable",$.extend({},$.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(_){var A=this.options;if(this.helper||A.disabled||$(_.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(_);if(!this.handle)return false;return true},_mouseStart:function(_){var A=this.options;this.helper=this._createHelper(_);this._cacheHelperProportions();if($.ui.ddmanager)$.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};$.extend(this.offset,{click:{left:_.pageX-this.offset.left,top:_.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(_);this.originalPageX=_.pageX;this.originalPageY=_.pageY;if(A.cursorAt)this._adjustOffsetFromHelper(A.cursorAt);if(A.containment)this._setContainment();this._trigger("start",_);this._cacheHelperProportions();if($.ui.ddmanager&&!A.dropBehaviour)$.ui.ddmanager.prepareOffsets(this,_);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(_,true);return true},_mouseDrag:function(B,A){this.position=this._generatePosition(B);this.positionAbs=this._convertPositionTo("absolute");if(!A){var _=this._uiHash();this._trigger("drag",B,_);this.position=_.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($.ui.ddmanager)$.ui.ddmanager.drag(this,B);return false},_mouseStop:function(A){var _=false;if($.ui.ddmanager&&!this.options.dropBehaviour)_=$.ui.ddmanager.drop(this,A);if(this.dropped){_=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!_)||(this.options.revert=="valid"&&_)||this.options.revert===true||($.isFunction(this.options.revert)&&this.options.revert.call(this.element,_))){var B=this;$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){B._trigger("stop",A);B._clear()})}else{this._trigger("stop",A);this._clear()}return false},_getHandle:function(A){var _=!this.options.handle||!$(this.options.handle,this.element).length?true:false;$(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==A.target)_=true});return _},_createHelper:function(A){var B=this.options,_=$.isFunction(B.helper)?$(B.helper.apply(this.element[0],[A])):(B.helper=="clone"?this.element.clone():this.element);if(!_.parents("body").length)_.appendTo((B.appendTo=="parent"?this.element[0].parentNode:B.appendTo));if(_[0]!=this.element[0]&&!(/(fixed|absolute)/).test(_.css("position")))_.css("position","absolute");return _},_adjustOffsetFromHelper:function($){if($.left!=undefined)this.offset.click.left=$.left+this.margins.left;if($.right!=undefined)this.offset.click.left=this.helperProportions.width-$.right+this.margins.left;if($.top!=undefined)this.offset.click.top=$.top+this.margins.top;if($.bottom!=undefined)this.offset.click.top=this.helperProportions.height-$.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var _=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0])){_.left+=this.scrollParent.scrollLeft();_.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&$.browser.msie))_={top:0,left:0};return{top:_.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:_.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var $=this.element.position();return{top:$.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:$.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 B=this.options;if(B.containment=="parent")B.containment=this.helper[0].parentNode;if(B.containment=="document"||B.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,$(B.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,($(B.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!(/^(document|window|parent)$/).test(B.containment)&&B.containment.constructor!=Array){var C=$(B.containment)[0];if(!C)return;var A=$(B.containment).offset(),_=($(C).css("overflow")!="hidden");this.containment=[A.left+(parseInt($(C).css("borderLeftWidth"),10)||0)+(parseInt($(C).css("paddingLeft"),10)||0)-this.margins.left,A.top+(parseInt($(C).css("borderTopWidth"),10)||0)+(parseInt($(C).css("paddingTop"),10)||0)-this.margins.top,A.left+(_?Math.max(C.scrollWidth,C.offsetWidth):C.offsetWidth)-(parseInt($(C).css("borderLeftWidth"),10)||0)-(parseInt($(C).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,A.top+(_?Math.max(C.scrollHeight,C.offsetHeight):C.offsetHeight)-(parseInt($(C).css("borderTopWidth"),10)||0)-(parseInt($(C).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else if(B.containment.constructor==Array)this.containment=B.containment},_convertPositionTo:function(_,E){if(!E)E=this.position;var C=_=="absolute"?1:-1,D=this.options,A=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,B=(/(html|body)/i).test(A[0].tagName);return{top:(E.top+this.offset.relative.top*C+this.offset.parent.top*C-($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(B?0:A.scrollTop()))*C)),left:(E.left+this.offset.relative.left*C+this.offset.parent.left*C-($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():B?0:A.scrollLeft())*C))}},_generatePosition:function(B){var C=this.options,_=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,A=(/(html|body)/i).test(_[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var E=B.pageX,G=B.pageY;if(this.originalPosition){if(this.containment){if(B.pageX-this.offset.click.left<this.containment[0])E=this.containment[0]+this.offset.click.left;if(B.pageY-this.offset.click.top<this.containment[1])G=this.containment[1]+this.offset.click.top;if(B.pageX-this.offset.click.left>this.containment[2])E=this.containment[2]+this.offset.click.left;if(B.pageY-this.offset.click.top>this.containment[3])G=this.containment[3]+this.offset.click.top}if(C.grid){var F=this.originalPageY+Math.round((G-this.originalPageY)/C.grid[1])*C.grid[1];G=this.containment?(!(F-this.offset.click.top<this.containment[1]||F-this.offset.click.top>this.containment[3])?F:(!(F-this.offset.click.top<this.containment[1])?F-C.grid[1]:F+C.grid[1])):F;var D=this.originalPageX+Math.round((E-this.originalPageX)/C.grid[0])*C.grid[0];E=this.containment?(!(D-this.offset.click.left<this.containment[0]||D-this.offset.click.left>this.containment[2])?D:(!(D-this.offset.click.left<this.containment[0])?D-C.grid[0]:D+C.grid[0])):D}}return{top:(G-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(A?0:_.scrollTop())))),left:(E-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():A?0:_.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval)this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(B,A,_){_=_||this._uiHash();$.ui.plugin.call(this,B,[A,_]);if(B=="drag")this.positionAbs=this._convertPositionTo("absolute");return $.widget.prototype._trigger.call(this,B,A,_)},plugins:{},_uiHash:function($){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));$.extend($.ui.draggable,{version:"@VERSION",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}});$.ui.plugin.add("draggable","connectToSortable",{start:function(A,_){var C=$(this).data("draggable"),B=C.options,D=$.extend({},_,{item:C.element});C.sortables=[];$(B.connectToSortable).each(function(){var _=$.data(this,"sortable");if(_&&!_.options.disabled){C.sortables.push({instance:_,shouldRevert:_.options.revert});_._refreshItems();_._trigger("activate",A,D)}})},stop:function(A,_){var B=$(this).data("draggable"),C=$.extend({},_,{item:B.element});$.each(B.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;B.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(A);this.instance.options.helper=this.instance.options._helper;if(B.options.helper=="original")this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",A,C)}})},drag:function(B,_){var D=$(this).data("draggable"),C=this,A=function(C){var _=this.offset.click.top,E=this.offset.click.left,F=this.positionAbs.top,H=this.positionAbs.left,G=C.height,D=C.width,B=C.top,A=C.left;return $.ui.isOver(F+_,H+E,B,A,G,D)};$.each(D.sortables,function(A){this.instance.positionAbs=D.positionAbs;this.instance.helperProportions=D.helperProportions;this.instance.offset.click=D.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=$(C).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return _.helper[0]};B.target=this.instance.currentItem[0];this.instance._mouseCapture(B,true);this.instance._mouseStart(B,true,true);this.instance.offset.click.top=D.offset.click.top;this.instance.offset.click.left=D.offset.click.left;this.instance.offset.parent.left-=D.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=D.offset.parent.top-this.instance.offset.parent.top;D._trigger("toSortable",B);D.dropped=this.instance.element;D.currentItem=D.element;this.instance.fromOutside=D}if(this.instance.currentItem)this.instance._mouseDrag(B)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",B,this.instance._uiHash(this.instance));this.instance._mouseStop(B,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder)this.instance.placeholder.remove();D._trigger("fromSortable",B);D.dropped=false}})}});$.ui.plugin.add("draggable","cursor",{start:function(B,_){var A=$("body"),C=$(this).data("draggable").options;if(A.css("cursor"))C._cursor=A.css("cursor");A.css("cursor",C.cursor)},stop:function(A,_){var B=$(this).data("draggable").options;if(B._cursor)$("body").css("cursor",B._cursor)}});$.ui.plugin.add("draggable","iframeFix",{start:function(A,_){var B=$(this).data("draggable").options;$(B.iframeFix===true?"iframe":B.iframeFix).each(function(){$('<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($(this).offset()).appendTo("body")})},stop:function(A,_){$("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});$.ui.plugin.add("draggable","opacity",{start:function(B,_){var A=$(_.helper),C=$(this).data("draggable").options;if(A.css("opacity"))C._opacity=A.css("opacity");A.css("opacity",C.opacity)},stop:function(A,_){var B=$(this).data("draggable").options;if(B._opacity)$(_.helper).css("opacity",B._opacity)}});$.ui.plugin.add("draggable","scroll",{start:function(A,_){var B=$(this).data("draggable");if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML")B.overflowOffset=B.scrollParent.offset()},drag:function(B,_){var D=$(this).data("draggable"),C=D.options,A=false;if(D.scrollParent[0]!=document&&D.scrollParent[0].tagName!="HTML"){if(!C.axis||C.axis!="x")if((D.overflowOffset.top+D.scrollParent[0].offsetHeight)-B.pageY<C.scrollSensitivity)D.scrollParent[0].scrollTop=A=D.scrollParent[0].scrollTop+C.scrollSpeed;else if(B.pageY-D.overflowOffset.top<C.scrollSensitivity)D.scrollParent[0].scrollTop=A=D.scrollParent[0].scrollTop-C.scrollSpeed;if(!C.axis||C.axis!="y")if((D.overflowOffset.left+D.scrollParent[0].offsetWidth)-B.pageX<C.scrollSensitivity)D.scrollParent[0].scrollLeft=A=D.scrollParent[0].scrollLeft+C.scrollSpeed;else if(B.pageX-D.overflowOffset.left<C.scrollSensitivity)D.scrollParent[0].scrollLeft=A=D.scrollParent[0].scrollLeft-C.scrollSpeed}else{if(!C.axis||C.axis!="x")if(B.pageY-$(document).scrollTop()<C.scrollSensitivity)A=$(document).scrollTop($(document).scrollTop()-C.scrollSpeed);else if($(window).height()-(B.pageY-$(document).scrollTop())<C.scrollSensitivity)A=$(document).scrollTop($(document).scrollTop()+C.scrollSpeed);if(!C.axis||C.axis!="y")if(B.pageX-$(document).scrollLeft()<C.scrollSensitivity)A=$(document).scrollLeft($(document).scrollLeft()-C.scrollSpeed);else if($(window).width()-(B.pageX-$(document).scrollLeft())<C.scrollSensitivity)A=$(document).scrollLeft($(document).scrollLeft()+C.scrollSpeed)}if(A!==false&&$.ui.ddmanager&&!C.dropBehaviour)$.ui.ddmanager.prepareOffsets(D,B)}});$.ui.plugin.add("draggable","snap",{start:function(A,_){var C=$(this).data("draggable"),B=C.options;C.snapElements=[];$(B.snap.constructor!=String?(B.snap.items||":data(draggable)"):B.snap).each(function(){var _=$(this),A=_.offset();if(this!=C.element[0])C.snapElements.push({item:this,width:_.outerWidth(),height:_.outerHeight(),top:A.top,left:A.left})})},drag:function(P,_){var J=$(this).data("draggable"),F=J.options,A=F.snapTolerance,L=_.offset.left,K=L+J.helperProportions.width,E=_.offset.top,G=E+J.helperProportions.height;for(var M=J.snapElements.length-1;M>=0;M--){var H=J.snapElements[M].left,O=H+J.snapElements[M].width,N=J.snapElements[M].top,D=N+J.snapElements[M].height;if(!((H-A<L&&L<O+A&&N-A<E&&E<D+A)||(H-A<L&&L<O+A&&N-A<G&&G<D+A)||(H-A<K&&K<O+A&&N-A<E&&E<D+A)||(H-A<K&&K<O+A&&N-A<G&&G<D+A))){if(J.snapElements[M].snapping)(J.options.snap.release&&J.options.snap.release.call(J.element,P,$.extend(J._uiHash(),{snapItem:J.snapElements[M].item})));J.snapElements[M].snapping=false;continue}if(F.snapMode!="inner"){var C=Math.abs(N-G)<=A,I=Math.abs(D-E)<=A,B=Math.abs(H-K)<=A,Q=Math.abs(O-L)<=A;if(C)_.position.top=J._convertPositionTo("relative",{top:N-J.helperProportions.height,left:0}).top-J.margins.top;if(I)_.position.top=J._convertPositionTo("relative",{top:D,left:0}).top-J.margins.top;if(B)_.position.left=J._convertPositionTo("relative",{top:0,left:H-J.helperProportions.width}).left-J.margins.left;if(Q)_.position.left=J._convertPositionTo("relative",{top:0,left:O}).left-J.margins.left}var R=(C||I||B||Q);if(F.snapMode!="outer"){C=Math.abs(N-E)<=A,I=Math.abs(D-G)<=A,B=Math.abs(H-L)<=A,Q=Math.abs(O-K)<=A;if(C)_.position.top=J._convertPositionTo("relative",{top:N,left:0}).top-J.margins.top;if(I)_.position.top=J._convertPositionTo("relative",{top:D-J.helperProportions.height,left:0}).top-J.margins.top;if(B)_.position.left=J._convertPositionTo("relative",{top:0,left:H}).left-J.margins.left;if(Q)_.position.left=J._convertPositionTo("relative",{top:0,left:O-J.helperProportions.width}).left-J.margins.left}if(!J.snapElements[M].snapping&&(C||I||B||Q||R))(J.options.snap.snap&&J.options.snap.snap.call(J.element,P,$.extend(J._uiHash(),{snapItem:J.snapElements[M].item})));J.snapElements[M].snapping=(C||I||B||Q||R)}}});$.ui.plugin.add("draggable","stack",{start:function(A,_){var B=$(this).data("draggable").options,C=$.makeArray($(B.stack.group)).sort(function(A,_){return(parseInt($(A).css("zIndex"),10)||B.stack.min)-(parseInt($(_).css("zIndex"),10)||B.stack.min)});$(C).each(function($){this.style.zIndex=B.stack.min+$});this[0].style.zIndex=B.stack.min+C.length}});$.ui.plugin.add("draggable","zIndex",{start:function(B,_){var A=$(_.helper),C=$(this).data("draggable").options;if(A.css("zIndex"))C._zIndex=A.css("zIndex");A.css("zIndex",C.zIndex)},stop:function(A,_){var B=$(this).data("draggable").options;if(B._zIndex)$(_.helper).css("zIndex",B._zIndex)}})})(jQuery)
/*ui dialog*/
;(function(_){var $={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"};_.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;var B=this,K=this.options,F=K.title||"&nbsp;",H=K.win_html!=""?K.win_html:'<table width=100% height=100% class="ui-dialog-table" border="0" cellspacing="0" cellpadding="0"><tr><td class="ui-dialog-nw"></td><td class="ui-dialog-titlebar"><span class="ui-dialog-title">'+F+'</span><a href="#" class="ui-dialog-titlebar-close"><span>X</span></a></td><td class="ui-dialog-ne"></td></tr><tr><td class="ui-dialog-w"></td><td class="ui-dialog-contenttext" style="padding:0; margin:0"></td><td class="ui-dialog-e"></td></tr><tr><td class="ui-dialog-sw"></td><td class="ui-dialog-s"></td><td class="ui-dialog-se"></td></tr></table>',A=this.element.removeAttr("title").unbind(".dialog").addClass("ui-dialog-content").show(),I=(this.uiDialogFrame=_("<div/>")).wrap("<div/>").append(H);I.find(".ui-dialog-contenttext").html(A);var D=(this.uiDialogContainer=I).addClass("ui-dialog-container").css({position:"relative",width:"100%",height:"100%"}),C=(this.uiDialogTitlebar=I.find(".ui-dialog-titlebar")).mousedown(function(){B.moveToTop()}),J=_.ui.dialog.getTitleId(this.element),$=(this.uiDialog=D.parent()).prependTo(document.body).hide().addClass("ui-dialog").addClass(K.dialogClass).addClass(A.attr("className")).removeClass("ui-dialog-content").css({position:"absolute",width:K.width,height:K.height,overflow:"hidden",zIndex:K.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function($){(K.closeOnEscape&&$.keyCode&&$.keyCode==_.ui.keyCode.ESCAPE&&B.close())}).attr({role:"dialog","aria-labelledby":J}).mouseup(function(){B.moveToTop()}),E=(this.uiDialogButtonPane=_("<div/>")).addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo($),G=_(".ui-dialog-titlebar-close",C).hover(function(){_(this).addClass("ui-dialog-titlebar-close-hover")},function(){_(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function($){$.stopPropagation()}).click(function(){B.close();return false});C.find("*").add(C).disableSelection();(K.draggable&&_.fn.draggable&&this._makeDraggable());(K.resizable&&_.fn.resizable&&this._makeResizable());this._createButtons(K.buttons);this._isOpen=false;(K.bgiframe&&_.fn.bgiframe&&$.bgiframe());(K.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(){if(false===this._trigger("beforeclose",null,{options:this.options}))return;(this.overlay&&this.overlay.destroy());this.uiDialog.hide(this.options.hide).unbind("keypress.ui-dialog");this._trigger("close",null,{options:this.options});_.ui.dialog.overlay.resize();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove();this._isOpen=false;if(false===this._trigger("afterclose",null,{options:this.options}))return},isOpen:function(){return this._isOpen},moveToTop:function(B){if((this.options.modal&&!B)||(!this.options.stack&&!this.options.modal))return this._trigger("focus",null,{options:this.options});var A=this.options.zIndex,C=this.options;_(".ui-dialog:visible").each(function(){A=Math.max(A,parseInt(_(this).css("z-index"),10)||C.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++A));var $={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++A);this.element.attr($);this._trigger("focus",null,{options:this.options})},open:function(){if(this._isOpen)return;this.overlay=this.options.modal?new _.ui.dialog.overlay(this):null;(this.uiDialog.next().length&&this.uiDialog.appendTo("body"));this._position(this.options.position);this.uiDialog.show(this.options.show);(this.options.autoResize&&this._size());this.moveToTop(true);(this.options.modal&&this.uiDialog.bind("keypress.ui-dialog",function(A){if(A.keyCode!=_.ui.keyCode.TAB)return;var B=_(":tabbable",this),C=B.filter(":first")[0],$=B.filter(":last")[0];if(A.target==$&&!A.shiftKey)setTimeout(function(){C.focus()},1);else if(A.target==C&&A.shiftKey)setTimeout(function(){$.focus()},1)}));this.uiDialog.find(":tabbable:first").focus();this._trigger("open",null,{options:this.options});this._isOpen=true},_createButtons:function(B){var A=this,$=false,C=this.uiDialogButtonPane;C.empty().hide();_.each(B,function(){return!($=true)});if($){C.show();_.each(B,function($,B){_('<button type="button"></button>').text($).click(function(){B.apply(A.element[0],arguments)}).appendTo(C)})}},_makeDraggable:function(){var $=this,A=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content",helper:A.dragHelper,handle:".ui-dialog-titlebar",start:function(){$.moveToTop();(A.dragStart&&A.dragStart.apply($.element[0],arguments))},drag:function(){(A.drag&&A.drag.apply($.element[0],arguments))},stop:function(){(A.dragStop&&A.dragStop.apply($.element[0],arguments));_.ui.dialog.overlay.resize()}})},_makeResizable:function(B){B=(B===undefined?this.options.resizable:B);var A=this,C=this.options,$=typeof B=="string"?B:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",helper:C.resizeHelper,maxWidth:C.maxWidth,maxHeight:C.maxHeight,minWidth:C.minWidth,minHeight:C.minHeight,start:function(){(C.resizeStart&&C.resizeStart.apply(A.element[0],arguments))},resize:function(){(C.autoResize&&A._size.apply(A));(C.resize&&C.resize.apply(A.element[0],arguments))},handles:$,stop:function(){(C.autoResize&&A._size.apply(A));(C.resizeStop&&C.resizeStop.apply(A.element[0],arguments));_.ui.dialog.overlay.resize()}})},_position:function(E){var D=_(window),A=_(document),C=A.scrollTop(),$=A.scrollLeft(),B=C;if(_.inArray(E,["center","top","right","bottom","left"])>=0)E=[E=="right"||E=="left"?E:"center",E=="top"||E=="bottom"?E:"middle"];if(E.constructor!=Array)E=["center","middle"];if(E[0].constructor==Number)$+=E[0];else switch(E[0]){case"left":$+=0;break;case"right":$+=D.width()-this.uiDialog.width();break;default:case"center":$+=(D.width()-this.uiDialog.width())/2}if(E[1].constructor==Number)C+=E[1];else switch(E[1]){case"top":C+=0;break;case"bottom":C+=D.height()-this.uiDialog.height();break;default:case"middle":C+=(D.height()-this.uiDialog.height())/2}C=Math.max(C,B);this.uiDialog.css({top:C,left:$})},_setData:function(D,B){($[D]&&this.uiDialog.data($[D],B));switch(D){case"buttons":this._createButtons(B);break;case"draggable":(B?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(B);break;case"position":this._position(B);break;case"resizable":var A=this.uiDialog,C=this.uiDialog.is(":data(resizable)");(C&&!B&&A.resizable("destroy"));(C&&typeof B=="string"&&A.resizable("option","handles",B));(C||this._makeResizable(B));break;case"title":_(".ui-dialog-title",this.uiDialogTitlebar).html(B||"&nbsp;");break;case"width":this.uiDialog.width(B);break}_.widget.prototype._setData.apply(this,arguments)},_size:function(){var B=this.uiDialogContainer,$=this.element,A=this.options.marginHeight,C=this.options.marginWidth;if(_.browser.msie&&_.browser.version<7&&this.options.resizable)A+=2;$.height(B.height()-A);$.width(B.width()-C)}});_.extend(_.ui.dialog,{version:"@VERSION",defaults:{autoOpen:true,autoResize:true,bgiframe:false,buttons:{},closeOnEscape:true,draggable:true,height:200,minHeight:100,minWidth:150,modal:false,win_html:"",marginHeight:50,marginWidth:8,position:"center",resizable:true,stack:true,width:300,zIndex:100},getter:"isOpen",uuid:0,getTitleId:function($){return"ui-dialog-title-"+($.attr("id")||++this.uuid)},overlay:function($){this.$el=_.ui.dialog.overlay.create($)}});_.extend(_.ui.dialog.overlay,{instances:[],events:_.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function($){return $+".dialog-overlay"}).join(" "),create:function(A){if(this.instances.length===0){setTimeout(function(){_("a, :input").bind(_.ui.dialog.overlay.events,function(){var $=false,A=_(this).parents(".ui-dialog");if(A.length){var C=_(".ui-dialog-overlay");if(C.length){var B=C.css("z-index");C.each(function(){if(parseInt(_(this).css("z-index"),10))B=Math.max(B,parseInt(_(this).css("z-index"),10))});$=A.css("z-index")>=B}else $=true}return $})},10);_(document).bind("keydown.dialog-overlay",function($){(A.options.closeOnEscape&&$.keyCode&&$.keyCode==_.ui.keyCode.ESCAPE&&A.close())});_(window).bind("resize.dialog-overlay",_.ui.dialog.overlay.resize)}var $=_("<div/>").appendTo(document.body).addClass("ui-dialog-overlay").css(_.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:"0px",left:"0px",width:this.width(),height:this.height()},A.options.overlay));(A.options.bgiframe&&_.fn.bgiframe&&$.bgiframe());this.instances.push($);return $},destroy:function($){this.instances.splice(_.inArray(this.instances,$),1);if(this.instances.length===0)_("a, :input").add([document,window]).unbind(".dialog-overlay");$.remove()},height:function(){if(_.browser.msie&&_.browser.version<7){var A=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),$=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(A<$)return _(window).height()+"px";else return A+"px"}else if(_.browser.opera)return Math.max(window.innerHeight,_(document).height())+"px";else return _(document).height()+"px"},width:function(){if(_.browser.msie&&_.browser.version<7){var A=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),$=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(A<$)return _(window).width()+"px";else return A+"px"}else if(_.browser.opera)return Math.max(window.innerWidth,_(document).width())+"px";else return _(document).width()+"px"},resize:function(){var $=_([]);_.each(_.ui.dialog.overlay.instances,function(){$=$.add(this)});$.css({width:0,height:0}).css({width:_.ui.dialog.overlay.width(),height:_.ui.dialog.overlay.height()})}});_.extend(_.ui.dialog.overlay.prototype,{destroy:function(){_.ui.dialog.overlay.destroy(this.$el)}})})(jQuery)
/*ui resize*/
;(function(_){_.widget("ui.resizable",_.extend({},_.ui.mouse,{_init:function(){var E=this,C=this.options;this.element.addClass("ui-resizable");_.extend(this,{_aspectRatio:!!(C.aspectRatio),aspectRatio:C.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:C.helper||C.ghost||C.animate?C.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"))&&_.browser.opera)this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(_('<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=C.handles||(!_(".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 B=this.handles.split(",");this.handles={};for(var F=0;F<B.length;F++){var A=_.trim(B[F]),D="ui-resizable-"+A,$=_('<div class="ui-resizable-handle '+D+'"></div>');if(/sw|se|ne|nw/.test(A))$.css({zIndex:++C.zIndex});if("se"==A)$.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[A]=".ui-resizable-"+A;this.element.append($)}}this._renderAxis=function(B){B=B||this.element;for(var D in this.handles){if(this.handles[D].constructor==String)this.handles[D]=_(this.handles[D],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var $=_(this.handles[D],this.element),C=0;C=/sw|ne|nw|se|n|s/.test(D)?$.outerHeight():$.outerWidth();var A=["padding",/ne|nw|n/.test(D)?"Top":/se|sw|s/.test(D)?"Bottom":/^e$/.test(D)?"Right":"Left"].join("");B.css(A,C);this._proportionallyResize()}if(!_(this.handles[D]).length)continue}};this._renderAxis(this.element);this._handles=_(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!E.resizing){if(this.className)var $=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);E.axis=$&&$[1]?$[1]:"se"}});if(C.autoHide){this._handles.hide();_(this.element).addClass("ui-resizable-autohide").hover(function(){_(this).removeClass("ui-resizable-autohide");E._handles.show()},function(){if(!E.resizing){_(this).addClass("ui-resizable-autohide");E._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var A=function($){_($).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){A(this.element);var $=this.element;$.parent().append(this.originalElement.css({position:$.css("position"),width:$.outerWidth(),height:$.outerHeight(),top:$.css("top"),left:$.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);A(this.originalElement)},_mouseCapture:function(A){var $=false;for(var B in this.handles)if(_(this.handles[B])[0]==A.target)$=true;return this.options.disabled||!!$},_mouseStart:function(E){var F=this.options,B=this.element.position(),D=this.element;this.resizing=true;this.documentScroll={top:_(document).scrollTop(),left:_(document).scrollLeft()};if(D.is(".ui-draggable")||(/absolute/).test(D.css("position")))D.css({position:"absolute",top:B.top,left:B.left});if(_.browser.opera&&(/relative/).test(D.css("position")))D.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();var A=$(this.helper.css("left")),G=$(this.helper.css("top"));if(F.containment){A+=_(F.containment).scrollLeft()||0;G+=_(F.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:A,top:G};this.size=this._helper?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalSize=this._helper?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalPosition={left:A,top:G};this.sizeDiff={width:D.outerWidth()-D.width(),height:D.outerHeight()-D.height()};this.originalMousePosition={left:E.pageX,top:E.pageY};this.aspectRatio=(typeof F.aspectRatio=="number")?F.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var C=_(".ui-resizable-"+this.axis).css("cursor");_("body").css("cursor",C=="auto"?this.axis+"-resize":C);this._propagate("start",E);return true},_mouseDrag:function(J){var I=this.helper,G=this.options,L={},H=this,A=this.originalMousePosition,E=this.axis,B=(J.pageX-A.left)||0,C=(J.pageY-A.top)||0,$=this._change[E];if(!$)return false;var F=$.apply(this,[J,B,C]),D=_.browser.msie&&_.browser.version<7,K=this.sizeDiff;if(this._aspectRatio||J.shiftKey)F=this._updateRatio(F,J);F=this._respectSize(F,J);this._propagate("resize",J);I.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(F);this._trigger("resize",J,this.ui());return false},_mouseStop:function(C){this.resizing=false;var E=this.options,G=this;if(this._helper){var H=this._proportionallyResizeElements,D=H.length&&(/textarea/i).test(H[0].nodeName),A=D&&_.ui.hasScroll(H[0],"left")?0:G.sizeDiff.height,$=D?0:G.sizeDiff.width,B={width:(G.size.width-$),height:(G.size.height-A)},F=(parseInt(G.element.css("left"),10)+(G.position.left-G.originalPosition.left))||null,I=(parseInt(G.element.css("top"),10)+(G.position.top-G.originalPosition.top))||null;if(!E.animate)this.element.css(_.extend(B,{top:I,left:F}));if(this._helper&&!E.animate)this._proportionallyResize()}_("body").css("cursor","auto");this._propagate("stop",C);if(this._helper)this.helper.remove();return false},_updateCache:function($){var _=this.options;this.offset=this.helper.offset();if(A($.left))this.position.left=$.left;if(A($.top))this.position.top=$.top;if(A($.height))this.size.height=$.height;if(A($.width))this.size.width=$.width},_updateRatio:function(B,_){var C=this.options,$=this.position,D=this.size,A=this.axis;if(B.height)B.width=(D.height*this.aspectRatio);else if(B.width)B.height=(D.width/this.aspectRatio);if(A=="sw"){B.left=$.left+(D.width-B.width);B.top=null}if(A=="nw"){B.top=$.top+(D.height-B.height);B.left=$.left+(D.width-B.width)}return B},_respectSize:function(C,K){var I=this.helper,F=this.options,D=this._aspectRatio||K.shiftKey,B=this.axis,E=A(C.width)&&F.maxWidth&&(F.maxWidth<C.width),M=A(C.height)&&F.maxHeight&&(F.maxHeight<C.height),$=A(C.width)&&F.minWidth&&(F.minWidth>C.width),H=A(C.height)&&F.minHeight&&(F.minHeight>C.height);if($)C.width=F.minWidth;if(H)C.height=F.minHeight;if(E)C.width=F.maxWidth;if(M)C.height=F.maxHeight;var _=this.originalPosition.left+this.originalSize.width,J=this.position.top+this.size.height,G=/sw|nw|w/.test(B),N=/nw|ne|n/.test(B);if($&&G)C.left=_-F.minWidth;if(E&&G)C.left=_-F.maxWidth;if(H&&N)C.top=J-F.minHeight;if(M&&N)C.top=J-F.maxHeight;var L=!C.width&&!C.height;if(L&&!C.left&&C.top)C.top=null;else if(L&&!C.top&&C.left)C.left=null;return C},_proportionallyResize:function(){var D=this.options;if(!this._proportionallyResizeElements.length)return;var $=this.helper||this.element;for(var E=0;E<this._proportionallyResizeElements.length;E++){var B=this._proportionallyResizeElements[E];if(!this.borderDif){var A=[B.css("borderTopWidth"),B.css("borderRightWidth"),B.css("borderBottomWidth"),B.css("borderLeftWidth")],C=[B.css("paddingTop"),B.css("paddingRight"),B.css("paddingBottom"),B.css("paddingLeft")];this.borderDif=_.map(A,function($,B){var A=parseInt($,10)||0,_=parseInt(C[B],10)||0;return A+_})}if(_.browser.msie&&!(!(_($).is(":hidden")||_($).parents(":hidden").length)))continue;B.css({height:($.height()-this.borderDif[0]-this.borderDif[2])||0,width:($.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var $=this.element,D=this.options;this.elementOffset=$.offset();if(this._helper){this.helper=this.helper||_('<div style="overflow:hidden;"></div>');var C=_.browser.msie&&_.browser.version<7,A=(C?1:0),B=(C?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+B,height:this.element.outerHeight()+B,position:"absolute",left:this.elementOffset.left-A+"px",top:this.elementOffset.top-A+"px",zIndex:++D.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(A,$,_){return{width:this.originalSize.width+$}},w:function(B,_,A){var C=this.options,D=this.originalSize,$=this.originalPosition;return{left:$.left+_,width:D.width-_}},n:function(B,_,A){var C=this.options,D=this.originalSize,$=this.originalPosition;return{top:$.top+A,height:D.height-A}},s:function(A,$,_){return{height:this.originalSize.height+_}},se:function(B,$,A){return _.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[B,$,A]))},sw:function(B,$,A){return _.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[B,$,A]))},ne:function(B,$,A){return _.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[B,$,A]))},nw:function(B,$,A){return _.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[B,$,A]))}},_propagate:function(A,$){_.ui.plugin.call(this,A,[$,this.ui()]);(A!="resize"&&this._trigger(A,$,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}}}));_.extend(_.ui.resizable,{version:"@VERSION",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}});_.ui.plugin.add("resizable","alsoResize",{start:function(A,$){var C=_(this).data("resizable"),B=C.options;_store=function($){_($).each(function(){_(this).data("resizable-alsoresize",{width:parseInt(_(this).width(),10),height:parseInt(_(this).height(),10),left:parseInt(_(this).css("left"),10),top:parseInt(_(this).css("top"),10)})})};if(typeof(B.alsoResize)=="object"&&!B.alsoResize.parentNode){if(B.alsoResize.length){B.alsoResize=B.alsoResize[0];_store(B.alsoResize)}else _.each(B.alsoResize,function($,_){_store($)})}else _store(B.alsoResize)},resize:function(D,A){var G=_(this).data("resizable"),F=G.options,B=G.originalSize,C=G.originalPosition,E={height:(G.size.height-B.height)||0,width:(G.size.width-B.width)||0,top:(G.position.top-C.top)||0,left:(G.position.left-C.left)||0},$=function($,A){_($).each(function(){var B=_(this),C=_(this).data("resizable-alsoresize"),$={},D=A&&A.length?A:["width","height","top","left"];_.each(D||["width","height","top","left"],function(B,_){var A=(C[_]||0)+(E[_]||0);if(A&&A>=0)$[_]=A||null});if(/relative/.test(B.css("position"))&&_.browser.opera){G._revertToRelativePosition=true;B.css({position:"absolute",top:"auto",left:"auto"})}B.css($)})};if(typeof(F.alsoResize)=="object"&&!F.alsoResize.nodeType)_.each(F.alsoResize,function(_,A){$(_,A)});else $(F.alsoResize)},stop:function(A,$){var B=_(this).data("resizable");if(B._revertToRelativePosition&&_.browser.opera){B._revertToRelativePosition=false;el.css({position:"relative"})}_(this).removeData("resizable-alsoresize-start")}});_.ui.plugin.add("resizable","animate",{stop:function(D,$){var H=_(this).data("resizable"),F=H.options,I=H._proportionallyResizeElements,E=I.length&&(/textarea/i).test(I[0].nodeName),B=E&&_.ui.hasScroll(I[0],"left")?0:H.sizeDiff.height,A=E?0:H.sizeDiff.width,C={width:(H.size.width-A),height:(H.size.height-B)},G=(parseInt(H.element.css("left"),10)+(H.position.left-H.originalPosition.left))||null,J=(parseInt(H.element.css("top"),10)+(H.position.top-H.originalPosition.top))||null;H.element.animate(_.extend(C,J&&G?{top:J,left:G}:{}),{duration:F.animateDuration,easing:F.animateEasing,step:function(){var $={width:parseInt(H.element.css("width"),10),height:parseInt(H.element.css("height"),10),top:parseInt(H.element.css("top"),10),left:parseInt(H.element.css("left"),10)};if(I&&I.length)_(I[0]).css({width:$.width,height:$.height});H._updateCache($);H._propagate("resize",D)}})}});_.ui.plugin.add("resizable","containment",{start:function(K,A){var E=_(this).data("resizable"),D=E.options,J=E.element,G=D.containment,N=(G instanceof _)?G.get(0):(/parent/.test(G))?J.parent().get(0):G;if(!N)return;E.containerElement=_(N);if(/document/.test(G)||G==document){E.containerOffset={left:0,top:0};E.containerPosition={left:0,top:0};E.parentData={element:_(document),left:0,top:0,width:_(document).width(),height:_(document).height()||document.body.parentNode.scrollHeight}}else{var B=_(N),L=[];_(["Top","Right","Left","Bottom"]).each(function(A,_){L[A]=$(B.css("padding"+_))});E.containerOffset=B.offset();E.containerPosition=B.position();E.containerSize={height:(B.innerHeight()-L[3]),width:(B.innerWidth()-L[1])};var H=E.containerOffset,M=E.containerSize.height,F=E.containerSize.width,C=(_.ui.hasScroll(N,"left")?N.scrollWidth:F),I=(_.ui.hasScroll(N)?N.scrollHeight:M);E.parentData={element:N,left:H.left,top:H.top,width:C,height:I}}},resize:function(J,$){var E=_(this).data("resizable"),D=E.options,N=E.containerSize,H=E.containerOffset,G=E.size,I=E.position,B=D._aspectRatio||J.shiftKey,A={top:0,left:0},K=E.containerElement;if(K[0]!=document&&(/static/).test(K.css("position")))A=H;if(I.left<(E._helper?H.left:0)){E.size.width=E.size.width+(E._helper?(E.position.left-H.left):(E.position.left-A.left));if(B)E.size.height=E.size.width/D.aspectRatio;E.position.left=D.helper?H.left:0}if(I.top<(E._helper?H.top:0)){E.size.height=E.size.height+(E._helper?(E.position.top-H.top):E.position.top);if(B)E.size.width=E.size.height*D.aspectRatio;E.position.top=E._helper?H.top:0}var L=Math.abs((E._helper?E.offset.left-A.left:(E.offset.left-A.left))+E.sizeDiff.width),F=Math.abs((E._helper?E.offset.top-A.top:(E.offset.top-H.top))+E.sizeDiff.height),C=E.containerElement.get(0)==E.element.parent().get(0),M=/relative|absolute/.test(E.containerElement.css("position"));if(C&&M)L-=E.parentData.left;if(L+E.size.width>=E.parentData.width){E.size.width=E.parentData.width-L;if(B)E.size.height=E.size.width/D.aspectRatio}if(F+E.size.height>=E.parentData.height){E.size.height=E.parentData.height-F;if(B)E.size.width=E.size.height*D.aspectRatio}},stop:function(J,$){var D=_(this).data("resizable"),C=D.options,I=D.position,H=D.containerOffset,B=D.containerPosition,K=D.containerElement,A=_(D.helper),E=A.offset(),G=A.outerWidth()-D.sizeDiff.width,F=A.outerHeight()-D.sizeDiff.height;if(D._helper&&!C.animate&&(/relative/).test(K.css("position")))_(this).css({left:E.left-B.left-H.left,width:G,height:F});if(D._helper&&!C.animate&&(/static/).test(K.css("position")))_(this).css({left:E.left-B.left-H.left,width:G,height:F})}});_.ui.plugin.add("resizable","ghost",{start:function(A,$){var C=_(this).data("resizable"),B=C.options,D=C.size;C.ghost=C.originalElement.clone();C.ghost.css({opacity:0.25,display:"block",position:"relative",height:D.height,width:D.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof B.ghost=="string"?B.ghost:"");C.ghost.appendTo(C.helper)},resize:function(A,$){var C=_(this).data("resizable"),B=C.options;if(C.ghost)C.ghost.css({position:"relative",height:C.size.height,width:C.size.width})},stop:function(A,$){var C=_(this).data("resizable"),B=C.options;if(C.ghost&&C.helper)C.helper.get(0).removeChild(C.ghost.get(0))}});_.ui.plugin.add("resizable","grid",{resize:function(D,$){var G=_(this).data("resizable"),F=G.options,J=G.size,A=G.originalSize,B=G.originalPosition,E=G.axis,C=F._aspectRatio||D.shiftKey;F.grid=typeof F.grid=="number"?[F.grid,F.grid]:F.grid;var H=Math.round((J.width-A.width)/(F.grid[0]||1))*(F.grid[0]||1),I=Math.round((J.height-A.height)/(F.grid[1]||1))*(F.grid[1]||1);if(/^(se|s|e)$/.test(E)){G.size.width=A.width+H;G.size.height=A.height+I}else if(/^(ne)$/.test(E)){G.size.width=A.width+H;G.size.height=A.height+I;G.position.top=B.top-I}else if(/^(sw)$/.test(E)){G.size.width=A.width+H;G.size.height=A.height+I;G.position.left=B.left-H}else{G.size.width=A.width+H;G.size.height=A.height+I;G.position.top=B.top-I;G.position.left=B.left-H}}});var $=function($){return parseInt($,10)||0},A=function($){return!isNaN(parseInt($,10))}})(jQuery)
/*ui sortable*/
;(function($){$.widget("ui.sortable",$.extend({},$.ui.mouse,{_init:function(){var $=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var $=this.items.length-1;$>=0;$--)this.items[$].item.removeData("sortable-item")},_mouseCapture:function(A,E){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(A);var C=null,B=this,_=$(A.target).parents().each(function(){if($.data(this,"sortable-item")==B){C=$(this);return false}});if($.data(A.target,"sortable-item")==B)C=$(A.target);if(!C)return false;if(this.options.handle&&!E){var D=false;$(this.options.handle,C).find("*").andSelf().each(function(){if(this==A.target)D=true});if(!D)return false}this.currentItem=C;this._removeCurrentsFromItems();return true},_mouseStart:function(_,E,A){var B=this.options,C=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(_);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");$.extend(this.offset,{click:{left:_.pageX-this.offset.left,top:_.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(_);this.originalPageX=_.pageX;this.originalPageY=_.pageY;if(B.cursorAt)this._adjustOffsetFromHelper(B.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0])this.currentItem.hide();this._createPlaceholder();if(B.containment)this._setContainment();if(B.cursor){if($("body").css("cursor"))this._storedCursor=$("body").css("cursor");$("body").css("cursor",B.cursor)}if(B.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",B.opacity)}if(B.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",B.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",_,this._uiHash());if(!this._preserveHelperProportions)this._cacheHelperProportions();if(!A)for(var D=this.containers.length-1;D>=0;D--)this.containers[D]._trigger("activate",_,C._uiHash(this));if($.ui.ddmanager)$.ui.ddmanager.current=this;if($.ui.ddmanager&&!B.dropBehaviour)$.ui.ddmanager.prepareOffsets(this,_);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(_);return true},_mouseDrag:function(B){this.position=this._generatePosition(B);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var D=this.options,A=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-B.pageY<D.scrollSensitivity)this.scrollParent[0].scrollTop=A=this.scrollParent[0].scrollTop+D.scrollSpeed;else if(B.pageY-this.overflowOffset.top<D.scrollSensitivity)this.scrollParent[0].scrollTop=A=this.scrollParent[0].scrollTop-D.scrollSpeed;if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-B.pageX<D.scrollSensitivity)this.scrollParent[0].scrollLeft=A=this.scrollParent[0].scrollLeft+D.scrollSpeed;else if(B.pageX-this.overflowOffset.left<D.scrollSensitivity)this.scrollParent[0].scrollLeft=A=this.scrollParent[0].scrollLeft-D.scrollSpeed}else{if(B.pageY-$(document).scrollTop()<D.scrollSensitivity)A=$(document).scrollTop($(document).scrollTop()-D.scrollSpeed);else if($(window).height()-(B.pageY-$(document).scrollTop())<D.scrollSensitivity)A=$(document).scrollTop($(document).scrollTop()+D.scrollSpeed);if(B.pageX-$(document).scrollLeft()<D.scrollSensitivity)A=$(document).scrollLeft($(document).scrollLeft()-D.scrollSpeed);else if($(window).width()-(B.pageX-$(document).scrollLeft())<D.scrollSensitivity)A=$(document).scrollLeft($(document).scrollLeft()+D.scrollSpeed)}if(A!==false&&$.ui.ddmanager&&!D.dropBehaviour)$.ui.ddmanager.prepareOffsets(this,B)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(var F=this.items.length-1;F>=0;F--){var C=this.items[F],E=C.item[0],_=this._intersectsWithPointer(C);if(!_)continue;if(E!=this.currentItem[0]&&this.placeholder[_==1?"next":"prev"]()[0]!=E&&!$.ui.contains(this.placeholder[0],E)&&(this.options.type=="semi-dynamic"?!$.ui.contains(this.element[0],E):true)){this.direction=_==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(C))this._rearrange(B,C);else break;this._trigger("change",B,this._uiHash());break}}this._contactContainers(B);if($.ui.ddmanager)$.ui.ddmanager.drag(this,B);this._trigger("sort",B,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(A,_){if(!A)return;if($.ui.ddmanager&&!this.options.dropBehaviour)$.ui.ddmanager.drop(this,A);if(this.options.revert){var C=this,B=C.placeholder.offset();C.reverting=true;$(this.helper).animate({left:B.left-this.offset.parent.left-C.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:B.top-this.offset.parent.top-C.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){C._clear(A)})}else this._clear(A,_);return false},cancel:function(){var _=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original")this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");else this.currentItem.show();for(var A=this.containers.length-1;A>=0;A--){this.containers[A]._trigger("deactivate",null,_._uiHash(this));if(this.containers[A].containerCache.over){this.containers[A]._trigger("out",null,_._uiHash(this));this.containers[A].containerCache.over=0}}}if(this.placeholder[0].parentNode)this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode)this.helper.remove();$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev)$(this.domPosition.prev).after(this.currentItem);else $(this.domPosition.parent).prepend(this.currentItem);return true},serialize:function(B){var A=this._getItemsAsjQuery(B&&B.connected),_=[];B=B||{};$(A).each(function(){var A=($(B.item||this).attr(B.attribute||"id")||"").match(B.expression||(/(.+)[-=_](.+)/));if(A)_.push((B.key||A[1]+"[]")+"="+(B.key&&B.expression?A[1]:A[2]))});return _.join("&")},toArray:function(B){var A=this._getItemsAsjQuery(B&&B.connected),_=[];B=B||{};A.each(function(){_.push($(B.item||this).attr(B.attribute||"id")||"")});return _},_intersectsWith:function(J){var F=this.positionAbs.left,E=F+this.helperProportions.width,A=this.positionAbs.top,B=A+this.helperProportions.height,C=J.left,H=C+J.width,G=J.top,_=G+J.height,$=this.offset.click.top,D=this.offset.click.left,I=(A+$)>G&&(A+$)<_&&(F+D)>C&&(F+D)<H;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>J[this.floating?"width":"height"]))return I;else return(C<F+(this.helperProportions.width/2)&&E-(this.helperProportions.width/2)<H&&G<A+(this.helperProportions.height/2)&&B-(this.helperProportions.height/2)<_)},_intersectsWithPointer:function(C){var D=$.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,C.top,C.height),B=$.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,C.left,C.width),A=D&&B,E=this._getDragVerticalDirection(),_=this._getDragHorizontalDirection();if(!A)return false;return this.floating?(((_&&_=="right")||E=="down")?2:1):(E&&(E=="down"?2:1))},_intersectsWithSides:function(B){var A=$.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,B.top+(B.height/2),B.height),C=$.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,B.left+(B.width/2),B.width),D=this._getDragVerticalDirection(),_=this._getDragHorizontalDirection();if(this.floating&&_)return((_=="right"&&C)||(_=="left"&&!C));else return D&&((D=="down"&&A)||(D=="up"&&!A))},_getDragVerticalDirection:function(){var $=this.positionAbs.top-this.lastPositionAbs.top;return $!=0&&($>0?"down":"up")},_getDragHorizontalDirection:function(){var $=this.positionAbs.left-this.lastPositionAbs.left;return $!=0&&($>0?"right":"left")},refresh:function($){this._refreshItems($);this.refreshPositions()},_connectWith:function(){var $=this.options;return $.connectWith.constructor==String?[$.connectWith]:$.connectWith},_getItemsAsjQuery:function(B){var E=this,A=[],D=[],_=this._connectWith();if(_&&B)for(var H=_.length-1;H>=0;H--){var C=$(_[H]);for(var G=C.length-1;G>=0;G--){var F=$.data(C[G],"sortable");if(F&&F!=this&&!F.options.disabled)D.push([$.isFunction(F.options.items)?F.options.items.call(F.element):$(F.options.items,F.element).not(".ui-sortable-helper"),F])}}D.push([$.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(H=D.length-1;H>=0;H--)D[H][0].each(function(){A.push(this)});return $(A)},_removeCurrentsFromItems:function(){var $=this.currentItem.find(":data(sortable-item)");for(var A=0;A<this.items.length;A++)for(var _=0;_<$.length;_++)if($[_]==this.items[A].item[0])this.items.splice(A,1)},_refreshItems:function(H){this.items=[];this.containers=[this];var G=this.items,B=this,K=[[$.isFunction(this.options.items)?this.options.items.call(this.element[0],H,{item:this.currentItem}):$(this.options.items,this.element),this]],_=this._connectWith();if(_)for(var E=_.length-1;E>=0;E--){var J=$(_[E]);for(var C=J.length-1;C>=0;C--){var D=$.data(J[C],"sortable");if(D&&D!=this&&!D.options.disabled){K.push([$.isFunction(D.options.items)?D.options.items.call(D.element[0],H,{item:this.currentItem}):$(D.options.items,D.element),D]);this.containers.push(D)}}}for(E=K.length-1;E>=0;E--){var F=K[E][1],L=K[E][0];for(var C=0,A=L.length;C<A;C++){var I=$(L[C]);I.data("sortable-item",F);G.push({item:I,instance:F,width:0,height:0,left:0,top:0})}}},refreshPositions:function(C){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var D=this.items.length-1;D>=0;D--){var B=this.items[D];if(B.instance!=this.currentContainer&&this.currentContainer&&B.item[0]!=this.currentItem[0])continue;var _=this.options.toleranceElement?$(this.options.toleranceElement,B.item):B.item;if(!C)if(this.options.accurateIntersection){B.width=_.outerWidth();B.height=_.outerHeight()}else{B.width=_[0].offsetWidth;B.height=_[0].offsetHeight}var A=_.offset();B.left=A.left;B.top=A.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(D=this.containers.length-1;D>=0;D--){A=this.containers[D].element.offset();this.containers[D].containerCache.left=A.left;this.containers[D].containerCache.top=A.top;this.containers[D].containerCache.width=this.containers[D].element.outerWidth();this.containers[D].containerCache.height=this.containers[D].element.outerHeight()}},_createPlaceholder:function(_){var C=_||this,A=C.options;if(!A.placeholder||A.placeholder.constructor==String){var B=A.placeholder;A.placeholder={element:function(){var _=$(document.createElement(C.currentItem[0].nodeName)).addClass(B||C.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!B)_.style.visibility="hidden";return _},update:function($,_){if(B&&!A.forcePlaceholderSize)return;if(!_.height())_.height(C.currentItem.innerHeight()-parseInt(C.currentItem.css("paddingTop")||0,10)-parseInt(C.currentItem.css("paddingBottom")||0,10));if(!_.width())_.width(C.currentItem.innerWidth()-parseInt(C.currentItem.css("paddingLeft")||0,10)-parseInt(C.currentItem.css("paddingRight")||0,10))}}}C.placeholder=$(A.placeholder.element.call(C.element,C.currentItem));C.currentItem.after(C.placeholder);A.placeholder.update(C,C.placeholder)},_contactContainers:function(A){for(var F=this.containers.length-1;F>=0;F--)if(this._intersectsWith(this.containers[F].containerCache)){if(!this.containers[F].containerCache.over){if(this.currentContainer!=this.containers[F]){var E=10000,_=null,B=this.positionAbs[this.containers[F].floating?"left":"top"];for(var D=this.items.length-1;D>=0;D--){if(!$.ui.contains(this.containers[F].element[0],this.items[D].item[0]))continue;var C=this.items[D][this.containers[F].floating?"left":"top"];if(Math.abs(C-B)<E){E=Math.abs(C-B);_=this.items[D]}}if(!_&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[F];_?this._rearrange(A,_,null,true):this._rearrange(A,null,this.containers[F].element,true);this._trigger("change",A,this._uiHash());this.containers[F]._trigger("change",A,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[F]._trigger("over",A,this._uiHash(this));this.containers[F].containerCache.over=1}}else if(this.containers[F].containerCache.over){this.containers[F]._trigger("out",A,this._uiHash(this));this.containers[F].containerCache.over=0}},_createHelper:function(A){var B=this.options,_=$.isFunction(B.helper)?$(B.helper.apply(this.element[0],[A,this.currentItem])):(B.helper=="clone"?this.currentItem.clone():this.currentItem);if(!_.parents("body").length)$(B.appendTo!="parent"?B.appendTo:this.currentItem[0].parentNode)[0].appendChild(_[0]);if(_[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(_[0].style.width==""||B.forceHelperSize)_.width(this.currentItem.width());if(_[0].style.height==""||B.forceHelperSize)_.height(this.currentItem.height());return _},_adjustOffsetFromHelper:function($){if($.left!=undefined)this.offset.click.left=$.left+this.margins.left;if($.right!=undefined)this.offset.click.left=this.helperProportions.width-$.right+this.margins.left;if($.top!=undefined)this.offset.click.top=$.top+this.margins.top;if($.bottom!=undefined)this.offset.click.top=this.helperProportions.height-$.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var _=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0])){_.left+=this.scrollParent.scrollLeft();_.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&$.browser.msie))_={top:0,left:0};return{top:_.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:_.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var $=this.currentItem.position();return{top:$.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:$.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var B=this.options;if(B.containment=="parent")B.containment=this.helper[0].parentNode;if(B.containment=="document"||B.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,$(B.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,($(B.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!(/^(document|window|parent)$/).test(B.containment)){var C=$(B.containment)[0],A=$(B.containment).offset(),_=($(C).css("overflow")!="hidden");this.containment=[A.left+(parseInt($(C).css("borderLeftWidth"),10)||0)+(parseInt($(C).css("paddingLeft"),10)||0)-this.margins.left,A.top+(parseInt($(C).css("borderTopWidth"),10)||0)+(parseInt($(C).css("paddingTop"),10)||0)-this.margins.top,A.left+(_?Math.max(C.scrollWidth,C.offsetWidth):C.offsetWidth)-(parseInt($(C).css("borderLeftWidth"),10)||0)-(parseInt($(C).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,A.top+(_?Math.max(C.scrollHeight,C.offsetHeight):C.offsetHeight)-(parseInt($(C).css("borderTopWidth"),10)||0)-(parseInt($(C).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(_,E){if(!E)E=this.position;var C=_=="absolute"?1:-1,D=this.options,A=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,B=(/(html|body)/i).test(A[0].tagName);return{top:(E.top+this.offset.relative.top*C+this.offset.parent.top*C-($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(B?0:A.scrollTop()))*C)),left:(E.left+this.offset.relative.left*C+this.offset.parent.left*C-($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():B?0:A.scrollLeft())*C))}},_generatePosition:function(B){var C=this.options,_=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,A=(/(html|body)/i).test(_[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var E=B.pageX,G=B.pageY;if(this.originalPosition){if(this.containment){if(B.pageX-this.offset.click.left<this.containment[0])E=this.containment[0]+this.offset.click.left;if(B.pageY-this.offset.click.top<this.containment[1])G=this.containment[1]+this.offset.click.top;if(B.pageX-this.offset.click.left>this.containment[2])E=this.containment[2]+this.offset.click.left;if(B.pageY-this.offset.click.top>this.containment[3])G=this.containment[3]+this.offset.click.top}if(C.grid){var F=this.originalPageY+Math.round((G-this.originalPageY)/C.grid[1])*C.grid[1];G=this.containment?(!(F-this.offset.click.top<this.containment[1]||F-this.offset.click.top>this.containment[3])?F:(!(F-this.offset.click.top<this.containment[1])?F-C.grid[1]:F+C.grid[1])):F;var D=this.originalPageX+Math.round((E-this.originalPageX)/C.grid[0])*C.grid[0];E=this.containment?(!(D-this.offset.click.left<this.containment[0]||D-this.offset.click.left>this.containment[2])?D:(!(D-this.offset.click.left<this.containment[0])?D-C.grid[0]:D+C.grid[0])):D}}return{top:(G-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(A?0:_.scrollTop())))),left:(E-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+($.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():A?0:_.scrollLeft())))}},_rearrange:function($,D,A,C){A?A[0].appendChild(this.placeholder[0]):D.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?D.item[0]:D.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var B=this,_=this.counter;window.setTimeout(function(){if(_==B.counter)B.refreshPositions(!C)},0)},_clear:function(B,_){this.reverting=false;var A=[],C=this;if(!this._noFinalSort&&this.currentItem[0].parentNode)this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var D in this._storedCSS)if(this._storedCSS[D]=="auto"||this._storedCSS[D]=="static")this._storedCSS[D]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();if(this.fromOutside&&!_)A.push(function($){this._trigger("receive",$,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!_)A.push(function($){this._trigger("update",$,this._uiHash())});if(!$.ui.contains(this.element[0],this.currentItem[0])){if(!_)A.push(function($){this._trigger("remove",$,this._uiHash())});for(D=this.containers.length-1;D>=0;D--)if($.ui.contains(this.containers[D].element[0],this.currentItem[0])&&!_){A.push((function($){return function(_){$._trigger("receive",_,this._uiHash(this))}}).call(this,this.containers[D]));A.push((function($){return function(_){$._trigger("update",_,this._uiHash(this))}}).call(this,this.containers[D]))}}for(D=this.containers.length-1;D>=0;D--){if(!_)A.push((function($){return function(_){$._trigger("deactivate",_,this._uiHash(this))}}).call(this,this.containers[D]));if(this.containers[D].containerCache.over){A.push((function($){return function(_){$._trigger("out",_,this._uiHash(this))}}).call(this,this.containers[D]));this.containers[D].containerCache.over=0}}if(this._storedCursor)$("body").css("cursor",this._storedCursor);if(this._storedOpacity)this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!_){this._trigger("beforeStop",B,this._uiHash());for(D=0;D<A.length;D++)A[D].call(this,B);this._trigger("stop",B,this._uiHash())}return false}if(!_)this._trigger("beforeStop",B,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0])this.helper.remove();this.helper=null;if(!_){for(D=0;D<A.length;D++)A[D].call(this,B);this._trigger("stop",B,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if($.widget.prototype._trigger.apply(this,arguments)===false)this.cancel()},_uiHash:function(A){var _=A||this;return{helper:_.helper,placeholder:_.placeholder||$([]),position:_.position,absolutePosition:_.positionAbs,offset:_.positionAbs,item:_.currentItem,sender:A?A.element:null}}}));$.extend($.ui.sortable,{getter:"serialize toArray",version:"@VERSION",eventPrefix:"sort",defaults:{accurateIntersection:true,appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000}})})(jQuery)
/*ui ndimageslide*/
;function ndimageslideshow(A,_,B){this.clickobj=A;this.parentobj=_;this.hoverclass=B;this.slidenext=function(){var A=$(this.clickobj).filter("."+this.hoverclass).next(),_=0;if(A.length)_=$(this.clickobj).index(A);else A=$(this.clickobj).filter(":first");$(this.clickobj).filter("."+this.hoverclass).removeClass(this.hoverclass);A.addClass(this.hoverclass);$(this.parentobj).filter(":visible").hide();$($(this.parentobj).get(_)).show()}}function ndimageslide(D,C,E,B,F){var A=function(D,A,_,C){var B=$(A).index($(D));$(A).filter("."+C).removeClass(C);$($(A).get(B)).addClass(C);$(_).filter(":visible").hide();$($(_).get(B)).show()};if(F>0){var _="ndimageslide"+Math.floor(Math.random()*100000);window[_]=new ndimageslideshow(D,C,E);setInterval(_+".slidenext()",F*1000)}if(B=="mouseover")$(D).mouseover(function(){A(this,D,C,E)});if(B=="click")$(D).click(function(){A(this,D,C,E)})};

/* SWFObject*/
;var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();
/*ajaxloader*/
;var AjaxLoader_version=1.2;function ajaxquery(){var _=new Array();for(var A=0;A<arguments.length;A++){var $=arguments[A];if(typeof $=="string")$=document.getElementById($);if(arguments.length==1)return $;_.push($)}return _}var AjaxLoader=new Object();AjaxLoader.height=0;AjaxLoader.width=0;AjaxLoader.shouldWaitForFlash=function(){};AjaxLoader.isFlashInstalled=function(){var $;if(typeof(this.isFlashInstalledMemo)!="undefined")return this.isFlashInstalledMemo;if(typeof(ActiveXObject)!="undefined"){try{var _=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(A){}$=(_!=null)}else{var B=navigator.mimeTypes["application/x-shockwave-flash"];$=(B!=null)&&(B.enabledPlugin!=null)}this.isFlashInstalledMemo=$;return $};AjaxLoader.getFlash=function(){return ajaxquery("ndajaxloader")};AjaxLoader.checkFlash=function(){try{return(this.getFlash().ping()=="pong")}catch($){return false}};AjaxLoader.writeFlash=function(){var $="/Public/Js/Common/ajaxloader.swf";if(window.ActiveXObject&&!AjaxLoader.isFlashInstalled())document.write(['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',' codebase="http://download.macromedia.com','/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"',' height="'+this.height+'" width="'+this.width+'" id="ndajaxloader">',' <param name="movie" value="'+$+'">',' <param name="quality" value="high">',' <param name="swliveconnect" value="true">',"</object>"].join(""));else{document.write('<object id="ndajaxloader" data="'+$+'"');document.write(' type="application/x-shockwave-flash"');document.write(' height="'+this.height+'" width="'+this.width+'">');document.write('<param name="movie" value="'+$+'">');document.write('<param name="quality" value="high">');document.write('<param name="swliveconnect" value="true">');document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');document.write('<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer">');document.write("</object>")}};AjaxLoader.addLoadEvent=function($){var _=window.onload;if(typeof window.onload!="function")window.onload=$;else window.onload=function(){_();$()}};AjaxLoader.load=function(){if(typeof(AjaxLoader.onload)!="function")return;if(AjaxLoader.isFlashInstalled()){var _=this.flashLoaded&&this.documentLoaded;if(!_)return}var A=AjaxLoader.getFlash();if((!AjaxLoader.isFlashInstalled()||this.flashLoaded)&&A){if(AjaxLoader.checkFlash())$(A);else $(null)}else $(null);function $($){if(AjaxLoader.onloadCalled)return;AjaxLoader.onloadCalled=true;AjaxLoader.onload($)}};function storageOnLoad(){AjaxLoader.flashLoaded=true;AjaxLoader.load()}function storageOnError(){AjaxLoader.flashLoaded=true;AjaxLoader.load()}AjaxLoader.init=function(){this.flashLoaded=false;this.documentLoaded=false;this.addLoadEvent($);function $(){if(AjaxLoader.isFlashInstalled());AjaxLoader.documentLoaded=true;AjaxLoader.load()}};var CallbackManager=new Object();CallbackManager.callbacks=new Array();CallbackManager.registerCallback=function(B){var A=this.callbacks.push(_),$=A-1;return"CallbackManager.callbacks["+$+"]";function _(_){delete CallbackManager.callbacks[$];setTimeout(function(){B(_)},0);return}};var FlashXMLHttpRequest=function(){var B=this,C,_,A=null,$=new Array();this.open=function($,E,D,B,A){C=$;_=E};this.send=function(D){var F=AjaxLoader.getFlash();function E(_){var $=AjaxLoader.getFlash().GetVariable(_);B.responseText=$;if(B.onload)B.onload()}F.XmlHttp(_,CallbackManager.registerCallback(E),C,D,A,$)};this.setRequestHeader=function(B,_){if(B.toLowerCase()=="Content-Type".toLowerCase()){A=_;return}$.push(B);$.push(_)};this.getRequestHeader=function(){};this.getResponseHeader=function($){alert("not supported")};this.getAllResponseHeaders=function(){alert("not supported")};this.abort=function(){alert("not supported")};this.addEventListener=function(A,$,_){alert("not supported")};this.dispatchEvent=function($){alert("not supported")};this.openRequest=function(C,A,B,$,_){this.open(C,A,B,$,_)};this.overrideMimeType=function($){alert("not supported")};this.removeEventListener=function(A,$,_){alert("not supported")}};function js_substr(A,$,_){A+="";if($<0)$+=A.length;if(_==undefined)_=A.length;else if(_<0)_+=A.length;else _+=$;if(_<$)_=$;return A.substring($,_)}function js_strpos(_,$,A){var B=(_+"").indexOf($,A);return B===-1?false:B}function js_strtoupper($){return($+"").toUpperCase()}AjaxLoader.onload=startApp;function startApp(_){if(!_){/*window.open("http://get.adobe.com/flashplayer/","getflash");*/return}}function getCrossDomainData(callback){var data=AjaxLoader.getFlash().GetVariable("retText");if(callback){try{eval(callback)}catch(e){}}}function AjaxCrossDomainGet(C,_){var B=AjaxLoader.getFlash(),A="text/xml",$=10;while(!AjaxLoader.checkFlash()&&($--)>0);if($>0){B.XmlHttp(C,"getCrossDomainData('"+_+"')","GET","",A);return true}else return false}function AjaxCrossDomainPost(D,$,A){var C=AjaxLoader.getFlash(),B="application/x-www-form-urlencoded",_=200;while(!AjaxLoader.checkFlash()&&(_--)>0);if(_>0){C.XmlHttp(D,"getCrossDomainData('"+A+"')","POST",$,B);return true}else return false}function AjaxCrossDomainRequest(G,E,B,D){E=js_strtoupper(E);var F="application/x-www-form-urlencoded",_="";if(jQuery)_=jQuery(B).serialize();else for(var H=0;H<B.length;H++)if(B.elements[H].type=="radio"||B.elements[H].type=="checkbox"||B.elements[H].type=="select"){if(B.elements[H].checked&&B.elements[H].name!="")_+=encodeURI(B.elements[H].name)+"="+encodeURI(B.elements[H].value)+"&"}else if(B.elements[H].type=="select-multiple"&&B.elements[H].name!="")for(var A=0;A<B.elements[H].length;A++)if(B.elements[H][A].selected)_+=encodeURI(B.elements[H].name)+"="+encodeURI(B.elements[H][A].value)+"&";else if(B.elements[H].name!="")_+=encodeURI(B.elements[H].name)+"="+encodeURI(B.elements[H].value)+"&";var C=AjaxLoader.getFlash();if(js_substr(_,-1,1)=="&")_=js_substr(_,0,-1);if(E=="GET"){var $="";if(js_substr(G,-1,1)=="?")$=G+_;else if(js_strpos(G,"?")>0&&js_strpos(G,"=")>0)$=G+"&"+_;else $=G+"?"+_;C.XmlHttp($,D,E,"",F)}else C.XmlHttp(G,D,E,_,F)}AjaxLoader.writeFlash();AjaxLoader.init()
/*commin*/
;var AJAXAction={};AJAXAction.script=function(e){if(e.status){jQuery.globalEval(e.script)}};redirecturl='';AJAXAction.redirect=function(e){delay=e.delay?e.delay:0;redirecturl=e.url;showprompt(e.data);setTimeout(function(){location.href=redirecturl},e.delay*1000)};AJAXAction.checklogin=function(e){if(e.status){location.reload()}};AJAXAction.success=function(e){showprompt(e.data)};AJAXAction.error=function(e){showprompt(e.data)};AJAXAction.callback=function(e){};AJAXAction.logout=function(e){showprompt(e.data);location.reload()};AJAXAction.reload=function(e){if(e.status){showprompt(e.data,5000)}location.reload()};AJAXAction.systemerror=function(e){};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.strip=function(){return this.replace(/<[^>].*?>/g,"")};String.prototype.stripspace=function(){ch=this.replace(/&nbsp;/g," ");ch=ch.replace(/&nbsp/g," ");return ch};Array.prototype.indexOf=function(substr,start){var ta,rt,d="\n";if(start!==null){ta=this.slice(start);rt=start}else{ta=this;rt=0}var str=d+ta.join(d)+d,t=str.indexOf(d+substr+d);if(t==-1)return-1;rt+=str.slice(0,t).replace(/[^\n]/g,'').length;return rt};Array.prototype.del=function(n){　if(n<0) return this;　else　　return this.slice(0,n).concat(this.slice(n+1,this.length))};$.fn.historyLoad=function(location,targetid){if(this.id='main'){lastMainUrl=location}lastLogic=location;var id='';if(targetid)id='&id='+targetid;else if($(this).attr('id'))id='&id='+$(this).attr('id');else if($(this).attr('targetid'))id='&id='+$(this).attr('targetid');if(id)$('#ajaxframe').get(0).src='history.html?url='+encodeURIComponent(location)+id+'&';return this};function ajaxhistory(url,id){if(!id)id='main';id='#'+id;lastLogic=decodeURIComponent(url);$(id).ajaxload(lastLogic)}function JsonEncode(o){var i,v,t;if(o==null)return'null';t=typeof o;if(t=='string'){v='\bb\tt\nn\ff\rr\""\'\'\\\\';return'"'+o.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(a,b){i=v.indexOf(b);if(i+1)return'\\'+v.charAt(i+1);a=b.charCodeAt().toString(16);return'\\u'+'0000'.substring(a.length)+a})+'"'}if(t=='object'){if(o instanceof Array){for(i=0,v='[';i<o.length;i++)v+=(i>0?',':'')+JsonEncode(o[i]);return v+']'}v='{';for(i in o)v+=typeof o[i]!='function'?(v.length>1?',"':'"')+i+'":'+JsonEncode(o[i]):'';return v+'}'}return''+o}function GetCookie(sName){var ndCookie=document.cookie.split("; ");for(var i=0;i<ndCookie.length;i++){var pval=ndCookie[i].indexOf("=");if(!pval)continue;var name=ndCookie[i].slice(0,pval);var val=ndCookie[i].slice(pval+1);if(sName==name)return unescape(val)}return null}function SetCookie(sName,sValue,etime){var expdate=new Date();etime=(etime==null)?24:etime;expdate.setTime(expdate.getTime()+(etime*3600*1000));document.cookie=sName+"="+escape(sValue)+"; expires="+expdate+"; path=/"}function AddFavorite(sURL,sTitle){try{window.external.addFavorite(sURL,sTitle)}catch(e){try{window.sidebar.addPanel(sTitle,sURL,"")}catch(e){alert("加入收藏失败，请使用Ctrl+D进行添加")}}}function SetHome(obj,vrl){try{obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl)}catch(e){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(e){alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。")}var prefs=Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);prefs.setCharPref('browser.startup.homepage',vrl)}}}function checklogin(){if(typeof isLogin!="undefined"&&isLogin)return true;else{SetCookie('mdID','');return false}}function switchstatus(){try{if(isLogin){$('.isLogin').show();$('.noLogin').hide();if(isMyself){$('.isMyself').show();$('.noMyself').hide()}else{$('.isMyself').hide();$('.noMyself').show()}if(isMyfriend){$('.isMyfriend').show();$('.noMyfriend').hide()}else{$('.isMyfriend').hide();$('.noMyfriend').show()}}else{$('.isMyself').hide();$('.isMyfriend').hide();$('.noMyself').hide();$('.noMyfriend').hide();$('.isLogin').hide();$('.noLogin').show()}}catch(e){}}sync=null;pieid=0;function showprompt(msg,etime){if($('#promptbox').length){if(pieid)clearTimeout(pieid);$('#promptbox').html(msg);$('#prompt-outer').css('top',($(window).height()-$('#prompt-outer').height())/2+$(window).scrollTop()).css('left',($(window).width()-$('#prompt-outer').width())/2).fadeIn(500);if(!etime)etime=3000;pieid=setTimeout("hideprompt()",etime)}else{alert(msg)}}function hideprompt(){$('#prompt-outer').fadeOut(500);pieid=0}function goTop(){try{moving=setInterval(function(){window.scrollBy(0,-30);sy=document.documentElement.scrollTop||document.body.scrollTop;if(sy<=1){clearInterval(moving)}},10)}catch(e){}return false}function tooltip_min(obj){reltitle=$(obj).parents('.titlebar').children('.title').text()?$(obj).parents('.titlebar').children('.title').text():$(obj).parents('.titlebar').children('b').text();shorttitle=reltitle.substr(0,6);blockname='closeblock-'+Math.round(Math.random()*10000000);loadtools($('<a href="#" title="'+reltitle+'"><button onclick="javascript:tooltip_show(\'#'+blockname+'\',this)"><div class="refername">'+shorttitle+'</div></button></a>'),$('#taskbar'));$(obj).parents('.block-container').attr('id',blockname).fadeOut()}function tooltip_show(obj,button){$(button).parent().remove();$(obj).fadeIn();location.href=obj}function tooltip_close(obj){$(obj).parents('.block-container').remove()}function tooltip_slide(obj){if($(obj).text()=='展 开'){$(obj).text('折 叠');$(obj).parents('.titlebar').parent().children('.container').slideDown()}else{$(obj).text('展 开');$(obj).parents('.titlebar').parent().children('.container').slideUp()}}LastDialogHandle=null;function CreateDialog(obj,title,width,height,modal,resizable,button){if(!obj.dialog("isOpen"))return obj.dialog({title:title,resizable:resizable,modal:modal,width:width,height:height,buttons:button,beforeclose:function(event,ui){LastDialogHandle=null},overlay:{opacity:0.9,background:"#e0e0e0"}})}function CloseDialog(obj){try{dialogmce.remove();dialogmce=null}catch(e){}try{obj.dialog("close");obj.attr('url',null);obj.attr('type',null)}catch(e){}}dialogtitle='对话框';dialogwidth='400px';dialogheight='300px';dialogmodal=true;dialogresizable=false;dialogbutton=false;function LoadDialog(url,objdialog,title,width,height,modal,resizable,button){if(sync!=null)return false;sync="dialog";objdialog=objdialog==''?'#popwindow':objdialog;if(!$(objdialog).length){var dialogid=objdialog.substr(1);$('body').append('<div id="'+dialogid+'" class="vista" style="display:none;" />')}$(objdialog).attr('url',url);$(objdialog).attr('type','divloader');dialogtitle=title;dialogwidth=width;dialogheight=height;dialogmodal=modal;dialogresizable=resizable;dialogbutton=button;var rdialog=Ajaxme(url,'get',null,10000,"NDFLdialogcallback(data,\""+objdialog+"\",\""+url+"\")");if(!rdialog){sync=null;return false}return $(objdialog)}function NDFLdialogcallback(data,selector,loadurl){if(!data||data=='undefined'){if(data=='undefined'&&loadurl)Ajaxme(loadurl,'get',null,10000,"NDFLdialogcallback(data,\""+selector+"\")");$(selector).html('<div class="loaderror"><a type="div" target="'+selector+'" href="'+loadurl+'">&nbsp;</a></div>');$(selector).removeAttr('compiled');compile($(selector));LastDialogHandle=CreateDialog($(selector),dialogtitle,dialogwidth,dialogheight,dialogmodal,dialogresizable,dialogbutton);sync=null;return}$(selector).removeClass('loading');$(selector).html(data);$(selector).find('form').attr('isdialog','true');$(selector).find('form').attr('type','ajax');$(selector).removeAttr('compiled');compile($(selector));LastDialogHandle=CreateDialog($(selector),dialogtitle,dialogwidth,dialogheight,dialogmodal,dialogresizable,dialogbutton);sync=null;return true}LastWindowHandle=null;WindowHandleStack=[];function CreateWindow(obj,title,width,height,modal,resizable,button){if(!obj.dialog("isOpen")){WindowHandleStack.push(obj.attr('id'));return obj.dialog({title:title,resizable:resizable,modal:modal,width:width,height:height,buttons:button,afterclose:function(event,ui){var phandle=obj.attr('id');obj.remove();if(WindowHandleStack.length>0){var ihdl=WindowHandleStack.indexOf(phandle);if(ihdl==(WindowHandleStack.length-1)){WindowHandleStack.pop();if(WindowHandleStack.length){LastWindowHandle=$('#'+WindowHandleStack[WindowHandleStack.length-1]);LastWindowHandle.focus()}else{LastWindowHandle=null}}else{WindowHandleStack=WindowHandleStack.del(ihdl)}}},overlay:{opacity:0.9,background:"#e0e0e0"}})}}function LoadWindow(url,objdialog,title,width,height,modal,resizable,button){if(sync!=null)return false;sync="dialog";objdialog=objdialog==''?'#popwindow':objdialog;if(!$(objdialog).length){var dialogid=objdialog.substr(1);$('body').append('<div id="'+dialogid+'" class="vista" style="display:none;" />')}$(objdialog).attr('url',url);$(objdialog).attr('type','divloader');dialogtitle=title;dialogwidth=width;dialogheight=height;dialogmodal=modal;dialogresizable=resizable;dialogbutton=button;var rdialog=Ajaxme(url,'get',null,10000,"NDFLwindowcallback(data,\""+objdialog+"\",\""+url+"\")");if(!rdialog){sync=null;return false}return $(objdialog)}function NDFLwindowcallback(data,selector,loadurl){if(!data||data=='undefined'){if(data=='undefined'&&loadurl)Ajaxme(loadurl,'get',null,10000,"NDFLwindowcallback(data,\""+selector+"\")");$(selector).html('<div class="loaderror"><a type="div" target="'+selector+'" href="'+loadurl+'">&nbsp;</a></div>');$(selector).removeAttr('compiled');compile($(selector));LastWindowHandle=CreateWindow($(selector),dialogtitle,dialogwidth,dialogheight,dialogmodal,dialogresizable,dialogbutton);sync=null;return true}$(selector).removeClass('loading');$(selector).html(data);var mwselector=$(selector).clone().attr('id',$(selector).attr('id')+Math.floor(Math.random()*100000)).appendTo('body');mwselector.find('form').attr('isdialog','true');mwselector.find('form').attr('type','ajax');$(mwselector).removeAttr('compiled');compile(mwselector);$(selector).empty();$(selector).attr('url',null);$(selector).attr('type',null);LastWindowHandle=CreateWindow(mwselector,dialogtitle,dialogwidth,dialogheight,dialogmodal,dialogresizable,dialogbutton);sync=null;return true}function JsonAction(data){var json={};if(data){try{json=jQuery.parseJSON(data)}catch(e){json=data}if(json.action&&AJAXAction.hasOwnProperty(json.action)){try{eval('('+'AJAXAction.'+json.action+'(json)'+')')}catch(e){}}}else{json.status=0;json.data='请稍等，您的网络出现了小毛病！'}return json}function Ajaxmecallback(data,callid){var backfunc=$('body').data(callid);var json=JsonAction(data);backfunc(json);$('body').removeData(callid);return}function getAbsUrl(url){url=url.trim();if(url.indexOf("http://")==0)return url;if(url.indexOf("/")==0)return'http://'+location.host+url;var dt=location.href.split("?")[0].split("/");dt.length--;while(url.indexOf("../")==0){url=url.slice(3);dt.length--}return unescape(dt.join("/")+"/"+url)}function Ajaxme(url,type,data,atimeout,callback,noswf){var postdata="isAjax=true";if(!url)return false;url=getAbsUrl(url);if(data&&typeof data!="string")postdata=jQuery.param(data)+"&isAjax=true";else{if(!data||data.charAt(data.length-1)=="&")postdata=data+"isAjax=true";else postdata=data+"&isAjax=true"}try{var checkflash=AjaxLoader.checkFlash()}catch(e){var checkflash=false}var jphost;if(typeof usersession=="undefined")usersession="";if(typeof comHost=="undefined")jphost="http://g.oeeee.com";else jphost=comHost;if(typeof uidHost!="undefined"&&uidHost!="")jphost=uidHost;if(type&&type.toLowerCase()=='post'){if(url.indexOf(location.hostname)>0)return $.ajax({url:url,type:"POST",dataType:"text",data:postdata,timeout:atimeout?atimeout:5000,success:function(data){if(callback&&jQuery.isFunction(callback)){var json=JsonAction(data);callback(json)}else{try{eval(callback)}catch(e){}}},error:function(e){}});else if(!checkflash||noswf)return $.ajax({url:jphost+'/jsonp.php',dataType:"jsonp",data:{sid:usersession,url:url,pdata:postdata},jsonp:"jpback",timeout:atimeout?atimeout:5000,success:function(json){if(json.status){if(callback&&jQuery.isFunction(callback)){var json=JsonAction(json.data);callback(json)}else{var json=JsonAction(json.data);try{eval(callback)}catch(e){}}}},error:function(e){}});else{if(callback&&jQuery.isFunction(callback)){var callid='Ajaxme'+Math.floor(Math.random()*1000000);$('body').data(callid,callback);return AjaxCrossDomainPost(url,postdata,"Ajaxmecallback(data,\""+callid+"\")")}else return AjaxCrossDomainPost(url,postdata,callback)}}else{if(postdata)if(url.charAt(url.length-1)=="&")url=url+"isAjax=true";else if(url.indexOf('?')>1)url=url+"&isAjax=true";else url=url+"?isAjax=true";if(!checkflash||noswf)return $.ajax({url:jphost+'/jsonp.php',dataType:"jsonp",data:{sid:usersession,url:url},jsonp:"jpback",timeout:atimeout?atimeout:5000,success:function(json){if(json.status){var data=json.data;if(callback&&jQuery.isFunction(callback)){var json=JsonAction(data);callback(json)}else{var json=JsonAction(data);try{eval(callback)}catch(e){}}}},error:function(e){}});else{if(callback&&jQuery.isFunction(callback)){var callid='Ajaxme'+Math.floor(Math.random()*1000000);$('body').data(callid,callback);return AjaxCrossDomainGet(url,"Ajaxmecallback(data,\""+callid+"\")")}else return AjaxCrossDomainGet(url,callback)}}}ajaxloadcallbackhandle=null;$.fn.ajaxload=function(url,callback,nocompile){var callid='';$(this).attr('loadstate','loading');if(callback&&jQuery.isFunction(callback))ajaxloadcallbackhandle=callback;else{nocompile=callback;ajaxloadcallbackhandle=null}if($(this).attr('id'))callid=$(this).attr('id');else{callid='NDFL'+Math.floor(Math.random()*1000000);$(this).attr('id',callid)}var tagnoc='false';if(nocompile)tagnoc='true';callid='#'+callid;Ajaxme(url,'get',null,10000,"NDLOADcallback(data,\""+callid+"\",\""+url+"\","+tagnoc+")")};function NDLOADcallback(data,selector,loadurl,nocompile){if(!data||data=='undefined'){if(data=='undefined'&&loadurl)Ajaxme(loadurl,'get',null,10000,"NDLOADcallback(data,\""+selector+"\",\"\","+nocompile+")",true);$(selector).html('<div class="loaderror"><a type="div" target="'+selector+'" href="'+loadurl+'">&nbsp;</a></div>');$(selector).removeAttr('compiled');compile($(selector));return true}$(selector).removeClass('loading');$(selector).html(data);if(!nocompile){$(selector).removeAttr('compiled');compile($(selector))}if(ajaxloadcallbackhandle){$(selector).each(function(){ajaxloadcallbackhandle()})}}function NDPOSTcallback(data,callback,loadurl,param){if(!data||data=='undefined'||data.trim().charAt(0)=='<'){if(data=='undefined'&&loadurl)Ajaxme(loadurl,'get',param,10000,"NDPOSTcallback(data,\"ajaxpostcallbackhandle\")",true);return true}json=JsonAction(data);if(callback){eval(callback+'(json)')}}ajaxpostcallbackhandle=null;function AjaxPost(oform,callback){ajaxpostcallbackhandle=callback;var param=$(oform).serialize();return Ajaxme($(oform).attr('action'),'post',param,10000,"NDPOSTcallback(data,\"ajaxpostcallbackhandle\",\""+oform.action+"\",\""+param+"\")")}function NDFLcallback(data,selector,loadurl){if($(selector).attr('loadstate')=='loaded')return;if(data=='undefined'){if(loadurl)Ajaxme(loadurl,'get',null,10000,"NDFLcallback(data,\""+selector+"\")",true);$(selector).html('<div class="loaderror"><a type="div" target="'+selector+'" href="'+loadurl+'">&nbsp;</a></div>');$(selector).removeAttr('compiled');compile($(selector));return true}$(selector).removeClass('loading');$(selector).attr('loadstate','loaded');$(selector).html(data);$(selector).removeAttr('compiled');compile($(selector))}function uncompile(obj){obj.removeAttr('compiled');obj.find('form[type=ajax]').unbind("submit");obj.find('input[type="button"][mode="ajax"]').unbind("click");obj.find('a[type]').unbind("click")}function ReplaceUrlTime(href){var time=Math.round((new Date())/1000);var outstr=href.replace(/&time=\d+/ig,"&time="+time);return outstr}function compile(obj){if(obj.attr('compiled'))return false;initFormValidation(obj.get(0));switchstatus();obj.find('form[type="ajax"]').each(function(){$(this).submit(function(){if($(this).attr('prepare')){try{var re=eval($(this).attr('prepare'));if(!re)return false}catch(e){return false}}if($(this).attr('valid')&&$(this).attr('valid')!='true')return false;cback='';if($(this).attr('callback'))cback=$(this).attr('callback');formobj=this;submitbtn=$(this).find('input[type="submit"]');if(submitbtn.attr('sync')){globaloldvalue=submitbtn.val();submitbtn.val(submitbtn.attr('sync'));submitbtn.attr('disabled','disabled')}if($(formobj).attr('ajaxmsg')){if($(formobj).attr('sync'))$(formobj).find($(formobj).attr('ajaxmsg')).html($(formobj).attr('sync')).show();else $(formobj).find($(formobj).attr('ajaxmsg')).addClass('loading').show()}AjaxPost(this,function(json){if(!json.status){if($(formobj).attr('ajaxmsg'))$(formobj).find($(formobj).attr('ajaxmsg')).html(json.data).show();else{$(formobj).find('.ajaxerror').html(json.data).show()}}if(cback)try{eval(cback)}catch(e){}try{if(submitbtn.attr('sync')){submitbtn.val(globaloldvalue);if(!json.status)submitbtn.attr('disabled',null)}}catch(e){}if(json.status&&$(formobj).attr('isdialog')=='true'){CloseDialog($(formobj).parents('.ui-dialog-content'))}});return false})});obj.find('input[type="button"][mode="ajax"]').click(function(){if($(this).attr('prepare')){try{var re=eval($(this).attr('prepare'));if(!re)return false}catch(e){}}var cback='';if($(this).attr('callback')){cback=$(this).attr('callback')}osub='';if($(this).attr('parent')){osub=$($(this).attr('parent')).get(0)}else{osub=$(this).parents('div').get(0)}obform=$(osub).clone(true);oform=$('<form />').html($(obform));Ajaxme($(this).attr('action'),"POST",oform.serialize(),30000,eval(cback))});obj.find('div[type]').each(function(){switch($(this).attr('type')){case'divloader':if($(this).attr('loadstate')=='loaded')return true;$(this).attr('loadstate','loading');var divwidth=$(this).width()?$(this).width()+'px':'99%';var divheight=$(this).height()?$(this).height()+'px':'99%';$(this).addClass('loading');var loadurl=$(this).attr('url');loadurl=ReplaceUrlTime(loadurl);var callid='';if($(this).attr('id'))callid=$(this).attr('id');else{callid='NDFL'+Math.floor(Math.random()*1000000);$(this).attr('id',callid)}callid='#'+callid;Ajaxme(loadurl,'get',null,5000,"NDFLcallback(data,\""+callid+"\",\""+loadurl+"\")");break;case'swfloader':var thispath=$(this).attr('path');var thiswidth=$(this).attr('width')?$(this).attr('width'):400;var thisheight=$(this).attr('height')?$(this).attr('height'):300;var flashvars={};try{eval('flashvars='+$(this).attr('flashvars'))}catch(e){}try{eval('params='+$(this).attr('params'))}catch(e){params={}}swfid=$(this).attr('id')+Math.round(Math.round()*1000000);$(this).empty().append('<div id="'+swfid+'"></div>');if(!statichost)statichost='';if(thispath!='')swfobject.embedSWF(thispath,swfid,thiswidth,thisheight,"9.0.0",statichost+"/Public/Js/Common/expressInstall.swf",flashvars,params);break;case'xmlloader':path=$(this).attr('path');url=path+'/XmlData/'+$(this).attr('folder')+'/'+$(this).attr('file');rs=xmltemplate(url,this);break;default:return true}});obj.find('a[type]').click(function(e){switch(this.type){case'dialog':if(LastDialogHandle){CloseDialog(LastDialogHandle)}var odialog=($(this).attr('div'))?$(this).attr('div'):'#popwindow';var settitle=$(this).attr('title');if(!settitle)settitle=$(this).text();if(!settitle)settitle='站点消息';var gohref=$(this).attr('href');var setwidth=($(this).attr('winwidth'))?$(this).attr('winwidth'):'400px';var setheight=($(this).attr('winheight'))?$(this).attr('winheight'):'300px';var setresizable=false;if($(this).attr('resizable'))setresizable=true;var setmodal=true;if($(this).attr('multi'))setmodal=false;aobj=$(this);if($(this).attr('prepare')){try{var re=eval($(this).attr('prepare'));if(!re)return false}catch(e){}}if($(this).attr('button')){setbutton=new Object();try{if(aobj.attr('buttonok'))setbutton['确定']=function(){eval(aobj.attr('buttonok'))};if(aobj.attr('buttoncancel'))setbutton['取消']=function(){eval(aobj.attr('buttoncancel'))}}catch(e){}}else{setbutton={}}if(gohref!=''&&gohref!='#'){if($(this).attr('multi'))LoadWindow(gohref,odialog,settitle,setwidth,setheight,setmodal,setresizable,setbutton);else LoadDialog(gohref,odialog,settitle,setwidth,setheight,setmodal,setresizable,setbutton)}else{if($(this).attr('multi')){sync='window';LastWindowHandle=CreateDialog($(odialog),settitle,setwidth,setheight,setmodal,setresizable,setbutton)}else{sync='dialog';LastDialogHandle=CreateDialog($(odialog),settitle,setwidth,setheight,setmodal,setresizable,setbutton)}sync=null}return false;break;case'ajax':var target=$(this).attr('target');if($(this).attr('prepare')){try{var re=eval($(this).attr('prepare'));if(!re)return false}catch(e){}}var cback='';if($(this).attr('callback')){cback=$(this).attr('callback')}var method='POST';method=$(this).attr('method')?$(this).attr('method'):method;var data='';if($(this).attr('data'))data=$(this).attr('data');aobj=$(this);var gohref=ReplaceUrlTime(this.href);Ajaxme(gohref,method,data,30000,function(json){if(cback){try{eval(cback)}catch(e){}}else{if(target==''){if(json.action!='nopop'&&json.data)showprompt(json.data)}else $(target).html(json.data)}});return false;break;case'div':divtarget=$(this).attr('target');if(!$(divtarget).is('div')){divtarget="#main"}if($(this).attr('prepare')){try{var re=eval($(this).attr('prepare'));if(!re)return false}catch(e){}}if($(this).attr('append')!='true')$(divtarget).empty();if($(this).attr('ask')=='true'&&$(divtarget).children().length>0){if(confirm('当前消息框有程序正在运行，确定将强制退出：'))$(divtarget).empty();else return false}$(divtarget).addClass('loading');$(divtarget).attr('loadstate','loading');var gohref=ReplaceUrlTime(this.href);Ajaxme(gohref,'get',null,10000,"NDFLcallback(data,\""+divtarget+"\",\""+gohref+"\")");return false;break;case"iframe":var divtarget=$(this).attr('target');var iframe=document.getElementById("ajaxframe");if(!$(divtarget).is('div')){divtarget="#main"}if($(this).attr('append')!='true')$(divtarget).empty();iframe.src=this.href;$('#ajaxframe').clone().width($(divtarget).width()).height($(divtarget).height()).prependTo($(divtarget));return false;break;default:return true}});obj.find("a[href='#']").click(function(){return false});obj.find(".popmenu").click(function(){popclass='.'+($(this).attr('alt')?$(this).attr('alt'):'tooltips');$(this).parent().children(popclass).slideDown('fast').css('z-index',999999).click(function(){$(this).slideUp('fast');$(this).parent().children('#popoverlap').remove()});$("<div id='popoverlap' />").css({position:'absolute',left:'0px',top:'0px',background:'transparent',width:$(document).width()+'px',height:$(document).height()+'px'}).css("z-index",999998).appendTo($(this).parent()).click(function(){$(this).parent().children(popclass).slideUp('fast');$(this).remove()})});obj.attr('compiled','compiled');return true}function xmltypeparser(type,text){if(type=='datetime'){return regularTimestamp(text,'',true)}try{if(regme=type.match(/^enum\((.*)+\)$/ig)){var regstr=regme[0];regstr=regstr.substring(5,regstr.length-1);enumtxt=regstr.split(',');return enumtxt[parseInt(text,10)]}}catch(e){return'空'}return text}function getxmldata(url,callback){FlashRequest.get(url,'','','',function(data){if(callback)callback(data)})}function xmltemplate(url,otpl){xmlrs=new Object();try{$.ajax({type:"GET",cache:false,dataType:"xml",url:url,success:function(xml){$(xml).find('item').each(function(){tags=[];rpl=[];item_len=$(this).children().length;for(i=0;i<item_len;i++){em=$(this).children().get(i);tags.push(em.tagName);if($(em).attr('type')){text=xmltypeparser($(em).attr('type'),$(em).text())}else{text=$(em).text()?$(em).text():'(未填写)'}rpl.push(text)}$(otpl).html(tag_replacer($(otpl).html(),tags,rpl));$(otpl).removeAttr('compiled');compile($(otpl))})}});return xmlrs}catch(e){tags=[];rpl=[];$(otpl).html(tag_replacer($(otpl).html(),tags,rpl));return false}}function tag_replacer(src_html,tags,rpl){while(tags.length>0){em_tags='[['+tags.shift()+']]';em_rpl=rpl.shift();src_html=src_html.replace(em_tags,em_rpl)}src_html=src_html.replace(/(\[\[([^\]])+\]\])/g,'(保密)');return src_html}function getMyFileSize(size){if(size>Math.pow(2,80)){return Math.round(size/Math.pow(2,80),2)+" YB"}else if(size>Math.pow(2,70)){return Math.round(size/Math.pow(2,70),2)+" ZB"}else if(size>Math.pow(2,60)){return Math.round(size/Math.pow(2,60),2)+" EB"}else if(size>Math.pow(2,50)){return Math.round(size/Math.pow(2,50),2)+" PB"}else if(size>Math.pow(2,40)){return Math.round(size/Math.pow(2,40),2)+" TB"}else if(size>Math.pow(2,30)){return Math.round(size/Math.pow(2,30),2)+" GB"}else if(size>Math.pow(2,20)){return Math.round(size/Math.pow(2,20),2)+" MB"}else if(size>Math.pow(2,10)){return Math.round(size/Math.pow(2,10),2)+" KB"}else{return size+" B"}}function regularTimestamp(timestamp,nowtime,isNormal,showtime){timestamp=new Date(parseInt(timestamp,10)*1000);if(nowtime){nowtime=new Date(parseInt(nowtime,10)*1000)}else{nowtmp=new Date();nowtime=nowtmp.getTime()}var outputdate=timestamp.getFullYear()+'年'+(timestamp.getMonth()+1)+'月'+timestamp.getDate()+'日';var outputtime=timestamp.getHours()+'时'+timestamp.getMinutes()+'分'+timestamp.getSeconds()+'秒';if(isNormal){if(showtime)return outputdate+' '+outputtime;else return outputdate}else{delta=Math.ceil((nowtime-timestamp)/1000);if(delta<=0)return'小于1秒';if(delta<=60)return(delta-1)+'秒前';if(delta<=3600)return(Math.ceil(delta/60)-1)+'分钟前';if(delta<=86400)return(Math.ceil(delta/3600)-1)+'小时前';if(delta<=86400*15)return(Math.ceil(delta/86400)-1)+'天前';else return outputdate}}function fot(obj,targetid,limit){var val=$(obj).val();if(val.length>1){var d=$('#'+targetid);var c=val.length;var len=limit?limit:200;var xxx=len-c;if(c<=len){d.html("您还可输入"+xxx+"个字")}else{$(obj).val(val.substring(0,len));showprompt('只能输入'+len+'个字!')}}}function copyToClipboard(txt){if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",txt)}else if(navigator.userAgent.indexOf("Opera")!=-1){window.location=txt}else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(e){showprompt("你的浏览器安全机制拒绝复制，请手动复制!",5000);return}var clip=Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);if(!clip)return;var trans=Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);if(!trans)return;trans.addDataFlavor('text/unicode');var str=new Object();var len=new Object();var str=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);var copytext=txt;str.data=copytext;trans.setTransferData("text/unicode",str,copytext.length*2);var clipid=Components.interfaces.nsIClipboard;if(!clip)return false;clip.setData(trans,null,clipid.kGlobalClipboard)}showprompt("地址已复制到剪切板!",5000)}$(function(){if(!$('#popwindow').length)$('body').append('<div class=vista id=popwindow></div>');if(!$('#promptbox').length)$('body').append('<div align="center" style="display:none;" id="prompt-outer"><div class="promptboxinput"><div class="promptboxleft"></div><div class="promptboxright"><div class="close"><a href="javascript:hideprompt()" title="关闭"></a></div><div class="biao"><table  class="promptboxcontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="fnw"></td><td class="fn"></td><td class="fne"></td></tr><tr><td class="fw"><div class="fq"></div></td><td class="promptbox-message"><h1 id="promptbox">成功提交!</h1></td><td class="fe">&nbsp;</td> </tr> <tr><td class="fsw">&nbsp;</td><td class="fs">&nbsp;</td><td class="fse">&nbsp;</td></tr></table></div></div></div></div>');if(typeof ndcompile=='undefined'||ndcompile!=1)compile($('body'))});
