(function(z,v){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Pa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,e,f,i){var j=a.length;if(typeof b==="object"){for(var n in b)X(a,n,b[n],e,f,d);return a}if(d!==v){e=!i&&e&&c.isFunction(d);for(n=0;n<j;n++)f(a[n],b,e?d.call(a[n],n,f(a[n],b)):d,i);return a}return j?
f(a[0],b):v}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],e=[],f=arguments,i,j,n,l,o,r;j=c.data(this,"events");if(!(a.liveFired===this||!j||!j.live||a.button&&a.type==="click")){a.liveFired=this;var w=j.live.slice(0);for(l=0;l<w.length;l++){j=w[l];j.origType.replace(O,"")===a.type?e.push(j.selector):w.splice(l--,1)}i=c(a.target).closest(e,a.currentTarget);o=0;for(r=
i.length;o<r;o++)for(l=0;l<w.length;l++){j=w[l];if(i[o].selector===j.selector){n=i[o].elem;e=null;if(j.preType==="mouseenter"||j.preType==="mouseleave")e=c(a.relatedTarget).closest(j.selector)[0];if(!e||e!==n)d.push({elem:n,handleObj:j})}}o=0;for(r=d.length;o<r;o++){i=d[o];a.currentTarget=i.elem;a.data=i.handleObj.data;a.handleObj=i.handleObj;if(i.handleObj.origHandler.apply(i.elem,f)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function qa(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,e);if(e=e&&e.events){delete f.handle;f.events={};for(var i in e)for(var j in e[i])c.event.add(this,i,e[i][j],e[i][j].data)}}})}function ra(a,b,d){var e,f,i;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!sa.test(a[0])&&(c.support.checkClone||!ta.test(a[0]))){f=true;if(i=c.fragments[a[0]])if(i!==1)e=i}if(!e){e=b.createDocumentFragment();
c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=i?e:1;return{fragment:e,cacheable:f}}function K(a,b){var d={};c.each(ua.concat.apply([],ua.slice(0,b)),function(){d[this]=a});return d}function va(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Qa=z.jQuery,Ra=z.$,s=z.document,T,Sa=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ta=/^.[^:#\[\.,]*$/,Ua=/\S/,Va=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Wa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,
wa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,xa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Sa.exec(a))&&(d[1]||!b))if(d[1]){e=b?b.ownerDocument||b:s;if(a=Wa.exec(a))if(c.isPlainObject(b)){a=
[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[e.createElement(a[1])];else{a=ra([d[1]],[e]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);
if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var e=c();c.isArray(a)?ba.apply(e,a):c.merge(e,a);e.prevObject=this;e.context=this.context;if(b==="find")e.selector=this.selector+(this.selector?" ":"")+d;else if(b)e.selector=this.selector+
"."+b+"("+d+")";return e},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||
c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,e=false,f,i,j,n;if(typeof a==="boolean"){e=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((f=arguments[b])!=null)for(i in f){j=a[i];n=f[i];if(a!==n)if(e&&n&&(c.isPlainObject(n)||c.isArray(n))){j=j&&(c.isPlainObject(j)||c.isArray(j))?j:c.isArray(n)?[]:{};a[i]=c.extend(e,j,n)}else if(n!==v)a[i]=
n}return a};c.extend({noConflict:function(a){z.$=Ra;if(a)z.jQuery=Qa;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!wa){wa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",L,false);z.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",
L);z.attachEvent("onload",c.ready);var a=false;try{a=z.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return z.JSON&&z.JSON.parse?z.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Ua.test(a)){var b=s.getElementsByTagName("head")[0]||
s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var e,f=0,i=a.length,j=i===v||c.isFunction(a);if(d)if(j)for(e in a){if(b.apply(a[e],d)===false)break}else for(;f<i;){if(b.apply(a[f++],d)===false)break}else if(j)for(e in a){if(b.call(a[e],e,a[e])===false)break}else for(d=
a[0];f<i&&b.call(d,f,d)!==false;d=a[++f]);return a},trim:function(a){return(a||"").replace(Va,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,e=b.length;d<e;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,e=0;if(typeof b.length==="number")for(var f=b.length;e<f;e++)a[d++]=b[e];else for(;b[e]!==
v;)a[d++]=b[e++];a.length=d;return a},grep:function(a,b,d){for(var e=[],f=0,i=a.length;f<i;f++)!d!==!b(a[f],f)&&e.push(a[f]);return e},map:function(a,b,d){for(var e=[],f,i=0,j=a.length;i<j;i++){f=b(a[i],i,d);if(f!=null)e[e.length]=f}return e.concat.apply([],e)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=v}else if(b&&!c.isFunction(b)){d=b;b=v}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},
uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=true;if(xa)c.inArray=function(a,b){return xa.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",
L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),e="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!f||!f.length||!i)){c.support=
{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+e+"=1;"))}catch(j){}a.insertBefore(b,a.firstChild);if(z[e]){c.support.scriptEval=true;delete z[e]}try{delete b.test}catch(n){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function l(){c.support.noCloneEvent=false;d.detachEvent("onclick",l)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");
d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var l=s.createElement("div");l.style.width=l.style.paddingLeft="1px";s.body.appendChild(l);c.boxModel=c.support.boxModel=l.offsetWidth===2;s.body.removeChild(l).style.display="none"});a=function(l){var o=s.createElement("div");l="on"+l;var r=l in o;if(!r){o.setAttribute(l,"return;");r=typeof o[l]===
"function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=i=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Xa=0,ya={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=
a==z?ya:a;var e=a[G],f=c.cache;if(!e&&typeof b==="string"&&d===v)return null;e||(e=++Xa);if(typeof b==="object"){a[G]=e;f[e]=c.extend(true,{},b)}else if(!f[e]){a[G]=e;f[e]={}}a=f[e];if(d!==v)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?ya:a;var d=a[G],e=c.cache,f=e[d];if(b){if(f){delete f[b];c.isEmptyObject(f)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);
delete e[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===v){var e=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(e===v&&this.length)e=c.data(this[0],a);return e===v&&d[1]?this.data(d[0]):e}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,
a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===v)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,
a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var za=/[\n\t]/g,ca=/\s+/,Ya=/\r/g,Za=/href|src|style/,$a=/(button|input)/i,ab=/(button|input|object|select|textarea)/i,bb=/^(a|area)$/i,Aa=/radio|checkbox/;c.fn.extend({attr:function(a,
b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(o){var r=c(this);r.addClass(a.call(this,o,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1)if(f.className){for(var i=" "+f.className+" ",j=f.className,n=0,l=b.length;n<l;n++)if(i.indexOf(" "+b[n]+" ")<
0)j+=" "+b[n];f.className=c.trim(j)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(l){var o=c(this);o.removeClass(a.call(this,l,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(ca),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var i=(" "+f.className+" ").replace(za," "),j=0,n=b.length;j<n;j++)i=i.replace(" "+b[j]+" "," ");f.className=c.trim(i)}else f.className=""}return this},toggleClass:function(a,
b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var i=c(this);i.toggleClass(a.call(this,f,i.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,i=0,j=c(this),n=b,l=a.split(ca);f=l[i++];){n=e?n:!j.hasClass(f);j[n?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=
" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(za," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,e=[],f=b.options;b=b.type==="select-one";if(d<0)return null;var i=b?d:0;for(d=b?d+1:f.length;i<d;i++){var j=f[i];if(j.selected){a=c(j).val();if(b)return a;e.push(a)}}return e}if(Aa.test(b.type)&&
!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ya,"")}return v}var n=c.isFunction(a);return this.each(function(l){var o=c(this),r=a;if(this.nodeType===1){if(n)r=a.call(this,l,o.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Aa.test(this.type))this.checked=c.inArray(o.val(),r)>=0;else if(c.nodeName(this,"select")){var w=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),w)>=0});if(!w.length)this.selectedIndex=
-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return v;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==v;b=e&&c.props[b]||b;if(a.nodeType===1){var i=Za.test(b);if(b in a&&e&&!i){if(f){b==="type"&&$a.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;
if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:ab.test(a.nodeName)||bb.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&e&&i?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,d)}});var O=/\.(.*)$/,cb=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,e){if(!(a.nodeType===
3||a.nodeType===8)){if(a.setInterval&&a!==z&&!a.frameElement)a=z;var f,i;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(i=c.data(a)){var j=i.events=i.events||{},n=i.handle;if(!n)i.handle=n=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(n.elem,arguments):v};n.elem=a;b=b.split(" ");for(var l,o=0,r;l=b[o++];){i=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();i.namespace=r.slice(0).sort().join(".")}else{r=[];i.namespace=
""}i.type=l;i.guid=d.guid;var w=j[l],A=c.event.special[l]||{};if(!w){w=j[l]=[];if(!A.setup||A.setup.call(a,e,r,n)===false)if(a.addEventListener)a.addEventListener(l,n,false);else a.attachEvent&&a.attachEvent("on"+l,n)}if(A.add){A.add.call(a,i);if(!i.handler.guid)i.handler.guid=d.guid}w.push(i);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){var f,i=0,j,n,l,o,r,w,A=c.data(a),C=A&&A.events;if(A&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b===
"string"&&b.charAt(0)==="."){b=b||"";for(f in C)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[i++];){o=f;j=f.indexOf(".")<0;n=[];if(!j){n=f.split(".");f=n.shift();l=RegExp("(^|\\.)"+c.map(n.slice(0).sort(),cb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[f])if(d){o=c.event.special[f]||{};for(B=e||0;B<r.length;B++){w=r[B];if(d.guid===w.guid){if(j||l.test(w.namespace)){e==null&&r.splice(B--,1);o.remove&&o.remove.call(a,w)}if(e!=null)break}}if(r.length===0||e!=null&&r.length===1){if(!o.teardown||o.teardown.call(a,
n)===false)Ba(a,f,A.handle);delete C[f]}}else for(var B=0;B<r.length;B++){w=r[B];if(j||l.test(w.namespace)){c.event.remove(a,o,w.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=A.handle)b.elem=null;delete A.events;delete A.handle;c.isEmptyObject(A)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[G]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,
function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return v;a.result=v;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=c.data(d,"handle"))&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false)a.result=false}catch(i){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){e=a.target;var j,
n=c.nodeName(e,"a")&&f==="click",l=c.event.special[f]||{};if((!l._default||l._default.call(d,a)===false)&&!n&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[f]){if(j=e["on"+f])e["on"+f]=null;c.event.triggered=true;e[f]()}}catch(o){}if(j)e["on"+f]=j;c.event.triggered=false}}},handle:function(a){var b,d,e,f;a=arguments[0]=c.event.fix(a||z.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();e=RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}f=c.data(this,"events");d=f[a.type];if(f&&d){d=d.slice(0);f=0;for(var i=d.length;f<i;f++){var j=d[f];if(b||e.test(j.namespace)){a.handler=j.handler;a.data=j.data;a.handleObj=j;j=j.handler.apply(this,arguments);if(j!==v){a.result=j;if(j===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==v)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ba=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
isImmediatePropagationStopped:Y};var Ca=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Da=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Da:Ca,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Da:Ca)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Ea=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,e,f;if(!(!da.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=Ea(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
f);if(!(e===v||f===e))if(e!=null||f){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
"_change_data",Ea(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var i in d)this[b](i,e,d[i],f);return this}if(c.isFunction(e)){f=e;e=v}var j=b==="one"?c.proxy(f,function(l){c(this).unbind(l,j);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{i=0;for(var n=this.length;i<n;i++)c.event.add(this[i],d,j,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Fa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,i){var j,n=0,l,o,r=i||this.selector,
w=i?this:c(this.context);if(c.isFunction(e)){f=e;e=v}for(d=(d||"").split(" ");(j=d[n++])!=null;){i=O.exec(j);l="";if(i){l=i[0];j=j.replace(O,"")}if(j==="hover")d.push("mouseenter"+l,"mouseleave"+l);else{o=j;if(j==="focus"||j==="blur"){d.push(Fa[j]+l);j+=l}else j=(Fa[j]||j)+l;b==="live"?w.each(function(){c.event.add(this,pa(j,r),{data:e,selector:r,handler:f,origType:j,origHandler:f,preType:o})}):w.unbind(pa(j,r),f)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});z.attachEvent&&!z.addEventListener&&z.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",k,m=0;g[m];m++){k=g[m];if(k.nodeType===3||k.nodeType===4)h+=k.nodeValue;else if(k.nodeType!==8)h+=a(k.childNodes)}return h}function b(g,h,k,m,q,p){q=0;for(var u=m.length;q<u;q++){var t=m[q];
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===k){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=k;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,k,m,q,p){q=0;for(var u=m.length;q<u;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===k){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=k;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(l.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
f=0,i=Object.prototype.toString,j=false,n=true;[0,0].sort(function(){n=false;return 0});var l=function(g,h,k,m){k=k||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return k;for(var p=[],u,t,y,S,H=true,M=x(h),I=g;(e.exec(""),u=e.exec(I))!==null;){I=u[3];p.push(u[1]);if(u[2]){S=u[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&o.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=o.relative[p[0]]?[h]:l(p.shift(),h);p.length;){g=p.shift();if(o.relative[g])g+=p.shift();
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&o.match.ID.test(p[0])&&!o.match.ID.test(p[p.length-1])){u=l.find(p.shift(),h,M);h=u.expr?l.filter(u.expr,u.set)[0]:u.set[0]}if(h){u=m?{expr:p.pop(),set:A(m)}:l.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=u.expr?l.filter(u.expr,u.set):u.set;if(p.length>0)y=A(t);else H=false;for(;p.length;){var D=p.pop();u=D;if(o.relative[D])u=p.pop();else D="";if(u==null)u=h;o.relative[D](y,u,M)}}else y=[]}y||(y=t);y||l.error(D||
g);if(i.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))k.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&k.push(t[g]);else k.push.apply(k,y);else A(y,k);if(S){l(S,q,k,m);l.uniqueSort(k)}return k};l.uniqueSort=function(g){if(B){j=n;g.sort(B);if(j)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};l.matches=function(g,h){return l(g,null,null,h)};l.find=function(g,h,k){var m,q;if(!g)return[];
for(var p=0,u=o.order.length;p<u;p++){var t=o.order[p];if(q=o.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=o.find[t](q,h,k);if(m!=null){g=g.replace(o.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};l.filter=function(g,h,k,m){for(var q=g,p=[],u=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in o.filter)if((t=o.leftMatch[H].exec(g))!=null&&t[2]){var M=o.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
1)!=="\\"){if(u===p)p=[];if(o.preFilter[H])if(t=o.preFilter[H](t,u,k,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=u[U])!=null;U++)if(D){I=M(D,t,U,u);var Ga=m^!!I;if(k&&I!=null)if(Ga)y=true;else u[U]=false;else if(Ga){p.push(D);y=true}}if(I!==v){k||(u=p);g=g.replace(o.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)l.error(g);else break;q=g}return u};l.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
relative:{"+":function(g,h){var k=typeof h==="string",m=k&&!/\W/.test(h);k=k&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=k||p&&p.nodeName.toLowerCase()===h?p||false:p===h}k&&l.filter(h,g,true)},">":function(g,h){var k=typeof h==="string";if(k&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){k=p.parentNode;g[m]=k.nodeName.toLowerCase()===h?k:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
k?p.parentNode:p.parentNode===h;k&&l.filter(h,g,true)}},"":function(g,h,k){var m=f++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,k)},"~":function(g,h,k){var m=f++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,k)}},find:{ID:function(g,h,k){if(typeof h.getElementById!=="undefined"&&!k)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var k=[];
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&k.push(h[m]);return k.length===0?null:k}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,k,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var u;(u=h[p])!=null;p++)if(u)if(q^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))k||m.push(u);else if(k)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=f++;return g},ATTR:function(g,h,k,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&o.attrMap[h])g[1]=o.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,m,q){if(g[1]==="not")if((e.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=l(g[3],null,null,h);else{g=l.filter(g[3],h,k,true^q);k||m.push.apply(m,
g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,k){return!!l(k[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
setFilters:{first:function(g,h){return h===0},last:function(g,h,k,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,m){var q=h[1],p=o.filters[q];if(p)return p(g,k,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
h[3];k=0;for(m=h.length;k<m;k++)if(h[k]===g)return false;return true}else l.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var k=h[1],m=g;switch(k){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(k==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":k=h[2];var q=h[3];if(k===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var u=0;for(m=p.firstChild;m;m=
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++u;p.sizcache=h}g=g.nodeIndex-q;return k===0?g===0:g%k===0&&g/k>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var k=h[1];g=o.attrHandle[k]?o.attrHandle[k](g):g[k]!=null?g[k]:g.getAttribute(k);k=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
"="?k===h:m==="*="?k.indexOf(h)>=0:m==="~="?(" "+k+" ").indexOf(h)>=0:!h?k&&g!==false:m==="!="?k!==h:m==="^="?k.indexOf(h)===0:m==="$="?k.substr(k.length-h.length)===h:m==="|="?k===h||k.substr(0,h.length+1)===h+"-":false},POS:function(g,h,k,m){var q=o.setFilters[h[2]];if(q)return q(g,k,h,m)}}},r=o.match.POS;for(var w in o.match){o.match[w]=RegExp(o.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[w]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[w].source.replace(/\\(\d+)/g,function(g,h){return"\\"+
(h-0+1)}))}var A=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){A=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var k=0,m=g.length;k<m;k++)h.push(g[k]);else for(k=0;g[k];k++)h.push(g[k]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||!h.compareDocumentPosition){if(g==
h)j=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)j=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)j=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)j=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)j=true;return g.ownerDocument?-1:1}var k=g.ownerDocument.createRange(),m=h.ownerDocument.createRange();k.setStart(g,
0);k.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=k.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)j=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var k=s.documentElement;k.insertBefore(g,k.firstChild);if(s.getElementById(h)){o.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===m[1]?
[q]:v:[]};o.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}k.removeChild(g);k=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(h,k){k=k.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;k[m];m++)k[m].nodeType===1&&h.push(k[m]);k=h}return k};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!==
"undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=l,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){l=function(m,q,p,u){q=q||s;if(!u&&q.nodeType===9&&!x(q))try{return A(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,u)};for(var k in g)l[k]=g[k];h=null}}();(function(){var g=s.createElement("div");g.innerHTML=
"<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(h,k,m){if(typeof k.getElementsByClassName!=="undefined"&&!m)return k.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:function(g,h){return g!==h&&(g.contains?g.contains(h):
true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var k=[],m="",q;for(h=h.nodeType?[h]:h;q=o.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)l(g,h[q],k);return l.filter(m,k)};c.find=l;c.expr=l.selectors;c.expr[":"]=c.expr.filters;c.unique=l.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var db=/Until$/,eb=/^(?:parents|prevUntil|prevAll)/,fb=/,/;R=Array.prototype.slice;
var Ha=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,i){return!!b.call(f,i,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Ta.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var i=
d;i<b.length;i++)for(var j=0;j<d;j++)if(b[j]===b[i]){b.splice(i--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ha(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],e=this[0],f,i={},j;if(e&&a.length){f=0;for(var n=a.length;f<
n;f++){j=a[f];i[j]||(i[j]=c.expr.match.POS.test(j)?c(j,b||this.context):j)}for(;e&&e.ownerDocument&&e!==b;){for(j in i){f=i[j];if(f.jquery?f.index(e)>-1:c(e).is(f)){d.push({selector:j,elem:e});delete i[j]}}e=e.parentNode}}return d}var l=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(o,r){for(;r&&r.ownerDocument&&r!==b;){if(l?l.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());
return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(!a[0]||!a[0].parentNode||a[0].parentNode.nodeType===11||!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,
"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,
"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);db.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||fb.test(e))&&eb.test(a))f=f.reverse();return this.pushStack(f,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===v||a.nodeType!==
1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ia=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,gb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ka=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&#?\w+;/,sa=/<script|<object|<embed|<option|<style/i,ta=/checked\s*(?:[^=]|=\s*.checked.)/i,
La=function(a,b,d){return gb.test(d)?a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,
"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=
this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ia,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],e)[0]}else return this.cloneNode(true)});if(a===true){qa(this,b);qa(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ia,
""):null;else if(typeof a==="string"&&!sa.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(Ka.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ja,La);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var i=c(this),j=i.html();i.empty().append(function(){return a.call(this,f,j)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,i=a[0],j=[],n;if(!c.support.checkClone&&arguments.length===3&&typeof i===
"string"&&ta.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(o){var r=c(this);a[0]=i.call(this,o,b?r.html():v);r.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:ra(a,this,j);n=e.fragment;if(f=n.childNodes.length===1?n=n.firstChild:n.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var l=this.length;f<l;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||
this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],f>0||e.cacheable||this.length>1?n.cloneNode(true):n)}j.length&&c.each(j,Pa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var i=
d.length;f<i;f++){var j=(f>0?this.clone(true):this).get();c.fn[b].apply(c(d[f]),j);e=e.concat(j)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var f=[],i=0,j;(j=a[i])!=null;i++){if(typeof j==="number")j+="";if(j){if(typeof j==="string"&&!ib.test(j))j=b.createTextNode(j);else if(typeof j==="string"){j=j.replace(Ja,La);var n=(Ka.exec(j)||["",""])[1].toLowerCase(),l=F[n]||F._default,
o=l[0],r=b.createElement("div");for(r.innerHTML=l[1]+j+l[2];o--;)r=r.lastChild;if(!c.support.tbody){o=hb.test(j);n=n==="table"&&!o?r.firstChild&&r.firstChild.childNodes:l[1]==="<table>"&&!o?r.childNodes:[];for(l=n.length-1;l>=0;--l)c.nodeName(n[l],"tbody")&&!n[l].childNodes.length&&n[l].parentNode.removeChild(n[l])}!c.support.leadingWhitespace&&V.test(j)&&r.insertBefore(b.createTextNode(V.exec(j)[0]),r.firstChild);j=r.childNodes}if(j.nodeType)f.push(j);else f=c.merge(f,j)}}if(d)for(i=0;f[i];i++)if(e&&
c.nodeName(f[i],"script")&&(!f[i].type||f[i].type.toLowerCase()==="text/javascript"))e.push(f[i].parentNode?f[i].parentNode.removeChild(f[i]):f[i]);else{f[i].nodeType===1&&f.splice.apply(f,[i+1,0].concat(c.makeArray(f[i].getElementsByTagName("script"))));d.appendChild(f[i])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,i=c.support.deleteExpando,j=0,n;(n=a[j])!=null;j++)if(d=n[c.expando]){b=e[d];if(b.events)for(var l in b.events)f[l]?c.event.remove(n,l):Ba(n,l,b.handle);if(i)delete n[c.expando];
else n.removeAttribute&&n.removeAttribute(c.expando);delete e[d]}}});var jb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Ma=/alpha\([^)]*\)/,Na=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,kb=/([A-Z])/g,lb=/^-?\d+(?:px)?$/i,mb=/^-?\d/,nb={position:"absolute",visibility:"hidden",display:"block"},ob=["Left","Right"],pb=["Top","Bottom"],qb=s.defaultView&&s.defaultView.getComputedStyle,Oa=c.support.cssFloat?"cssFloat":"styleFloat",ja=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,
a,b,true,function(d,e,f){if(f===v)return c.curCSS(d,e);if(typeof f==="number"&&!jb.test(e))f+="px";c.style(d,e,f)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return v;if((b==="width"||b==="height")&&parseFloat(d)<0)d=v;var e=a.style||a,f=d!==v;if(!c.support.opacity&&b==="opacity"){if(f){e.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=e.filter||c.curCSS(a,"filter")||"";e.filter=Ma.test(a)?a.replace(Ma,b):b}return e.filter&&e.filter.indexOf("opacity=")>=
0?parseFloat(Na.exec(e.filter)[1])/100+"":""}if(ha.test(b))b=Oa;b=b.replace(ia,ja);if(f)e[b]=d;return e[b]},css:function(a,b,d,e){if(b==="width"||b==="height"){var f,i=b==="width"?ob:pb;d=function(){f=b==="width"?a.offsetWidth:a.offsetHeight;e!=="border"&&c.each(i,function(){e||(f-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(e==="margin")f+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else f-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?d():c.swap(a,nb,d);return Math.max(0,
Math.round(f))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var e,f=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){e=Na.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return e===""?"1":e}if(ha.test(b))b=Oa;if(!d&&f&&f[b])e=f[b];else if(qb){if(ha.test(b))b="float";b=b.replace(kb,"-$1").toLowerCase();f=a.ownerDocument.defaultView;if(!f)return null;if(a=f.getComputedStyle(a,null))e=a.getPropertyValue(b);if(b==="opacity"&&e==="")e="1"}else if(a.currentStyle){d=b.replace(ia,
ja);e=a.currentStyle[b]||a.currentStyle[d];if(!lb.test(e)&&mb.test(e)){b=f.left;var i=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;f.left=d==="fontSize"?"1em":e||0;e=f.pixelLeft+"px";f.left=b;a.runtimeStyle.left=i}}return e},swap:function(a,b,d){var e={};for(var f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,e=a.nodeName.toLowerCase()==="tr";return b===
0&&d===0&&!e?true:b>0&&d>0&&!e?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var rb=J(),sb=/<script(.|\s)*?\/script>/gi,tb=/select|textarea/i,ub=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,vb=/(\?|&)_=.*?(&|$)/,wb=/^(\w+:)?\/\/([^\/?#]+)/,xb=/%20/g,yb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return yb.call(this,a);else if(!this.length)return this;
var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var i=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(j,n){if(n==="success"||n==="notmodified")i.html(f?c("<div />").append(j.responseText.replace(sb,"")).find(f):j.responseText);d&&i.each(d,[j.responseText,n,j])}});return this},serialize:function(){return c.param(this.serializeArray())},
serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||tb.test(this.nodeName)||ub.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,
d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,xhr:z.XMLHttpRequest&&(z.location.protocol!=="file:"||!z.ActiveXObject)?function(){return new z.XMLHttpRequest}:function(){try{return new z.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){f.success&&f.success.call(l,n,j,x);f.global&&e("ajaxSuccess",
[x,f])}function d(){f.complete&&f.complete.call(l,x,j);f.global&&e("ajaxComplete",[x,f]);f.global&&!--c.active&&c.event.trigger("ajaxStop")}function e(q,p){(f.context?c(f.context):c.event).trigger(q,p)}var f=c.extend(true,{},c.ajaxSettings,a),i,j,n,l=a&&a.context||f,o=f.type.toUpperCase();if(f.data&&f.processData&&typeof f.data!=="string")f.data=c.param(f.data,f.traditional);if(f.dataType==="jsonp"){if(o==="GET")N.test(f.url)||(f.url+=(ka.test(f.url)?"&":"?")+(f.jsonp||"callback")+"=?");else if(!f.data||
!N.test(f.data))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType==="json"&&(f.data&&N.test(f.data)||N.test(f.url))){i=f.jsonpCallback||"jsonp"+rb++;if(f.data)f.data=(f.data+"").replace(N,"="+i+"$1");f.url=f.url.replace(N,"="+i+"$1");f.dataType="script";z[i]=z[i]||function(q){n=q;b();d();z[i]=v;try{delete z[i]}catch(p){}A&&A.removeChild(C)}}if(f.dataType==="script"&&f.cache===null)f.cache=false;if(f.cache===false&&o==="GET"){var r=J(),w=f.url.replace(vb,"$1_="+
r+"$2");f.url=w+(w===f.url?(ka.test(f.url)?"&":"?")+"_="+r:"")}if(f.data&&o==="GET")f.url+=(ka.test(f.url)?"&":"?")+f.data;f.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=wb.exec(f.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(f.dataType==="script"&&o==="GET"&&r){var A=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=f.url;if(f.scriptCharset)C.charset=f.scriptCharset;if(!i){var B=false;C.onload=C.onreadystatechange=function(){if(!B&&
(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;A&&C.parentNode&&A.removeChild(C)}}}A.insertBefore(C,A.firstChild);return v}var E=false,x=f.xhr();if(x){f.username?x.open(o,f.url,f.async,f.username,f.password):x.open(o,f.url,f.async);try{if(f.data||a&&a.contentType)x.setRequestHeader("Content-Type",f.contentType);if(f.ifModified){c.lastModified[f.url]&&x.setRequestHeader("If-Modified-Since",c.lastModified[f.url]);c.etag[f.url]&&
x.setRequestHeader("If-None-Match",c.etag[f.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?f.accepts[f.dataType]+", */*":f.accepts._default)}catch(ga){}if(f.beforeSend&&f.beforeSend.call(l,x,f)===false){f.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}f.global&&e("ajaxSend",[x,f]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||d();E=true;if(x)x.onreadystatechange=
c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;j=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":f.ifModified&&c.httpNotModified(x,f.url)?"notmodified":"success";var p;if(j==="success")try{n=c.httpData(x,f.dataType,f)}catch(u){j="parsererror";p=u}if(j==="success"||j==="notmodified")i||b();else c.handleError(f,x,j,p);d();q==="timeout"&&x.abort();if(f.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);g("abort")}}catch(k){}f.async&&f.timeout>
0&&setTimeout(function(){x&&!E&&g("timeout")},f.timeout);try{x.send(o==="POST"||o==="PUT"||o==="DELETE"?f.data:null)}catch(m){c.handleError(f,x,null,m);d()}f.async||g();return x}},handleError:function(a,b,d,e){if(a.error)a.error.call(a.context||a,b,d,e);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,e])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},
httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304||a.status===0},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);
else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(j,n){if(c.isArray(n))c.each(n,function(l,o){b||/\[\]$/.test(j)?e(j,o):d(j+"["+(typeof o==="object"||c.isArray(o)?l:"")+"]",o)});else!b&&n!=null&&typeof n==="object"?c.each(n,function(l,o){d(j+"["+l+"]",o)}):e(j,n)}function e(j,n){n=c.isFunction(n)?n():n;f[f.length]=encodeURIComponent(j)+"="+encodeURIComponent(n)}var f=[];if(b===v)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,
function(){e(this.name,this.value)});else for(var i in a)d(i,a[i]);return f.join("&").replace(xb,"+")}});var la={},zb=/toggle|show|hide/,Ab=/^([+-]=)?([\d+-.]+)(.*)$/,W,ua=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],
"display")==="none"){d=this[a].nodeName;var e;if(la[d])e=la[d];else{var f=c("<"+d+" />").appendTo("body");e=f.css("display");if(e==="none")e="block";f.remove();la[d]=e}c.data(this[a],"olddisplay",e)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=
0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var e=d?a:c(this).is(":hidden");c(this)[e?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,e){var f=c.speed(b,
d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var i=c.extend({},f),j,n=this.nodeType===1&&c(this).is(":hidden"),l=this;for(j in a){var o=j.replace(ia,ja);if(j!==o){a[o]=a[j];delete a[j];j=o}if(a[j]==="hide"&&n||a[j]==="show"&&!n)return i.complete.call(this);if((j==="height"||j==="width")&&this.style){i.display=c.css(this,"display");i.overflow=this.style.overflow}if(c.isArray(a[j])){(i.specialEasing=i.specialEasing||{})[j]=a[j][1];a[j]=
a[j][0]}}if(i.overflow!=null)this.style.overflow="hidden";i.curAnim=c.extend({},a);c.each(a,function(r,w){var A=new c.fx(l,i,r);if(zb.test(w))A[w==="toggle"?n?"show":"hide":w](a);else{var C=Ab.exec(w),B=A.cur(true)||0;if(C){w=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){l.style[r]=(w||1)+E;B=(w||1)/A.cur(true)*B;l.style[r]=B+E}if(C[1])w=(C[1]==="-="?-1:1)*w+B;A.custom(B,w,E)}else A.custom(B,w,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=
d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,e){return this.animate(b,d,e)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:
c.fx.speeds[e.duration]||c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);
if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function e(i){return f.step(i)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;
var f=this;e.elem=this.elem;if(e()&&c.timers.push(e)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=
this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)c.style(this.elem,
f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{f=b-this.startTime;this.state=f/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,f,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
function(a){var b=this[0];if(a)return this.each(function(f){c.offset.setOffset(this,a,f)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),e=b.ownerDocument;b=e.body;e=e.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&e.scrollTop||b.scrollTop)-(e.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&e.scrollLeft||b.scrollLeft)-(e.clientLeft||b.clientLeft||0)}}:function(a){var b=
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,e=b,f=b.ownerDocument,i,j=f.documentElement,n=f.body;e=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var l=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==n&&b!==j;){if(c.offset.supportsFixedPosition&&e.position==="fixed")break;i=f?f.getComputedStyle(b,null):b.currentStyle;
l-=b.scrollTop;o-=b.scrollLeft;if(b===d){l+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){l+=parseFloat(i.borderTopWidth)||0;o+=parseFloat(i.borderLeftWidth)||0}e=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&i.overflow!=="visible"){l+=parseFloat(i.borderTopWidth)||0;o+=parseFloat(i.borderLeftWidth)||0}e=i}if(e.position==="relative"||e.position==="static"){l+=n.offsetTop;o+=n.offsetLeft}if(c.offset.supportsFixedPosition&&
e.position==="fixed"){l+=Math.max(j.scrollTop,n.scrollTop);o+=Math.max(j.scrollLeft,n.scrollLeft)}return{top:l,left:o}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,e,f,i=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var e=c(a),f=e.offset(),i=parseInt(c.curCSS(a,"top",true),10)||0,j=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d,f);d={top:b.top-f.top+i,left:b.left-f.left+j};"using"in b?b.using.call(a,d):e.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;e.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;e.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],i;if(!f)return null;return e!==v?this.each(function(){if(i=va(this))i.scrollTo(!a?e:c(i).scrollLeft(),a?e:c(i).scrollTop());else this[d]=e}):(i=va(f))?"pageXOffset"in i?i[a?"pageYOffset":"pageXOffset"]:
c.support.boxModel&&i.document.documentElement[d]||i.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(e){return this[0]?c.css(this[0],d,false,e?"margin":"border"):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(i){var j=c(this);j[d](e.call(this,i,j[d]()))});return"scrollTo"in f&&f.document?
f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType===9?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]):e===v?c.css(f,d):this.css(d,typeof e==="string"?e:e+"px")}});z.jQuery=z.$=c})(window);

var JCORE_VERSION = '0.3';jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a.expires=-1}var b="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){if(typeof a.expires=="number"){b=new Date;b.setTime(b.getTime()+a.expires*24*60*60*1E3)}else b=a.expires;b="; expires="+b.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),b,e,f,a].join("")}else{c=null;if(document.cookie&&document.cookie!=
""){a=document.cookie.split(";");for(b=0;b<a.length;b++){e=jQuery.trim(a[b]);if(e.substring(0,d.length+1)==d+"="){c=decodeURIComponent(e.substring(d.length+1));break}}}return c}};

(function(d){function l(a,b){if(b===undefined)b=typeof a=="boolean"?{show:a}:a;else b.show=a;if(b&&(b.img||b.element)&&!b.pulse)b.pulse=false;if(b&&b.onAjax!==undefined&&b.show===undefined)b.show=false;return b}function h(a,b){var c=a.css(b);return c=="auto"?0:parseFloat(c,10)}var i=d.loading=function(a,b){return d("body").loading(a,b,true)};d.fn.loading=function(a,b,c){b=l(a,b);var f=c?d.extend(true,{},i,i.pageOptions):i;return this.each(function(){var g=d(this),e=d.extend(true,{},f,d.metadata?g.metadata():
null,b);typeof e.onAjax=="boolean"?i.setAjax.call(g,e):i.toggle.call(g,e)})};var k={position:"fixed"};d.extend(i,{version:"1.6.4",align:"top-left",pulse:"working error",mask:false,img:null,element:null,text:"Loading...",onAjax:undefined,delay:0,max:0,classname:"loading",imgClass:"loading-img",elementClass:"loading-element",maskClass:"loading-mask",css:{position:"absolute",whiteSpace:"nowrap",zIndex:1001},maskCss:{position:"absolute",opacity:0.15,background:"#333",zIndex:101,display:"block",cursor:"wait"},
cloneEvents:true,pageOptions:{page:true,align:"top-center",css:k,maskCss:k},html:"<div></div>",maskHtml:"<div></div>",maskedClass:"loading-masked",maskEvents:"mousedown mouseup keydown keypress",resizeEvents:"resize",working:{time:1E4,text:"Still working...",run:function(a){var b=a.working,c=this;b.timeout=setTimeout(function(){c.height("auto").width("auto").text(a.text=b.text);a.place.call(c,a)},b.time)}},error:{time:1E5,text:"Task may have failed...",classname:"loading-error",run:function(a){var b=
a.error,c=this;b.timeout=setTimeout(function(){c.height("auto").width("auto").text(a.text=b.text).addClass(b.classname);a.place.call(c,a)},b.time)}},fade:{time:800,speed:"slow",run:function(a){a=a.fade;var b=a.speed,c=this;a.interval=setInterval(function(){c.fadeOut(b).fadeIn(b)},a.time)}},ellipsis:{time:300,run:function(a){var b=a.ellipsis,c=this;b.interval=setInterval(function(){var f=c.text(),g=a.text,e;e=g.indexOf(".");e=e<0?g.length:e;c.text(f.length-e<3?f+".":g.substring(0,e))},b.time)}},type:{time:100,
run:function(a){var b=a.type,c=this;b.interval=setInterval(function(){var f=c.text().length,g=a.text;c.text(f==g.length?g.charAt(0):g.substring(0,f+1))},b.time)}},toggle:function(a){var b=this.data("loading");if(b)a.show!==true&&b.off.call(this,b,a);else a.show!==false&&a.on.call(this,a)},setAjax:function(a){if(a.onAjax){var b=this,c=0,f=a.ajax={start:function(){c++||a.on.call(b,a)},stop:function(){--c||a.off.call(b,a,a)}};this.bind("ajaxStart.loading",f.start).bind("ajaxStop.loading",f.stop)}else this.unbind("ajaxStart.loading ajaxStop.loading")},
on:function(a,b){var c=a.parent=this.data("loading",a);if(a.max)a.maxout=setTimeout(function(){a.off.call(c,a,a)},a.max);if(a.delay&&!b)return a.timeout=setTimeout(function(){delete a.timeout;a.on.call(c,a,true)},a.delay);if(a.mask)a.mask=a.createMask.call(c,a);a.display=a.create.call(c,a);if(a.img)a.initImg.call(c,a);else a.element?a.initElement.call(c,a):a.init.call(c,a);c.trigger("loadingStart",[a])},initImg:function(a){var b=this;a.imgElement=d('<img src="'+a.img+'"/>').bind("load",function(){a.init.call(b,
a)});a.display.addClass(a.imgClass).append(a.imgElement)},initElement:function(a){a.element=d(a.element).clone(a.cloneEvents).show();a.display.addClass(a.elementClass).append(a.element);a.init.call(this,a)},init:function(a){a.place.call(a.display,a);a.pulse&&a.initPulse.call(this,a)},initPulse:function(a){d.each(a.pulse.split(" "),function(){a[this].run.call(a.display,a)})},create:function(a){var b=d(a.html).addClass(a.classname).css(a.css).appendTo(this);if(a.text&&!a.img&&!a.element)b.text(a.originalText=
a.text);d(window).bind(a.resizeEvents,a.resizer=function(){a.resize(a)});return b},resize:function(a){a.parent.box=null;a.mask&&a.mask.hide();a.place.call(a.display.hide(),a);a.mask&&a.mask.show().css(a.parent.box)},createMask:function(a){var b=a.measure.call(this.addClass(a.maskedClass),a);a.handler=function(c){return a.maskHandler(c,a)};d(document).bind(a.maskEvents,a.handler);return d(a.maskHtml).addClass(a.maskClass).css(b).css(a.maskCss).appendTo(this)},maskHandler:function(a,b){var c=d(a.target).parents().andSelf();
if(c.filter("."+b.classname).length!=0)return true;return!b.page&&c.filter("."+b.maskedClass).length==0},place:function(a){var b=a.align,c="top",f="left";if(typeof b=="object")b=d.extend(a.calc.call(this,c,f,a),b);else{if(b!="top-left"){b=b.split("-");if(b.length==1)c=f=b[0];else{c=b[0];f=b[1]}}this.hasClass(c)||this.addClass(c);this.hasClass(f)||this.addClass(f);b=a.calc.call(this,c,f,a)}this.show().css(a.box=b)},calc:function(a,b,c){c=d.extend({},c.measure.call(c.parent,c));var f=d.boxModel?this.height():
this.innerHeight(),g=d.boxModel?this.width():this.innerWidth();if(a!="top"){var e=c.height-f;if(a=="center")e/=2;else if(a!="bottom")e=0;else if(d.boxModel)e-=h(this,"paddingTop")+h(this,"paddingBottom");c.top+=e}if(b!="left"){e=c.width-g;if(b=="center")e/=2;else if(b!="right")e=0;else if(d.boxModel)e-=h(this,"paddingLeft")+h(this,"paddingRight");c.left+=e}c.height=f;c.width=g;return c},measure:function(a){return this.box||(this.box=a.page?a.pageBox(a):a.elementBox(this,a))},elementBox:function(a){if(a.css("position")==
"absolute")var b={top:0,left:0};else{b=a.position();b.top+=h(a,"marginTop");b.left+=h(a,"marginLeft")}b.height=a.outerHeight();b.width=a.outerWidth();return b},pageBox:function(a){function b(c,f){var g=document;if(c){var e=f.toLowerCase(),j=d(g)[e]();e=d(window)[e]();return j-h(d(g.body),"marginTop")>e?j:e}j="client"+f;return Math.max(g.documentElement[j],g.body[j])}a=d.boxModel&&a.css.position!="fixed";return{top:0,left:0,height:b(a,"Height"),width:b(a,"Width")}},off:function(a,b){this.data("loading",
null);a.maxout&&clearTimeout(a.maxout);if(a.timeout)return clearTimeout(a.timeout);a.pulse&&a.stopPulse.call(this,a,b);if(a.originalText)a.text=a.originalText;a.mask&&a.stopMask.call(this,a,b);d(window).unbind(a.resizeEvents,a.resizer);a.display&&a.display.remove();a.parent&&a.parent.trigger("loadingEnd",[a])},stopPulse:function(a,b){d.each(a.pulse.split(" "),function(){var c=a[this];c.end&&c.end.call(b.display,a,b);c.interval&&clearInterval(c.interval);c.timeout&&clearTimeout(c.timeout)})},stopMask:function(a,
b){this.removeClass(b.maskedClass);d(document).unbind(a.maskEvents,a.handler);a.mask.remove()}})})(jQuery);

jQuery.fn.mailme=function(){var b=/ at /,c=/ dot /g;this.each(function(){var a=jQuery(this).text().replace(b,"@").replace(c,"."),d=jQuery(this).attr("title");jQuery(this).after('<a href="mailto:'+a+'" title="'+d+'">'+a+"</a>").remove()})};

(function(a){a.fn.pngFix=function(d){d=a.extend({blankgif:"blank.gif"},d);var f=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1,g=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1;if(a.browser.msie&&(f||g)){a(this).find("img[src$=.png]").each(function(){a(this).attr("width",a(this).width());a(this).attr("height",a(this).height());var b="",
c="",h=a(this).attr("id")?'id="'+a(this).attr("id")+'" ':"",i=a(this).attr("class")?'class="'+a(this).attr("class")+'" ':"",j=a(this).attr("title")?'title="'+a(this).attr("title")+'" ':"",k=a(this).attr("alt")?'alt="'+a(this).attr("alt")+'" ':"",l=a(this).attr("align")?"float:"+a(this).attr("align")+";":"",e=a(this).parent().attr("href")?"cursor:hand;":"";if(this.style.border){b+="border:"+this.style.border+";";this.style.border=""}if(this.style.padding){b+="padding:"+this.style.padding+";";this.style.padding=
""}if(this.style.margin){b+="margin:"+this.style.margin+";";this.style.margin=""}var m=this.style.cssText;c+="<span "+h+i+j+k;c+='style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+l+e;c+="width:"+a(this).width()+"px;height:"+a(this).height()+"px;";c+="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a(this).attr("src")+"', sizingMethod='scale');";c+=m+'"></span>';if(b!="")c='<span style="position:relative;display:inline-block;'+b+e+"width:"+
a(this).width()+"px;height:"+a(this).height()+'px;">'+c+"</span>";a(this).hide();a(this).after(c)});a(this).find("*").each(function(){var b=a(this).css("background-image");if(b.indexOf(".png")!=-1){b=b.split('url("')[1].split('")')[0];a(this).css("background-image","none");a(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b+"',sizingMethod='scale')"}});a(this).find("input[src$=.png]").each(function(){var b=a(this).attr("src");a(this).get(0).runtimeStyle.filter=
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b+"', sizingMethod='scale');";a(this).attr("src",d.blankgif)})}return a}})(jQuery);

(function(b){function z(c,f,d){var a=this;a.id=d;a.options=f;a.status={animated:false,rendered:false,disabled:false,focused:false};a.elements={target:c.addClass(a.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};a.cache={mouse:{},position:{},toggle:0};a.timers={};b.extend(a,a.options.api,{show:function(e){function h(){a.options.position.type!=="static"&&a.focus();a.onShow.call(a,e);b.browser.msie&&a.elements.tooltip.get(0).style.removeAttribute("filter")}
var j;if(!a.status.rendered)return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show");if(a.elements.tooltip.css("display")!=="none")return a;a.elements.tooltip.stop(true,false);if(a.beforeShow.call(a,e)===false)return a;a.cache.toggle=1;a.options.position.type!=="static"&&a.updatePosition(e,a.options.show.effect.length>0);if(typeof a.options.show.solo=="object")j=b(a.options.show.solo);else if(a.options.show.solo===true)j=b("div.qtip").not(a.elements.tooltip);j&&j.each(function(){b(this).qtip("api").status.rendered===
true&&b(this).qtip("api").hide()});if(typeof a.options.show.effect.type=="function"){a.options.show.effect.type.call(a.elements.tooltip,a.options.show.effect.length);a.elements.tooltip.queue(function(){h();b(this).dequeue()})}else{switch(a.options.show.effect.type.toLowerCase()){case "fade":a.elements.tooltip.fadeIn(a.options.show.effect.length,h);break;case "slide":a.elements.tooltip.slideDown(a.options.show.effect.length,function(){h();a.options.position.type!=="static"&&a.updatePosition(e,true)});
break;case "grow":a.elements.tooltip.show(a.options.show.effect.length,h);break;default:a.elements.tooltip.show(null,h);break}a.elements.tooltip.addClass(a.options.style.classes.active)}return b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(e){function h(){a.onHide.call(a,e)}if(a.status.rendered){if(a.elements.tooltip.css("display")==="none")return a}else return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide");clearTimeout(a.timers.show);
a.elements.tooltip.stop(true,false);if(a.beforeHide.call(a,e)===false)return a;a.cache.toggle=0;if(typeof a.options.hide.effect.type=="function"){a.options.hide.effect.type.call(a.elements.tooltip,a.options.hide.effect.length);a.elements.tooltip.queue(function(){h();b(this).dequeue()})}else{switch(a.options.hide.effect.type.toLowerCase()){case "fade":a.elements.tooltip.fadeOut(a.options.hide.effect.length,h);break;case "slide":a.elements.tooltip.slideUp(a.options.hide.effect.length,h);break;case "grow":a.elements.tooltip.hide(a.options.hide.effect.length,
h);break;default:a.elements.tooltip.hide(null,h);break}a.elements.tooltip.removeClass(a.options.style.classes.active)}return b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(e,h){var j,g,k,l,n,m,o;if(a.status.rendered){if(a.options.position.type=="static")return b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}else return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition");g=
{position:{left:0,top:0},dimensions:{height:0,width:0},corner:a.options.position.corner.target};k={position:a.getPosition(),dimensions:a.getDimensions(),corner:a.options.position.corner.tooltip};if(a.options.position.target!=="mouse"){if(a.options.position.target.get(0).nodeName.toLowerCase()=="area"){l=a.options.position.target.attr("coords").split(",");for(j=0;j<l.length;j++)l[j]=parseInt(l[j]);j=a.options.position.target.parent("map").attr("name");n=b('img[usemap="#'+j+'"]:first').offset();g.position=
{left:Math.floor(n.left+l[0]),top:Math.floor(n.top+l[1])};switch(a.options.position.target.attr("shape").toLowerCase()){case "rect":g.dimensions={width:Math.ceil(Math.abs(l[2]-l[0])),height:Math.ceil(Math.abs(l[3]-l[1]))};break;case "circle":g.dimensions={width:l[2]+1,height:l[2]+1};break;case "poly":g.dimensions={width:l[0],height:l[1]};for(j=0;j<l.length;j++)if(j%2==0){if(l[j]>g.dimensions.width)g.dimensions.width=l[j];if(l[j]<l[0])g.position.left=Math.floor(n.left+l[j])}else{if(l[j]>g.dimensions.height)g.dimensions.height=
l[j];if(l[j]<l[1])g.position.top=Math.floor(n.top+l[j])}g.dimensions.width-=g.position.left-n.left;g.dimensions.height-=g.position.top-n.top;break;default:return b.fn.qtip.log.error.call(a,4,b.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition")}g.dimensions.width-=2;g.dimensions.height-=2}else if(a.options.position.target.add(document.body).length===1){g.position={left:b(document).scrollLeft(),top:b(document).scrollTop()};g.dimensions={height:b(window).height(),width:b(window).width()}}else{g.position=
typeof a.options.position.target.attr("qtip")!=="undefined"?a.options.position.target.qtip("api").cache.position:a.options.position.target.offset();g.dimensions={height:a.options.position.target.outerHeight(),width:a.options.position.target.outerWidth()}}m=b.extend({},g.position);if(g.corner.search(/right/i)!==-1)m.left+=g.dimensions.width;if(g.corner.search(/bottom/i)!==-1)m.top+=g.dimensions.height;if(g.corner.search(/((top|bottom)Middle)|center/)!==-1)m.left+=g.dimensions.width/2;if(g.corner.search(/((left|right)Middle)|center/)!==
-1)m.top+=g.dimensions.height/2}else{g.position=m={left:a.cache.mouse.x,top:a.cache.mouse.y};g.dimensions={height:1,width:1}}if(k.corner.search(/right/i)!==-1)m.left-=k.dimensions.width;if(k.corner.search(/bottom/i)!==-1)m.top-=k.dimensions.height;if(k.corner.search(/((top|bottom)Middle)|center/)!==-1)m.left-=k.dimensions.width/2;if(k.corner.search(/((left|right)Middle)|center/)!==-1)m.top-=k.dimensions.height/2;l=b.browser.msie?1:0;b.browser.msie&&parseInt(b.browser.version.charAt(0));if(a.options.style.border.radius>
0){if(k.corner.search(/Left/)!==-1)m.left-=a.options.style.border.radius;else if(k.corner.search(/Right/)!==-1)m.left+=a.options.style.border.radius;if(k.corner.search(/Top/)!==-1)m.top-=a.options.style.border.radius;else if(k.corner.search(/Bottom/)!==-1)m.top+=a.options.style.border.radius}if(l){if(k.corner.search(/top/)!==-1)m.top-=l;else if(k.corner.search(/bottom/)!==-1)m.top+=l;if(k.corner.search(/left/)!==-1)m.left-=l;else if(k.corner.search(/right/)!==-1)m.left+=l;if(k.corner.search(/leftMiddle|rightMiddle/)!==
-1)m.top-=1}if(a.options.position.adjust.screen===true)m=A.call(a,m,g,k);if(a.options.position.target==="mouse"&&a.options.position.adjust.mouse===true){g=a.options.position.adjust.screen===true&&a.elements.tip?a.elements.tip.attr("rel"):a.options.position.corner.tooltip;m.left+=g.search(/right/i)!==-1?-6:6;m.top+=g.search(/bottom/i)!==-1?-6:6}!a.elements.bgiframe&&b.browser.msie&&parseInt(b.browser.version.charAt(0))==6&&b("select, object").each(function(){o=b(this).offset();o.bottom=o.top+b(this).height();
o.right=o.left+b(this).width();m.top+k.dimensions.height>=o.top&&m.left+k.dimensions.width>=o.left&&B.call(a)});m.left+=a.options.position.adjust.x;m.top+=a.options.position.adjust.y;g=a.getPosition();if(m.left!=g.left||m.top!=g.top){g=a.beforePositionUpdate.call(a,e);if(g===false)return a;a.cache.position=m;if(h===true){a.status.animated=true;a.elements.tooltip.animate(m,200,"swing",function(){a.status.animated=false})}else a.elements.tooltip.css(m);a.onPositionUpdate.call(a,e);typeof e!=="undefined"&&
e.type&&e.type!=="mousemove"&&b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}return a},updateWidth:function(e){var h;if(a.status.rendered){if(e&&typeof e!=="number")return b.fn.qtip.log.error.call(a,2,"newWidth must be of type number","updateWidth")}else return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth");h=a.elements.contentWrapper.siblings().add(a.elements.tip).add(a.elements.button);if(!e)if(typeof a.options.style.width.value==
"number")e=a.options.style.width.value;else{a.elements.tooltip.css({width:"auto"});h.hide();b.browser.msie&&a.elements.wrapper.add(a.elements.contentWrapper.children()).css({zoom:"normal"});e=a.getDimensions().width+1;if(!a.options.style.width.value){if(e>a.options.style.width.max)e=a.options.style.width.max;if(e<a.options.style.width.min)e=a.options.style.width.min}}if(e%2!==0)e-=1;a.elements.tooltip.width(e);h.show();a.options.style.border.radius&&a.elements.tooltip.find(".qtip-betweenCorners").each(function(){b(this).width(e-
a.options.style.border.radius*2)});if(b.browser.msie){a.elements.wrapper.add(a.elements.contentWrapper.children()).css({zoom:"1"});a.elements.wrapper.width("auto");a.elements.bgiframe&&a.elements.bgiframe.width(e).height(a.getDimensions.height)}return b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(e){var h,j,g,k;if(a.status.rendered){if(typeof e!=="string"||!b.fn.qtip.styles[e])return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.STYLE_NOT_DEFINED,
"updateStyle")}else return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle");a.options.style=q.call(a,b.fn.qtip.styles[e],a.options.user.style);a.elements.content.css(p(a.options.style));a.options.content.title.text!==false&&a.elements.title.css(p(a.options.style.title,true));a.elements.contentWrapper.css({borderColor:a.options.style.border.color});if(a.options.style.tip.corner!==false)if(b("<canvas>").get(0).getContext){e=a.elements.tooltip.find(".qtip-tip canvas:first");
j=e.get(0).getContext("2d");j.clearRect(0,0,300,300);g=e.parent("div[rel]:first").attr("rel");k=r(g,a.options.style.tip.size.width,a.options.style.tip.size.height);s.call(a,e,k,a.options.style.tip.color||a.options.style.border.color)}else if(b.browser.msie){e=a.elements.tooltip.find('.qtip-tip [nodeName="shape"]');e.attr("fillcolor",a.options.style.tip.color||a.options.style.border.color)}if(a.options.style.border.radius>0){a.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:a.options.style.border.color});
if(b("<canvas>").get(0).getContext){h=t(a.options.style.border.radius);a.elements.tooltip.find(".qtip-wrapper canvas").each(function(){j=b(this).get(0).getContext("2d");j.clearRect(0,0,300,300);g=b(this).parent("div[rel]:first").attr("rel");u.call(a,b(this),h[g],a.options.style.border.radius,a.options.style.border.color)})}else b.browser.msie&&a.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){b(this).attr("fillcolor",a.options.style.border.color)})}return b.fn.qtip.log.error.call(a,
1,b.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(e,h){function j(){a.updateWidth();if(h!==false){a.options.position.type!=="static"&&a.updatePosition(a.elements.tooltip.is(":visible"),true);a.options.style.tip.corner!==false&&v.call(a)}}var g,k,l;if(a.status.rendered){if(!e)return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}else return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent");g=
a.beforeContentUpdate.call(a,e);if(typeof g=="string")e=g;else if(g===false)return;b.browser.msie&&a.elements.contentWrapper.children().css({zoom:"normal"});e.jquery&&e.length>0?e.clone(true).appendTo(a.elements.content).show():a.elements.content.html(e);k=a.elements.content.find("img[complete=false]");if(k.length>0){l=0;k.each(function(){b('<img src="'+b(this).attr("src")+'" />').load(function(){++l==k.length&&j()})})}else j();a.onContentUpdate.call(a);return b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_CONTENT_UPDATED,
"loadContent")},loadContent:function(e,h,j){function g(k){a.onContentLoad.call(a);b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");a.updateContent(k)}if(!a.status.rendered)return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent");if(a.beforeContentLoad.call(a)===false)return a;j=="post"?b.post(e,h,g):b.get(e,h,g);return a},updateTitle:function(e){if(a.status.rendered){if(!e)return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.NO_CONTENT_PROVIDED,
"updateTitle")}else return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle");returned=a.beforeTitleUpdate.call(a);if(returned===false)return a;if(a.elements.button)a.elements.button=a.elements.button.clone(true);a.elements.title.html(e);a.elements.button&&a.elements.title.prepend(a.elements.button);a.onTitleUpdate.call(a);return b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(e){var h,j,g;if(a.status.rendered){if(a.options.position.type==
"static")return b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}else return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus");h=parseInt(a.elements.tooltip.css("z-index"));j=6E3+b("div.qtip[qtip]").length-1;if(!a.status.focused&&h!==j){h=a.beforeFocus.call(a,e);if(h===false)return a;b("div.qtip[qtip]").not(a.elements.tooltip).each(function(){if(b(this).qtip("api").status.rendered===true){g=parseInt(b(this).css("z-index"));typeof g=="number"&&
g>-1&&b(this).css({zIndex:parseInt(b(this).css("z-index"))-1});b(this).qtip("api").status.focused=false}});a.elements.tooltip.css({zIndex:j});a.status.focused=true;a.onFocus.call(a,e);b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_FOCUSED,"focus")}return a},disable:function(e){if(!a.status.rendered)return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable");if(e)if(a.status.disabled)b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable");
else{a.status.disabled=true;b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_DISABLED,"disable")}else if(a.status.disabled){a.status.disabled=false;b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_ENABLED,"disable")}else b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable");return a},destroy:function(){var e,h;if(a.beforeDestroy.call(a)===false)return a;if(a.status.rendered){a.options.show.when.target.unbind("mousemove.qtip",a.updatePosition);a.options.show.when.target.unbind("mouseout.qtip",
a.hide);a.options.show.when.target.unbind(a.options.show.when.event+".qtip");a.options.hide.when.target.unbind(a.options.hide.when.event+".qtip");a.elements.tooltip.unbind(a.options.hide.when.event+".qtip");a.elements.tooltip.unbind("mouseover.qtip",a.focus);a.elements.tooltip.remove()}else a.options.show.when.target.unbind(a.options.show.when.event+".qtip-create");if(typeof a.elements.target.data("qtip")=="object"){h=a.elements.target.data("qtip").interfaces;if(typeof h=="object"&&h.length>0)for(e=
0;e<h.length-1;e++)h[e].id==a.id&&h.splice(e,1)}delete b.fn.qtip.interfaces[a.id];if(typeof h=="object"&&h.length>0)a.elements.target.data("qtip").current=h.length-1;else a.elements.target.removeData("qtip");a.onDestroy.call(a);b.fn.qtip.log.error.call(a,1,b.fn.qtip.constants.EVENT_DESTROYED,"destroy");return a.elements.target},getPosition:function(){var e,h;if(!a.status.rendered)return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition");(e=a.elements.tooltip.css("display")!==
"none"?false:true)&&a.elements.tooltip.css({visiblity:"hidden"}).show();h=a.elements.tooltip.offset();e&&a.elements.tooltip.css({visiblity:"visible"}).hide();return h},getDimensions:function(){var e,h;if(!a.status.rendered)return b.fn.qtip.log.error.call(a,2,b.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions");(e=!a.elements.tooltip.is(":visible")?true:false)&&a.elements.tooltip.css({visiblity:"hidden"}).show();h={height:a.elements.tooltip.outerHeight(),width:a.elements.tooltip.outerWidth()};
e&&a.elements.tooltip.css({visiblity:"visible"}).hide();return h}})}function w(){var c,f,d;this.beforeRender.call(this);this.status.rendered=true;this.elements.tooltip='<div qtip="'+this.id+'" class="qtip '+(this.options.style.classes.tooltip||this.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+this.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+
this.options.style.classes.content+'"></div></div></div></div>';this.elements.tooltip=b(this.elements.tooltip);this.elements.tooltip.appendTo(this.options.position.container);this.elements.tooltip.data("qtip",{current:0,interfaces:[this]});this.elements.wrapper=this.elements.tooltip.children("div:first");this.elements.contentWrapper=this.elements.wrapper.children("div:first").css({background:this.options.style.background});this.elements.content=this.elements.contentWrapper.children("div:first").css(p(this.options.style));
b.browser.msie&&this.elements.wrapper.add(this.elements.content).css({zoom:1});this.options.hide.when.event=="unfocus"&&this.elements.tooltip.attr("unfocus",true);typeof this.options.style.width.value=="number"&&this.updateWidth();if(b("<canvas>").get(0).getContext||b.browser.msie){this.options.style.border.radius>0?C.call(this):this.elements.contentWrapper.css({border:this.options.style.border.width+"px solid "+this.options.style.border.color});this.options.style.tip.corner!==false&&x.call(this)}else{this.elements.contentWrapper.css({border:this.options.style.border.width+
"px solid "+this.options.style.border.color});this.options.style.border.radius=0;this.options.style.tip.corner=false;b.fn.qtip.log.error.call(this,2,b.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if(typeof this.options.content.text=="string"&&this.options.content.text.length>0||this.options.content.text.jquery&&this.options.content.text.length>0)c=this.options.content.text;else if(typeof this.elements.target.attr("title")=="string"&&this.elements.target.attr("title").length>0){c=this.elements.target.attr("title").replace("\\n",
"<br />");this.elements.target.attr("title","")}else if(typeof this.elements.target.attr("alt")=="string"&&this.elements.target.attr("alt").length>0){c=this.elements.target.attr("alt").replace("\\n","<br />");this.elements.target.attr("alt","")}else{c=" ";b.fn.qtip.log.error.call(this,1,b.fn.qtip.constants.NO_VALID_CONTENT,"render")}this.options.content.title.text!==false&&D.call(this);this.updateContent(c);E.call(this);this.options.show.ready===true&&this.show();if(this.options.content.url!==false){c=
this.options.content.url;f=this.options.content.data;d=this.options.content.method||"get";this.loadContent(c,f,d)}this.onRender.call(this);b.fn.qtip.log.error.call(this,1,b.fn.qtip.constants.EVENT_RENDERED,"render")}function C(){var c,f,d,a,e,h,j,g,k;c=this;c.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();d=c.options.style.border.width;a=c.options.style.border.radius;e=c.options.style.border.color||c.options.style.tip.color;h=t(a);j={};for(f in h){j[f]='<div rel="'+f+'" style="'+
(f.search(/Left/)!==-1?"left":"right")+":0; position:absolute; height:"+a+"px; width:"+a+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(b("<canvas>").get(0).getContext)j[f]+='<canvas height="'+a+'" width="'+a+'" style="vertical-align: top"></canvas>';else if(b.browser.msie){g=a*2+3;j[f]+='<v:arc stroked="false" fillcolor="'+e+'" startangle="'+h[f][0]+'" endangle="'+h[f][1]+'" style="width:'+g+"px; height:"+g+"px; margin-top:"+(f.search(/bottom/)!==-1?-2:-1)+"px; margin-left:"+(f.search(/Right/)!==
-1?h[f][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}j[f]+="</div>"}f=c.getDimensions().width-Math.max(d,a)*2;f='<div class="qtip-betweenCorners" style="height:'+a+"px; width:"+f+"px; overflow:hidden; background-color:"+e+'; line-height:0.1px; font-size:1px;">';c.elements.wrapper.prepend('<div class="qtip-borderTop" dir="ltr" style="height:'+a+"px; margin-left:"+a+'px; line-height:0.1px; font-size:1px; padding:0;">'+j.topLeft+j.topRight+f);c.elements.wrapper.append('<div class="qtip-borderBottom" dir="ltr" style="height:'+
a+"px; margin-left:"+a+'px; line-height:0.1px; font-size:1px; padding:0;">'+j.bottomLeft+j.bottomRight+f);if(b("<canvas>").get(0).getContext)c.elements.wrapper.find("canvas").each(function(){k=h[b(this).parent("[rel]:first").attr("rel")];u.call(c,b(this),k,a,e)});else b.browser.msie&&c.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>');j=Math.max(a,a+(d-a));c.elements.contentWrapper.css({border:"0px solid "+e,borderWidth:Math.max(d-a,0)+"px "+j+"px"})}function u(c,
f,d,a){c=c.get(0).getContext("2d");c.fillStyle=a;c.beginPath();c.arc(f[0],f[1],d,0,Math.PI*2,false);c.fill()}function x(c){var f,d,a,e;this.elements.tip!==null&&this.elements.tip.remove();f=this.options.style.tip.color||this.options.style.border.color;if(this.options.style.tip.corner!==false){if(!c)c=this.options.style.tip.corner;d=r(c,this.options.style.tip.size.width,this.options.style.tip.size.height);this.elements.tip='<div class="'+this.options.style.classes.tip+'" dir="ltr" rel="'+c+'" style="position:absolute; height:'+
this.options.style.tip.size.height+"px; width:"+this.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(b("<canvas>").get(0).getContext)this.elements.tip+='<canvas height="'+this.options.style.tip.size.height+'" width="'+this.options.style.tip.size.width+'"></canvas>';else if(b.browser.msie){a=this.options.style.tip.size.width+","+this.options.style.tip.size.height;e="m"+d[0][0]+","+d[0][1];e+=" l"+d[1][0]+","+d[1][1];e+=" "+d[2][0]+","+d[2][1];e+=" xe";this.elements.tip+=
'<v:shape fillcolor="'+f+'" stroked="false" filled="true" path="'+e+'" coordsize="'+a+'" style="width:'+this.options.style.tip.size.width+"px; height:"+this.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+(c.search(/top/)!==-1?"bottom":"top")+'"></v:shape>';this.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';this.elements.contentWrapper.css("position","relative")}this.elements.tooltip.prepend(this.elements.tip+
"</div>");this.elements.tip=this.elements.tooltip.find("."+this.options.style.classes.tip).eq(0);b("<canvas>").get(0).getContext&&s.call(this,this.elements.tip.find("canvas:first"),d,f);c.search(/top/)!==-1&&b.browser.msie&&parseInt(b.browser.version.charAt(0))===6&&this.elements.tip.css({marginTop:-4});v.call(this,c)}}function s(c,f,d){c=c.get(0).getContext("2d");c.fillStyle=d;c.beginPath();c.moveTo(f[0][0],f[0][1]);c.lineTo(f[1][0],f[1][1]);c.lineTo(f[2][0],f[2][1]);c.fill()}function v(c){var f;
if(!(this.options.style.tip.corner===false||!this.elements.tip)){c||(c=this.elements.tip.attr("rel"));f=positionAdjust=b.browser.msie?1:0;this.elements.tip.css(c.match(/left|right|top|bottom/)[0],0);if(c.search(/top|bottom/)!==-1){if(b.browser.msie)positionAdjust=parseInt(b.browser.version.charAt(0))===6?c.search(/top/)!==-1?-3:1:c.search(/top/)!==-1?1:2;if(c.search(/Middle/)!==-1)this.elements.tip.css({left:"50%",marginLeft:-(this.options.style.tip.size.width/2)});else if(c.search(/Left/)!==-1)this.elements.tip.css({left:this.options.style.border.radius-
f});else c.search(/Right/)!==-1&&this.elements.tip.css({right:this.options.style.border.radius+f});c.search(/top/)!==-1?this.elements.tip.css({top:-positionAdjust}):this.elements.tip.css({bottom:positionAdjust})}else if(c.search(/left|right/)!==-1){if(b.browser.msie)positionAdjust=parseInt(b.browser.version.charAt(0))===6?1:c.search(/left/)!==-1?1:2;if(c.search(/Middle/)!==-1)this.elements.tip.css({top:"50%",marginTop:-(this.options.style.tip.size.height/2)});else if(c.search(/Top/)!==-1)this.elements.tip.css({top:this.options.style.border.radius-
f});else c.search(/Bottom/)!==-1&&this.elements.tip.css({bottom:this.options.style.border.radius+f});c.search(/left/)!==-1?this.elements.tip.css({left:-positionAdjust}):this.elements.tip.css({right:positionAdjust})}c="padding-"+c.match(/left|right|top|bottom/)[0];f=this.options.style.tip.size[c.search(/left|right/)!==-1?"width":"height"];this.elements.tooltip.css("padding",0);this.elements.tooltip.css(c,f);if(b.browser.msie&&parseInt(b.browser.version.charAt(0))==6){c=parseInt(this.elements.tip.css("margin-top"))||
0;c+=parseInt(this.elements.content.css("margin-top"))||0;this.elements.tip.css({marginTop:c})}}}function D(){var c=this;c.elements.title!==null&&c.elements.title.remove();c.elements.title=b('<div class="'+c.options.style.classes.title+'">').css(p(c.options.style.title,true)).css({zoom:b.browser.msie?1:0}).prependTo(c.elements.contentWrapper);c.options.content.title.text&&c.updateTitle.call(c,c.options.content.title.text);if(c.options.content.title.button!==false&&typeof c.options.content.title.button==
"string")c.elements.button=b('<a class="'+c.options.style.classes.button+'" style="float:right; position: relative"></a>').css(p(c.options.style.button,true)).html(c.options.content.title.button).prependTo(c.elements.title).click(function(f){c.status.disabled||c.hide(f)})}function E(){function c(g){if(d.status.disabled!==true){if(d.options.hide.when.event=="inactive"){b(h).each(function(){e.bind(this+".qtip-inactive",j);d.elements.content.bind(this+".qtip-inactive",j)});j()}clearTimeout(d.timers.show);
clearTimeout(d.timers.hide);d.timers.show=setTimeout(function(){d.show(g)},d.options.show.delay)}}function f(g){if(d.status.disabled!==true){if(d.options.hide.fixed===true&&d.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&b(g.relatedTarget).parents("div.qtip[qtip]").length>0){g.stopPropagation();g.preventDefault();clearTimeout(d.timers.hide);return false}clearTimeout(d.timers.show);clearTimeout(d.timers.hide);d.elements.tooltip.stop(true,true);d.timers.hide=setTimeout(function(){d.hide(g)},
d.options.hide.delay)}}var d,a,e,h;d=this;a=d.options.show.when.target;e=d.options.hide.when.target;if(d.options.hide.fixed)e=e.add(d.elements.tooltip);if(d.options.hide.when.event=="inactive"){h=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];var j=function(g){if(d.status.disabled!==true){clearTimeout(d.timers.inactive);d.timers.inactive=setTimeout(function(){b(h).each(function(){e.unbind(this+".qtip-inactive");d.elements.content.unbind(this+
".qtip-inactive")});d.hide(g)},d.options.hide.delay)}}}else d.options.hide.fixed===true&&d.elements.tooltip.bind("mouseover.qtip",function(){d.status.disabled!==true&&clearTimeout(d.timers.hide)});if(d.options.show.when.target.add(d.options.hide.when.target).length===1&&d.options.show.when.event==d.options.hide.when.event&&d.options.hide.when.event!=="inactive"||d.options.hide.when.event=="unfocus"){d.cache.toggle=0;a.bind(d.options.show.when.event+".qtip",function(g){d.cache.toggle==0?c(g):f(g)})}else{a.bind(d.options.show.when.event+
".qtip",c);d.options.hide.when.event!=="inactive"&&e.bind(d.options.hide.when.event+".qtip",f)}d.options.position.type.search(/(fixed|absolute)/)!==-1&&d.elements.tooltip.bind("mouseover.qtip",d.focus);d.options.position.target==="mouse"&&d.options.position.type!=="static"&&a.bind("mousemove.qtip",function(g){d.cache.mouse={x:g.pageX,y:g.pageY};d.status.disabled===false&&d.options.position.adjust.mouse===true&&d.options.position.type!=="static"&&d.elements.tooltip.css("display")!=="none"&&d.updatePosition(g)})}
function A(c,f,d){var a,e,h;if(d.corner=="center")return f.position;a=b.extend({},c);h={x:false,y:false};e={left:a.left<b.fn.qtip.cache.screen.scroll.left,right:a.left+d.dimensions.width+2>=b.fn.qtip.cache.screen.width+b.fn.qtip.cache.screen.scroll.left,top:a.top<b.fn.qtip.cache.screen.scroll.top,bottom:a.top+d.dimensions.height+2>=b.fn.qtip.cache.screen.height+b.fn.qtip.cache.screen.scroll.top};e={left:e.left&&(d.corner.search(/right/i)!=-1||d.corner.search(/right/i)==-1&&!e.right),right:e.right&&
(d.corner.search(/left/i)!=-1||d.corner.search(/left/i)==-1&&!e.left),top:e.top&&d.corner.search(/top/i)==-1,bottom:e.bottom&&d.corner.search(/bottom/i)==-1};if(e.left){a.left=this.options.position.target!=="mouse"?f.position.left+f.dimensions.width:this.cache.mouse.x;h.x="Left"}else if(e.right){a.left=this.options.position.target!=="mouse"?f.position.left-d.dimensions.width:this.cache.mouse.x-d.dimensions.width;h.x="Right"}if(e.top){a.top=this.options.position.target!=="mouse"?f.position.top+f.dimensions.height:
this.cache.mouse.y;h.y="top"}else if(e.bottom){a.top=this.options.position.target!=="mouse"?f.position.top-d.dimensions.height:this.cache.mouse.y-d.dimensions.height;h.y="bottom"}if(a.left<0){a.left=c.left;h.x=false}if(a.top<0){a.top=c.top;h.y=false}if(this.options.style.tip.corner!==false){a.corner=new String(d.corner);if(h.x!==false)a.corner=a.corner.replace(/Left|Right|Middle/,h.x);if(h.y!==false)a.corner=a.corner.replace(/top|bottom/,h.y);a.corner!==this.elements.tip.attr("rel")&&x.call(this,
a.corner)}return a}function p(c,f){var d,a;d=b.extend(true,{},c);for(a in d)if(f===true&&a.search(/(tip|classes)/i)!==-1)delete d[a];else!f&&a.search(/(width|border|tip|title|classes|user)/i)!==-1&&delete d[a];return d}function y(c){if(typeof c.tip!=="object")c.tip={corner:c.tip};if(typeof c.tip.size!=="object")c.tip.size={width:c.tip.size,height:c.tip.size};if(typeof c.border!=="object")c.border={width:c.border};if(typeof c.width!=="object")c.width={value:c.width};if(typeof c.width.max=="string")c.width.max=
parseInt(c.width.max.replace(/([0-9]+)/i,"jQuery1"));if(typeof c.width.min=="string")c.width.min=parseInt(c.width.min.replace(/([0-9]+)/i,"jQuery1"));if(typeof c.tip.size.x=="number"){c.tip.size.width=c.tip.size.x;delete c.tip.size.x}if(typeof c.tip.size.y=="number"){c.tip.size.height=c.tip.size.y;delete c.tip.size.y}return c}function q(){var c,f;f=[true,{}];for(c=0;c<arguments.length;c++)f.push(arguments[c]);for(c=[b.extend.apply(b,f)];typeof c[0].name=="string";)c.unshift(y(b.fn.qtip.styles[c[0].name]));
c.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},b.fn.qtip.styles.defaults);c=b.extend.apply(b,c);f=b.browser.msie?1:0;c.tip.size.width+=f;c.tip.size.height+=f;if(c.tip.size.width%2>0)c.tip.size.width+=1;if(c.tip.size.height%2>0)c.tip.size.height+=1;if(c.tip.corner===true)c.tip.corner=this.options.position.corner.tooltip==="center"?false:this.options.position.corner.tooltip;return c}function r(c,f,d){f={bottomRight:[[0,0],[f,d],[f,0]],bottomLeft:[[0,0],[f,0],[0,d]],topRight:[[0,
d],[f,0],[f,d]],topLeft:[[0,0],[0,d],[f,d]],topMiddle:[[0,d],[f/2,0],[f,d]],bottomMiddle:[[0,0],[f,0],[f/2,d]],rightMiddle:[[0,0],[f,d/2],[0,d]],leftMiddle:[[f,0],[f,d],[0,d/2]]};f.leftTop=f.bottomRight;f.rightTop=f.bottomLeft;f.leftBottom=f.topRight;f.rightBottom=f.topLeft;return f[c]}function t(c){var f;if(b("<canvas>").get(0).getContext)f={topLeft:[c,c],topRight:[0,c],bottomLeft:[c,0],bottomRight:[0,0]};else if(b.browser.msie)f={topLeft:[-90,90,0],topRight:[-90,90,-c],bottomLeft:[90,270,0],bottomRight:[90,
270,-c]};return f}function B(){var c;c=this.getDimensions();this.elements.bgiframe=this.elements.wrapper.prepend('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+c.height+"px; width:"+c.width+'px" />').children(".qtip-bgiframe:first")}b.fn.qtip=function(c,f){var d,a,e,h,j,g,k,l;if(typeof c=="string"){typeof b(this).data("qtip")!=="object"&&b.fn.qtip.log.error.call(self,
1,b.fn.qtip.constants.NO_TOOLTIP_PRESENT,false);if(c=="api")return b(this).data("qtip").interfaces[b(this).data("qtip").current];else if(c=="interfaces")return b(this).data("qtip").interfaces}else{c||(c={});if(typeof c.content!=="object"||c.content.jquery&&c.content.length>0)c.content={text:c.content};if(typeof c.content.title!=="object")c.content.title={text:c.content.title};if(typeof c.position!=="object")c.position={corner:c.position};if(typeof c.position.corner!=="object")c.position.corner={target:c.position.corner,
tooltip:c.position.corner};if(typeof c.show!=="object")c.show={when:c.show};if(typeof c.show.when!=="object")c.show.when={event:c.show.when};if(typeof c.show.effect!=="object")c.show.effect={type:c.show.effect};if(typeof c.hide!=="object")c.hide={when:c.hide};if(typeof c.hide.when!=="object")c.hide.when={event:c.hide.when};if(typeof c.hide.effect!=="object")c.hide.effect={type:c.hide.effect};if(typeof c.style!=="object")c.style={name:c.style};c.style=y(c.style);h=b.extend(true,{},b.fn.qtip.defaults,
c);h.style=q.call({options:h},h.style);h.user=b.extend(true,{},c)}return b(this).each(function(){if(typeof c=="string"){g=c.toLowerCase();e=b(this).qtip("interfaces");if(typeof e=="object")if(f===true&&g=="destroy")for(;e.length>0;)e[e.length-1].destroy();else{if(f!==true)e=[b(this).qtip("api")];for(d=0;d<e.length;d++)if(g=="destroy")e[d].destroy();else if(e[d].status.rendered===true)if(g=="show")e[d].show();else if(g=="hide")e[d].hide();else if(g=="focus")e[d].focus();else if(g=="disable")e[d].disable(true);
else g=="enable"&&e[d].disable(false)}}else{k=b.extend(true,{},h);k.hide.effect.length=h.hide.effect.length;k.show.effect.length=h.show.effect.length;if(k.position.container===false)k.position.container=b(document.body);if(k.position.target===false)k.position.target=b(this);if(k.show.when.target===false)k.show.when.target=b(this);if(k.hide.when.target===false)k.hide.when.target=b(this);a=b.fn.qtip.interfaces.length;for(d=0;d<a;d++)if(typeof b.fn.qtip.interfaces[d]=="undefined"){a=d;break}j=new z(b(this),
k,a);b.fn.qtip.interfaces[a]=j;if(typeof b(this).data=="object"&&typeof b(this).data("qtip")=="object"){if(typeof b(this).attr("qtip")==="undefined")b(this).data("qtip").current=b(this).data("qtip").interfaces.length;b(this).data("qtip").interfaces.push(j)}else b(this).data("qtip",{current:0,interfaces:[j]});if(k.content.prerender===false&&k.show.when.event!==false&&k.show.ready!==true)k.show.when.target.bind(k.show.when.event+".qtip-"+a+"-create",{qtip:a},function(n){l=b.fn.qtip.interfaces[n.data.qtip];
l.options.show.when.target.unbind(l.options.show.when.event+".qtip-"+n.data.qtip+"-create");l.cache.mouse={x:n.pageX,y:n.pageY};w.call(l);l.options.show.when.target.trigger(l.options.show.when.event)});else{j.cache.mouse={x:k.show.when.target.offset().left,y:k.show.when.target.offset().top};w.call(j)}}})};b(document).ready(function(){b.fn.qtip.cache={screen:{scroll:{left:b(window).scrollLeft(),top:b(window).scrollTop()},width:b(window).width(),height:b(window).height()}};var c;b(window).bind("resize scroll",
function(f){clearTimeout(c);c=setTimeout(function(){if(f.type==="scroll")b.fn.qtip.cache.screen.scroll={left:b(window).scrollLeft(),top:b(window).scrollTop()};else{b.fn.qtip.cache.screen.width=b(window).width();b.fn.qtip.cache.screen.height=b(window).height()}for(i=0;i<b.fn.qtip.interfaces.length;i++){var d=b.fn.qtip.interfaces[i];if(d.status.rendered===true&&(d.options.position.type!=="static"||d.options.position.adjust.scroll&&f.type==="scroll"||d.options.position.adjust.resize&&f.type==="resize"))d.updatePosition(f,
true)}},100)});b(document).bind("mousedown.qtip",function(f){b(f.target).parents("div.qtip").length===0&&b(".qtip[unfocus]").each(function(){var d=b(this).qtip("api");b(this).is(":visible")&&!d.status.disabled&&b(f.target).add(d.elements.target).length>1&&d.hide(f)})})});b.fn.qtip.interfaces=[];b.fn.qtip.log={error:function(){return this}};b.fn.qtip.constants={};b.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",
tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},
onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};b.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,
size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},
background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",
color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);

