(function(g,j){function h(){if(!c.isReady){try{l.documentElement.doScroll("left")}catch(a){setTimeout(h,1);return}c.ready()}}function o(a,b){b.src?c.ajax({url:b.src,async:!1,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function p(a,b,d,f,e,k){var i=a.length;if(typeof b==="object"){for(var g in b)p(a,g,b[g],f,e,d);return a}if(d!==j){f=!k&&f&&c.isFunction(d);for(g=0;g<i;g++)e(a[g],b,f?d.call(a[g],g,e(a[g],b)):d,k);return a}return i?
e(a[0],b):j}function q(){return(new Date).getTime()}function t(){return!1}function v(){return!0}function w(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function D(a){var b,d=[],f=[],e=arguments,k,i,g,m,z,h;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var l=i.live.slice(0);for(m=0;m<l.length;m++)i=l[m],i.origType.replace(P,"")===a.type?f.push(i.selector):l.splice(m--,1);k=c(a.target).closest(f,a.currentTarget);z=0;for(h=k.length;z<
h;z++)for(m=0;m<l.length;m++)if(i=l[m],k[z].selector===i.selector){g=k[z].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];(!f||f!==g)&&d.push({elem:g,handleObj:i})}z=0;for(h=d.length;z<h;z++)if(k=d[z],a.currentTarget=k.elem,a.data=k.handleObj.data,a.handleObj=k.handleObj,k.handleObj.origHandler.apply(k.elem,e)===!1){b=!1;break}return b}}function Q(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function T(a,
b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var b=c.data(a[d++]),e=c.data(this,b);if(b=b&&b.events){delete e.handle;e.events={};for(var k in b)for(var i in b[k])c.event.add(this,k,b[k][i],b[k][i].data)}}})}function E(a,b,d){var f,e,k,b=b&&b[0]?b[0].ownerDocument||b[0]:l;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===l&&!ia.test(a[0])&&(c.support.checkClone||!ja.test(a[0])))e=!0,(k=c.fragments[a[0]])&&k!==1&&(f=k);f||(f=b.createDocumentFragment(),c.clean(a,
b,f,d));e&&(c.fragments[a[0]]=k?f:1);return{fragment:f,cacheable:e}}function F(a,b){var d={};c.each(ka.concat.apply([],ka.slice(0,b)),function(){d[this]=a});return d}function s(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c=function(a,b){return new c.fn.init(a,b)},B=g.jQuery,K=g.$,l=g.document,L,M=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,N=/^.[^:#\[\.,]*$/,H=/\S/,G=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,A=navigator.userAgent,x=!1,C=
[],I,W=Object.prototype.toString,X=Object.prototype.hasOwnProperty,Y=Array.prototype.push,R=Array.prototype.slice,la=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f,e;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!b)return this.context=l,this[0]=l.body,this.selector="body",this.length=1,this;if(typeof a==="string")if((d=M.exec(a))&&(d[1]||!b))if(d[1])return e=b?b.ownerDocument||b:l,(f=n.exec(a))?c.isPlainObject(b)?(a=[l.createElement(f[1])],
c.fn.attr.call(a,b,!0)):a=[e.createElement(f[1])]:(f=E([d[1]],[e]),a=(f.cacheable?f.fragment.cloneNode(!0):f.fragment).childNodes),c.merge(this,a);else{if(f=l.getElementById(d[2])){if(f.id!==d[2])return L.find(a);this.length=1;this[0]=f}this.context=l;this.selector=a;return this}else return!b&&/^\w+$/.test(a)?(this.selector=a,this.context=l,a=l.getElementsByTagName(a),c.merge(this,a)):!b||b.jquery?(b||L).find(a):c(b).find(a);else if(c.isFunction(a))return L.ready(a);if(a.selector!==j)this.selector=
a.selector,this.context=a.context;return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?Y.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b==="find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,
b){return c.each(this,a,b)},ready:function(a){c.bindReady();c.isReady?a.call(l,c):C&&C.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,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||c(null)},push:Y,sort:[].sort,splice:[].splice};
c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=!1,e,k,i,g;typeof a==="boolean"&&(f=a,a=arguments[1]||{},b=2);typeof a!=="object"&&!c.isFunction(a)&&(a={});d===b&&(a=this,--b);for(;b<d;b++)if((e=arguments[b])!=null)for(k in e)i=a[k],g=e[k],a!==g&&(f&&g&&(c.isPlainObject(g)||c.isArray(g))?(i=i&&(c.isPlainObject(i)||c.isArray(i))?i:c.isArray(g)?[]:{},a[k]=c.extend(f,i,g)):g!==j&&(a[k]=g));return a};c.extend({noConflict:function(a){g.$=K;if(a)g.jQuery=
B;return c},isReady:!1,ready:function(){if(!c.isReady){if(!l.body)return setTimeout(c.ready,13);c.isReady=!0;if(C){for(var a,b=0;a=C[b++];)a.call(l,c);C=null}c.fn.triggerHandler&&c(l).triggerHandler("ready")}},bindReady:function(){if(!x){x=!0;if(l.readyState==="complete")return c.ready();if(l.addEventListener)l.addEventListener("DOMContentLoaded",I,!1),g.addEventListener("load",c.ready,!1);else if(l.attachEvent){l.attachEvent("onreadystatechange",I);g.attachEvent("onload",c.ready);var a=!1;try{a=
g.frameElement==null}catch(b){}l.documentElement.doScroll&&a&&h()}}},isFunction:function(a){return W.call(a)==="[object Function]"},isArray:function(a){return W.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||W.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return!1;if(a.constructor&&!X.call(a,"constructor")&&!X.call(a.constructor.prototype,"isPrototypeOf"))return!1;for(var b in a);return b===j||X.call(a,b)},isEmptyObject:function(a){for(var b in a)return!1;return!0},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 g.JSON&&g.JSON.parse?g.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&H.test(a)){var b=l.getElementsByTagName("head")[0]||l.documentElement,d=l.createElement("script");
d.type="text/javascript";c.support.scriptEval?d.appendChild(l.createTextNode(a)):d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,k=a.length,i=k===j||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],d)===!1)break}else for(;e<k;){if(b.apply(a[e++],d)===!1)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===!1)break}else for(d=a[0];e<k&&b.call(d,e,d)!==!1;d=a[++e]);return a},
trim:function(a){return(a||"").replace(G,"")},makeArray:function(a,b){var d=b||[];a!=null&&(a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?Y.call(d,a):c.merge(d,a));return d},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,f=b.length;c<f;c++)if(b[c]===a)return c;return-1},merge:function(a,b){var c=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[c++]=b[f];else for(;b[f]!==j;)a[c++]=b[f++];a.length=c;return a},grep:function(a,
b,c){for(var f=[],e=0,k=a.length;e<k;e++)!c!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,c){for(var f=[],e,k=0,i=a.length;k<i;k++)e=b(a[k],k,c),e!=null&&(f[f.length]=e);return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){arguments.length===2&&(typeof b==="string"?(d=a,a=d[b],b=j):b&&!c.isFunction(b)&&(d=b,b=j));!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:{}});A=c.uaMatch(A);if(A.browser)c.browser[A.browser]=!0,c.browser.version=A.version;if(c.browser.webkit)c.browser.safari=!0;if(la)c.inArray=function(a,b){return la.call(b,a)};L=c(l);l.addEventListener?I=function(){l.removeEventListener("DOMContentLoaded",I,!1);c.ready()}:l.attachEvent&&(I=function(){l.readyState===
"complete"&&(l.detachEvent("onreadystatechange",I),c.ready())});(function(){c.support={};var a=l.documentElement,b=l.createElement("script"),d=l.createElement("div"),f="script"+q();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),k=d.getElementsByTagName("a")[0];if(e&&e.length&&k){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,
htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:l.createElement("select").appendChild(l.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(l.createElement("div"))).parentNode===null,deleteExpando:!0,checkClone:!1,scriptEval:!1,noCloneEvent:!0,boxModel:null};
b.type="text/javascript";try{b.appendChild(l.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(g[f])c.support.scriptEval=!0,delete g[f];try{delete b.test}catch(u){c.support.deleteExpando=!1}a.removeChild(b);d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",function z(){c.support.noCloneEvent=!1;d.detachEvent("onclick",z)}),d.cloneNode(!0).fireEvent("onclick"));d=l.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=l.createDocumentFragment();
a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;c(function(){var a=l.createElement("div");a.style.width=a.style.paddingLeft="1px";l.body.appendChild(a);c.boxModel=c.support.boxModel=a.offsetWidth===2;l.body.removeChild(a).style.display="none"});a=function(a){var b=l.createElement("div"),a="on"+a,c=a in b;c||(b.setAttribute(a,"return;"),c=typeof b[a]==="function");return c};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=
d=e=k=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var J="jQuery"+q(),Ca=0,ma={};c.extend({cache:{},expando:J,noData:{embed:!0,object:!0,applet:!0},data:function(a,b,d){if(!a.nodeName||!c.noData[a.nodeName.toLowerCase()]){var a=a==g?ma:a,f=a[J],e=c.cache;if(!f&&typeof b==="string"&&d===j)return null;f||(f=++Ca);typeof b===
"object"?(a[J]=f,e[f]=c.extend(!0,{},b)):e[f]||(a[J]=f,e[f]={});a=e[f];d!==j&&(a[b]=d);return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!a.nodeName||!c.noData[a.nodeName.toLowerCase()]){var a=a==g?ma:a,d=a[J],f=c.cache,e=f[d];b?e&&(delete e[b],c.isEmptyObject(e)&&c.removeData(a)):(c.support.deleteExpando?delete a[c.expando]:a.removeAttribute&&a.removeAttribute(c.expando),delete f[d])}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a===
"object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===j){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);f===j&&this.length&&(f=c.data(this[0],a));return f===j&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){var b=(b||"fx")+"queue",f=c.data(a,b);if(!d)return f||[];!f||
c.isArray(d)?f=c.data(a,b,c.makeArray(d)):f.push(d);return f}},dequeue:function(a,b){var b=b||"fx",d=c.queue(a,b),f=d.shift();f==="inprogress"&&(f=d.shift());f&&(b==="fx"&&d.unshift("inprogress"),f.call(a,function(){c.dequeue(a,b)}))}});c.fn.extend({queue:function(a,b){typeof a!=="string"&&(b=a,a="fx");if(b===j)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 na=/[\n\t]/g,Z=/\s+/,Da=/\r/g,Ea=/href|src|style/,Fa=/(button|input)/i,Ga=/(button|input|object|select|textarea)/i,Ha=/^(a|area)$/i,oa=/radio|checkbox/;c.fn.extend({attr:function(a,b){return p(this,a,b,!0,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(b){var d=c(this);d.addClass(a.call(this,b,d.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(Z),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var k=" "+e.className+" ",i=e.className,g=0,m=b.length;g<m;g++)k.indexOf(" "+b[g]+" ")<0&&(i+=" "+b[g]);e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.removeClass(a.call(this,b,d.attr("class")))});if(a&&typeof a==="string"||a===j)for(var b=(a||"").split(Z),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var k=(" "+e.className+" ").replace(na," "),i=0,g=b.length;i<g;i++)k=k.replace(" "+b[i]+" "," ");e.className=c.trim(k)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(d){var f=c(this);f.toggleClass(a.call(this,
d,f.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,k=0,i=c(this),g=b,m=a.split(Z);e=m[k++];)g=f?g:!i.hasClass(e),i[g?"addClass":"removeClass"](e);else if(d==="undefined"||d==="boolean")this.className&&c.data(this,"__className__",this.className),this.className=this.className||a===!1?"":c.data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",b=0,c=this.length;b<c;b++)if((" "+this[b].className+" ").replace(na," ").indexOf(a)>-1)return!0;return!1},val:function(a){if(a===
j){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options,b=b.type==="select-one";if(d<0)return null;for(var k=b?d:0,d=b?d+1:e.length;k<d;k++){var i=e[k];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(oa.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Da,"")}return j}var g=c.isFunction(a);return this.each(function(b){var d=
c(this),e=a;if(this.nodeType===1)if(g&&(e=a.call(this,b,d.val())),typeof e==="number"&&(e+=""),c.isArray(e)&&oa.test(this.type))this.checked=c.inArray(d.val(),e)>=0;else if(c.nodeName(this,"select")){var f=c.makeArray(e);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),f)>=0});if(!f.length)this.selectedIndex=-1}else this.value=e})}});c.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===
8)return j;if(f&&b in c.attrFn)return c(a)[b](d);var f=a.nodeType!==1||!c.isXMLDoc(a),e=d!==j,b=f&&c.props[b]||b;if(a.nodeType===1){var k=Ea.test(b);if(b in a&&f&&!k){e&&(b==="type"&&Fa.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:Ga.test(a.nodeName)||Ha.test(a.nodeName)&&a.href?0:j;return a[b]}if(!c.support.style&&
f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?j:a}return c.style(a,b,d)}});var P=/\.(.*)$/,Ia=function(a){return a.replace(/[^\w\s\.\|`]/g,function(a){return"\\"+a})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){a.setInterval&&a!==g&&!a.frameElement&&(a=g);var e,k;if(d.handler)e=d,d=e.handler;if(!d.guid)d.guid=c.guid++;if(k=c.data(a)){var i=k.events=
k.events||{},h=k.handle;if(!h)k.handle=h=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(h.elem,arguments):j};h.elem=a;for(var b=b.split(" "),m,z=0,l;m=b[z++];){k=e?c.extend({},e):{handler:d,data:f};m.indexOf(".")>-1?(l=m.split("."),m=l.shift(),k.namespace=l.slice(0).sort().join(".")):(l=[],k.namespace="");k.type=m;k.guid=d.guid;var o=i[m],p=c.event.special[m]||{};if(!o&&(o=i[m]=[],!p.setup||p.setup.call(a,f,l,h)===!1))a.addEventListener?a.addEventListener(m,h,!1):
a.attachEvent&&a.attachEvent("on"+m,h);if(p.add&&(p.add.call(a,k),!k.handler.guid))k.handler.guid=d.guid;o.push(k);c.event.global[m]=!0}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,k=0,i,g,m,h,l,o,j=c.data(a),p=j&&j.events;if(j&&p){if(b&&b.type)d=b.handler,b=b.type;if(!b||typeof b==="string"&&b.charAt(0)===".")for(e in b=b||"",p)c.event.remove(a,e+b);else{for(b=b.split(" ");e=b[k++];)if(h=e,i=e.indexOf(".")<0,g=[],i||(g=e.split("."),e=g.shift(),m=RegExp("(^|\\.)"+
c.map(g.slice(0).sort(),Ia).join("\\.(?:.*\\.)?")+"(\\.|$)")),l=p[e])if(d){h=c.event.special[e]||{};for(n=f||0;n<l.length;n++)if(o=l[n],d.guid===o.guid){if(i||m.test(o.namespace))f==null&&l.splice(n--,1),h.remove&&h.remove.call(a,o);if(f!=null)break}if(l.length===0||f!=null&&l.length===1)(!h.teardown||h.teardown.call(a,g)===!1)&&pa(a,e,j.handle),delete p[e]}else for(var n=0;n<l.length;n++)if(o=l[n],i||m.test(o.namespace))c.event.remove(a,h,o.handler,n),l.splice(n--,1);if(c.isEmptyObject(p)){if(b=
j.handle)b.elem=null;delete j.events;delete j.handle;c.isEmptyObject(j)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[J]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0)a.type=e=e.slice(0,-1),a.exclusive=!0;d||(a.stopPropagation(),c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)}));if(!d||d.nodeType===3||d.nodeType===8)return j;a.result=j;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=
d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if((!d||!d.nodeName||!c.noData[d.nodeName.toLowerCase()])&&d["on"+e]&&d["on"+e].apply(d,b)===!1)a.result=!1}catch(k){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,!0);else if(!a.isDefaultPrevented()){var f=a.target,i,g=c.nodeName(f,"a")&&e==="click",m=c.event.special[e]||{};if((!m._default||m._default.call(d,a)===!1)&&!g&&(!f||!f.nodeName||!c.noData[f.nodeName.toLowerCase()])){try{if(f[e])(i=f["on"+e])&&(f["on"+e]=
null),c.event.triggered=!0,f[e]()}catch(h){}i&&(f["on"+e]=i);c.event.triggered=!1}}},handle:function(a){var b,d,f,e,a=arguments[0]=c.event.fix(a||g.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b)d=a.type.split("."),a.type=d.shift(),f=RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var k=d.length;e<k;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=
i;i=i.handler.apply(this,arguments);if(i!==j)a.result=i,i===!1&&(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[J])return a;for(var b=a,a=c.Event(b),d=this.props.length,f;d;)f=this.props[--d],a[f]=b[f];if(!a.target)a.target=a.srcElement||l;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=l.documentElement,d=l.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!==j)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:D}))},remove:function(a){var b=!0,d=a.origType.replace(P,"");c.each(c.data(this,"events").live||
[],function(){if(d===this.origType.replace(P,""))return b=!1});b&&c.event.remove(this,a.origType,D)}},beforeunload:{setup:function(a,b,c){if(this.setInterval)this.onbeforeunload=c;return!1},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var pa=l.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type):
this.type=a;this.timeStamp=q();this[J]=!0};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=v;var a=this.originalEvent;if(a)a.preventDefault&&a.preventDefault(),a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=v;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=v;this.stopPropagation()},isDefaultPrevented:t,isPropagationStopped:t,isImmediatePropagationStopped:t};
var qa=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){}},ra=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?ra:qa,a)},teardown:function(a){c.event.remove(this,b,a&&a.selector?ra:qa)}}});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 w("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 w("submit",this,arguments)});else return!1},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var aa=/textarea|input|select/i,
ba,sa=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(a){return a.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},ca=function(a,b){var d=a.target,f,e;if(aa.test(d.nodeName)&&!d.readOnly&&(f=c.data(d,"_change_data"),e=sa(d),(a.type!=="focusout"||d.type!=="radio")&&c.data(d,"_change_data",e),!(f===j||e===f)))if(f!=null||e)return a.type="change",c.event.trigger(a,
b,d)};c.event.special.change={filters:{focusout:ca,click:function(a){var b=a.target,c=b.type;if(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")return ca.call(this,a)},keydown:function(a){var b=a.target,c=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")return ca.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",sa(a))}},setup:function(){if(this.type==="file")return!1;for(var a in ba)c.event.add(this,
a+".specialChange",ba[a]);return aa.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return aa.test(this.nodeName)}};ba=c.event.special.change.filters}l.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(a){a=c.event.fix(a);a.type=b;return c.event.handle.call(this,a)}c.event.special[b]={setup:function(){this.addEventListener(a,d,!0)},teardown:function(){this.removeEventListener(a,d,!0)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(a,
f,e){if(typeof a==="object"){for(var k in a)this[b](k,f,a[k],e);return this}c.isFunction(f)&&(e=f,f=j);var i=b==="one"?c.proxy(e,function(a){c(this).unbind(a,i);return e.apply(this,arguments)}):e;if(a==="unload"&&b!=="one")this.one(a,f,e);else{k=0;for(var g=this.length;k<g;k++)c.event.add(this[k],a,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},
delegate:function(a,b,c,f){return this.live(b,c,f,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,
"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ta={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(a,f,e,k){var i,g=0,m,h,l=k||this.selector,o=k?this:c(this.context);c.isFunction(f)&&(e=f,f=j);for(a=(a||"").split(" ");(i=a[g++])!=null;)k=P.exec(i),m="",k&&(m=k[0],i=i.replace(P,
"")),i==="hover"?a.push("mouseenter"+m,"mouseleave"+m):(h=i,i==="focus"||i==="blur"?(a.push(ta[i]+m),i+=m):i=(ta[i]||i)+m,b==="live"?o.each(function(){c.event.add(this,Q(i,l),{data:f,selector:l,handler:e,origType:i,origHandler:e,preType:h})}):o.unbind(Q(i,l),e));return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=
function(a){return a?this.bind(b,a):this.trigger(b)};c.attrFn&&(c.attrFn[b]=!0)});g.attachEvent&&!g.addEventListener&&g.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(b){for(var c="",d,e=0;b[e];e++)d=b[e],d.nodeType===3||d.nodeType===4?c+=d.nodeValue:d.nodeType!==8&&(c+=a(d.childNodes));return c}function b(a,b,c,d,e,f){for(var e=0,k=d.length;e<k;e++){var i=d[e];if(i){for(var i=i[a],g=!1;i;){if(i.sizcache===
c){g=d[i.sizset];break}if(i.nodeType===1&&!f)i.sizcache=c,i.sizset=e;if(i.nodeName.toLowerCase()===b){g=i;break}i=i[a]}d[e]=g}}}function d(a,b,c,d,e,f){for(var e=0,i=d.length;e<i;e++){var k=d[e];if(k){for(var k=k[a],g=!1;k;){if(k.sizcache===c){g=d[k.sizset];break}if(k.nodeType===1){if(!f)k.sizcache=c,k.sizset=e;if(typeof b!=="string"){if(k===b){g=!0;break}}else if(m.filter(b,[k]).length>0){g=k;break}}k=k[a]}d[e]=g}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,k=Object.prototype.toString,i=!1,g=!0;[0,0].sort(function(){g=!1;return 0});var m=function(a,b,c,d){var c=c||[],e=b=b||l;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return c;for(var i=[],g,j,u,p,q=!0,x=r(b),C=a;(f.exec(""),g=f.exec(C))!==null;)if(C=g[3],i.push(g[1]),g[2]){p=g[3];break}if(i.length>1&&o.exec(a))if(i.length===2&&h.relative[i[0]])j=t(i[0]+i[1],b);else for(j=h.relative[i[0]]?[b]:m(i.shift(),b);i.length;)a=i.shift(),h.relative[a]&&(a+=i.shift()),j=t(a,j);else if(!d&&
i.length>1&&b.nodeType===9&&!x&&h.match.ID.test(i[0])&&!h.match.ID.test(i[i.length-1])&&(g=m.find(i.shift(),b,x),b=g.expr?m.filter(g.expr,g.set)[0]:g.set[0]),b){g=d?{expr:i.pop(),set:n(d)}:m.find(i.pop(),i.length===1&&(i[0]==="~"||i[0]==="+")&&b.parentNode?b.parentNode:b,x);j=g.expr?m.filter(g.expr,g.set):g.set;for(i.length>0?u=n(j):q=!1;i.length;){var S=i.pop();g=S;h.relative[S]?g=i.pop():S="";g==null&&(g=b);h.relative[S](u,g,x)}}else u=[];u||(u=j);u||m.error(S||a);if(k.call(u)==="[object Array]")if(q)if(b&&
b.nodeType===1)for(a=0;u[a]!=null;a++)u[a]&&(u[a]===!0||u[a].nodeType===1&&s(b,u[a]))&&c.push(j[a]);else for(a=0;u[a]!=null;a++)u[a]&&u[a].nodeType===1&&c.push(j[a]);else c.push.apply(c,u);else n(u,c);p&&(m(p,e,c,d),m.uniqueSort(c));return c};m.uniqueSort=function(a){if(q&&(i=g,a.sort(q),i))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};m.matches=function(a,b){return m(a,null,null,b)};m.find=function(a,b,c){var d,e;if(!a)return[];for(var f=0,i=h.order.length;f<i;f++){var g=h.order[f];
if(e=h.leftMatch[g].exec(a)){var k=e[1];e.splice(1,1);if(k.substr(k.length-1)!=="\\"&&(e[1]=(e[1]||"").replace(/\\/g,""),d=h.find[g](e,b,c),d!=null)){a=a.replace(h.match[g],"");break}}}d||(d=b.getElementsByTagName("*"));return{set:d,expr:a}};m.filter=function(a,b,c,d){for(var e=a,f=[],i=b,g,k,l=b&&b[0]&&r(b[0]);a&&b.length;){for(var o in h.filter)if((g=h.leftMatch[o].exec(a))!=null&&g[2]){var u=h.filter[o],p,n;n=g[1];k=!1;g.splice(1,1);if(n.substr(n.length-1)!=="\\"){i===f&&(f=[]);if(h.preFilter[o])if(g=
h.preFilter[o](g,i,c,f,d,l)){if(g===!0)continue}else k=p=!0;if(g)for(var q=0;(n=i[q])!=null;q++)if(n){p=u(n,g,q,i);var x=d^!!p;c&&p!=null?x?k=!0:i[q]=!1:x&&(f.push(n),k=!0)}if(p!==j){c||(i=f);a=a.replace(h.match[o],"");if(!k)return[];break}}}if(a===e)if(k==null)m.error(a);else break;e=a}return i};m.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var h=m.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(a){return a.getAttribute("href")}},relative:{"+":function(a,b){var c=typeof b==="string",
d=c&&!/\W/.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&f.nodeType!==1;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||!1:f===b}c&&m.filter(b,a,!0)},">":function(a,b){var c=typeof b==="string";if(c&&!/\W/.test(b))for(var b=b.toLowerCase(),d=0,e=a.length;d<e;d++){var f=a[d];if(f)c=f.parentNode,a[d]=c.nodeName.toLowerCase()===b?c:!1}else{d=0;for(e=a.length;d<e;d++)(f=a[d])&&(a[d]=c?f.parentNode:f.parentNode===b);c&&m.filter(b,a,!0)}},"":function(a,
c,f){var i=e++,g=d;if(typeof c==="string"&&!/\W/.test(c))var k=c=c.toLowerCase(),g=b;g("parentNode",c,i,a,k,f)},"~":function(a,c,f){var i=e++,g=d;if(typeof c==="string"&&!/\W/.test(c))var k=c=c.toLowerCase(),g=b;g("previousSibling",c,i,a,k,f)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){for(var c=[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===
a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(/\\/g,"")+" ";if(f)return a;for(var f=0,i;(i=b[f])!=null;f++)i&&(e^(i.className&&(" "+i.className+" ").replace(/[\t\n]/g," ").indexOf(a)>=0)?c||d.push(i):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]===
"even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){b=a[1].replace(/\\/g,"");!f&&h.attrMap[b]&&(a[1]=h.attrMap[b]);a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,d,e){if(a[1]==="not")if((f.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=m(a[3],null,null,b);else return a=m.filter(a[3],b,c,1^e),c||d.push.apply(d,a),!1;else if(h.match.POS.test(a[0])||h.match.CHILD.test(a[0]))return!0;
return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===
a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===
d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(b,c,d,e){var f=c[1],i=h.filters[f];if(i)return i(b,d,c,e);else if(f==="contains")return(b.textContent||b.innerText||a([b])||"").indexOf(c[3])>=0;else if(f==="not"){c=c[3];d=0;for(e=c.length;d<e;d++)if(c[d]===b)return!1;return!0}else m.error("Syntax error, unrecognized expression: "+
f)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return!1;return!0;case "nth":var c=b[2],e=b[3];if(c===1&&e===0)return!0;var f=b[0],i=a.parentNode;if(i&&(i.sizcache!==f||!a.nodeIndex)){for(var g=0,d=i.firstChild;d;d=d.nextSibling)if(d.nodeType===1)d.nodeIndex=++g;i.sizcache=f}d=a.nodeIndex-e;return c===0?d===0:d%c===0&&d/c>=0}},ID:function(a,
b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=h.attrHandle[c]?h.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==!1:e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?
d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+1)===f+"-":!1},POS:function(a,b,c,d){var e=h.setFilters[b[2]];if(e)return e(a,c,b,d)}}},o=h.match.POS,p;for(p in h.match)h.match[p]=RegExp(h.match[p].source+/(?![^\[]*\])(?![^\(]*\))/.source),h.leftMatch[p]=RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[p].source.replace(/\\(\d+)/g,function(a,b){return"\\"+(b-0+1)}));var n=function(a,b){a=Array.prototype.slice.call(a,0);if(b)return b.push.apply(b,a),b;return a};try{Array.prototype.slice.call(l.documentElement.childNodes,
0)}catch(x){n=function(a,b){var c=b||[];if(k.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var d=0,e=a.length;d<e;d++)c.push(a[d]);else for(d=0;a[d];d++)c.push(a[d]);return c}}var q;l.documentElement.compareDocumentPosition?q=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a==b&&(i=!0),a.compareDocumentPosition?-1:1;var c=a.compareDocumentPosition(b)&4?-1:a===b?0:1;c===0&&(i=!0);return c}:"sourceIndex"in l.documentElement?
q=function(a,b){if(!a.sourceIndex||!b.sourceIndex)return a==b&&(i=!0),a.sourceIndex?-1:1;var c=a.sourceIndex-b.sourceIndex;c===0&&(i=!0);return c}:l.createRange&&(q=function(a,b){if(!a.ownerDocument||!b.ownerDocument)return a==b&&(i=!0),a.ownerDocument?-1:1;var c=a.ownerDocument.createRange(),d=b.ownerDocument.createRange();c.setStart(a,0);c.setEnd(a,0);d.setStart(b,0);d.setEnd(b,0);c=c.compareBoundaryPoints(Range.START_TO_END,d);c===0&&(i=!0);return c});(function(){var a=l.createElement("div"),b=
"script"+(new Date).getTime();a.innerHTML="<a name='"+b+"'/>";var c=l.documentElement;c.insertBefore(a,c.firstChild);if(l.getElementById(b))h.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:j:[]},h.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b};c.removeChild(a);
c=a=null})();(function(){var a=l.createElement("div");a.appendChild(l.createComment(""));if(a.getElementsByTagName("*").length>0)h.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var d=[],e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")h.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();l.querySelectorAll&&
function(){var a=m,b=l.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)){m=function(b,c,d,e){c=c||l;if(!e&&c.nodeType===9&&!r(c))try{return n(c.querySelectorAll(b),d)}catch(f){}return a(b,c,d,e)};for(var c in a)m[c]=a[c];b=null}}();(function(){var a=l.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className=
"e",a.getElementsByClassName("e").length!==1))h.order.splice(1,0,"CLASS"),h.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null})();var s=l.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(a,b){return a!==b&&(a.contains?a.contains(b):!0)},r=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1},t=function(a,b){for(var c=[],d="",e,f=b.nodeType?[b]:b;e=h.match.PSEUDO.exec(a);)d+=
e[0],a=a.replace(h.match.PSEUDO,"");a=h.relative[a]?a+"*":a;e=0;for(var i=f.length;e<i;e++)m(a,f[e],c);return m.filter(d,c)};c.find=m;c.expr=m.selectors;c.expr[":"]=c.expr.filters;c.unique=m.uniqueSort;c.text=a;c.isXMLDoc=r;c.contains=s})();var Ja=/Until$/,Ka=/^(?:parents|prevUntil|prevAll)/,La=/,/,R=Array.prototype.slice,ua=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(a,c){return!!b.call(a,c,a)===d});else if(b.nodeType)return c.grep(a,function(a){return a===b===d});else if(typeof b===
"string"){var f=c.grep(a,function(a){return a.nodeType===1});if(N.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(a){return c.inArray(a,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++)if(d=b.length,c.find(a,this[f],b),f>0)for(var g=d;g<b.length;g++)for(var i=0;i<d;i++)if(b[i]===b[g]){b.splice(g--,1);break}return b},has:function(a){var b=c(a);return this.filter(function(){for(var a=0,f=b.length;a<f;a++)if(c.contains(this,
b[a]))return!0})},not:function(a){return this.pushStack(ua(this,a,!1),"not",a)},filter:function(a){return this.pushStack(ua(this,a,!0),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,g={},i;if(f&&a.length){e=0;for(var h=a.length;e<h;e++)i=a[e],g[i]||(g[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i);for(;f&&f.ownerDocument&&f!==b;){for(i in g)if(e=g[i],e.jquery?e.index(f)>-1:c(f).is(e))d.push({selector:i,elem:f}),delete g[i];
f=f.parentNode}}return d}var m=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(d,e){for(;e&&e.ownerDocument&&e!==b;){if(m?m.index(e)>-1:c(e).is(a))return e;e=e.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){var d=typeof a==="string"?c(a,b||this.context):c.makeArray(a),f=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||
d[0].parentNode.nodeType===11||!f[0]||!f[0].parentNode||f[0].parentNode.nodeType===11?f:c.unique(f))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,
"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);Ja.test(a)||(f=d);f&&typeof f==="string"&&(e=c.filter(f,e));
e=this.length>1?c.unique(e):e;if((this.length>1||La.test(f))&&Ka.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return c.find.matches(a,b)},dir:function(a,b,d){for(var f=[],a=a[b];a&&a.nodeType!==9&&(d===j||a.nodeType!==1||!c(a).is(d));)a.nodeType===1&&f.push(a),a=a[b];return f},nth:function(a,b,c){for(var b=b||1,f=0;a;a=a[c])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===
1&&a!==b&&c.push(a);return c}});var va=/ jQuery\d+="(?:\d+|null)"/g,U=/^\s+/,wa=/(<([\w:]+)[^>]*?)\/>/g,Ma=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,xa=/<([\w:]+)/,Na=/<tbody/i,Oa=/<|&#?\w+;/,ia=/<script|<object|<embed|<option|<style/i,ja=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=function(a,b,c){return Ma.test(c)?a:b+"></"+c+">"},y={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,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!c.support.htmlSerialize)y._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!==j)return this.empty().append((this[0]&&this[0].ownerDocument||
l).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).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,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,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,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,
b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length)!b&&f.nodeType===1&&(c.cleanData(f.getElementsByTagName("*")),c.cleanData([f])),f.parentNode&&f.parentNode.removeChild(f);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var a=this.outerHTML,b=this.ownerDocument;
if(!a)a=b.createElement("div"),a.appendChild(this.cloneNode(!0)),a=a.innerHTML;return c.clean([a.replace(va,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(U,"")],b)[0]}else return this.cloneNode(!0)});a===!0&&(T(this,b),T(this.find("*"),b.find("*")));return b},html:function(a){if(a===j)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(va,""):null;else if(typeof a==="string"&&!ia.test(a)&&(c.support.leadingWhitespace||!U.test(a))&&!y[(xa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(wa,
ya);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1)c.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(b){var d=c(this),f=d.html();d.empty().append(function(){return a.call(this,b,f)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});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,!0)},domManip:function(a,b,d){var f,e,g=a[0],i=[],h;if(!c.support.checkClone&&arguments.length===3&&typeof g==="string"&&ja.test(g))return this.each(function(){c(this).domManip(a,b,d,!0)});if(c.isFunction(g))return this.each(function(e){var f=c(this);a[0]=
g.call(this,e,b?f.html():j);f.domManip(a,b,d)});if(this[0]){f=g&&g.parentNode;f=c.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length?{fragment:f}:E(a,this,i);h=f.fragment;if(e=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(e,"tr");e=0;for(var m=this.length;e<m;e++)d.call(b?c.nodeName(this[e],"table")?this[e].getElementsByTagName("tbody")[0]||this[e].appendChild(this[e].ownerDocument.createElement("tbody")):this[e]:this[e],e>0||f.cacheable||this.length>
1?h.cloneNode(!0):h)}i.length&&c.each(i,o)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[],d=c(d),e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1)return d[b](this[0]),this;else{for(var e=0,g=d.length;e<g;e++){var i=(e>0?this.clone(!0):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,
d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||l;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||l);for(var e=[],g=0,i;(i=a[g])!=null;g++)if(typeof i==="number"&&(i+=""),i){if(typeof i==="string"&&!Oa.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(wa,ya);var h=(xa.exec(i)||["",""])[1].toLowerCase(),m=y[h]||y._default,o=m[0],j=b.createElement("div");for(j.innerHTML=m[1]+i+m[2];o--;)j=j.lastChild;if(!c.support.tbody){o=Na.test(i);h=
h==="table"&&!o?j.firstChild&&j.firstChild.childNodes:m[1]==="<table>"&&!o?j.childNodes:[];for(m=h.length-1;m>=0;--m)c.nodeName(h[m],"tbody")&&!h[m].childNodes.length&&h[m].parentNode.removeChild(h[m])}!c.support.leadingWhitespace&&U.test(i)&&j.insertBefore(b.createTextNode(U.exec(i)[0]),j.firstChild);i=j.childNodes}i.nodeType?e.push(i):e=c.merge(e,i)}if(d)for(g=0;e[g];g++)f&&c.nodeName(e[g],"script")&&(!e[g].type||e[g].type.toLowerCase()==="text/javascript")?f.push(e[g].parentNode?e[g].parentNode.removeChild(e[g]):
e[g]):(e[g].nodeType===1&&e.splice.apply(e,[g+1,0].concat(c.makeArray(e[g].getElementsByTagName("script")))),d.appendChild(e[g]));return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,g=c.support.deleteExpando,i=0,h;(h=a[i])!=null;i++)if(d=h[c.expando]){b=f[d];if(b.events)for(var m in b.events)e[m]?c.event.remove(h,m):pa(h,m,b.handle);g?delete h[c.expando]:h.removeAttribute&&h.removeAttribute(c.expando);delete f[d]}}});var Pa=/z-?index|font-?weight|opacity|zoom|line-?height/i,za=
/alpha\([^)]*\)/,Aa=/opacity=([^)]*)/,da=/float/i,ea=/-([a-z])/ig,Qa=/([A-Z])/g,Ra=/^-?\d+(?:px)?$/i,Sa=/^-?\d/,Ta={position:"absolute",visibility:"hidden",display:"block"},Ua=["Left","Right"],Va=["Top","Bottom"],Wa=l.defaultView&&l.defaultView.getComputedStyle,Ba=c.support.cssFloat?"cssFloat":"styleFloat",fa=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return p(this,a,b,!0,function(a,b,e){if(e===j)return c.curCSS(a,b);typeof e==="number"&&!Pa.test(b)&&(e+="px");c.style(a,b,e)})};
c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return j;if((b==="width"||b==="height")&&parseFloat(d)<0)d=j;var f=a.style||a,e=d!==j;if(!c.support.opacity&&b==="opacity"){if(e)f.zoom=1,b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")",a=f.filter||c.curCSS(a,"filter")||"",f.filter=za.test(a)?a.replace(za,b):b;return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Aa.exec(f.filter)[1])/100+"":""}da.test(b)&&(b=Ba);b=b.replace(ea,fa);e&&(f[b]=d);return f[b]},css:function(a,
b,d,f){if(b==="width"||b==="height"){var e,g=b==="width"?Ua:Va,d=function(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(g,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,!0))||0);f==="margin"?e+=parseFloat(c.curCSS(a,"margin"+this,!0))||0:e-=parseFloat(c.curCSS(a,"border"+this+"Width",!0))||0})};a.offsetWidth!==0?d():c.swap(a,Ta,d);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle)return f=
Aa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"",f===""?"1":f;da.test(b)&&(b=Ba);if(!d&&e&&e[b])f=e[b];else if(Wa){da.test(b)&&(b="float");b=b.replace(Qa,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;(a=e.getComputedStyle(a,null))&&(f=a.getPropertyValue(b));b==="opacity"&&f===""&&(f="1")}else if(a.currentStyle&&(d=b.replace(ea,fa),f=a.currentStyle[b]||a.currentStyle[d],!Ra.test(f)&&Sa.test(f))){var b=e.left,g=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;
e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=g}return f},swap:function(a,b,c){var f={},e;for(e in b)f[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters)c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?!0:b>0&&d>0&&!f?!1:c.curCSS(a,"display")==="none"},c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)};var Xa=q(),Ya=/<script(.|\s)*?\/script>/gi,
Za=/select|textarea/i,$a=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,O=/=\?(&|$)/,ga=/\?/,ab=/(\?|&)_=.*?(&|$)/,bb=/^(\w+:)?\/\/([^\/?#]+)/,cb=/%20/g,db=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return db.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0)var e=a.slice(f,a.length),a=a.slice(0,f);f="GET";b&&(c.isFunction(b)?(d=b,b=null):typeof b==="object"&&(b=c.param(b,c.ajaxSettings.traditional),f=
"POST"));var g=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(a,b){if(b==="success"||b==="notmodified")g.html(e?c("<div />").append(a.responseText.replace(Ya,"")).find(e):a.responseText);d&&g.each(d,[a.responseText,b,a])}});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||Za.test(this.nodeName)||
$a.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(a){return{name:b.name,value:a}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.bind(b,a)}});c.extend({get:function(a,b,d,f){c.isFunction(b)&&(f=f||d,d=b,b=null);return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},
getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){c.isFunction(b)&&(f=f||d,d=b,b={});return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,xhr:g.XMLHttpRequest&&(g.location.protocol!=="file:"||!g.ActiveXObject)?function(){return new g.XMLHttpRequest}:function(){try{return new g.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},
accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&e.success.call(m,o,i,r);e.global&&f("ajaxSuccess",[r,e])}function d(){e.complete&&e.complete.call(m,r,i);e.global&&f("ajaxComplete",[r,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(a,b){(e.context?c(e.context):c.event).trigger(a,b)}var e=
c.extend(!0,{},c.ajaxSettings,a),h,i,o,m=a&&a.context||e,p=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(p==="GET")O.test(e.url)||(e.url+=(ga.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!O.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&O.test(e.data)||O.test(e.url))){h=e.jsonpCallback||"jsonp"+Xa++;if(e.data)e.data=
(e.data+"").replace(O,"="+h+"$1");e.url=e.url.replace(O,"="+h+"$1");e.dataType="script";g[h]=g[h]||function(a){o=a;b();d();g[h]=j;try{delete g[h]}catch(c){}s&&s.removeChild(t)}}if(e.dataType==="script"&&e.cache===null)e.cache=!1;if(e.cache===!1&&p==="GET"){var n=q(),x=e.url.replace(ab,"$1_="+n+"$2");e.url=x+(x===e.url?(ga.test(e.url)?"&":"?")+"_="+n:"")}e.data&&p==="GET"&&(e.url+=(ga.test(e.url)?"&":"?")+e.data);e.global&&!c.active++&&c.event.trigger("ajaxStart");n=(n=bb.exec(e.url))&&(n[1]&&n[1]!==
location.protocol||n[2]!==location.host);if(e.dataType==="script"&&p==="GET"&&n){var s=l.getElementsByTagName("head")[0]||l.documentElement,t=l.createElement("script");t.src=e.url;if(e.scriptCharset)t.charset=e.scriptCharset;if(!h){var C=!1;t.onload=t.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"))C=!0,b(),d(),t.onload=t.onreadystatechange=null,s&&t.parentNode&&s.removeChild(t)}}s.insertBefore(t,s.firstChild);return j}var v=!1,r=e.xhr();
if(r){e.username?r.open(p,e.url,e.async,e.username,e.password):r.open(p,e.url,e.async);try{(e.data||a&&a.contentType)&&r.setRequestHeader("Content-Type",e.contentType),e.ifModified&&(c.lastModified[e.url]&&r.setRequestHeader("If-Modified-Since",c.lastModified[e.url]),c.etag[e.url]&&r.setRequestHeader("If-None-Match",c.etag[e.url])),n||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(y){}if(e.beforeSend&&
e.beforeSend.call(m,r,e)===!1)return e.global&&!--c.active&&c.event.trigger("ajaxStop"),r.abort(),!1;e.global&&f("ajaxSend",[r,e]);var w=r.onreadystatechange=function(a){if(!r||r.readyState===0||a==="abort"){if(v||d(),v=!0,r)r.onreadystatechange=c.noop}else if(!v&&r&&(r.readyState===4||a==="timeout")){v=!0;r.onreadystatechange=c.noop;i=a==="timeout"?"timeout":!c.httpSuccess(r)?"error":e.ifModified&&c.httpNotModified(r,e.url)?"notmodified":"success";var f;if(i==="success")try{o=c.httpData(r,e.dataType,
e)}catch(g){i="parsererror",f=g}i==="success"||i==="notmodified"?h||b():c.handleError(e,r,i,f);d();a==="timeout"&&r.abort();e.async&&(r=null)}};try{var I=r.abort;r.abort=function(){r&&I.call(r);w("abort")}}catch(B){}e.async&&e.timeout>0&&setTimeout(function(){r&&!v&&w("timeout")},e.timeout);try{r.send(p==="POST"||p==="PUT"||p==="DELETE"?e.data:null)}catch(A){c.handleError(e,r,null,A),d()}e.async||w();return r}},handleError:function(a,b,d,f){a.error&&a.error.call(a.context||a,b,d,f);a.global&&(a.context?
c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return!1},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");d&&(c.lastModified[b]=d);f&&(c.etag[b]=f);return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=
0,a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");d&&d.dataFilter&&(a=d.dataFilter(a,b));typeof a==="string"&&(b==="json"||!b&&f.indexOf("json")>=0?a=c.parseJSON(a):(b==="script"||!b&&f.indexOf("javascript")>=0)&&c.globalEval(a));return a},param:function(a,b){function d(a,e){c.isArray(e)?c.each(e,function(e,g){b||/\[\]$/.test(a)?f(a,g):d(a+"["+(typeof g==="object"||c.isArray(g)?e:"")+"]",g)}):!b&&e!=null&&typeof e==="object"?c.each(e,function(b,
c){d(a+"["+b+"]",c)}):f(a,e)}function f(a,b){b=c.isFunction(b)?b():b;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}var e=[];if(b===j)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var g in a)d(g,a[g]);return e.join("&").replace(cb,"+")}});var ha={},eb=/toggle|show|hide/,fb=/^([+-]=)?([\d+-.]+)(.*)$/,V,ka=[["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(F("show",3),a,b);else{for(var d=0,f=this.length;d<f;d++){var e=c.data(this[d],"olddisplay");this[d].style.display=e||"";if(c.css(this[d],"display")==="none"){var e=this[d].nodeName,g;if(ha[e])g=ha[e];else{var i=c("<"+e+" />").appendTo("body");g=i.css("display");g==="none"&&(g="block");i.remove();ha[e]=g}c.data(this[d],"olddisplay",g)}}d=0;for(f=this.length;d<f;d++)this[d].style.display=c.data(this[d],"olddisplay")||
"";return this}},hide:function(a,b){if(a||a===0)return this.animate(F("hide",3),a,b);else{for(var d=0,f=this.length;d<f;d++){var e=c.data(this[d],"olddisplay");!e&&e!=="none"&&c.data(this[d],"olddisplay",c.css(this[d],"display"))}d=0;for(f=this.length;d<f;d++)this[d].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:c(this).is(":hidden");
c(this)[b?"show":"hide"]()}):this.animate(F("toggle",3),a,b);return this},fadeTo:function(a,b,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c)},animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===!1?"each":"queue"](function(){var b=c.extend({},e),d,f=this.nodeType===1&&c(this).is(":hidden"),g=this;for(d in a){var h=d.replace(ea,fa);d!==h&&(a[h]=a[d],delete a[d],d=h);if(a[d]==="hide"&&f||a[d]===
"show"&&!f)return b.complete.call(this);if((d==="height"||d==="width")&&this.style)b.display=c.css(this,"display"),b.overflow=this.style.overflow;if(c.isArray(a[d]))(b.specialEasing=b.specialEasing||{})[d]=a[d][1],a[d]=a[d][0]}if(b.overflow!=null)this.style.overflow="hidden";b.curAnim=c.extend({},a);c.each(a,function(d,e){var i=new c.fx(g,b,d);if(eb.test(e))i[e==="toggle"?f?"show":"hide":e](a);else{var h=fb.exec(e),l=i.cur(!0)||0;if(h){var o=parseFloat(h[2]),j=h[3]||"px";j!=="px"&&(g.style[d]=(o||
1)+j,l*=(o||1)/i.cur(!0),g.style[d]=l+j);h[1]&&(o=(h[1]==="-="?-1:1)*o+l);i.custom(l,o,j)}else i.custom(l,e,"")}});return!0})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var a=d.length-1;a>=0;a--)if(d[a].elem===this){if(b)d[a](!0);d.splice(a,1)}});b||this.dequeue();return this}});c.each({slideDown:F("show",1),slideUp:F("hide",1),slideToggle:F("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(a,c){return this.animate(b,a,
c)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==!1&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,c,f){return c+f*a},swing:function(a,b,c,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+c}},timers:[],
fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;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>-1E4?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(a){return e.step(a)}this.startTime=q();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;f()&&c.timers.push(f)&&!V&&(V=setInterval(c.fx.tick,13))},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=!0;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=!0;this.custom(this.cur(),0)},step:function(a){var b=q(),d=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=!0;for(var f in this.options.curAnim)this.options.curAnim[f]!==!0&&(d=!1);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,c.css(this.elem,"display")==="none"))this.elem.style.display="block";this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return!1}else e=b-this.startTime,this.state=e/this.options.duration,a=this.options.easing||(c.easing.swing?"swing":"linear"),this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,
e,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}};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(V);V=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){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: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 l.documentElement?function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument,b=f.body,f=f.documentElement;return{top:d.top+(self.pageYOffset||
c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b.ownerDocument,e,g=f.documentElement,i=f.body;e=(f=f.defaultView)?f.getComputedStyle(b,
null):b.currentStyle;for(var h=b.offsetTop,l=b.offsetLeft;(b=b.parentNode)&&b!==i&&b!==g;){if(c.offset.supportsFixedPosition&&e.position==="fixed")break;e=f?f.getComputedStyle(b,null):b.currentStyle;h-=b.scrollTop;l-=b.scrollLeft;if(b===d){h+=b.offsetTop;l+=b.offsetLeft;if(c.offset.doesNotAddBorder&&(!c.offset.doesAddBorderForTableAndCells||!/^t(able|d|h)$/i.test(b.nodeName)))h+=parseFloat(e.borderTopWidth)||0,l+=parseFloat(e.borderLeftWidth)||0;d=b.offsetParent}c.offset.subtractsBorderForOverflowNotVisible&&
e.overflow!=="visible"&&(h+=parseFloat(e.borderTopWidth)||0,l+=parseFloat(e.borderLeftWidth)||0)}if(e.position==="relative"||e.position==="static")h+=i.offsetTop,l+=i.offsetLeft;c.offset.supportsFixedPosition&&e.position==="fixed"&&(h+=Math.max(g.scrollTop,i.scrollTop),l+=Math.max(g.scrollLeft,i.scrollLeft));return{top:h,left:l}};c.offset={initialize:function(){var a=l.body,b=l.createElement("div"),d,f,e,g=parseFloat(c.curCSS(a,"marginTop",!0))||0;c.extend(b.style,{position:"absolute",top:0,left:0,
margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==
5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==g;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();c.offset.doesNotIncludeMarginInBodyOffset&&
(b+=parseFloat(c.curCSS(a,"marginTop",!0))||0,d+=parseFloat(c.curCSS(a,"marginLeft",!0))||0);return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),g=parseInt(c.curCSS(a,"top",!0),10)||0,i=parseInt(c.curCSS(a,"left",!0),10)||0;c.isFunction(b)&&(b=b.call(a,d,e));d={top:b.top-e.top+g,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],
b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",!0))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",!0))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",!0))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",!0))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||l.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(b){var e=this[0],g;if(!e)return null;return b!==j?this.each(function(){(g=s(this))?g.scrollTo(!a?b:c(g).scrollLeft(),a?b:c(g).scrollTop()):this[d]=b}):(g=s(e))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?
c.css(this[0],d,!1,"padding"):null};c.fn["outer"+b]=function(a){return this[0]?c.css(this[0],d,!1,a?"margin":"border"):null};c.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(c.isFunction(a))return this.each(function(b){var e=c(this);e[d](a.call(this,b,e[d]()))});return"scrollTo"in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+
b],e.body["offset"+b],e.documentElement["offset"+b]):a===j?c.css(e,d):this.css(d,typeof a==="string"?a:a+"px")}});g.jQuery=g.$=c})(window);
(function(g){g.toJSON=function(h){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(h);var j=typeof h;if(h===null)return"null";if(j!="undefined"){if(j=="number"||j=="boolean")return h+"";if(j=="string")return g.quoteString(h);if(j=="object"){if(typeof h.toJSON=="function")return g.toJSON(h.toJSON());if(h.constructor===Date){var q=h.getUTCMonth()+1;q<10&&(q="0"+q);var t=h.getUTCDate();t<10&&(t="0"+t);var j=h.getUTCFullYear(),v=h.getUTCHours();v<10&&(v="0"+v);var w=h.getUTCMinutes();w<
10&&(w="0"+w);var D=h.getUTCSeconds();D<10&&(D="0"+D);h=h.getUTCMilliseconds();h<100&&(h="0"+h);h<10&&(h="0"+h);return'"'+j+"-"+q+"-"+t+"T"+v+":"+w+":"+D+"."+h+'Z"'}if(h.constructor===Array){q=[];for(t=0;t<h.length;t++)q.push(g.toJSON(h[t])||"null");return"["+q.join(",")+"]"}q=[];for(t in h){j=typeof t;if(j=="number")j='"'+t+'"';else if(j=="string")j=g.quoteString(t);else continue;typeof h[t]!="function"&&(v=g.toJSON(h[t]),q.push(j+":"+v))}return"{"+q.join(", ")+"}"}}};g.evalJSON=function(g){if(typeof JSON==
"object"&&JSON.parse)return JSON.parse(g);return eval("("+g+")")};g.secureEvalJSON=function(g){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(g);var h;h=g.replace(/\\["\\\/bfnrtu]/g,"@");h=h.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");h=h.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(h))return eval("("+g+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");};g.quoteString=function(g){if(g.match(j))return'"'+g.replace(j,
function(g){var j=h[g];if(typeof j==="string")return j;j=g.charCodeAt();return"\\u00"+Math.floor(j/16).toString(16)+(j%16).toString(16)})+'"';return'"'+g+'"'};var j=/["\\\x00-\x1f\x7f-\x9f]/g,h={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery);
jQuery.fn.extend({getUrlParam:function(g){var g=escape(unescape(g)),j=[],h=null;if($(this).attr("nodeName")=="#document")window.location.search.search(g)>-1&&(h=window.location.search.substr(1,window.location.search.length).split("&"));else if($(this).attr("src")!="undefined"){var o=$(this).attr("src");o.indexOf("?")>-1&&(h=o.substr(o.indexOf("?")+1),h=h.split("&"))}else if($(this).attr("href")!="undefined")o=$(this).attr("href"),o.indexOf("?")>-1&&(h=o.substr(o.indexOf("?")+1),h=h.split("&"));else return null;
if(h==null)return null;for(o=0;o<h.length;o++)escape(unescape(h[o].split("=")[0]))==g&&j.push(h[o].split("=")[1]);return j.length==0?null:j.length==1?j[0]:j}});
(function(g){function j(g,j){var g=g.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),p=RegExp("[\\?&]"+g+"=([^&#]*)").exec(j);return p==null?"":p[1]}g.prettyPhoto={version:"2.5.6"};g.fn.prettyPhoto=function(h){function o(j){c.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");c.find(".pp_fade").fadeOut(h.animationSpeed,function(){g(".pp_loaderIcon").show();j&&j()});B.fadeOut(h.animationSpeed)}function p(h){n==h-1?(c.find("a.pp_next").css("visibility","hidden"),c.find("a.pp_arrow_next").addClass("disabled").unbind("click")):
(c.find("a.pp_next").css("visibility","visible"),c.find("a.pp_arrow_next.disabled").removeClass("disabled").bind("click",function(){g.prettyPhoto.changePage("next");return!1}));n==0?(c.find("a.pp_previous").css("visibility","hidden"),c.find("a.pp_arrow_previous").addClass("disabled").unbind("click")):(c.find("a.pp_previous").css("visibility","visible"),c.find("a.pp_arrow_previous.disabled").removeClass("disabled").bind("click",function(){g.prettyPhoto.changePage("previous");return!1}));h>1?g(".pp_nav").show():
g(".pp_nav").hide()}function q(c,g){hasBeenResized=!1;t(c,g);imageWidth=c;imageHeight=g;if((N>G||M>H)&&E&&h.allowresize&&!F){for(notFitting=hasBeenResized=!0;notFitting;)N>G?(imageWidth=G-200,imageHeight=g/c*imageWidth):M>H?(imageHeight=H-200,imageWidth=c/g*imageHeight):notFitting=!1,M=imageHeight,N=imageWidth;t(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(M),containerWidth:Math.floor(N)+40,contentHeight:Math.floor(l),contentWidth:Math.floor(L),
resized:hasBeenResized}}function t(h,j){h=parseFloat(h);j=parseFloat(j);$pp_details=c.find(".pp_details");$pp_details.width(h);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().appendTo(g("body")).css({position:"absolute",top:-1E4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;g.browser.msie&&g.browser.version==7&&(detailsHeight+=8);$pp_details.remove();l=j+detailsHeight;L=h;M=
l+B.height()+c.find(".pp_top").height()+c.find(".pp_bottom").height();N=h}function v(c){return c.match(/youtube\.com\/watch/i)?"youtube":c.match(/vimeo\.com/i)?"vimeo":c.indexOf(".mov")!=-1?"quicktime":c.indexOf(".swf")!=-1?"flash":c.indexOf("iframe")!=-1?"iframe":c.substr(0,1)=="#"?"inline":"image"}function w(){E&&(titleHeight=B.height(),contentHeight=c.height(),contentwidth=c.width(),projectedTop=H/2+A.scrollTop-(contentHeight+titleHeight)/2,c.css({top:projectedTop,left:G/2+A.scrollLeft-contentwidth/
2}),B.css({top:projectedTop-titleHeight,left:G/2+A.scrollLeft-contentwidth/2+20}))}function D(){if(self.pageYOffset)return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};else if(document.documentElement&&document.documentElement.scrollTop)return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};else if(document.body)return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}function Q(){H=g(window).height();G=g(window).width();
K.css({height:g(document).height()})}function T(){g("body").append(h.markup);c=g(".pp_pic_holder");B=g(".ppt");K=g("div.pp_overlay");c.attr("class","pp_pic_holder "+h.theme);K.css({opacity:0,height:g(document).height()}).bind("click",function(){h.modal||g.prettyPhoto.close()});g("a.pp_close").bind("click",function(){g.prettyPhoto.close();return!1});g("a.pp_expand").bind("click",function(){$this=g(this);$this.hasClass("pp_expand")?($this.removeClass("pp_expand").addClass("pp_contract"),E=!1):($this.removeClass("pp_contract").addClass("pp_expand"),
E=!0);o(function(){g.prettyPhoto.open(imagesnew,titles,descriptions)});c.find(".pp_fade").fadeOut(h.animationSpeed);return!1});c.find(".pp_previous, .pp_arrow_previous").bind("click",function(){g.prettyPhoto.changePage("previous");return!1});c.find(".pp_next, .pp_arrow_next").bind("click",function(){g.prettyPhoto.changePage("next");return!1})}h=jQuery.extend({animationSpeed:"normal",opacity:0.8,showTitle:!0,allowresize:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"light_rounded",
hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder"> \t\t\t\t\t\t<div class="pp_top"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_content_container"> \t\t\t\t\t\t\t<div class="pp_left"> \t\t\t\t\t\t\t<div class="pp_right"> \t\t\t\t\t\t\t\t<div class="pp_content"> \t\t\t\t\t\t\t\t\t<div class="pp_loaderIcon"></div> \t\t\t\t\t\t\t\t\t<div class="pp_fade"> \t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_expand" title="Expand the image">Expand</a> \t\t\t\t\t\t\t\t\t\t<div class="pp_hoverContainer"> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_next" href="#">next</a> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_previous" href="#">previous</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t<div id="pp_full_res"></div> \t\t\t\t\t\t\t\t\t\t<div class="pp_details clearfix"> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_close" href="#">Close</a> \t\t\t\t\t\t\t\t\t\t\t<p class="pp_description"></p> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_nav"> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t\t\t\t\t<p class="currentTextHolder">0/0</p> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_bottom"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t</div> \t\t\t\t\t<div class="pp_overlay"></div> \t\t\t\t\t<div class="ppt"></div>',
image_markup:'<img id="fullResImage" src="" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
inline_markup:'<div class="pp_inline clearfix">{content}</div>'},h);if(g.browser.msie&&parseInt(g.browser.version)==6)h.theme="light_square";g(".pp_overlay").size()==0&&T();var E=!0,F=!1,s,c,B,K,l,L,M,N,H=g(window).height(),G=g(window).width(),n=0,A=D();g(window).scroll(function(){A=D();w();Q()});g(window).resize(function(){w();Q()});g(document).keydown(function(j){if(c.is(":visible"))switch(j.keyCode){case 37:g.prettyPhoto.changePage("previous");break;case 39:g.prettyPhoto.changePage("next");break;
case 27:h.modal||g.prettyPhoto.close()}});g(this).each(function(){g(this).bind("click",function(){_self=this;theRel=g(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);var c=[],h=[],j=[];theGallery?g("a[rel*="+theGallery+"]").each(function(l){g(this)[0]===g(_self)[0]&&(n=l);c.push(g(this).attr("href"));h.push(g(this).find("img").attr("alt"));j.push(g(this).attr("title"))}):(c=g(this).attr("href"),h=g(this).find("img").attr("alt")?g(this).find("img").attr("alt"):"",
j=g(this).attr("title")?g(this).attr("title"):"");g.prettyPhoto.open(c,h,j);return!1})});g.prettyPhoto.open=function(l,o,t){g.browser.msie&&g.browser.version==6&&g("select").css("visibility","hidden");h.hideflash&&g("object,embed").css("visibility","hidden");imagesnew=g.makeArray(l);titles=g.makeArray(o);descriptions=g.makeArray(t);image_set=g(imagesnew).size()>0?!0:!1;p(g(imagesnew).size());g(".pp_loaderIcon").show();K.show().fadeTo(h.animationSpeed,h.opacity);c.find(".currentTextHolder").text(n+
1+h.counter_separator_label+g(imagesnew).size());descriptions[n]?c.find(".pp_description").show().html(unescape(descriptions[n])):c.find(".pp_description").hide().text("");titles[n]&&h.showTitle?(hasTitle=!0,B.html(unescape(titles[n]))):hasTitle=!1;movie_width=parseFloat(j("width",imagesnew[n]))?j("width",imagesnew[n]):h.default_width.toString();movie_height=parseFloat(j("height",imagesnew[n]))?j("height",imagesnew[n]):h.default_height.toString();if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=
-1)movie_height=parseFloat(g(window).height()*parseFloat(movie_height)/100-100),movie_width=parseFloat(g(window).width()*parseFloat(movie_width)/100-100),F=!0;c.fadeIn(function(){imgPreloader="";switch(v(imagesnew[n])){case "image":imgPreloader=new Image;nextImage=new Image;if(image_set&&n>g(imagesnew).size())nextImage.src=imagesnew[n+1];prevImage=new Image;if(image_set&&imagesnew[n-1])prevImage.src=imagesnew[n-1];c.find("#pp_full_res")[0].innerHTML=h.image_markup;c.find("#fullResImage").attr("src",
imagesnew[n]);imgPreloader.onload=function(){s=q(imgPreloader.width,imgPreloader.height);_showContent()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");g.prettyPhoto.close()};imgPreloader.src=imagesnew[n];break;case "youtube":s=q(movie_width,movie_height);movie="http://www.youtube.com/v/"+j("v",imagesnew[n]);h.autoplay&&(movie+="&autoplay=1");toInject=h.flash_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{wmode}/g,
h.wmode).replace(/{path}/g,movie);break;case "vimeo":s=q(movie_width,movie_height);movie_id=imagesnew[n];movie="http://vimeo.com/moogaloop.swf?clip_id="+movie_id.replace("http://vimeo.com/","");h.autoplay&&(movie+="&autoplay=1");toInject=h.flash_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{wmode}/g,h.wmode).replace(/{path}/g,movie);break;case "quicktime":s=q(movie_width,movie_height);s.height+=15;s.contentHeight+=15;s.containerHeight+=15;toInject=h.quicktime_markup.replace(/{width}/g,
s.width).replace(/{height}/g,s.height).replace(/{wmode}/g,h.wmode).replace(/{path}/g,imagesnew[n]).replace(/{autoplay}/g,h.autoplay);break;case "flash":s=q(movie_width,movie_height);flash_vars=imagesnew[n];flash_vars=flash_vars.substring(imagesnew[n].indexOf("flashvars")+10,imagesnew[n].length);filename=imagesnew[n];filename=filename.substring(0,filename.indexOf("?"));toInject=h.flash_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{wmode}/g,h.wmode).replace(/{path}/g,filename+
"?"+flash_vars);break;case "iframe":s=q(movie_width,movie_height);frame_url=imagesnew[n];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=h.iframe_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{path}/g,frame_url);break;case "inline":myClone=g(imagesnew[n]).clone().css({width:h.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo(g("body")),s=q(g(myClone).width(),g(myClone).height()),g(myClone).remove(),
toInject=h.inline_markup.replace(/{content}/g,g(imagesnew[n]).html())}if(!imgPreloader)c.find("#pp_full_res")[0].innerHTML=toInject,_showContent()})};g.prettyPhoto.changePage=function(c){if(c=="previous"){if(n--,n<0){n=0;return}}else{if(g(".pp_arrow_next").is(".disabled"))return;n++}E||(E=!0);o(function(){g.prettyPhoto.open(imagesnew,titles,descriptions)});g("a.pp_expand,a.pp_contract").fadeOut(h.animationSpeed)};g.prettyPhoto.close=function(){c.find("object,embed").css("visibility","hidden");g("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(h.animationSpeed);
K.fadeOut(h.animationSpeed,function(){g("#pp_full_res").html("");c.attr("style","").find("div:not(.pp_hoverContainer)").attr("style","");w();g.browser.msie&&g.browser.version==6&&g("select").css("visibility","visible");h.hideflash&&g("object,embed").css("visibility","visible");n=0;h.callback()});E=!0};_showContent=function(){g(".pp_loaderIcon").hide();projectedTop=A.scrollTop+(H/2-s.containerHeight/2);projectedTop<0&&(projectedTop=0+B.height());c.find(".pp_content").animate({height:s.contentHeight},
h.animationSpeed);c.animate({top:projectedTop,left:G/2-s.containerWidth/2,width:s.containerWidth},h.animationSpeed,function(){c.find(".pp_hoverContainer,#fullResImage").height(s.height).width(s.width);c.find(".pp_fade").fadeIn(h.animationSpeed);image_set&&v(imagesnew[n])=="image"?c.find(".pp_hoverContainer").show():c.find(".pp_hoverContainer").hide();h.showTitle&&hasTitle&&(B.css({top:c.offset().top-25,left:c.offset().left+20,display:"none"}),B.fadeIn(h.animationSpeed));s.resized&&g("a.pp_expand,a.pp_contract").fadeIn(h.animationSpeed);
h.changepicturecallback()})};w()}})(jQuery);
jQuery.cookie=function(g,j,h){if(typeof j!="undefined"){h=h||{};if(j===null)j="",h.expires=-1;var o="";if(h.expires&&(typeof h.expires=="number"||h.expires.toUTCString))typeof h.expires=="number"?(o=new Date,o.setTime(o.getTime()+h.expires*864E5)):o=h.expires,o="; expires="+o.toUTCString();var p=h.path?"; path="+h.path:"",q=h.domain?"; domain="+h.domain:"",h=h.secure?"; secure":"";document.cookie=[g,"=",encodeURIComponent(j),o,p,q,h].join("")}else{j=null;if(document.cookie&&document.cookie!=""){h=
document.cookie.split(";");for(o=0;o<h.length;o++)if(p=jQuery.trim(h[o]),p.substring(0,g.length+1)==g+"="){j=decodeURIComponent(p.substring(g.length+1));break}}return j}};
;(function(b,C,fa){function c(a,e){var q=C.createElement("div");if(a)q.id=n+a;q.style.cssText=e||"";return b(q)}function f(a,b){b=b==="x"?l.width():l.height();return typeof a==="string"?Math.round(/%/.test(a)?b/100*parseInt(a,10):parseInt(a,10)):a}function O(r){return a.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(r)}function $(a){for(var e in a)b.isFunction(a[e])&&e.substring(0,2)!=="on"&&(a[e]=a[e].call(m));a.rel=a.rel||m.rel||"nofollow";a.href=a.href||b(m).attr("href");a.title=
a.title||m.title;if(typeof a.href==="string")a.href=b.trim(a.href)}function y(a,e){e&&e.call(m);b.event.trigger(a)}function ga(){var b,e=n+"Slideshow_",q="click."+n,c,g;a.slideshow&&h[1]?(c=function(){D.text(a.slideshowStop).unbind(q).bind(P,function(){if(i<h.length-1||a.loop)b=setTimeout(d.next,a.slideshowSpeed)}).bind(Q,function(){clearTimeout(b)}).one(q+" "+K,g);j.removeClass(e+"off").addClass(e+"on");b=setTimeout(d.next,a.slideshowSpeed)},g=function(){clearTimeout(b);D.text(a.slideshowStart).unbind([P,
Q,K,q].join(" ")).one(q,c);j.removeClass(e+"on").addClass(e+"off")},a.slideshowAuto?c():g()):j.removeClass(e+"off "+e+"on")}function aa(r){if(!L){m=r;$(b.extend(a,b.data(m,s)));h=b(m);i=0;a.rel!=="nofollow"&&(h=b("."+A).filter(function(){return(b.data(this,s).rel||this.rel)===a.rel}),i=h.index(m),i===-1&&(h=h.add(m),i=h.length-1));if(!t){t=E=!0;j.show();if(a.returnFocus)try{m.blur(),b(m).one(ba,function(){try{this.focus()}catch(a){}})}catch(e){}v.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":
"auto"}).show();a.w=f(a.initialWidth,"x");a.h=f(a.initialHeight,"y");d.position(0);F&&l.bind("resize."+M+" scroll."+M,function(){v.css({width:l.width(),height:l.height(),top:l.scrollTop(),left:l.scrollLeft()})}).trigger("resize."+M);y(ca,a.onOpen);R.add(S).hide();T.html(a.close).show()}d.load(!0)}}var da={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,
fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:!1},s="colorbox",n="cbox",ca=n+"_open",Q=n+"_load",P=n+
"_complete",K=n+"_cleanup",ba=n+"_closed",N=n+"_purge",B=b.browser.msie&&!b.support.opacity,F=B&&b.browser.version<7,M=n+"_IE6",v,j,z,k,U,V,W,X,h,l,o,G,H,S,Y,D,I,J,T,R,a={},w,x,p,u,m,i,g,t,E,L,Z,ea,d,A=n+"Element";d=b.fn[s]=b[s]=function(a,e){var c=this,d;if(!c[0]&&c.selector)return c;a=a||{};if(e)a.onComplete=e;if(!c[0]||c.selector===void 0)c=b("<a/>"),a.open=!0;c.each(function(){b.data(this,s,b.extend({},b.data(this,s)||da,a));b(this).addClass(A)});d=a.open;b.isFunction(d)&&(d=d.call(c));d&&aa(c[0]);
return c};d.init=function(){l=b(fa);j=c().attr({id:s,"class":B?n+(F?"IE6":"IE"):""});v=c("Overlay",F?"position:absolute":"").hide();z=c("Wrapper");k=c("Content").append(o=c("LoadedContent","width:0; height:0; overflow:hidden"),H=c("LoadingOverlay").add(c("LoadingGraphic")),S=c("Title"),Y=c("Current"),I=c("Next"),J=c("Previous"),D=c("Slideshow").bind(ca,ga),T=c("Close"));z.append(c().append(c("TopLeft"),U=c("TopCenter"),c("TopRight")),c(!1,"clear:left").append(V=c("MiddleLeft"),k,W=c("MiddleRight")),
c(!1,"clear:left").append(c("BottomLeft"),X=c("BottomCenter"),c("BottomRight"))).children().children().css({"float":"left"});G=c(!1,"position:absolute; width:9999px; visibility:hidden; display:none");b("body").prepend(v,j.append(z,G));k.children().hover(function(){b(this).addClass("hover")},function(){b(this).removeClass("hover")}).addClass("hover");w=U.height()+X.height()+k.outerHeight(!0)-k.height();x=V.width()+W.width()+k.outerWidth(!0)-k.width();p=o.outerHeight(!0);u=o.outerWidth(!0);j.css({"padding-bottom":w,
"padding-right":x}).hide();I.click(function(){d.next()});J.click(function(){d.prev()});T.click(function(){d.close()});R=I.add(J).add(Y).add(D);k.children().removeClass("hover");v.click(function(){a.overlayClose&&d.close()});b(C).bind("keydown."+n,function(b){var c=b.keyCode;t&&a.escKey&&c===27&&(b.preventDefault(),d.close());t&&a.arrowKey&&h[1]&&(c===37?(b.preventDefault(),J.click()):c===39&&(b.preventDefault(),I.click()))})};d.remove=function(){j.add(v).remove();b("."+A).removeData(s).removeClass(A)};
d.position=function(b,c){function d(a){U[0].style.width=X[0].style.width=k[0].style.width=a.style.width;H[0].style.height=H[1].style.height=k[0].style.height=V[0].style.height=W[0].style.height=a.style.height}var g,h=0,i=0;j.hide();a.fixed&&!F?j.css({position:"fixed"}):(h=l.scrollTop(),i=l.scrollLeft(),j.css({position:"absolute"}));i+=a.right!==!1?Math.max(l.width()-a.w-u-x-f(a.right,"x"),0):a.left!==!1?f(a.left,"x"):Math.max(l.width()-a.w-u-x,0)/2;h+=a.bottom!==!1?Math.max(C.documentElement.clientHeight-
a.h-p-w-f(a.bottom,"y"),0):a.top!==!1?f(a.top,"y"):Math.max(C.documentElement.clientHeight-a.h-p-w,0)/2;j.show();g=j.width()===a.w+u&&j.height()===a.h+p?0:b;z[0].style.width=z[0].style.height="9999px";j.dequeue().animate({width:a.w+u,height:a.h+p,top:h,left:i},{duration:g,complete:function(){d(this);E=!1;z[0].style.width=a.w+u+x+"px";z[0].style.height=a.h+p+w+"px";c&&c()},step:function(){d(this)}})};d.resize=function(b){if(t){b=b||{};if(b.width)a.w=f(b.width,"x")-u-x;if(b.innerWidth)a.w=f(b.innerWidth,
"x");o.css({width:a.w});if(b.height)a.h=f(b.height,"y")-p-w;if(b.innerHeight)a.h=f(b.innerHeight,"y");if(!b.innerHeight&&!b.height)b=o.wrapInner("<div style='overflow:auto'></div>").children(),a.h=b.height(),b.replaceWith(b.children());o.css({height:a.h});d.position(a.transition==="none"?0:a.speed)}};d.prep=function(f){function e(c){d.position(c,function(){function c(){B&&j[0].style.removeAttribute("filter")}var e,f,m,r;f=h.length;var k,p;if(t){p=function(){clearTimeout(ea);H.hide();y(P,a.onComplete)};
B&&g&&o.fadeIn(100);S.html(a.title).add(o).show();if(f>1){if(typeof a.current==="string"&&Y.html(a.current.replace(/\{current\}/,i+1).replace(/\{total\}/,f)).show(),I[a.loop||i<f-1?"show":"hide"]().html(a.next),J[a.loop||i?"show":"hide"]().html(a.previous),e=i?h[i-1]:h[f-1],m=i<f-1?h[i+1]:h[0],a.slideshow&&D.show(),a.preloading){r=b.data(m,s).href||m.href;f=b.data(e,s).href||e.href;r=b.isFunction(r)?r.call(m):r;f=b.isFunction(f)?f.call(e):f;if(O(r))b("<img/>")[0].src=r;if(O(f))b("<img/>")[0].src=
f}}else R.hide();if(a.iframe){k=b("<iframe/>").addClass(n+"Iframe")[0];if(a.fastIframe)p();else b(k).one("load",p);k.name=n+ +new Date;k.src=a.href;if(!a.scrolling)k.scrolling="no";if(B)k.frameBorder=0,k.allowTransparency="true";b(k).appendTo(o).one(N,function(){k.src="//about:blank"});k.scrolling="no"}else p();a.transition==="fade"?j.fadeTo(q,1,c):c();l.bind("resize."+n,function(){d.position(0)})}})}if(t){var q=a.transition==="none"?0:a.speed;l.unbind("resize."+n);o.remove();o=c("LoadedContent").html(f);
o.hide().appendTo(G.show()).css({width:function(){a.w=a.w||o.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?"auto":"hidden"}).css({height:function(){a.h=a.h||o.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(k);G.hide();b(g).css({"float":"none"});if(F)b("select").not(j.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(K,function(){this.style.visibility="inherit"});a.transition==="fade"?j.fadeTo(q,0,function(){e(0)}):
e(q)}};d.load=function(k){var e,j,l=d.prep;E=!0;g=!1;m=h[i];k||$(b.extend(a,b.data(m,s)));y(N);y(Q,a.onLoad);a.h=a.height?f(a.height,"y")-p-w:a.innerHeight&&f(a.innerHeight,"y");a.w=a.width?f(a.width,"x")-u-x:a.innerWidth&&f(a.innerWidth,"x");a.mw=a.w;a.mh=a.h;if(a.maxWidth)a.mw=f(a.maxWidth,"x")-u-x,a.mw=a.w&&a.w<a.mw?a.w:a.mw;if(a.maxHeight)a.mh=f(a.maxHeight,"y")-p-w,a.mh=a.h&&a.h<a.mh?a.h:a.mh;e=a.href;ea=setTimeout(function(){H.show()},100);a.inline?(c().hide().insertBefore(b(e)[0]).one(N,function(){b(this).replaceWith(o.children())}),
l(b(e))):a.iframe?l(" "):a.html?l(a.html):O(e)?(b(g=new Image).addClass(n+"Photo").error(function(){a.title=!1;l(c("Error").text("This image could not be loaded"))}).load(function(){var b;g.onload=null;a.scalePhotos&&(j=function(){g.height-=g.height*b;g.width-=g.width*b},a.mw&&g.width>a.mw&&(b=(g.width-a.mw)/g.width,j()),a.mh&&g.height>a.mh&&(b=(g.height-a.mh)/g.height,j()));if(a.h)g.style.marginTop=Math.max(a.h-g.height,0)/2+"px";if(h[1]&&(i<h.length-1||a.loop))g.style.cursor="pointer",g.onclick=
function(){d.next()};if(B)g.style.msInterpolationMode="bicubic";setTimeout(function(){l(g)},1)}),setTimeout(function(){g.src=e},1)):e&&G.load(e,a.data,function(a,d,e){l(d==="error"?c("Error").text("Request unsuccessful: "+e.statusText):b(this).contents())})};d.next=function(){if(!E&&h[1]&&(i<h.length-1||a.loop))i=i<h.length-1?i+1:0,d.load()};d.prev=function(){if(!E&&h[1]&&(i||a.loop))i=i?i-1:h.length-1,d.load()};d.close=function(){t&&!L&&(L=!0,t=!1,y(K,a.onCleanup),l.unbind("."+n+" ."+M),v.fadeTo(200,
0),j.stop().fadeTo(300,0,function(){j.add(v).css({opacity:1,cursor:"auto"}).hide();y(N);o.remove();setTimeout(function(){L=!1;y(ba,a.onClosed)},1)}))};d.element=function(){return b(m)};d.settings=da;Z=function(a){a.button!==0&&typeof a.button!=="undefined"||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),aa(this))};b.fn.delegate?b(C).delegate("."+A,"click",Z):b("."+A).live("click",Z);b(d.init)})(jQuery,document,this);
