
/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aO,I){function a0(){if(!ah.isReady){try{M.documentElement.doScroll("left")
}catch(c){setTimeout(a0,1);
return
}ah.ready()
}}function E(s,c){c.src?ah.ajax({url:c.src,async:false,dataType:"script"}):ah.globalEval(c.text||c.textContent||c.innerHTML||"");
c.parentNode&&c.parentNode.removeChild(c)
}function ap(s,c,K,F,G,w){var A=s.length;
if(typeof c==="object"){for(var J in c){ap(s,J,c[J],F,G,K)
}return s
}if(K!==I){F=!w&&F&&ah.isFunction(K);
for(J=0;
J<A;
J++){G(s[J],c,F?K.call(s[J],J,G(s[J],c)):K,w)
}return s
}return A?G(s[0],c):I
}function aF(){return(new Date).getTime()
}function ao(){return false
}function am(){return true
}function aK(s,c,w){w[0].type=s;
return ah.event.handle.apply(c,w)
}function ag(O){var N,L=[],J=[],K=arguments,F,G,s,A,w,c;
G=ah.data(this,"events");
if(!(O.liveFired===this||!G||!G.live||O.button&&O.type==="click")){O.liveFired=this;
var P=G.live.slice(0);
for(A=0;
A<P.length;
A++){G=P[A];
G.origType.replace(az,"")===O.type?J.push(G.selector):P.splice(A--,1)
}F=ah(O.target).closest(J,O.currentTarget);
w=0;
for(c=F.length;
w<c;
w++){for(A=0;
A<P.length;
A++){G=P[A];
if(F[w].selector===G.selector){s=F[w].elem;
J=null;
if(G.preType==="mouseenter"||G.preType==="mouseleave"){J=ah(O.relatedTarget).closest(G.selector)[0]
}if(!J||J!==s){L.push({elem:s,handleObj:G})
}}}}w=0;
for(c=L.length;
w<c;
w++){F=L[w];
O.currentTarget=F.elem;
O.data=F.handleObj.data;
O.handleObj=F.handleObj;
if(F.handleObj.origHandler.apply(F.elem,K)===false){N=false;
break
}}return N
}}function z(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")
}function l(c){return !c||!c.parentNode||c.parentNode.nodeType===11
}function bj(s,c){var w=0;
c.each(function(){if(this.nodeName===(s[w]&&s[w].nodeName)){var G=ah.data(s[w++]),J=ah.data(this,G);
if(G=G&&G.events){delete J.handle;
J.events={};
for(var A in G){for(var F in G[A]){ah.event.add(this,A,G[A][F],G[A][F].data)
}}}}})
}function a3(s,c,G){var A,F,w;
c=c&&c[0]?c[0].ownerDocument||c[0]:M;
if(s.length===1&&typeof s[0]==="string"&&s[0].length<512&&c===M&&!aP.test(s[0])&&(ah.support.checkClone||!ak.test(s[0]))){F=true;
if(w=ah.fragments[s[0]]){if(w!==1){A=w
}}}if(!A){A=c.createDocumentFragment();
ah.clean(s,c,A,G)
}if(F){ah.fragments[s[0]]=w?A:1
}return{fragment:A,cacheable:F}
}function aC(s,c){var w={};
ah.each(D.concat.apply([],D.slice(0,c)),function(){w[this]=s
});
return w
}function o(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false
}var ah=function(s,c){return new ah.fn.init(s,c)
},p=aO.jQuery,d=aO.$,M=aO.document,at,a7=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aT=/^.[^:#\[\.,]*$/,an=/\S/,H=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ax=navigator.userAgent,b=false,av=[],aB,a1=Object.prototype.toString,aV=Object.prototype.hasOwnProperty,ay=Array.prototype.push,au=Array.prototype.slice,a6=Array.prototype.indexOf;
ah.fn=ah.prototype={init:function(s,c){var A,w;
if(!s){return this
}if(s.nodeType){this.context=this[0]=s;
this.length=1;
return this
}if(s==="body"&&!c){this.context=M;
this[0]=M.body;
this.selector="body";
this.length=1;
return this
}if(typeof s==="string"){if((A=a7.exec(s))&&(A[1]||!c)){if(A[1]){w=c?c.ownerDocument||c:M;
if(s=q.exec(s)){if(ah.isPlainObject(c)){s=[M.createElement(s[1])];
ah.fn.attr.call(s,c,true)
}else{s=[w.createElement(s[1])]
}}else{s=a3([A[1]],[w]);
s=(s.cacheable?s.fragment.cloneNode(true):s.fragment).childNodes
}return ah.merge(this,s)
}else{if(c=M.getElementById(A[2])){if(c.id!==A[2]){return at.find(s)
}this.length=1;
this[0]=c
}this.context=M;
this.selector=s;
return this
}}else{if(!c&&/^\w+$/.test(s)){this.selector=s;
this.context=M;
s=M.getElementsByTagName(s);
return ah.merge(this,s)
}else{return !c||c.jquery?(c||at).find(s):ah(c).find(s)
}}}else{if(ah.isFunction(s)){return at.ready(s)
}}if(s.selector!==I){this.selector=s.selector;
this.context=s.context
}return ah.makeArray(s,this)
},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length
},toArray:function(){return au.call(this,0)
},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]
},pushStack:function(s,c,A){var w=ah();
ah.isArray(s)?ay.apply(w,s):ah.merge(w,s);
w.prevObject=this;
w.context=this.context;
if(c==="find"){w.selector=this.selector+(this.selector?" ":"")+A
}else{if(c){w.selector=this.selector+"."+c+"("+A+")"
}}return w
},each:function(s,c){return ah.each(this,s,c)
},ready:function(c){ah.bindReady();
if(ah.isReady){c.call(M,ah)
}else{av&&av.push(c)
}return this
},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)
},first:function(){return this.eq(0)
},last:function(){return this.eq(-1)
},slice:function(){return this.pushStack(au.apply(this,arguments),"slice",au.call(arguments).join(","))
},map:function(c){return this.pushStack(ah.map(this,function(s,w){return c.call(s,w,s)
}))
},end:function(){return this.prevObject||ah(null)
},push:ay,sort:[].sort,splice:[].splice};
ah.fn.init.prototype=ah.fn;
ah.extend=ah.fn.extend=function(){var s=arguments[0]||{},c=1,K=arguments.length,F=false,G,w,A,J;
if(typeof s==="boolean"){F=s;
s=arguments[1]||{};
c=2
}if(typeof s!=="object"&&!ah.isFunction(s)){s={}
}if(K===c){s=this;
--c
}for(;
c<K;
c++){if((G=arguments[c])!=null){for(w in G){A=s[w];
J=G[w];
if(s!==J){if(F&&J&&(ah.isPlainObject(J)||ah.isArray(J))){A=A&&(ah.isPlainObject(A)||ah.isArray(A))?A:ah.isArray(J)?[]:{};
s[w]=ah.extend(F,A,J)
}else{if(J!==I){s[w]=J
}}}}}}return s
};
ah.extend({noConflict:function(c){aO.$=d;
if(c){aO.jQuery=p
}return ah
},isReady:false,ready:function(){if(!ah.isReady){if(!M.body){return setTimeout(ah.ready,13)
}ah.isReady=true;
if(av){for(var s,c=0;
s=av[c++];
){s.call(M,ah)
}av=null
}ah.fn.triggerHandler&&ah(M).triggerHandler("ready")
}},bindReady:function(){if(!b){b=true;
if(M.readyState==="complete"){return ah.ready()
}if(M.addEventListener){M.addEventListener("DOMContentLoaded",aB,false);
aO.addEventListener("load",ah.ready,false)
}else{if(M.attachEvent){M.attachEvent("onreadystatechange",aB);
aO.attachEvent("onload",ah.ready);
var s=false;
try{s=aO.frameElement==null
}catch(c){}M.documentElement.doScroll&&s&&a0()
}}}},isFunction:function(c){return a1.call(c)==="[object Function]"
},isArray:function(c){return a1.call(c)==="[object Array]"
},isPlainObject:function(s){if(!s||a1.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false
}if(s.constructor&&!aV.call(s,"constructor")&&!aV.call(s.constructor.prototype,"isPrototypeOf")){return false
}var c;
for(c in s){}return c===I||aV.call(s,c)
},isEmptyObject:function(s){for(var c in s){return false
}return true
},error:function(c){throw c
},parseJSON:function(c){if(typeof c!=="string"||!c){return null
}c=ah.trim(c);
if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aO.JSON&&aO.JSON.parse?aO.JSON.parse(c):(new Function("return "+c))()
}else{ah.error("Invalid JSON: "+c)
}},noop:function(){},globalEval:function(s){if(s&&an.test(s)){var c=M.getElementsByTagName("head")[0]||M.documentElement,w=M.createElement("script");
w.type="text/javascript";
if(ah.support.scriptEval){w.appendChild(M.createTextNode(s))
}else{w.text=s
}c.insertBefore(w,c.firstChild);
c.removeChild(w)
}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()
},each:function(s,c,J){var F,G=0,w=s.length,A=w===I||ah.isFunction(s);
if(J){if(A){for(F in s){if(c.apply(s[F],J)===false){break
}}}else{for(;
G<w;
){if(c.apply(s[G++],J)===false){break
}}}}else{if(A){for(F in s){if(c.call(s[F],F,s[F])===false){break
}}}else{for(J=s[0];
G<w&&c.call(J,G,J)!==false;
J=s[++G]){}}}return s
},trim:function(c){return(c||"").replace(H,"")
},makeArray:function(s,c){c=c||[];
if(s!=null){s.length==null||typeof s==="string"||ah.isFunction(s)||typeof s!=="function"&&s.setInterval?ay.call(c,s):ah.merge(c,s)
}return c
},inArray:function(s,c){if(c.indexOf){return c.indexOf(s)
}for(var A=0,w=c.length;
A<w;
A++){if(c[A]===s){return A
}}return -1
},merge:function(s,c){var F=s.length,w=0;
if(typeof c.length==="number"){for(var A=c.length;
w<A;
w++){s[F++]=c[w]
}}else{for(;
c[w]!==I;
){s[F++]=c[w++]
}}s.length=F;
return s
},grep:function(s,c,G){for(var A=[],F=0,w=s.length;
F<w;
F++){!G!==!c(s[F],F)&&A.push(s[F])
}return A
},map:function(s,c,J){for(var F=[],G,w=0,A=s.length;
w<A;
w++){G=c(s[w],w,J);
if(G!=null){F[F.length]=G
}}return F.concat.apply([],F)
},guid:1,proxy:function(s,c,w){if(arguments.length===2){if(typeof c==="string"){w=s;
s=w[c];
c=I
}else{if(c&&!ah.isFunction(c)){w=c;
c=I
}}}if(!c&&s){c=function(){return s.apply(w||this,arguments)
}
}if(s){c.guid=s.guid=s.guid||c.guid||ah.guid++
}return c
},uaMatch:function(c){c=c.toLowerCase();
c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];
return{browser:c[1]||"",version:c[2]||"0"}
},browser:{}});
ax=ah.uaMatch(ax);
if(ax.browser){ah.browser[ax.browser]=true;
ah.browser.version=ax.version
}if(ah.browser.webkit){ah.browser.safari=true
}if(a6){ah.inArray=function(s,c){return a6.call(c,s)
}
}at=ah(M);
if(M.addEventListener){aB=function(){M.removeEventListener("DOMContentLoaded",aB,false);
ah.ready()
}
}else{if(M.attachEvent){aB=function(){if(M.readyState==="complete"){M.detachEvent("onreadystatechange",aB);
ah.ready()
}}
}}(function(){ah.support={};
var L=M.documentElement,K=M.createElement("script"),J=M.createElement("div"),F="script"+aF();
J.style.display="none";
J.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var G=J.getElementsByTagName("*"),w=J.getElementsByTagName("a")[0];
if(!(!G||!G.length||!w)){ah.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(w.getAttribute("style")),hrefNormalized:w.getAttribute("href")==="/a",opacity:/^0.55$/.test(w.style.opacity),cssFloat:!!w.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:M.createElement("select").appendChild(M.createElement("option")).selected,parentNode:J.removeChild(J.appendChild(M.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};
K.type="text/javascript";
try{K.appendChild(M.createTextNode("window."+F+"=1;"))
}catch(A){}L.insertBefore(K,L.firstChild);
if(aO[F]){ah.support.scriptEval=true;
delete aO[F]
}try{delete K.test
}catch(c){ah.support.deleteExpando=false
}L.removeChild(K);
if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function s(){ah.support.noCloneEvent=false;
J.detachEvent("onclick",s)
});
J.cloneNode(true).fireEvent("onclick")
}J=M.createElement("div");
J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";
L=M.createDocumentFragment();
L.appendChild(J.firstChild);
ah.support.checkClone=L.cloneNode(true).cloneNode(true).lastChild.checked;
ah(function(){var N=M.createElement("div");
N.style.width=N.style.paddingLeft="1px";
M.body.appendChild(N);
ah.boxModel=ah.support.boxModel=N.offsetWidth===2;
M.body.removeChild(N).style.display="none"
});
L=function(N){var P=M.createElement("div");
N="on"+N;
var O=N in P;
if(!O){P.setAttribute(N,"return;");
O=typeof P[N]==="function"
}return O
};
ah.support.submitBubbles=L("submit");
ah.support.changeBubbles=L("change");
L=K=J=G=w=null
}})();
ah.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};
var aH="jQuery"+aF(),e=0,aS={};
ah.extend({cache:{},expando:aH,noData:{embed:true,object:true,applet:true},data:function(s,c,F){if(!(s.nodeName&&ah.noData[s.nodeName.toLowerCase()])){s=s==aO?aS:s;
var w=s[aH],A=ah.cache;
if(!w&&typeof c==="string"&&F===I){return null
}w||(w=++e);
if(typeof c==="object"){s[aH]=w;
A[w]=ah.extend(true,{},c)
}else{if(!A[w]){s[aH]=w;
A[w]={}
}}s=A[w];
if(F!==I){s[c]=F
}return typeof c==="string"?s[c]:s
}},removeData:function(s,c){if(!(s.nodeName&&ah.noData[s.nodeName.toLowerCase()])){s=s==aO?aS:s;
var F=s[aH],w=ah.cache,A=w[F];
if(c){if(A){delete A[c];
ah.isEmptyObject(A)&&ah.removeData(s)
}}else{if(ah.support.deleteExpando){delete s[ah.expando]
}else{s.removeAttribute&&s.removeAttribute(ah.expando)
}delete w[F]
}}}});
ah.fn.extend({data:function(s,c){if(typeof s==="undefined"&&this.length){return ah.data(this[0])
}else{if(typeof s==="object"){return this.each(function(){ah.data(this,s)
})
}}var A=s.split(".");
A[1]=A[1]?"."+A[1]:"";
if(c===I){var w=this.triggerHandler("getData"+A[1]+"!",[A[0]]);
if(w===I&&this.length){w=ah.data(this[0],s)
}return w===I&&A[1]?this.data(A[0]):w
}else{return this.trigger("setData"+A[1]+"!",[A[0],c]).each(function(){ah.data(this,s,c)
})
}},removeData:function(c){return this.each(function(){ah.removeData(this,c)
})
}});
ah.extend({queue:function(s,c,A){if(s){c=(c||"fx")+"queue";
var w=ah.data(s,c);
if(!A){return w||[]
}if(!w||ah.isArray(A)){w=ah.data(s,c,ah.makeArray(A))
}else{w.push(A)
}return w
}},dequeue:function(s,c){c=c||"fx";
var A=ah.queue(s,c),w=A.shift();
if(w==="inprogress"){w=A.shift()
}if(w){c==="fx"&&A.unshift("inprogress");
w.call(s,function(){ah.dequeue(s,c)
})
}}});
ah.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;
s="fx"
}if(c===I){return ah.queue(this[0],s)
}return this.each(function(){var w=ah.queue(this,s,c);
s==="fx"&&w[0]!=="inprogress"&&ah.dequeue(this,s)
})
},dequeue:function(c){return this.each(function(){ah.dequeue(this,c)
})
},delay:function(s,c){s=ah.fx?ah.fx.speeds[s]||s:s;
c=c||"fx";
return this.queue(c,function(){var w=this;
setTimeout(function(){ah.dequeue(w,c)
},s)
})
},clearQueue:function(c){return this.queue(c||"fx",[])
}});
var be=/[\n\t]/g,U=/\s+/,a8=/\r/g,aM=/href|src|style/,aU=/(button|input)/i,aw=/(button|input|object|select|textarea)/i,S=/^(a|area)$/i,aY=/radio|checkbox/;
ah.fn.extend({attr:function(s,c){return ap(this,s,c,true,ah.attr)
},removeAttr:function(c){return this.each(function(){ah.attr(this,c,"");
this.nodeType===1&&this.removeAttribute(c)
})
},addClass:function(L){if(ah.isFunction(L)){return this.each(function(O){var N=ah(this);
N.addClass(L.call(this,O,N.attr("class")))
})
}if(L&&typeof L==="string"){for(var K=(L||"").split(U),J=0,F=this.length;
J<F;
J++){var G=this[J];
if(G.nodeType===1){if(G.className){for(var w=" "+G.className+" ",A=G.className,c=0,s=K.length;
c<s;
c++){if(w.indexOf(" "+K[c]+" ")<0){A+=" "+K[c]
}}G.className=ah.trim(A)
}else{G.className=L
}}}}return this
},removeClass:function(s){if(ah.isFunction(s)){return this.each(function(L){var N=ah(this);
N.removeClass(s.call(this,L,N.attr("class")))
})
}if(s&&typeof s==="string"||s===I){for(var c=(s||"").split(U),K=0,F=this.length;
K<F;
K++){var G=this[K];
if(G.nodeType===1&&G.className){if(s){for(var w=(" "+G.className+" ").replace(be," "),A=0,J=c.length;
A<J;
A++){w=w.replace(" "+c[A]+" "," ")
}G.className=ah.trim(w)
}else{G.className=""
}}}}return this
},toggleClass:function(s,c){var A=typeof s,w=typeof c==="boolean";
if(ah.isFunction(s)){return this.each(function(G){var F=ah(this);
F.toggleClass(s.call(this,G,F.attr("class"),c),c)
})
}return this.each(function(){if(A==="string"){for(var K,G=0,J=ah(this),L=c,F=s.split(U);
K=F[G++];
){L=w?L:!J.hasClass(K);
J[L?"addClass":"removeClass"](K)
}}else{if(A==="undefined"||A==="boolean"){this.className&&ah.data(this,"__className__",this.className);
this.className=this.className||s===false?"":ah.data(this,"__className__")||""
}}})
},hasClass:function(s){s=" "+s+" ";
for(var c=0,w=this.length;
c<w;
c++){if((" "+this[c].className+" ").replace(be," ").indexOf(s)>-1){return true
}}return false
},val:function(s){if(s===I){var c=this[0];
if(c){if(ah.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text
}if(ah.nodeName(c,"select")){var K=c.selectedIndex,F=[],G=c.options;
c=c.type==="select-one";
if(K<0){return null
}var w=c?K:0;
for(K=c?K+1:G.length;
w<K;
w++){var A=G[w];
if(A.selected){s=ah(A).val();
if(c){return s
}F.push(s)
}}return F
}if(aY.test(c.type)&&!ah.support.checkOn){return c.getAttribute("value")===null?"on":c.value
}return(c.value||"").replace(a8,"")
}return I
}var J=ah.isFunction(s);
return this.each(function(L){var P=ah(this),O=s;
if(this.nodeType===1){if(J){O=s.call(this,L,P.val())
}if(typeof O==="number"){O+=""
}if(ah.isArray(O)&&aY.test(this.type)){this.checked=ah.inArray(P.val(),O)>=0
}else{if(ah.nodeName(this,"select")){var N=ah.makeArray(O);
ah("option",this).each(function(){this.selected=ah.inArray(ah(this).val(),N)>=0
});
if(!N.length){this.selectedIndex=-1
}}else{this.value=O
}}}})
}});
ah.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(s,c,G,A){if(!s||s.nodeType===3||s.nodeType===8){return I
}if(A&&c in ah.attrFn){return ah(s)[c](G)
}A=s.nodeType!==1||!ah.isXMLDoc(s);
var F=G!==I;
c=A&&ah.props[c]||c;
if(s.nodeType===1){var w=aM.test(c);
if(c in s&&A&&!w){if(F){c==="type"&&aU.test(s.nodeName)&&s.parentNode&&ah.error("type property can't be changed");
s[c]=G
}if(ah.nodeName(s,"form")&&s.getAttributeNode(c)){return s.getAttributeNode(c).nodeValue
}if(c==="tabIndex"){return(c=s.getAttributeNode("tabIndex"))&&c.specified?c.value:aw.test(s.nodeName)||S.test(s.nodeName)&&s.href?0:I
}return s[c]
}if(!ah.support.style&&A&&c==="style"){if(F){s.style.cssText=""+G
}return s.style.cssText
}F&&s.setAttribute(c,""+G);
s=!ah.support.hrefNormalized&&A&&w?s.getAttribute(c,2):s.getAttribute(c);
return s===null?I:s
}return ah.style(s,c,G)
}});
var az=/\.(.*)$/,r=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s
})
};
ah.event={add:function(P,O,L,J){if(!(P.nodeType===3||P.nodeType===8)){if(P.setInterval&&P!==aO&&!P.frameElement){P=aO
}var K,F;
if(L.handler){K=L;
L=K.handler
}if(!L.guid){L.guid=ah.guid++
}if(F=ah.data(P)){var G=F.events=F.events||{},s=F.handle;
if(!s){F.handle=s=function(){return typeof ah!=="undefined"&&!ah.event.triggered?ah.event.handle.apply(s.elem,arguments):I
}
}s.elem=P;
O=O.split(" ");
for(var A,w=0,c;
A=O[w++];
){F=K?ah.extend({},K):{handler:L,data:J};
if(A.indexOf(".")>-1){c=A.split(".");
A=c.shift();
F.namespace=c.slice(0).sort().join(".")
}else{c=[];
F.namespace=""
}F.type=A;
F.guid=L.guid;
var Q=G[A],N=ah.event.special[A]||{};
if(!Q){Q=G[A]=[];
if(!N.setup||N.setup.call(P,J,c,s)===false){if(P.addEventListener){P.addEventListener(A,s,false)
}else{P.attachEvent&&P.attachEvent("on"+A,s)
}}}if(N.add){N.add.call(P,F);
if(!F.handler.guid){F.handler.guid=L.guid
}}Q.push(F);
ah.event.global[A]=true
}P=null
}}},global:{},remove:function(R,Q,O,L){if(!(R.nodeType===3||R.nodeType===8)){var N,J=0,K,A,G,F,c,T,P=ah.data(R),s=P&&P.events;
if(P&&s){if(Q&&Q.type){O=Q.handler;
Q=Q.type
}if(!Q||typeof Q==="string"&&Q.charAt(0)==="."){Q=Q||"";
for(N in s){ah.event.remove(R,N+Q)
}}else{for(Q=Q.split(" ");
N=Q[J++];
){F=N;
K=N.indexOf(".")<0;
A=[];
if(!K){A=N.split(".");
N=A.shift();
G=new RegExp("(^|\\.)"+ah.map(A.slice(0).sort(),r).join("\\.(?:.*\\.)?")+"(\\.|$)")
}if(c=s[N]){if(O){F=ah.event.special[N]||{};
for(w=L||0;
w<c.length;
w++){T=c[w];
if(O.guid===T.guid){if(K||G.test(T.namespace)){L==null&&c.splice(w--,1);
F.remove&&F.remove.call(R,T)
}if(L!=null){break
}}}if(c.length===0||L!=null&&c.length===1){if(!F.teardown||F.teardown.call(R,A)===false){aG(R,N,P.handle)
}delete s[N]
}}else{for(var w=0;
w<c.length;
w++){T=c[w];
if(K||G.test(T.namespace)){ah.event.remove(R,F,T.handler,w);
c.splice(w--,1)
}}}}}if(ah.isEmptyObject(s)){if(Q=P.handle){Q.elem=null
}delete P.events;
delete P.handle;
ah.isEmptyObject(P)&&ah.removeData(R)
}}}}},trigger:function(N,L,K,G){var J=N.type||N;
if(!G){N=typeof N==="object"?N[aH]?N:ah.extend(ah.Event(J),N):ah.Event(J);
if(J.indexOf("!")>=0){N.type=J=J.slice(0,-1);
N.exclusive=true
}if(!K){N.stopPropagation();
ah.event.global[J]&&ah.each(ah.cache,function(){this.events&&this.events[J]&&ah.event.trigger(N,L,this.handle.elem)
})
}if(!K||K.nodeType===3||K.nodeType===8){return I
}N.result=I;
N.target=K;
L=ah.makeArray(L);
L.unshift(N)
}N.currentTarget=K;
(G=ah.data(K,"handle"))&&G.apply(K,L);
G=K.parentNode||K.ownerDocument;
try{if(!(K&&K.nodeName&&ah.noData[K.nodeName.toLowerCase()])){if(K["on"+J]&&K["on"+J].apply(K,L)===false){N.result=false
}}}catch(A){}if(!N.isPropagationStopped()&&G){ah.event.trigger(N,L,G,true)
}else{if(!N.isDefaultPrevented()){G=N.target;
var F,c=ah.nodeName(G,"a")&&J==="click",w=ah.event.special[J]||{};
if((!w._default||w._default.call(K,N)===false)&&!c&&!(G&&G.nodeName&&ah.noData[G.nodeName.toLowerCase()])){try{if(G[J]){if(F=G["on"+J]){G["on"+J]=null
}ah.event.triggered=true;
G[J]()
}}catch(s){}if(F){G["on"+J]=F
}ah.event.triggered=false
}}}},handle:function(s){var c,J,F,G;
s=arguments[0]=ah.event.fix(s||aO.event);
s.currentTarget=this;
c=s.type.indexOf(".")<0&&!s.exclusive;
if(!c){J=s.type.split(".");
s.type=J.shift();
F=new RegExp("(^|\\.)"+J.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")
}G=ah.data(this,"events");
J=G[s.type];
if(G&&J){J=J.slice(0);
G=0;
for(var w=J.length;
G<w;
G++){var A=J[G];
if(c||F.test(A.namespace)){s.handler=A.handler;
s.data=A.data;
s.handleObj=A;
A=A.handler.apply(this,arguments);
if(A!==I){s.result=A;
if(A===false){s.preventDefault();
s.stopPropagation()
}}if(s.isImmediatePropagationStopped()){break
}}}}return s.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(s){if(s[aH]){return s
}var c=s;
s=ah.Event(c);
for(var A=this.props.length,w;
A;
){w=this.props[--A];
s[w]=c[w]
}if(!s.target){s.target=s.srcElement||M
}if(s.target.nodeType===3){s.target=s.target.parentNode
}if(!s.relatedTarget&&s.fromElement){s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement
}if(s.pageX==null&&s.clientX!=null){c=M.documentElement;
A=M.body;
s.pageX=s.clientX+(c&&c.scrollLeft||A&&A.scrollLeft||0)-(c&&c.clientLeft||A&&A.clientLeft||0);
s.pageY=s.clientY+(c&&c.scrollTop||A&&A.scrollTop||0)-(c&&c.clientTop||A&&A.clientTop||0)
}if(!s.which&&(s.charCode||s.charCode===0?s.charCode:s.keyCode)){s.which=s.charCode||s.keyCode
}if(!s.metaKey&&s.ctrlKey){s.metaKey=s.ctrlKey
}if(!s.which&&s.button!==I){s.which=s.button&1?1:s.button&2?3:s.button&4?2:0
}return s
},guid:100000000,proxy:ah.proxy,special:{ready:{setup:ah.bindReady,teardown:ah.noop},live:{add:function(c){ah.event.add(this,c.origType,ah.extend({},c,{handler:ag}))
},remove:function(s){var c=true,w=s.origType.replace(az,"");
ah.each(ah.data(this,"events").live||[],function(){if(w===this.origType.replace(az,"")){return c=false
}});
c&&ah.event.remove(this,s.origType,ag)
}},beforeunload:{setup:function(s,c,w){if(this.setInterval){this.onbeforeunload=w
}return false
},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null
}}}}};
var aG=M.removeEventListener?function(s,c,w){s.removeEventListener(c,w,false)
}:function(s,c,w){s.detachEvent("on"+c,w)
};
ah.Event=function(c){if(!this.preventDefault){return new ah.Event(c)
}if(c&&c.type){this.originalEvent=c;
this.type=c.type
}else{this.type=c
}this.timeStamp=aF();
this[aH]=true
};
ah.Event.prototype={preventDefault:function(){this.isDefaultPrevented=am;
var c=this.originalEvent;
if(c){c.preventDefault&&c.preventDefault();
c.returnValue=false
}},stopPropagation:function(){this.isPropagationStopped=am;
var c=this.originalEvent;
if(c){c.stopPropagation&&c.stopPropagation();
c.cancelBubble=true
}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=am;
this.stopPropagation()
},isDefaultPrevented:ao,isPropagationStopped:ao,isImmediatePropagationStopped:ao};
var ae=function(s){var c=s.relatedTarget;
try{for(;
c&&c!==this;
){c=c.parentNode
}if(c!==this){s.type=s.data;
ah.event.handle.apply(this,arguments)
}}catch(w){}},x=function(c){c.type=c.data;
ah.event.handle.apply(this,arguments)
};
ah.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ah.event.special[s]={setup:function(w){ah.event.add(this,c,w&&w.selector?x:ae,s)
},teardown:function(w){ah.event.remove(this,c,w&&w.selector?x:ae)
}}
});
if(!ah.support.submitBubbles){ah.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ah.event.add(this,"click.specialSubmit",function(s){var c=s.target,w=c.type;
if((w==="submit"||w==="image")&&ah(c).closest("form").length){return aK("submit",this,arguments)
}});
ah.event.add(this,"keypress.specialSubmit",function(s){var c=s.target,w=c.type;
if((w==="text"||w==="password")&&ah(c).closest("form").length&&s.keyCode===13){return aK("submit",this,arguments)
}})
}else{return false
}},teardown:function(){ah.event.remove(this,".specialSubmit")
}}
}if(!ah.support.changeBubbles){var t=/textarea|input|select/i,g,j=function(s){var c=s.type,w=s.value;
if(c==="radio"||c==="checkbox"){w=s.checked
}else{if(c==="select-multiple"){w=s.selectedIndex>-1?ah.map(s.options,function(A){return A.selected
}).join("-"):""
}else{if(s.nodeName.toLowerCase()==="select"){w=s.selectedIndex
}}}return w
},bd=function(s,c){var F=s.target,w,A;
if(!(!t.test(F.nodeName)||F.readOnly)){w=ah.data(F,"_change_data");
A=j(F);
if(s.type!=="focusout"||F.type!=="radio"){ah.data(F,"_change_data",A)
}if(!(w===I||A===w)){if(w!=null||A){s.type="change";
return ah.event.trigger(s,c,F)
}}}};
ah.event.special.change={filters:{focusout:bd,click:function(s){var c=s.target,w=c.type;
if(w==="radio"||w==="checkbox"||c.nodeName.toLowerCase()==="select"){return bd.call(this,s)
}},keydown:function(s){var c=s.target,w=c.type;
if(s.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||s.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return bd.call(this,s)
}},beforeactivate:function(c){c=c.target;
ah.data(c,"_change_data",j(c))
}},setup:function(){if(this.type==="file"){return false
}for(var c in g){ah.event.add(this,c+".specialChange",g[c])
}return t.test(this.nodeName)
},teardown:function(){ah.event.remove(this,".specialChange");
return t.test(this.nodeName)
}};
g=ah.event.special.change.filters
}M.addEventListener&&ah.each({focus:"focusin",blur:"focusout"},function(s,c){function w(A){A=ah.event.fix(A);
A.type=c;
return ah.event.handle.call(this,A)
}ah.event.special[c]={setup:function(){this.addEventListener(s,w,true)
},teardown:function(){this.removeEventListener(s,w,true)
}}
});
ah.each(["bind","one"],function(s,c){ah.fn[c]=function(K,F,G){if(typeof K==="object"){for(var w in K){this[c](w,F,K[w],G)
}return this
}if(ah.isFunction(F)){G=F;
F=I
}var A=c==="one"?ah.proxy(G,function(L){ah(this).unbind(L,A);
return G.apply(this,arguments)
}):G;
if(K==="unload"&&c!=="one"){this.one(K,F,G)
}else{w=0;
for(var J=this.length;
w<J;
w++){ah.event.add(this[w],K,A,F)
}}return this
}
});
ah.fn.extend({unbind:function(s,c){if(typeof s==="object"&&!s.preventDefault){for(var A in s){this.unbind(A,s[A])
}}else{A=0;
for(var w=this.length;
A<w;
A++){ah.event.remove(this[A],s,c)
}}return this
},delegate:function(s,c,A,w){return this.live(c,A,w,s)
},undelegate:function(s,c,w){return arguments.length===0?this.unbind("live"):this.die(c,null,w,s)
},trigger:function(s,c){return this.each(function(){ah.event.trigger(s,c,this)
})
},triggerHandler:function(s,c){if(this[0]){s=ah.Event(s);
s.preventDefault();
s.stopPropagation();
ah.event.trigger(s,c,this[0]);
return s.result
}},toggle:function(s){for(var c=arguments,w=1;
w<c.length;
){ah.proxy(s,c[w++])
}return this.click(ah.proxy(s,function(A){var F=(ah.data(this,"lastToggle"+s.guid)||0)%w;
ah.data(this,"lastToggle"+s.guid,F+1);
A.preventDefault();
return c[F].apply(this,arguments)||false
}))
},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)
}});
var bh={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
ah.each(["live","die"],function(s,c){ah.fn[c]=function(O,L,N,J){var K,A=0,G,F,w=J||this.selector,P=J?this:ah(this.context);
if(ah.isFunction(L)){N=L;
L=I
}for(O=(O||"").split(" ");
(K=O[A++])!=null;
){J=az.exec(K);
G="";
if(J){G=J[0];
K=K.replace(az,"")
}if(K==="hover"){O.push("mouseenter"+G,"mouseleave"+G)
}else{F=K;
if(K==="focus"||K==="blur"){O.push(bh[K]+G);
K+=G
}else{K=(bh[K]||K)+G
}c==="live"?P.each(function(){ah.event.add(this,z(K,w),{data:L,selector:w,handler:N,origType:K,origHandler:N,preType:F})
}):P.unbind(z(K,w),N)
}}return this
}
});
ah.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(s,c){ah.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)
};
if(ah.attrFn){ah.attrFn[c]=true
}});
aO.attachEvent&&!aO.addEventListener&&aO.attachEvent("onunload",function(){for(var s in ah.cache){if(ah.cache[s].handle){try{ah.event.remove(ah.cache[s].handle.elem)
}catch(c){}}}});
(function(){function W(ab){for(var aa="",Z,Y=0;
ab[Y];
Y++){Z=ab[Y];
if(Z.nodeType===3||Z.nodeType===4){aa+=Z.nodeValue
}else{if(Z.nodeType!==8){aa+=W(Z.childNodes)
}}}return aa
}function V(bb,ba,ab,aa,Y,Z){Y=0;
for(var bm=aa.length;
Y<bm;
Y++){var bn=aa[Y];
if(bn){bn=bn[bb];
for(var bl=false;
bn;
){if(bn.sizcache===ab){bl=aa[bn.sizset];
break
}if(bn.nodeType===1&&!Z){bn.sizcache=ab;
bn.sizset=Y
}if(bn.nodeName.toLowerCase()===ba){bl=bn;
break
}bn=bn[bb]
}aa[Y]=bl
}}}function T(bb,ba,ab,aa,Y,Z){Y=0;
for(var bm=aa.length;
Y<bm;
Y++){var bn=aa[Y];
if(bn){bn=bn[bb];
for(var bl=false;
bn;
){if(bn.sizcache===ab){bl=aa[bn.sizset];
break
}if(bn.nodeType===1){if(!Z){bn.sizcache=ab;
bn.sizset=Y
}if(typeof ba!=="string"){if(bn===ba){bl=true;
break
}}else{if(N.filter(ba,[bn]).length>0){bl=bn;
break
}}}bn=bn[bb]
}aa[Y]=bl
}}}var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,R=0,O=Object.prototype.toString,P=false,K=true;
[0,0].sort(function(){K=false;
return 0
});
var N=function(bm,bl,ba,ab){ba=ba||[];
var Z=bl=bl||M;
if(bl.nodeType!==1&&bl.nodeType!==9){return[]
}if(!bm||typeof bm!=="string"){return ba
}for(var aa=[],br,bs,bo,bb,bq=true,bn=s(bl),bp=bm;
(Q.exec(""),br=Q.exec(bp))!==null;
){bp=br[3];
aa.push(br[1]);
if(br[2]){bb=br[3];
break
}}if(aa.length>1&&G.exec(bm)){if(aa.length===2&&L.relative[aa[0]]){bs=X(aa[0]+aa[1],bl)
}else{for(bs=L.relative[aa[0]]?[bl]:N(aa.shift(),bl);
aa.length;
){bm=aa.shift();
if(L.relative[bm]){bm+=aa.shift()
}bs=X(bm,bs)
}}}else{if(!ab&&aa.length>1&&bl.nodeType===9&&!bn&&L.match.ID.test(aa[0])&&!L.match.ID.test(aa[aa.length-1])){br=N.find(aa.shift(),bl,bn);
bl=br.expr?N.filter(br.expr,br.set)[0]:br.set[0]
}if(bl){br=ab?{expr:aa.pop(),set:c(ab)}:N.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bl.parentNode?bl.parentNode:bl,bn);
bs=br.expr?N.filter(br.expr,br.set):br.set;
if(aa.length>0){bo=c(bs)
}else{bq=false
}for(;
aa.length;
){var Y=aa.pop();
br=Y;
if(L.relative[Y]){br=aa.pop()
}else{Y=""
}if(br==null){br=bl
}L.relative[Y](bo,br,bn)
}}else{bo=[]
}}bo||(bo=bs);
bo||N.error(Y||bm);
if(O.call(bo)==="[object Array]"){if(bq){if(bl&&bl.nodeType===1){for(bm=0;
bo[bm]!=null;
bm++){if(bo[bm]&&(bo[bm]===true||bo[bm].nodeType===1&&A(bl,bo[bm]))){ba.push(bs[bm])
}}}else{for(bm=0;
bo[bm]!=null;
bm++){bo[bm]&&bo[bm].nodeType===1&&ba.push(bs[bm])
}}}else{ba.push.apply(ba,bo)
}}else{c(bo,ba)
}if(bb){N(bb,Z,ba,ab);
N.uniqueSort(ba)
}return ba
};
N.uniqueSort=function(Z){if(J){P=K;
Z.sort(J);
if(P){for(var Y=1;
Y<Z.length;
Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)
}}}return Z
};
N.matches=function(Z,Y){return N(Z,null,null,Y)
};
N.find=function(bb,ba,ab){var aa,Y;
if(!bb){return[]
}for(var Z=0,bm=L.order.length;
Z<bm;
Z++){var bn=L.order[Z];
if(Y=L.leftMatch[bn].exec(bb)){var bl=Y[1];
Y.splice(1,1);
if(bl.substr(bl.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");
aa=L.find[bn](Y,ba,ab);
if(aa!=null){bb=bb.replace(L.match[bn],"");
break
}}}}aa||(aa=ba.getElementsByTagName("*"));
return{set:aa,expr:bb}
};
N.filter=function(bn,bm,bb,ab){for(var Z=bn,aa=[],bt=bm,bu,bq,bl=bm&&bm[0]&&s(bm[0]);
bn&&bm.length;
){for(var bs in L.filter){if((bu=L.leftMatch[bs].exec(bn))!=null&&bu[2]){var bo=L.filter[bs],br,Y;
Y=bu[1];
bq=false;
bu.splice(1,1);
if(Y.substr(Y.length-1)!=="\\"){if(bt===aa){aa=[]
}if(L.preFilter[bs]){if(bu=L.preFilter[bs](bu,bt,bb,aa,ab,bl)){if(bu===true){continue
}}else{bq=br=true
}}if(bu){for(var ba=0;
(Y=bt[ba])!=null;
ba++){if(Y){br=bo(Y,bu,ba,bt);
var bp=ab^!!br;
if(bb&&br!=null){if(bp){bq=true
}else{bt[ba]=false
}}else{if(bp){aa.push(Y);
bq=true
}}}}}if(br!==I){bb||(bt=aa);
bn=bn.replace(L.match[bs],"");
if(!bq){return[]
}break
}}}}if(bn===Z){if(bq==null){N.error(bn)
}else{break
}}Z=bn
}return bt
};
N.error=function(Y){throw"Syntax error, unrecognized expression: "+Y
};
var L=N.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(Y){return Y.getAttribute("href")
}},relative:{"+":function(ab,aa){var Z=typeof aa==="string",Y=Z&&!/\W/.test(aa);
Z=Z&&!Y;
if(Y){aa=aa.toLowerCase()
}Y=0;
for(var ba=ab.length,bb;
Y<ba;
Y++){if(bb=ab[Y]){for(;
(bb=bb.previousSibling)&&bb.nodeType!==1;
){}ab[Y]=Z||bb&&bb.nodeName.toLowerCase()===aa?bb||false:bb===aa
}}Z&&N.filter(aa,ab,true)
},">":function(ab,aa){var Z=typeof aa==="string";
if(Z&&!/\W/.test(aa)){aa=aa.toLowerCase();
for(var Y=0,ba=ab.length;
Y<ba;
Y++){var bb=ab[Y];
if(bb){Z=bb.parentNode;
ab[Y]=Z.nodeName.toLowerCase()===aa?Z:false
}}}else{Y=0;
for(ba=ab.length;
Y<ba;
Y++){if(bb=ab[Y]){ab[Y]=Z?bb.parentNode:bb.parentNode===aa
}}Z&&N.filter(aa,ab,true)
}},"":function(ab,aa,Z){var Y=R++,ba=T;
if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();
ba=V
}ba("parentNode",aa,Y,ab,bb,Z)
},"~":function(ab,aa,Z){var Y=R++,ba=T;
if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();
ba=V
}ba("previousSibling",aa,Y,ab,bb,Z)
}},find:{ID:function(aa,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y){return(aa=Z.getElementById(aa[1]))?[aa]:[]
}},NAME:function(ab,aa){if(typeof aa.getElementsByName!=="undefined"){var Z=[];
aa=aa.getElementsByName(ab[1]);
for(var Y=0,ba=aa.length;
Y<ba;
Y++){aa[Y].getAttribute("name")===ab[1]&&Z.push(aa[Y])
}return Z.length===0?null:Z
}},TAG:function(Z,Y){return Y.getElementsByTagName(Z[1])
}},preFilter:{CLASS:function(ba,ab,Z,Y,bb,bl){ba=" "+ba[1].replace(/\\/g,"")+" ";
if(bl){return ba
}bl=0;
for(var aa;
(aa=ab[bl])!=null;
bl++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)
}else{if(Z){ab[bl]=false
}}}}return false
},ID:function(Y){return Y[1].replace(/\\/g,"")
},TAG:function(Y){return Y[1].toLowerCase()
},CHILD:function(Z){if(Z[1]==="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2]==="even"&&"2n"||Z[2]==="odd"&&"2n+1"||!/\D/.test(Z[2])&&"0n+"+Z[2]||Z[2]);
Z[2]=Y[1]+(Y[2]||1)-0;
Z[3]=Y[3]-0
}Z[0]=R++;
return Z
},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");
if(!bb&&L.attrMap[aa]){ab[1]=L.attrMap[aa]
}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "
}return ab
},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((Q.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=N(ab[3],null,null,aa)
}else{ab=N.filter(ab[3],aa,Z,true^ba);
Z||Y.push.apply(Y,ab);
return false
}}else{if(L.match.POS.test(ab[0])||L.match.CHILD.test(ab[0])){return true
}}return ab
},POS:function(Y){Y.unshift(true);
return Y
}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"
},disabled:function(Y){return Y.disabled===true
},checked:function(Y){return Y.checked===true
},selected:function(Y){return Y.selected===true
},parent:function(Y){return !!Y.firstChild
},empty:function(Y){return !Y.firstChild
},has:function(aa,Z,Y){return !!N(Y[3],aa).length
},header:function(Y){return/h\d/i.test(Y.nodeName)
},text:function(Y){return"text"===Y.type
},radio:function(Y){return"radio"===Y.type
},checkbox:function(Y){return"checkbox"===Y.type
},file:function(Y){return"file"===Y.type
},password:function(Y){return"password"===Y.type
},submit:function(Y){return"submit"===Y.type
},image:function(Y){return"image"===Y.type
},reset:function(Y){return"reset"===Y.type
},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"
},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)
}},setFilters:{first:function(Z,Y){return Y===0
},last:function(ab,aa,Z,Y){return aa===Y.length-1
},even:function(Z,Y){return Y%2===0
},odd:function(Z,Y){return Y%2===1
},lt:function(aa,Z,Y){return Z<Y[3]-0
},gt:function(aa,Z,Y){return Z>Y[3]-0
},nth:function(aa,Z,Y){return Y[3]-0===Z
},eq:function(aa,Z,Y){return Y[3]-0===Z
}},filter:{PSEUDO:function(ab,aa,Z,Y){var ba=aa[1],bb=L.filters[ba];
if(bb){return bb(ab,Z,aa,Y)
}else{if(ba==="contains"){return(ab.textContent||ab.innerText||W([ab])||"").indexOf(aa[3])>=0
}else{if(ba==="not"){aa=aa[3];
Z=0;
for(Y=aa.length;
Z<Y;
Z++){if(aa[Z]===ab){return false
}}return true
}else{N.error("Syntax error, unrecognized expression: "+ba)
}}}},CHILD:function(ba,ab){var Z=ab[1],Y=ba;
switch(Z){case"only":case"first":for(;
Y=Y.previousSibling;
){if(Y.nodeType===1){return false
}}if(Z==="first"){return true
}Y=ba;
case"last":for(;
Y=Y.nextSibling;
){if(Y.nodeType===1){return false
}}return true;
case"nth":Z=ab[2];
var bb=ab[3];
if(Z===1&&bb===0){return true
}ab=ab[0];
var bl=ba.parentNode;
if(bl&&(bl.sizcache!==ab||!ba.nodeIndex)){var aa=0;
for(Y=bl.firstChild;
Y;
Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa
}}bl.sizcache=ab
}ba=ba.nodeIndex-bb;
return Z===0?ba===0:ba%Z===0&&ba/Z>=0
}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y
},TAG:function(Z,Y){return Y==="*"&&Z.nodeType===1||Z.nodeName.toLowerCase()===Y
},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1
},ATTR:function(ab,aa){var Z=aa[1];
ab=L.attrHandle[Z]?L.attrHandle[Z](ab):ab[Z]!=null?ab[Z]:ab.getAttribute(Z);
Z=ab+"";
var Y=aa[2];
aa=aa[4];
return ab==null?Y==="!=":Y==="="?Z===aa:Y==="*="?Z.indexOf(aa)>=0:Y==="~="?(" "+Z+" ").indexOf(aa)>=0:!aa?Z&&ab!==false:Y==="!="?Z!==aa:Y==="^="?Z.indexOf(aa)===0:Y==="$="?Z.substr(Z.length-aa.length)===aa:Y==="|="?Z===aa||Z.substr(0,aa.length+1)===aa+"-":false
},POS:function(ab,aa,Z,Y){var ba=L.setFilters[aa[2]];
if(ba){return ba(ab,Z,aa,Y)
}}}},G=L.match.POS;
for(var w in L.match){L.match[w]=new RegExp(L.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);
L.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+L.match[w].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)
}))
}var c=function(Z,Y){Z=Array.prototype.slice.call(Z,0);
if(Y){Y.push.apply(Y,Z);
return Y
}return Z
};
try{Array.prototype.slice.call(M.documentElement.childNodes,0)
}catch(F){c=function(ab,aa){aa=aa||[];
if(O.call(ab)==="[object Array]"){Array.prototype.push.apply(aa,ab)
}else{if(typeof ab.length==="number"){for(var Z=0,Y=ab.length;
Z<Y;
Z++){aa.push(ab[Z])
}}else{for(Z=0;
ab[Z];
Z++){aa.push(ab[Z])
}}}return aa
}
}var J;
if(M.documentElement.compareDocumentPosition){J=function(Z,Y){if(!Z.compareDocumentPosition||!Y.compareDocumentPosition){if(Z==Y){P=true
}return Z.compareDocumentPosition?-1:1
}Z=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;
if(Z===0){P=true
}return Z
}
}else{if("sourceIndex" in M.documentElement){J=function(Z,Y){if(!Z.sourceIndex||!Y.sourceIndex){if(Z==Y){P=true
}return Z.sourceIndex?-1:1
}Z=Z.sourceIndex-Y.sourceIndex;
if(Z===0){P=true
}return Z
}
}else{if(M.createRange){J=function(ab,aa){if(!ab.ownerDocument||!aa.ownerDocument){if(ab==aa){P=true
}return ab.ownerDocument?-1:1
}var Z=ab.ownerDocument.createRange(),Y=aa.ownerDocument.createRange();
Z.setStart(ab,0);
Z.setEnd(ab,0);
Y.setStart(aa,0);
Y.setEnd(aa,0);
ab=Z.compareBoundaryPoints(Range.START_TO_END,Y);
if(ab===0){P=true
}return ab
}
}}}(function(){var aa=M.createElement("div"),Z="script"+(new Date).getTime();
aa.innerHTML="<a name='"+Z+"'/>";
var Y=M.documentElement;
Y.insertBefore(aa,Y.firstChild);
if(M.getElementById(Z)){L.find.ID=function(ab,ba,bb){if(typeof ba.getElementById!=="undefined"&&!bb){return(ba=ba.getElementById(ab[1]))?ba.id===ab[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===ab[1]?[ba]:I:[]
}};
L.filter.ID=function(ab,ba){var bb=typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id");
return ab.nodeType===1&&bb&&bb.nodeValue===ba
}
}Y.removeChild(aa);
Y=aa=null
})();
(function(){var Y=M.createElement("div");
Y.appendChild(M.createComment(""));
if(Y.getElementsByTagName("*").length>0){L.find.TAG=function(ab,aa){aa=aa.getElementsByTagName(ab[1]);
if(ab[1]==="*"){ab=[];
for(var Z=0;
aa[Z];
Z++){aa[Z].nodeType===1&&ab.push(aa[Z])
}aa=ab
}return aa
}
}Y.innerHTML="<a href='#'></a>";
if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){L.attrHandle.href=function(Z){return Z.getAttribute("href",2)
}
}Y=null
})();
M.querySelectorAll&&function(){var aa=N,Z=M.createElement("div");
Z.innerHTML="<p class='TEST'></p>";
if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){N=function(ab,bl,bm,ba){bl=bl||M;
if(!ba&&bl.nodeType===9&&!s(bl)){try{return c(bl.querySelectorAll(ab),bm)
}catch(bb){}}return aa(ab,bl,bm,ba)
};
for(var Y in aa){N[Y]=aa[Y]
}Z=null
}}();
(function(){var Y=M.createElement("div");
Y.innerHTML="<div class='test e'></div><div class='test'></div>";
if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";
if(Y.getElementsByClassName("e").length!==1){L.order.splice(1,0,"CLASS");
L.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])
}};
Y=null
}}})();
var A=M.compareDocumentPosition?function(Z,Y){return !!(Z.compareDocumentPosition(Y)&16)
}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)
},s=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false
},X=function(ab,aa){var Z=[],Y="",ba;
for(aa=aa.nodeType?[aa]:aa;
ba=L.match.PSEUDO.exec(ab);
){Y+=ba[0];
ab=ab.replace(L.match.PSEUDO,"")
}ab=L.relative[ab]?ab+"*":ab;
ba=0;
for(var bb=aa.length;
ba<bb;
ba++){N(ab,aa[ba],Z)
}return N.filter(Y,Z)
};
ah.find=N;
ah.expr=N.selectors;
ah.expr[":"]=ah.expr.filters;
ah.unique=N.uniqueSort;
ah.text=W;
ah.isXMLDoc=s;
ah.contains=A
})();
var f=/Until$/,a9=/^(?:parents|prevUntil|prevAll)/,aW=/,/;
au=Array.prototype.slice;
var aL=function(s,c,A){if(ah.isFunction(c)){return ah.grep(s,function(G,F){return !!c.call(G,F,G)===A
})
}else{if(c.nodeType){return ah.grep(s,function(F){return F===c===A
})
}else{if(typeof c==="string"){var w=ah.grep(s,function(F){return F.nodeType===1
});
if(aT.test(c)){return ah.filter(c,w,!A)
}else{c=ah.filter(c,w)
}}}}return ah.grep(s,function(F){return ah.inArray(F,c)>=0===A
})
};
ah.fn.extend({find:function(s){for(var c=this.pushStack("","find",s),J=0,F=0,G=this.length;
F<G;
F++){J=c.length;
ah.find(s,this[F],c);
if(F>0){for(var w=J;
w<c.length;
w++){for(var A=0;
A<J;
A++){if(c[A]===c[w]){c.splice(w--,1);
break
}}}}}return c
},has:function(s){var c=ah(s);
return this.filter(function(){for(var A=0,w=c.length;
A<w;
A++){if(ah.contains(this,c[A])){return true
}}})
},not:function(c){return this.pushStack(aL(this,c,false),"not",c)
},filter:function(c){return this.pushStack(aL(this,c,true),"filter",c)
},is:function(c){return !!c&&ah.filter(c,this).length>0
},closest:function(L,K){if(ah.isArray(L)){var J=[],F=this[0],G,w={},A;
if(F&&L.length){G=0;
for(var c=L.length;
G<c;
G++){A=L[G];
w[A]||(w[A]=ah.expr.match.POS.test(A)?ah(A,K||this.context):A)
}for(;
F&&F.ownerDocument&&F!==K;
){for(A in w){G=w[A];
if(G.jquery?G.index(F)>-1:ah(F).is(G)){J.push({selector:A,elem:F});
delete w[A]
}}F=F.parentNode
}}return J
}var s=ah.expr.match.POS.test(L)?ah(L,K||this.context):null;
return this.map(function(O,N){for(;
N&&N.ownerDocument&&N!==K;
){if(s?s.index(N)>-1:ah(N).is(L)){return N
}N=N.parentNode
}return null
})
},index:function(c){if(!c||typeof c==="string"){return ah.inArray(this[0],c?ah(c):this.parent().children())
}return ah.inArray(c.jquery?c[0]:c,this)
},add:function(s,c){s=typeof s==="string"?ah(s,c||this.context):ah.makeArray(s);
c=ah.merge(this.get(),s);
return this.pushStack(l(s[0])||l(c[0])?c:ah.unique(c))
},andSelf:function(){return this.add(this.prevObject)
}});
ah.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null
},parents:function(c){return ah.dir(c,"parentNode")
},parentsUntil:function(s,c,w){return ah.dir(s,"parentNode",w)
},next:function(c){return ah.nth(c,2,"nextSibling")
},prev:function(c){return ah.nth(c,2,"previousSibling")
},nextAll:function(c){return ah.dir(c,"nextSibling")
},prevAll:function(c){return ah.dir(c,"previousSibling")
},nextUntil:function(s,c,w){return ah.dir(s,"nextSibling",w)
},prevUntil:function(s,c,w){return ah.dir(s,"previousSibling",w)
},siblings:function(c){return ah.sibling(c.parentNode.firstChild,c)
},children:function(c){return ah.sibling(c.firstChild)
},contents:function(c){return ah.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ah.makeArray(c.childNodes)
}},function(s,c){ah.fn[s]=function(F,w){var A=ah.map(this,c,F);
f.test(s)||(w=F);
if(w&&typeof w==="string"){A=ah.filter(w,A)
}A=this.length>1?ah.unique(A):A;
if((this.length>1||aW.test(w))&&a9.test(s)){A=A.reverse()
}return this.pushStack(A,s,au.call(arguments).join(","))
}
});
ah.extend({filter:function(s,c,w){if(w){s=":not("+s+")"
}return ah.find.matches(s,c)
},dir:function(s,c,A){var w=[];
for(s=s[c];
s&&s.nodeType!==9&&(A===I||s.nodeType!==1||!ah(s).is(A));
){s.nodeType===1&&w.push(s);
s=s[c]
}return w
},nth:function(s,c,A){c=c||1;
for(var w=0;
s;
s=s[A]){if(s.nodeType===1&&++w===c){break
}}return s
},sibling:function(s,c){for(var w=[];
s;
s=s.nextSibling){s.nodeType===1&&s!==c&&w.push(s)
}return w
}});
var ai=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,B=/(<([\w:]+)[^>]*?)\/>/g,aD=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,m=/<([\w:]+)/,ac=/<tbody/i,u=/<|&#?\w+;/,aP=/<script|<object|<embed|<option|<style/i,ak=/checked\s*(?:[^=]|=\s*.checked.)/i,bk=function(s,c,w){return aD.test(w)?s:c+"></"+w+">"
},aJ={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,"",""]};
aJ.optgroup=aJ.option;
aJ.tbody=aJ.tfoot=aJ.colgroup=aJ.caption=aJ.thead;
aJ.th=aJ.td;
if(!ah.support.htmlSerialize){aJ._default=[1,"div<div>","</div>"]
}ah.fn.extend({text:function(c){if(ah.isFunction(c)){return this.each(function(s){var w=ah(this);
w.text(c.call(this,s,w.text()))
})
}if(typeof c!=="object"&&c!==I){return this.empty().append((this[0]&&this[0].ownerDocument||M).createTextNode(c))
}return ah.text(this)
},wrapAll:function(s){if(ah.isFunction(s)){return this.each(function(w){ah(this).wrapAll(s.call(this,w))
})
}if(this[0]){var c=ah(s,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&c.insertBefore(this[0]);
c.map(function(){for(var w=this;
w.firstChild&&w.firstChild.nodeType===1;
){w=w.firstChild
}return w
}).append(this)
}return this
},wrapInner:function(c){if(ah.isFunction(c)){return this.each(function(s){ah(this).wrapInner(c.call(this,s))
})
}return this.each(function(){var s=ah(this),w=s.contents();
w.length?w.wrapAll(c):s.append(c)
})
},wrap:function(c){return this.each(function(){ah(this).wrapAll(c)
})
},unwrap:function(){return this.parent().each(function(){ah.nodeName(this,"body")||ah(this).replaceWith(this.childNodes)
}).end()
},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)
})
},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)
})
},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)
})
}else{if(arguments.length){var c=ah(arguments[0]);
c.push.apply(c,this.toArray());
return this.pushStack(c,"before",arguments)
}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)
})
}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);
c.push.apply(c,ah(arguments[0]).toArray());
return c
}}},remove:function(s,c){for(var A=0,w;
(w=this[A])!=null;
A++){if(!s||ah.filter(s,[w]).length){if(!c&&w.nodeType===1){ah.cleanData(w.getElementsByTagName("*"));
ah.cleanData([w])
}w.parentNode&&w.parentNode.removeChild(w)
}}return this
},empty:function(){for(var s=0,c;
(c=this[s])!=null;
s++){for(c.nodeType===1&&ah.cleanData(c.getElementsByTagName("*"));
c.firstChild;
){c.removeChild(c.firstChild)
}}return this
},clone:function(s){var c=this.map(function(){if(!ah.support.noCloneEvent&&!ah.isXMLDoc(this)){var A=this.outerHTML,w=this.ownerDocument;
if(!A){A=w.createElement("div");
A.appendChild(this.cloneNode(true));
A=A.innerHTML
}return ah.clean([A.replace(ai,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ar,"")],w)[0]
}else{return this.cloneNode(true)
}});
if(s===true){bj(this,c);
bj(this.find("*"),c.find("*"))
}return c
},html:function(s){if(s===I){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ai,""):null
}else{if(typeof s==="string"&&!aP.test(s)&&(ah.support.leadingWhitespace||!ar.test(s))&&!aJ[(m.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(B,bk);
try{for(var c=0,A=this.length;
c<A;
c++){if(this[c].nodeType===1){ah.cleanData(this[c].getElementsByTagName("*"));
this[c].innerHTML=s
}}}catch(w){this.empty().append(s)
}}else{ah.isFunction(s)?this.each(function(J){var F=ah(this),G=F.html();
F.empty().append(function(){return s.call(this,J,G)
})
}):this.empty().append(s)
}}return this
},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ah.isFunction(c)){return this.each(function(s){var A=ah(this),w=A.html();
A.replaceWith(c.call(this,s,w))
})
}if(typeof c!=="string"){c=ah(c).detach()
}return this.each(function(){var s=this.nextSibling,w=this.parentNode;
ah(this).remove();
s?ah(s).before(c):ah(w).append(c)
})
}else{return this.pushStack(ah(ah.isFunction(c)?c():c),"replaceWith",c)
}},detach:function(c){return this.remove(c,true)
},domManip:function(O,N,L){function J(P){return ah.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P
}var K,F,G=O[0],s=[],A;
if(!ah.support.checkClone&&arguments.length===3&&typeof G==="string"&&ak.test(G)){return this.each(function(){ah(this).domManip(O,N,L,true)
})
}if(ah.isFunction(G)){return this.each(function(P){var Q=ah(this);
O[0]=G.call(this,P,N?Q.html():I);
Q.domManip(O,N,L)
})
}if(this[0]){K=G&&G.parentNode;
K=ah.support.parentNode&&K&&K.nodeType===11&&K.childNodes.length===this.length?{fragment:K}:a3(O,this,s);
A=K.fragment;
if(F=A.childNodes.length===1?(A=A.firstChild):A.firstChild){N=N&&ah.nodeName(F,"tr");
for(var w=0,c=this.length;
w<c;
w++){L.call(N?J(this[w],F):this[w],w>0||K.cacheable||this.length>1?A.cloneNode(true):A)
}}s.length&&ah.each(s,E)
}return this
}});
ah.fragments={};
ah.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ah.fn[s]=function(J){var F=[];
J=ah(J);
var G=this.length===1&&this[0].parentNode;
if(G&&G.nodeType===11&&G.childNodes.length===1&&J.length===1){J[c](this[0]);
return this
}else{G=0;
for(var w=J.length;
G<w;
G++){var A=(G>0?this.clone(true):this).get();
ah.fn[c].apply(ah(J[G]),A);
F=F.concat(A)
}return this.pushStack(F,s,J.selector)
}}
});
ah.extend({clean:function(O,N,L,J){N=N||M;
if(typeof N.createElement==="undefined"){N=N.ownerDocument||N[0]&&N[0].ownerDocument||M
}for(var K=[],F=0,G;
(G=O[F])!=null;
F++){if(typeof G==="number"){G+=""
}if(G){if(typeof G==="string"&&!u.test(G)){G=N.createTextNode(G)
}else{if(typeof G==="string"){G=G.replace(B,bk);
var s=(m.exec(G)||["",""])[1].toLowerCase(),A=aJ[s]||aJ._default,w=A[0],c=N.createElement("div");
for(c.innerHTML=A[1]+G+A[2];
w--;
){c=c.lastChild
}if(!ah.support.tbody){w=ac.test(G);
s=s==="table"&&!w?c.firstChild&&c.firstChild.childNodes:A[1]==="<table>"&&!w?c.childNodes:[];
for(A=s.length-1;
A>=0;
--A){ah.nodeName(s[A],"tbody")&&!s[A].childNodes.length&&s[A].parentNode.removeChild(s[A])
}}!ah.support.leadingWhitespace&&ar.test(G)&&c.insertBefore(N.createTextNode(ar.exec(G)[0]),c.firstChild);
G=c.childNodes
}}if(G.nodeType){K.push(G)
}else{K=ah.merge(K,G)
}}}if(L){for(F=0;
K[F];
F++){if(J&&ah.nodeName(K[F],"script")&&(!K[F].type||K[F].type.toLowerCase()==="text/javascript")){J.push(K[F].parentNode?K[F].parentNode.removeChild(K[F]):K[F])
}else{K[F].nodeType===1&&K.splice.apply(K,[F+1,0].concat(ah.makeArray(K[F].getElementsByTagName("script"))));
L.appendChild(K[F])
}}}return K
},cleanData:function(L){for(var K,J,F=ah.cache,G=ah.event.special,w=ah.support.deleteExpando,A=0,c;
(c=L[A])!=null;
A++){if(J=c[ah.expando]){K=F[J];
if(K.events){for(var s in K.events){G[s]?ah.event.remove(c,s):aG(c,s,K.handle)
}}if(w){delete c[ah.expando]
}else{c.removeAttribute&&c.removeAttribute(ah.expando)
}delete F[J]
}}}});
var h=/z-?index|font-?weight|opacity|zoom|line-?height/i,a4=/alpha\([^)]*\)/,aQ=/opacity=([^)]*)/,aE=/float/i,ad=/-([a-z])/ig,bf=/([A-Z])/g,aZ=/^-?\d+(?:px)?$/i,aI=/^-?\d/,af={position:"absolute",visibility:"hidden",display:"block"},y=["Left","Right"],k=["Top","Bottom"],bi=M.defaultView&&M.defaultView.getComputedStyle,al=ah.support.cssFloat?"cssFloat":"styleFloat",v=function(s,c){return c.toUpperCase()
};
ah.fn.css=function(s,c){return ap(this,s,c,true,function(F,w,A){if(A===I){return ah.curCSS(F,w)
}if(typeof A==="number"&&!h.test(w)){A+="px"
}ah.style(F,w,A)
})
};
ah.extend({style:function(s,c,F){if(!s||s.nodeType===3||s.nodeType===8){return I
}if((c==="width"||c==="height")&&parseFloat(F)<0){F=I
}var w=s.style||s,A=F!==I;
if(!ah.support.opacity&&c==="opacity"){if(A){w.zoom=1;
c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";
s=w.filter||ah.curCSS(s,"filter")||"";
w.filter=a4.test(s)?s.replace(a4,c):c
}return w.filter&&w.filter.indexOf("opacity=")>=0?parseFloat(aQ.exec(w.filter)[1])/100+"":""
}if(aE.test(c)){c=al
}c=c.replace(ad,v);
if(A){w[c]=F
}return w[c]
},css:function(s,c,J,F){if(c==="width"||c==="height"){var G,w=c==="width"?y:k;
function A(){G=c==="width"?s.offsetWidth:s.offsetHeight;
F!=="border"&&ah.each(w,function(){F||(G-=parseFloat(ah.curCSS(s,"padding"+this,true))||0);
if(F==="margin"){G+=parseFloat(ah.curCSS(s,"margin"+this,true))||0
}else{G-=parseFloat(ah.curCSS(s,"border"+this+"Width",true))||0
}})
}s.offsetWidth!==0?A():ah.swap(s,af,A);
return Math.max(0,Math.round(G))
}return ah.curCSS(s,c,J)
},curCSS:function(s,c,G){var A,F=s.style;
if(!ah.support.opacity&&c==="opacity"&&s.currentStyle){A=aQ.test(s.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";
return A===""?"1":A
}if(aE.test(c)){c=al
}if(!G&&F&&F[c]){A=F[c]
}else{if(bi){if(aE.test(c)){c="float"
}c=c.replace(bf,"-$1").toLowerCase();
F=s.ownerDocument.defaultView;
if(!F){return null
}if(s=F.getComputedStyle(s,null)){A=s.getPropertyValue(c)
}if(c==="opacity"&&A===""){A="1"
}}else{if(s.currentStyle){G=c.replace(ad,v);
A=s.currentStyle[c]||s.currentStyle[G];
if(!aZ.test(A)&&aI.test(A)){c=F.left;
var w=s.runtimeStyle.left;
s.runtimeStyle.left=s.currentStyle.left;
F.left=G==="fontSize"?"1em":A||0;
A=F.pixelLeft+"px";
F.left=c;
s.runtimeStyle.left=w
}}}}return A
},swap:function(s,c,F){var w={};
for(var A in c){w[A]=s.style[A];
s.style[A]=c[A]
}F.call(s);
for(A in c){s.style[A]=w[A]
}}});
if(ah.expr&&ah.expr.filters){ah.expr.filters.hidden=function(s){var c=s.offsetWidth,A=s.offsetHeight,w=s.nodeName.toLowerCase()==="tr";
return c===0&&A===0&&!w?true:c>0&&A>0&&!w?false:ah.curCSS(s,"display")==="none"
};
ah.expr.filters.visible=function(c){return !ah.expr.filters.hidden(c)
}
}var a2=aF(),aN=/<script(.|\s)*?\/script>/gi,aj=/select|textarea/i,C=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aA=/=\?(&|$)/,i=/\?/,n=/(\?|&)_=.*?(&|$)/,a=/^(\w+:)?\/\/([^\/?#]+)/,a5=/%20/g,aR=ah.fn.load;
ah.fn.extend({load:function(s,c,G){if(typeof s!=="string"){return aR.call(this,s)
}else{if(!this.length){return this
}}var A=s.indexOf(" ");
if(A>=0){var F=s.slice(A,s.length);
s=s.slice(0,A)
}A="GET";
if(c){if(ah.isFunction(c)){G=c;
c=null
}else{if(typeof c==="object"){c=ah.param(c,ah.ajaxSettings.traditional);
A="POST"
}}}var w=this;
ah.ajax({url:s,type:A,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){w.html(F?ah("<div />").append(J.responseText.replace(aN,"")).find(F):J.responseText)
}G&&w.each(G,[J.responseText,K,J])
}});
return this
},serialize:function(){return ah.param(this.serializeArray())
},serializeArray:function(){return this.map(function(){return this.elements?ah.makeArray(this.elements):this
}).filter(function(){return this.name&&!this.disabled&&(this.checked||aj.test(this.nodeName)||C.test(this.type))
}).map(function(s,c){s=ah(this).val();
return s==null?null:ah.isArray(s)?ah.map(s,function(w){return{name:c.name,value:w}
}):{name:c.name,value:s}
}).get()
}});
ah.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ah.fn[c]=function(w){return this.bind(c,w)
}
});
ah.extend({get:function(s,c,A,w){if(ah.isFunction(c)){w=w||A;
A=c;
c=null
}return ah.ajax({type:"GET",url:s,data:c,success:A,dataType:w})
},getScript:function(s,c){return ah.get(s,null,c,"script")
},getJSON:function(s,c,w){return ah.get(s,c,w,"json")
},post:function(s,c,A,w){if(ah.isFunction(c)){w=w||A;
A=c;
c={}
}return ah.ajax({type:"POST",url:s,data:c,success:A,dataType:w})
},ajaxSetup:function(c){ah.extend(ah.ajaxSettings,c)
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aO.XMLHttpRequest&&(aO.location.protocol!=="file:"||!aO.ActiveXObject)?function(){return new aO.XMLHttpRequest
}:function(){try{return new aO.ActiveXObject("Microsoft.XMLHTTP")
}catch(c){}},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(aa){function Z(){X.success&&X.success.call(P,K,R,s);
X.global&&W("ajaxSuccess",[s,X])
}function Y(){X.complete&&X.complete.call(P,s,R);
X.global&&W("ajaxComplete",[s,X]);
X.global&&!--ah.active&&ah.event.trigger("ajaxStop")
}function W(ba,bb){(X.context?ah(X.context):ah.event).trigger(ba,bb)
}var X=ah.extend(true,{},ah.ajaxSettings,aa),Q,R,K,P=aa&&aa.context||X,L=X.type.toUpperCase();
if(X.data&&X.processData&&typeof X.data!=="string"){X.data=ah.param(X.data,X.traditional)
}if(X.dataType==="jsonp"){if(L==="GET"){aA.test(X.url)||(X.url+=(i.test(X.url)?"&":"?")+(X.jsonp||"callback")+"=?")
}else{if(!X.data||!aA.test(X.data)){X.data=(X.data?X.data+"&":"")+(X.jsonp||"callback")+"=?"
}}X.dataType="json"
}if(X.dataType==="json"&&(X.data&&aA.test(X.data)||aA.test(X.url))){Q=X.jsonpCallback||"jsonp"+a2++;
if(X.data){X.data=(X.data+"").replace(aA,"="+Q+"$1")
}X.url=X.url.replace(aA,"="+Q+"$1");
X.dataType="script";
aO[Q]=aO[Q]||function(ba){K=ba;
Z();
Y();
aO[Q]=I;
try{delete aO[Q]
}catch(bb){}c&&c.removeChild(F)
}
}if(X.dataType==="script"&&X.cache===null){X.cache=false
}if(X.cache===false&&L==="GET"){var G=aF(),w=X.url.replace(n,"$1_="+G+"$2");
X.url=w+(w===X.url?(i.test(X.url)?"&":"?")+"_="+G:"")
}if(X.data&&L==="GET"){X.url+=(i.test(X.url)?"&":"?")+X.data
}X.global&&!ah.active++&&ah.event.trigger("ajaxStart");
G=(G=a.exec(X.url))&&(G[1]&&G[1]!==location.protocol||G[2]!==location.host);
if(X.dataType==="script"&&L==="GET"&&G){var c=M.getElementsByTagName("head")[0]||M.documentElement,F=M.createElement("script");
F.src=X.url;
if(X.scriptCharset){F.charset=X.scriptCharset
}if(!Q){var J=false;
F.onload=F.onreadystatechange=function(){if(!J&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){J=true;
Z();
Y();
F.onload=F.onreadystatechange=null;
c&&F.parentNode&&c.removeChild(F)
}}
}c.insertBefore(F,c.firstChild);
return I
}var A=false,s=X.xhr();
if(s){X.username?s.open(L,X.url,X.async,X.username,X.password):s.open(L,X.url,X.async);
try{if(X.data||aa&&aa.contentType){s.setRequestHeader("Content-Type",X.contentType)
}if(X.ifModified){ah.lastModified[X.url]&&s.setRequestHeader("If-Modified-Since",ah.lastModified[X.url]);
ah.etag[X.url]&&s.setRequestHeader("If-None-Match",ah.etag[X.url])
}G||s.setRequestHeader("X-Requested-With","XMLHttpRequest");
s.setRequestHeader("Accept",X.dataType&&X.accepts[X.dataType]?X.accepts[X.dataType]+", */*":X.accepts._default)
}catch(ab){}if(X.beforeSend&&X.beforeSend.call(P,s,X)===false){X.global&&!--ah.active&&ah.event.trigger("ajaxStop");
s.abort();
return false
}X.global&&W("ajaxSend",[s,X]);
var V=s.onreadystatechange=function(bb){if(!s||s.readyState===0||bb==="abort"){A||Y();
A=true;
if(s){s.onreadystatechange=ah.noop
}}else{if(!A&&s&&(s.readyState===4||bb==="timeout")){A=true;
s.onreadystatechange=ah.noop;
R=bb==="timeout"?"timeout":!ah.httpSuccess(s)?"error":X.ifModified&&ah.httpNotModified(s,X.url)?"notmodified":"success";
var bl;
if(R==="success"){try{K=ah.httpData(s,X.dataType,X)
}catch(ba){R="parsererror";
bl=ba
}}if(R==="success"||R==="notmodified"){Q||Z()
}else{ah.handleError(X,s,R,bl)
}Y();
bb==="timeout"&&s.abort();
if(X.async){s=null
}}}};
try{var T=s.abort;
s.abort=function(){s&&T.call(s);
V("abort")
}
}catch(O){}X.async&&X.timeout>0&&setTimeout(function(){s&&!A&&V("timeout")
},X.timeout);
try{s.send(L==="POST"||L==="PUT"||L==="DELETE"?X.data:null)
}catch(N){ah.handleError(X,s,null,N);
Y()
}X.async||V();
return s
}},handleError:function(s,c,A,w){if(s.error){s.error.call(s.context||s,c,A,w)
}if(s.global){(s.context?ah(s.context):ah.event).trigger("ajaxError",[c,s,w])
}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0
}catch(c){}return false
},httpNotModified:function(s,c){var A=s.getResponseHeader("Last-Modified"),w=s.getResponseHeader("Etag");
if(A){ah.lastModified[c]=A
}if(w){ah.etag[c]=w
}return s.status===304||s.status===0
},httpData:function(s,c,F){var w=s.getResponseHeader("content-type")||"",A=c==="xml"||!c&&w.indexOf("xml")>=0;
s=A?s.responseXML:s.responseText;
A&&s.documentElement.nodeName==="parsererror"&&ah.error("parsererror");
if(F&&F.dataFilter){s=F.dataFilter(s,c)
}if(typeof s==="string"){if(c==="json"||!c&&w.indexOf("json")>=0){s=ah.parseJSON(s)
}else{if(c==="script"||!c&&w.indexOf("javascript")>=0){ah.globalEval(s)
}}}return s
},param:function(s,c){function G(J,K){if(ah.isArray(K)){ah.each(K,function(L,N){c||/\[\]$/.test(J)?A(J,N):G(J+"["+(typeof N==="object"||ah.isArray(N)?L:"")+"]",N)
})
}else{!c&&K!=null&&typeof K==="object"?ah.each(K,function(L,N){G(J+"["+L+"]",N)
}):A(J,K)
}}function A(J,K){K=ah.isFunction(K)?K():K;
F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)
}var F=[];
if(c===I){c=ah.ajaxSettings.traditional
}if(ah.isArray(s)||s.jquery){ah.each(s,function(){A(this.name,this.value)
})
}else{for(var w in s){G(w,s[w])
}}return F.join("&").replace(a5,"+")
}});
var bg={},bc=/toggle|show|hide/,aX=/^([+-]=)?([\d+-.]+)(.*)$/,aq,D=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
ah.fn.extend({show:function(s,c){if(s||s===0){return this.animate(aC("show",3),s,c)
}else{s=0;
for(c=this.length;
s<c;
s++){var F=ah.data(this[s],"olddisplay");
this[s].style.display=F||"";
if(ah.css(this[s],"display")==="none"){F=this[s].nodeName;
var w;
if(bg[F]){w=bg[F]
}else{var A=ah("<"+F+" />").appendTo("body");
w=A.css("display");
if(w==="none"){w="block"
}A.remove();
bg[F]=w
}ah.data(this[s],"olddisplay",w)
}}s=0;
for(c=this.length;
s<c;
s++){this[s].style.display=ah.data(this[s],"olddisplay")||""
}return this
}},hide:function(s,c){if(s||s===0){return this.animate(aC("hide",3),s,c)
}else{s=0;
for(c=this.length;
s<c;
s++){var w=ah.data(this[s],"olddisplay");
!w&&w!=="none"&&ah.data(this[s],"olddisplay",ah.css(this[s],"display"))
}s=0;
for(c=this.length;
s<c;
s++){this[s].style.display="none"
}return this
}},_toggle:ah.fn.toggle,toggle:function(s,c){var w=typeof s==="boolean";
if(ah.isFunction(s)&&ah.isFunction(c)){this._toggle.apply(this,arguments)
}else{s==null||w?this.each(function(){var A=w?s:ah(this).is(":hidden");
ah(this)[A?"show":"hide"]()
}):this.animate(aC("toggle",3),s,c)
}return this
},fadeTo:function(s,c,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},s,w)
},animate:function(s,c,F,w){var A=ah.speed(c,F,w);
if(ah.isEmptyObject(s)){return this.each(A.complete)
}return this[A.queue===false?"each":"queue"](function(){var J=ah.extend({},A),K,L=this.nodeType===1&&ah(this).is(":hidden"),G=this;
for(K in s){var N=K.replace(ad,v);
if(K!==N){s[N]=s[K];
delete s[K];
K=N
}if(s[K]==="hide"&&L||s[K]==="show"&&!L){return J.complete.call(this)
}if((K==="height"||K==="width")&&this.style){J.display=ah.css(this,"display");
J.overflow=this.style.overflow
}if(ah.isArray(s[K])){(J.specialEasing=J.specialEasing||{})[K]=s[K][1];
s[K]=s[K][0]
}}if(J.overflow!=null){this.style.overflow="hidden"
}J.curAnim=ah.extend({},s);
ah.each(s,function(P,O){var T=new ah.fx(G,J,P);
if(bc.test(O)){T[O==="toggle"?L?"show":"hide":O](s)
}else{var R=aX.exec(O),V=T.cur(true)||0;
if(R){O=parseFloat(R[2]);
var Q=R[3]||"px";
if(Q!=="px"){G.style[P]=(O||1)+Q;
V=(O||1)/T.cur(true)*V;
G.style[P]=V+Q
}if(R[1]){O=(R[1]==="-="?-1:1)*O+V
}T.custom(V,O,Q)
}else{T.custom(V,O,"")
}}});
return true
})
},stop:function(s,c){var w=ah.timers;
s&&this.queue([]);
this.each(function(){for(var A=w.length-1;
A>=0;
A--){if(w[A].elem===this){c&&w[A](true);
w.splice(A,1)
}}});
c||this.dequeue();
return this
}});
ah.each({slideDown:aC("show",1),slideUp:aC("hide",1),slideToggle:aC("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ah.fn[s]=function(A,w){return this.animate(c,A,w)
}
});
ah.extend({speed:function(s,c,A){var w=s&&typeof s==="object"?s:{complete:A||!A&&c||ah.isFunction(s)&&s,duration:s,easing:A&&c||c&&!ah.isFunction(c)&&c};
w.duration=ah.fx.off?0:typeof w.duration==="number"?w.duration:ah.fx.speeds[w.duration]||ah.fx.speeds._default;
w.old=w.complete;
w.complete=function(){w.queue!==false&&ah(this).dequeue();
ah.isFunction(w.old)&&w.old.call(this)
};
return w
},easing:{linear:function(s,c,A,w){return A+w*s
},swing:function(s,c,A,w){return(-Math.cos(s*Math.PI)/2+0.5)*w+A
}},timers:[],fx:function(s,c,w){this.options=c;
this.elem=s;
this.prop=w;
if(!c.orig){c.orig={}
}}});
ah.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);
(ah.fx.step[this.prop]||ah.fx.step._default)(this);
if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"
}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]
}return(c=parseFloat(ah.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ah.curCSS(this.elem,this.prop))||0
},custom:function(s,c,F){function w(G){return A.step(G)
}this.startTime=aF();
this.start=s;
this.end=c;
this.unit=F||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var A=this;
w.elem=this.elem;
if(w()&&ah.timers.push(w)&&!aq){aq=setInterval(ah.fx.tick,13)
}},show:function(){this.options.orig[this.prop]=ah.style(this.elem,this.prop);
this.options.show=true;
this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());
ah(this.elem).show()
},hide:function(){this.options.orig[this.prop]=ah.style(this.elem,this.prop);
this.options.hide=true;
this.custom(this.cur(),0)
},step:function(s){var c=aF(),F=true;
if(s||c>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
for(var w in this.options.curAnim){if(this.options.curAnim[w]!==true){F=false
}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
s=ah.data(this.elem,"olddisplay");
this.elem.style.display=s?s:this.options.display;
if(ah.css(this.elem,"display")==="none"){this.elem.style.display="block"
}}this.options.hide&&ah(this.elem).hide();
if(this.options.hide||this.options.show){for(var A in this.options.curAnim){ah.style(this.elem,A,this.options.orig[A])
}}this.options.complete.call(this.elem)
}return false
}else{A=c-this.startTime;
this.state=A/this.options.duration;
s=this.options.easing||(ah.easing.swing?"swing":"linear");
this.pos=ah.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||s](this.state,A,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;
this.update()
}return true
}};
ah.extend(ah.fx,{tick:function(){for(var s=ah.timers,c=0;
c<s.length;
c++){s[c]()||s.splice(c--,1)
}s.length||ah.fx.stop()
},stop:function(){clearInterval(aq);
aq=null
},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ah.style(c.elem,"opacity",c.now)
},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit
}else{c.elem[c.prop]=c.now
}}}});
if(ah.expr&&ah.expr.filters){ah.expr.filters.animated=function(c){return ah.grep(ah.timers,function(s){return c===s.elem
}).length
}
}ah.fn.offset="getBoundingClientRect" in M.documentElement?function(s){var c=this[0];
if(s){return this.each(function(F){ah.offset.setOffset(this,s,F)
})
}if(!c||!c.ownerDocument){return null
}if(c===c.ownerDocument.body){return ah.offset.bodyOffset(c)
}var A=c.getBoundingClientRect(),w=c.ownerDocument;
c=w.body;
w=w.documentElement;
return{top:A.top+(self.pageYOffset||ah.support.boxModel&&w.scrollTop||c.scrollTop)-(w.clientTop||c.clientTop||0),left:A.left+(self.pageXOffset||ah.support.boxModel&&w.scrollLeft||c.scrollLeft)-(w.clientLeft||c.clientLeft||0)}
}:function(N){var L=this[0];
if(N){return this.each(function(O){ah.offset.setOffset(this,N,O)
})
}if(!L||!L.ownerDocument){return null
}if(L===L.ownerDocument.body){return ah.offset.bodyOffset(L)
}ah.offset.initialize();
var K=L.offsetParent,G=L,J=L.ownerDocument,A,F=J.documentElement,c=J.body;
G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;
for(var w=L.offsetTop,s=L.offsetLeft;
(L=L.parentNode)&&L!==c&&L!==F;
){if(ah.offset.supportsFixedPosition&&G.position==="fixed"){break
}A=J?J.getComputedStyle(L,null):L.currentStyle;
w-=L.scrollTop;
s-=L.scrollLeft;
if(L===K){w+=L.offsetTop;
s+=L.offsetLeft;
if(ah.offset.doesNotAddBorder&&!(ah.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){w+=parseFloat(A.borderTopWidth)||0;
s+=parseFloat(A.borderLeftWidth)||0
}G=K;
K=L.offsetParent
}if(ah.offset.subtractsBorderForOverflowNotVisible&&A.overflow!=="visible"){w+=parseFloat(A.borderTopWidth)||0;
s+=parseFloat(A.borderLeftWidth)||0
}G=A
}if(G.position==="relative"||G.position==="static"){w+=c.offsetTop;
s+=c.offsetLeft
}if(ah.offset.supportsFixedPosition&&G.position==="fixed"){w+=Math.max(F.scrollTop,c.scrollTop);
s+=Math.max(F.scrollLeft,c.scrollLeft)
}return{top:w,left:s}
};
ah.offset={initialize:function(){var s=M.body,c=M.createElement("div"),G,A,F,w=parseFloat(ah.curCSS(s,"marginTop",true))||0;
ah.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});
c.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>";
s.insertBefore(c,s.firstChild);
G=c.firstChild;
A=G.firstChild;
F=G.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=A.offsetTop!==5;
this.doesAddBorderForTableAndCells=F.offsetTop===5;
A.style.position="fixed";
A.style.top="20px";
this.supportsFixedPosition=A.offsetTop===20||A.offsetTop===15;
A.style.position=A.style.top="";
G.style.overflow="hidden";
G.style.position="relative";
this.subtractsBorderForOverflowNotVisible=A.offsetTop===-5;
this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==w;
s.removeChild(c);
ah.offset.initialize=ah.noop
},bodyOffset:function(s){var c=s.offsetTop,w=s.offsetLeft;
ah.offset.initialize();
if(ah.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ah.curCSS(s,"marginTop",true))||0;
w+=parseFloat(ah.curCSS(s,"marginLeft",true))||0
}return{top:c,left:w}
},setOffset:function(s,c,J){if(/static/.test(ah.curCSS(s,"position"))){s.style.position="relative"
}var F=ah(s),G=F.offset(),w=parseInt(ah.curCSS(s,"top",true),10)||0,A=parseInt(ah.curCSS(s,"left",true),10)||0;
if(ah.isFunction(c)){c=c.call(s,J,G)
}J={top:c.top-G.top+w,left:c.left-G.left+A};
"using" in c?c.using.call(s,J):F.css(J)
}};
ah.fn.extend({position:function(){if(!this[0]){return null
}var s=this[0],c=this.offsetParent(),A=this.offset(),w=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();
A.top-=parseFloat(ah.curCSS(s,"marginTop",true))||0;
A.left-=parseFloat(ah.curCSS(s,"marginLeft",true))||0;
w.top+=parseFloat(ah.curCSS(c[0],"borderTopWidth",true))||0;
w.left+=parseFloat(ah.curCSS(c[0],"borderLeftWidth",true))||0;
return{top:A.top-w.top,left:A.left-w.left}
},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||M.body;
c&&!/^body|html$/i.test(c.nodeName)&&ah.css(c,"position")==="static";
){c=c.offsetParent
}return c
})
}});
ah.each(["Left","Top"],function(s,c){var w="scroll"+c;
ah.fn[w]=function(F){var G=this[0],A;
if(!G){return null
}if(F!==I){return this.each(function(){if(A=o(this)){A.scrollTo(!s?F:ah(A).scrollLeft(),s?F:ah(A).scrollTop())
}else{this[w]=F
}})
}else{return(A=o(G))?"pageXOffset" in A?A[s?"pageYOffset":"pageXOffset"]:ah.support.boxModel&&A.document.documentElement[w]||A.document.body[w]:G[w]
}}
});
ah.each(["Height","Width"],function(s,c){var w=c.toLowerCase();
ah.fn["inner"+c]=function(){return this[0]?ah.css(this[0],w,false,"padding"):null
};
ah.fn["outer"+c]=function(A){return this[0]?ah.css(this[0],w,false,A?"margin":"border"):null
};
ah.fn[w]=function(A){var F=this[0];
if(!F){return A==null?null:this
}if(ah.isFunction(A)){return this.each(function(G){var J=ah(this);
J[w](A.call(this,G,J[w]()))
})
}return"scrollTo" in F&&F.document?F.document.compatMode==="CSS1Compat"&&F.document.documentElement["client"+c]||F.document.body["client"+c]:F.nodeType===9?Math.max(F.documentElement["client"+c],F.body["scroll"+c],F.documentElement["scroll"+c],F.body["offset"+c],F.documentElement["offset"+c]):A===I?ah.css(F,w):this.css(w,typeof A==="string"?A:A+"px")
}
});
aO.jQuery=aO.$=ah
})(window);/*
 * jQuery Form Plugin
 * version: 2.49 (18-OCT-2010)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.ajaxSubmit=function(s){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");
return this
}if(typeof s=="function"){s={success:s}
}var d=b.trim(this.attr("action"));
if(d){d=(d.match(/^([^#]+)/)||[])[1]
}d=d||window.location.href||"";
s=b.extend(true,{url:d,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},s);
var t={};
this.trigger("form-pre-serialize",[this,s,t]);
if(t.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");
return this
}if(s.beforeSerialize&&s.beforeSerialize(this,s)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");
return this
}var f,o,l=this.formToArray(s.semantic);
if(s.data){s.extraData=s.data;
for(f in s.data){if(s.data[f] instanceof Array){for(var h in s.data[f]){l.push({name:f,value:s.data[f][h]})
}}else{o=s.data[f];
o=b.isFunction(o)?o():o;
l.push({name:f,value:o})
}}}if(s.beforeSubmit&&s.beforeSubmit(l,this,s)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");
return this
}this.trigger("form-submit-validate",[l,this,s,t]);
if(t.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");
return this
}var c=b.param(l);
if(s.type.toUpperCase()=="GET"){s.url+=(s.url.indexOf("?")>=0?"&":"?")+c;
s.data=null
}else{s.data=c
}var r=this,j=[];
if(s.resetForm){j.push(function(){r.resetForm()
})
}if(s.clearForm){j.push(function(){r.clearForm()
})
}if(!s.dataType&&s.target){var p=s.success||function(){};
j.push(function(n){var k=s.replaceTarget?"replaceWith":"html";
b(s.target)[k](n).each(p,arguments)
})
}else{if(s.success){j.push(s.success)
}}s.success=function(v,n,w){var u=s.context||s;
for(var q=0,k=j.length;
q<k;
q++){j[q].apply(u,[v,n,w||r,r])
}};
var g=b("input:file",this).length>0;
var e="multipart/form-data";
var i=(r.attr("enctype")==e||r.attr("encoding")==e);
if(s.iframe!==false&&(g||s.iframe||i)){if(s.closeKeepAlive){b.get(s.closeKeepAlive,m)
}else{m()
}}else{b.ajax(s)
}this.trigger("form-submit-notify",[this,s]);
return this;
function m(){var k=r[0];
if(b(":input[name=submit],:input[id=submit]",k).length){alert('Error: Form elements must not have name or id of "submit".');
return
}var y=b.extend(true,{},b.ajaxSettings,s);
y.context=y.context||y;
var B="jqFormIO"+(new Date().getTime()),w="_"+B;
window[w]=function(){var n=q.data("form-plugin-onload");
if(n){n();
window[w]=undefined;
try{delete window[w]
}catch(K){}}};
var q=b('<iframe id="'+B+'" name="'+B+'" src="'+y.iframeSrc+'" onload="window[\'_\'+this.id]()" />');
var x=q[0];
q.css({position:"absolute",top:"-1000px",left:"-1000px"});
var u={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;
q.attr("src",y.iframeSrc)
}};
var G=y.global;
if(G&&!b.active++){b.event.trigger("ajaxStart")
}if(G){b.event.trigger("ajaxSend",[u,y])
}if(y.beforeSend&&y.beforeSend.call(y.context,u,y)===false){if(y.global){b.active--
}return
}if(u.aborted){return
}var C=false;
var F=0;
var v=k.clk;
if(v){var D=v.name;
if(D&&!v.disabled){y.extraData=y.extraData||{};
y.extraData[D]=v.value;
if(v.type=="image"){y.extraData[D+".x"]=k.clk_x;
y.extraData[D+".y"]=k.clk_y
}}}function E(){var M=r.attr("target"),K=r.attr("action");
k.setAttribute("target",B);
if(k.getAttribute("method")!="POST"){k.setAttribute("method","POST")
}if(k.getAttribute("action")!=y.url){k.setAttribute("action",y.url)
}if(!y.skipEncodingOverride){r.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})
}if(y.timeout){setTimeout(function(){F=true;
A()
},y.timeout)
}var L=[];
try{if(y.extraData){for(var N in y.extraData){L.push(b('<input type="hidden" name="'+N+'" value="'+y.extraData[N]+'" />').appendTo(k)[0])
}}q.appendTo("body");
q.data("form-plugin-onload",A);
k.submit()
}finally{k.setAttribute("action",K);
if(M){k.setAttribute("target",M)
}else{r.removeAttr("target")
}b(L).remove()
}}if(y.forceSync){E()
}else{setTimeout(E,10)
}var I,J,H=50;
function A(){if(C){return
}q.removeData("form-plugin-onload");
var L=true;
try{if(F){throw"timeout"
}J=x.contentWindow?x.contentWindow.document:x.contentDocument?x.contentDocument:x.document;
var P=y.dataType=="xml"||J.XMLDocument||b.isXMLDoc(J);
a("isXml="+P);
if(!P&&window.opera&&(J.body==null||J.body.innerHTML=="")){if(--H){a("requeing onLoad callback, DOM not available");
setTimeout(A,250);
return
}}C=true;
u.responseText=J.documentElement?J.documentElement.innerHTML:null;
u.responseXML=J.XMLDocument?J.XMLDocument:J;
u.getResponseHeader=function(R){var Q={"content-type":y.dataType};
return Q[R]
};
var O=/(json|script)/.test(y.dataType);
if(O||y.textarea){var K=J.getElementsByTagName("textarea")[0];
if(K){u.responseText=K.value
}else{if(O){var N=J.getElementsByTagName("pre")[0];
var n=J.getElementsByTagName("body")[0];
if(N){u.responseText=N.innerHTML
}else{if(n){u.responseText=n.innerHTML
}}}}}else{if(y.dataType=="xml"&&!u.responseXML&&u.responseText!=null){u.responseXML=z(u.responseText)
}}I=b.httpData(u,y.dataType)
}catch(M){a("error caught:",M);
L=false;
u.error=M;
b.handleError(y,u,"error",M)
}if(L){y.success.call(y.context,I,"success",u);
if(G){b.event.trigger("ajaxSuccess",[u,y])
}}if(G){b.event.trigger("ajaxComplete",[u,y])
}if(G&&!--b.active){b.event.trigger("ajaxStop")
}if(y.complete){y.complete.call(y.context,u,L?"success":"error")
}setTimeout(function(){q.removeData("form-plugin-onload");
q.remove();
u.responseXML=null
},100)
}function z(n,K){if(window.ActiveXObject){K=new ActiveXObject("Microsoft.XMLDOM");
K.async="false";
K.loadXML(n)
}else{K=(new DOMParser()).parseFromString(n,"text/xml")
}return(K&&K.documentElement&&K.documentElement.tagName!="parsererror")?K:null
}}};
b.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};
if(!b.isReady&&d.s){a("DOM not ready, queuing ajaxForm");
b(function(){b(d.s,d.c).ajaxForm(c)
});
return this
}a("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));
return this
}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();
b(this).ajaxSubmit(c)
}}).bind("click.form-plugin",function(j){var i=j.target;
var g=b(i);
if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");
if(f.length==0){return
}i=f[0]
}var h=this;
h.clk=i;
if(i.type=="image"){if(j.offsetX!=undefined){h.clk_x=j.offsetX;
h.clk_y=j.offsetY
}else{if(typeof b.fn.offset=="function"){var k=g.offset();
h.clk_x=j.pageX-k.left;
h.clk_y=j.pageY-k.top
}else{h.clk_x=j.pageX-i.offsetLeft;
h.clk_y=j.pageY-i.offsetTop
}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null
},100)
})
};
b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")
};
b.fn.formToArray=function(q){var p=[];
if(this.length===0){return p
}var d=this[0];
var g=q?d.getElementsByTagName("*"):d.elements;
if(!g){return p
}var k,h,f,r,e,m,c;
for(k=0,m=g.length;
k<m;
k++){e=g[k];
f=e.name;
if(!f){continue
}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val()});
p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})
}continue
}r=b.fieldValue(e,true);
if(r&&r.constructor==Array){for(h=0,c=r.length;
h<c;
h++){p.push({name:f,value:r[h]})
}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})
}}}if(!q&&d.clk){var l=b(d.clk),o=l[0];
f=o.name;
if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});
p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})
}}return p
};
b.fn.formSerialize=function(c){return b.param(this.formToArray(c))
};
b.fn.fieldSerialize=function(d){var c=[];
this.each(function(){var h=this.name;
if(!h){return
}var f=b.fieldValue(this,d);
if(f&&f.constructor==Array){for(var g=0,e=f.length;
g<e;
g++){c.push({name:h,value:f[g]})
}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})
}}});
return b.param(c)
};
b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;
e<c;
e++){var f=this[e];
var d=b.fieldValue(f,h);
if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue
}d.constructor==Array?b.merge(g,d):g.push(d)
}return g
};
b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();
if(j===undefined){j=true
}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null
}if(q=="select"){var k=c.selectedIndex;
if(k<0){return null
}var m=[],d=c.options;
var g=(p=="select-one");
var l=(g?k+1:d.length);
for(var f=(g?k:0);
f<l;
f++){var h=d[f];
if(h.selected){var o=h.value;
if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value
}if(g){return o
}m.push(o)
}}return m
}return b(c).val()
};
b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()
})
};
b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();
if(d=="text"||d=="password"||c=="textarea"){this.value=""
}else{if(d=="checkbox"||d=="radio"){this.checked=false
}else{if(c=="select"){this.selectedIndex=-1
}}}})
};
b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()
}})
};
b.fn.enable=function(c){if(c===undefined){c=true
}return this.each(function(){this.disabled=!c
})
};
b.fn.selected=function(c){if(c===undefined){c=true
}return this.each(function(){var d=this.type;
if(d=="checkbox"||d=="radio"){this.checked=c
}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");
if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)
}this.selected=c
}}})
};
function a(){if(b.fn.ajaxSubmit.debug){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");
if(window.console&&window.console.log){window.console.log(c)
}else{if(window.opera&&window.opera.postError){window.opera.postError(c)
}}}}})(jQuery);(function(c){var a=c.scrollTo=function(d,f,g){c(window).scrollTo(d,f,g)
};
a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};
a.window=function(d){return c(window)._scrollable()
};
c.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;
if(!f){return d
}var g=(d.contentWindow||d).document||d.ownerDocument||d;
return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement
})
};
c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;
e=0
}if(typeof d=="function"){d={onAfter:d}
}if(f=="max"){f=9000000000
}d=c.extend({},a.defaults,d);
e=e||d.speed||d.duration;
d.queue=d.queue&&d.axis.length>1;
if(d.queue){e/=2
}d.offset=b(d.offset);
d.over=b(d.over);
return this._scrollable().each(function(){var n=this,l=c(n),m=f,j,k={},h=l.is("html,body");
switch(typeof m){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(m)){m=b(m);
break
}m=c(m,this);
case"object":if(m.is||m.style){j=(m=c(m)).offset()
}}c.each(d.axis.split(""),function(q,r){var t=r=="x"?"Left":"Top",s=t.toLowerCase(),v="scroll"+t,p=n[v],g=a.max(n,r);
if(j){k[v]=j[s]+(h?0:p-l.offset()[s]);
if(d.margin){k[v]-=parseInt(m.css("margin"+t))||0;
k[v]-=parseInt(m.css("border"+t+"Width"))||0
}k[v]+=d.offset[s]||0;
if(d.over[s]){k[v]+=m[r=="x"?"width":"height"]()*d.over[s]
}}else{var u=m[s];
k[v]=u.slice&&u.slice(-1)=="%"?parseFloat(u)/100*g:u
}if(/^\d+$/.test(k[v])){k[v]=k[v]<=0?0:Math.min(k[v],g)
}if(!q&&d.queue){if(p!=k[v]){i(d.onAfterFirst)
}delete k[v]
}});
i(d.onAfter);
function i(g){l.animate(k,e,d.easing,g&&function(){g.call(this,f,d)
})
}}).end()
};
a.max=function(g,j){var n=j=="x"?"Width":"Height",k="scroll"+n;
if(!c(g).is("html,body")){return g[k]-c(g)[n.toLowerCase()]()
}var o="client"+n,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;
return Math.max(f[k],d[k])-Math.min(f[o],d[o])
};
function b(d){return typeof d=="object"?d:{top:d,left:d}
}})(jQuery);(function(b){function c(f,e,n){var l=n.relative?f.position().top:f.offset().top,m=n.relative?f.position().left:f.offset().left,k=n.position[0];
l-=e.outerHeight()-n.offset[0];
m+=f.outerWidth()+n.offset[1];
if(/iPad/i.test(navigator.userAgent)){l-=b(window).scrollTop()
}var g=e.outerHeight()+f.outerHeight();
if(k=="center"){l+=g/2
}if(k=="bottom"){l+=g
}k=n.position[1];
f=e.outerWidth()+f.outerWidth();
if(k=="center"){m-=f/2
}if(k=="left"){m-=f
}return{top:l,left:m}
}function a(A,z){var y=this,w=A.add(y),x,u=0,p=0,g=A.attr("title"),f=A.attr("data-tooltip"),e=d[z.effect],n,D=A.is(":input"),B=D&&A.is(":checkbox, :radio, select, :button, :submit"),C=A.attr("type"),o=z.events[C]||z.events[D?B?"widget":"input":"def"];
if(!e){throw'Nonexistent effect "'+z.effect+'"'
}o=o.split(/,\s*/);
if(o.length!=2){throw"Tooltip: bad events configuration for "+C
}A.bind(o[0],function(h){clearTimeout(u);
if(z.predelay){p=setTimeout(function(){y.show(h)
},z.predelay)
}else{y.show(h)
}}).bind(o[1],function(h){clearTimeout(p);
if(z.delay){u=setTimeout(function(){y.hide(h)
},z.delay)
}else{y.hide(h)
}});
if(g&&z.cancelDefault){A.removeAttr("title");
A.data("title",g)
}b.extend(y,{show:function(i){if(!x){if(f){x=b(f)
}else{if(z.tip){x=b(z.tip).eq(0)
}else{if(g){x=b(z.layout).addClass(z.tipClass).appendTo(document.body).hide().append(g)
}else{x=A.next();
x.length||(x=A.parent().next())
}}}if(!x.length){throw"Cannot find tooltip for "+A
}}if(y.isShown()){return y
}x.stop(true,true);
var h=c(A,x,z);
z.tip&&x.html(A.data("title"));
i=i||b.Event();
i.type="onBeforeShow";
w.trigger(i,[h]);
if(i.isDefaultPrevented()){return y
}h=c(A,x,z);
x.css({position:"absolute",top:h.top,left:h.left});
n=true;
e[0].call(y,function(){i.type="onShow";
n="full";
w.trigger(i)
});
h=z.events.tooltip.split(/,\s*/);
if(!x.data("__set")){x.bind(h[0],function(){clearTimeout(u);
clearTimeout(p)
});
h[1]&&!A.is("input:not(:checkbox, :radio), textarea")&&x.bind(h[1],function(j){j.relatedTarget!=A[0]&&A.trigger(o[1].split(" ")[0])
});
x.data("__set",true)
}return y
},hide:function(h){if(!x||!y.isShown()){return y
}h=h||b.Event();
h.type="onBeforeHide";
w.trigger(h);
if(!h.isDefaultPrevented()){n=false;
d[z.effect][1].call(y,function(){h.type="onHide";
w.trigger(h)
});
return y
}},isShown:function(h){return h?n=="full":n
},getConf:function(){return z
},getTip:function(){return x
},getTrigger:function(){return A
}});
b.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(i,h){b.isFunction(z[h])&&b(y).bind(h,z[h]);
y[h]=function(j){j&&b(y).bind(h,j);
return y
}
})
}b.tools=b.tools||{version:"1.2.5"};
b.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(f,e,g){d[f]=[e,g]
}};
var d={toggle:[function(f){var e=this.getConf(),g=this.getTip();
e=e.opacity;
e<1&&g.css({opacity:e});
g.show();
f.call()
},function(e){this.getTip().hide();
e.call()
}],fade:[function(f){var e=this.getConf();
this.getTip().fadeTo(e.fadeInSpeed,e.opacity,f)
},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)
}]};
b.fn.tooltip=function(f){var e=this.data("tooltip");
if(e){return e
}f=b.extend(true,{},b.tools.tooltip.conf,f);
if(typeof f.position=="string"){f.position=f.position.split(/,?\s/)
}this.each(function(){e=new a(b(this),f);
b(this).data("tooltip",e)
});
return f.api?e:this
}
})(jQuery);
(function(c){var a=c.tools.tooltip;
c.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!c.browser.msie});
var b={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};
a.addEffect("slide",function(h){var e=this.getConf(),i=this.getTip(),d=e.slideFade?{opacity:e.opacity}:{},j=b[e.direction]||b.up;
d[j[1]]=j[0]+"="+e.slideOffset;
e.slideFade&&i.css({opacity:0});
i.show().animate(d,e.slideInSpeed,h)
},function(j){var e=this.getConf(),k=e.slideOffset,d=e.slideFade?{opacity:0}:{},l=b[e.direction]||b.up,i=""+l[0];
if(e.bounce){i=i=="+"?"-":"+"
}d[l[1]]=i+"="+k;
this.getTip().animate(d,e.slideOutSpeed,function(){c(this).hide();
j.call()
})
})
})(jQuery);
(function(d){function b(e){var i=d(window),g=i.width()+i.scrollLeft(),f=i.height()+i.scrollTop();
return[e.offset().top<=i.scrollTop(),g<=e.offset().left+e.width(),f<=e.offset().top+e.height(),i.scrollLeft()>=e.offset().left]
}function a(e){for(var f=e.length;
f--;
){if(e[f]){return false
}}return true
}var c=d.tools.tooltip;
c.dynamic={conf:{classNames:"top right bottom left"}};
d.fn.dynamic=function(e){if(typeof e=="number"){e={speed:e}
}e=d.extend({},c.dynamic.conf,e);
var g=e.classNames.split(/\s/),f;
this.each(function(){var i=d(this).tooltip().onBeforeShow(function(k,j){k=this.getTip();
var h=this.getConf();
f||(f=[h.position[0],h.position[1],h.offset[0],h.offset[1],d.extend({},h)]);
d.extend(h,f[4]);
h.position=[f[0],f[1]];
h.offset=[f[2],f[3]];
k.css({visibility:"hidden",position:"absolute",top:j.top,left:j.left}).show();
j=b(k);
if(!a(j)){if(j[2]){d.extend(h,e.top);
h.position[0]="top";
k.addClass(g[0])
}if(j[3]){d.extend(h,e.right);
h.position[1]="right";
k.addClass(g[1])
}if(j[0]){d.extend(h,e.bottom);
h.position[0]="bottom";
k.addClass(g[2])
}if(j[1]){d.extend(h,e.left);
h.position[1]="left";
k.addClass(g[3])
}if(j[0]||j[2]){h.offset[0]*=-1
}if(j[1]||j[3]){h.offset[1]*=-1
}}k.css({visibility:"visible"}).hide()
});
i.onBeforeShow(function(){var h=this.getConf();
this.getTip();
setTimeout(function(){h.position=[f[0],f[1]];
h.offset=[f[2],f[3]]
},0)
});
i.onHide(function(){var h=this.getTip();
h.removeClass(e.classNames)
});
ret=i
});
return e.api?ret:this
}
})(jQuery);jQuery(function(a){a.datepicker.regional.de={closeText:"schließen",prevText:"&#x3c;zurück",nextText:"Vor&#x3e;",currentText:"heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"Wo",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};
a.datepicker.setDefaults(a.datepicker.regional.de)
});/*
 * jQuery UI 1.8.5
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(d,b){function a(c){return !d(c).parents().andSelf().filter(function(){return d.curCSS(this,"visibility")==="hidden"||d.expr.filters.hidden(this)
}).length
}d.ui=d.ui||{};
if(!d.ui.version){d.extend(d.ui,{version:"1.8.5",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});
d.fn.extend({_focus:d.fn.focus,focus:function(e,c){return typeof e==="number"?this.each(function(){var f=this;
setTimeout(function(){d(f).focus();
c&&c.call(f)
},e)
}):this._focus.apply(this,arguments)
},scrollParent:function(){var c;
c=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))
}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))
}).eq(0);
return/fixed/.test(this.css("position"))||!c.length?d(document):c
},zIndex:function(e){if(e!==b){return this.css("zIndex",e)
}if(this.length){e=d(this[0]);
for(var c;
e.length&&e[0]!==document;
){c=e.css("position");
if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(e.css("zIndex"));
if(!isNaN(c)&&c!=0){return c
}}e=e.parent()
}}return 0
},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(c){c.preventDefault()
})
},enableSelection:function(){return this.unbind(".ui-disableSelection")
}});
d.each(["Width","Height"],function(f,c){function l(n,i,h,e){d.each(k,function(){i-=parseFloat(d.curCSS(n,"padding"+this,true))||0;
if(h){i-=parseFloat(d.curCSS(n,"border"+this+"Width",true))||0
}if(e){i-=parseFloat(d.curCSS(n,"margin"+this,true))||0
}});
return i
}var k=c==="Width"?["Left","Right"]:["Top","Bottom"],j=c.toLowerCase(),g={innerWidth:d.fn.innerWidth,innerHeight:d.fn.innerHeight,outerWidth:d.fn.outerWidth,outerHeight:d.fn.outerHeight};
d.fn["inner"+c]=function(e){if(e===b){return g["inner"+c].call(this)
}return this.each(function(){d.style(this,j,l(this,e)+"px")
})
};
d.fn["outer"+c]=function(h,e){if(typeof h!=="number"){return g["outer"+c].call(this,h)
}return this.each(function(){d.style(this,j,l(this,h,true,e)+"px")
})
}
});
d.extend(d.expr[":"],{data:function(e,c,f){return !!d.data(e,f[3])
},focusable:function(e){var c=e.nodeName.toLowerCase(),f=d.attr(e,"tabindex");
if("area"===c){c=e.parentNode;
f=c.name;
if(!e.href||!f||c.nodeName.toLowerCase()!=="map"){return false
}e=d("img[usemap=#"+f+"]")[0];
return !!e&&a(e)
}return(/input|select|textarea|button|object/.test(c)?!e.disabled:"a"==c?e.href||!isNaN(f):!isNaN(f))&&a(e)
},tabbable:function(e){var c=d.attr(e,"tabindex");
return(isNaN(c)||c>=0)&&d(e).is(":focusable")
}});
d(function(){var e=document.createElement("div"),c=document.body;
d.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});
d.support.minHeight=c.appendChild(e).offsetHeight===100;
c.removeChild(e).style.display="none"
});
d.extend(d.ui,{plugin:{add:function(f,c,h){f=d.ui[f].prototype;
for(var g in h){f.plugins[g]=f.plugins[g]||[];
f.plugins[g].push([c,h[g]])
}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;
g<c.length;
g++){f.options[c[g][0]]&&c[g][1].apply(f.element,h)
}}}},contains:function(e,c){return document.compareDocumentPosition?e.compareDocumentPosition(c)&16:e!==c&&e.contains(c)
},hasScroll:function(e,c){if(d(e).css("overflow")==="hidden"){return false
}c=c&&c==="left"?"scrollLeft":"scrollTop";
var f=false;
if(e[c]>0){return true
}e[c]=1;
f=e[c]>0;
e[c]=0;
return f
},isOverAxis:function(e,c,f){return e>c&&e<c+f
},isOver:function(f,c,l,k,j,g){return d.ui.isOverAxis(f,l,j)&&d.ui.isOverAxis(c,k,g)
}})
}})(jQuery);
/*
 * jQuery UI Widget 1.8.5
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,e){if(a.cleanData){var d=a.cleanData;
a.cleanData=function(b){for(var g=0,f;
(f=b[g])!=null;
g++){a(f).triggerHandler("remove")
}d(b)
}
}else{var c=a.fn.remove;
a.fn.remove=function(b,f){return this.each(function(){if(!f){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")
})
}}return c.call(a(this),b,f)
})
}
}a.widget=function(b,j,i){var h=b.split(".")[0],g;
b=b.split(".")[1];
g=h+"-"+b;
if(!i){i=j;
j=a.Widget
}a.expr[":"][g]=function(f){return !!a.data(f,b)
};
a[h]=a[h]||{};
a[h][b]=function(f,k){arguments.length&&this._createWidget(f,k)
};
j=new j;
j.options=a.extend(true,{},j.options);
a[h][b].prototype=a.extend(true,j,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},i);
a.widget.bridge(b,a[h][b])
};
a.widget.bridge=function(b,f){a.fn[b]=function(k){var j=typeof k==="string",i=Array.prototype.slice.call(arguments,1),g=this;
k=!j&&i.length?a.extend.apply(null,[true,k].concat(i)):k;
if(j&&k.substring(0,1)==="_"){return g
}j?this.each(function(){var l=a.data(this,b);
if(!l){throw"cannot call methods on "+b+" prior to initialization; attempted to call method '"+k+"'"
}if(!a.isFunction(l[k])){throw"no such method '"+k+"' for "+b+" widget instance"
}var h=l[k].apply(l,i);
if(h!==l&&h!==e){g=h;
return false
}}):this.each(function(){var h=a.data(this,b);
h?h.option(k||{})._init():a.data(this,b,new f(k,this))
});
return g
}
};
a.Widget=function(b,f){arguments.length&&this._createWidget(b,f)
};
a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,g){a.data(g,this.widgetName,this);
this.element=a(g);
this.options=a.extend(true,{},this.options,a.metadata&&a.metadata.get(g)[this.widgetName],b);
var f=this;
this.element.bind("remove."+this.widgetName,function(){f.destroy()
});
this._create();
this._init()
},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")
},widget:function(){return this.element
},option:function(b,h){var g=b,f=this;
if(arguments.length===0){return a.extend({},f.options)
}if(typeof b==="string"){if(h===e){return this.options[b]
}g={};
g[b]=h
}a.each(g,function(j,i){f._setOption(j,i)
});
return f
},_setOption:function(b,f){this.options[b]=f;
if(b==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)
}return this
},enable:function(){return this._setOption("disabled",false)
},disable:function(){return this._setOption("disabled",true)
},_trigger:function(b,j,i){var h=this.options[b];
j=a.Event(j);
j.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();
i=i||{};
if(j.originalEvent){b=a.event.props.length;
for(var g;
b;
){g=a.event.props[--b];
j[g]=j.originalEvent[g]
}}this.element.trigger(j,i);
return !(a.isFunction(h)&&h.call(this.element[0],j,i)===false||j.isDefaultPrevented())
}}
})(jQuery);
/*
 * jQuery UI Mouse 1.8.5
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;
this.element.bind("mousedown."+this.widgetName,function(c){return b._mouseDown(c)
}).bind("click."+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;
c.stopImmediatePropagation();
return false
}});
this.started=false
},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)
},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};
if(!d.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(d);
this._mouseDownEvent=d;
var c=this,h=d.which==1,g=typeof this.options.cancel=="string"?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false;
if(!h||g||!this._mouseCapture(d)){return true
}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true
},this.options.delay)
}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=this._mouseStart(d)!==false;
if(!this._mouseStarted){d.preventDefault();
return true
}}this._mouseMoveDelegate=function(b){return c._mouseMove(b)
};
this._mouseUpDelegate=function(b){return c._mouseUp(b)
};
a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
a.browser.safari||d.preventDefault();
return d.originalEvent.mouseHandled=true
}},_mouseMove:function(b){if(a.browser.msie&&!b.button){return this._mouseUp(b)
}if(this._mouseStarted){this._mouseDrag(b);
return b.preventDefault()
}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b)
}return !this._mouseStarted
},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;
this._preventClickEvent=b.target==this._mouseDownEvent.target;
this._mouseStop(b)
}return false
},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance
},_mouseDelayMet:function(){return this.mouseDelayMet
},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true
}})
})(jQuery);
(function(f){f.ui=f.ui||{};
var e=/left|center|right/,d=/top|center|bottom/,b=f.fn.position,a=f.fn.offset;
f.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments)
}c=f.extend({},c);
var i=f(c.of),q=i[0],o=(c.collision||"flip").split(" "),p=c.offset?c.offset.split(" "):[0,0],n,l,m;
if(q.nodeType===9){n=i.width();
l=i.height();
m={top:0,left:0}
}else{if(q.scrollTo&&q.document){n=i.width();
l=i.height();
m={top:i.scrollTop(),left:i.scrollLeft()}
}else{if(q.preventDefault){c.at="left top";
n=l=0;
m={top:c.of.pageY,left:c.of.pageX}
}else{n=i.outerWidth();
l=i.outerHeight();
m=i.offset()
}}}f.each(["my","at"],function(){var g=(c[this]||"").split(" ");
if(g.length===1){g=e.test(g[0])?g.concat(["center"]):d.test(g[0])?["center"].concat(g):["center","center"]
}g[0]=e.test(g[0])?g[0]:"center";
g[1]=d.test(g[1])?g[1]:"center";
c[this]=g
});
if(o.length===1){o[1]=o[0]
}p[0]=parseInt(p[0],10)||0;
if(p.length===1){p[1]=p[0]
}p[1]=parseInt(p[1],10)||0;
if(c.at[0]==="right"){m.left+=n
}else{if(c.at[0]==="center"){m.left+=n/2
}}if(c.at[1]==="bottom"){m.top+=l
}else{if(c.at[1]==="center"){m.top+=l/2
}}m.left+=p[0];
m.top+=p[1];
return this.each(function(){var x=f(this),s=x.outerWidth(),k=x.outerHeight(),j=parseInt(f.curCSS(this,"marginLeft",true))||0,h=parseInt(f.curCSS(this,"marginTop",true))||0,z=s+j+parseInt(f.curCSS(this,"marginRight",true))||0,y=k+h+parseInt(f.curCSS(this,"marginBottom",true))||0,u=f.extend({},m),g;
if(c.my[0]==="right"){u.left-=s
}else{if(c.my[0]==="center"){u.left-=s/2
}}if(c.my[1]==="bottom"){u.top-=k
}else{if(c.my[1]==="center"){u.top-=k/2
}}u.left=parseInt(u.left);
u.top=parseInt(u.top);
g={left:u.left-j,top:u.top-h};
f.each(["left","top"],function(v,r){f.ui.position[o[v]]&&f.ui.position[o[v]][r](u,{targetWidth:n,targetHeight:l,elemWidth:s,elemHeight:k,collisionPosition:g,collisionWidth:z,collisionHeight:y,offset:p,my:c.my,at:c.at})
});
f.fn.bgiframe&&x.bgiframe();
x.offset(f.extend(u,{using:c.using}))
})
};
f.ui.position={fit:{left:function(c,g){var h=f(window);
h=g.collisionPosition.left+g.collisionWidth-h.width()-h.scrollLeft();
c.left=h>0?c.left-h:Math.max(c.left-g.collisionPosition.left,c.left)
},top:function(c,g){var h=f(window);
h=g.collisionPosition.top+g.collisionHeight-h.height()-h.scrollTop();
c.top=h>0?c.top-h:Math.max(c.top-g.collisionPosition.top,c.top)
}},flip:{left:function(c,i){if(i.at[0]!=="center"){var m=f(window);
m=i.collisionPosition.left+i.collisionWidth-m.width()-m.scrollLeft();
var k=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,l=i.at[0]==="left"?i.targetWidth:-i.targetWidth,j=-2*i.offset[0];
c.left+=i.collisionPosition.left<0?k+l+j:m>0?k+l+j:0
}},top:function(c,i){if(i.at[1]!=="center"){var m=f(window);
m=i.collisionPosition.top+i.collisionHeight-m.height()-m.scrollTop();
var k=i.my[1]==="top"?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,l=i.at[1]==="top"?i.targetHeight:-i.targetHeight,j=-2*i.offset[1];
c.top+=i.collisionPosition.top<0?k+l+j:m>0?k+l+j:0
}}}};
if(!f.offset.setOffset){f.offset.setOffset=function(c,i){if(/static/.test(f.curCSS(c,"position"))){c.style.position="relative"
}var m=f(c),k=m.offset(),l=parseInt(f.curCSS(c,"top",true),10)||0,j=parseInt(f.curCSS(c,"left",true),10)||0;
k={top:i.top-k.top+l,left:i.left-k.left+j};
"using" in i?i.using.call(c,k):m.css(k)
};
f.fn.offset=function(c){var g=this[0];
if(!g||!g.ownerDocument){return null
}if(c){return this.each(function(){f.offset.setOffset(this,c)
})
}return a.call(this)
}
}})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,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},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"
}this.options.addClasses&&this.element.addClass("ui-draggable");
this.options.disabled&&this.element.addClass("ui-draggable-disabled");
this._mouseInit()
},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy();
return this
}},_mouseCapture:function(d){var c=this.options;
if(this.helper||c.disabled||a(d.target).is(".ui-resizable-handle")){return false
}this.handle=this._getHandle(d);
if(!this.handle){return false
}return true
},_mouseStart:function(d){var c=this.options;
this.helper=this._createHelper(d);
this._cacheHelperProportions();
if(a.ui.ddmanager){a.ui.ddmanager.current=this
}this._cacheMargins();
this.cssPosition=this.helper.css("position");
this.scrollParent=this.helper.scrollParent();
this.offset=this.positionAbs=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
a.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this.position=this._generatePosition(d);
this.originalPageX=d.pageX;
this.originalPageY=d.pageY;
c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);
c.containment&&this._setContainment();
if(this._trigger("start",d)===false){this._clear();
return false
}this._cacheHelperProportions();
a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);
this.helper.addClass("ui-draggable-dragging");
this._mouseDrag(d,true);
return true
},_mouseDrag:function(d,c){this.position=this._generatePosition(d);
this.positionAbs=this._convertPositionTo("absolute");
if(!c){c=this._uiHash();
if(this._trigger("drag",d,c)===false){this._mouseUp({});
return false
}this.position=c.position
}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"
}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"
}a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);
return false
},_mouseStop:function(e){var d=false;
if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,e)
}if(this.dropped){d=this.dropped;
this.dropped=false
}if(!this.element[0]||!this.element[0].parentNode){return false
}if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var f=this;
a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",e)!==false&&f._clear()
})
}else{this._trigger("stop",e)!==false&&this._clear()
}return false
},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();
return this
},_getHandle:function(d){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;
a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==d.target){c=true
}});
return c
},_createHelper:function(d){var c=this.options;
d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d])):c.helper=="clone"?this.element.clone():this.element;
d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);
d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");
return d
},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")
}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}
}if("left" in b){this.offset.click.left=b.left+this.margins.left
}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left
}if("top" in b){this.offset.click.top=b.top+this.margins.top
}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var b=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();
b.top+=this.scrollParent.scrollTop()
}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}
}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();
return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{return{top:0,left:0}
}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}
},_setContainment:function(){var e=this.options;
if(e.containment=="parent"){e.containment=this.helper[0].parentNode
}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){var d=a(e.containment)[0];
if(d){e=a(e.containment).offset();
var f=a(d).css("overflow")!="hidden";
this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]
}}else{if(e.containment.constructor==Array){this.containment=e.containment
}}},_convertPositionTo:function(e,d){if(!d){d=this.position
}e=e=="absolute"?1:-1;
var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);
return{top:d.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*e),left:d.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*e)}
},_generatePosition:function(h){var d=this.options,l=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=/(html|body)/i.test(l[0].tagName),k=h.pageX,i=h.pageY;
if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.left<this.containment[0]){k=this.containment[0]+this.offset.click.left
}if(h.pageY-this.offset.click.top<this.containment[1]){i=this.containment[1]+this.offset.click.top
}if(h.pageX-this.offset.click.left>this.containment[2]){k=this.containment[2]+this.offset.click.left
}if(h.pageY-this.offset.click.top>this.containment[3]){i=this.containment[3]+this.offset.click.top
}}if(d.grid){i=this.originalPageY+Math.round((i-this.originalPageY)/d.grid[1])*d.grid[1];
i=this.containment?!(i-this.offset.click.top<this.containment[1]||i-this.offset.click.top>this.containment[3])?i:!(i-this.offset.click.top<this.containment[1])?i-d.grid[1]:i+d.grid[1]:i;
k=this.originalPageX+Math.round((k-this.originalPageX)/d.grid[0])*d.grid[0];
k=this.containment?!(k-this.offset.click.left<this.containment[0]||k-this.offset.click.left>this.containment[2])?k:!(k-this.offset.click.left<this.containment[0])?k-d.grid[0]:k+d.grid[0]:k
}}return{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():j?0:l.scrollTop()),left:k-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:l.scrollLeft())}
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();
this.helper=null;
this.cancelHelperRemoval=false
},_trigger:function(e,d,f){f=f||this._uiHash();
a.ui.plugin.call(this,e,[d,f]);
if(e=="drag"){this.positionAbs=this._convertPositionTo("absolute")
}return a.Widget.prototype._trigger.call(this,e,d,f)
},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}
}});
a.extend(a.ui.draggable,{version:"1.8.5"});
a.ui.plugin.add("draggable","connectToSortable",{start:function(g,d){var j=a(this).data("draggable"),h=j.options,i=a.extend({},d,{item:j.element});
j.sortables=[];
a(h.connectToSortable).each(function(){var b=a.data(this,"sortable");
if(b&&!b.options.disabled){j.sortables.push({instance:b,shouldRevert:b.options.revert});
b._refreshItems();
b._trigger("activate",g,i)
}})
},stop:function(e,d){var h=a(this).data("draggable"),g=a.extend({},d,{item:h.element});
a.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;
h.cancelHelperRemoval=true;
this.instance.cancelHelperRemoval=false;
if(this.shouldRevert){this.instance.options.revert=true
}this.instance._mouseStop(e);
this.instance.options.helper=this.instance.options._helper;
h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})
}else{this.instance.cancelHelperRemoval=false;
this.instance._trigger("deactivate",e,g)
}})
},drag:function(e,d){var h=a(this).data("draggable"),g=this;
a.each(h.sortables,function(){this.instance.positionAbs=h.positionAbs;
this.instance.helperProportions=h.helperProportions;
this.instance.offset.click=h.offset.click;
if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;
this.instance.currentItem=a(g).clone().appendTo(this.instance.element).data("sortable-item",true);
this.instance.options._helper=this.instance.options.helper;
this.instance.options.helper=function(){return d.helper[0]
};
e.target=this.instance.currentItem[0];
this.instance._mouseCapture(e,true);
this.instance._mouseStart(e,true,true);
this.instance.offset.click.top=h.offset.click.top;
this.instance.offset.click.left=h.offset.click.left;
this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;
h._trigger("toSortable",e);
h.dropped=this.instance.element;
h.currentItem=h.element;
this.instance.fromOutside=h
}this.instance.currentItem&&this.instance._mouseDrag(e)
}else{if(this.instance.isOver){this.instance.isOver=0;
this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;
this.instance._trigger("out",e,this.instance._uiHash(this.instance));
this.instance._mouseStop(e,true);
this.instance.options.helper=this.instance.options._helper;
this.instance.currentItem.remove();
this.instance.placeholder&&this.instance.placeholder.remove();
h._trigger("fromSortable",e);
h.dropped=false
}}})
}});
a.ui.plugin.add("draggable","cursor",{start:function(){var d=a("body"),c=a(this).data("draggable").options;
if(d.css("cursor")){c._cursor=d.css("cursor")
}d.css("cursor",c.cursor)
},stop:function(){var b=a(this).data("draggable").options;
b._cursor&&a("body").css("cursor",b._cursor)
}});
a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;
a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")
})
},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)
})
}});
a.ui.plugin.add("draggable","opacity",{start:function(d,c){d=a(c.helper);
c=a(this).data("draggable").options;
if(d.css("opacity")){c._opacity=d.css("opacity")
}d.css("opacity",c.opacity)
},stop:function(d,c){d=a(this).data("draggable").options;
d._opacity&&a(c.helper).css("opacity",d._opacity)
}});
a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");
if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()
}},drag:function(e){var d=a(this).data("draggable"),h=d.options,g=false;
if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-e.pageY<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop+h.scrollSpeed
}else{if(e.pageY-d.overflowOffset.top<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop-h.scrollSpeed
}}}if(!h.axis||h.axis!="y"){if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-e.pageX<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft+h.scrollSpeed
}else{if(e.pageX-d.overflowOffset.left<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft-h.scrollSpeed
}}}}else{if(!h.axis||h.axis!="x"){if(e.pageY-a(document).scrollTop()<h.scrollSensitivity){g=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)
}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<h.scrollSensitivity){g=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)
}}}if(!h.axis||h.axis!="y"){if(e.pageX-a(document).scrollLeft()<h.scrollSensitivity){g=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)
}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<h.scrollSensitivity){g=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)
}}}}g!==false&&a.ui.ddmanager&&!h.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,e)
}});
a.ui.plugin.add("draggable","snap",{start:function(){var d=a(this).data("draggable"),c=d.options;
d.snapElements=[];
a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var e=a(this),b=e.offset();
this!=d.element[0]&&d.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:b.top,left:b.left})
})
},drag:function(L,K){for(var J=a(this).data("draggable"),H=J.options,I=H.snapTolerance,G=K.offset.left,z=G+J.helperProportions.width,A=K.offset.top,y=A+J.helperProportions.height,F=J.snapElements.length-1;
F>=0;
F--){var E=J.snapElements[F].left,C=E+J.snapElements[F].width,D=J.snapElements[F].top,B=D+J.snapElements[F].height;
if(E-I<G&&G<C+I&&D-I<A&&A<B+I||E-I<G&&G<C+I&&D-I<y&&y<B+I||E-I<z&&z<C+I&&D-I<A&&A<B+I||E-I<z&&z<C+I&&D-I<y&&y<B+I){if(H.snapMode!="inner"){var x=Math.abs(D-y)<=I,w=Math.abs(B-A)<=I,v=Math.abs(E-z)<=I,u=Math.abs(C-G)<=I;
if(x){K.position.top=J._convertPositionTo("relative",{top:D-J.helperProportions.height,left:0}).top-J.margins.top
}if(w){K.position.top=J._convertPositionTo("relative",{top:B,left:0}).top-J.margins.top
}if(v){K.position.left=J._convertPositionTo("relative",{top:0,left:E-J.helperProportions.width}).left-J.margins.left
}if(u){K.position.left=J._convertPositionTo("relative",{top:0,left:C}).left-J.margins.left
}}var d=x||w||v||u;
if(H.snapMode!="outer"){x=Math.abs(D-A)<=I;
w=Math.abs(B-y)<=I;
v=Math.abs(E-G)<=I;
u=Math.abs(C-z)<=I;
if(x){K.position.top=J._convertPositionTo("relative",{top:D,left:0}).top-J.margins.top
}if(w){K.position.top=J._convertPositionTo("relative",{top:B-J.helperProportions.height,left:0}).top-J.margins.top
}if(v){K.position.left=J._convertPositionTo("relative",{top:0,left:E}).left-J.margins.left
}if(u){K.position.left=J._convertPositionTo("relative",{top:0,left:C-J.helperProportions.width}).left-J.margins.left
}}if(!J.snapElements[F].snapping&&(x||w||v||u||d)){J.options.snap.snap&&J.options.snap.snap.call(J.element,L,a.extend(J._uiHash(),{snapItem:J.snapElements[F].item}))
}J.snapElements[F].snapping=x||w||v||u||d
}else{J.snapElements[F].snapping&&J.options.snap.release&&J.options.snap.release.call(J.element,L,a.extend(J._uiHash(),{snapItem:J.snapElements[F].item}));
J.snapElements[F].snapping=false
}}}});
a.ui.plugin.add("draggable","stack",{start:function(){var d=a(this).data("draggable").options;
d=a.makeArray(a(d.stack)).sort(function(e,b){return(parseInt(a(e).css("zIndex"),10)||0)-(parseInt(a(b).css("zIndex"),10)||0)
});
if(d.length){var c=parseInt(d[0].style.zIndex)||0;
a(d).each(function(b){this.style.zIndex=c+b
});
this[0].style.zIndex=c+d.length
}}});
a.ui.plugin.add("draggable","zIndex",{start:function(d,c){d=a(c.helper);
c=a(this).data("draggable").options;
if(d.css("zIndex")){c._zIndex=d.css("zIndex")
}d.css("zIndex",c.zIndex)
},stop:function(d,c){d=a(this).data("draggable").options;
d._zIndex&&a(c.helper).css("zIndex",d._zIndex)
}})
})(jQuery);
(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,c=d.accept;
this.isover=0;
this.isout=1;
this.accept=a.isFunction(c)?c:function(b){return b.is(c)
};
this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};
a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];
a.ui.ddmanager.droppables[d.scope].push(this);
d.addClasses&&this.element.addClass("ui-droppable")
},destroy:function(){for(var d=a.ui.ddmanager.droppables[this.options.scope],c=0;
c<d.length;
c++){d[c]==this&&d.splice(c,1)
}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");
return this
},_setOption:function(d,c){if(d=="accept"){this.accept=a.isFunction(c)?c:function(b){return b.is(c)
}
}a.Widget.prototype._setOption.apply(this,arguments)
},_activate:function(d){var c=a.ui.ddmanager.current;
this.options.activeClass&&this.element.addClass(this.options.activeClass);
c&&this._trigger("activate",d,this.ui(c))
},_deactivate:function(d){var c=a.ui.ddmanager.current;
this.options.activeClass&&this.element.removeClass(this.options.activeClass);
c&&this._trigger("deactivate",d,this.ui(c))
},_over:function(d){var c=a.ui.ddmanager.current;
if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",d,this.ui(c))
}}},_out:function(d){var c=a.ui.ddmanager.current;
if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);
this._trigger("out",d,this.ui(c))
}}},_drop:function(f,d){var h=d||a.ui.ddmanager.current;
if(!h||(h.currentItem||h.element)[0]==this.element[0]){return false
}var g=false;
this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");
if(b.options.greedy&&!b.options.disabled&&b.options.scope==h.options.scope&&b.accept.call(b.element[0],h.currentItem||h.element)&&a.ui.intersect(h,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){g=true;
return false
}});
if(g){return false
}if(this.accept.call(this.element[0],h.currentItem||h.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);
this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);
this._trigger("drop",f,this.ui(h));
return this.element
}return false
},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}
}});
a.extend(a.ui.droppable,{version:"1.8.5"});
a.ui.intersect=function(w,v,u){if(!v.offset){return false
}var s=(w.positionAbs||w.position.absolute).left,q=s+w.helperProportions.width,r=(w.positionAbs||w.position.absolute).top,p=r+w.helperProportions.height,o=v.offset.left,m=o+v.proportions.width,n=v.offset.top,d=n+v.proportions.height;
switch(u){case"fit":return o<=s&&q<=m&&n<=r&&p<=d;
case"intersect":return o<s+w.helperProportions.width/2&&q-w.helperProportions.width/2<m&&n<r+w.helperProportions.height/2&&p-w.helperProportions.height/2<d;
case"pointer":return a.ui.isOver((w.positionAbs||w.position.absolute).top+(w.clickOffset||w.offset.click).top,(w.positionAbs||w.position.absolute).left+(w.clickOffset||w.offset.click).left,n,o,v.proportions.height,v.proportions.width);
case"touch":return(r>=n&&r<=d||p>=n&&p<=d||r<n&&p>d)&&(s>=o&&s<=m||q>=o&&q<=m||s<o&&q>m);
default:return false
}};
a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(i,d){var n=a.ui.ddmanager.droppables[i.options.scope]||[],m=d?d.type:null,k=(i.currentItem||i.element).find(":data(droppable)").andSelf(),l=0;
i:for(;
l<n.length;
l++){if(!(n[l].options.disabled||i&&!n[l].accept.call(n[l].element[0],i.currentItem||i.element))){for(var j=0;
j<k.length;
j++){if(k[j]==n[l].element[0]){n[l].proportions.height=0;
continue i
}}n[l].visible=n[l].element.css("display")!="none";
if(n[l].visible){n[l].offset=n[l].element.offset();
n[l].proportions={width:n[l].element[0].offsetWidth,height:n[l].element[0].offsetHeight};
m=="mousedown"&&n[l]._activate.call(n[l],d)
}}}},drop:function(e,d){var f=false;
a.each(a.ui.ddmanager.droppables[e.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(e,this,this.options.tolerance)){f=f||this._drop.call(this,d)
}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;
this.isover=0;
this._deactivate.call(this,d)
}}});
return f
},drag:function(d,c){d.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(d,c);
a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var h=a.ui.intersect(d,this,this.options.tolerance);
if(h=!h&&this.isover==1?"isout":h&&this.isover==0?"isover":null){var f;
if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");
if(b.length){f=a.data(b[0],"droppable");
f.greedyChild=h=="isover"?1:0
}}if(f&&h=="isover"){f.isover=0;
f.isout=1;
f._out.call(f,c)
}this[h]=1;
this[h=="isout"?"isover":"isout"]=0;
this[h=="isover"?"_over":"_out"].call(this,c);
if(f&&h=="isout"){f.isout=0;
f.isover=1;
f._over.call(f,c)
}}}})
}}
})(jQuery);
(function(c){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var e=this,h=this.options;
this.element.addClass("ui-resizable");
c.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});
if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&c.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});
this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));
this.element=this.element.parent().data("resizable",this.element.data("resizable"));
this.elementIsWrapper=true;
this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});
this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});
this.originalResizeStyle=this.originalElement.css("resize");
this.originalElement.css("resize","none");
this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));
this.originalElement.css({margin:this.originalElement.css("margin")});
this._proportionallyResize()
}this.handles=h.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});
if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"
}var l=this.handles.split(",");
this.handles={};
for(var k=0;
k<l.length;
k++){var j=c.trim(l[k]),i=c('<div class="ui-resizable-handle '+("ui-resizable-"+j)+'"></div>');
/sw|se|ne|nw/.test(j)&&i.css({zIndex:++h.zIndex});
"se"==j&&i.addClass("ui-icon ui-icon-gripsmall-diagonal-se");
this.handles[j]=".ui-resizable-"+j;
this.element.append(i)
}}this._renderAxis=function(m){m=m||this.element;
for(var g in this.handles){if(this.handles[g].constructor==String){this.handles[g]=c(this.handles[g],this.element).show()
}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var f=c(this.handles[g],this.element),d=0;
d=/sw|ne|nw|se|n|s/.test(g)?f.outerHeight():f.outerWidth();
f=["padding",/ne|nw|n/.test(g)?"Top":/se|sw|s/.test(g)?"Bottom":/^e$/.test(g)?"Right":"Left"].join("");
m.css(f,d);
this._proportionallyResize()
}c(this.handles[g])
}};
this._renderAxis(this.element);
this._handles=c(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!e.resizing){if(this.className){var d=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)
}e.axis=d&&d[1]?d[1]:"se"
}});
if(h.autoHide){this._handles.hide();
c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");
e._handles.show()
},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");
e._handles.hide()
}})
}this._mouseInit()
},destroy:function(){this._mouseDestroy();
var d=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()
};
if(this.elementIsWrapper){d(this.element);
var e=this.element;
e.after(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).remove()
}this.originalElement.css("resize",this.originalResizeStyle);
d(this.originalElement);
return this
},_mouseCapture:function(d){var e=false;
for(var f in this.handles){if(c(this.handles[f])[0]==d.target){e=true
}}return !this.options.disabled&&e
},_mouseStart:function(e){var g=this.options,j=this.element.position(),i=this.element;
this.resizing=true;
this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};
if(i.is(".ui-draggable")||/absolute/.test(i.css("position"))){i.css({position:"absolute",top:j.top,left:j.left})
}c.browser.opera&&/relative/.test(i.css("position"))&&i.css({position:"relative",top:"auto",left:"auto"});
this._renderProxy();
j=a(this.helper.css("left"));
var h=a(this.helper.css("top"));
if(g.containment){j+=c(g.containment).scrollLeft()||0;
h+=c(g.containment).scrollTop()||0
}this.offset=this.helper.offset();
this.position={left:j,top:h};
this.size=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()};
this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()};
this.originalPosition={left:j,top:h};
this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()};
this.originalMousePosition={left:e.pageX,top:e.pageY};
this.aspectRatio=typeof g.aspectRatio=="number"?g.aspectRatio:this.originalSize.width/this.originalSize.height||1;
g=c(".ui-resizable-"+this.axis).css("cursor");
c("body").css("cursor",g=="auto"?this.axis+"-resize":g);
i.addClass("ui-resizable-resizing");
this._propagate("start",e);
return true
},_mouseDrag:function(e){var f=this.helper,h=this.originalMousePosition,g=this._change[this.axis];
if(!g){return false
}h=g.apply(this,[e,e.pageX-h.left||0,e.pageY-h.top||0]);
if(this._aspectRatio||e.shiftKey){h=this._updateRatio(h,e)
}h=this._respectSize(h,e);
this._propagate("resize",e);
f.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});
!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();
this._updateCache(h);
this._trigger("resize",e,this.ui());
return false
},_mouseStop:function(e){this.resizing=false;
var h=this.options,l=this;
if(this._helper){var k=this._proportionallyResizeElements,j=k.length&&/textarea/i.test(k[0].nodeName);
k=j&&c.ui.hasScroll(k[0],"left")?0:l.sizeDiff.height;
j={width:l.size.width-(j?0:l.sizeDiff.width),height:l.size.height-k};
k=parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left)||null;
var i=parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top)||null;
h.animate||this.element.css(c.extend(j,{top:i,left:k}));
l.helper.height(l.size.height);
l.helper.width(l.size.width);
this._helper&&!h.animate&&this._proportionallyResize()
}c("body").css("cursor","auto");
this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",e);
this._helper&&this.helper.remove();
return false
},_updateCache:function(d){this.offset=this.helper.offset();
if(b(d.left)){this.position.left=d.left
}if(b(d.top)){this.position.top=d.top
}if(b(d.height)){this.size.height=d.height
}if(b(d.width)){this.size.width=d.width
}},_updateRatio:function(e){var f=this.position,h=this.size,g=this.axis;
if(e.height){e.width=h.height*this.aspectRatio
}else{if(e.width){e.height=h.width/this.aspectRatio
}}if(g=="sw"){e.left=f.left+(h.width-e.width);
e.top=null
}if(g=="nw"){e.top=f.top+(h.height-e.height);
e.left=f.left+(h.width-e.width)
}return e
},_respectSize:function(s){var u=this.options,r=this.axis,q=b(s.width)&&u.maxWidth&&u.maxWidth<s.width,p=b(s.height)&&u.maxHeight&&u.maxHeight<s.height,o=b(s.width)&&u.minWidth&&u.minWidth>s.width,n=b(s.height)&&u.minHeight&&u.minHeight>s.height;
if(o){s.width=u.minWidth
}if(n){s.height=u.minHeight
}if(q){s.width=u.maxWidth
}if(p){s.height=u.maxHeight
}var m=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,e=/sw|nw|w/.test(r);
r=/nw|ne|n/.test(r);
if(o&&e){s.left=m-u.minWidth
}if(q&&e){s.left=m-u.maxWidth
}if(n&&r){s.top=l-u.minHeight
}if(p&&r){s.top=l-u.maxHeight
}if((u=!s.width&&!s.height)&&!s.left&&s.top){s.top=null
}else{if(u&&!s.top&&s.left){s.left=null
}}return s
},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var e=this.helper||this.element,g=0;
g<this._proportionallyResizeElements.length;
g++){var j=this._proportionallyResizeElements[g];
if(!this.borderDif){var i=[j.css("borderTopWidth"),j.css("borderRightWidth"),j.css("borderBottomWidth"),j.css("borderLeftWidth")],h=[j.css("paddingTop"),j.css("paddingRight"),j.css("paddingBottom"),j.css("paddingLeft")];
this.borderDif=c.map(i,function(f,d){f=parseInt(f,10)||0;
d=parseInt(h[d],10)||0;
return f+d
})
}c.browser.msie&&(c(e).is(":hidden")||c(e).parents(":hidden").length)||j.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})
}}},_renderProxy:function(){var d=this.options;
this.elementOffset=this.element.offset();
if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');
var e=c.browser.msie&&c.browser.version<7,f=e?1:0;
e=e?2:-1;
this.helper.addClass(this._helper).css({width:this.element.outerWidth()+e,height:this.element.outerHeight()+e,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++d.zIndex});
this.helper.appendTo("body").disableSelection()
}else{this.helper=this.element
}},_change:{e:function(d,e){return{width:this.originalSize.width+e}
},w:function(d,e){return{left:this.originalPosition.left+e,width:this.originalSize.width-e}
},n:function(d,e,f){return{top:this.originalPosition.top+f,height:this.originalSize.height-f}
},s:function(d,e,f){return{height:this.originalSize.height+f}
},se:function(d,e,f){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[d,e,f]))
},sw:function(d,e,f){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[d,e,f]))
},ne:function(d,e,f){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[d,e,f]))
},nw:function(d,e,f){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[d,e,f]))
}},_propagate:function(d,e){c.ui.plugin.call(this,d,[e,this.ui()]);
d!="resize"&&this._trigger(d,e,this.ui())
},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}
}});
c.extend(c.ui.resizable,{version:"1.8.5"});
c.ui.plugin.add("resizable","alsoResize",{start:function(){var d=c(this).data("resizable").options,e=function(f){c(f).each(function(){var g=c(this);
g.data("resizable-alsoresize",{width:parseInt(g.width(),10),height:parseInt(g.height(),10),left:parseInt(g.css("left"),10),top:parseInt(g.css("top"),10),position:g.css("position")})
})
};
if(typeof d.alsoResize=="object"&&!d.alsoResize.parentNode){if(d.alsoResize.length){d.alsoResize=d.alsoResize[0];
e(d.alsoResize)
}else{c.each(d.alsoResize,function(f){e(f)
})
}}else{e(d.alsoResize)
}},resize:function(e,i){var n=c(this).data("resizable");
e=n.options;
var m=n.originalSize,l=n.originalPosition,k={height:n.size.height-m.height||0,width:n.size.width-m.width||0,top:n.position.top-l.top||0,left:n.position.left-l.left||0},j=function(f,d){c(f).each(function(){var g=c(this),o=c(this).data("resizable-alsoresize"),s={},h=d&&d.length?d:g.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];
c.each(h,function(q,p){if((q=(o[p]||0)+(k[p]||0))&&q>=0){s[p]=q||null
}});
if(c.browser.opera&&/relative/.test(g.css("position"))){n._revertToRelativePosition=true;
g.css({position:"absolute",top:"auto",left:"auto"})
}g.css(s)
})
};
typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?c.each(e.alsoResize,function(f,d){j(f,d)
}):j(e.alsoResize)
},stop:function(){var d=c(this).data("resizable"),e=d.options,f=function(g){c(g).each(function(){var h=c(this);
h.css({position:h.data("resizable-alsoresize").position})
})
};
if(d._revertToRelativePosition){d._revertToRelativePosition=false;
typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?c.each(e.alsoResize,function(g){f(g)
}):f(e.alsoResize)
}c(this).removeData("resizable-alsoresize")
}});
c.ui.plugin.add("resizable","animate",{stop:function(e){var i=c(this).data("resizable"),n=i.options,m=i._proportionallyResizeElements,l=m.length&&/textarea/i.test(m[0].nodeName),k=l&&c.ui.hasScroll(m[0],"left")?0:i.sizeDiff.height;
l={width:i.size.width-(l?0:i.sizeDiff.width),height:i.size.height-k};
k=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null;
var j=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;
i.element.animate(c.extend(l,j&&k?{top:j,left:k}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var d={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};
m&&m.length&&c(m[0]).css({width:d.width,height:d.height});
i._updateCache(d);
i._propagate("resize",e)
}})
}});
c.ui.plugin.add("resizable","containment",{start:function(){var e=c(this).data("resizable"),i=e.element,n=e.options.containment;
if(i=n instanceof c?n.get(0):/parent/.test(n)?i.parent().get(0):n){e.containerElement=c(i);
if(/document/.test(n)||n==document){e.containerOffset={left:0,top:0};
e.containerPosition={left:0,top:0};
e.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}
}else{var m=c(i),l=[];
c(["Top","Right","Left","Bottom"]).each(function(f,d){l[f]=a(m.css("padding"+d))
});
e.containerOffset=m.offset();
e.containerPosition=m.position();
e.containerSize={height:m.innerHeight()-l[3],width:m.innerWidth()-l[1]};
n=e.containerOffset;
var k=e.containerSize.height,j=e.containerSize.width;
j=c.ui.hasScroll(i,"left")?i.scrollWidth:j;
k=c.ui.hasScroll(i)?i.scrollHeight:k;
e.parentData={element:i,left:n.left,top:n.top,width:j,height:k}
}}},resize:function(e){var i=c(this).data("resizable"),n=i.options,m=i.containerOffset,l=i.position;
e=i._aspectRatio||e.shiftKey;
var k={top:0,left:0},j=i.containerElement;
if(j[0]!=document&&/static/.test(j.css("position"))){k=m
}if(l.left<(i._helper?m.left:0)){i.size.width+=i._helper?i.position.left-m.left:i.position.left-k.left;
if(e){i.size.height=i.size.width/n.aspectRatio
}i.position.left=n.helper?m.left:0
}if(l.top<(i._helper?m.top:0)){i.size.height+=i._helper?i.position.top-m.top:i.position.top;
if(e){i.size.width=i.size.height*n.aspectRatio
}i.position.top=i._helper?m.top:0
}i.offset.left=i.parentData.left+i.position.left;
i.offset.top=i.parentData.top+i.position.top;
n=Math.abs((i._helper?i.offset.left-k.left:i.offset.left-k.left)+i.sizeDiff.width);
m=Math.abs((i._helper?i.offset.top-k.top:i.offset.top-m.top)+i.sizeDiff.height);
l=i.containerElement.get(0)==i.element.parent().get(0);
k=/relative|absolute/.test(i.containerElement.css("position"));
if(l&&k){n-=i.parentData.left
}if(n+i.size.width>=i.parentData.width){i.size.width=i.parentData.width-n;
if(e){i.size.height=i.size.width/i.aspectRatio
}}if(m+i.size.height>=i.parentData.height){i.size.height=i.parentData.height-m;
if(e){i.size.width=i.size.height*i.aspectRatio
}}},stop:function(){var e=c(this).data("resizable"),j=e.options,p=e.containerOffset,o=e.containerPosition,n=e.containerElement,m=c(e.helper),l=m.offset(),k=m.outerWidth()-e.sizeDiff.width;
m=m.outerHeight()-e.sizeDiff.height;
e._helper&&!j.animate&&/relative/.test(n.css("position"))&&c(this).css({left:l.left-o.left-p.left,width:k,height:m});
e._helper&&!j.animate&&/static/.test(n.css("position"))&&c(this).css({left:l.left-o.left-p.left,width:k,height:m})
}});
c.ui.plugin.add("resizable","ghost",{start:function(){var d=c(this).data("resizable"),e=d.options,f=d.size;
d.ghost=d.originalElement.clone();
d.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof e.ghost=="string"?e.ghost:"");
d.ghost.appendTo(d.helper)
},resize:function(){var d=c(this).data("resizable");
d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})
},stop:function(){var d=c(this).data("resizable");
d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))
}});
c.ui.plugin.add("resizable","grid",{resize:function(){var e=c(this).data("resizable"),i=e.options,n=e.size,m=e.originalSize,l=e.originalPosition,k=e.axis;
i.grid=typeof i.grid=="number"?[i.grid,i.grid]:i.grid;
var j=Math.round((n.width-m.width)/(i.grid[0]||1))*(i.grid[0]||1);
i=Math.round((n.height-m.height)/(i.grid[1]||1))*(i.grid[1]||1);
if(/^(se|s|e)$/.test(k)){e.size.width=m.width+j;
e.size.height=m.height+i
}else{if(/^(ne)$/.test(k)){e.size.width=m.width+j;
e.size.height=m.height+i;
e.position.top=l.top-i
}else{if(/^(sw)$/.test(k)){e.size.width=m.width+j;
e.size.height=m.height+i
}else{e.size.width=m.width+j;
e.size.height=m.height+i;
e.position.top=l.top-i
}e.position.left=l.left-j
}}}});
var a=function(d){return parseInt(d,10)||0
},b=function(d){return !isNaN(parseInt(d,10))
}
})(jQuery);
(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;
this.element.addClass("ui-selectable");
this.dragged=false;
var b;
this.refresh=function(){b=a(d.options.filter,d.element[0]);
b.each(function(){var e=a(this),c=e.offset();
a.data(this,"selectable-item",{element:this,$element:e,left:c.left,top:c.top,right:c.left+e.outerWidth(),bottom:c.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})
})
};
this.refresh();
this.selectees=b.addClass("ui-selectee");
this._mouseInit();
this.helper=a("<div class='ui-selectable-helper'></div>")
},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");
this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");
this._mouseDestroy();
return this
},_mouseStart:function(g){var b=this;
this.opos=[g.pageX,g.pageY];
if(!this.options.disabled){var e=this.options;
this.selectees=a(e.filter,this.element[0]);
this._trigger("start",g);
a(e.appendTo).append(this.helper);
this.helper.css({left:g.clientX,top:g.clientY,width:0,height:0});
e.autoRefresh&&this.refresh();
this.selectees.filter(".ui-selected").each(function(){var c=a.data(this,"selectable-item");
c.startselected=true;
if(!g.metaKey){c.$element.removeClass("ui-selected");
c.selected=false;
c.$element.addClass("ui-unselecting");
c.unselecting=true;
b._trigger("unselecting",g,{unselecting:c.element})
}});
a(g.target).parents().andSelf().each(function(){var c=a.data(this,"selectable-item");
if(c){var d=!g.metaKey||!c.$element.hasClass("ui-selected");
c.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting");
c.unselecting=!d;
c.selecting=d;
(c.selected=d)?b._trigger("selecting",g,{selecting:c.element}):b._trigger("unselecting",g,{unselecting:c.element});
return false
}})
}},_mouseDrag:function(q){var o=this;
this.dragged=true;
if(!this.options.disabled){var p=this.options,e=this.opos[0],n=this.opos[1],m=q.pageX,l=q.pageY;
if(e>m){var k=m;
m=e;
e=k
}if(n>l){k=l;
l=n;
n=k
}this.helper.css({left:e,top:n,width:m-e,height:l-n});
this.selectees.each(function(){var b=a.data(this,"selectable-item");
if(!(!b||b.element==o.element[0])){var c=false;
if(p.tolerance=="touch"){c=!(b.left>m||b.right<e||b.top>l||b.bottom<n)
}else{if(p.tolerance=="fit"){c=b.left>e&&b.right<m&&b.top>n&&b.bottom<l
}}if(c){if(b.selected){b.$element.removeClass("ui-selected");
b.selected=false
}if(b.unselecting){b.$element.removeClass("ui-unselecting");
b.unselecting=false
}if(!b.selecting){b.$element.addClass("ui-selecting");
b.selecting=true;
o._trigger("selecting",q,{selecting:b.element})
}}else{if(b.selecting){if(q.metaKey&&b.startselected){b.$element.removeClass("ui-selecting");
b.selecting=false;
b.$element.addClass("ui-selected");
b.selected=true
}else{b.$element.removeClass("ui-selecting");
b.selecting=false;
if(b.startselected){b.$element.addClass("ui-unselecting");
b.unselecting=true
}o._trigger("unselecting",q,{unselecting:b.element})
}}if(b.selected){if(!q.metaKey&&!b.startselected){b.$element.removeClass("ui-selected");
b.selected=false;
b.$element.addClass("ui-unselecting");
b.unselecting=true;
o._trigger("unselecting",q,{unselecting:b.element})
}}}}});
return false
}},_mouseStop:function(d){var b=this;
this.dragged=false;
a(".ui-unselecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");
c.$element.removeClass("ui-unselecting");
c.unselecting=false;
c.startselected=false;
b._trigger("unselected",d,{unselected:c.element})
});
a(".ui-selecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");
c.$element.removeClass("ui-selecting").addClass("ui-selected");
c.selecting=false;
c.selected=true;
c.startselected=true;
b._trigger("selected",d,{selected:c.element})
});
this._trigger("stop",d);
this.helper.remove();
return false
}});
a.extend(a.ui.selectable,{version:"1.8.5"})
})(jQuery);
(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,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},_create:function(){this.containerCache={};
this.element.addClass("ui-sortable");
this.refresh();
this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;
this.offset=this.element.offset();
this._mouseInit()
},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");
this._mouseDestroy();
for(var b=this.items.length-1;
b>=0;
b--){this.items[b].item.removeData("sortable-item")
}return this
},_setOption:function(d,c){if(d==="disabled"){this.options[d]=c;
this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")
}else{a.Widget.prototype._setOption.apply(this,arguments)
}},_mouseCapture:function(g,d){if(this.reverting){return false
}if(this.options.disabled||this.options.type=="static"){return false
}this._refreshItems(g);
var j=null,i=this;
a(g.target).parents().each(function(){if(a.data(this,"sortable-item")==i){j=a(this);
return false
}});
if(a.data(g.target,"sortable-item")==i){j=a(g.target)
}if(!j){return false
}if(this.options.handle&&!d){var h=false;
a(this.options.handle,j).find("*").andSelf().each(function(){if(this==g.target){h=true
}});
if(!h){return false
}}this.currentItem=j;
this._removeCurrentsFromItems();
return true
},_mouseStart:function(f,d,h){d=this.options;
var g=this;
this.currentContainer=this;
this.refreshPositions();
this.helper=this._createHelper(f);
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");
a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this._generatePosition(f);
this.originalPageX=f.pageX;
this.originalPageY=f.pageY;
d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);
this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();
this._createPlaceholder();
d.containment&&this._setContainment();
if(d.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")
}a("body").css("cursor",d.cursor)
}if(d.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")
}this.helper.css("opacity",d.opacity)
}if(d.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")
}this.helper.css("zIndex",d.zIndex)
}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()
}this._trigger("start",f,this._uiHash());
this._preserveHelperProportions||this._cacheHelperProportions();
if(!h){for(h=this.containers.length-1;
h>=0;
h--){this.containers[h]._trigger("activate",f,g._uiHash(this))
}}if(a.ui.ddmanager){a.ui.ddmanager.current=this
}a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f);
this.dragging=true;
this.helper.addClass("ui-sortable-helper");
this._mouseDrag(f);
return true
},_mouseDrag:function(g){this.position=this._generatePosition(g);
this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs
}if(this.options.scroll){var d=this.options,j=false;
if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-g.pageY<d.scrollSensitivity){this.scrollParent[0].scrollTop=j=this.scrollParent[0].scrollTop+d.scrollSpeed
}else{if(g.pageY-this.overflowOffset.top<d.scrollSensitivity){this.scrollParent[0].scrollTop=j=this.scrollParent[0].scrollTop-d.scrollSpeed
}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-g.pageX<d.scrollSensitivity){this.scrollParent[0].scrollLeft=j=this.scrollParent[0].scrollLeft+d.scrollSpeed
}else{if(g.pageX-this.overflowOffset.left<d.scrollSensitivity){this.scrollParent[0].scrollLeft=j=this.scrollParent[0].scrollLeft-d.scrollSpeed
}}}else{if(g.pageY-a(document).scrollTop()<d.scrollSensitivity){j=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed)
}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<d.scrollSensitivity){j=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed)
}}if(g.pageX-a(document).scrollLeft()<d.scrollSensitivity){j=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed)
}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<d.scrollSensitivity){j=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)
}}}j!==false&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,g)
}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(d=this.items.length-1;
d>=0;
d--){j=this.items[d];
var i=j.item[0],h=this._intersectsWithPointer(j);
if(h){if(i!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=i&&!a.ui.contains(this.placeholder[0],i)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],i):true)){this.direction=h==1?"down":"up";
if(this.options.tolerance=="pointer"||this._intersectsWithSides(j)){this._rearrange(g,j)
}else{break
}this._trigger("change",g,this._uiHash());
break
}}}this._contactContainers(g);
a.ui.ddmanager&&a.ui.ddmanager.drag(this,g);
this._trigger("sort",g,this._uiHash());
this.lastPositionAbs=this.positionAbs;
return false
},_mouseStop:function(e,d){if(e){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,e);
if(this.options.revert){var f=this;
d=f.placeholder.offset();
f.reverting=true;
a(this.helper).animate({left:d.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(e)
})
}else{this._clear(e,d)
}return false
}},cancel:function(){var d=this;
if(this.dragging){this._mouseUp();
this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();
for(var c=this.containers.length-1;
c>=0;
c--){this.containers[c]._trigger("deactivate",null,d._uiHash(this));
if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,d._uiHash(this));
this.containers[c].containerCache.over=0
}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();
a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});
this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem);
return this
},serialize:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];
e=e||{};
a(d).each(function(){var b=(a(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);
if(b){f.push((e.key||b[1]+"[]")+"="+(e.key&&e.expression?b[1]:b[2]))
}});
!f.length&&e.key&&f.push(e.key+"=");
return f.join("&")
},toArray:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];
e=e||{};
d.each(function(){f.push(a(e.item||this).attr(e.attribute||"id")||"")
});
return f
},_intersectsWith:function(w){var v=this.positionAbs.left,u=v+this.helperProportions.width,s=this.positionAbs.top,r=s+this.helperProportions.height,q=w.left,p=q+w.width,o=w.top,m=o+w.height,n=this.offset.click.top,d=this.offset.click.left;
n=s+n>o&&s+n<m&&v+d>q&&v+d<p;
return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>w[this.floating?"width":"height"]?n:q<v+this.helperProportions.width/2&&u-this.helperProportions.width/2<p&&o<s+this.helperProportions.height/2&&r-this.helperProportions.height/2<m
},_intersectsWithPointer:function(e){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);
e=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);
d=d&&e;
e=this._getDragVerticalDirection();
var f=this._getDragHorizontalDirection();
if(!d){return false
}return this.floating?f&&f=="right"||e=="down"?2:1:e&&(e=="down"?2:1)
},_intersectsWithSides:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+f.height/2,f.height);
f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+f.width/2,f.width);
var h=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();
return this.floating&&g?g=="right"&&f||g=="left"&&!f:h&&(h=="down"&&d||h=="up"&&!d)
},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;
return b!=0&&(b>0?"down":"up")
},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;
return b!=0&&(b>0?"right":"left")
},refresh:function(b){this._refreshItems(b);
this.refreshPositions();
return this
},_connectWith:function(){var b=this.options;
return b.connectWith.constructor==String?[b.connectWith]:b.connectWith
},_getItemsAsjQuery:function(i){var d=[],n=[],m=this._connectWith();
if(m&&i){for(i=m.length-1;
i>=0;
i--){for(var l=a(m[i]),k=l.length-1;
k>=0;
k--){var j=a.data(l[k],"sortable");
if(j&&j!=this&&!j.options.disabled){n.push([a.isFunction(j.options.items)?j.options.items.call(j.element):a(j.options.items,j.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),j])
}}}}n.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);
for(i=n.length-1;
i>=0;
i--){n[i][0].each(function(){d.push(this)
})
}return a(d)
},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),d=0;
d<this.items.length;
d++){for(var f=0;
f<e.length;
f++){e[f]==this.items[d].item[0]&&this.items.splice(d,1)
}}},_refreshItems:function(j){this.items=[];
this.containers=[this];
var d=this.items,p=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],j,{item:this.currentItem}):a(this.options.items,this.element),this]],o=this._connectWith();
if(o){for(var n=o.length-1;
n>=0;
n--){for(var m=a(o[n]),l=m.length-1;
l>=0;
l--){var k=a.data(m[l],"sortable");
if(k&&k!=this&&!k.options.disabled){p.push([a.isFunction(k.options.items)?k.options.items.call(k.element[0],j,{item:this.currentItem}):a(k.options.items,k.element),k]);
this.containers.push(k)
}}}}for(n=p.length-1;
n>=0;
n--){j=p[n][1];
o=p[n][0];
l=0;
for(m=o.length;
l<m;
l++){k=a(o[l]);
k.data("sortable-item",j);
d.push({item:k,instance:j,width:0,height:0,left:0,top:0})
}}},refreshPositions:function(f){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()
}for(var d=this.items.length-1;
d>=0;
d--){var h=this.items[d],g=this.options.toleranceElement?a(this.options.toleranceElement,h.item):h.item;
if(!f){h.width=g.outerWidth();
h.height=g.outerHeight()
}g=g.offset();
h.left=g.left;
h.top=g.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--){g=this.containers[d].element.offset();
this.containers[d].containerCache.left=g.left;
this.containers[d].containerCache.top=g.top;
this.containers[d].containerCache.width=this.containers[d].element.outerWidth();
this.containers[d].containerCache.height=this.containers[d].element.outerHeight()
}}return this
},_createPlaceholder:function(f){var d=f||this,h=d.options;
if(!h.placeholder||h.placeholder.constructor==String){var g=h.placeholder;
h.placeholder={element:function(){var b=a(document.createElement(d.currentItem[0].nodeName)).addClass(g||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
if(!g){b.style.visibility="hidden"
}return b
},update:function(c,b){if(!(g&&!h.forcePlaceholderSize)){b.height()||b.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));
b.width()||b.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))
}}}
}d.placeholder=a(h.placeholder.element.call(d.element,d.currentItem));
d.currentItem.after(d.placeholder);
h.placeholder.update(d,d.placeholder)
},_contactContainers:function(i){for(var d=null,n=null,m=this.containers.length-1;
m>=0;
m--){if(!a.ui.contains(this.currentItem[0],this.containers[m].element[0])){if(this._intersectsWith(this.containers[m].containerCache)){if(!(d&&a.ui.contains(this.containers[m].element[0],d.element[0]))){d=this.containers[m];
n=m
}}else{if(this.containers[m].containerCache.over){this.containers[m]._trigger("out",i,this._uiHash(this));
this.containers[m].containerCache.over=0
}}}}if(d){if(this.containers.length===1){this.containers[n]._trigger("over",i,this._uiHash(this));
this.containers[n].containerCache.over=1
}else{if(this.currentContainer!=this.containers[n]){d=10000;
m=null;
for(var l=this.positionAbs[this.containers[n].floating?"left":"top"],k=this.items.length-1;
k>=0;
k--){if(a.ui.contains(this.containers[n].element[0],this.items[k].item[0])){var j=this.items[k][this.containers[n].floating?"left":"top"];
if(Math.abs(j-l)<d){d=Math.abs(j-l);
m=this.items[k]
}}}if(m||this.options.dropOnEmpty){this.currentContainer=this.containers[n];
m?this._rearrange(i,m,null,true):this._rearrange(i,null,this.containers[n].element,true);
this._trigger("change",i,this._uiHash());
this.containers[n]._trigger("change",i,this._uiHash(this));
this.options.placeholder.update(this.currentContainer,this.placeholder);
this.containers[n]._trigger("over",i,this._uiHash(this));
this.containers[n].containerCache.over=1
}}}}},_createHelper:function(d){var c=this.options;
d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;
d.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);
if(d[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}
}if(d[0].style.width==""||c.forceHelperSize){d.width(this.currentItem.width())
}if(d[0].style.height==""||c.forceHelperSize){d.height(this.currentItem.height())
}return d
},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")
}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}
}if("left" in b){this.offset.click.left=b.left+this.margins.left
}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left
}if("top" in b){this.offset.click.top=b.top+this.margins.top
}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var b=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();
b.top+=this.scrollParent.scrollTop()
}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}
}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();
return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{return{top:0,left:0}
}},_cacheMargins:function(){this.margins={left:parseInt(this.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 e=this.options;
if(e.containment=="parent"){e.containment=this.helper[0].parentNode
}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!/^(document|window|parent)$/.test(e.containment)){var d=a(e.containment)[0];
e=a(e.containment).offset();
var f=a(d).css("overflow")!="hidden";
this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]
}},_convertPositionTo:function(f,d){if(!d){d=this.position
}f=f=="absolute"?1:-1;
var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);
return{top:d.top+this.offset.relative.top*f+this.offset.parent.top*f-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*f),left:d.left+this.offset.relative.left*f+this.offset.parent.left*f-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*f)}
},_generatePosition:function(h){var d=this.options,l=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=/(html|body)/i.test(l[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()
}var j=h.pageX,i=h.pageY;
if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.left<this.containment[0]){j=this.containment[0]+this.offset.click.left
}if(h.pageY-this.offset.click.top<this.containment[1]){i=this.containment[1]+this.offset.click.top
}if(h.pageX-this.offset.click.left>this.containment[2]){j=this.containment[2]+this.offset.click.left
}if(h.pageY-this.offset.click.top>this.containment[3]){i=this.containment[3]+this.offset.click.top
}}if(d.grid){i=this.originalPageY+Math.round((i-this.originalPageY)/d.grid[1])*d.grid[1];
i=this.containment?!(i-this.offset.click.top<this.containment[1]||i-this.offset.click.top>this.containment[3])?i:!(i-this.offset.click.top<this.containment[1])?i-d.grid[1]:i+d.grid[1]:i;
j=this.originalPageX+Math.round((j-this.originalPageX)/d.grid[0])*d.grid[0];
j=this.containment?!(j-this.offset.click.left<this.containment[0]||j-this.offset.click.left>this.containment[2])?j:!(j-this.offset.click.left<this.containment[0])?j-d.grid[0]:j+d.grid[0]:j
}}return{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():k?0:l.scrollTop()),left:j-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:l.scrollLeft())}
},_rearrange:function(h,d,l,k){l?l[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 j=this,i=this.counter;
window.setTimeout(function(){i==j.counter&&j.refreshPositions(!k)
},0)
},_clear:function(f,d){this.reverting=false;
var h=[];
!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);
this._noFinalSort=null;
if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS){if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static"){this._storedCSS[g]=""
}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")
}else{this.currentItem.show()
}this.fromOutside&&!d&&h.push(function(b){this._trigger("receive",b,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])&&!d){h.push(function(b){this._trigger("update",b,this._uiHash())
})
}if(!a.ui.contains(this.element[0],this.currentItem[0])){d||h.push(function(b){this._trigger("remove",b,this._uiHash())
});
for(g=this.containers.length-1;
g>=0;
g--){if(a.ui.contains(this.containers[g].element[0],this.currentItem[0])&&!d){h.push(function(b){return function(c){b._trigger("receive",c,this._uiHash(this))
}
}.call(this,this.containers[g]));
h.push(function(b){return function(c){b._trigger("update",c,this._uiHash(this))
}
}.call(this,this.containers[g]))
}}}for(g=this.containers.length-1;
g>=0;
g--){d||h.push(function(b){return function(c){b._trigger("deactivate",c,this._uiHash(this))
}
}.call(this,this.containers[g]));
if(this.containers[g].containerCache.over){h.push(function(b){return function(c){b._trigger("out",c,this._uiHash(this))
}
}.call(this,this.containers[g]));
this.containers[g].containerCache.over=0
}}this._storedCursor&&a("body").css("cursor",this._storedCursor);
this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);
if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)
}this.dragging=false;
if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",f,this._uiHash());
for(g=0;
g<h.length;
g++){h[g].call(this,f)
}this._trigger("stop",f,this._uiHash())
}return false
}d||this._trigger("beforeStop",f,this._uiHash());
this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
this.helper[0]!=this.currentItem[0]&&this.helper.remove();
this.helper=null;
if(!d){for(g=0;
g<h.length;
g++){h[g].call(this,f)
}this._trigger("stop",f,this._uiHash())
}this.fromOutside=false;
return true
},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()
},_uiHash:function(d){var c=d||this;
return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:d?d.element:null}
}});
a.extend(a.ui.sortable,{version:"1.8.5"})
})(jQuery);
(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()
}},_create:function(){var e=this,c=e.options;
e.running=0;
e.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
e.headers=e.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||a(this).addClass("ui-state-hover")
}).bind("mouseleave.accordion",function(){c.disabled||a(this).removeClass("ui-state-hover")
}).bind("focus.accordion",function(){c.disabled||a(this).addClass("ui-state-focus")
}).bind("blur.accordion",function(){c.disabled||a(this).removeClass("ui-state-focus")
});
e.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(c.navigation){var h=e.element.find("a").filter(c.navigationFilter).eq(0);
if(h.length){var g=h.closest(".ui-accordion-header");
e.active=g.length?g:h.closest(".ui-accordion-content").prev()
}}e.active=e._findActive(e.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");
e.active.next().addClass("ui-accordion-content-active");
e._createIcons();
e.resize();
e.element.attr("role","tablist");
e.headers.attr("role","tab").bind("keydown.accordion",function(b){return e._keydown(b)
}).next().attr("role","tabpanel");
e.headers.not(e.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();
e.active.length?e.active.attr({"aria-expanded":"true",tabIndex:0}):e.headers.eq(0).attr("tabIndex",0);
a.browser.safari||e.headers.find("a").attr("tabIndex",-1);
c.event&&e.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(b){e._clickHandler.call(e,b,this);
b.preventDefault()
})
},_createIcons:function(){var b=this.options;
if(b.icons){a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);
this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);
this.element.addClass("ui-accordion-icons")
}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();
this.element.removeClass("ui-accordion-icons")
},destroy:function(){var d=this.options;
this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");
this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");
this._destroyIcons();
var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");
if(d.autoHeight||d.fillHeight){c.css("height","")
}return a.Widget.prototype.destroy.call(this)
},_setOption:function(d,c){a.Widget.prototype._setOption.apply(this,arguments);
d=="active"&&this.activate(c);
if(d=="icons"){this._destroyIcons();
c&&this._createIcons()
}if(d=="disabled"){this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")
}},_keydown:function(e){if(!(this.options.disabled||e.altKey||e.ctrlKey)){var c=a.ui.keyCode,j=this.headers.length,i=this.headers.index(e.target),h=false;
switch(e.keyCode){case c.RIGHT:case c.DOWN:h=this.headers[(i+1)%j];
break;
case c.LEFT:case c.UP:h=this.headers[(i-1+j)%j];
break;
case c.SPACE:case c.ENTER:this._clickHandler({target:e.target},e.target);
e.preventDefault()
}if(h){a(e.target).attr("tabIndex",-1);
a(h).attr("tabIndex",0);
h.focus();
return false
}return true
}},resize:function(){var e=this.options,c;
if(e.fillSpace){if(a.browser.msie){var f=this.element.parent().css("overflow");
this.element.parent().css("overflow","hidden")
}c=this.element.parent().height();
a.browser.msie&&this.element.parent().css("overflow",f);
this.headers.each(function(){c-=a(this).outerHeight(true)
});
this.headers.next().each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))
}).css("overflow","auto")
}else{if(e.autoHeight){c=0;
this.headers.next().each(function(){c=Math.max(c,a(this).height("").height())
}).height(c)
}}return this
},activate:function(b){this.options.active=b;
b=this._findActive(b)[0];
this._clickHandler({target:b},b);
return this
},_findActive:function(b){return b?typeof b==="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")
},_clickHandler:function(e,c){var l=this.options;
if(!l.disabled){if(e.target){e=a(e.currentTarget||c);
c=e[0]===this.active[0];
l.active=l.collapsible&&c?false:this.headers.index(e);
if(!(this.running||!l.collapsible&&c)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(l.icons.headerSelected).addClass(l.icons.header);
if(!c){e.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(l.icons.header).addClass(l.icons.headerSelected);
e.next().addClass("ui-accordion-content-active")
}i=e.next();
k=this.active.next();
j={options:l,newHeader:c&&l.collapsible?a([]):e,oldHeader:this.active,newContent:c&&l.collapsible?a([]):i,oldContent:k};
l=this.headers.index(this.active[0])>this.headers.index(e[0]);
this.active=c?a([]):e;
this._toggle(i,k,j,c,l)
}}else{if(l.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(l.icons.headerSelected).addClass(l.icons.header);
this.active.next().addClass("ui-accordion-content-active");
var k=this.active.next(),j={options:l,newHeader:a([]),oldHeader:l.active,newContent:a([]),oldContent:k},i=this.active=a([]);
this._toggle(i,k,j)
}}}},_toggle:function(u,s,r,p,o){var n=this,q=n.options;
n.toShow=u;
n.toHide=s;
n.data=r;
var l=function(){if(n){return n._completed.apply(n,arguments)
}};
n._trigger("changestart",null,n.data);
n.running=s.size()===0?u.size():s.size();
if(q.animated){r={};
r=q.collapsible&&p?{toShow:a([]),toHide:s,complete:l,down:o,autoHeight:q.autoHeight||q.fillSpace}:{toShow:u,toHide:s,complete:l,down:o,autoHeight:q.autoHeight||q.fillSpace};
if(!q.proxied){q.proxied=q.animated
}if(!q.proxiedDuration){q.proxiedDuration=q.duration
}q.animated=a.isFunction(q.proxied)?q.proxied(r):q.proxied;
q.duration=a.isFunction(q.proxiedDuration)?q.proxiedDuration(r):q.proxiedDuration;
p=a.ui.accordion.animations;
var m=q.duration,c=q.animated;
if(c&&!p[c]&&!a.easing[c]){c="slide"
}p[c]||(p[c]=function(b){this.slide(b,{easing:c,duration:m||700})
});
p[c](r)
}else{if(q.collapsible&&p){u.toggle()
}else{s.hide();
u.show()
}l(true)
}s.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();
u.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()
},_completed:function(b){this.running=b?0:--this.running;
if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});
this.toHide.removeClass("ui-accordion-content-active");
this._trigger("change",null,this.data)
}}});
a.extend(a.ui.accordion,{version:"1.8.5",animations:{slide:function(i,c){i=a.extend({easing:"swing",duration:300},i,c);
if(i.toHide.size()){if(i.toShow.size()){var n=i.toShow.css("overflow"),l=0,k={},j={},m;
c=i.toShow;
m=c[0].style.width;
c.width(parseInt(c.parent().width(),10)-parseInt(c.css("paddingLeft"),10)-parseInt(c.css("paddingRight"),10)-(parseInt(c.css("borderLeftWidth"),10)||0)-(parseInt(c.css("borderRightWidth"),10)||0));
a.each(["height","paddingTop","paddingBottom"],function(b,d){j[d]="hide";
b=(""+a.css(i.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);
k[d]={value:b[1],unit:b[2]||"px"}
});
i.toShow.css({height:0,overflow:"hidden"}).show();
i.toHide.filter(":hidden").each(i.complete).end().filter(":visible").animate(j,{step:function(b,d){if(d.prop=="height"){l=d.end-d.start===0?0:(d.now-d.start)/(d.end-d.start)
}i.toShow[0].style[d.prop]=l*k[d.prop].value+k[d.prop].unit
},duration:i.duration,easing:i.easing,complete:function(){i.autoHeight||i.toShow.css("height","");
i.toShow.css({width:m,overflow:n});
i.complete()
}})
}else{i.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},i)
}}else{i.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},i)
}},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})
}}})
})(jQuery);
(function(a){a.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var d=this,c=this.element[0].ownerDocument;
this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(e){if(!d.options.disabled){var b=a.ui.keyCode;
switch(e.keyCode){case b.PAGE_UP:d._move("previousPage",e);
break;
case b.PAGE_DOWN:d._move("nextPage",e);
break;
case b.UP:d._move("previous",e);
e.preventDefault();
break;
case b.DOWN:d._move("next",e);
e.preventDefault();
break;
case b.ENTER:case b.NUMPAD_ENTER:d.menu.element.is(":visible")&&e.preventDefault();
case b.TAB:if(!d.menu.active){return
}d.menu.select(e);
break;
case b.ESCAPE:d.element.val(d.term);
d.close(e);
break;
default:clearTimeout(d.searching);
d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;
d.search(null,e)
}},d.options.delay);
break
}}}).bind("focus.autocomplete",function(){if(!d.options.disabled){d.selectedItem=null;
d.previous=d.element.val()
}}).bind("blur.autocomplete",function(b){if(!d.options.disabled){clearTimeout(d.searching);
d.closing=setTimeout(function(){d.close(b);
d._change(b)
},150)
}});
this._initSource();
this.response=function(){return d._response.apply(d,arguments)
};
this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(e){var b=d.menu.element[0];
e.target===b&&setTimeout(function(){a(document).one("mousedown",function(g){g.target!==d.element[0]&&g.target!==b&&!a.ui.contains(b,g.target)&&d.close()
})
},1);
setTimeout(function(){clearTimeout(d.closing)
},13)
}).menu({focus:function(e,b){b=b.item.data("item.autocomplete");
false!==d._trigger("focus",null,{item:b})&&/^key/.test(e.originalEvent.type)&&d.element.val(b.value)
},selected:function(g,e){e=e.item.data("item.autocomplete");
var b=d.previous;
if(d.element[0]!==c.activeElement){d.element.focus();
d.previous=b
}if(false!==d._trigger("select",g,{item:e})){d.term=e.value;
d.element.val(e.value)
}d.close(g);
d.selectedItem=e
},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)
}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
a.fn.bgiframe&&this.menu.element.bgiframe()
},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();
a.Widget.prototype.destroy.call(this)
},_setOption:function(d,c){a.Widget.prototype._setOption.apply(this,arguments);
d==="source"&&this._initSource();
if(d==="appendTo"){this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0])
}},_initSource:function(){var e=this,d,f;
if(a.isArray(this.options.source)){d=this.options.source;
this.source=function(c,b){b(a.ui.autocomplete.filter(d,c.term))
}
}else{if(typeof this.options.source==="string"){f=this.options.source;
this.source=function(c,b){e.xhr&&e.xhr.abort();
e.xhr=a.getJSON(f,c,function(l,j,k){k===e.xhr&&b(l);
e.xhr=null
})
}
}else{this.source=this.options.source
}}},search:function(d,c){d=d!=null?d:this.element.val();
this.term=this.element.val();
if(d.length<this.options.minLength){return this.close(c)
}clearTimeout(this.closing);
if(this._trigger("search")!==false){return this._search(d)
}},_search:function(b){this.element.addClass("ui-autocomplete-loading");
this.source({term:b},this.response)
},_response:function(b){if(b.length){b=this._normalize(b);
this._suggest(b);
this._trigger("open")
}else{this.close()
}this.element.removeClass("ui-autocomplete-loading")
},close:function(b){clearTimeout(this.closing);
if(this.menu.element.is(":visible")){this._trigger("close",b);
this.menu.element.hide();
this.menu.deactivate()
}},_change:function(b){this.previous!==this.element.val()&&this._trigger("change",b,{item:this.selectedItem})
},_normalize:function(b){if(b.length&&b[0].label&&b[0].value){return b
}return a.map(b,function(c){if(typeof c==="string"){return{label:c,value:c}
}return a.extend({label:c.label||c.value,value:c.value||c.label},c)
})
},_suggest:function(e){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),f;
this._renderMenu(d,e);
this.menu.deactivate();
this.menu.refresh();
this.menu.element.show().position(a.extend({of:this.element},this.options.position));
e=d.width("").outerWidth();
f=this.element.outerWidth();
d.outerWidth(Math.max(e,f))
},_renderMenu:function(e,d){var f=this;
a.each(d,function(c,b){f._renderItem(e,b)
})
},_renderItem:function(d,c){return a("<li></li>").data("item.autocomplete",c).append(a("<a></a>").text(c.label)).appendTo(d)
},_move:function(d,c){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);
this.menu.deactivate()
}else{this.menu[d](c)
}}else{this.search(null,c)
}},widget:function(){return this.menu.element
}});
a.extend(a.ui.autocomplete,{escapeRegex:function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")
},filter:function(e,d){var f=new RegExp(a.ui.autocomplete.escapeRegex(d),"i");
return a.grep(e,function(b){return f.test(b.label||b.value||b)
})
}})
})(jQuery);
(function(a){a.widget("ui.menu",{_create:function(){var b=this;
this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(a(c.target).closest(".ui-menu-item a").length){c.preventDefault();
b.select(c)
}});
this.refresh()
},refresh:function(){var b=this;
this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())
}).mouseleave(function(){b.deactivate()
})
},activate:function(g,e){this.deactivate();
if(this.hasScroll()){var j=e.offset().top-this.element.offset().top,i=this.element.attr("scrollTop"),h=this.element.height();
if(j<0){this.element.attr("scrollTop",i+j)
}else{j>=h&&this.element.attr("scrollTop",i+j-h+e.height())
}}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();
this._trigger("focus",g,{item:e})
},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");
this.active=null
}},next:function(b){this.move("next",".ui-menu-item:first",b)
},previous:function(b){this.move("prev",".ui-menu-item:last",b)
},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length
},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length
},move:function(e,d,f){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);
e.length?this.activate(f,e):this.activate(f,this.element.children(d))
}else{this.activate(f,this.element.children(d))
}},nextPage:function(f){if(this.hasScroll()){if(!this.active||this.last()){this.activate(f,this.element.children(":first"))
}else{var e=this.active.offset().top,h=this.element.height(),g=this.element.children("li").filter(function(){var b=a(this).offset().top-e-h+a(this).height();
return b<10&&b>-10
});
g.length||(g=this.element.children(":last"));
this.activate(f,g)
}}else{this.activate(f,this.element.children(!this.active||this.last()?":first":":last"))
}},previousPage:function(e){if(this.hasScroll()){if(!this.active||this.first()){this.activate(e,this.element.children(":last"))
}else{var d=this.active.offset().top,f=this.element.height();
result=this.element.children("li").filter(function(){var b=a(this).offset().top-d+f-a(this).height();
return b<10&&b>-10
});
result.length||(result=this.element.children(":first"));
this.activate(e,result)
}}else{this.activate(e,this.element.children(!this.active||this.first()?":last":":first"))
}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")
},select:function(b){this._trigger("selected",b,{item:this.active})
}})
})(jQuery);
(function(b){var e,c=function(a){b(":ui-button",a.target.form).each(function(){var f=b(this).data("button");
setTimeout(function(){f.refresh()
},1)
})
},d=function(a){var h=a.name,g=a.form,f=b([]);
if(h){f=g?b(g).find("[name='"+h+"']"):b("[name='"+h+"']",a.ownerDocument).filter(function(){return !this.form
})
}return f
};
b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",c);
if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.attr("disabled")
}this._determineButtonType();
this.hasTitle=!!this.buttonElement.attr("title");
var a=this,h=this.options,g=this.type==="checkbox"||this.type==="radio",f="ui-state-hover"+(!g?" ui-state-active":"");
if(h.label===null){h.label=this.buttonElement.html()
}if(this.element.is(":disabled")){h.disabled=true
}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!h.disabled){b(this).addClass("ui-state-hover");
this===e&&b(this).addClass("ui-state-active")
}}).bind("mouseleave.button",function(){h.disabled||b(this).removeClass(f)
}).bind("focus.button",function(){b(this).addClass("ui-state-focus")
}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")
});
g&&this.element.bind("change.button",function(){a.refresh()
});
if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(h.disabled){return false
}b(this).toggleClass("ui-state-active");
a.buttonElement.attr("aria-pressed",a.element[0].checked)
})
}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(h.disabled){return false
}b(this).addClass("ui-state-active");
a.buttonElement.attr("aria-pressed",true);
var i=a.element[0];
d(i).not(i).map(function(){return b(this).button("widget")[0]
}).removeClass("ui-state-active").attr("aria-pressed",false)
})
}else{this.buttonElement.bind("mousedown.button",function(){if(h.disabled){return false
}b(this).addClass("ui-state-active");
e=this;
b(document).one("mouseup",function(){e=null
})
}).bind("mouseup.button",function(){if(h.disabled){return false
}b(this).removeClass("ui-state-active")
}).bind("keydown.button",function(i){if(h.disabled){return false
}if(i.keyCode==b.ui.keyCode.SPACE||i.keyCode==b.ui.keyCode.ENTER){b(this).addClass("ui-state-active")
}}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")
});
this.buttonElement.is("a")&&this.buttonElement.keyup(function(i){i.keyCode===b.ui.keyCode.SPACE&&b(this).click()
})
}}this._setOption("disabled",h.disabled)
},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";
if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");
this.element.addClass("ui-helper-hidden-accessible");
var a=this.element.is(":checked");
a&&this.buttonElement.addClass("ui-state-active");
this.buttonElement.attr("aria-pressed",a)
}else{this.buttonElement=this.element
}},widget:function(){return this.buttonElement
},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");
this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");
b.Widget.prototype.destroy.call(this)
},_setOption:function(a,f){b.Widget.prototype._setOption.apply(this,arguments);
if(a==="disabled"){f?this.element.attr("disabled",true):this.element.removeAttr("disabled")
}this._resetButton()
},refresh:function(){var a=this.element.is(":disabled");
a!==this.options.disabled&&this._setOption("disabled",a);
if(this.type==="radio"){d(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)
})
}else{if(this.type==="checkbox"){this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)
}}},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label)
}else{var a=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),h=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),g=this.options.icons,f=g.primary&&g.secondary;
if(g.primary||g.secondary){a.addClass("ui-button-text-icon"+(f?"s":g.primary?"-primary":"-secondary"));
g.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+g.primary+"'></span>");
g.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+g.secondary+"'></span>");
if(!this.options.text){a.addClass(f?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
this.hasTitle||a.attr("title",h)
}}else{a.addClass("ui-button-text-only")
}}}});
b.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");
this._init()
},_init:function(){this.refresh()
},_setOption:function(a,f){a==="disabled"&&this.buttons.button("option",a,f);
b.Widget.prototype._setOption.apply(this,arguments)
},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]
}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()
},destroy:function(){this.element.removeClass("ui-buttonset");
this.buttons.map(function(){return b(this).button("widget")[0]
}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
b.Widget.prototype.destroy.call(this)
}})
})(jQuery);
(function(b,a){b.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(d){var c=b(this).css(d).offset().top;
c<0&&b(this).css("top",d.top-c)
}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");
if(typeof this.originalTitle!=="string"){this.originalTitle=""
}this.options.title=this.options.title||this.originalTitle;
var i=this,c=i.options,n=c.title||"&#160;",l=b.ui.dialog.getTitleId(i.element),k=(i.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(d){if(c.closeOnEscape&&d.keyCode&&d.keyCode===b.ui.keyCode.ESCAPE){i.close(d);
d.preventDefault()
}}).attr({role:"dialog","aria-labelledby":l}).mousedown(function(d){i.moveToTop(false,d)
});
i.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k);
var m=(i.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),j=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")
},function(){j.removeClass("ui-state-hover")
}).focus(function(){j.addClass("ui-state-focus")
}).blur(function(){j.removeClass("ui-state-focus")
}).click(function(d){i.close(d);
return false
}).appendTo(m);
(i.uiDialogTitlebarCloseText=b("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(j);
b("<span></span>").addClass("ui-dialog-title").attr("id",l).html(n).prependTo(m);
if(b.isFunction(c.beforeclose)&&!b.isFunction(c.beforeClose)){c.beforeClose=c.beforeclose
}m.find("*").add(m).disableSelection();
c.draggable&&b.fn.draggable&&i._makeDraggable();
c.resizable&&b.fn.resizable&&i._makeResizable();
i._createButtons(c.buttons);
i._isOpen=false;
b.fn.bgiframe&&k.bgiframe()
},_init:function(){this.options.autoOpen&&this.open()
},destroy:function(){var c=this;
c.overlay&&c.overlay.destroy();
c.uiDialog.hide();
c.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
c.uiDialog.remove();
c.originalTitle&&c.element.attr("title",c.originalTitle);
return c
},widget:function(){return this.uiDialog
},close:function(e){var c=this,f;
if(false!==c._trigger("beforeClose",e)){c.overlay&&c.overlay.destroy();
c.uiDialog.unbind("keypress.ui-dialog");
c._isOpen=false;
if(c.options.hide){c.uiDialog.hide(c.options.hide,function(){c._trigger("close",e)
})
}else{c.uiDialog.hide();
c._trigger("close",e)
}b.ui.dialog.overlay.resize();
if(c.options.modal){f=0;
b(".ui-dialog").each(function(){if(this!==c.uiDialog[0]){f=Math.max(f,b(this).css("z-index"))
}});
b.ui.dialog.maxZ=f
}return c
}},isOpen:function(){return this._isOpen
},moveToTop:function(e,c){var h=this,g=h.options;
if(g.modal&&!e||!g.stack&&!g.modal){return h._trigger("focus",c)
}if(g.zIndex>b.ui.dialog.maxZ){b.ui.dialog.maxZ=g.zIndex
}if(h.overlay){b.ui.dialog.maxZ+=1;
h.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ)
}e={scrollTop:h.element.attr("scrollTop"),scrollLeft:h.element.attr("scrollLeft")};
b.ui.dialog.maxZ+=1;
h.uiDialog.css("z-index",b.ui.dialog.maxZ);
h.element.attr(e);
h._trigger("focus",c);
return h
},open:function(){if(!this._isOpen){var e=this,c=e.options,f=e.uiDialog;
e.overlay=c.modal?new b.ui.dialog.overlay(e):null;
f.next().length&&f.appendTo("body");
e._size();
e._position(c.position);
f.show(c.show);
e.moveToTop(true);
c.modal&&f.bind("keypress.ui-dialog",function(h){if(h.keyCode===b.ui.keyCode.TAB){var d=b(":tabbable",this),i=d.filter(":first");
d=d.filter(":last");
if(h.target===d[0]&&!h.shiftKey){i.focus(1);
return false
}else{if(h.target===i[0]&&h.shiftKey){d.focus(1);
return false
}}}});
b(e.element.find(":tabbable").get().concat(f.find(".ui-dialog-buttonpane :tabbable").get().concat(f.get()))).eq(0).focus();
e._isOpen=true;
e._trigger("open");
return e
}},_createButtons:function(e){var c=this,j=false,i=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),h=b("<div></div>").addClass("ui-dialog-buttonset").appendTo(i);
c.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof e==="object"&&e!==null&&b.each(e,function(){return !(j=true)
});
if(j){b.each(e,function(f,d){d=b.isFunction(d)?{click:d,text:f}:d;
f=b("<button></button>",d).unbind("click").click(function(){d.click.apply(c.element[0],arguments)
}).appendTo(h);
b.fn.button&&f.button()
});
i.appendTo(c.uiDialog)
}},_makeDraggable:function(){function e(d){return{position:d.position,offset:d.offset}
}var c=this,j=c.options,i=b(document),h;
c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(f,d){h=j.height==="auto"?"auto":b(this).height();
b(this).height(b(this).height()).addClass("ui-dialog-dragging");
c._trigger("dragStart",f,e(d))
},drag:function(f,d){c._trigger("drag",f,e(d))
},stop:function(f,d){j.position=[d.position.left-i.scrollLeft(),d.position.top-i.scrollTop()];
b(this).removeClass("ui-dialog-dragging").height(h);
c._trigger("dragStop",f,e(d));
b.ui.dialog.overlay.resize()
}})
},_makeResizable:function(e){function c(d){return{originalPosition:d.originalPosition,originalSize:d.originalSize,position:d.position,size:d.size}
}e=e===a?this.options.resizable:e;
var j=this,i=j.options,h=j.uiDialog.css("position");
e=typeof e==="string"?e:"n,e,s,w,se,sw,ne,nw";
j.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:j.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:j._minHeight(),handles:e,start:function(f,d){b(this).addClass("ui-dialog-resizing");
j._trigger("resizeStart",f,c(d))
},resize:function(f,d){j._trigger("resize",f,c(d))
},stop:function(f,d){b(this).removeClass("ui-dialog-resizing");
i.height=b(this).height();
i.width=b(this).width();
j._trigger("resizeStop",f,c(d));
b.ui.dialog.overlay.resize()
}}).css("position",h).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")
},_minHeight:function(){var c=this.options;
return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)
},_position:function(e){var c=[],h=[0,0],g;
if(e){if(typeof e==="string"||typeof e==="object"&&"0" in e){c=e.split?e.split(" "):[e[0],e[1]];
if(c.length===1){c[1]=c[0]
}b.each(["left","top"],function(d,f){if(+c[d]===c[d]){h[d]=c[d];
c[d]=f
}});
e={my:c.join(" "),at:c.join(" "),offset:h.join(" ")}
}e=b.extend({},b.ui.dialog.prototype.options.position,e)
}else{e=b.ui.dialog.prototype.options.position
}(g=this.uiDialog.is(":visible"))||this.uiDialog.show();
this.uiDialog.css({top:0,left:0}).position(e);
g||this.uiDialog.hide()
},_setOption:function(h,c){var l=this,j=l.uiDialog,i=j.is(":data(resizable)"),k=false;
switch(h){case"beforeclose":h="beforeClose";
break;
case"buttons":l._createButtons(c);
k=true;
break;
case"closeText":l.uiDialogTitlebarCloseText.text(""+c);
break;
case"dialogClass":j.removeClass(l.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);
break;
case"disabled":c?j.addClass("ui-dialog-disabled"):j.removeClass("ui-dialog-disabled");
break;
case"draggable":c?l._makeDraggable():j.draggable("destroy");
break;
case"height":k=true;
break;
case"maxHeight":i&&j.resizable("option","maxHeight",c);
k=true;
break;
case"maxWidth":i&&j.resizable("option","maxWidth",c);
k=true;
break;
case"minHeight":i&&j.resizable("option","minHeight",c);
k=true;
break;
case"minWidth":i&&j.resizable("option","minWidth",c);
k=true;
break;
case"position":l._position(c);
break;
case"resizable":i&&!c&&j.resizable("destroy");
i&&typeof c==="string"&&j.resizable("option","handles",c);
!i&&c!==false&&l._makeResizable(c);
break;
case"title":b(".ui-dialog-title",l.uiDialogTitlebar).html(""+(c||"&#160;"));
break;
case"width":k=true;
break
}b.Widget.prototype._setOption.apply(l,arguments);
k&&l._size()
},_size:function(){var d=this.options,c;
this.element.css({width:"auto",minHeight:0,height:0});
if(d.minWidth>d.width){d.width=d.minWidth
}c=this.uiDialog.css({height:"auto",width:d.width}).height();
this.element.css(d.height==="auto"?{minHeight:Math.max(d.minHeight-c,0),height:b.support.minHeight?"auto":Math.max(d.minHeight-c,0)}:{minHeight:0,height:Math.max(d.height-c,0)}).show();
this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())
}});
b.extend(b.ui.dialog,{version:"1.8.5",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");
if(!c){this.uuid+=1;
c=this.uuid
}return"ui-dialog-title-"+c
},overlay:function(c){this.$el=b.ui.dialog.overlay.create(c)
}});
b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"
}).join(" "),create:function(d){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(e){if(b(e.target).zIndex()<b.ui.dialog.overlay.maxZ){return false
}})
},1);
b(document).bind("keydown.dialog-overlay",function(e){if(d.options.closeOnEscape&&e.keyCode&&e.keyCode===b.ui.keyCode.ESCAPE){d.close(e);
e.preventDefault()
}});
b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)
}var c=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});
b.fn.bgiframe&&c.bgiframe();
this.instances.push(c);
return c
},destroy:function(d){this.oldInstances.push(this.instances.splice(b.inArray(d,this.instances),1)[0]);
this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");
d.remove();
var c=0;
b.each(this.instances,function(){c=Math.max(c,this.css("z-index"))
});
this.maxZ=c
},height:function(){var d,c;
if(b.browser.msie&&b.browser.version<7){d=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);
return d<c?b(window).height()+"px":d+"px"
}else{return b(document).height()+"px"
}},width:function(){var d,c;
if(b.browser.msie&&b.browser.version<7){d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);
c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);
return d<c?b(window).width()+"px":d+"px"
}else{return b(document).width()+"px"
}},resize:function(){var c=b([]);
b.each(b.ui.dialog.overlay.instances,function(){c=c.add(this)
});
c.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})
}});
b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)
}})
})(jQuery);
(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,c=this.options;
this._mouseSliding=this._keySliding=false;
this._animateOff=true;
this._handleIndex=null;
this._detectOrientation();
this._mouseInit();
this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");
c.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=a([]);
if(c.range){if(c.range===true){this.range=a("<div></div>");
if(!c.values){c.values=[this._valueMin(),this._valueMin()]
}if(c.values.length&&c.values.length!==2){c.values=[c.values[0],c.values[0]]
}}else{this.range=a("<div></div>")
}this.range.appendTo(this.element).addClass("ui-slider-range");
if(c.range==="min"||c.range==="max"){this.range.addClass("ui-slider-range-"+c.range)
}this.range.addClass("ui-widget-header")
}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(c.values&&c.values.length){for(;
a(".ui-slider-handle",this.element).length<c.values.length;
){a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")
}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");
this.handle=this.handles.eq(0);
this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()
}).hover(function(){c.disabled||a(this).addClass("ui-state-hover")
},function(){a(this).removeClass("ui-state-hover")
}).focus(function(){if(c.disabled){a(this).blur()
}else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");
a(this).addClass("ui-state-focus")
}}).blur(function(){a(this).removeClass("ui-state-focus")
});
this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)
});
this.handles.keydown(function(n){var m=true,l=a(this).data("index.ui-slider-handle"),j,k,b;
if(!d.options.disabled){switch(n.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:m=false;
if(!d._keySliding){d._keySliding=true;
a(this).addClass("ui-state-active");
j=d._start(n,l);
if(j===false){return
}}break
}b=d.options.step;
j=d.options.values&&d.options.values.length?(k=d.values(l)):(k=d.value());
switch(n.keyCode){case a.ui.keyCode.HOME:k=d._valueMin();
break;
case a.ui.keyCode.END:k=d._valueMax();
break;
case a.ui.keyCode.PAGE_UP:k=d._trimAlignValue(j+(d._valueMax()-d._valueMin())/5);
break;
case a.ui.keyCode.PAGE_DOWN:k=d._trimAlignValue(j-(d._valueMax()-d._valueMin())/5);
break;
case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(j===d._valueMax()){return
}k=d._trimAlignValue(j+b);
break;
case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(j===d._valueMin()){return
}k=d._trimAlignValue(j-b);
break
}d._slide(n,l,k);
return m
}}).keyup(function(f){var b=a(this).data("index.ui-slider-handle");
if(d._keySliding){d._keySliding=false;
d._stop(f,b);
d._change(f,b);
a(this).removeClass("ui-state-active")
}});
this._refreshValue();
this._animateOff=false
},destroy:function(){this.handles.remove();
this.range.remove();
this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();
return this
},_mouseCapture:function(i){var d=this.options,n,m,l,j,k;
if(d.disabled){return false
}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};
this.elementOffset=this.element.offset();
n=this._normValueFromMouse({x:i.pageX,y:i.pageY});
m=this._valueMax()-this._valueMin()+1;
j=this;
this.handles.each(function(c){var b=Math.abs(n-j.values(c));
if(m>b){m=b;
l=a(this);
k=c
}});
if(d.range===true&&this.values(1)===d.min){k+=1;
l=a(this.handles[k])
}if(this._start(i,k)===false){return false
}this._mouseSliding=true;
j._handleIndex=k;
l.addClass("ui-state-active").focus();
d=l.offset();
this._clickOffset=!a(i.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:i.pageX-d.left-l.width()/2,top:i.pageY-d.top-l.height()/2-(parseInt(l.css("borderTopWidth"),10)||0)-(parseInt(l.css("borderBottomWidth"),10)||0)+(parseInt(l.css("marginTop"),10)||0)};
this._slide(i,k,n);
return this._animateOff=true
},_mouseStart:function(){return true
},_mouseDrag:function(d){var c=this._normValueFromMouse({x:d.pageX,y:d.pageY});
this._slide(d,this._handleIndex,c);
return false
},_mouseStop:function(b){this.handles.removeClass("ui-state-active");
this._mouseSliding=false;
this._stop(b,this._handleIndex);
this._change(b,this._handleIndex);
this._clickOffset=this._handleIndex=null;
return this._animateOff=false
},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"
},_normValueFromMouse:function(d){var c;
if(this.orientation==="horizontal"){c=this.elementSize.width;
d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)
}else{c=this.elementSize.height;
d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)
}c=d/c;
if(c>1){c=1
}if(c<0){c=0
}if(this.orientation==="vertical"){c=1-c
}d=this._valueMax()-this._valueMin();
return this._trimAlignValue(this._valueMin()+c*d)
},_start:function(e,d){var f={handle:this.handles[d],value:this.value()};
if(this.options.values&&this.options.values.length){f.value=this.values(d);
f.values=this.values()
}return this._trigger("start",e,f)
},_slide:function(f,d,h){var g;
if(this.options.values&&this.options.values.length){g=this.values(d?0:1);
if(this.options.values.length===2&&this.options.range===true&&(d===0&&h>g||d===1&&h<g)){h=g
}if(h!==this.values(d)){g=this.values();
g[d]=h;
f=this._trigger("slide",f,{handle:this.handles[d],value:h,values:g});
this.values(d?0:1);
f!==false&&this.values(d,h,true)
}}else{if(h!==this.value()){f=this._trigger("slide",f,{handle:this.handles[d],value:h});
f!==false&&this.value(h)
}}},_stop:function(e,d){var f={handle:this.handles[d],value:this.value()};
if(this.options.values&&this.options.values.length){f.value=this.values(d);
f.values=this.values()
}this._trigger("stop",e,f)
},_change:function(e,d){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[d],value:this.value()};
if(this.options.values&&this.options.values.length){f.value=this.values(d);
f.values=this.values()
}this._trigger("change",e,f)
}},value:function(b){if(arguments.length){this.options.value=this._trimAlignValue(b);
this._refreshValue();
this._change(null,0)
}return this._value()
},values:function(g,d){var j,i,h;
if(arguments.length>1){this.options.values[g]=this._trimAlignValue(d);
this._refreshValue();
this._change(null,g)
}if(arguments.length){if(a.isArray(arguments[0])){j=this.options.values;
i=arguments[0];
for(h=0;
h<j.length;
h+=1){j[h]=this._trimAlignValue(i[h]);
this._change(null,h)
}this._refreshValue()
}else{return this.options.values&&this.options.values.length?this._values(g):this.value()
}}else{return this._values()
}},_setOption:function(f,d){var h,g=0;
if(a.isArray(this.options.values)){g=this.options.values.length
}a.Widget.prototype._setOption.apply(this,arguments);
switch(f){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();
this.handles.removeClass("ui-state-hover");
this.handles.attr("disabled","disabled");
this.element.addClass("ui-disabled")
}else{this.handles.removeAttr("disabled");
this.element.removeClass("ui-disabled")
}break;
case"orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();
break;
case"value":this._animateOff=true;
this._refreshValue();
this._change(null,0);
this._animateOff=false;
break;
case"values":this._animateOff=true;
this._refreshValue();
for(h=0;
h<g;
h+=1){this._change(null,h)
}this._animateOff=false;
break
}},_value:function(){var b=this.options.value;
return b=this._trimAlignValue(b)
},_values:function(e){var d,f;
if(arguments.length){d=this.options.values[e];
return d=this._trimAlignValue(d)
}else{d=this.options.values.slice();
for(f=0;
f<d.length;
f+=1){d[f]=this._trimAlignValue(d[f])
}return d
}},_trimAlignValue:function(e){if(e<this._valueMin()){return this._valueMin()
}if(e>this._valueMax()){return this._valueMax()
}var d=this.options.step>0?this.options.step:1,f=e%d;
e=e-f;
if(Math.abs(f)*2>=d){e+=f>0?d:-d
}return parseFloat(e.toFixed(5))
},_valueMin:function(){return this.options.min
},_valueMax:function(){return this.options.max
},_refreshValue:function(){var u=this.options.range,s=this.options,r=this,q=!this._animateOff?s.animate:false,p,n={},o,m,k,d;
if(this.options.values&&this.options.values.length){this.handles.each(function(b){p=(r.values(b)-r._valueMin())/(r._valueMax()-r._valueMin())*100;
n[r.orientation==="horizontal"?"left":"bottom"]=p+"%";
a(this).stop(1,1)[q?"animate":"css"](n,s.animate);
if(r.options.range===true){if(r.orientation==="horizontal"){if(b===0){r.range.stop(1,1)[q?"animate":"css"]({left:p+"%"},s.animate)
}if(b===1){r.range[q?"animate":"css"]({width:p-o+"%"},{queue:false,duration:s.animate})
}}else{if(b===0){r.range.stop(1,1)[q?"animate":"css"]({bottom:p+"%"},s.animate)
}if(b===1){r.range[q?"animate":"css"]({height:p-o+"%"},{queue:false,duration:s.animate})
}}}o=p
})
}else{m=this.value();
k=this._valueMin();
d=this._valueMax();
p=d!==k?(m-k)/(d-k)*100:0;
n[r.orientation==="horizontal"?"left":"bottom"]=p+"%";
this.handle.stop(1,1)[q?"animate":"css"](n,s.animate);
if(u==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[q?"animate":"css"]({width:p+"%"},s.animate)
}if(u==="max"&&this.orientation==="horizontal"){this.range[q?"animate":"css"]({width:100-p+"%"},{queue:false,duration:s.animate})
}if(u==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[q?"animate":"css"]({height:p+"%"},s.animate)
}if(u==="max"&&this.orientation==="vertical"){this.range[q?"animate":"css"]({height:100-p+"%"},{queue:false,duration:s.animate})
}}}});
a.extend(a.ui.slider,{version:"1.8.5"})
})(jQuery);
(function(g,f){function e(){return ++c
}function b(){return ++a
}var c=0,a=0;
g.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)
},_setOption:function(d,h){if(d=="selected"){this.options.collapsible&&h==this.options.selected||this.select(h)
}else{this.options[d]=h;
this._tabify()
}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()
},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")
},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+b());
return g.cookie.apply(null,[d].concat(g.makeArray(arguments)))
},_ui:function(d,h){return{tab:d,panel:h,index:this.anchors.index(d)}
},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=g(this);
d.html(d.data("label.tabs")).removeData("label.tabs")
})
},_tabify:function(z){function w(h,j){h.css("display","");
!g.support.opacity&&j.opacity&&h[0].style.removeAttribute("filter")
}var y=this,x=this.options,v=/^#.+/;
this.list=this.element.find("ol,ul").eq(0);
this.lis=g(" > li:has(a[href])",this.list);
this.anchors=this.lis.map(function(){return g("a",this)[0]
});
this.panels=g([]);
this.anchors.each(function(k,n){var j=g(n).attr("href"),h=j.split("#")[0],m;
if(h&&(h===location.toString().split("#")[0]||(m=g("base")[0])&&h===m.href)){j=n.hash;
n.href=j
}if(v.test(j)){y.panels=y.panels.add(y._sanitizeSelector(j))
}else{if(j&&j!=="#"){g.data(n,"href.tabs",j);
g.data(n,"load.tabs",j.replace(/#.*$/,""));
j=y._tabId(n);
n.href="#"+j;
n=g("#"+j);
if(!n.length){n=g(x.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(y.panels[k-1]||y.list);
n.data("destroy.tabs",true)
}y.panels=y.panels.add(n)
}else{x.disabled.push(k)
}}});
if(z){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.lis.addClass("ui-state-default ui-corner-top");
this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");
if(x.selected===f){location.hash&&this.anchors.each(function(h,j){if(j.hash==location.hash){x.selected=h;
return false
}});
if(typeof x.selected!=="number"&&x.cookie){x.selected=parseInt(y._cookie(),10)
}if(typeof x.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){x.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))
}x.selected=x.selected||(this.lis.length?0:-1)
}else{if(x.selected===null){x.selected=-1
}}x.selected=x.selected>=0&&this.anchors[x.selected]||x.selected<0?x.selected:0;
x.disabled=g.unique(x.disabled.concat(g.map(this.lis.filter(".ui-state-disabled"),function(h){return y.lis.index(h)
}))).sort();
g.inArray(x.selected,x.disabled)!=-1&&x.disabled.splice(g.inArray(x.selected,x.disabled),1);
this.panels.addClass("ui-tabs-hide");
this.lis.removeClass("ui-tabs-selected ui-state-active");
if(x.selected>=0&&this.anchors.length){this.panels.eq(x.selected).removeClass("ui-tabs-hide");
this.lis.eq(x.selected).addClass("ui-tabs-selected ui-state-active");
y.element.queue("tabs",function(){y._trigger("show",null,y._ui(y.anchors[x.selected],y.panels[x.selected]))
});
this.load(x.selected)
}g(window).bind("unload",function(){y.lis.add(y.anchors).unbind(".tabs");
y.lis=y.anchors=y.panels=null
})
}else{x.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))
}this.element[x.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");
x.cookie&&this._cookie(x.selected,x.cookie);
z=0;
for(var u;
u=this.lis[z];
z++){g(u)[g.inArray(z,x.disabled)!=-1&&!g(u).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")
}x.cache===false&&this.anchors.removeData("cache.tabs");
this.lis.add(this.anchors).unbind(".tabs");
if(x.event!=="mouseover"){var q=function(h,j){j.is(":not(.ui-state-disabled)")&&j.addClass("ui-state-"+h)
},l=function(h,j){j.removeClass("ui-state-"+h)
};
this.lis.bind("mouseover.tabs",function(){q("hover",g(this))
});
this.lis.bind("mouseout.tabs",function(){l("hover",g(this))
});
this.anchors.bind("focus.tabs",function(){q("focus",g(this).closest("li"))
});
this.anchors.bind("blur.tabs",function(){l("focus",g(this).closest("li"))
})
}var p,i;
if(x.fx){if(g.isArray(x.fx)){p=x.fx[0];
i=x.fx[1]
}else{p=i=x.fx
}}var d=i?function(h,j){g(h).closest("li").addClass("ui-tabs-selected ui-state-active");
j.hide().removeClass("ui-tabs-hide").animate(i,i.duration||"normal",function(){w(j,i);
y._trigger("show",null,y._ui(h,j[0]))
})
}:function(h,j){g(h).closest("li").addClass("ui-tabs-selected ui-state-active");
j.removeClass("ui-tabs-hide");
y._trigger("show",null,y._ui(h,j[0]))
},A=p?function(h,j){j.animate(p,p.duration||"normal",function(){y.lis.removeClass("ui-tabs-selected ui-state-active");
j.addClass("ui-tabs-hide");
w(j,p);
y.element.dequeue("tabs")
})
}:function(h,j){y.lis.removeClass("ui-tabs-selected ui-state-active");
j.addClass("ui-tabs-hide");
y.element.dequeue("tabs")
};
this.anchors.bind(x.event+".tabs",function(){var k=this,m=g(k).closest("li"),j=y.panels.filter(":not(.ui-tabs-hide)"),h=g(y._sanitizeSelector(k.hash));
if(m.hasClass("ui-tabs-selected")&&!x.collapsible||m.hasClass("ui-state-disabled")||m.hasClass("ui-state-processing")||y.panels.filter(":animated").length||y._trigger("select",null,y._ui(this,h[0]))===false){this.blur();
return false
}x.selected=y.anchors.index(this);
y.abort();
if(x.collapsible){if(m.hasClass("ui-tabs-selected")){x.selected=-1;
x.cookie&&y._cookie(x.selected,x.cookie);
y.element.queue("tabs",function(){A(k,j)
}).dequeue("tabs");
this.blur();
return false
}else{if(!j.length){x.cookie&&y._cookie(x.selected,x.cookie);
y.element.queue("tabs",function(){d(k,h)
});
y.load(y.anchors.index(this));
this.blur();
return false
}}}x.cookie&&y._cookie(x.selected,x.cookie);
if(h.length){j.length&&y.element.queue("tabs",function(){A(k,j)
});
y.element.queue("tabs",function(){d(k,h)
});
y.load(y.anchors.index(this))
}else{throw"jQuery UI Tabs: Mismatching fragment identifier."
}g.browser.msie&&this.blur()
});
this.anchors.bind("click.tabs",function(){return false
})
},_getIndex:function(d){if(typeof d=="string"){d=this.anchors.index(this.anchors.filter("[href$="+d+"]"))
}return d
},destroy:function(){var d=this.options;
this.abort();
this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");
this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.anchors.each(function(){var i=g.data(this,"href.tabs");
if(i){this.href=i
}var h=g(this).unbind(".tabs");
g.each(["href","load","cache"],function(k,j){h.removeData(j+".tabs")
})
});
this.lis.unbind(".tabs").add(this.panels).each(function(){g.data(this,"destroy.tabs")?g(this).remove():g(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")
});
d.cookie&&this._cookie(null,d.cookie);
return this
},add:function(i,m,d){if(d===f){d=this.anchors.length
}var n=this,l=this.options;
m=g(l.tabTemplate.replace(/#\{href\}/g,i).replace(/#\{label\}/g,m));
i=!i.indexOf("#")?i.replace("#",""):this._tabId(g("a",m)[0]);
m.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);
var k=g("#"+i);
k.length||(k=g(l.panelTemplate).attr("id",i).data("destroy.tabs",true));
k.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");
if(d>=this.lis.length){m.appendTo(this.list);
k.appendTo(this.list[0].parentNode)
}else{m.insertBefore(this.lis[d]);
k.insertBefore(this.panels[d])
}l.disabled=g.map(l.disabled,function(h){return h>=d?++h:h
});
this._tabify();
if(this.anchors.length==1){l.selected=0;
m.addClass("ui-tabs-selected ui-state-active");
k.removeClass("ui-tabs-hide");
this.element.queue("tabs",function(){n._trigger("show",null,n._ui(n.anchors[0],n.panels[0]))
});
this.load(0)
}this._trigger("add",null,this._ui(this.anchors[d],this.panels[d]));
return this
},remove:function(h){h=this._getIndex(h);
var i=this.options,d=this.lis.eq(h).remove(),j=this.panels.eq(h).remove();
if(d.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(h+(h+1<this.anchors.length?1:-1))
}i.disabled=g.map(g.grep(i.disabled,function(k){return k!=h
}),function(k){return k>=h?--k:k
});
this._tabify();
this._trigger("remove",null,this._ui(d.find("a")[0],j[0]));
return this
},enable:function(d){d=this._getIndex(d);
var h=this.options;
if(g.inArray(d,h.disabled)!=-1){this.lis.eq(d).removeClass("ui-state-disabled");
h.disabled=g.grep(h.disabled,function(i){return i!=d
});
this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]));
return this
}},disable:function(d){d=this._getIndex(d);
var h=this.options;
if(d!=h.selected){this.lis.eq(d).addClass("ui-state-disabled");
h.disabled.push(d);
h.disabled.sort();
this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))
}return this
},select:function(d){d=this._getIndex(d);
if(d==-1){if(this.options.collapsible&&this.options.selected!=-1){d=this.options.selected
}else{return this
}}this.anchors.eq(d).trigger(this.options.event+".tabs");
return this
},load:function(i){i=this._getIndex(i);
var m=this,d=this.options,n=this.anchors.eq(i)[0],l=g.data(n,"load.tabs");
this.abort();
if(!l||this.element.queue("tabs").length!==0&&g.data(n,"cache.tabs")){this.element.dequeue("tabs")
}else{this.lis.eq(i).addClass("ui-state-processing");
if(d.spinner){var k=g("span",n);
k.data("label.tabs",k.html()).html(d.spinner)
}this.xhr=g.ajax(g.extend({},d.ajaxOptions,{url:l,success:function(j,o){g(m._sanitizeSelector(n.hash)).html(j);
m._cleanup();
d.cache&&g.data(n,"cache.tabs",true);
m._trigger("load",null,m._ui(m.anchors[i],m.panels[i]));
try{d.ajaxOptions.success(j,o)
}catch(h){}},error:function(j,o){m._cleanup();
m._trigger("load",null,m._ui(m.anchors[i],m.panels[i]));
try{d.ajaxOptions.error(j,o,i,n)
}catch(h){}}}));
m.element.dequeue("tabs");
return this
}},abort:function(){this.element.queue([]);
this.panels.stop(false,true);
this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));
if(this.xhr){this.xhr.abort();
delete this.xhr
}this._cleanup();
return this
},url:function(d,h){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",h);
return this
},length:function(){return this.anchors.length
}});
g.extend(g.ui.tabs,{version:"1.8.5"});
g.extend(g.ui.tabs.prototype,{rotation:null,rotate:function(i,k){var d=this,l=this.options,j=d._rotate||(d._rotate=function(h){clearTimeout(d.rotation);
d.rotation=setTimeout(function(){var m=l.selected;
d.select(++m<d.anchors.length?m:0)
},i);
h&&h.stopPropagation()
});
k=d._unrotate||(d._unrotate=!k?function(h){h.clientX&&d.rotate(null)
}:function(){t=l.selected;
j()
});
if(i){this.element.bind("tabsshow",j);
this.anchors.bind(l.event+".tabs",k);
j()
}else{clearTimeout(d.rotation);
this.element.unbind("tabsshow",j);
this.anchors.unbind(l.event+".tabs",k);
delete this._rotate;
delete this._unrotate
}return this
}})
})(jQuery);
(function(d,G){function L(){this.debug=false;
this._curInst=null;
this._keyEvent=false;
this._disabledInputs=[];
this._inDialog=this._datepickerShowing=false;
this._mainDivId="ui-datepicker-div";
this._inlineClass="ui-datepicker-inline";
this._appendClass="ui-datepicker-append";
this._triggerClass="ui-datepicker-trigger";
this._dialogClass="ui-datepicker-dialog";
this._disableClass="ui-datepicker-disabled";
this._unselectableClass="ui-datepicker-unselectable";
this._currentClass="ui-datepicker-current-day";
this._dayOverClass="ui-datepicker-days-cell-over";
this.regional=[];
this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};
this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};
d.extend(this._defaults,this.regional[""]);
this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')
}function E(a,b){d.extend(a,b);
for(var c in b){if(b[c]==null||b[c]==G){a[c]=b[c]
}}return a
}d.extend(d.ui,{datepicker:{version:"1.8.5"}});
var y=(new Date).getTime();
d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)
},_widgetDatepicker:function(){return this.dpDiv
},setDefaults:function(a){E(this._defaults,a||{});
return this
},_attachDatepicker:function(a,b){var c=null;
for(var e in this._defaults){var f=a.getAttribute("date:"+e);
if(f){c=c||{};
try{c[e]=eval(f)
}catch(h){c[e]=f
}}}e=a.nodeName.toLowerCase();
f=e=="div"||e=="span";
if(!a.id){this.uuid+=1;
a.id="dp"+this.uuid
}var i=this._newInst(d(a),f);
i.settings=d.extend({},b||{},c||{});
if(e=="input"){this._connectDatepicker(a,i)
}else{f&&this._inlineDatepicker(a,i)
}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}
},_connectDatepicker:function(a,b){var c=d(a);
b.append=d([]);
b.trigger=d([]);
if(!c.hasClass(this.markerClassName)){this._attachments(c,b);
c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h
}).bind("getData.datepicker",function(e,f){return this._get(b,f)
});
this._autoSize(b);
d.data(a,"datepicker",b)
}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");
b.append&&b.append.remove();
if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");
a[e?"before":"after"](b.append)
}a.unbind("focus",this._showDatepicker);
b.trigger&&b.trigger.remove();
c=this._get(b,"showOn");
if(c=="focus"||c=="both"){a.focus(this._showDatepicker)
}if(c=="button"||c=="both"){c=this._get(b,"buttonText");
var f=this._get(b,"buttonImage");
b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));
a[e?"before":"after"](b.trigger);
b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);
return false
})
}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");
if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;
g<f.length;
g++){if(f[g].length>h){h=f[g].length;
i=g
}}return i
};
b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));
b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())
}a.input.attr("size",this._formatDate(a,b).length)
}},_inlineDatepicker:function(a,b){var c=d(a);
if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h
}).bind("getData.datepicker",function(e,f){return this._get(b,f)
});
d.data(a,"datepicker",b);
this._setDate(b,this._getDefaultDate(b),true);
this._updateDatepicker(b);
this._updateAlternate(b)
}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;
if(!a){this.uuid+=1;
this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
this._dialogInput.keydown(this._doKeyDown);
d("body").append(this._dialogInput);
a=this._dialogInst=this._newInst(this._dialogInput,false);
a.settings={};
d.data(this._dialogInput[0],"datepicker",a)
}E(a.settings,e||{});
b=b&&b.constructor==Date?this._formatDate(a,b):b;
this._dialogInput.val(b);
this._pos=f?f.length?f:[f.pageX,f.pageY]:null;
if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]
}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");
a.settings.onSelect=c;
this._inDialog=true;
this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);
d.blockUI&&d.blockUI(this.dpDiv);
d.data(this._dialogInput[0],"datepicker",a);
return this
},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");
if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();
d.removeData(a,"datepicker");
if(e=="input"){c.append.remove();
c.trigger.remove();
b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)
}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()
}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");
if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();
if(e=="input"){a.disabled=false;
c.trigger.filter("button").each(function(){this.disabled=false
}).end().filter("img").css({opacity:"1.0",cursor:""})
}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().removeClass("ui-state-disabled")
}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f
})
}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");
if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();
if(e=="input"){a.disabled=true;
c.trigger.filter("button").each(function(){this.disabled=true
}).end().filter("img").css({opacity:"0.5",cursor:"default"})
}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().addClass("ui-state-disabled")
}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f
});
this._disabledInputs[this._disabledInputs.length]=a
}},_isDisabledDatepicker:function(a){if(!a){return false
}for(var b=0;
b<this._disabledInputs.length;
b++){if(this._disabledInputs[b]==a){return true
}}return false
},_getInst:function(a){try{return d.data(a,"datepicker")
}catch(b){throw"Missing instance data for this datepicker"
}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);
if(arguments.length==2&&typeof b=="string"){return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null
}var f=b||{};
if(typeof b=="string"){f={};
f[b]=c
}if(e){this._curInst==e&&this._hideDatepicker();
var h=this._getDateDatepicker(a,true);
E(e.settings,f);
this._attachments(d(a),e);
this._autoSize(e);
this._setDateDatepicker(a,h);
this._updateDatepicker(e)
}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)
},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)
},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);
this._updateDatepicker(a);
this._updateAlternate(a)
}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);
return a?this._getDate(a):null
},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");
b._keyEvent=true;
if(d.datepicker._datepickerShowing){switch(a.keyCode){case 9:d.datepicker._hideDatepicker();
c=false;
break;
case 13:c=d("td."+d.datepicker._dayOverClass,b.dpDiv).add(d("td."+d.datepicker._currentClass,b.dpDiv));
c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();
return false;
case 27:d.datepicker._hideDatepicker();
break;
case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");
break;
case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");
break;
case 35:if(a.ctrlKey||a.metaKey){d.datepicker._clearDate(a.target)
}c=a.ctrlKey||a.metaKey;
break;
case 36:if(a.ctrlKey||a.metaKey){d.datepicker._gotoToday(a.target)
}c=a.ctrlKey||a.metaKey;
break;
case 37:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?+1:-1,"D")
}c=a.ctrlKey||a.metaKey;
if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M")
}break;
case 38:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,-7,"D")
}c=a.ctrlKey||a.metaKey;
break;
case 39:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?-1:+1,"D")
}c=a.ctrlKey||a.metaKey;
if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M")
}break;
case 40:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,+7,"D")
}c=a.ctrlKey||a.metaKey;
break;
default:c=false
}}else{if(a.keyCode==36&&a.ctrlKey){d.datepicker._showDatepicker(this)
}else{c=false
}}if(c){a.preventDefault();
a.stopPropagation()
}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);
if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));
var c=String.fromCharCode(a.charCode==G?a.keyCode:a.charCode);
return a.ctrlKey||c<" "||!b||b.indexOf(c)>-1
}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);
if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);
d.datepicker._updateAlternate(a);
d.datepicker._updateDatepicker(a)
}}catch(b){d.datepicker.log(b)
}}return true
},_showDatepicker:function(a){a=a.target||a;
if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]
}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);
d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);
var c=d.datepicker._get(b,"beforeShow");
E(b.settings,c?c.apply(a,[a,b]):{});
b.lastVal=null;
d.datepicker._lastInput=a;
d.datepicker._setDateFromField(b);
if(d.datepicker._inDialog){a.value=""
}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);
d.datepicker._pos[1]+=a.offsetHeight
}var e=false;
d(a).parents().each(function(){e|=d(this).css("position")=="fixed";
return !e
});
if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;
d.datepicker._pos[1]-=document.documentElement.scrollTop
}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};
d.datepicker._pos=null;
b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});
d.datepicker._updateDatepicker(b);
c=d.datepicker._checkOffset(b,c,e);
b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});
if(!b.inline){c=d.datepicker._get(b,"showAnim");
var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;
var i=d.datepicker._getBorders(b.dpDiv);
b.dpDiv.find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})
};
b.dpDiv.zIndex(d(a).zIndex()+1);
d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);
if(!c||!f){h()
}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();
d.datepicker._curInst=b
}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);
a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");
this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")
}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
d(this).addClass("ui-state-hover");
this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")
}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();
c=this._getNumberOfMonths(a);
var e=c[1];
e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");
a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input.focus()
},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c
};
return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]
},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),k=document.documentElement.clientHeight+d(document).scrollTop();
b.left-=this._get(a,"isRTL")?e-h:0;
b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;
b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;
b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);
b.top-=Math.min(b.top,b.top+f>k&&k>f?Math.abs(f+i):0);
return b
},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");
a&&(a.type=="hidden"||a.nodeType!=1);
){a=a[b?"previousSibling":"nextSibling"]
}a=d(a).offset();
return[a.left,a.top]
},_hideDatepicker:function(a){var b=this._curInst;
if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");
var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);
this._curInst=null
};
d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);
a||e();
if(a=this._get(b,"onClose")){a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])
}this._datepickerShowing=false;
this._lastInput=null;
if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});
if(d.blockUI){d.unblockUI();
d("body").append(this.dpDiv)
}}this._inDialog=false
}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")
},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);
a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()
}},_adjustDate:function(a,b,c){a=d(a);
var e=this._getInst(a[0]);
if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);
this._updateDatepicker(e)
}},_gotoToday:function(a){a=d(a);
var b=this._getInst(a[0]);
if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;
b.drawMonth=b.selectedMonth=b.currentMonth;
b.drawYear=b.selectedYear=b.currentYear
}else{var c=new Date;
b.selectedDay=c.getDate();
b.drawMonth=b.selectedMonth=c.getMonth();
b.drawYear=b.selectedYear=c.getFullYear()
}this._notifyChange(b);
this._adjustDate(a)
},_selectMonthYear:function(a,b,c){a=d(a);
var e=this._getInst(a[0]);
e._selectingMonthYear=false;
e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);
this._notifyChange(e);
this._adjustDate(a)
},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);
b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()
},0);
b._selectingMonthYear=!b._selectingMonthYear
},_selectDay:function(a,b,c,e){var f=d(a);
if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);
f.selectedDay=f.currentDay=d("a",e).html();
f.selectedMonth=f.currentMonth=b;
f.selectedYear=f.currentYear=c;
this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))
}},_clearDate:function(a){a=d(a);
this._getInst(a[0]);
this._selectDate(a,"")
},_selectDate:function(a,b){a=this._getInst(d(a)[0]);
b=b!=null?b:this._formatDate(a);
a.input&&a.input.val(b);
this._updateAlternate(a);
var c=this._get(a,"onSelect");
if(c){c.apply(a.input?a.input[0]:null,[b,a])
}else{a.input&&a.input.trigger("change")
}if(a.inline){this._updateDatepicker(a)
}else{this._hideDatepicker();
this._lastInput=a.input[0];
typeof a.input[0]!="object"&&a.input.focus();
this._lastInput=null
}},_updateAlternate:function(a){var b=this._get(a,"altField");
if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));
d(b).each(function(){d(this).val(f)
})
}},noWeekends:function(a){a=a.getDay();
return[a>0&&a<6,""]
},iso8601Week:function(a){a=new Date(a.getTime());
a.setDate(a.getDate()+4-(a.getDay()||7));
var b=a.getTime();
a.setMonth(0);
a.setDate(1);
return Math.floor(Math.round((b-a)/86400000)/7)+1
},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"
}b=typeof b=="object"?b.toString():b+"";
if(b==""){return null
}for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,k=c=-1,l=-1,u=-1,j=false,o=function(p){(p=z+1<a.length&&a.charAt(z+1)==p)&&z++;
return p
},m=function(p){o(p);
p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"?4:p=="o"?3:2)+"}");
p=b.substring(s).match(p);
if(!p){throw"Missing number at position "+s
}s+=p[0].length;
return parseInt(p[0],10)
},n=function(p,w,H){p=o(p)?H:w;
for(w=0;
w<p.length;
w++){if(b.substr(s,p[w].length).toLowerCase()==p[w].toLowerCase()){s+=p[w].length;
return w+1
}}throw"Unknown name at position "+s
},r=function(){if(b.charAt(s)!=a.charAt(z)){throw"Unexpected literal at position "+s
}s++
},s=0,z=0;
z<a.length;
z++){if(j){if(a.charAt(z)=="'"&&!o("'")){j=false
}else{r()
}}else{switch(a.charAt(z)){case"d":l=m("d");
break;
case"D":n("D",f,h);
break;
case"o":u=m("o");
break;
case"m":k=m("m");
break;
case"M":k=n("M",i,g);
break;
case"y":c=m("y");
break;
case"@":var v=new Date(m("@"));
c=v.getFullYear();
k=v.getMonth()+1;
l=v.getDate();
break;
case"!":v=new Date((m("!")-this._ticksTo1970)/10000);
c=v.getFullYear();
k=v.getMonth()+1;
l=v.getDate();
break;
case"'":if(o("'")){r()
}else{j=true
}break;
default:r()
}}}if(c==-1){c=(new Date).getFullYear()
}else{if(c<100){c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100)
}}if(u>-1){k=1;
l=u;
do{e=this._getDaysInMonth(c,k-1);
if(l<=e){break
}k++;
l-=e
}while(1)
}v=this._daylightSavingAdjust(new Date(c,k-1,l));
if(v.getFullYear()!=c||v.getMonth()+1!=k||v.getDate()!=l){throw"Invalid date"
}return v
},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""
}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;
c=(c?c.monthNames:null)||this._defaults.monthNames;
var i=function(o){(o=j+1<a.length&&a.charAt(j+1)==o)&&j++;
return o
},g=function(o,m,n){m=""+m;
if(i(o)){for(;
m.length<n;
){m="0"+m
}}return m
},k=function(o,m,n,r){return i(o)?r[m]:n[m]
},l="",u=false;
if(b){for(var j=0;
j<a.length;
j++){if(u){if(a.charAt(j)=="'"&&!i("'")){u=false
}else{l+=a.charAt(j)
}}else{switch(a.charAt(j)){case"d":l+=g("d",b.getDate(),2);
break;
case"D":l+=k("D",b.getDay(),e,f);
break;
case"o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/86400000,3);
break;
case"m":l+=g("m",b.getMonth()+1,2);
break;
case"M":l+=k("M",b.getMonth(),h,c);
break;
case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;
break;
case"@":l+=b.getTime();
break;
case"!":l+=b.getTime()*10000+this._ticksTo1970;
break;
case"'":if(i("'")){l+="'"
}else{u=true
}break;
default:l+=a.charAt(j)
}}}}return l
},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;
return h
},f=0;
f<a.length;
f++){if(c){if(a.charAt(f)=="'"&&!e("'")){c=false
}else{b+=a.charAt(f)
}}else{switch(a.charAt(f)){case"d":case"m":case"y":case"@":b+="0123456789";
break;
case"D":case"M":return null;
case"'":if(e("'")){b+="'"
}else{c=true
}break;
default:b+=a.charAt(f)
}}}return b
},_get:function(a,b){return a.settings[b]!==G?a.settings[b]:this._defaults[b]
},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;
f=h=this._getDefaultDate(a);
var i=this._getFormatConfig(a);
try{f=this.parseDate(c,e,i)||h
}catch(g){this.log(g);
e=b?"":e
}a.selectedDay=f.getDate();
a.drawMonth=a.selectedMonth=f.getMonth();
a.drawYear=a.selectedYear=f.getFullYear();
a.currentDay=e?f.getDate():0;
a.currentMonth=e?f.getMonth():0;
a.currentYear=e?f.getFullYear():0;
this._adjustInstDate(a)
}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))
},_determineDate:function(a,b,c){var e=function(h){var i=new Date;
i.setDate(i.getDate()+h);
return i
},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))
}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,k=g.getFullYear(),l=g.getMonth();
g=g.getDate();
for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=u.exec(h);
j;
){switch(j[2]||"d"){case"d":case"D":g+=parseInt(j[1],10);
break;
case"w":case"W":g+=parseInt(j[1],10)*7;
break;
case"m":case"M":l+=parseInt(j[1],10);
g=Math.min(g,d.datepicker._getDaysInMonth(k,l));
break;
case"y":case"Y":k+=parseInt(j[1],10);
g=Math.min(g,d.datepicker._getDaysInMonth(k,l));
break
}j=u.exec(h)
}return new Date(k,l,g)
};
if(b=(b=b==null?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):b)&&b.toString()=="Invalid Date"?c:b){b.setHours(0);
b.setMinutes(0);
b.setSeconds(0);
b.setMilliseconds(0)
}return this._daylightSavingAdjust(b)
},_daylightSavingAdjust:function(a){if(!a){return null
}a.setHours(a.getHours()>12?a.getHours()+2:0);
return a
},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;
b=this._restrictMinMax(a,this._determineDate(a,b,new Date));
a.selectedDay=a.currentDay=b.getDate();
a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();
a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();
if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)
}this._adjustInstDate(a);
if(a.input){a.input.val(e?"":this._formatDate(a))
}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))
},_generateHTML:function(a){var b=new Date;
b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));
var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),k=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),j=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");
g=a.drawMonth-g;
var m=a.drawYear;
if(g<0){g+=12;
m--
}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));
for(n=j&&n<j?j:n;
this._daylightSavingAdjust(new Date(m,g,1))>n;
){g--;
if(g<0){g=11;
m--
}}}a.drawMonth=g;
a.drawYear=m;
n=this._get(a,"prevText");
n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-k,1)),this._getFormatConfig(a));
n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+k+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";
var r=this._get(a,"nextText");
r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+k,1)),this._getFormatConfig(a));
f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+k+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>";
k=this._get(a,"currentText");
r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;
k=!h?k:this.formatDate(k,r,this._getFormatConfig(a));
h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";
e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(c?"":h)+"</div>":"";
h=parseInt(this._get(a,"firstDay"),10);
h=isNaN(h)?0:h;
k=this._get(a,"showWeek");
r=this._get(a,"dayNames");
this._get(a,"dayNamesShort");
var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");
this._get(a,"calculateWeek");
for(var M=this._getDefaultDate(a),I="",C=0;
C<i[0];
C++){for(var N="",D=0;
D<i[1];
D++){var J=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",x="";
if(l){x+='<div class="ui-datepicker-group';
if(i[1]>1){switch(D){case 0:x+=" ui-datepicker-group-first";
t=" ui-corner-"+(c?"right":"left");
break;
case i[1]-1:x+=" ui-datepicker-group-last";
t=" ui-corner-"+(c?"left":"right");
break;
default:x+=" ui-datepicker-group-middle";
t="";
break
}}x+='">'
}x+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&C==0?c?f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,j,o,C>0||D>0,z,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
var A=k?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";
for(t=0;
t<7;
t++){var q=(t+h)%7;
A+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"
}x+=A+"</tr></thead><tbody>";
A=this._getDaysInMonth(m,g);
if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,A)
}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;
A=l?6:Math.ceil((t+A)/7);
q=this._daylightSavingAdjust(new Date(m,g,1-t));
for(var O=0;
O<A;
O++){x+="<tr>";
var P=!k?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";
for(t=0;
t<7;
t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,K=B&&!H||!F[0]||j&&q<j||o&&q>o;
P+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==J.getTime()&&g==a.selectedMonth&&a._keyEvent||M.getTime()==q.getTime()&&M.getTime()==J.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!w?"":" "+F[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!B||w)&&F[2]?' title="'+F[2]+'"':"")+(K?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!w?"&#xa0;":K?'<span class="ui-state-default">'+q.getDate()+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==J.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";
q.setDate(q.getDate()+1);
q=this._daylightSavingAdjust(q)
}x+=P+"</tr>"
}g++;
if(g>11){g=0;
m++
}x+="</tbody></table>"+(l?"</div>"+(i[0]>0&&D==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");
N+=x
}I+=N
}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");
a._keyEvent=false;
return I
},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var k=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),j='<div class="ui-datepicker-title">',o="";
if(h||!k){o+='<span class="ui-datepicker-month">'+i[b]+"</span>"
}else{i=e&&e.getFullYear()==c;
var m=f&&f.getFullYear()==c;
o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";
for(var n=0;
n<12;
n++){if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth())){o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>"
}}o+="</select>"
}u||(j+=o+(h||!(k&&l)?"&#xa0;":""));
if(h||!l){j+='<span class="ui-datepicker-year">'+c+"</span>"
}else{g=this._get(a,"yearRange").split(":");
var r=(new Date).getFullYear();
i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);
return isNaN(s)?r:s
};
b=i(g[0]);
g=Math.max(b,i(g[1]||""));
b=e?Math.max(b,e.getFullYear()):b;
g=f?Math.min(g,f.getFullYear()):g;
for(j+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";
b<=g;
b++){j+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"
}j+="</select>"
}j+=this._get(a,"yearSuffix");
if(u){j+=(h||!(k&&l)?"&#xa0;":"")+o
}j+="</div>";
return j
},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);
b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);
e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));
a.selectedDay=e.getDate();
a.drawMonth=a.selectedMonth=e.getMonth();
a.drawYear=a.selectedYear=e.getFullYear();
if(c=="M"||c=="Y"){this._notifyChange(a)
}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");
a=this._getMinMaxDate(a,"max");
b=c&&b<c?c:b;
return b=a&&b>a?a:b
},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");
if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])
}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");
return a==null?[1,1]:typeof a=="number"?[1,a]:a
},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)
},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()
},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()
},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);
c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));
b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));
return this._isInRange(a,c)
},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");
a=this._getMinMaxDate(a,"max");
return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())
},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");
b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);
return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}
},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;
a.currentMonth=a.selectedMonth;
a.currentYear=a.selectedYear
}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));
return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))
}});
d.fn.datepicker=function(a){if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);
d.datepicker.initialized=true
}var b=Array.prototype.slice.call(arguments,1);
if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))
}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))
}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)
})
};
d.datepicker=new L;
d.datepicker.initialized=false;
d.datepicker.uuid=(new Date).getTime();
d.datepicker.version="1.8.5";
window["DP_jQuery_"+y]=d
})(jQuery);
(function(a,d){a.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});
this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);
this._refreshValue()
},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();
a.Widget.prototype.destroy.apply(this,arguments)
},value:function(b){if(b===d){return this._value()
}this._setOption("value",b);
return this
},_setOption:function(b,c){if(b==="value"){this.options.value=c;
this._refreshValue();
this._trigger("change")
}a.Widget.prototype._setOption.apply(this,arguments)
},_value:function(){var b=this.options.value;
if(typeof b!=="number"){b=0
}return Math.min(this.max,Math.max(this.min,b))
},_refreshValue:function(){var b=this.value();
this.valueDiv.toggleClass("ui-corner-right",b===this.max).width(b+"%");
this.element.attr("aria-valuenow",b)
}});
a.extend(a.ui.progressbar,{version:"1.8.5"})
})(jQuery);
jQuery.effects||function(q,i){function g(j){var f;
if(j&&j.constructor==Array&&j.length==3){return j
}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(j)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]
}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(j)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]
}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(j)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]
}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(j)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]
}if(/rgba\(0, 0, 0, 0\)/.exec(j)){return e.transparent
}return e[q.trim(j).toLowerCase()]
}function a(k,j){var f;
do{f=q.curCSS(k,j);
if(f!=""&&f!="transparent"||q.nodeName(k,"body")){break
}j="backgroundColor"
}while(k=k.parentNode);
return g(f)
}function d(){var m=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,j={},f,l;
if(m&&m.length&&m[0]&&m[m[0]]){for(var k=m.length;
k--;
){f=m[k];
if(typeof m[f]=="string"){l=f.replace(/\-(\w)/g,function(o,n){return n.toUpperCase()
});
j[l]=m[f]
}}}else{for(f in m){if(typeof m[f]==="string"){j[f]=m[f]
}}}return j
}function c(k){var j,f;
for(j in k){f=k[j];
if(f==null||q.isFunction(f)||j in v||/scrollbar/.test(j)||!/color/i.test(j)&&isNaN(parseFloat(f))){delete k[j]
}}return k
}function u(l,j){var f={_:0},k;
for(k in j){if(l[k]!=j[k]){f[k]=j[k]
}}return f
}function h(l,j,f,k){if(typeof l=="object"){k=j;
f=null;
j=l;
l=j.effect
}if(q.isFunction(j)){k=j;
f=null;
j={}
}if(typeof j=="number"||q.fx.speeds[j]){k=f;
f=j;
j={}
}if(q.isFunction(f)){k=f;
f=null
}j=j||{};
f=f||j.duration;
f=q.fx.off?0:typeof f=="number"?f:q.fx.speeds[f]||q.fx.speeds._default;
k=k||j.complete;
return[l,j,f,k]
}q.effects={};
q.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(j,f){q.fx.step[f]=function(k){if(!k.colorInit){k.start=a(k.elem,f);
k.end=g(k.end);
k.colorInit=true
}k.elem.style[f]="rgb("+Math.max(Math.min(parseInt(k.pos*(k.end[0]-k.start[0])+k.start[0],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[1]-k.start[1])+k.start[1],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[2]-k.start[2])+k.start[2],10),255),0)+")"
}
});
var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},b=["add","remove","toggle"],v={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};
q.effects.animateClass=function(l,j,f,k){if(q.isFunction(f)){k=f;
f=null
}return this.each(function(){var r=q(this),o=r.attr("style")||" ",n=c(d.call(this)),p,m=r.attr("className");
q.each(b,function(s,w){l[w]&&r[w+"Class"](l[w])
});
p=c(d.call(this));
r.attr("className",m);
r.animate(u(n,p),j,f,function(){q.each(b,function(s,w){l[w]&&r[w+"Class"](l[w])
});
if(typeof r.attr("style")=="object"){r.attr("style").cssText="";
r.attr("style").cssText=o
}else{r.attr("style",o)
}k&&k.apply(this,arguments)
})
})
};
q.fn.extend({_addClass:q.fn.addClass,addClass:function(l,j,f,k){return j?q.effects.animateClass.apply(this,[{add:l},j,f,k]):this._addClass(l)
},_removeClass:q.fn.removeClass,removeClass:function(l,j,f,k){return j?q.effects.animateClass.apply(this,[{remove:l},j,f,k]):this._removeClass(l)
},_toggleClass:q.fn.toggleClass,toggleClass:function(m,j,f,l,k){return typeof j=="boolean"||j===i?f?q.effects.animateClass.apply(this,[j?{add:m}:{remove:m},f,l,k]):this._toggleClass(m,j):q.effects.animateClass.apply(this,[{toggle:m},j,f,l])
},switchClass:function(m,j,f,l,k){return q.effects.animateClass.apply(this,[{add:j,remove:m},f,l,k])
}});
q.extend(q.effects,{version:"1.8.5",save:function(k,j){for(var f=0;
f<j.length;
f++){j[f]!==null&&k.data("ec.storage."+j[f],k[0].style[j[f]])
}},restore:function(k,j){for(var f=0;
f<j.length;
f++){j[f]!==null&&k.css(j[f],k.data("ec.storage."+j[f]))
}},setMode:function(j,f){if(f=="toggle"){f=j.is(":hidden")?"show":"hide"
}return f
},getBaseline:function(k,j){var f;
switch(k[0]){case"top":f=0;
break;
case"middle":f=0.5;
break;
case"bottom":f=1;
break;
default:f=k[0]/j.height
}switch(k[1]){case"left":k=0;
break;
case"center":k=0.5;
break;
case"right":k=1;
break;
default:k=k[1]/j.width
}return{x:k,y:f}
},createWrapper:function(k){if(k.parent().is(".ui-effects-wrapper")){return k.parent()
}var j={width:k.outerWidth(true),height:k.outerHeight(true),"float":k.css("float")},f=q("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});
k.wrap(f);
f=k.parent();
if(k.css("position")=="static"){f.css({position:"relative"});
k.css({position:"relative"})
}else{q.extend(j,{position:k.css("position"),zIndex:k.css("z-index")});
q.each(["top","left","bottom","right"],function(m,l){j[l]=k.css(l);
if(isNaN(parseInt(j[l],10))){j[l]="auto"
}});
k.css({position:"relative",top:0,left:0})
}return f.css(j).show()
},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)
}return f
},setTransition:function(l,j,f,k){k=k||{};
q.each(j,function(n,m){unit=l.cssUnit(m);
if(unit[0]>0){k[m]=unit[0]*f+unit[1]
}});
return k
}});
q.fn.extend({effect:function(k){var j=h.apply(this,arguments);
j={options:j[1],duration:j[2],callback:j[3]};
var f=q.effects[k];
return f&&!q.fx.off?f.call(this,j):this
},_show:q.fn.show,show:function(j){if(!j||typeof j=="number"||q.fx.speeds[j]||!q.effects[j]){return this._show.apply(this,arguments)
}else{var f=h.apply(this,arguments);
f[1].mode="show";
return this.effect.apply(this,f)
}},_hide:q.fn.hide,hide:function(j){if(!j||typeof j=="number"||q.fx.speeds[j]||!q.effects[j]){return this._hide.apply(this,arguments)
}else{var f=h.apply(this,arguments);
f[1].mode="hide";
return this.effect.apply(this,f)
}},__toggle:q.fn.toggle,toggle:function(j){if(!j||typeof j=="number"||q.fx.speeds[j]||!q.effects[j]||typeof j=="boolean"||q.isFunction(j)){return this.__toggle.apply(this,arguments)
}else{var f=h.apply(this,arguments);
f[1].mode="toggle";
return this.effect.apply(this,f)
}},cssUnit:function(k){var j=this.css(k),f=[];
q.each(["em","px","%","pt"],function(m,l){if(j.indexOf(l)>0){f=[parseFloat(j),l]
}});
return f
}});
q.easing.jswing=q.easing.swing;
q.extend(q.easing,{def:"easeOutQuad",swing:function(m,j,f,l,k){return q.easing[q.easing.def](m,j,f,l,k)
},easeInQuad:function(m,j,f,l,k){return l*(j/=k)*j+f
},easeOutQuad:function(m,j,f,l,k){return -l*(j/=k)*(j-2)+f
},easeInOutQuad:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j+f
}return -l/2*(--j*(j-2)-1)+f
},easeInCubic:function(m,j,f,l,k){return l*(j/=k)*j*j+f
},easeOutCubic:function(m,j,f,l,k){return l*((j=j/k-1)*j*j+1)+f
},easeInOutCubic:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j+f
}return l/2*((j-=2)*j*j+2)+f
},easeInQuart:function(m,j,f,l,k){return l*(j/=k)*j*j*j+f
},easeOutQuart:function(m,j,f,l,k){return -l*((j=j/k-1)*j*j*j-1)+f
},easeInOutQuart:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j*j+f
}return -l/2*((j-=2)*j*j*j-2)+f
},easeInQuint:function(m,j,f,l,k){return l*(j/=k)*j*j*j*j+f
},easeOutQuint:function(m,j,f,l,k){return l*((j=j/k-1)*j*j*j*j+1)+f
},easeInOutQuint:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j*j*j+f
}return l/2*((j-=2)*j*j*j*j+2)+f
},easeInSine:function(m,j,f,l,k){return -l*Math.cos(j/k*(Math.PI/2))+l+f
},easeOutSine:function(m,j,f,l,k){return l*Math.sin(j/k*(Math.PI/2))+f
},easeInOutSine:function(m,j,f,l,k){return -l/2*(Math.cos(Math.PI*j/k)-1)+f
},easeInExpo:function(m,j,f,l,k){return j==0?f:l*Math.pow(2,10*(j/k-1))+f
},easeOutExpo:function(m,j,f,l,k){return j==k?f+l:l*(-Math.pow(2,-10*j/k)+1)+f
},easeInOutExpo:function(m,j,f,l,k){if(j==0){return f
}if(j==k){return f+l
}if((j/=k/2)<1){return l/2*Math.pow(2,10*(j-1))+f
}return l/2*(-Math.pow(2,-10*--j)+2)+f
},easeInCirc:function(m,j,f,l,k){return -l*(Math.sqrt(1-(j/=k)*j)-1)+f
},easeOutCirc:function(m,j,f,l,k){return l*Math.sqrt(1-(j=j/k-1)*j)+f
},easeInOutCirc:function(m,j,f,l,k){if((j/=k/2)<1){return -l/2*(Math.sqrt(1-j*j)-1)+f
}return l/2*(Math.sqrt(1-(j-=2)*j)+1)+f
},easeInElastic:function(o,j,f,n,m){o=1.70158;
var l=0,k=n;
if(j==0){return f
}if((j/=m)==1){return f+n
}l||(l=m*0.3);
if(k<Math.abs(n)){k=n;
o=l/4
}else{o=l/(2*Math.PI)*Math.asin(n/k)
}return -(k*Math.pow(2,10*(j-=1))*Math.sin((j*m-o)*2*Math.PI/l))+f
},easeOutElastic:function(o,j,f,n,m){o=1.70158;
var l=0,k=n;
if(j==0){return f
}if((j/=m)==1){return f+n
}l||(l=m*0.3);
if(k<Math.abs(n)){k=n;
o=l/4
}else{o=l/(2*Math.PI)*Math.asin(n/k)
}return k*Math.pow(2,-10*j)*Math.sin((j*m-o)*2*Math.PI/l)+n+f
},easeInOutElastic:function(o,j,f,n,m){o=1.70158;
var l=0,k=n;
if(j==0){return f
}if((j/=m/2)==2){return f+n
}l||(l=m*0.3*1.5);
if(k<Math.abs(n)){k=n;
o=l/4
}else{o=l/(2*Math.PI)*Math.asin(n/k)
}if(j<1){return -0.5*k*Math.pow(2,10*(j-=1))*Math.sin((j*m-o)*2*Math.PI/l)+f
}return k*Math.pow(2,-10*(j-=1))*Math.sin((j*m-o)*2*Math.PI/l)*0.5+n+f
},easeInBack:function(n,j,f,m,l,k){if(k==i){k=1.70158
}return m*(j/=l)*j*((k+1)*j-k)+f
},easeOutBack:function(n,j,f,m,l,k){if(k==i){k=1.70158
}return m*((j=j/l-1)*j*((k+1)*j+k)+1)+f
},easeInOutBack:function(n,j,f,m,l,k){if(k==i){k=1.70158
}if((j/=l/2)<1){return m/2*j*j*(((k*=1.525)+1)*j-k)+f
}return m/2*((j-=2)*j*(((k*=1.525)+1)*j+k)+2)+f
},easeInBounce:function(m,j,f,l,k){return l-q.easing.easeOutBounce(m,k-j,0,l,k)+f
},easeOutBounce:function(m,j,f,l,k){return(j/=k)<1/2.75?l*7.5625*j*j+f:j<2/2.75?l*(7.5625*(j-=1.5/2.75)*j+0.75)+f:j<2.5/2.75?l*(7.5625*(j-=2.25/2.75)*j+0.9375)+f:l*(7.5625*(j-=2.625/2.75)*j+0.984375)+f
},easeInOutBounce:function(m,j,f,l,k){if(j<k/2){return q.easing.easeInBounce(m,j*2,0,l,k)*0.5+f
}return q.easing.easeOutBounce(m,j*2-k,0,l,k)*0.5+l*0.5+f
}})
}(jQuery);
(function(a){a.effects.blind=function(b){return this.queue(function(){var c=a(this),l=["position","top","left"],m=a.effects.setMode(c,b.options.mode||"hide"),o=b.options.direction||"vertical";
a.effects.save(c,l);
c.show();
var n=a.effects.createWrapper(c).css({overflow:"hidden"}),k=o=="vertical"?"height":"width";
o=o=="vertical"?n.height():n.width();
m=="show"&&n.css(k,0);
var j={};
j[k]=m=="show"?o:0;
n.animate(j,b.duration,b.options.easing,function(){m=="hide"&&c.hide();
a.effects.restore(c,l);
a.effects.removeWrapper(c);
b.callback&&b.callback.apply(c[0],arguments);
c.dequeue()
})
})
}
})(jQuery);
(function(a){a.effects.bounce=function(c){return this.queue(function(){var w=a(this),e=["position","top","left"],q=a.effects.setMode(w,c.options.mode||"effect"),u=c.options.direction||"up",v=c.options.distance||20,b=c.options.times||5,p=c.duration||250;
/show|hide/.test(q)&&e.push("opacity");
a.effects.save(w,e);
w.show();
a.effects.createWrapper(w);
var s=u=="up"||u=="down"?"top":"left";
u=u=="up"||u=="left"?"pos":"neg";
v=c.options.distance||(s=="top"?w.outerHeight({margin:true})/3:w.outerWidth({margin:true})/3);
if(q=="show"){w.css("opacity",0).css(s,u=="pos"?-v:v)
}if(q=="hide"){v/=b*2
}q!="hide"&&b--;
if(q=="show"){var r={opacity:1};
r[s]=(u=="pos"?"+=":"-=")+v;
w.animate(r,p/2,c.options.easing);
v/=2;
b--
}for(r=0;
r<b;
r++){var o={},n={};
o[s]=(u=="pos"?"-=":"+=")+v;
n[s]=(u=="pos"?"+=":"-=")+v;
w.animate(o,p/2,c.options.easing).animate(n,p/2,c.options.easing);
v=q=="hide"?v*2:v/2
}if(q=="hide"){r={opacity:0};
r[s]=(u=="pos"?"-=":"+=")+v;
w.animate(r,p/2,c.options.easing,function(){w.hide();
a.effects.restore(w,e);
a.effects.removeWrapper(w);
c.callback&&c.callback.apply(this,arguments)
})
}else{o={};
n={};
o[s]=(u=="pos"?"-=":"+=")+v;
n[s]=(u=="pos"?"+=":"-=")+v;
w.animate(o,p/2,c.options.easing).animate(n,p/2,c.options.easing,function(){a.effects.restore(w,e);
a.effects.removeWrapper(w);
c.callback&&c.callback.apply(this,arguments)
})
}w.queue("fx",function(){w.dequeue()
});
w.dequeue()
})
}
})(jQuery);
(function(a){a.effects.clip=function(b){return this.queue(function(){var e=a(this),j=["position","top","left","height","width"],m=a.effects.setMode(e,b.options.mode||"hide"),o=b.options.direction||"vertical";
a.effects.save(e,j);
e.show();
var n=a.effects.createWrapper(e).css({overflow:"hidden"});
n=e[0].tagName=="IMG"?n:e;
var l={size:o=="vertical"?"height":"width",position:o=="vertical"?"top":"left"};
o=o=="vertical"?n.height():n.width();
if(m=="show"){n.css(l.size,0);
n.css(l.position,o/2)
}var k={};
k[l.size]=m=="show"?o:0;
k[l.position]=m=="show"?0:o/2;
n.animate(k,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){m=="hide"&&e.hide();
a.effects.restore(e,j);
a.effects.removeWrapper(e);
b.callback&&b.callback.apply(e[0],arguments);
e.dequeue()
}})
})
}
})(jQuery);
(function(a){a.effects.drop=function(b){return this.queue(function(){var d=a(this),k=["position","top","left","opacity"],n=a.effects.setMode(d,b.options.mode||"hide"),c=b.options.direction||"left";
a.effects.save(d,k);
d.show();
a.effects.createWrapper(d);
var m=c=="up"||c=="down"?"top":"left";
c=c=="up"||c=="left"?"pos":"neg";
var l=b.options.distance||(m=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);
if(n=="show"){d.css("opacity",0).css(m,c=="pos"?-l:l)
}var j={opacity:n=="show"?1:0};
j[m]=(n=="show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+l;
d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){n=="hide"&&d.hide();
a.effects.restore(d,k);
a.effects.removeWrapper(d);
b.callback&&b.callback.apply(this,arguments);
d.dequeue()
}})
})
}
})(jQuery);
(function(a){a.effects.explode=function(b){return this.queue(function(){var q=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,p=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;
b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;
var j=a(this).show().css("visibility","hidden"),m=j.offset();
m.top-=parseInt(j.css("marginTop"),10)||0;
m.left-=parseInt(j.css("marginLeft"),10)||0;
for(var l=j.outerWidth(true),k=j.outerHeight(true),o=0;
o<q;
o++){for(var n=0;
n<p;
n++){j.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*(l/p),top:-o*(k/q)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:l/p,height:k/q,left:m.left+n*(l/p)+(b.options.mode=="show"?(n-Math.floor(p/2))*(l/p):0),top:m.top+o*(k/q)+(b.options.mode=="show"?(o-Math.floor(q/2))*(k/q):0),opacity:b.options.mode=="show"?0:1}).animate({left:m.left+n*(l/p)+(b.options.mode=="show"?0:(n-Math.floor(p/2))*(l/p)),top:m.top+o*(k/q)+(b.options.mode=="show"?0:(o-Math.floor(q/2))*(k/q)),opacity:b.options.mode=="show"?1:0},b.duration||500)
}}setTimeout(function(){b.options.mode=="show"?j.css({visibility:"visible"}):j.css({visibility:"visible"}).hide();
b.callback&&b.callback.apply(j[0]);
j.dequeue();
a("div.ui-effects-explode").remove()
},b.duration||500)
})
}
})(jQuery);
(function(a){a.effects.fade=function(b){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,b.options.mode||"hide");
f.animate({opacity:e},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);
f.dequeue()
}})
})
}
})(jQuery);
(function(a){a.effects.fold=function(b){return this.queue(function(){var v=a(this),n=["position","top","left"],u=a.effects.setMode(v,b.options.mode||"hide"),q=b.options.size||15,p=!!b.options.horizFirst,m=b.duration?b.duration/2:a.fx.speeds._default/2;
a.effects.save(v,n);
v.show();
var s=a.effects.createWrapper(v).css({overflow:"hidden"}),r=u=="show"!=p,c=r?["width","height"]:["height","width"];
r=r?[s.width(),s.height()]:[s.height(),s.width()];
var o=/([0-9]+)%/.exec(q);
if(o){q=parseInt(o[1],10)/100*r[u=="hide"?0:1]
}if(u=="show"){s.css(p?{height:0,width:q}:{height:q,width:0})
}p={};
o={};
p[c[0]]=u=="show"?r[0]:q;
o[c[1]]=u=="show"?r[1]:0;
s.animate(p,m,b.options.easing).animate(o,m,b.options.easing,function(){u=="hide"&&v.hide();
a.effects.restore(v,n);
a.effects.removeWrapper(v);
b.callback&&b.callback.apply(v[0],arguments);
v.dequeue()
})
})
}
})(jQuery);
(function(a){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),h=["backgroundImage","backgroundColor","opacity"],i=a.effects.setMode(c,b.options.mode||"show"),g={backgroundColor:c.css("backgroundColor")};
if(i=="hide"){g.opacity=0
}a.effects.save(c,h);
c.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){i=="hide"&&c.hide();
a.effects.restore(c,h);
i=="show"&&!a.support.opacity&&this.style.removeAttribute("filter");
b.callback&&b.callback.apply(this,arguments);
c.dequeue()
}})
})
}
})(jQuery);
(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this),e=a.effects.setMode(d,b.options.mode||"show");
times=(b.options.times||5)*2-1;
duration=b.duration?b.duration/2:a.fx.speeds._default/2;
isVisible=d.is(":visible");
animateTo=0;
if(!isVisible){d.css("opacity",0).show();
animateTo=1
}if(e=="hide"&&isVisible||e=="show"&&!isVisible){times--
}for(e=0;
e<times;
e++){d.animate({opacity:animateTo},duration,b.options.easing);
animateTo=(animateTo+1)%2
}d.animate({opacity:animateTo},duration,b.options.easing,function(){animateTo==0&&d.hide();
b.callback&&b.callback.apply(this,arguments)
});
d.queue("fx",function(){d.dequeue()
}).dequeue()
})
}
})(jQuery);
(function(a){a.effects.puff=function(c){return this.queue(function(){var b=a(this),k=a.effects.setMode(b,c.options.mode||"hide"),j=parseInt(c.options.percent,10)||150,f=j/100,d={height:b.height(),width:b.width()};
a.extend(c.options,{fade:true,mode:k,percent:k=="hide"?j:100,from:k=="hide"?d:{height:d.height*f,width:d.width*f}});
b.effect("scale",c.options,c.duration,c.callback);
b.dequeue()
})
};
a.effects.scale=function(c){return this.queue(function(){var b=a(this),m=a.extend(true,{},c.options),k=a.effects.setMode(b,c.options.mode||"effect"),j=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:k=="hide"?0:100),d=c.options.direction||"both",l=c.options.origin;
if(k!="effect"){m.origin=l||["middle","center"];
m.restore=true
}l={height:b.height(),width:b.width()};
b.from=c.options.from||(k=="show"?{height:0,width:0}:l);
j={y:d!="horizontal"?j/100:1,x:d!="vertical"?j/100:1};
b.to={height:l.height*j.y,width:l.width*j.x};
if(c.options.fade){if(k=="show"){b.from.opacity=0;
b.to.opacity=1
}if(k=="hide"){b.from.opacity=1;
b.to.opacity=0
}}m.from=b.from;
m.to=b.to;
m.mode=k;
b.effect("size",m,c.duration,c.callback);
b.dequeue()
})
};
a.effects.size=function(c){return this.queue(function(){var B=a(this),z=["position","top","left","width","height","overflow","opacity"],x=["position","top","left","overflow","opacity"],w=["width","height","overflow"],v=["fontSize"],y=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],b=a.effects.setMode(B,c.options.mode||"effect"),o=c.options.restore||false,q=c.options.scale||"both",r=c.options.origin,u={height:B.height(),width:B.width()};
B.from=c.options.from||u;
B.to=c.options.to||u;
if(r){r=a.effects.getBaseline(r,u);
B.from.top=(u.height-B.from.height)*r.y;
B.from.left=(u.width-B.from.width)*r.x;
B.to.top=(u.height-B.to.height)*r.y;
B.to.left=(u.width-B.to.width)*r.x
}var A={from:{y:B.from.height/u.height,x:B.from.width/u.width},to:{y:B.to.height/u.height,x:B.to.width/u.width}};
if(q=="box"||q=="both"){if(A.from.y!=A.to.y){z=z.concat(y);
B.from=a.effects.setTransition(B,y,A.from.y,B.from);
B.to=a.effects.setTransition(B,y,A.to.y,B.to)
}if(A.from.x!=A.to.x){z=z.concat(s);
B.from=a.effects.setTransition(B,s,A.from.x,B.from);
B.to=a.effects.setTransition(B,s,A.to.x,B.to)
}}if(q=="content"||q=="both"){if(A.from.y!=A.to.y){z=z.concat(v);
B.from=a.effects.setTransition(B,v,A.from.y,B.from);
B.to=a.effects.setTransition(B,v,A.to.y,B.to)
}}a.effects.save(B,o?z:x);
B.show();
a.effects.createWrapper(B);
B.css("overflow","hidden").css(B.from);
if(q=="content"||q=="both"){y=y.concat(["marginTop","marginBottom"]).concat(v);
s=s.concat(["marginLeft","marginRight"]);
w=z.concat(y).concat(s);
B.find("*[width]").each(function(){child=a(this);
o&&a.effects.save(child,w);
var d={height:child.height(),width:child.width()};
child.from={height:d.height*A.from.y,width:d.width*A.from.x};
child.to={height:d.height*A.to.y,width:d.width*A.to.x};
if(A.from.y!=A.to.y){child.from=a.effects.setTransition(child,y,A.from.y,child.from);
child.to=a.effects.setTransition(child,y,A.to.y,child.to)
}if(A.from.x!=A.to.x){child.from=a.effects.setTransition(child,s,A.from.x,child.from);
child.to=a.effects.setTransition(child,s,A.to.x,child.to)
}child.css(child.from);
child.animate(child.to,c.duration,c.options.easing,function(){o&&a.effects.restore(child,w)
})
})
}B.animate(B.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){B.to.opacity===0&&B.css("opacity",B.from.opacity);
b=="hide"&&B.hide();
a.effects.restore(B,o?z:x);
a.effects.removeWrapper(B);
c.callback&&c.callback.apply(this,arguments);
B.dequeue()
}})
})
}
})(jQuery);
(function(a){a.effects.shake=function(b){return this.queue(function(){var v=a(this),n=["position","top","left"];
a.effects.setMode(v,b.options.mode||"effect");
var u=b.options.direction||"left",s=b.options.distance||20,d=b.options.times||3,r=b.duration||b.options.duration||140;
a.effects.save(v,n);
v.show();
a.effects.createWrapper(v);
var q=u=="up"||u=="down"?"top":"left",p=u=="up"||u=="left"?"pos":"neg";
u={};
var o={},m={};
u[q]=(p=="pos"?"-=":"+=")+s;
o[q]=(p=="pos"?"+=":"-=")+s*2;
m[q]=(p=="pos"?"-=":"+=")+s*2;
v.animate(u,r,b.options.easing);
for(s=1;
s<d;
s++){v.animate(o,r,b.options.easing).animate(m,r,b.options.easing)
}v.animate(o,r,b.options.easing).animate(u,r/2,b.options.easing,function(){a.effects.restore(v,n);
a.effects.removeWrapper(v);
b.callback&&b.callback.apply(this,arguments)
});
v.queue("fx",function(){v.dequeue()
});
v.dequeue()
})
}
})(jQuery);
(function(a){a.effects.slide=function(b){return this.queue(function(){var d=a(this),k=["position","top","left"],n=a.effects.setMode(d,b.options.mode||"show"),c=b.options.direction||"left";
a.effects.save(d,k);
d.show();
a.effects.createWrapper(d).css({overflow:"hidden"});
var m=c=="up"||c=="down"?"top":"left";
c=c=="up"||c=="left"?"pos":"neg";
var l=b.options.distance||(m=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));
if(n=="show"){d.css(m,c=="pos"?-l:l)
}var j={};
j[m]=(n=="show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+l;
d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){n=="hide"&&d.hide();
a.effects.restore(d,k);
a.effects.removeWrapper(d);
b.callback&&b.callback.apply(this,arguments);
d.dequeue()
}})
})
}
})(jQuery);
(function(a){a.effects.transfer=function(b){return this.queue(function(){var e=a(this),i=a(b.options.to),h=i.offset();
i={top:h.top,left:h.left,height:i.innerHeight(),width:i.innerWidth()};
h=e.offset();
var g=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:h.top,left:h.left,height:e.innerHeight(),width:e.innerWidth(),position:"absolute"}).animate(i,b.duration,b.options.easing,function(){g.remove();
b.callback&&b.callback.apply(e[0],arguments);
e.dequeue()
})
})
}
})(jQuery);jQuery.fn.datetime=function(){var a=arguments[0]["userLang"]||"en";
var c=!(arguments[0]["americanMode"]||false);
var b="hasDateTime";
return this.each(function(){var j={changeMonth:true,changeYear:true,dateFormat:"yy-mm-dd",showButtonPanel:true,onSelect:f};
var g={};
g.en={time:"Time",hour:"Hour",minute:"Minute",close:"Close"};
g.de={time:"Zeit",hour:"Stunde",minute:"Minute",close:"Schließen"};
$(this).data("sets",j);
$(this).data("userLang",a);
$(this).data("b24Hour",c);
function i(k,l){var n=g[l]||g.en;
if(!$("#pickerplug").length){var m='<ul id="pickerplug">';
m+="<li>";
m+='<div id="datepicker"></div>';
m+="</li>";
m+="<li>";
m+='<div id="timepicker">';
m+='<h3 id="tpSelectedTime">';
m+='	<span id="text_time"></span>';
m+='	<span class="selHrs" >00</span>';
m+='	<span class="delim" >:</span>';
m+='	<span class="selMins">00</span>';
m+='	<span class="dayPeriod">am</span>';
m+="</h3>";
m+='<ul id="sliderContainer">';
m+="	<li>";
m+='        <h4 id="text_hour"></h4>';
m+='        <div id="hourSlider" class="slider"></div>';
m+="	</li>";
m+="	<li>";
m+='        <h4 id="text_minute"></h4>';
m+='        <div id="minuteSlider" class="slider"></div>';
m+="	</li>";
m+="</ul>";
m+="</div>";
m+='<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" id="text_close"></button>';
m+="</li>";
m+="</ul>";
$("body").append(m);
$("#datepicker").datepicker();
$(document).mousedown(d);
$("#pickerplug .ui-datepicker-close").click(d);
$("#hourSlider").slider({orientation:"vertical",range:"min",min:0,max:23,step:1,slide:function(o,p){f(h(p.value,"hour"),"time")
},change:function(o,p){$("#tpSelectedTime .selHrs").effect("highlight",1000)
}});
$("#minuteSlider").slider({orientation:"vertical",range:"min",min:0,max:55,step:5,slide:function(o,p){f(h(p.value,"minute"),"time")
},change:function(o,p){$("#tpSelectedTime .selMins").effect("highlight",1000)
}});
$("#tpSelectedTime .selHrs").keyup(function(o){if((o.which<=57&&o.which>=48)&&($(this).text()>=1&&$(this).text()<=12)){$("#hourSlider").slider("value",parseInt($(this).text()))
}else{$(this).val($(this).text().slice(0,-1))
}});
$("#tpSelectedTime .selMins").keyup(function(o){if((o.which<=57&&o.which>=48)&&($(this).text()>=0&&$(this).text()<=59)){$("#minuteSlider").slider("value",parseInt($(this).text()))
}else{$(this).text($(this).text().slice(0,-1))
}})
}$(".dayPeriod").toggle(!c);
$("#text_time").text(n.time);
$("#text_hour").text(n.hour);
$("#text_minute").text(n.minute);
$("#text_close").text(n.close);
$("#pickerplug").data("userLang",l);
$("#pickerplug").data("b24Hour",k)
}$(this).bind("focus",function(){var l=$(this).offset().top+$(this).outerHeight();
var k=$(this).offset().left;
if($(this).data("userLang")!=$("#pickerplug").data("userLang")||$(this).data("b24Hour")!=$("#pickerplug").data("userLang")){i($(this).data("b24Hour"),$(this).data("userLang"))
}$("#pickerplug").css({left:k+"px",top:l+"px"}).show("normal");
if($(this).data("userLang")!="en"&&g[$(this).data("userLang")]){$("#datepicker").datepicker("option",$.extend({},$.datepicker.regional[$(this).data("userLang")]));
$("#datepicker").datepicker("option",$.extend($(this).data("sets")))
}else{$("#datepicker").datepicker("option",$.extend({},$.datepicker.regional[""]));
$("#datepicker").datepicker("option",$.extend($(this).data("sets")))
}e(this);
if($("#pickerplug").css("display")=="none"){$("#pickerplug").show("normal")
}$(this).bind("keyup",e);
$(this).addClass(b);
$("#pickerplug").data("inputfield",this)
});
function e(m){var l=($(m).val()||$(this).val()).split(" ");
if(l.length<2){l=["00-00-00","00:00:00"]
}$("#pickerplug").data("lastdate",l[0]);
$("#pickerplug").data("lasttime",l[1]);
l=l[1].split(":");
if(l.length<2){l=["00","00","00"]
}var k=l[0]||"00";
var n=l[1]||"00";
h(k,"hour");
h(n,"minute");
$("#hourSlider").slider("option","value",k);
$("#minuteSlider").slider("option","value",n);
$("#datepicker").datepicker("setDate",$.datepicker.parseDate(j.dateFormat,$("#pickerplug").data("lastdate")))
}function h(l,m){var n="";
switch(m){case"hour":var k=parseInt(l,10);
if(!$("#pickerplug").data("b24Hour")&&k>11){k-=12;
$(".dayPeriod").text("pm")
}else{if(!$("#pickerplug").data("b24Hour")){$(".dayPeriod").text("am")
}}if(k<10){k="0".concat(k)
}if(l<10){l="0".concat(parseInt(l))
}$("#tpSelectedTime .selHrs").text(k);
n=l+":"+$("#tpSelectedTime .selMins").text();
break;
case"minute":minutes=((l<10)?"0":"")+parseInt(l,10);
$("#tpSelectedTime .selMins").text(minutes);
n=$("#hourSlider").slider("option","value")+":"+minutes;
break
}return n
}function f(l,k){switch(k){case"time":$("#pickerplug").data("lasttime",l+":00");
break;
default:$("#pickerplug").data("lastdate",l)
}$($("#pickerplug").data("inputfield")).val($("#pickerplug").data("lastdate")+" "+$("#pickerplug").data("lasttime"))
}function d(k){if(($(k.target).parents("#pickerplug").length||$(k.target).hasClass(b))&&!$(k.target).hasClass("ui-datepicker-close")){return
}$("#pickerplug").hide("normal");
$(this).unbind("click",d);
$(this).unbind("keyup",e);
$(this).removeClass(b)
}})
};(function(i){var l="2.88";
if(i.support==undefined){i.support={opacity:!(i.browser.msie)}
}function a(r){if(i.fn.cycle.debug){f(r)
}}function f(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))
}}i.fn.cycle=function(s,r){var t={s:this.selector,c:this.context};
if(this.length===0&&s!="stop"){if(!i.isReady&&t.s){f("DOM not ready, queuing slideshow");
i(function(){i(t.s,t.c).cycle(s,r)
});
return this
}f("terminating; zero elements found by selector"+(i.isReady?"":" (DOM not ready)"));
return this
}return this.each(function(){var x=m(this,s,r);
if(x===false){return
}x.updateActivePagerLink=x.updateActivePagerLink||i.fn.cycle.updateActivePagerLink;
if(this.cycleTimeout){clearTimeout(this.cycleTimeout)
}this.cycleTimeout=this.cyclePause=0;
var y=i(this);
var z=x.slideExpr?i(x.slideExpr,this):y.children();
var v=z.get();
if(v.length<2){f("terminating; too few slides: "+v.length);
return
}var u=k(y,z,v,x,t);
if(u===false){return
}var w=u.continuous?10:h(v[u.currSlide],v[u.nextSlide],u,!u.rev);
if(w){w+=(u.delay||0);
if(w<10){w=10
}a("first timeout: "+w);
this.cycleTimeout=setTimeout(function(){e(v,u,0,(!u.rev&&!x.backwards))
},w)
}})
};
function m(r,u,s){if(r.cycleStop==undefined){r.cycleStop=0
}if(u===undefined||u===null){u={}
}if(u.constructor==String){switch(u){case"destroy":case"stop":var w=i(r).data("cycle.opts");
if(!w){return false
}r.cycleStop++;
if(r.cycleTimeout){clearTimeout(r.cycleTimeout)
}r.cycleTimeout=0;
i(r).removeData("cycle.opts");
if(u=="destroy"){q(w)
}return false;
case"toggle":r.cyclePause=(r.cyclePause===1)?0:1;
v(r.cyclePause,s,r);
return false;
case"pause":r.cyclePause=1;
return false;
case"resume":r.cyclePause=0;
v(false,s,r);
return false;
case"prev":case"next":var w=i(r).data("cycle.opts");
if(!w){f('options not found, "prev/next" ignored');
return false
}i.fn.cycle[u](w);
return false;
default:u={fx:u}
}return u
}else{if(u.constructor==Number){var t=u;
u=i(r).data("cycle.opts");
if(!u){f("options not found, can not advance slide");
return false
}if(t<0||t>=u.elements.length){f("invalid slide index: "+t);
return false
}u.nextSlide=t;
if(r.cycleTimeout){clearTimeout(r.cycleTimeout);
r.cycleTimeout=0
}if(typeof s=="string"){u.oneTimeFx=s
}e(u.elements,u,1,t>=u.currSlide);
return false
}}return u;
function v(y,z,x){if(!y&&z===true){var A=i(x).data("cycle.opts");
if(!A){f("options not found, can not resume");
return false
}if(x.cycleTimeout){clearTimeout(x.cycleTimeout);
x.cycleTimeout=0
}e(A.elements,A,1,(!w.rev&&!w.backwards))
}}}function b(r,s){if(!i.support.opacity&&s.cleartype&&r.style.filter){try{r.style.removeAttribute("filter")
}catch(t){}}}function q(r){if(r.next){i(r.next).unbind(r.prevNextEvent)
}if(r.prev){i(r.prev).unbind(r.prevNextEvent)
}if(r.pager||r.pagerAnchorBuilder){i.each(r.pagerAnchors||[],function(){this.unbind().remove()
})
}r.pagerAnchors=null;
if(r.destroy){r.destroy(r)
}}function k(z,L,v,u,F){var D=i.extend({},i.fn.cycle.defaults,u||{},i.metadata?z.metadata():i.meta?z.data():{});
if(D.autostop){D.countdown=D.autostopCount||v.length
}var s=z[0];
z.data("cycle.opts",D);
D.$cont=z;
D.stopCount=s.cycleStop;
D.elements=v;
D.before=D.before?[D.before]:[];
D.after=D.after?[D.after]:[];
D.after.unshift(function(){D.busy=0
});
if(!i.support.opacity&&D.cleartype){D.after.push(function(){b(this,D)
})
}if(D.continuous){D.after.push(function(){e(v,D,0,(!D.rev&&!D.backwards))
})
}n(D);
if(!i.support.opacity&&D.cleartype&&!D.cleartypeNoBg){g(L)
}if(z.css("position")=="static"){z.css("position","relative")
}if(D.width){z.width(D.width)
}if(D.height&&D.height!="auto"){z.height(D.height)
}if(D.startingSlide){D.startingSlide=parseInt(D.startingSlide)
}else{if(D.backwards){D.startingSlide=v.length-1
}}if(D.random){D.randomMap=[];
for(var J=0;
J<v.length;
J++){D.randomMap.push(J)
}D.randomMap.sort(function(N,w){return Math.random()-0.5
});
D.randomIndex=1;
D.startingSlide=D.randomMap[1]
}else{if(D.startingSlide>=v.length){D.startingSlide=0
}}D.currSlide=D.startingSlide||0;
var y=D.startingSlide;
L.css({position:"absolute",top:0,left:0}).hide().each(function(w){var N;
if(D.backwards){N=y?w<=y?v.length+(w-y):y-w:v.length-w
}else{N=y?w>=y?v.length-(w-y):y-w:v.length-w
}i(this).css("z-index",N)
});
i(v[y]).css("opacity",1).show();
b(v[y],D);
if(D.fit&&D.width){L.width(D.width)
}if(D.fit&&D.height&&D.height!="auto"){L.height(D.height)
}var E=D.containerResize&&!z.innerHeight();
if(E){var x=0,C=0;
for(var H=0;
H<v.length;
H++){var r=i(v[H]),M=r[0],B=r.outerWidth(),K=r.outerHeight();
if(!B){B=M.offsetWidth||M.width||r.attr("width")
}if(!K){K=M.offsetHeight||M.height||r.attr("height")
}x=B>x?B:x;
C=K>C?K:C
}if(x>0&&C>0){z.css({width:x+"px",height:C+"px"})
}}if(D.pause){z.hover(function(){this.cyclePause++
},function(){this.cyclePause--
})
}if(c(D)===false){return false
}var t=false;
u.requeueAttempts=u.requeueAttempts||0;
L.each(function(){var P=i(this);
this.cycleH=(D.fit&&D.height)?D.height:(P.height()||this.offsetHeight||this.height||P.attr("height")||0);
this.cycleW=(D.fit&&D.width)?D.width:(P.width()||this.offsetWidth||this.width||P.attr("width")||0);
if(P.is("img")){var N=(i.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);
var Q=(i.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);
var O=(i.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);
var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);
if(N||Q||O||w){if(F.s&&D.requeueOnImageNotLoaded&&++u.requeueAttempts<100){f(u.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);
setTimeout(function(){i(F.s,F.c).cycle(u)
},D.requeueTimeout);
t=true;
return false
}else{f("could not determine size of image: "+this.src,this.cycleW,this.cycleH)
}}}return true
});
if(t){return false
}D.cssBefore=D.cssBefore||{};
D.animIn=D.animIn||{};
D.animOut=D.animOut||{};
L.not(":eq("+y+")").css(D.cssBefore);
if(D.cssFirst){i(L[y]).css(D.cssFirst)
}if(D.timeout){D.timeout=parseInt(D.timeout);
if(D.speed.constructor==String){D.speed=i.fx.speeds[D.speed]||parseInt(D.speed)
}if(!D.sync){D.speed=D.speed/2
}var G=D.fx=="shuffle"?500:250;
while((D.timeout-D.speed)<G){D.timeout+=D.speed
}}if(D.easing){D.easeIn=D.easeOut=D.easing
}if(!D.speedIn){D.speedIn=D.speed
}if(!D.speedOut){D.speedOut=D.speed
}D.slideCount=v.length;
D.currSlide=D.lastSlide=y;
if(D.random){if(++D.randomIndex==v.length){D.randomIndex=0
}D.nextSlide=D.randomMap[D.randomIndex]
}else{if(D.backwards){D.nextSlide=D.startingSlide==0?(v.length-1):D.startingSlide-1
}else{D.nextSlide=D.startingSlide>=(v.length-1)?0:D.startingSlide+1
}}if(!D.multiFx){var I=i.fn.cycle.transitions[D.fx];
if(i.isFunction(I)){I(z,L,D)
}else{if(D.fx!="custom"&&!D.multiFx){f("unknown transition: "+D.fx,"; slideshow terminating");
return false
}}}var A=L[y];
if(D.before.length){D.before[0].apply(A,[A,A,D,true])
}if(D.after.length>1){D.after[1].apply(A,[A,A,D,true])
}if(D.next){i(D.next).bind(D.prevNextEvent,function(){return o(D,D.rev?-1:1)
})
}if(D.prev){i(D.prev).bind(D.prevNextEvent,function(){return o(D,D.rev?1:-1)
})
}if(D.pager||D.pagerAnchorBuilder){d(v,D)
}j(D,v);
return D
}function n(r){r.original={before:[],after:[]};
r.original.cssBefore=i.extend({},r.cssBefore);
r.original.cssAfter=i.extend({},r.cssAfter);
r.original.animIn=i.extend({},r.animIn);
r.original.animOut=i.extend({},r.animOut);
i.each(r.before,function(){r.original.before.push(this)
});
i.each(r.after,function(){r.original.after.push(this)
})
}function c(x){var v,t,s=i.fn.cycle.transitions;
if(x.fx.indexOf(",")>0){x.multiFx=true;
x.fxs=x.fx.replace(/\s*/g,"").split(",");
for(v=0;
v<x.fxs.length;
v++){var w=x.fxs[v];
t=s[w];
if(!t||!s.hasOwnProperty(w)||!i.isFunction(t)){f("discarding unknown transition: ",w);
x.fxs.splice(v,1);
v--
}}if(!x.fxs.length){f("No valid transitions named; slideshow terminating.");
return false
}}else{if(x.fx=="all"){x.multiFx=true;
x.fxs=[];
for(p in s){t=s[p];
if(s.hasOwnProperty(p)&&i.isFunction(t)){x.fxs.push(p)
}}}}if(x.multiFx&&x.randomizeEffects){var u=Math.floor(Math.random()*20)+30;
for(v=0;
v<u;
v++){var r=Math.floor(Math.random()*x.fxs.length);
x.fxs.push(x.fxs.splice(r,1)[0])
}a("randomized fx sequence: ",x.fxs)
}return true
}function j(s,r){s.addSlide=function(u,v){var t=i(u),w=t[0];
if(!s.autostopCount){s.countdown++
}r[v?"unshift":"push"](w);
if(s.els){s.els[v?"unshift":"push"](w)
}s.slideCount=r.length;
t.css("position","absolute");
t[v?"prependTo":"appendTo"](s.$cont);
if(v){s.currSlide++;
s.nextSlide++
}if(!i.support.opacity&&s.cleartype&&!s.cleartypeNoBg){g(t)
}if(s.fit&&s.width){t.width(s.width)
}if(s.fit&&s.height&&s.height!="auto"){$slides.height(s.height)
}w.cycleH=(s.fit&&s.height)?s.height:t.height();
w.cycleW=(s.fit&&s.width)?s.width:t.width();
t.css(s.cssBefore);
if(s.pager||s.pagerAnchorBuilder){i.fn.cycle.createPagerAnchor(r.length-1,w,i(s.pager),r,s)
}if(i.isFunction(s.onAddSlide)){s.onAddSlide(t)
}else{t.hide()
}}
}i.fn.cycle.resetState=function(s,r){r=r||s.fx;
s.before=[];
s.after=[];
s.cssBefore=i.extend({},s.original.cssBefore);
s.cssAfter=i.extend({},s.original.cssAfter);
s.animIn=i.extend({},s.original.animIn);
s.animOut=i.extend({},s.original.animOut);
s.fxFn=null;
i.each(s.original.before,function(){s.before.push(this)
});
i.each(s.original.after,function(){s.after.push(this)
});
var t=i.fn.cycle.transitions[r];
if(i.isFunction(t)){t(s.$cont,i(s.elements),s)
}};
function e(y,r,x,A){if(x&&r.busy&&r.manualTrump){a("manualTrump in go(), stopping active transition");
i(y).stop(true,true);
r.busy=false
}if(r.busy){a("transition active, ignoring new tx request");
return
}var v=r.$cont[0],C=y[r.currSlide],B=y[r.nextSlide];
if(v.cycleStop!=r.stopCount||v.cycleTimeout===0&&!x){return
}if(!x&&!v.cyclePause&&!r.bounce&&((r.autostop&&(--r.countdown<=0))||(r.nowrap&&!r.random&&r.nextSlide<r.currSlide))){if(r.end){r.end(r)
}return
}var z=false;
if((x||!v.cyclePause)&&(r.nextSlide!=r.currSlide)){z=true;
var w=r.fx;
C.cycleH=C.cycleH||i(C).height();
C.cycleW=C.cycleW||i(C).width();
B.cycleH=B.cycleH||i(B).height();
B.cycleW=B.cycleW||i(B).width();
if(r.multiFx){if(r.lastFx==undefined||++r.lastFx>=r.fxs.length){r.lastFx=0
}w=r.fxs[r.lastFx];
r.currFx=w
}if(r.oneTimeFx){w=r.oneTimeFx;
r.oneTimeFx=null
}i.fn.cycle.resetState(r,w);
if(r.before.length){i.each(r.before,function(D,E){if(v.cycleStop!=r.stopCount){return
}E.apply(B,[C,B,r,A])
})
}var t=function(){i.each(r.after,function(D,E){if(v.cycleStop!=r.stopCount){return
}E.apply(B,[C,B,r,A])
})
};
a("tx firing; currSlide: "+r.currSlide+"; nextSlide: "+r.nextSlide);
r.busy=1;
if(r.fxFn){r.fxFn(C,B,r,t,A,x&&r.fastOnEvent)
}else{if(i.isFunction(i.fn.cycle[r.fx])){i.fn.cycle[r.fx](C,B,r,t,A,x&&r.fastOnEvent)
}else{i.fn.cycle.custom(C,B,r,t,A,x&&r.fastOnEvent)
}}}if(z||r.nextSlide==r.currSlide){r.lastSlide=r.currSlide;
if(r.random){r.currSlide=r.nextSlide;
if(++r.randomIndex==y.length){r.randomIndex=0
}r.nextSlide=r.randomMap[r.randomIndex];
if(r.nextSlide==r.currSlide){r.nextSlide=(r.currSlide==r.slideCount-1)?0:r.currSlide+1
}}else{if(r.backwards){var u=(r.nextSlide-1)<0;
if(u&&r.bounce){r.backwards=!r.backwards;
r.nextSlide=1;
r.currSlide=0
}else{r.nextSlide=u?(y.length-1):r.nextSlide-1;
r.currSlide=u?0:r.nextSlide+1
}}else{var u=(r.nextSlide+1)==y.length;
if(u&&r.bounce){r.backwards=!r.backwards;
r.nextSlide=y.length-2;
r.currSlide=y.length-1
}else{r.nextSlide=u?0:r.nextSlide+1;
r.currSlide=u?y.length-1:r.nextSlide-1
}}}}if(z&&r.pager){r.updateActivePagerLink(r.pager,r.currSlide,r.activePagerClass)
}var s=0;
if(r.timeout&&!r.continuous){s=h(y[r.currSlide],y[r.nextSlide],r,A)
}else{if(r.continuous&&v.cyclePause){s=10
}}if(s>0){v.cycleTimeout=setTimeout(function(){e(y,r,0,(!r.rev&&!r.backwards))
},s)
}}i.fn.cycle.updateActivePagerLink=function(r,t,s){i(r).each(function(){i(this).children().removeClass(s).eq(t).addClass(s)
})
};
function h(w,u,v,s){if(v.timeoutFn){var r=v.timeoutFn.call(w,w,u,v,s);
while((r-v.speed)<250){r+=v.speed
}a("calculated timeout: "+r+"; speed: "+v.speed);
if(r!==false){return r
}}return v.timeout
}i.fn.cycle.next=function(r){o(r,r.rev?-1:1)
};
i.fn.cycle.prev=function(r){o(r,r.rev?1:-1)
};
function o(t,w){var s=t.elements;
var v=t.$cont[0],u=v.cycleTimeout;
if(u){clearTimeout(u);
v.cycleTimeout=0
}if(t.random&&w<0){t.randomIndex--;
if(--t.randomIndex==-2){t.randomIndex=s.length-2
}else{if(t.randomIndex==-1){t.randomIndex=s.length-1
}}t.nextSlide=t.randomMap[t.randomIndex]
}else{if(t.random){t.nextSlide=t.randomMap[t.randomIndex]
}else{t.nextSlide=t.currSlide+w;
if(t.nextSlide<0){if(t.nowrap){return false
}t.nextSlide=s.length-1
}else{if(t.nextSlide>=s.length){if(t.nowrap){return false
}t.nextSlide=0
}}}}var r=t.onPrevNextEvent||t.prevNextClick;
if(i.isFunction(r)){r(w>0,t.nextSlide,s[t.nextSlide])
}e(s,t,1,w>=0);
return false
}function d(s,t){var r=i(t.pager);
i.each(s,function(u,v){i.fn.cycle.createPagerAnchor(u,v,r,s,t)
});
t.updateActivePagerLink(t.pager,t.startingSlide,t.activePagerClass)
}i.fn.cycle.createPagerAnchor=function(v,w,t,u,x){var s;
if(i.isFunction(x.pagerAnchorBuilder)){s=x.pagerAnchorBuilder(v,w);
a("pagerAnchorBuilder("+v+", el) returned: "+s)
}else{s='<a href="#">'+(v+1)+"</a>"
}if(!s){return
}var y=i(s);
if(y.parents("body").length===0){var r=[];
if(t.length>1){t.each(function(){var z=y.clone(true);
i(this).append(z);
r.push(z[0])
});
y=i(r)
}else{y.appendTo(t)
}}x.pagerAnchors=x.pagerAnchors||[];
x.pagerAnchors.push(y);
y.bind(x.pagerEvent,function(C){C.preventDefault();
x.nextSlide=v;
var B=x.$cont[0],A=B.cycleTimeout;
if(A){clearTimeout(A);
B.cycleTimeout=0
}var z=x.onPagerEvent||x.pagerClick;
if(i.isFunction(z)){z(x.nextSlide,u[x.nextSlide])
}e(u,x,1,x.currSlide<v)
});
if(!/^click/.test(x.pagerEvent)&&!x.allowPagerClickBubble){y.bind("click.cycle",function(){return false
})
}if(x.pauseOnPagerHover){y.hover(function(){x.$cont[0].cyclePause++
},function(){x.$cont[0].cyclePause--
})
}};
i.fn.cycle.hopsFromLast=function(u,t){var s,r=u.lastSlide,v=u.currSlide;
if(t){s=v>r?v-r:u.slideCount-r
}else{s=v<r?r-v:r+u.slideCount-v
}return s
};
function g(t){a("applying clearType background-color hack");
function s(u){u=parseInt(u).toString(16);
return u.length<2?"0"+u:u
}function r(x){for(;
x&&x.nodeName.toLowerCase()!="html";
x=x.parentNode){var u=i.css(x,"background-color");
if(u.indexOf("rgb")>=0){var w=u.match(/\d+/g);
return"#"+s(w[0])+s(w[1])+s(w[2])
}if(u&&u!="transparent"){return u
}}return"#ffffff"
}t.each(function(){i(this).css("background-color",r(this))
})
}i.fn.cycle.commonReset=function(x,u,v,s,t,r){i(v.elements).not(x).hide();
v.cssBefore.opacity=1;
v.cssBefore.display="block";
if(s!==false&&u.cycleW>0){v.cssBefore.width=u.cycleW
}if(t!==false&&u.cycleH>0){v.cssBefore.height=u.cycleH
}v.cssAfter=v.cssAfter||{};
v.cssAfter.display="none";
i(x).css("zIndex",v.slideCount+(r===true?1:0));
i(u).css("zIndex",v.slideCount+(r===true?0:1))
};
i.fn.cycle.custom=function(D,x,r,u,w,s){var C=i(D),y=i(x);
var t=r.speedIn,B=r.speedOut,v=r.easeIn,A=r.easeOut;
y.css(r.cssBefore);
if(s){if(typeof s=="number"){t=B=s
}else{t=B=1
}v=A=null
}var z=function(){y.animate(r.animIn,t,v,u)
};
C.animate(r.animOut,B,A,function(){if(r.cssAfter){C.css(r.cssAfter)
}if(!r.sync){z()
}});
if(r.sync){z()
}};
i.fn.cycle.transitions={fade:function(s,t,r){t.not(":eq("+r.currSlide+")").css("opacity",0);
r.before.push(function(w,u,v){i.fn.cycle.commonReset(w,u,v);
v.cssBefore.opacity=0
});
r.animIn={opacity:1};
r.animOut={opacity:0};
r.cssBefore={top:0,left:0}
}};
i.fn.cycle.ver=function(){return l
};
i.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!i.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false}
})(jQuery);
(function(a){a.fn.cycle.transitions.none=function(c,d,b){b.fxFn=function(g,e,f,h){a(e).show();
a(g).hide();
h()
}
};
a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");
c.before.push(a.fn.cycle.commonReset);
var b=d.height();
c.cssBefore={top:b,left:0};
c.cssFirst={top:0};
c.animIn={top:0};
c.animOut={top:-b}
};
a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");
c.before.push(a.fn.cycle.commonReset);
var b=d.height();
c.cssFirst={top:0};
c.cssBefore={top:-b,left:0};
c.animIn={top:0};
c.animOut={top:b}
};
a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");
c.before.push(a.fn.cycle.commonReset);
var b=d.width();
c.cssFirst={left:0};
c.cssBefore={left:b,top:0};
c.animIn={left:0};
c.animOut={left:0-b}
};
a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");
c.before.push(a.fn.cycle.commonReset);
var b=d.width();
c.cssFirst={left:0};
c.cssBefore={left:-b,top:0};
c.animIn={left:0};
c.animOut={left:b}
};
a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();
b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);
g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);
g.animOut.left=e?-h.cycleW:h.cycleW
});
b.cssFirst={left:0};
b.cssBefore={top:0};
b.animIn={left:0};
b.animOut={top:0}
};
a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");
b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);
g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);
g.animOut.top=e?h.cycleH:-h.cycleH
});
b.cssFirst={top:0};
b.cssBefore={left:0};
b.animIn={top:0};
b.animOut={left:0}
};
a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();
a.fn.cycle.commonReset(g,e,f,false,true);
f.animIn.width=e.cycleW
});
b.cssBefore={left:0,top:0,width:0};
b.animIn={width:"show"};
b.animOut={width:0}
};
a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();
a.fn.cycle.commonReset(g,e,f,true,false);
f.animIn.height=e.cycleH
});
b.cssBefore={left:0,top:0,height:0};
b.animIn={height:"show"};
b.animOut={height:0}
};
a.fn.cycle.transitions.shuffle=function(e,f,d){var c,b=e.css("overflow","visible").width();
f.css({left:0,top:0});
d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true)
});
if(!d.speedAdjusted){d.speed=d.speed/2;
d.speedAdjusted=true
}d.random=0;
d.shuffle=d.shuffle||{left:-b,top:15};
d.els=[];
for(c=0;
c<f.length;
c++){d.els.push(f[c])
}for(c=0;
c<d.currSlide;
c++){d.els.push(d.els.shift())
}d.fxFn=function(m,j,l,g,i){var h=i?a(m):a(j);
a(j).css(l.cssBefore);
var k=l.slideCount;
h.animate(l.shuffle,l.speedIn,l.easeIn,function(){var o=a.fn.cycle.hopsFromLast(l,i);
for(var q=0;
q<o;
q++){i?l.els.push(l.els.shift()):l.els.unshift(l.els.pop())
}if(i){for(var r=0,n=l.els.length;
r<n;
r++){a(l.els[r]).css("z-index",n-r+k)
}}else{var s=a(m).css("z-index");
h.css("z-index",parseInt(s)+1+k)
}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){a(i?this:m).hide();
if(g){g()
}})
})
};
d.cssBefore={display:"block",opacity:1,top:0,left:0}
};
a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);
f.cssBefore.top=e.cycleH;
f.animIn.height=e.cycleH
});
b.cssFirst={top:0};
b.cssBefore={left:0,height:0};
b.animIn={top:0};
b.animOut={height:0}
};
a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);
f.animIn.height=e.cycleH;
f.animOut.top=g.cycleH
});
b.cssFirst={top:0};
b.cssBefore={left:0,top:0,height:0};
b.animOut={height:0}
};
a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);
f.cssBefore.left=e.cycleW;
f.animIn.width=e.cycleW
});
b.cssBefore={top:0,width:0};
b.animIn={left:0};
b.animOut={width:0}
};
a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);
f.animIn.width=e.cycleW;
f.animOut.left=g.cycleW
});
b.cssBefore={top:0,left:0,width:0};
b.animIn={left:0};
b.animOut={width:0}
};
a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);
f.cssBefore.top=e.cycleH/2;
f.cssBefore.left=e.cycleW/2;
f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};
f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}
});
b.cssFirst={top:0,left:0};
b.cssBefore={width:0,height:0}
};
a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);
f.cssBefore.left=e.cycleW/2;
f.cssBefore.top=e.cycleH/2;
f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}
});
b.cssBefore={width:0,height:0};
b.animOut={opacity:0}
};
a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();
c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);
g.animIn.width=f.cycleW;
g.animOut.left=h.cycleW
});
c.cssBefore={left:b,top:0};
c.animIn={left:0};
c.animOut={left:b}
};
a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();
c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);
g.animIn.height=f.cycleH;
g.animOut.top=h.cycleH
});
c.cssBefore={top:b,left:0};
c.animIn={top:0};
c.animOut={top:b}
};
a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();
var b=e.width();
d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h);
h.animIn.height=g.cycleH;
h.animOut.top=i.cycleH
});
d.cssBefore={top:c,left:b};
d.animIn={top:0,left:0};
d.animOut={top:c,left:b}
};
a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);
f.cssBefore.left=this.cycleW/2;
f.animIn={left:0,width:this.cycleW};
f.animOut={left:0}
});
b.cssBefore={width:0,top:0}
};
a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);
f.cssBefore.top=this.cycleH/2;
f.animIn={top:0,height:this.cycleH};
f.animOut={top:0}
});
b.cssBefore={height:0,left:0}
};
a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);
f.cssBefore.left=e.cycleW/2;
f.animIn={left:0,width:this.cycleW};
f.animOut={left:g.cycleW/2,width:0}
});
b.cssBefore={top:0,width:0}
};
a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);
f.cssBefore.top=e.cycleH/2;
f.animIn={top:0,height:e.cycleH};
f.animOut={top:g.cycleH/2,height:0}
});
b.cssBefore={left:0,height:0}
};
a.fn.cycle.transitions.cover=function(f,g,e){var i=e.direction||"left";
var b=f.css("overflow","hidden").width();
var c=f.height();
e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h);
if(i=="right"){h.cssBefore.left=-b
}else{if(i=="up"){h.cssBefore.top=c
}else{if(i=="down"){h.cssBefore.top=-c
}else{h.cssBefore.left=b
}}}});
e.animIn={left:0,top:0};
e.animOut={opacity:1};
e.cssBefore={top:0,left:0}
};
a.fn.cycle.transitions.uncover=function(f,g,e){var i=e.direction||"left";
var b=f.css("overflow","hidden").width();
var c=f.height();
e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h,true,true,true);
if(i=="right"){h.animOut.left=b
}else{if(i=="up"){h.animOut.top=-c
}else{if(i=="down"){h.animOut.top=c
}else{h.animOut.left=-b
}}}});
e.animIn={left:0,top:0};
e.animOut={opacity:1};
e.cssBefore={top:0,left:0}
};
a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();
var c=e.height();
d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true);
if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}
}else{h.animOut.opacity=0
}});
d.cssBefore={left:0,top:0};
d.animIn={left:0}
};
a.fn.cycle.transitions.wipe=function(s,m,e){var q=s.css("overflow","hidden").width();
var j=s.height();
e.cssBefore=e.cssBefore||{};
var g;
if(e.clip){if(/l2r/.test(e.clip)){g="rect(0px 0px "+j+"px 0px)"
}else{if(/r2l/.test(e.clip)){g="rect(0px "+q+"px "+j+"px "+q+"px)"
}else{if(/t2b/.test(e.clip)){g="rect(0px "+q+"px 0px 0px)"
}else{if(/b2t/.test(e.clip)){g="rect("+j+"px "+q+"px "+j+"px 0px)"
}else{if(/zoom/.test(e.clip)){var o=parseInt(j/2);
var f=parseInt(q/2);
g="rect("+o+"px "+f+"px "+o+"px "+f+"px)"
}}}}}}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";
var k=e.cssBefore.clip.match(/(\d+)/g);
var u=parseInt(k[0]),c=parseInt(k[1]),n=parseInt(k[2]),i=parseInt(k[3]);
e.before.push(function(w,h,t){if(w==h){return
}var d=a(w),b=a(h);
a.fn.cycle.commonReset(w,h,t,true,true,false);
t.cssAfter.display="block";
var r=1,l=parseInt((t.speedIn/13))-1;
(function v(){var y=u?u-parseInt(r*(u/l)):0;
var z=i?i-parseInt(r*(i/l)):0;
var A=n<j?n+parseInt(r*((j-n)/l||1)):j;
var x=c<q?c+parseInt(r*((q-c)/l||1)):q;
b.css({clip:"rect("+y+"px "+x+"px "+A+"px "+z+"px)"});
(r++<=l)?setTimeout(v,13):d.css("display","none")
})()
});
e.cssBefore={display:"block",opacity:1,top:0,left:0};
e.animIn={left:0};
e.animOut={left:0}
}
})(jQuery);(function(window,undefined){var S={version:"3.0.3"};
var ua=navigator.userAgent.toLowerCase();
if(ua.indexOf("windows")>-1||ua.indexOf("win32")>-1){S.isWindows=true
}else{if(ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1){S.isMac=true
}else{if(ua.indexOf("linux")>-1){S.isLinux=true
}}}S.isIE=ua.indexOf("msie")>-1;
S.isIE6=ua.indexOf("msie 6")>-1;
S.isIE7=ua.indexOf("msie 7")>-1;
S.isGecko=ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1;
S.isWebKit=ua.indexOf("applewebkit/")>-1;
var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;
var open=false,initialized=false,lastOptions={},slideDelay=0,slideStart,slideTimer;
S.current=-1;
S.dimensions=null;
S.ease=function(state){return 1+Math.pow(state-1,3)
};
S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};
S.gallery=[];
S.onReady=noop;
S.path=null;
S.player=null;
S.playerId="sb-player";
S.options={animate:true,animateFade:true,autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};
S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null
};
S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)
};
S.isOpen=function(){return open
};
S.isPaused=function(){return slideTimer=="pause"
};
S.applyOptions=function(options){lastOptions=apply({},S.options);
apply(S.options,options)
};
S.revertOptions=function(){apply(S.options,lastOptions)
};
S.init=function(options,callback){if(initialized){return
}initialized=true;
if(S.skin.options){apply(S.options,S.skin.options)
}if(options){apply(S.options,options)
}if(!S.path){var path,scripts=document.getElementsByTagName("script");
for(var i=0,len=scripts.length;
i<len;
++i){path=scriptPath.exec(scripts[i].src);
if(path){S.path=path[1];
break
}}}if(callback){S.onReady=callback
}bindLoad()
};
S.open=function(obj){if(open){return
}var gc=S.makeGallery(obj);
S.gallery=gc[0];
S.current=gc[1];
obj=S.getCurrent();
if(obj==null){return
}S.applyOptions(obj.options||{});
filterGallery();
if(S.gallery.length){obj=S.getCurrent();
if(S.options.onOpen(obj)===false){return
}open=true;
S.skin.onOpen(obj,load)
}};
S.close=function(){if(!open){return
}open=false;
if(S.player){S.player.remove();
S.player=null
}if(typeof slideTimer=="number"){clearTimeout(slideTimer);
slideTimer=null
}slideDelay=0;
listenKeys(false);
S.options.onClose(S.getCurrent());
S.skin.onClose();
S.revertOptions()
};
S.play=function(){if(!S.hasNext()){return
}if(!slideDelay){slideDelay=S.options.slideshowDelay*1000
}if(slideDelay){slideStart=now();
slideTimer=setTimeout(function(){slideDelay=slideStart=0;
S.next()
},slideDelay);
if(S.skin.onPlay){S.skin.onPlay()
}}};
S.pause=function(){if(typeof slideTimer!="number"){return
}slideDelay=Math.max(0,slideDelay-(now()-slideStart));
if(slideDelay){clearTimeout(slideTimer);
slideTimer="pause";
if(S.skin.onPause){S.skin.onPause()
}}};
S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);
if(!(index in S.gallery)){return
}}else{return
}}S.current=index;
if(typeof slideTimer=="number"){clearTimeout(slideTimer);
slideTimer=null;
slideDelay=slideStart=0
}S.options.onChange(S.getCurrent());
load(true)
};
S.next=function(){S.change(S.current+1)
};
S.previous=function(){S.change(S.current-1)
};
S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;
var extraHeight=2*padding+topBottom;
if(height+extraHeight>maxHeight){height=maxHeight-extraHeight
}var extraWidth=2*padding+leftRight;
if(width+extraWidth>maxWidth){width=maxWidth-extraWidth
}var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);
if(preserveAspect&&oversized){if(changeHeight>changeWidth){width=Math.round((originalWidth/originalHeight)*height)
}else{if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width)
}}}S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};
return S.dimensions
};
S.makeGallery=function(obj){var gallery=[],current=-1;
if(typeof obj=="string"){obj=[obj]
}if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o
}else{gallery[i]={content:o}
}});
current=0
}else{if(obj.tagName){var cacheObj=S.getCache(obj);
obj=cacheObj?cacheObj:S.makeObject(obj)
}if(obj.gallery){gallery=[];
var o;
for(var key in S.cache){o=S.cache[key];
if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content){current=gallery.length
}gallery.push(o)
}}if(current==-1){gallery.unshift(obj);
current=0
}}else{gallery=[obj];
current=0
}}each(gallery,function(i,o){gallery[i]=apply({},o)
});
return[gallery,current]
};
S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};
if(options){options=apply({},options);
each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];
delete options[o]
}});
obj.options=options
}else{obj.options={}
}if(!obj.player){obj.player=S.getPlayer(obj.content)
}var rel=link.getAttribute("rel");
if(rel){var match=rel.match(galleryName);
if(match){obj.gallery=escape(match[2])
}each(rel.split(";"),function(i,p){match=p.match(inlineParam);
if(match){obj[match[1]]=match[2]
}})
}return obj
};
S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0){return"inline"
}var q=content.indexOf("?");
if(q>-1){content=content.substring(0,q)
}var ext,m=content.match(fileExtension);
if(m){ext=m[0].toLowerCase()
}if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1){return"img"
}if(S.swf&&S.swf.ext.indexOf(ext)>-1){return"swf"
}if(S.flv&&S.flv.ext.indexOf(ext)>-1){return"flv"
}if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp"
}else{return"qt"
}}if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"wmp"
}}return"iframe"
};
function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;
for(var i=0;
i<S.gallery.length;
++i){obj=S.gallery[i];
remove=false;
needed=null;
switch(obj.player){case"flv":case"swf":if(!plugins.fla){needed="fla"
}break;
case"qt":if(!plugins.qt){needed="qt"
}break;
case"wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt"
}else{needed="qtf4m"
}}else{if(!plugins.wmp){needed="wmp"
}}break;
case"qtwmp":if(plugins.qt){obj.player="qt"
}else{if(plugins.wmp){obj.player="wmp"
}else{needed="qtwmp"
}}break
}if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case"qtf4m":format="shared";
replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];
break;
case"qtwmp":format="either";
replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];
break;
default:format="single";
replace=[err[needed].url,err[needed].name]
}obj.player="html";
obj.content='<div class="sb-message">'+sprintf(S.lang.errors[format],replace)+"</div>"
}else{remove=true
}}else{if(obj.player=="inline"){m=inlineId.exec(obj.content);
if(m){inlineEl=get(m[1]);
if(inlineEl){obj.content=inlineEl.innerHTML
}else{remove=true
}}else{remove=true
}}else{if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;
if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;
obj.height=177
}}}}if(remove){S.gallery.splice(i,1);
if(i<S.current){--S.current
}else{if(i==S.current){S.current=i>0?i-1:i
}}--i
}}}function listenKeys(on){if(!S.options.enableKeys){return
}(on?addEvent:removeEvent)(document,"keydown",handleKey)
}function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey){return
}var code=keyCode(e),handler;
switch(code){case 81:case 88:case 27:handler=S.close;
break;
case 37:handler=S.previous;
break;
case 39:handler=S.next;
break;
case 32:handler=typeof slideTimer=="number"?S.pause:S.play;
break
}if(handler){preventDefault(e);
handler()
}}function load(changing){listenKeys(false);
var obj=S.getCurrent();
var player=(obj.player=="inline"?"html":obj.player);
if(typeof S[player]!="function"){throw"unknown player "+player
}if(changing){S.player.remove();
S.revertOptions();
S.applyOptions(obj.options||{})
}S.player=new S[player](obj,S.playerId);
if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];
if(next.player=="img"){var a=new Image();
a.src=next.content
}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];
if(prev.player=="img"){var b=new Image();
b.src=prev.content
}}S.skin.onLoad(changing,waitReady)
}function waitReady(){if(!open){return
}if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);
timer=null;
S.skin.onReady(show)
}}else{clearInterval(timer);
timer=null
}},10)
}else{S.skin.onReady(show)
}}function show(){if(!open){return
}S.player.append(S.skin.body,S.dimensions);
S.skin.onShow(finish)
}function finish(){if(!open){return
}if(S.player.onLoad){S.player.onLoad()
}S.options.onFinish(S.getCurrent());
if(!S.isPaused()){S.play()
}listenKeys(true)
}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;
from=from||0;
if(from<0){from+=len
}for(;
from<len;
++from){if(from in this&&this[from]===obj){return from
}}return -1
}
}function now(){return(new Date).getTime()
}function apply(original,extension){for(var property in extension){original[property]=extension[property]
}return original
}function each(obj,callback){var i=0,len=obj.length;
for(var value=obj[0];
i<len&&callback.call(value,i,value)!==false;
value=obj[++i]){}}function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i]
})
}function noop(){}function get(id){return document.getElementById(id)
}function remove(el){el.parentNode.removeChild(el)
}var supportsOpacity=true,supportsFixed=true;
function checkSupport(){var body=document.body,div=document.createElement("div");
supportsOpacity=typeof div.style.opacity==="string";
div.style.position="fixed";
div.style.margin=0;
div.style.top="20px";
body.appendChild(div,body.firstChild);
supportsFixed=div.offsetTop==20;
body.removeChild(div)
}S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;
return function(el,style){var ret;
if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";
return ret===""?"1":ret
}if(getComputedStyle){var computedStyle=getComputedStyle(el,null);
if(computedStyle){ret=computedStyle[style]
}if(style=="opacity"&&ret==""){ret="1"
}}else{ret=el.currentStyle[style]
}return ret
}
})();
S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html)
}else{if(el.lastChild){var range=el.ownerDocument.createRange();
range.setStartAfter(el.lastChild);
var frag=range.createContextualFragment(html);
el.appendChild(frag)
}else{el.innerHTML=html
}}};
S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+dimension]
}return document.body["client"+dimension]
};
S.setOpacity=function(el,opacity){var style=el.style;
if(supportsOpacity){style.opacity=(opacity==1?"":opacity)
}else{style.zoom=1;
if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter)){style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")
}}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(opacity*100)+")"
}}};
S.clearOpacity=function(el){S.setOpacity(el,1)
};
function getTarget(e){return e.target
}function getPageXY(e){return[e.pageX,e.pageY]
}function preventDefault(e){e.preventDefault()
}function keyCode(e){return e.keyCode
}function addEvent(el,type,handler){jQuery(el).bind(type,handler)
}function removeEvent(el,type,handler){jQuery(el).unbind(type,handler)
}jQuery.fn.shadowbox=function(options){return this.each(function(){var el=jQuery(this);
var opts=jQuery.extend({},options||{},jQuery.metadata?el.metadata():jQuery.meta?el.data():{});
var cls=this.className||"";
opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;
opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;
Shadowbox.setup(el,opts)
})
};
var loaded=false,DOMContentLoaded;
if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);
S.load()
}
}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);
S.load()
}}
}}function doScrollCheck(){if(loaded){return
}try{document.documentElement.doScroll("left")
}catch(e){setTimeout(doScrollCheck,1);
return
}S.load()
}function bindLoad(){if(document.readyState==="complete"){return S.load()
}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);
window.addEventListener("load",S.load,false)
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);
window.attachEvent("onload",S.load);
var topLevel=false;
try{topLevel=window.frameElement===null
}catch(e){}if(document.documentElement.doScroll&&topLevel){doScrollCheck()
}}}}S.load=function(){if(loaded){return
}if(!document.body){return setTimeout(S.load,13)
}loaded=true;
checkSupport();
S.onReady();
if(!S.options.skipSetup){S.setup()
}S.skin.init()
};
S.plugins={};
if(navigator.plugins&&navigator.plugins.length){var names=[];
each(navigator.plugins,function(i,p){names.push(p.name)
});
names=names.join(",");
var f4m=names.indexOf("Flip4Mac")>-1;
S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}
}else{var detectPlugin=function(name){var axo;
try{axo=new ActiveXObject(name)
}catch(e){}return !!axo
};
S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}
}var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;
S.cache={};
S.select=function(selector){var links=[];
if(!selector){var rel;
each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");
if(rel&&relAttr.test(rel)){links.push(el)
}})
}else{var length=selector.length;
if(length){if(typeof selector=="string"){if(S.find){links=S.find(selector)
}}else{if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find){links=S.find(selector[0],selector[1])
}}else{for(var i=0;
i<length;
++i){links[i]=selector[i]
}}}}else{links.push(selector)
}}return links
};
S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options)
})
};
S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link)
})
};
S.addCache=function(link,options){var key=link[expando];
if(key==undefined){key=cacheKey++;
link[expando]=key;
addEvent(link,"click",handleClick)
}S.cache[key]=S.makeObject(link,options)
};
S.removeCache=function(link){removeEvent(link,"click",handleClick);
delete S.cache[link[expando]];
link[expando]=null
};
S.getCache=function(link){var key=link[expando];
return(key in S.cache&&S.cache[key])
};
S.clearCache=function(){for(var key in S.cache){S.removeCache(S.cache[key].link)
}S.cache={}
};
function handleClick(e){S.open(this);
if(S.gallery.length){preventDefault(e)
}}S.find=(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;
[0,0].sort(function(){baseHasDuplicate=false;
return 0
});
var Sizzle=function(selector,context,results,seed){results=results||[];
var origContext=context=context||document;
if(context.nodeType!==1&&context.nodeType!==9){return[]
}if(!selector||typeof selector!=="string"){return results
}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;
while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];
parts.push(m[1]);
if(m[2]){extra=m[3];
break
}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)
}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);
while(parts.length){selector=parts.shift();
if(Expr.relative[selector]){selector+=parts.shift()
}set=posProcess(selector,set)
}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);
context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]
}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);
set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;
if(parts.length>0){checkSet=makeArray(set)
}else{prune=false
}while(parts.length){var cur=parts.pop(),pop=cur;
if(!Expr.relative[cur]){cur=""
}else{pop=parts.pop()
}if(pop==null){pop=context
}Expr.relative[cur](checkSet,pop,contextXML)
}}else{checkSet=parts=[]
}}if(!checkSet){checkSet=set
}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector)
}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)
}else{if(context&&context.nodeType===1){for(var i=0;
checkSet[i]!=null;
i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])
}}}else{for(var i=0;
checkSet[i]!=null;
i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])
}}}}}else{makeArray(checkSet,results)
}if(extra){Sizzle(extra,origContext,results,seed);
Sizzle.uniqueSort(results)
}return results
};
Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;
results.sort(sortOrder);
if(hasDuplicate){for(var i=1;
i<results.length;
i++){if(results[i]===results[i-1]){results.splice(i--,1)
}}}}return results
};
Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)
};
Sizzle.find=function(expr,context,isXML){var set,match;
if(!expr){return[]
}for(var i=0,l=Expr.order.length;
i<l;
i++){var type=Expr.order[i],match;
if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];
match.splice(1,1);
if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");
set=Expr.find[type](match,context,isXML);
if(set!=null){expr=expr.replace(Expr.match[type],"");
break
}}}}if(!set){set=context.getElementsByTagName("*")
}return{set:set,expr:expr}
};
Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);
while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;
anyFound=false;
if(curLoop===result){result=[]
}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);
if(!match){anyFound=found=true
}else{if(match===true){continue
}}}if(match){for(var i=0;
(item=curLoop[i])!=null;
i++){if(item){found=filter(item,match,i,curLoop);
var pass=not^!!found;
if(inplace&&found!=null){if(pass){anyFound=true
}else{curLoop[i]=false
}}else{if(pass){result.push(item);
anyFound=true
}}}}}if(found!==undefined){if(!inplace){curLoop=result
}expr=expr.replace(Expr.match[type],"");
if(!anyFound){return[]
}break
}}}if(expr===old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr
}else{break
}}old=expr
}return curLoop
};
var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")
}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;
if(isTag){part=part.toLowerCase()
}for(var i=0,l=checkSet.length,elem;
i<l;
i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part
}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)
}},">":function(checkSet,part){var isPartStr=typeof part==="string";
if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();
for(var i=0,l=checkSet.length;
i<l;
i++){var elem=checkSet[i];
if(elem){var parent=elem.parentNode;
checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false
}}}else{for(var i=0,l=checkSet.length;
i<l;
i++){var elem=checkSet[i];
if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part
}}if(isPartStr){Sizzle.filter(part,checkSet,true)
}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;
if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();
checkFn=dirNodeCheck
}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)
},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;
if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();
checkFn=dirNodeCheck
}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)
}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);
return m?[m]:[]
}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);
for(var i=0,l=results.length;
i<l;
i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])
}}return ret.length===0?null:ret
}},TAG:function(match,context){return context.getElementsByTagName(match[1])
}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";
if(isXML){return match
}for(var i=0,elem;
(elem=curLoop[i])!=null;
i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)
}}else{if(inplace){curLoop[i]=false
}}}}return false
},ID:function(match){return match[1].replace(/\\/g,"")
},TAG:function(match,curLoop){return match[1].toLowerCase()
},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);
match[2]=(test[1]+(test[2]||1))-0;
match[3]=test[3]-0
}match[0]=done++;
return match
},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");
if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]
}if(match[2]==="~="){match[4]=" "+match[4]+" "
}return match
},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)
}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);
if(!inplace){result.push.apply(result,ret)
}return false
}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true
}}return match
},POS:function(match){match.unshift(true);
return match
}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"
},disabled:function(elem){return elem.disabled===true
},checked:function(elem){return elem.checked===true
},selected:function(elem){elem.parentNode.selectedIndex;
return elem.selected===true
},parent:function(elem){return !!elem.firstChild
},empty:function(elem){return !elem.firstChild
},has:function(elem,i,match){return !!Sizzle(match[3],elem).length
},header:function(elem){return/h\d/i.test(elem.nodeName)
},text:function(elem){return"text"===elem.type
},radio:function(elem){return"radio"===elem.type
},checkbox:function(elem){return"checkbox"===elem.type
},file:function(elem){return"file"===elem.type
},password:function(elem){return"password"===elem.type
},submit:function(elem){return"submit"===elem.type
},image:function(elem){return"image"===elem.type
},reset:function(elem){return"reset"===elem.type
},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"
},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)
}},setFilters:{first:function(elem,i){return i===0
},last:function(elem,i,match,array){return i===array.length-1
},even:function(elem,i){return i%2===0
},odd:function(elem,i){return i%2===1
},lt:function(elem,i,match){return i<match[3]-0
},gt:function(elem,i,match){return i>match[3]-0
},nth:function(elem,i,match){return match[3]-0===i
},eq:function(elem,i,match){return match[3]-0===i
}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];
if(filter){return filter(elem,i,match,array)
}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0
}else{if(name==="not"){var not=match[3];
for(var i=0,l=not.length;
i<l;
i++){if(not[i]===elem){return false
}}return true
}else{throw"Syntax error, unrecognized expression: "+name
}}}},CHILD:function(elem,match){var type=match[1],node=elem;
switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false
}}if(type==="first"){return true
}node=elem;
case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false
}}return true;
case"nth":var first=match[2],last=match[3];
if(first===1&&last===0){return true
}var doneName=match[0],parent=elem.parentNode;
if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;
for(node=parent.firstChild;
node;
node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count
}}parent.sizcache=doneName
}var diff=elem.nodeIndex-last;
if(first===0){return diff===0
}else{return(diff%first===0&&diff/first>=0)
}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match
},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match
},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1
},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];
return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false
},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];
if(filter){return filter(elem,i,match,array)
}}}};
var origPOS=Expr.match.POS;
for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);
Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source)
}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);
if(results){results.push.apply(results,array);
return results
}return array
};
try{Array.prototype.slice.call(document.documentElement.childNodes,0)
}catch(e){makeArray=function(array,results){var ret=results||[];
if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)
}else{if(typeof array.length==="number"){for(var i=0,l=array.length;
i<l;
i++){ret.push(array[i])
}}else{for(var i=0;
array[i];
i++){ret.push(array[i])
}}}return ret
}
}var sortOrder;
if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true
}return a.compareDocumentPosition?-1:1
}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;
if(ret===0){hasDuplicate=true
}return ret
}
}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true
}return a.sourceIndex?-1:1
}var ret=a.sourceIndex-b.sourceIndex;
if(ret===0){hasDuplicate=true
}return ret
}
}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true
}return a.ownerDocument?-1:1
}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();
aRange.setStart(a,0);
aRange.setEnd(a,0);
bRange.setStart(b,0);
bRange.setEnd(b,0);
var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);
if(ret===0){hasDuplicate=true
}return ret
}
}}}function getText(elems){var ret="",elem;
for(var i=0;
elems[i];
i++){elem=elems[i];
if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue
}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)
}}}return ret
}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();
form.innerHTML="<a name='"+id+"'/>";
var root=document.documentElement;
root.insertBefore(form,root.firstChild);
if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);
return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]
}};
Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");
return elem.nodeType===1&&node&&node.nodeValue===match
}
}root.removeChild(form);
root=form=null
})();
(function(){var div=document.createElement("div");
div.appendChild(document.createComment(""));
if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);
if(match[1]==="*"){var tmp=[];
for(var i=0;
results[i];
i++){if(results[i].nodeType===1){tmp.push(results[i])
}}results=tmp
}return results
}
}div.innerHTML="<a href='#'></a>";
if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)
}
}div=null
})();
if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");
div.innerHTML="<p class='TEST'></p>";
if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return
}Sizzle=function(query,context,extra,seed){context=context||document;
if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)
}catch(e){}}return oldSizzle(query,context,extra,seed)
};
for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]
}div=null
})()
}(function(){var div=document.createElement("div");
div.innerHTML="<div class='test e'></div><div class='test'></div>";
if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return
}div.lastChild.className="e";
if(div.getElementsByClassName("e").length===1){return
}Expr.order.splice(1,0,"CLASS");
Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])
}};
div=null
})();
function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;
i<l;
i++){var elem=checkSet[i];
if(elem){elem=elem[dir];
var match=false;
while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];
break
}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;
elem.sizset=i
}if(elem.nodeName.toLowerCase()===cur){match=elem;
break
}elem=elem[dir]
}checkSet[i]=match
}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;
i<l;
i++){var elem=checkSet[i];
if(elem){elem=elem[dir];
var match=false;
while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];
break
}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;
elem.sizset=i
}if(typeof cur!=="string"){if(elem===cur){match=true;
break
}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;
break
}}}elem=elem[dir]
}checkSet[i]=match
}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16
}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)
};
var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;
return documentElement?documentElement.nodeName!=="HTML":false
};
var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;
while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];
selector=selector.replace(Expr.match.PSEUDO,"")
}selector=Expr.relative[selector]?selector+"*":selector;
for(var i=0,l=root.length;
i<l;
i++){Sizzle(selector,root[i],tmpSet)
}return Sizzle.filter(later,tmpSet)
};
return Sizzle
})();
S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;
var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;
if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;
if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");
playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);
playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);
playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0
}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;
try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")
}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");
playerVersion=[6,0,21];
a.AllowScriptAccess="always"
}catch(e){if(playerVersion[0]==6){fp6Crash=true
}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)
}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");
if(d){d=d.split(" ")[1].split(",");
playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]
}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}
}();
var onDomLoad=function(){if(!ua.w3cdom){return
}addDomLoadEvent(main);
if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");
script=getElementById("__ie_ondomload");
if(script){addListener(script,"onreadystatechange",checkReadyState)
}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()
}},10)
}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)
}addLoadEvent(callDomLoadFunctions)
}();
function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);
callDomLoadFunctions()
}}function callDomLoadFunctions(){if(isDomLoaded){return
}if(ua.ie&&ua.win){var s=createElement("span");
try{var t=doc.getElementsByTagName("body")[0].appendChild(s);
t.parentNode.removeChild(t)
}catch(e){return
}}isDomLoaded=true;
if(timer){clearInterval(timer);
timer=null
}var dl=domLoadFnArr.length;
for(var i=0;
i<dl;
i++){domLoadFnArr[i]()
}}function addDomLoadEvent(fn){if(isDomLoaded){fn()
}else{domLoadFnArr[domLoadFnArr.length]=fn
}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)
}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)
}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)
}else{if(typeof win.onload=="function"){var fnOld=win.onload;
win.onload=function(){fnOld();
fn()
}
}else{win.onload=fn
}}}}}function main(){var rl=regObjArr.length;
for(var i=0;
i<rl;
i++){var id=regObjArr[i].id;
if(ua.pv[0]>0){var obj=getElementById(id);
if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";
regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";
if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)
}setVisibility(id,true)
}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])
}else{displayAltContent(obj)
}}}}else{setVisibility(id,true)
}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];
if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;
if(a){var al=a.length;
for(var i=0;
i<al;
i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)
}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)
}}}var c=nestedObj.childNodes;
if(c){var cl=c.length;
for(var j=0;
j<cl;
j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))
}}}obj.parentNode.replaceChild(e,obj)
}}function showExpressInstall(regObj){isExpressInstallActive=true;
var obj=getElementById(regObj.id);
if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);
if(ac){storedAltContent=ac;
storedAltContentId=regObj.altContentId
}}else{storedAltContent=abstractAltContent(obj)
}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"
}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"
}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";
var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;
if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");
replaceId+="SWFObjectNew";
newObj.setAttribute("id",replaceId);
obj.parentNode.insertBefore(newObj,obj);
obj.style.display="none";
var fn=function(){obj.parentNode.removeChild(obj)
};
addListener(win,"onload",fn)
}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)
}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");
obj.parentNode.insertBefore(el,obj);
el.parentNode.replaceChild(abstractAltContent(obj),el);
obj.style.display="none";
var fn=function(){obj.parentNode.removeChild(obj)
};
addListener(win,"onload",fn)
}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)
}}function abstractAltContent(obj){var ac=createElement("div");
if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML
}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];
if(nestedObj){var c=nestedObj.childNodes;
if(c){var cl=c.length;
for(var i=0;
i<cl;
i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))
}}}}}return ac
}function createSWF(attObj,parObj,id){var r,el=getElementById(id);
if(el){if(typeof attObj.id==UNDEF){attObj.id=id
}if(ua.ie&&ua.win){var att="";
for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]
}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'
}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'
}}}}}var par="";
for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'
}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";
objIdArr[objIdArr.length]=attObj.id;
r=getElementById(attObj.id)
}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");
e.setAttribute("type",FLASH_MIME_TYPE);
for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])
}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])
}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])
}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])
}}}el.parentNode.replaceChild(e,el);
r=e
}else{var o=createElement(OBJECT);
o.setAttribute("type",FLASH_MIME_TYPE);
for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])
}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])
}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])
}}el.parentNode.replaceChild(o,el);
r=o
}}}return r
}function createObjParam(el,pName,pValue){var p=createElement("param");
p.setAttribute("name",pName);
p.setAttribute("value",pValue);
el.appendChild(p)
}function removeSWF(id){var obj=getElementById(id);
if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)
}else{win.attachEvent("onload",function(){removeObjectInIE(id)
})
}}else{obj.parentNode.removeChild(obj)
}}}function removeObjectInIE(id){var obj=getElementById(id);
if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null
}}obj.parentNode.removeChild(obj)
}}function getElementById(id){var el=null;
try{el=doc.getElementById(id)
}catch(e){}return el
}function createElement(el){return doc.createElement(el)
}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);
listenersArr[listenersArr.length]=[target,eventType,fn]
}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");
v[0]=parseInt(v[0],10);
v[1]=parseInt(v[1],10)||0;
v[2]=parseInt(v[2],10)||0;
return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false
}function createCSS(sel,decl){if(ua.ie&&ua.mac){return
}var h=doc.getElementsByTagName("head")[0],s=createElement("style");
s.setAttribute("type","text/css");
s.setAttribute("media","screen");
if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))
}h.appendChild(s);
if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];
if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)
}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";
if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v
}else{createCSS("#"+id,"visibility:"+v)
}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;
var hasBadChars=regex.exec(s)!=null;
return hasBadChars?encodeURIComponent(s):s
}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;
for(var i=0;
i<ll;
i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])
}var il=objIdArr.length;
for(var j=0;
j<il;
j++){removeSWF(objIdArr[j])
}for(var k in ua){ua[k]=null
}ua=null;
for(var l in swfobject){swfobject[l]=null
}swfobject=null
})
}}();
return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return
}var regObj={};
regObj.id=objectIdStr;
regObj.swfVersion=swfVersionStr;
regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;
regObjArr[regObjArr.length]=regObj;
setVisibility(objectIdStr,false)
},getObjectById:function(objectIdStr){var r=null;
if(ua.w3cdom){var o=getElementById(objectIdStr);
if(o){var n=o.getElementsByTagName(OBJECT)[0];
if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o
}else{if(typeof n.SetVariable!=UNDEF){r=n
}}}}return r
},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return
}widthStr+="";
heightStr+="";
if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);
var att={};
if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]
}}}att.data=swfUrlStr;
att.width=widthStr;
att.height=heightStr;
var par={};
if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]
}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]
}else{par.flashvars=k+"="+flashvarsObj[k]
}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);
if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)
}})
}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;
setVisibility(replaceElemIdStr,false);
addDomLoadEvent(function(){var regObj={};
regObj.id=regObj.altContentId=replaceElemIdStr;
regObj.width=widthStr;
regObj.height=heightStr;
regObj.expressInstall=xiSwfUrlStr;
showExpressInstall(regObj)
})
}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}
},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)
}else{return undefined
}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)
}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)
}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;
if(param==null){return urlEncodeIfNecessary(q)
}if(q){var pairs=q.substring(1).split("&");
for(var i=0;
i<pairs.length;
i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))
}}}return""
},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);
if(obj){obj.parentNode.replaceChild(storedAltContent,obj);
if(storedAltContentId){setVisibility(storedAltContentId,true);
if(ua.ie&&ua.win){storedAltContent.style.display="block"
}}storedAltContent=null;
storedAltContentId=null;
isExpressInstallActive=false
}}}}
}();
return swfobject
})();
S.lang={code:"de",of:"von",loading:"ladend",cancel:"Abbrechen",next:"Nächste",previous:"Vorige",play:"Abspielen",pause:"Pause",close:"Schließen",errors:{single:'Um den Inhalt anzeigen zu können muss die Browser-Erweiterung <a href="{0}">{1}</a> installiert werden.',shared:'Um den Inhalt anzeigen zu können müssen die beiden Browser-Erweiterungen <a href="{0}">{1}</a> und <a href="{2}">{3}</a> installiert werden.',either:'Um den Inhalt anzeigen zu können muss eine der beiden Browser-Erweiterungen <a href="{0}">{1}</a> oder <a href="{2}">{3}</a> installiert werden.'}};
var pre,proxyId="sb-drag-proxy",dragData,dragProxy,dragTarget;
function resetDrag(){dragData={x:0,y:0,startX:null,startY:null}
}function updateProxy(){var dims=S.dimensions;
apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"})
}function enableDrag(){resetDrag();
var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");
S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');
dragProxy=get(proxyId);
updateProxy();
addEvent(dragProxy,"mousedown",startDrag)
}function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);
remove(dragProxy);
dragProxy=null
}dragTarget=null
}function startDrag(e){preventDefault(e);
var xy=getPageXY(e);
dragData.startX=xy[0];
dragData.startY=xy[1];
dragTarget=get(S.player.id);
addEvent(document,"mousemove",positionDrag);
addEvent(document,"mouseup",endDrag);
if(S.isGecko){dragProxy.style.cursor="-moz-grabbing"
}}function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);
var moveX=xy[0]-dragData.startX;
dragData.startX+=moveX;
dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);
var moveY=xy[1]-dragData.startY;
dragData.startY+=moveY;
dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);
apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"})
}function endDrag(){removeEvent(document,"mousemove",positionDrag);
removeEvent(document,"mouseup",endDrag);
if(S.isGecko){dragProxy.style.cursor="-moz-grab"
}}S.img=function(obj,id){this.obj=obj;
this.id=id;
this.ready=false;
var self=this;
pre=new Image();
pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;
self.width=obj.width?parseInt(obj.width,10):pre.width;
self.ready=true;
pre.onload=null;
pre=null
};
pre.src=obj.content
};
S.img.ext=["bmp","gif","jpg","jpeg","png"];
S.img.prototype={append:function(body,dims){var img=document.createElement("img");
img.id=this.id;
img.src=this.obj.content;
img.style.position="absolute";
var height,width;
if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;
width=dims.innerWidth
}else{height=this.height;
width=this.width
}img.setAttribute("height",height);
img.setAttribute("width",width);
body.appendChild(img)
},remove:function(){var el=get(this.id);
if(el){remove(el)
}disableDrag();
if(pre){pre.onload=null;
pre=null
}},onLoad:function(){var dims=S.dimensions;
if(dims.oversized&&S.options.handleOversize=="drag"){enableDrag()
}},onWindowResize:function(){var dims=S.dimensions;
switch(S.options.handleOversize){case"resize":var el=get(this.id);
el.height=dims.innerHeight;
el.width=dims.innerWidth;
break;
case"drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));
if(top+this.height<dims.innerHeight){dragTarget.style.top=dims.innerHeight-this.height+"px"
}if(left+this.width<dims.innerWidth){dragTarget.style.left=dims.innerWidth-this.width+"px"
}updateProxy()
}break
}}};
S.iframe=function(obj,id){this.obj=obj;
this.id=id;
var overlay=get("sb-overlay");
this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;
this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth
};
S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';
if(S.isIE){html+=' allowtransparency="true"';
if(S.isIE6){html+=" src=\"javascript:false;document.write('');\""
}}html+="></iframe>";
body.innerHTML=html
},remove:function(){var el=get(this.id);
if(el){remove(el);
if(S.isGecko){delete window.frames[this.id]
}}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];
win.location.href=this.obj.content
}};
S.html=function(obj,id){this.obj=obj;
this.id=id;
this.height=obj.height?parseInt(obj.height,10):300;
this.width=obj.width?parseInt(obj.width,10):500
};
S.html.prototype={append:function(body,dims){var div=document.createElement("div");
div.id=this.id;
div.className="html";
div.innerHTML=this.obj.content;
body.appendChild(div)
},remove:function(){var el=get(this.id);
if(el){remove(el)
}}};
S.swf=function(obj,id){this.obj=obj;
this.id=id;
this.height=obj.height?parseInt(obj.height,10):300;
this.width=obj.width?parseInt(obj.width,10):300
};
S.swf.ext=["swf"];
S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");
tmp.id=this.id;
body.appendChild(tmp);
var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;
S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)
},remove:function(){S.flash.expressInstallCallback();
S.flash.removeSWF(this.id)
},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);
el.height=dims.innerHeight;
el.width=dims.innerWidth
}};
var jwControllerHeight=20;
S.flv=function(obj,id){this.obj=obj;
this.id=id;
this.height=obj.height?parseInt(obj.height,10):300;
if(S.options.showMovieControls){this.height+=jwControllerHeight
}this.width=obj.width?parseInt(obj.width,10):300
};
S.flv.ext=["flv","m4v"];
S.flv.prototype={append:function(body,dims){var tmp=document.createElement("div");
tmp.id=this.id;
body.appendChild(tmp);
var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;
S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)
},remove:function(){S.flash.expressInstallCallback();
S.flash.removeSWF(this.id)
},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);
el.height=dims.innerHeight;
el.width=dims.innerWidth
}};
var overlayOn=false,visibilityCache=[],pngIds=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],container,overlay,wrapper,doWindowResize=true;
function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+value+"px"
};
if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);
if(callback){callback()
}return
}var from=parseFloat(S.getStyle(el,property))||0;
var delta=to-from;
if(delta==0){if(callback){callback()
}return
}duration*=1000;
var begin=now(),ease=S.ease,end=begin+duration,time;
var interval=setInterval(function(){time=now();
if(time>=end){clearInterval(interval);
interval=null;
anim(el,to);
if(callback){callback()
}}else{anim(el,from+ease((time-begin)/duration)*delta)
}},10)
}function setSize(){container.style.height=S.getWindowSize("Height")+"px";
container.style.width=S.getWindowSize("Width")+"px"
}function setPosition(){container.style.top=document.documentElement.scrollTop+"px";
container.style.left=document.documentElement.scrollLeft+"px"
}function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||""
})
}else{visibilityCache=[];
each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);
el.style.visibility="hidden"
})
})
}}function toggleNav(id,on){var el=get("sb-nav-"+id);
if(el){el.style.display=on?"":"none"
}}function toggleLoading(on,callback){var loading=get("sb-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");
if(on){S.setOpacity(loading,0);
loading.style.display="block";
var wrapped=function(){S.clearOpacity(loading);
if(callback){callback()
}};
if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped)
}else{wrapped()
}}else{var wrapped=function(){loading.style.display="none";
S.clearOpacity(loading);
if(callback){callback()
}};
if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped)
}else{wrapped()
}}}function buildBars(callback){var obj=S.getCurrent();
get("sb-title-inner").innerHTML=obj.title||"";
var close,next,play,pause,previous;
if(S.options.displayNav){close=true;
var len=S.gallery.length;
if(len>1){if(S.options.continuous){next=previous=true
}else{next=(len-1)>S.current;
previous=S.current>0
}}if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();
play=!pause
}}else{close=next=play=pause=previous=false
}toggleNav("close",close);
toggleNav("next",next);
toggleNav("play",play);
toggleNav("pause",pause);
toggleNav("previous",previous);
var counter="";
if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;
if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;
if(limit<len&&limit>2){var h=Math.floor(limit/2);
i=S.current-h;
if(i<0){i+=len
}end=S.current+(limit-h);
if(end>len){end-=len
}}while(i!=end){if(i==len){i=0
}counter+='<a onclick="Shadowbox.change('+i+');"';
if(i==S.current){counter+=' class="sb-counter-current"'
}counter+=">"+(++i)+"</a>"
}}else{counter=[S.current+1,S.lang.of,len].join(" ")
}}get("sb-counter").innerHTML=counter;
callback()
}function showBars(callback){var titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=0.35;
titleInner.style.visibility=infoInner.style.visibility="";
if(titleInner.innerHTML!=""){animate(titleInner,"marginTop",0,duration)
}animate(infoInner,"marginTop",0,duration,callback)
}function hideBars(anim,callback){var title=get("sb-title"),info=get("sb-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=(anim?0.35:0);
animate(titleInner,"marginTop",titleHeight,duration);
animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";
callback()
})
}function adjustHeight(height,top,anim,callback){var wrapperInner=get("sb-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);
animate(wrapper,"top",top,duration);
animate(wrapperInner,"height",height,duration,callback)
}function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);
animate(wrapper,"left",left,duration);
animate(wrapper,"width",width,duration,callback)
}function setDimensions(height,width){var bodyInner=get("sb-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");
return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect)
}var K={};
K.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';
K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};
K.init=function(){S.appendHTML(document.body,sprintf(K.markup,S.lang));
K.body=get("sb-body-inner");
container=get("sb-container");
overlay=get("sb-overlay");
wrapper=get("sb-wrapper");
if(!supportsFixed){container.style.position="absolute"
}if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;
each(pngIds,function(i,id){el=get(id);
if(el){m=S.getStyle(el,"backgroundImage").match(re);
if(m){el.style.backgroundImage="none";
el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+m[1]+",sizingMethod=scale);"
}}})
}var timer;
addEvent(window,"resize",function(){if(timer){clearTimeout(timer);
timer=null
}if(open){timer=setTimeout(K.onWindowResize,10)
}})
};
K.onOpen=function(obj,callback){doWindowResize=false;
container.style.display="block";
setSize();
var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);
adjustHeight(dims.innerHeight,dims.top);
adjustWidth(dims.width,dims.left);
if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;
S.setOpacity(overlay,0);
if(!S.options.modal){addEvent(overlay,"click",S.close)
}overlayOn=true
}if(!supportsFixed){setPosition();
addEvent(window,"scroll",setPosition)
}toggleTroubleElements();
container.style.visibility="visible";
if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback)
}else{callback()
}};
K.onLoad=function(changing,callback){toggleLoading(true);
while(K.body.firstChild){remove(K.body.firstChild)
}hideBars(changing,function(){if(!open){return
}if(!changing){wrapper.style.visibility="visible"
}buildBars(callback)
})
};
K.onReady=function(callback){if(!open){return
}var player=S.player,dims=setDimensions(player.height,player.width);
var wrapped=function(){showBars(callback)
};
switch(S.options.animSequence){case"hw":adjustHeight(dims.innerHeight,dims.top,true,function(){adjustWidth(dims.width,dims.left,true,wrapped)
});
break;
case"wh":adjustWidth(dims.width,dims.left,true,function(){adjustHeight(dims.innerHeight,dims.top,true,wrapped)
});
break;
default:adjustWidth(dims.width,dims.left,true);
adjustHeight(dims.innerHeight,dims.top,true,wrapped)
}};
K.onShow=function(callback){toggleLoading(false,callback);
doWindowResize=true
};
K.onClose=function(){if(!supportsFixed){removeEvent(window,"scroll",setPosition)
}removeEvent(overlay,"click",S.close);
wrapper.style.visibility="hidden";
var callback=function(){container.style.visibility="hidden";
container.style.display="none";
toggleTroubleElements(true)
};
if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback)
}else{callback()
}};
K.onPlay=function(){toggleNav("play",false);
toggleNav("pause",true)
};
K.onPause=function(){toggleNav("pause",false);
toggleNav("play",true)
};
K.onWindowResize=function(){if(!doWindowResize){return
}setSize();
var player=S.player,dims=setDimensions(player.height,player.width);
adjustWidth(dims.width,dims.left);
adjustHeight(dims.innerHeight,dims.top);
if(player.onWindowResize){player.onWindowResize()
}};
S.skin=K;
window.Shadowbox=S
})(window);function ajaxedForm(e,d){this.formId=e;
var b=$("#"+e+" #submit").attr("value");
var c=new Object();
var a=d;
$("#"+e+"_flash_box").hide();
$("#"+e).ajaxForm({dataType:"json",beforeSubmit:function(g,f){f.find("#submit").attr("value","sending");
return true
},success:function(i,h,j,g){g.find("#submit").attr("value",b);
g.find("input").removeClass("error").removeAttr("title");
c=new Object();
if(i.status=="formerror"){var f=null;
for(field in i.errorfields){if(f==null){f=field
}for(validator in i.errorfields[field]){c[field]=i.errorfields[field][validator];
g.find("#"+field).addClass("error");
g.find("#"+field).attr("title",i.errorfields[field][validator]);
break
}}if(f!==null){g.find("#"+f).focus()
}g.find("input[title]").tooltip({position:"center right",offset:[-2,10],effect:"fade",opacity:0.7,onBeforeShow:function(k){$(k.currentTarget.getTip()).text(c[this.getTrigger()[0].id]);
return(this.getTrigger().hasClass("error"))
}});
if(f!==null){g.find("#"+f).focus()
}}else{if(i.status=="error"){alert(i.message)
}else{if(a){a()
}}}}})
};var hassubsClass="menu-left";
$(document).ready(function(){$("."+hassubsClass+" li").each(function(){var a=$(this).find("ul");
if(a.length>0){$(this).addClass("hassubs")
}})
});$(document).ready(function(){if(window.opera){if($("a.jqbookmark").attr("rel")!=""){$("a.jqbookmark").attr("rel","sidebar")
}}$("a.jqbookmark").click(function(b){b.preventDefault();
var a=this.href;
var c=this.title;
if(window.sidebar){window.sidebar.addPanel(c,a,"")
}else{if(window.external){window.external.AddFavorite(a,c)
}else{if(window.opera){return false
}else{alert("Unfortunately, this browser does not support the requested action, please bookmark this page manually.")
}}}})
});var fallback="Servicehotline.png";
var regionen=new Array();
regionen[1]={label:"Region West: 0512/567500",img:"Servicehotline_mark3.png"};
regionen[2]={label:"Region Ost: 02742/70500",img:"Servicehotline_mark1.png"};
regionen[3]={label:"Region Süd: 0316/210",img:"Servicehotline_mark2.png"};
function showRegion(b){var a=$("#regionentext");
a.html(regionen[b].label);
$("#regionenimg").attr("src",baseUrl+"/assets/css/img/"+regionen[b].img)
}function hideRegion(){}$(document).ready(function(){$("#regionenimg").css({position:"relative"});
$("#regionenmask").css({position:"absolute",top:"0px",left:"0px"})
});$(document).ready(function(){$(".tab_content").hide();
$("ul.tabs li:first").addClass("active").show();
$(".tab_content:first").show();
$("ul.tabs li").click(function(){$("ul.tabs li").removeClass("active");
$(this).addClass("active");
$(".tab_content").hide();
var a=$(this).find("a").attr("href");
$(a).fadeIn();
return false
})
});$(document).ready(function(){$(".tip").tooltip({relative:true,effect:"fade",position:"bottom right"})
});$(document).ready(function(){$("#neue-eingabe").click(function(){$("#change-amount").scrollTo("#amount-form",200)
})
});(function($){var supportedCSS,styles=document.getElementsByTagName("head")[0].style,toCheck="transformProperty WebkitTransform OTransform msTransform".split(" ");
for(var a=0;
a<toCheck.length;
a++){if(styles[toCheck[a]]!==undefined){supportedCSS=toCheck[a]
}}var IE=eval('"v"=="\v"');
jQuery.fn.extend({ImageRotate:function(parameters){if(this.Wilq32&&this.Wilq32.PhotoEffect){return
}var paramClone=$.extend(true,{},parameters);
return(new Wilq32.PhotoEffect(this.get(0),paramClone))._temp
},rotate:function(parameters){if(this.length===0||typeof parameters=="undefined"){return
}if(typeof parameters=="number"){parameters={angle:parameters}
}var returned=[];
for(var i=0,i0=this.length;
i<i0;
i++){var element=this.get(i);
if(typeof element.Wilq32=="undefined"){returned.push($($(element).ImageRotate(parameters)))
}else{element.Wilq32.PhotoEffect._rotate(parameters.angle)
}}return returned
},rotateAnimation:function(parameters){if(this.length===0||typeof parameters=="undefined"){return
}if(typeof parameters=="number"){parameters={animateAngle:parameters}
}var returned=[];
for(var i=0,i0=this.length;
i<i0;
i++){var element=this.get(i);
if(typeof element.Wilq32=="undefined"){returned.push($($(element).ImageRotate(parameters)))
}else{element.Wilq32.PhotoEffect.rotateAnimation(parameters)
}}return returned
}});
Wilq32=window.Wilq32||{};
Wilq32.PhotoEffect=(function(){function setupParameters(img,parameters){this._img=img;
this._parameters=parameters||{};
this._parameters.angle=this._angle=parameters.angle||0;
this._parameters.animateAngle=typeof parameters.animateAngle=="number"?parameters.animateAngle:this._angle;
this._parameters.easing=parameters.easing||function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b
};
this._parameters.duration=parameters.duration||1000
}if(supportedCSS){return function(img,parameters){setupParameters.call(this,img,parameters);
img.Wilq32={PhotoEffect:this};
this._temp=this._img;
this._BindEvents(img,this._parameters.bind);
this._rotate(this._parameters.angle);
if(this._parameters.angle!=this._parameters.animateAngle){this.rotateAnimation(this._parameters)
}}
}else{return function(img,parameters){setupParameters.call(this,img,parameters);
this._parameters.className=img.className;
this._parameters.id=img.getAttribute("id");
this._temp=document.createElement("span");
this._temp.style.display="inline-block";
this._temp.Wilq32={PhotoEffect:this};
img.parentNode.insertBefore(this._temp,img);
if(img.complete){this._Loader()
}else{var self=this;
jQuery(this._img).bind("load",function(){self._Loader()
})
}}
}})();
Wilq32.PhotoEffect.prototype={rotateAnimation:function(parameters){this._parameters.animateAngle=parameters.animateAngle;
this._parameters.callback=parameters.callback||this._parameters.callback||function(){};
this._animateStart()
},_BindEvents:function(element,events){if(events){for(var a in events){if(events.hasOwnProperty(a)){for(var b in events[a]){if(events[a].hasOwnProperty(b)){jQuery(element).bind(b,events[a][b])
}}}}}},_Loader:(function(){if(IE){return function(){var width=this._img.width;
var height=this._img.height;
this._img.parentNode.removeChild(this._img);
this._vimage=this.createVMLNode("image");
this._vimage.src=this._img.src;
this._vimage.style.height=height+"px";
this._vimage.style.width=width+"px";
this._vimage.style.position="absolute";
this._vimage.style.top="0px";
this._vimage.style.left="0px";
this._container=this.createVMLNode("group");
this._container.style.width=width;
this._container.style.height=height;
this._container.style.position="absolute";
this._container.setAttribute("coordsize",width-1+","+(height-1));
this._container.appendChild(this._vimage);
this._temp.appendChild(this._container);
this._temp.style.position="relative";
this._temp.style.width=width+"px";
this._temp.style.height=height+"px";
this._temp.setAttribute("id",this._parameters.id);
this._temp.className=this._parameters.className;
this._BindEvents(this._temp,this._parameters.bind);
_finally.call(this)
}
}else{return function(){this._temp.setAttribute("id",this._parameters.id);
this._temp.className=this._parameters.className;
this._width=this._img.width;
this._height=this._img.height;
this._widthHalf=this._width/2;
this._heightHalf=this._height/2;
var _widthMax=Math.sqrt((this._height)*(this._height)+(this._width)*(this._width));
this._widthAdd=_widthMax-this._width;
this._heightAdd=_widthMax-this._height;
this._widthAddHalf=this._widthAdd/2;
this._heightAddHalf=this._heightAdd/2;
this._img.parentNode.removeChild(this._img);
this._aspectW=((parseInt(this._img.style.width,10))||this._width)/this._img.width;
this._aspectH=((parseInt(this._img.style.height,10))||this._height)/this._img.height;
this._canvas=document.createElement("canvas");
this._canvas.setAttribute("width",this._width);
this._canvas.style.position="relative";
this._canvas.style.left=-this._widthAddHalf+"px";
this._canvas.style.top=-this._heightAddHalf+"px";
this._canvas.Wilq32=this._temp.Wilq32;
this._temp.appendChild(this._canvas);
this._temp.style.width=this._width+"px";
this._temp.style.height=this._height+"px";
this._BindEvents(this._canvas,this._parameters.bind);
this._cnv=this._canvas.getContext("2d");
_finally.call(this)
}
}function _finally(){this._rotate(this._parameters.angle);
if(this._parameters.angle!=this._parameters.animateAngle){this.rotateAnimation(this._parameters)
}}})(),_animateStart:function(){if(this._timer){clearTimeout(this._timer)
}this._animateStartTime=+new Date;
this._animateStartAngle=this._angle;
this._animate()
},_animate:function(){var actualTime=+new Date;
var checkEnd=actualTime-this._animateStartTime>this._parameters.duration;
if(this._parameters.callback&&checkEnd){this._parameters.callback()
}if(checkEnd&&!this._parameters.animatedGif){clearTimeout(this._timer)
}else{if(this._canvas||this._vimage||this._img){this._angle=this._parameters.easing(0,actualTime-this._animateStartTime,this._animateStartAngle,this._parameters.animateAngle-this._animateStartAngle,this._parameters.duration);
this._rotate((~~(this._angle*10))/10)
}var self=this;
this._timer=setTimeout(function(){self._animate.call(self)
},10)
}},_rotate:(function(){var rad=Math.PI/180;
if(IE){return function(angle){this._container.style.rotation=angle+"deg"
}
}else{if(supportedCSS){return function(angle){this._img.style[supportedCSS]="rotate("+angle+"deg)"
}
}else{return function(angle){if(!this._img.width||typeof angle!="number"){return
}angle=(angle%360)*rad;
this._canvas.width=this._width+this._widthAdd;
this._canvas.height=this._height+this._heightAdd;
this._cnv.translate(this._widthAddHalf,this._heightAddHalf);
this._cnv.translate(this._widthHalf,this._heightHalf);
this._cnv.rotate(angle);
this._cnv.translate(-this._widthHalf,-this._heightHalf);
this._cnv.scale(this._aspectW,this._aspectH);
this._cnv.drawImage(this._img,0,0)
}
}}})()};
if(IE){Wilq32.PhotoEffect.prototype.createVMLNode=(function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");
try{!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml");
return function(tagName){return document.createElement("<rvml:"+tagName+' class="rvml">')
}
}catch(e){return function(tagName){return document.createElement("<"+tagName+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')
}
}})()
}})(jQuery);$(document).ready(function(){var b=$("#powerbuy-arrow");
var c=parseFloat(b.attr("rel"));
$("#powerbuy-arrow").rotate(c);
var a=$("ul#powerbuy-legend li");
$("ul#powerbuy-legend li").css({width:440/a.length+"px"})
});$(document).ready(function(){var a=$("#timelimit");
$("#von").change(function(){a.submit()
});
$("#bis").change(function(){a.submit()
})
});