window.jQuery&&function(a){if(a.browser.msie)try{document.execCommand("BackgroundImageCache",false,true)}catch(m){}a.fn.rating=function(c){if(this.length==0)return this;if(typeof arguments[0]=="string"){if(this.length>1){var d=arguments;return this.each(function(){a.fn.rating.apply(a(this),d)})}a.fn.rating[arguments[0]].apply(this,a.makeArray(arguments).slice(1)||[]);return this}c=a.extend({},a.fn.rating.options,c||{});a.fn.rating.calls++;this.not(".star-rating-applied").addClass("star-rating-applied").each(function(){var b,
e=a(this),k=(this.name||"unnamed-rating").replace(/\[|\]/g,"_").replace(/^\_+|\_+$/g,""),j=a(this.form||document.body),h=j.data("rating");if(!h||h.call!=a.fn.rating.calls)h={count:0,call:a.fn.rating.calls};var g=h[k];if(g)b=g.data("rating");if(g&&b)b.count++;else{b=a.extend({},c||{},(a.metadata?e.metadata():a.meta?e.data():null)||{},{count:0,stars:[],inputs:[]});b.serial=h.count++;g=a('<span class="star-rating-control"/>');e.before(g);g.addClass("rating-to-be-drawn");if(e.attr("disabled"))b.readOnly=
true;g.append(b.cancel=a('<div class="rating-cancel"><a title="'+b.cancel+'">'+b.cancelValue+"</a></div>").mouseover(function(){a(this).rating("drain");a(this).addClass("star-rating-hover")}).mouseout(function(){a(this).rating("draw");a(this).removeClass("star-rating-hover")}).click(function(){a(this).rating("select")}).data("rating",b))}var f=a('<div class="star-rating rater-'+b.serial+'"><a title="'+(this.title||this.value)+'">'+this.value+"</a></div>");g.append(f);this.id&&f.attr("id",this.id);
this.className&&f.addClass(this.className);if(b.half)b.split=2;if(typeof b.split=="number"&&b.split>0){var i=(a.fn.width?f.width():0)||b.starWidth,l=b.count%b.split;i=Math.floor(i/b.split);f.width(i).find("a").css({"margin-left":"-"+l*i+"px"})}b.readOnly?f.addClass("star-rating-readonly"):f.addClass("star-rating-live").mouseover(function(){a(this).rating("fill");a(this).rating("focus")}).mouseout(function(){a(this).rating("draw");a(this).rating("blur")}).click(function(){a(this).rating("select")});
if(this.checked||jQuery(this).attr("rel"))b.current=f;e.hide();e.change(function(){a(this).rating("select")});f.data("rating.input",e.data("rating.star",f));b.stars[b.stars.length]=f[0];b.inputs[b.inputs.length]=e[0];b.rater=h[k]=g;b.context=j;e.data("rating",b);g.data("rating",b);f.data("rating",b);j.data("rating",h)});a(".rating-to-be-drawn").rating("draw").removeClass("rating-to-be-drawn");return this};a.extend(a.fn.rating,{calls:0,focus:function(){var c=this.data("rating");if(!c)return this;if(!c.focus)return this;
var d=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);c.focus&&c.focus.apply(d[0],[d.val(),a("a",d.data("rating.star"))[0]])},blur:function(){var c=this.data("rating");if(!c)return this;if(!c.blur)return this;var d=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);c.blur&&c.blur.apply(d[0],[d.val(),a("a",d.data("rating.star"))[0]])},fill:function(){var c=this.data("rating");if(!c)return this;if(!c.readOnly){this.rating("drain");this.prevAll().andSelf().filter(".rater-"+
c.serial).addClass("star-rating-hover")}},drain:function(){var c=this.data("rating");if(!c)return this;c.readOnly||c.rater.children().filter(".rater-"+c.serial).removeClass("star-rating-on").removeClass("star-rating-hover")},draw:function(){var c=this.data("rating");if(!c)return this;this.rating("drain");if(c.current){c.current.data("rating.input").attr("checked","checked");c.current.prevAll().andSelf().filter(".rater-"+c.serial).addClass("star-rating-on")}else a(c.inputs).removeAttr("checked");c.cancel[c.readOnly||
c.required?"hide":"show"]();this.siblings()[c.readOnly?"addClass":"removeClass"]("star-rating-readonly")},select:function(c,d){var b=this.data("rating");if(!b)return this;if(!b.readOnly){b.current=null;if(typeof c!="undefined"){if(typeof c=="number")return a(b.stars[c]).rating("select",undefined,d);typeof c=="string"&&a.each(b.stars,function(){a(this).data("rating.input").val()==c&&a(this).rating("select",undefined,d)})}else b.current=this[0].tagName=="INPUT"?this.data("rating.star"):this.is(".rater-"+
b.serial)?this:null;this.data("rating",b);this.rating("draw");var e=a(b.current?b.current.data("rating.input"):null);if((d||d==undefined)&&b.callback)b.callback.apply(e[0],[e.val(),a("a",b.current)[0]])}},readOnly:function(c,d){var b=this.data("rating");if(!b)return this;b.readOnly=c||c==undefined?true:false;d?a(b.inputs).attr("disabled","disabled"):a(b.inputs).removeAttr("disabled");this.data("rating",b);this.rating("draw")},disable:function(){this.rating("readOnly",true,true)},enable:function(){this.rating("readOnly",
false,false)}});a.fn.rating.options={cancel:"Cancel Rating",cancelValue:"",split:0,starWidth:16}}(jQuery);

jQuery.fn.ajaxLink=function(){jQuery(this).click(function(){url=jQuery(this).attr("href");if(url.indexOf("ajax=")==-1)url=url.indexOf("?")==-1?url+"?ajax=1":url+"&ajax=1";jQuery.get(url,function(a){scripts=a.match(/<script.*?>.*?<\/script>/gi);a=a.replace(/<script.*?>.*?<\/script>/gi,"");for(i in scripts)eval(scripts[0].replace(/<\/?script.*?>/gi,""));jQuery.loading(false);jQuery.loading(true,{html:a,text:"",max:5E3})});return false})};
jQuery.fn.ajaxDownloadLink=function(){jQuery(this).click(function(){url=jQuery(this).attr("href");if(url.indexOf("ajax=")==-1)url=url.indexOf("?")==-1?url+"?ajax=1":url+"&ajax=1";jQuery.get(url+"&check=1",function(a){error=a.match(/error/gi);jQuery.loading(true,{html:a,text:"",max:5E3});if(!error)window.location=url});return false})};
jQuery.fn.ajaxPaging=function(){jQuery(this).click(function(){contentholder=jQuery(this).parent().parent().parent().parent();url=jQuery(this).attr("href");if(url.indexOf("ajax=")==-1)url=url.indexOf("?")==-1?url+"?ajax=1":url+"&ajax=1";jQuery.get(url,function(a){contentholder.html(a).jCore();jQuery(window).scrollTop()>contentholder.offset().top&&jQuery("html,body").animate({scrollTop:contentholder.offset().top-10},50,"linear")});return false})};
jQuery.fn.ajaxContentLink=function(){jQuery(this).click(function(){if(typeof jQuery(this).qtip=="undefined")return true;if(jQuery(this).data("qtip")&&!jQuery(this).attr("target")){jQuery(this).qtip("show");return false}url=jQuery(this).attr("href");tooltiptitle=jQuery(this).attr("title");if(url.indexOf("ajax=")==-1)url=url.indexOf("?")==-1?url+"?ajax=1":url+"&ajax=1";if(jQuery(this).attr("target")){target=jQuery(jQuery(this).attr("target"));jQuery.get(url,function(a){target.html(a).jCore()});return false}jQuery(this).qtip({content:{url:url,
title:{text:tooltiptitle,button:"<span>Close</span>"}},style:{name:"cream",tip:true,width:{max:700}},position:{adjust:{screen:true}},show:false,hide:false,api:{onContentUpdate:function(){this.elements.content.jCore()}}});jQuery(this).qtip("show");return false})};jQuery.fn.ajaxLightboxLink=function(){jQuery(this).lightBox({hideDetails:true,disableNavigation:true,ajaxContent:true})};

(function(b){function o(){if(b.fn.ajaxSubmit.debug){var a="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log)window.console.log(a);else window.opera&&window.opera.postError&&window.opera.postError(a)}}b.fn.ajaxSubmit=function(a){function e(){function q(){var r=h.attr("target"),n=h.attr("action");k.setAttribute("target",z);k.getAttribute("method")!="POST"&&k.setAttribute("method","POST");k.getAttribute("action")!=g.url&&k.setAttribute("action",g.url);g.skipEncodingOverride||
h.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});g.timeout&&setTimeout(function(){C=true;t()},g.timeout);var m=[];try{if(g.extraData)for(var v in g.extraData)m.push(b('<input type="hidden" name="'+v+'" value="'+g.extraData[v]+'" />').appendTo(k)[0]);u.appendTo("body");u.data("form-plugin-onload",t);k.submit()}finally{k.setAttribute("action",n);r?k.setAttribute("target",r):h.removeAttr("target");b(m).remove()}}function t(){if(!D){var r=true;try{if(C)throw"timeout";var n,m;m=w.contentWindow?
w.contentWindow.document:w.contentDocument?w.contentDocument:w.document;var v=g.dataType=="xml"||m.XMLDocument||b.isXMLDoc(m);o("isXml="+v);if(!v&&(m.body==null||m.body.innerHTML=="")){if(--G){o("requeing onLoad callback, DOM not available");setTimeout(t,250);return}o("Could not access iframe DOM after 100 tries.");return}o("response detected");D=true;j.responseText=m.body?m.body.innerHTML:null;j.responseXML=m.XMLDocument?m.XMLDocument:m;j.getResponseHeader=function(H){return{"content-type":g.dataType}[H]};
if(g.dataType=="json"||g.dataType=="script"){var E=m.getElementsByTagName("textarea")[0];if(E)j.responseText=E.value;else{var F=m.getElementsByTagName("pre")[0];if(F)j.responseText=F.innerHTML}}else if(g.dataType=="xml"&&!j.responseXML&&j.responseText!=null)j.responseXML=A(j.responseText);n=b.httpData(j,g.dataType)}catch(B){o("error caught:",B);r=false;j.error=B;b.handleError(g,j,"error",B)}if(r){g.success(n,"success");x&&b.event.trigger("ajaxSuccess",[j,g])}x&&b.event.trigger("ajaxComplete",[j,g]);
x&&!--b.active&&b.event.trigger("ajaxStop");if(g.complete)g.complete(j,r?"success":"error");setTimeout(function(){u.removeData("form-plugin-onload");u.remove();j.responseXML=null},100)}}function A(r,n){if(window.ActiveXObject){n=new ActiveXObject("Microsoft.XMLDOM");n.async="false";n.loadXML(r)}else n=(new DOMParser).parseFromString(r,"text/xml");return n&&n.documentElement&&n.documentElement.tagName!="parsererror"?n:null}var k=h[0];if(b(":input[name=submit]",k).length)alert('Error: Form elements must not be named "submit".');
else{var g=b.extend({},b.ajaxSettings,a),s=b.extend(true,{},b.extend(true,{},b.ajaxSettings),g),z="jqFormIO"+(new Date).getTime(),u=b('<iframe id="'+z+'" name="'+z+'" src="'+g.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />'),w=u[0];u.css({position:"absolute",top:"-1000px",left:"-1000px"});var j={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=
1;u.attr("src",g.iframeSrc)}},x=g.global;x&&!b.active++&&b.event.trigger("ajaxStart");x&&b.event.trigger("ajaxSend",[j,g]);if(s.beforeSend&&s.beforeSend(j,s)===false)s.global&&b.active--;else if(!j.aborted){var D=false,C=0;if(s=k.clk){var y=s.name;if(y&&!s.disabled){g.extraData=g.extraData||{};g.extraData[y]=s.value;if(s.type=="image"){g.extraData[y+".x"]=k.clk_x;g.extraData[y+".y"]=k.clk_y}}}g.forceSync?q():setTimeout(q,10);var G=100}}}if(!this.length){o("ajaxSubmit: skipping submit process - no element selected");
return this}if(typeof a=="function")a={success:a};var c=b.trim(this.attr("action"));if(c)c=(c.match(/^([^#]+)/)||[])[1];c=c||window.location.href||"";c=c.indexOf("?")==-1?c+"?ajax=1":c+"&ajax=1";a=b.extend({url:c,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},a||{});c={};this.trigger("form-pre-serialize",[this,a,c]);if(c.veto){o("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(a.beforeSerialize&&a.beforeSerialize(this,
a)===false){o("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var f=this.formToArray(a.semantic);if(a.data){a.extraData=a.data;for(var d in a.data)if(a.data[d]instanceof Array)for(var l in a.data[d])f.push({name:d,value:a.data[d][l]});else f.push({name:d,value:a.data[d]})}if(a.beforeSubmit&&a.beforeSubmit(f,this,a)===false){o("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[f,this,a,c]);if(c.veto){o("ajaxSubmit: submit vetoed via form-submit-validate trigger");
return this}d=b.param(f);if(a.type.toUpperCase()=="GET"){a.url+=(a.url.indexOf("?")>=0?"&":"?")+d;a.data=null}else a.data=d;if(typeof a.target=="undefined")a.target=jQuery(this).attr("target");var h=this,i=[];a.resetForm&&i.push(function(){h.resetForm()});a.clearForm&&i.push(function(){h.clearForm()});if(!a.dataType&&a.target){var p=a.success||function(){};i.push(function(q){var t=a.replaceTarget?"replaceWith":"html";b(a.target)[t](q).each(p,arguments);b(a.target).jCore()})}else a.success&&i.push(a.success);
a.success=function(q,t,A){if(!a.target){jQuery.loading(false);jQuery.loading(true,{html:q,text:"",max:5E3})}for(var k=0,g=i.length;k<g;k++)i[k].apply(a,[q,t,A||h,h])};d=b("input:file",this).fieldValue();l=false;for(c=0;c<d.length;c++)if(d[c])l=true;if(d.length&&a.iframe!==false||a.iframe||l||0)a.closeKeepAlive?b.get(a.closeKeepAlive,e):e();else b.ajax(a);this.trigger("form-submit-notify",[this,a]);return this};b.fn.ajaxForm=function(a){return this.ajaxFormUnbind().bind("submit.form-plugin",function(e){e.preventDefault();
b(this).ajaxSubmit(a)}).bind("click.form-plugin",function(e){var c=e.target,f=b(c);if(!f.is(":submit,input:image")){c=f.closest(":submit");if(c.length==0)return;c=c[0]}var d=this;d.clk=c;if(c.type=="image")if(e.offsetX!=undefined){d.clk_x=e.offsetX;d.clk_y=e.offsetY}else if(typeof b.fn.offset=="function"){f=f.offset();d.clk_x=e.pageX-f.left;d.clk_y=e.pageY-f.top}else{d.clk_x=e.pageX-c.offsetLeft;d.clk_y=e.pageY-c.offsetTop}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},100)})};b.fn.ajaxFormUnbind=
function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(a){var e=[];if(this.length==0)return e;var c=this[0],f=a?c.getElementsByTagName("*"):c.elements;if(!f)return e;for(var d=0,l=f.length;d<l;d++){var h=f[d],i=h.name;if(i)if(a&&c.clk&&h.type=="image"){if(!h.disabled&&c.clk==h){e.push({name:i,value:b(h).val()});e.push({name:i+".x",value:c.clk_x},{name:i+".y",value:c.clk_y})}}else if((h=b.fieldValue(h,true))&&h.constructor==Array)for(var p=0,q=h.length;p<q;p++)e.push({name:i,
value:h[p]});else h!==null&&typeof h!="undefined"&&e.push({name:i,value:h})}if(!a&&c.clk){a=b(c.clk);f=a[0];if((i=f.name)&&!f.disabled&&f.type=="image"){e.push({name:i,value:a.val()});e.push({name:i+".x",value:c.clk_x},{name:i+".y",value:c.clk_y})}}return e};b.fn.formSerialize=function(a){return b.param(this.formToArray(a))};b.fn.fieldSerialize=function(a){var e=[];this.each(function(){var c=this.name;if(c){var f=b.fieldValue(this,a);if(f&&f.constructor==Array)for(var d=0,l=f.length;d<l;d++)e.push({name:c,
value:f[d]});else f!==null&&typeof f!="undefined"&&e.push({name:this.name,value:f})}});return b.param(e)};b.fn.fieldValue=function(a){for(var e=[],c=0,f=this.length;c<f;c++){var d=b.fieldValue(this[c],a);d===null||typeof d=="undefined"||d.constructor==Array&&!d.length||(d.constructor==Array?b.merge(e,d):e.push(d))}return e};b.fieldValue=function(a,e){var c=a.name,f=a.type,d=a.tagName.toLowerCase();if(typeof e=="undefined")e=true;if(e&&(!c||a.disabled||f=="reset"||f=="button"||(f=="checkbox"||f=="radio")&&
!a.checked||(f=="submit"||f=="image")&&a.form&&a.form.clk!=a||d=="select"&&a.selectedIndex==-1))return null;if(d=="select"){var l=a.selectedIndex;if(l<0)return null;c=[];d=a.options;var h=(f=f=="select-one")?l+1:d.length;for(l=f?l:0;l<h;l++){var i=d[l];if(i.selected){var p=i.value;p||(p=i.attributes&&i.attributes.value&&!i.attributes.value.specified?i.text:i.value);if(f)return p;c.push(p)}}return c}return a.value};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 a=this.type,e=this.tagName.toLowerCase();if(a=="text"||a=="password"||e=="textarea")this.value="";else if(a=="checkbox"||a=="radio")this.checked=false;else if(e=="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(a){if(a==undefined)a=true;return this.each(function(){this.disabled=
!a})};b.fn.selected=function(a){if(a==undefined)a=true;return this.each(function(){var e=this.type;if(e=="checkbox"||e=="radio")this.checked=a;else if(this.tagName.toLowerCase()=="option"){e=b(this).parent("select");a&&e[0]&&e[0].type=="select-one"&&e.find("option").selected(false);this.selected=a}})}})(jQuery);

/*
 CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
 @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
*/
(function(b){b.fn.lightBox=function(a){function j(){if(a.activeImage==a.imageArray.length-1)a.activeImage=-1;a.activeImage+=1;g()}function r(){b("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box" style="z-index: 101"><div id="lightbox-container-image">'+(a.ajaxContent?'<div id="lightbox-image"></div>':'<img id="lightbox-image" />')+'<div style="" id="lightbox-nav"><a href="javascript://" id="lightbox-nav-btnPrev" title="Prev"></a><a href="javascript://" id="lightbox-nav-btnNext" title="Next"></a></div><div id="lightbox-loading"><a href="javascript://" id="lightbox-loading-link"></a></div></div></div><div id="lightbox-container-image-data-box"><a href="javascript://" id="lightbox-secNav-btnSlideshow" title="Slideshow"></a><a href="javascript://" id="lightbox-secNav-btnClose" title="Close"></a><a href="javascript://" id="lightbox-secNav-btnDownload" title="Download"></a><a href="javascript://" id="lightbox-secNav-btnNext" title="Next"></a><a href="javascript://" id="lightbox-secNav-btnPrev" title="Prev"></a><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div></div></div></div>');
if(b("#lightbox-container-image-box").css("border-top-style")=="none")a.containerBorderSize=10;var d=k();b("#jquery-overlay").css({backgroundColor:a.overlayBgColor,opacity:a.overlayOpacity,width:d[0],height:d[1]}).fadeIn();var c=l();b("#jquery-lightbox").css({top:c[1]+d[3]/10,left:c[0]}).show();b("#jquery-overlay,#jquery-lightbox").click(function(e){e.target===this&&i()});a.disableSlideShow||b("#lightbox-secNav-btnSlideshow").click(function(){if(a.slideShow){b(this).removeClass("pause");clearTimeout(a.slideShow);
a.slideShow=0}else{b(this).addClass("pause");a.slideShow=setTimeout(function(){j()},a.slideShowTimeOut)}return false});a.disableDownload||b("#lightbox-secNav-btnDownload").click(function(){picsrc=b("#lightbox-image").attr("src").replace(/view=/,"download=");if(picsrc.indexOf("download=")!=-1)window.location=picsrc;else window.open(picsrc);return false});b("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){i();return false});b(window).resize(function(){var e=k();b("#jquery-overlay").css({width:e[0],
height:e[1]});var f=l();b("#jquery-lightbox").css({top:f[1]+e[3]/10,left:f[0]})})}function g(d){b("#lightbox-nav-btnNext,#lightbox-nav-btnPrev,#lightbox-secNav-btnNext,#lightbox-secNav-btnPrev").css("display","none");a.slideShow||b("#lightbox-loading").show();!a.ajaxContent&&!a.containerBorderSize&&!d&&b("#lightbox-image").clone(false).attr("id","lightbox-tmp-image").prependTo("#lightbox-container-image");b("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();
if(a.ajaxContent){url=a.imageArray[a.activeImage][0];if(url.indexOf("ajax=")==-1)url=url.indexOf("?")==-1?url+"?ajax=1":url+"&ajax=1";b.get(url,function(e){jc=b("#lightbox-image").html(e).jCore();m(jc.width(),jc.height())})}else{var c=new Image;c.onload=function(){b("#lightbox-image").attr("src",a.imageArray[a.activeImage][0]);if(a.maximumImageWidth&&c.width>a.maximumImageWidth){widthpercent=a.maximumImageWidth*100/c.width;c.width=a.maximumImageWidth;c.height=widthpercent*c.height/100}b("#lightbox-image").attr("width",
c.width);b("#lightbox-image").attr("height",c.height);b("#lightbox-image").css({position:"absolute",left:"50%","margin-left":"-"+c.width/2+"px"});m(c.width,c.height);c.onload=function(){}};if(a.imageArray[a.activeImage])c.src=a.imageArray[a.activeImage][0]}}function m(d,c){var e=b("#lightbox-container-image-box").width(),f=b("#lightbox-container-image-box").height(),n=d+a.containerBorderSize*2,o=c+a.containerBorderSize*2;e=e-n;f=f-o;!a.ajaxContent&&!a.containerBorderSize&&p();b("#lightbox-container-image-box").animate({width:n,
height:o},a.containerResizeSpeed,function(){if(a.ajaxContent||a.containerBorderSize)p()});if(e==0&&f==0)b.browser.msie?q(250):q(100);b("#lightbox-container-image-data-box").css({width:d});a.fixedNavigation||b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:c+a.containerBorderSize*2})}function p(){a.slideShow||b("#lightbox-loading").hide();b("#lightbox-image").fadeIn(function(){b("#lightbox-tmp-image").remove();if(!a.hideDetails){b("#lightbox-container-image-data-box").slideDown("fast");
b("#lightbox-image-details-caption").hide();if(a.disableSlideShow||a.imageArray.length<=1){b("#lightbox-secNav-btnSlideshow").hide();b("#lightbox-container-image-data").css("padding-left","0")}a.disableDownload&&b("#lightbox-secNav-btnDownload").hide();a.imageArray[a.activeImage][1]&&b("#lightbox-image-details-caption").html(a.imageArray[a.activeImage][1]).show();a.imageArray.length>1&&b("#lightbox-image-details-currentNumber").html(a.txtImage+" "+(a.activeImage+1)+" "+a.txtOf+" "+a.imageArray.length).show()}a.disableNavigation||
s();if(!a.disableSlideShow&&a.slideShow)a.slideShow=setTimeout(function(){j()},a.slideShowTimeOut)});if(a.slideShow){if(a.imageArray.length-1>a.activeImage){objNext=new Image;objNext.src=a.imageArray[a.activeImage+1][0]}if(a.activeImage>0){objPrev=new Image;objPrev.src=a.imageArray[a.activeImage-1][0]}}}function s(){if(a.fixedNavigation)b("#lightbox-nav").css("display","none");else{b("#lightbox-nav").show();b("#lightbox-secNav-btnPrev,#lightbox-secNav-btnNext").css("display","none")}if(!(a.imageArray.length<=
1)){navb=a.fixedNavigation?"#lightbox-secNav-btnPrev":"#lightbox-nav-btnPrev";b(navb).css("display","block");b(navb).unbind().bind("click",function(){a.activeImage=a.activeImage!=0?a.activeImage-1:a.imageArray.length-1;g();return false});navb=a.fixedNavigation?"#lightbox-secNav-btnNext":"#lightbox-nav-btnNext";b(navb).css("display","block");b(navb).unbind().bind("click",function(){a.activeImage=a.activeImage!=a.imageArray.length-1?a.activeImage+1:0;g();return false});t()}}function t(){b(document).keydown(function(d){if(d==
null){keycode=event.keyCode;escapeKey=27}else{keycode=d.keyCode;escapeKey=d.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if(key==a.keyToClose||key=="x"||keycode==escapeKey)i();if(key==a.keyToPrev||keycode==37)if(a.activeImage!=0){a.activeImage-=1;g();b(document).unbind()}if(key==a.keyToNext||keycode==39)if(a.activeImage!=a.imageArray.length-1){a.activeImage+=1;g();b(document).unbind()}})}function i(){a.slideShow&&b("#lightbox-secNav-btnSlideshow").click();b("#jquery-lightbox").remove();
b("#jquery-overlay").fadeOut(function(){b("#jquery-overlay").remove()});b("embed, object, select").css({visibility:"visible"})}function k(){var d,c;if(window.innerHeight&&window.scrollMaxY){d=window.innerWidth+window.scrollMaxX;c=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){d=document.body.scrollWidth;c=document.body.scrollHeight}else{d=document.body.offsetWidth;c=document.body.offsetHeight}var e,f;if(self.innerHeight){e=document.documentElement.clientWidth?
document.documentElement.clientWidth:self.innerWidth;f=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){e=document.documentElement.clientWidth;f=document.documentElement.clientHeight}else if(document.body){e=document.body.clientWidth;f=document.body.clientHeight}pageHeight=c<f?f:c;pageWidth=d<e?d:e;return arrayPageSize=Array(pageWidth,pageHeight,e,f)}function l(){var d,c;if(self.pageYOffset){c=self.pageYOffset;d=self.pageXOffset}else if(document.documentElement&&
document.documentElement.scrollTop){c=document.documentElement.scrollTop;d=document.documentElement.scrollLeft}else if(document.body){c=document.body.scrollTop;d=document.body.scrollLeft}return arrayPageScroll=Array(d,c)}function q(d){var c=new Date;do var e=new Date;while(e-c<d)}a=b.extend({ajaxContent:false,hideDetails:false,slideShow:0,slideShowTimeOut:5E3,disableSlideShow:false,overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,disableNavigation:false,disableDownload:false,maximumImageWidth:960,
containerBorderSize:0,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},a);var h=this;return this.unbind("click").click(function(){b("embed, object, select").css({visibility:"hidden"});r();a.imageArray.length=0;a.activeImage=0;if(h.length==1)a.imageArray.push(Array(this.getAttribute("href"),this.getAttribute("title")));else for(var d=0;d<h.length;d++)a.imageArray.push(Array(h[d].getAttribute("href"),h[d].getAttribute("title")));
for(;a.imageArray[a.activeImage][0]!=this.getAttribute("href");)a.activeImage++;g(true);return false})}})(jQuery);

(function(c){c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.2",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==
"hidden")return false;var d=b&&b=="left"?"scrollLeft":"scrollTop",e=false;if(a[d]>0)return true;a[d]=1;e=a[d]>0;a[d]=0;return e},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,f,g){return c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,e,g)},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}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect",
"none")},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",
1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==undefined)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b=="absolute"||b=="relative"||b=="fixed"){b=parseInt(a.css("zIndex"));if(!isNaN(b)&&b!=0)return b}a=a.parent()}}return 0}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");return(/input|select|textarea|button|object/.test(b)?
!a.disabled:"a"==b||"area"==b?a.href||!isNaN(d):!isNaN(d))&&!c(a)["area"==b?"parents":"closest"](":hidden").length},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}})}})(jQuery);

(function(d){function J(){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]==undefined)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.2"}});var y=(new Date).getTime();d.extend(J.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){var c=this._getInst(a);if(c){this._setDate(c,b);this._updateDatepicker(c);this._updateAlternate(c)}},_getDateDatepicker:function(a,b){var c=this._getInst(a);
c&&!c.inline&&this._setDateFromField(c,b);return c?this._getDate(c):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==undefined?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);b.dpDiv.stop(true,true).animate({height:"show",opacity:"show"},f,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};b.dpDiv.stop(true,true).animate({height:"hide",opacity:"hide"},c,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){a=this._getInst(d(a)[0]);a.input&&a._selectingMonthYear&&!d.browser.msie&&a.input.focus();a._selectingMonthYear=
!a._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){var c=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(c);
c.input&&c.input.val(b);this._updateAlternate(c);var e=this._get(c,"onSelect");if(e)e.apply(c.input?c.input[0]:null,[b,c]);else c.input&&c.input.trigger("change");if(c.inline)this._updateDatepicker(c);else{this._hideDatepicker();this._lastInput=c.input[0];typeof c.input[0]!="object"&&c.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)/864E5)/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=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,G){p=o(p)?G:w;
for(w=0;w<p.length;w++)if(b.substr(s,p[w].length)==p[w]){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)/1E4);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*1E7,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())/864E5,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()*1E4+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]!==undefined?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"),G=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var K=this._getDefaultDate(a),H="",C=0;C<i[0];C++){for(var L="",D=0;D<i[1];D++){var M=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 N=0;N<A;N++){x+="<tr>";var O=!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,I=B&&!G||!F[0]||j&&q<j||o&&q>o;O+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==M.getTime()&&g==a.selectedMonth&&a._keyEvent||K.getTime()==q.getTime()&&K.getTime()==M.getTime()?" "+this._dayOverClass:"")+(I?" "+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]+'"':"")+(I?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!w?"&#xa0;":I?'<span class="ui-state-default">'+q.getDate()+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==u.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+
1);q=this._daylightSavingAdjust(q)}x+=O+"</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>':""):"");L+=x}H+=L}H+=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 H},_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"),e=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=e&&b>e?e: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"),e=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!e||b.getTime()<=e.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 J;d.datepicker.initialized=
false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.2";window["DP_jQuery_"+y]=d})(jQuery);

(function(i){i.fn.tabby=function(n){var q=i.extend({},i.fn.tabby.defaults,n),l=i.fn.tabby.pressed;return this.each(function(){$this=i(this);var b=i.meta?i.extend({},q,$this.data()):q;$this.bind("keydown",function(a){var o=i.fn.tabby.catch_kc(a);if(16==o)l.shft=true;if(17==o){l.ctrl=true;setTimeout("$.fn.tabby.pressed.ctrl = false;",1E3)}if(18==o){l.alt=true;setTimeout("$.fn.tabby.pressed.alt = false;",1E3)}if(9==o&&!l.ctrl&&!l.alt){l.last=o;setTimeout("$.fn.tabby.pressed.last = null;",0);a=i(a.target).get(0);
var h=l.shft;o=a.scrollTop;if(a.setSelectionRange){var c=a.selectionStart,j=a.selectionEnd;if(c==j)if(h)if("\t"==a.value.substring(c-b.tabString.length,c)){a.value=a.value.substring(0,c-b.tabString.length)+a.value.substring(c);a.focus();a.setSelectionRange(c-b.tabString.length,c-b.tabString.length)}else{if("\t"==a.value.substring(c,c+b.tabString.length)){a.value=a.value.substring(0,c)+a.value.substring(c+b.tabString.length);a.focus();a.setSelectionRange(c,c)}}else{a.value=a.value.substring(0,c)+b.tabString+
a.value.substring(c);a.focus();a.setSelectionRange(c+b.tabString.length,c+b.tabString.length)}else{var e=a.value.split("\n"),f=[],g=0,k=0;for(var d in e){k=g+e[d].length;f.push({start:g,end:k,selected:g<=c&&k>c||k>=j&&g<j||g>c&&k<j});g=k+1}e=0;for(d in f)if(f[d].selected){g=f[d].start+e;if(h&&b.tabString==a.value.substring(g,g+b.tabString.length)){a.value=a.value.substring(0,g)+a.value.substring(g+b.tabString.length);e-=b.tabString.length}else if(!h){a.value=a.value.substring(0,g)+b.tabString+a.value.substring(g);
e+=b.tabString.length}}a.focus();a.setSelectionRange(c+(e>0?b.tabString.length:e<0?-b.tabString.length:0),j+e)}}else if(document.selection){d=document.selection.createRange();if(a==d.parentElement())if(""==d.text){if(h){h=d.getBookmark();d.moveStart("character",-b.tabString.length);if(b.tabString==d.text)d.text="";else{d.moveToBookmark(h);d.moveEnd("character",b.tabString.length);if(b.tabString==d.text)d.text=""}d.collapse(true)}else{d.text=b.tabString;d.collapse(false)}d.select()}else{j=d.text;c=
j.length;f=j.split("\r\n");j=document.body.createTextRange();j.moveToElementText(a);j.setEndPoint("EndToStart",d);g=j.text;e=g.split("\r\n");g=g.length;k=document.body.createTextRange();k.moveToElementText(a);k.setEndPoint("StartToEnd",d);k=k.text;var p=document.body.createTextRange();p.moveToElementText(a);p.setEndPoint("StartToEnd",j);var m=p.text;p=i(a).html();i("#r3").text(g+" + "+c+" + "+k.length+" = "+p.length);if(g+m.length<p.length){e.push("");g+=2;if(h&&b.tabString==f[0].substring(0,b.tabString.length))f[0]=
f[0].substring(b.tabString.length);else h||(f[0]=b.tabString+f[0])}else if(h&&b.tabString==e[e.length-1].substring(0,b.tabString.length))e[e.length-1]=e[e.length-1].substring(b.tabString.length);else h||(e[e.length-1]=b.tabString+e[e.length-1]);for(m=1;m<f.length;m++)if(h&&b.tabString==f[m].substring(0,b.tabString.length))f[m]=f[m].substring(b.tabString.length);else h||(f[m]=b.tabString+f[m]);if(1==e.length&&0==g)if(h&&b.tabString==f[0].substring(0,b.tabString.length))f[0]=f[0].substring(b.tabString.length);
else h||(f[0]=b.tabString+f[0]);g+c+k.length<p.length&&f.push("");j.text=e.join("\r\n");d.text=f.join("\r\n");h=document.body.createTextRange();h.moveToElementText(a);0<g?h.setEndPoint("StartToEnd",j):h.setEndPoint("StartToStart",j);h.setEndPoint("EndToEnd",d);h.select()}}a.scrollTop=o;return false}}).bind("keyup",function(a){if(16==i.fn.tabby.catch_kc(a))l.shft=false}).bind("blur",function(a){9==l.last&&i(a.target).one("focus",function(){l.last=null}).get(0).focus()})})};i.fn.tabby.catch_kc=function(n){return n.keyCode?
n.keyCode:n.charCode?n.charCode:n.which};i.fn.tabby.pressed={shft:false,ctrl:false,alt:false,last:null};i.fn.tabby.defaults={tabString:String.fromCharCode(9)}})(jQuery);

jQuery.fn.extend({fcToggle:function(){function c(a){if(typeof a=="string"){cookie=cookie.indexOf("|"+a.replace(/^fc/,""))==-1?cookie+"|"+a.replace(/^fc/,""):cookie.replace(RegExp("\\|"+a.replace(/^fc/,""),"g"),"");typeof jQuery.cookie!="undefined"&&jQuery.cookie("fcstates",cookie,{expires:10})}}function d(a,b){a=jQuery(a);a.is(".expanded")||a.parent().is(".expanded")?a.next().stop().css({opacity:"",height:""}).animate({opacity:"hide",height:"hide"},b?0:"slow",function(){a.removeClass("expanded").addClass("colapsed");
!b&&a.attr("name")&&c(a.attr("name"))}):a.next().stop().css({opacity:"",height:""}).animate({opacity:"show",height:"show"},b?0:"fast",function(){a.removeClass("colapsed").addClass("expanded");!b&&a.attr("name")&&c(a.attr("name"))});a.parent().is(".expanded")&&a.parent().removeClass("expanded")}cookie=typeof jQuery.cookie!="undefined"?jQuery.cookie("fcstates"):"";if(cookie==null)cookie="";return this.click(function(){d(this)})}});

(function(a){function s(f){f=parseInt(f).toString(16);return f.length<2?"0"+f:f}function y(f){for(;f;){var c=a.css(f,"backgroundColor");if(c&&c!="transparent"&&c!="rgba(0, 0, 0, 0)"){if(c.indexOf("rgb")>=0){f=c.match(/\d+/g);return"#"+s(f[0])+s(f[1])+s(f[2])}return c}if(f.nodeName.toLowerCase()=="html")break;f=f.parentNode}return"#ffffff"}function z(f,c,e){switch(f){case "round":return Math.round(e*(1-Math.cos(Math.asin(c/e))));case "cool":return Math.round(e*(1+Math.cos(Math.asin(c/e))));case "sharp":return Math.round(e*
(1-Math.cos(Math.acos(c/e))));case "bite":return Math.round(e*Math.cos(Math.asin((e-c-1)/e)));case "slide":return Math.round(e*Math.atan2(c,e/c));case "jut":return Math.round(e*Math.atan2(e,e-c-1));case "curl":return Math.round(e*Math.atan(c));case "tear":return Math.round(e*Math.cos(c));case "wicked":return Math.round(e*Math.tan(c));case "long":return Math.round(e*Math.sqrt(c));case "sculpt":return Math.round(e*Math.log(e-c-1,e));case "dogfold":case "dog":return c&1?c+1:e;case "dog2":return c&2?
c+1:e;case "dog3":return c&3?c+1:e;case "fray":return c%2*e;case "notch":return e;case "bevelfold":case "bevel":return c+1}}var p=document.createElement("div").style,m=p.MozBorderRadius!==undefined,t=p.WebkitBorderRadius!==undefined,n=p.borderRadius!==undefined||p.BorderRadius!==undefined;p=document.documentMode||0;var A=a.browser.msie&&(a.browser.version<8&&!p||p<8),v=a.browser.msie&&function(){var f=document.createElement("div");try{f.style.setExpression("width","0+0");f.style.removeExpression("width")}catch(c){return false}return true}();
a.support=a.support||{};a.support.borderRadius=m||t||n;a.fn.corner=function(f){if(this.length==0){if(!a.isReady&&this.selector){var c=this.selector,e=this.context;a(function(){a(c,e).corner(f)})}return this}return this.each(function(){var i=a(this),d=[i.attr(a.fn.corner.defaults.metaAttr)||"",f||""].join(" ").toLowerCase(),u=/keep/.test(d),h=(d.match(/cc:(#[0-9a-f]+)/)||[])[1],j=(d.match(/sc:(#[0-9a-f]+)/)||[])[1],g=parseInt((d.match(/(\d+)px/)||[])[1])||10,w=(d.match(/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/)||
["round"])[0],B=/dogfold|bevelfold/.test(d),x={T:0,B:1};d={TL:/top|tl|left/.test(d),TR:/top|tr|right/.test(d),BL:/bottom|bl|left/.test(d),BR:/bottom|br|right/.test(d)};var q,l,b,k,r,o;if(!d.TL&&!d.TR&&!d.BL&&!d.BR)d={TL:1,TR:1,BL:1,BR:1};if(a.fn.corner.defaults.useNative&&w=="round"&&(n||m||t)&&!h&&!j){if(d.TL)i.css(n?"border-top-left-radius":m?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",g+"px");if(d.TR)i.css(n?"border-top-right-radius":m?"-moz-border-radius-topright":"-webkit-border-top-right-radius",
g+"px");if(d.BL)i.css(n?"border-bottom-left-radius":m?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",g+"px");if(d.BR)i.css(n?"border-bottom-right-radius":m?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",g+"px")}else{i=document.createElement("div");a(i).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:j||"transparent",borderStyle:"solid"});j={T:parseInt(a.css(this,"paddingTop"))||0,R:parseInt(a.css(this,"paddingRight"))||
0,B:parseInt(a.css(this,"paddingBottom"))||0,L:parseInt(a.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!u)this.style.border="none";i.style.borderColor=h||y(this.parentNode);u=a(this).outerHeight();for(q in x)if((h=x[q])&&(d.BL||d.BR)||!h&&(d.TL||d.TR)){i.style.borderStyle="none "+(d[q+"R"]?"solid":"none")+" none "+(d[q+"L"]?"solid":"none");l=document.createElement("div");a(l).addClass("jquery-corner");b=l.style;h?this.appendChild(l):this.insertBefore(l,this.firstChild);
if(h&&u!="auto"){if(a.css(this,"position")=="static")this.style.position="relative";b.position="absolute";b.bottom=b.left=b.padding=b.margin="0";if(v)b.setExpression("width","this.parentNode.offsetWidth");else b.width="100%"}else if(!h&&a.browser.msie){if(a.css(this,"position")=="static")this.style.position="relative";b.position="absolute";b.top=b.left=b.right=b.padding=b.margin="0";if(v){k=(parseInt(a.css(this,"borderLeftWidth"))||0)+(parseInt(a.css(this,"borderRightWidth"))||0);b.setExpression("width",
"this.parentNode.offsetWidth - "+k+'+ "px"')}else b.width="100%"}else{b.position="relative";b.margin=!h?"-"+j.T+"px -"+j.R+"px "+(j.T-g)+"px -"+j.L+"px":j.B-g+"px -"+j.R+"px -"+j.B+"px -"+j.L+"px"}for(b=0;b<g;b++){k=Math.max(0,z(w,b,g));r=i.cloneNode(false);r.style.borderWidth="0 "+(d[q+"R"]?k:0)+"px 0 "+(d[q+"L"]?k:0)+"px";h?l.appendChild(r):l.insertBefore(r,l.firstChild)}if(B&&a.support.boxModel)if(!(h&&A))for(o in d)if(d[o])if(!(h&&(o=="TL"||o=="TR")))if(!(!h&&(o=="BL"||o=="BR"))){b={position:"absolute",
border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:i.style.borderColor};k=a("<div/>").css(b).css({width:g+"px",height:"1px"});switch(o){case "TL":k.css({bottom:0,left:0});break;case "TR":k.css({bottom:0,right:0});break;case "BL":k.css({top:0,left:0});break;case "BR":k.css({top:0,right:0});break}l.appendChild(k[0]);b=a("<div/>").css(b).css({top:0,bottom:0,width:"1px",height:g+"px"});switch(o){case "TL":b.css({left:g});break;case "TR":b.css({right:g});break;case "BL":b.css({left:g});
break;case "BR":b.css({right:g});break}l.appendChild(b[0])}}}})};a.fn.uncorner=function(){if(n||m||t)this.css(n?"border-radius":m?"-moz-border-radius":"-webkit-border-radius",0);a("div.jquery-corner",this).remove();return this};a.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);

/*
bxSlider v2.0
Plugin developed by: Steven Wanderski
http://bxslider.com
http://stevenwanderski.com

Released under the GPL license:
http://www.gnu.org/licenses/gpl.html
*/

(function($){$.fn.bxSlider=function(options){var defaults={alignment:'horizontal',controls:true,speed:500,pager:true,pager_short:false,pager_short_separator:' / ',margin:0,next_text:'next',next_image:'',prev_text:'prev',prev_image:'',auto:false,pause:3500,auto_direction:'next',auto_hover:true,auto_controls:false,ticker:false,ticker_controls:false,ticker_direction:'next',ticker_hover:true,stop_text:'stop',start_text:'start',wrapper_class:'bxslider_wrap'};var o=$.extend(defaults,options);return this.each(function(){var $this=$(this);var $kids=$this.children();var l=$this.children().length;var first=$this.children(':first').clone();var last=$this.children(':last').clone();var w=0,h=0,current_temp=0,pos=0,d=0;var is_working=false,playing=true,tick_play=true;var current=1;var ease='swing',side='',t='';var ani={};$this.append(first).prepend(last);$this.wrap('<div class="bxslider_container"></div>');$this.parent().wrap('<div class="'+o.wrapper_class+'"></div>');if(o.alignment=='horizontal'){$this.children().css({'float':'left','listStyle':'none','marginRight':o.margin});w=first.outerWidth(true);$this.css({'width':'99999px','position':'relative','left':-w});$this.parent().css({'position':'relative','overflow':'hidden','width':w-o.margin});}else if(o.alignment=='vertical'){$kids.each(function(){if($(this).height()>h){h=$(this).height();}});w=first.outerWidth();$this.children().css({'height':h,'listStyle':'none','marginBottom':o.margin});$this.css({'height':'99999px','width':w,'position':'relative','top':-(h+o.margin)});$this.parent().css({'position':'relative','overflow':'hidden','height':h})}
if(o.pager&&!o.ticker){$this.parent().after('<div class="bx_pager"></div>');if(!o.pager_short){var $a;$kids.each(function(index){$a=$('<a href="#">'+(index+1)+'</a>');$this.parent().siblings('.bx_pager').append($a);$a.click(function(){is_working=false;tick_play=false;$this.stop();move_slide(index+1);current=index+1;if(o.auto){clearInterval(t);$this.parent().siblings('.auto_controls').find('a').html(o.start_text);playing=false;}
else if(o.ticker){$this.parent().siblings('.ticker_controls').find('a').html(o.start_text);playing=false;}
return false;});});}else{$this.parent().siblings('.bx_pager').append();}
set_active(1);}
if(o.controls&&!o.ticker){if(o.next_image!=''||o.prev_image!=''){$this.parent().after('<a class="prev" href="#"><img src="'+o.prev_image+'" /></a><a class="next" href="#"><img src="'+o.next_image+'" /></a>');}
else{$this.parent().after('<a class="prev" href="#">'+o.prev_text+'</a><a class="next" href="#">'+o.next_text+'</a>');}
$this.parent().siblings('.next').click(function(){if(!is_working){move_slide(++current);}
if(o.auto){clearInterval(t);$this.parent().siblings('.auto_controls').find('a').html(o.start_text);playing=false;}
return false;});$this.parent().siblings('.prev').click(function(){if(!is_working){move_slide(--current);}
if(o.auto){clearInterval(t);$this.parent().siblings('.auto_controls').find('a').html(o.start_text);playing=false;}
return false;});}
if(o.auto&&!o.ticker){t=setInterval(function(){if(o.auto_direction=='next'){move_slide(++current);}else{move_slide(--current);}},o.pause);if(o.auto_hover){$this.hover(function(){clearInterval(t);},function(){if(playing){t=setInterval(function(){if(o.auto_direction=='next'){move_slide(++current);}
else{move_slide(--current);}},o.pause);}});}
if(o.auto_controls){$this.parent().after('<div class="auto_controls"><a class="auto_link" href="#">'+o.stop_text+'</a></div>');$this.parent().siblings('.auto_controls').find('a').click(function(){if(playing){clearInterval(t);$(this).html(o.start_text);playing=false;}
else{t=setInterval(function(){if(o.auto_direction=='next'){move_slide(++current);}else{move_slide(--current);}},o.pause);$(this).html(o.stop_text);playing=true;}
return false;});}}
if(o.ticker){var tick_play=true;tick_slide();$this.hover(function(){$this.stop();},function(){if(tick_play){tick_slide();}});if(o.ticker_controls){$this.parent().after('<div class="ticker_controls"><a class="ticker_link" href="#">'+o.stop_text+'</a></div>');$this.parent().siblings('.ticker_controls').find('a').click(function(){if(tick_play){$this.stop();$(this).html(o.start_text);tick_play=false;}
else{is_working=false;$(this).html(o.stop_text)
tick_slide();tick_play=true;}
return false;});}}
function tick_slide(){if(o.ticker_direction=='next'&&o.alignment=='horizontal'){$this.animate({left:'-=5px'},o.speed/5,'linear',function(){if(parseInt($this.css('left'))<=-((l+1)*w)){$this.css('left',-w);}
tick_slide();});}else if(o.ticker_direction=='prev'&&o.alignment=='horizontal'){$this.animate({left:'+=5px'},o.speed/5,'linear',function(){if(parseInt($this.css('left'))>=-(w)){$this.css('left',-((l+1)*w));}
tick_slide();});}else if(o.ticker_direction=='next'&&o.alignment=='vertical'){$this.animate({top:'-=5px'},o.speed/5,'linear',function(){if(parseInt($this.css('top'))<=-((l+1)*(h+o.margin))){$this.css('top',-(h+o.margin));}
tick_slide();});}else if(o.ticker_direction=='prev'&&o.alignment=='vertical'){$this.animate({top:'+=4px'},o.speed/5,'linear',function(){if(parseInt($this.css('top'))>-(h+o.margin)){$this.css('top',-((l+1)*(h+o.margin-1)));}
tick_slide();});}}
function move_slide(num){if(o.ticker){ease='linear';}
if(!is_working){if(o.alignment=='horizontal'){d=w;side='left';}
else if(o.alignment=='vertical'){d=h+o.margin;side='top';}
pos=num*d;ani[side]=-pos;is_working=true;$this.animate(ani,o.speed,ease,function(){is_working=false;if(current>l){$this.css(side,-d);current=1;}
else if(current<1){$this.css(side,-(d*l));current=l;}
set_active(current);});}}
function set_active(num){if(o.pager&&!o.pager_short){$this.parent().siblings('.bx_pager').find('a').removeClass('active').eq(num-1).addClass('active');}
else if(o.pager_short){$this.parent().siblings('.bx_pager').html(num+o.pager_short_separator+$kids.length);}}});};})(jQuery);
(function(b){function j(a,c){this.$element=b(a);this.options=c;this.enabled=true;this.fixTitle()}j.prototype={show:function(){var a=this.getTitle();if(a&&this.enabled){var c=this.tip();c.find(".tipsy-inner")[this.options.html?"html":"text"](a);c[0].className="tipsy";c.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);a=b.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var e=c[0].offsetWidth,h=c[0].offsetHeight,
f=typeof this.options.gravity=="function"?this.options.gravity.call(this.$element[0]):this.options.gravity,g;switch(f.charAt(0)){case "n":g={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-e/2};break;case "s":g={top:a.top-h-this.options.offset,left:a.left+a.width/2-e/2};break;case "e":g={top:a.top+a.height/2-h/2,left:a.left-e-this.options.offset};break;case "w":g={top:a.top+a.height/2-h/2,left:a.left+a.width+this.options.offset};break}if(f.length==2)g.left=f.charAt(1)=="w"?a.left+a.width/
2-15:a.left+a.width/2-e+15;c.css(g).addClass("tipsy-"+f);this.options.fade?c.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):c.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){b(this).remove()}):this.tip().remove()},fixTitle:function(){var a=this.$element;if(a.attr("title")||typeof a.attr("original-title")!="string")a.attr("original-title",a.attr("title")||"").removeAttr("title")},
getTitle:function(){var a,c=this.$element,e=this.options;this.fixTitle();e=this.options;if(typeof e.title=="string")a=c.attr(e.title=="title"?"original-title":e.title);else if(typeof e.title=="function")a=e.title.call(c[0]);return(a=(""+a).replace(/(^\s*|\s*$)/,""))||e.fallback},tip:function(){if(!this.$tip)this.$tip=b('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();
this.options=this.$element=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled}};b.fn.tipsy=function(a){function c(d){var i=b.data(d,"tipsy");if(!i){i=new j(d,b.fn.tipsy.elementOptions(d,a));b.data(d,"tipsy",i)}return i}function e(){var d=c(this);d.hoverState="in";if(a.delayIn==0)d.show();else{d.fixTitle();setTimeout(function(){d.hoverState=="in"&&d.show()},a.delayIn)}}function h(){var d=c(this);d.hoverState="out";
a.delayOut==0?d.hide():setTimeout(function(){d.hoverState=="out"&&d.hide()},a.delayOut)}if(a===true)return this.data("tipsy");else if(typeof a=="string"){var f=this.data("tipsy");f&&f[a]();return this}a=b.extend({},b.fn.tipsy.defaults,a);a.live||this.each(function(){c(this)});if(a.trigger!="manual"){f=a.live?"live":"bind";var g=a.trigger=="hover"?"mouseleave":"blur";this[f](a.trigger=="hover"?"mouseenter":"focus",e)[f](g,h)}return this};b.fn.tipsy.defaults={delayIn:0,delayOut:0,fade:false,fallback:"",
gravity:"n",html:false,live:false,offset:0,opacity:0.8,title:"title",trigger:"hover"};b.fn.tipsy.elementOptions=function(a,c){return b.metadata?b.extend({},c,b(a).metadata()):c};b.fn.tipsy.autoNS=function(){return b(this).offset().top>b(document).scrollTop()+b(window).height()/2?"s":"n"};b.fn.tipsy.autoWE=function(){return b(this).offset().left>b(document).scrollLeft()+b(window).width()/2?"e":"w"}})(jQuery);

jQuery.jCore={url:{genPathFromString:function(a){a=a.replace(/(<([^>]+)>)/ig,"");a=a.replace(" ","-");return a=a.replace(/([^a-z^0-9^_^-]*)/ig,"")}},tooltip:{display:function(a,c){jQuery.loading(false);c==true?jQuery.loading(true,{html:a,text:"",max:5E3}):jQuery.loading(true,{text:a,max:5E3})}},form:{INPUT_TYPE_TEXT:1,INPUT_TYPE_EMAIL:2,INPUT_TYPE_FILE:12,appendEntryTo:function(a,c,b,e,h,f,g){if(a==undefined)return false;html="";html+="<div class='form-entry form-entry-"+jQuery.jCore.url.genPathFromString(b)+
"'><div class='form-entry-title'>"+c+"</div><div class='form-entry-content'>";html+=e==this.INPUT_TYPE_TEXT||e==this.INPUT_TYPE_EMAIL?"<input type='text' name='"+b+"' class='text-entry' value='"+f+"' "+g+"/> ":e==this.INPUT_TYPE_FILE?"<input type='file' name='"+b+"' class='file-entry' value='"+f+"' "+g+"/> ":"This type is not supported yet! ";html+="<a href='javascript://' class='remove-link' onclick=\"jQuery.jCore.form.removeEntry(this);\">Remove</a></div></div>";jQuery(a).append(html);return true},
removeEntry:function(a){if(a==undefined)return false;jQuery(a).closest(".form-entry").remove();return true}},modules:{}};
jQuery.fn.extend({jCore:function(){return this.each(function(){typeof jQuery.loading!="undefined"&&jQuery.loading({onAjax:true,delay:1E3});typeof jQuery(this).fcToggle!="undefined"&&jQuery(this).find(".fc-title").fcToggle();typeof jQuery(this).mailme!="undefined"&&jQuery(this).find(".mailme").mailme();typeof jQuery(this).rating!="undefined"&&jQuery(this).find(".star-rating").rating({split:2,callback:function(){if(jQuery(this).attr("href")){jQuery(this).ajaxLink();jQuery(this).click();return false}}});
if(typeof jQuery(this).corner!="undefined"){jQuery(this).find(".rounded-corners-top").corner("top 5px");jQuery(this).find(".rounded-corners-bottom").corner("bottom 5px");jQuery(this).find(".rounded-corners").corner("5px")}typeof jQuery(this).dropDownMenu!="undefined"&&jQuery(this).find("#main-menu .menu").dropDownMenu();if(JCORE_VERSION=="undefined"||JCORE_VERSION<"0.6"){jQuery(this).find(".list tbody tr").mouseenter(function(){jQuery(this).addClass("hilight")});jQuery(this).find(".list tbody tr").mouseleave(function(){jQuery(this).removeClass("hilight")})}jQuery(this).find(".confirm-link").click(function(){return confirm("Please confirm your action: "+
jQuery(this).attr("title")+"?!")});typeof jQuery(this).ajaxLink!="undefined"&&jQuery(this).find(".ajax-link").ajaxLink();typeof jQuery(this).ajaxDownloadLink!="undefined"&&jQuery(this).find(".ajax-download-link").ajaxDownloadLink();typeof jQuery(this).ajaxForm!="undefined"&&jQuery(this).find("form.ajax-form").ajaxForm();typeof jQuery(this).ajaxContentLink!="undefined"&&jQuery(this).find(".ajax-content-link").ajaxContentLink();typeof jQuery(this).ajaxLightboxLink!="undefined"&&jQuery(this).find(".ajax-lightbox-link").ajaxLightboxLink();
typeof jQuery(this).ajaxPaging!="undefined"&&jQuery(this).find(".paging-ajax a").ajaxPaging();jQuery(this).find(".checkbox-all").click(function(){var a=this.checked;jQuery(this).parents("form").find("input[type=checkbox]").each(function(){this.checked=a})});typeof jQuery(this).datepicker!="undefined"&&jQuery(this).find(".calendar-input").each(function(){if(jQuery(this).is(".timestamp")){d=new Date;dateformat="yy-mm-dd "+d.getHours()+":"+d.getMinutes()+":00"}else dateformat="yy-mm-dd";jQuery(this).datepicker({dateFormat:dateformat}).after(jQuery("<a class='clear-calendar-input'>&nbsp;</a>").click(function(){jQuery(this).parent().find("input").val("");
return false})).after(jQuery("<a class='show-calendar-input'>&nbsp;</a>").click(function(){jQuery(this).parent().find("input").focus();return false}))});typeof jQuery(this).ColorPicker!="undefined"&&jQuery(this).find(".color-input").each(function(){jQuery(this).ColorPicker({onBeforeShow:function(){$(this).ColorPickerSetColor(this.value)}}).after(jQuery("<a class='clear-color-input'>&nbsp;</a>").click(function(){jQuery(this).parent().find("input").val("");return false})).after(jQuery("<a class='show-color-input'>&nbsp;</a>").click(function(){jQuery(this).parent().find("input").focus();
return false}))});typeof jQuery(this).lightBox!="undefined"&&jQuery(function(){var a=[];jQuery("a[rel^=lightbox]").each(function(){jQuery.inArray(jQuery(this).attr("rel"),a)&&a.push(jQuery(this).attr("rel"))});jQuery(a).each(function(c,b){jQuery("a[rel="+b+"]").lightBox()})});typeof jQuery(this).lightBox!="undefined"&&jQuery(function(){var a=[];jQuery("a[rel^=videolightbox]").each(function(){jQuery.inArray(jQuery(this).attr("rel"),a)&&a.push(jQuery(this).attr("rel"))});jQuery(a).each(function(c,b){jQuery("a[rel="+
b+"]").lightBox({disableSlideShow:true,disableDownload:true,ajaxContent:true,fixedNavigation:true,txtImage:"Video"})})});typeof jQuery(this).qtip!="undefined"&&jQuery(this).find(".qtip").qtip({style:{name:"cream",tip:true},position:{adjust:{screen:true}}});if(typeof jQuery(this).tipsy!="undefined"){jQuery(this).find(".list td[title]").tipsy({delayIn:100,html:true,gravity:"w"});jQuery(this).find(".tipsy,.list a[title],.admin-section-item [title],.button[title],.attachment [title],.star-rating [title],.comment-rating-up,.comment-rating-down").tipsy({delayIn:100,
html:true});jQuery(this).find(".calendar-input[title],.timestamp[title],.color-input[title]").tipsy({trigger:"focus",gravity:"w",offset:50});jQuery(this).find("input[type=file][title]").tipsy({delayIn:100,trigger:"hover",gravity:"w"});jQuery(this).find("input[title],textarea[title],select[title]").tipsy({trigger:"focus",gravity:"w"})}typeof jQuery(this).tabby!="undefined"&&jQuery(this).find("textarea.code-editor").tabby();typeof jQuery(this).keypad!="undefined"&&jQuery(this).find('input[type="password"]').keypad({keypadOnly:false,
layout:$.keypad.qwertyLayout})})}});

