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

 Copyright (c) 2011, Aino
 Licensed under the MIT license.
*/
(function(j){var t=this,w=t.document,R=j(w),M=j(t),N=true,W=3E4,da=false,aa=navigator.userAgent.toLowerCase(),ca=t.location.hash.replace(/#\//,""),X=function(){var c=3,i=w.createElement("div"),n=i.getElementsByTagName("i");do i.innerHTML="<\!--[if gt IE "+ ++c+"]><i></i><![endif]--\>";while(n[0]);return c>4?c:void 0}(),P=function(){return{html:w.documentElement,body:w.body,head:w.getElementsByTagName("head")[0],title:w.title}},ia=function(){var c=[];j.each("data ready thumbnail loadstart loadfinish image play pause progress fullscreen_enter fullscreen_exit idle_enter idle_exit rescale lightbox_open lightbox_close lightbox_image".split(" "),
function(i,n){c.push(n);/_/.test(n)&&c.push(n.replace(/_/g,""))});return c}(),ja=function(c){var i;if(typeof c!=="object")return c;j.each(c,function(n,k){if(/^[a-z]+_/.test(n)){i="";j.each(n.split("_"),function(s,C){i+=s>0?C.substr(0,1).toUpperCase()+C.substr(1):C});c[i]=k;delete c[n]}});return c},la=function(c){if(j.inArray(c,ia)>-1)return Galleria[c.toUpperCase()];return c},d={trunk:{},add:function(c,i,n,k){k=k||false;this.clear(c);if(k){var s=i;i=function(){s();d.add(c,i,n)}}this.trunk[c]=t.setTimeout(i,
n)},clear:function(c){var i=function(k){t.clearTimeout(this.trunk[k]);delete this.trunk[k]},n;if(c&&c in this.trunk)i.call(d,c);else if(typeof c==="undefined")for(n in this.trunk)this.trunk.hasOwnProperty(n)&&i.call(d,n)}},$=[],ea=[],A=false,fa=false,qa=[],ka=function(c){Galleria.theme=c;j.each(qa,function(i,n){n._init.call(n)})},q=function(){return{array:function(c){return Array.prototype.slice.call(c,0)},create:function(c,i){var n=w.createElement(i||"div");n.className=c;return n},getScriptPath:function(c){c=
c||j("script:last").attr("src");c=c.split("/");if(c.length==1)return"";c.pop();return c.join("/")+"/"},animate:function(){var c=function(D){var J="transition WebkitTransition MozTransition OTransition".split(" "),L;if(t.opera)return false;for(L=0;J[L];L++)if(typeof D[J[L]]!=="undefined")return J[L];return false}((w.body||w.documentElement).style),i={MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[c],n={_default:[0.25,0.1,
0.25,1],galleria:[0.645,0.045,0.355,1],galleriaIn:[0.55,0.085,0.68,0.53],galleriaOut:[0.25,0.46,0.45,0.94],ease:[0.25,0,0.25,1],linear:[0.25,0.25,0.75,0.75],"ease-in":[0.42,0,1,1],"ease-out":[0,0,0.58,1],"ease-in-out":[0.42,0,0.58,1]},k=function(D,J,L){var T={};L=L||"transition";j.each("webkit moz ms o".split(" "),function(){T["-"+this+"-"+L]=J});D.css(T)},s=function(D){k(D,"none","transition");if(Galleria.WEBKIT&&Galleria.TOUCH){k(D,"translate3d(0,0,0)","transform");if(D.data("revert")){D.css(D.data("revert"));
D.data("revert",null)}}},C,E,B,p,r,I,O;return function(D,J,L){L=j.extend({duration:400,complete:function(){},stop:false},L);D=j(D);if(L.duration)if(c){if(L.stop){D.unbind(i);s(D)}C=false;j.each(J,function(T,Z){O=D.css(T);if(q.parseValue(O)!=q.parseValue(Z))C=true;D.css(T,O)});if(C){E=[];B=L.easing in n?n[L.easing]:n._default;p=" "+L.duration+"ms cubic-bezier("+B.join(",")+")";t.setTimeout(function(){D.one(i,function(T){return function(){s(T);L.complete.call(T[0])}}(D));if(Galleria.WEBKIT&&Galleria.TOUCH){r=
{};I=[0,0,0];j.each(["left","top"],function(T,Z){if(Z in J){I[T]=q.parseValue(J[Z])-q.parseValue(D.css(Z))+"px";r[Z]=J[Z];delete J[Z]}});if(I[0]||I[1]){D.data("revert",r);E.push("-webkit-transform"+p);k(D,"translate3d("+I.join(",")+")","transform")}}j.each(J,function(T){E.push(T+p)});k(D,E.join(","));D.css(J)},1)}else t.setTimeout(function(){L.complete.call(D[0])},L.duration)}else D.animate(J,L);else{D.css(J);L.complete.call(D[0])}}}(),removeAlpha:function(c){if(X<9&&c){var i=c.style;c=(c=c.currentStyle)&&
c.filter||i.filter||"";if(/alpha/.test(c))i.filter=c.replace(/alpha\([^)]*\)/i,"")}},forceStyles:function(c,i){c=j(c);c.attr("style")&&c.data("styles",c.attr("style")).removeAttr("style");c.css(i)},revertStyles:function(){j.each(q.array(arguments),function(c,i){i=j(i);i.removeAttr("style");i.attr("style","");i.data("styles")&&i.attr("style",i.data("styles")).data("styles",null)})},moveOut:function(c){q.forceStyles(c,{position:"absolute",left:-1E4})},moveIn:function(){q.revertStyles.apply(q,q.array(arguments))},
elem:function(c){return c instanceof j?{$:c,dom:c[0]}:{$:j(c),dom:c}},hide:function(c,i,n){n=n||function(){};var k=q.elem(c),s=k.$;c=k.dom;s.data("opacity")||s.data("opacity",s.css("opacity"));k={opacity:0};if(i)q.animate(c,k,{duration:i,complete:X<9&&c?function(){q.removeAlpha(c);c.style.visibility="hidden";n.call(c)}:n,stop:true});else if(X<9&&c){q.removeAlpha(c);c.style.visibility="hidden"}else s.css(k)},show:function(c,i,n){n=n||function(){};var k=q.elem(c),s=k.$;c=k.dom;var C={opacity:parseFloat(s.data("opacity"))||
1};if(i){if(X<9){s.css("opacity",0);c.style.visibility="visible"}q.animate(c,C,{duration:i,complete:X<9&&c?function(){C.opacity==1&&q.removeAlpha(c);n.call(c)}:n,stop:true})}else if(X<9&&C.opacity==1&&c){q.removeAlpha(c);c.style.visibility="visible"}else s.css(C)},optimizeTouch:function(){var c,i,n,k,s={},C=function(p){p.preventDefault();s=j.extend({},p,true)},E=function(){this.evt=s},B=function(){this.handler.call(c,this.evt)};return function(p){j(p).bind("touchend",function(r){c=r.target;for(k=
true;c.parentNode&&c!=r.currentTarget&&k;){i=j(c).data("events");n=j(c).data("fakes");if(i&&"click"in i){k=false;r.preventDefault();j(c).click(C).click();i.click.pop();j.each(i.click,E);j(c).data("fakes",i.click);delete i.click}else if(n){k=false;r.preventDefault();j.each(n,B)}c=c.parentNode}})}}(),addTimer:function(){d.add.apply(d,q.array(arguments));return this},clearTimer:function(){d.clear.apply(d,q.array(arguments));return this},wait:function(c){c=j.extend({until:function(){return false},success:function(){},
error:function(){Galleria.raise("Could not complete wait function.")},timeout:3E3},c);var i=q.timestamp(),n,k,s=function(){k=q.timestamp();n=k-i;if(c.until(n)){c.success();return false}if(k>=i+c.timeout){c.error();return false}t.setTimeout(s,10)};t.setTimeout(s,10)},toggleQuality:function(c,i){if(!(X!==7&&X!==8||!c)){if(typeof i==="undefined")i=c.style.msInterpolationMode==="nearest-neighbor";c.style.msInterpolationMode=i?"bicubic":"nearest-neighbor"}},insertStyleTag:function(c){var i=w.createElement("style");
P().head.appendChild(i);if(i.styleSheet)i.styleSheet.cssText=c;else{c=w.createTextNode(c);i.appendChild(c)}},loadScript:function(c,i){var n=false,k=j("<script>").attr({src:c,async:true}).get(0);k.onload=k.onreadystatechange=function(){if(!n&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){n=true;k.onload=k.onreadystatechange=null;typeof i==="function"&&i.call(this,this)}};P().head.appendChild(k)},parseValue:function(c){if(typeof c==="number")return c;else if(typeof c===
"string")return(c=c.match(/\-?\d|\./g))&&c.constructor===Array?c.join("")*1:0;else return 0},timestamp:function(){return(new Date).getTime()},loadCSS:function(c,i,n){var k,s=false,C;j("link[rel=stylesheet]").each(function(){if(RegExp(c).test(this.href)){k=this;return false}});if(typeof i==="function"){n=i;i=void 0}n=n||function(){};if(k){n.call(k,k);return k}C=w.styleSheets.length;if(N)c+="?"+q.timestamp();if(j("#"+i).length){j("#"+i).attr("href",c);C--;s=true}else{k=j("<link>").attr({rel:"stylesheet",
href:c,id:i}).get(0);t.setTimeout(function(){var E=j('link[rel="stylesheet"], style');E.length?E.get(0).parentNode.insertBefore(k,E[0]):P().head.appendChild(k);if(X)if(C>=31)Galleria.raise("You have reached the browser stylesheet limit (31)",true);else k.onreadystatechange=function(){if(!s&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"))s=true};else if(/file:\/\//i.test(c))s=true;else j.ajax({url:c,success:function(){s=true},error:function(B){if(B.isRejected()&&Galleria.WEBKIT)s=
true}})},10)}typeof n==="function"&&q.wait({until:function(){return s&&w.styleSheets.length>C},success:function(){t.setTimeout(function(){n.call(k,k)},100)},error:function(){Galleria.raise("Theme CSS could not load",true)},timeout:1E4});return k}}}(),ra=function(){var c=function(i,n,k,s){var C=this.getOptions("easing"),E=this.getStageWidth(),B={left:E*(i.rewind?-1:1)},p={left:0};if(k){B.opacity=0;p.opacity=1}j(i.next).css(B);q.animate(i.next,p,{duration:i.speed,complete:function(r){return function(){n();
r.css({left:0})}}(j(i.next).add(i.prev)),queue:false,easing:C});if(s)i.rewind=!i.rewind;if(i.prev){B={left:0};p={left:E*(i.rewind?1:-1)};if(k){B.opacity=1;p.opacity=0}j(i.prev).css(B);q.animate(i.prev,p,{duration:i.speed,queue:false,easing:C,complete:function(){j(this).css("opacity",0)}})}};return{fade:function(i,n){j(i.next).css("opacity",0).show();q.animate(i.next,{opacity:1},{duration:i.speed,complete:n});if(i.prev){j(i.prev).css("opacity",1).show();q.animate(i.prev,{opacity:0},{duration:i.speed})}},
flash:function(i,n){j(i.next).css("opacity",0);i.prev?q.animate(i.prev,{opacity:0},{duration:i.speed/2,complete:function(){q.animate(i.next,{opacity:1},{duration:i.speed,complete:n})}}):q.animate(i.next,{opacity:1},{duration:i.speed,complete:n})},pulse:function(i,n){i.prev&&j(i.prev).hide();j(i.next).css("opacity",0).show();q.animate(i.next,{opacity:1},{duration:i.speed,complete:n})},slide:function(){c.apply(this,q.array(arguments))},fadeslide:function(){c.apply(this,q.array(arguments).concat([true]))},
doorslide:function(){c.apply(this,q.array(arguments).concat([false,true]))}}}();Galleria=function(){var c=this;this._theme=void 0;this._options={};this._playing=false;this._playtime=5E3;this._active=null;this._queue={length:0};this._data=[];this._dom={};this._thumbnails=[];this._layers=[];this._firstrun=this._initialized=false;this._stageHeight=this._stageWidth=0;this._target=void 0;this._id=Math.random();j.each("container stage images image-nav image-nav-left image-nav-right info info-text info-title info-description thumbnails thumbnails-list thumbnails-container thumb-nav-left thumb-nav-right loader counter tooltip".split(" "),
function(p,r){c._dom[r]=q.create("galleria-"+r)});j.each("current total".split(" "),function(p,r){c._dom[r]=q.create("galleria-"+r,"span")});var i=this._keyboard={keys:{UP:38,DOWN:40,LEFT:37,RIGHT:39,RETURN:13,ESCAPE:27,BACKSPACE:8,SPACE:32},map:{},bound:false,press:function(p){var r=p.keyCode||p.which;r in i.map&&typeof i.map[r]==="function"&&i.map[r].call(c,p)},attach:function(p){var r,I;for(r in p)if(p.hasOwnProperty(r)){I=r.toUpperCase();if(I in i.keys)i.map[i.keys[I]]=p[r];else i.map[I]=p[r]}if(!i.bound){i.bound=
true;R.bind("keydown",i.press)}},detach:function(){i.bound=false;i.map={};R.unbind("keydown",i.press)}},n=this._controls={0:void 0,1:void 0,active:0,swap:function(){n.active=n.active?0:1},getActive:function(){return n[n.active]},getNext:function(){return n[1-n.active]}},k=this._carousel={next:c.$("thumb-nav-right"),prev:c.$("thumb-nav-left"),width:0,current:0,max:0,hooks:[],update:function(){var p=0,r=0,I=[0];j.each(c._thumbnails,function(O,D){if(D.ready){p+=D.outerWidth||j(D.container).outerWidth(true);
I[O+1]=p;r=Math.max(r,D.outerHeight||j(D.container).outerHeight(true))}});c.$("thumbnails").css({width:p,height:r});k.max=p;k.hooks=I;k.width=c.$("thumbnails-list").width();k.setClasses();c.$("thumbnails-container").toggleClass("galleria-carousel",p>k.width);k.width=c.$("thumbnails-list").width()},bindControls:function(){var p;k.next.bind("click",function(r){r.preventDefault();if(c._options.carouselSteps==="auto")for(p=k.current;p<k.hooks.length;p++){if(k.hooks[p]-k.hooks[k.current]>k.width){k.set(p-
2);break}}else k.set(k.current+c._options.carouselSteps)});k.prev.bind("click",function(r){r.preventDefault();if(c._options.carouselSteps==="auto")for(p=k.current;p>=0;p--)if(k.hooks[k.current]-k.hooks[p]>k.width){k.set(p+2);break}else{if(p===0){k.set(0);break}}else k.set(k.current-c._options.carouselSteps)})},set:function(p){for(p=Math.max(p,0);k.hooks[p-1]+k.width>=k.max&&p>=0;)p--;k.current=p;k.animate()},getLast:function(p){return(p||k.current)-1},follow:function(p){if(p===0||p===k.hooks.length-
2)k.set(p);else{for(var r=k.current;k.hooks[r]-k.hooks[k.current]<k.width&&r<=k.hooks.length;)r++;if(p-1<k.current)k.set(p-1);else p+2>r&&k.set(p-r+k.current+2)}},setClasses:function(){k.prev.toggleClass("disabled",!k.current);k.next.toggleClass("disabled",k.hooks[k.current]+k.width>=k.max)},animate:function(){k.setClasses();var p=k.hooks[k.current]*-1;isNaN(p)||q.animate(c.get("thumbnails"),{left:p},{duration:c._options.carouselSpeed,easing:c._options.easing,queue:false})}},s=this._tooltip={initialized:false,
open:false,init:function(){s.initialized=true;q.insertStyleTag(".galleria-tooltip{padding:3px 8px;max-width:50%;background:#ffe;color:#000;z-index:3;position:absolute;font-size:11px;line-height:1.3opacity:0;box-shadow:0 0 2px rgba(0,0,0,.4);-moz-box-shadow:0 0 2px rgba(0,0,0,.4);-webkit-box-shadow:0 0 2px rgba(0,0,0,.4);}");c.$("tooltip").css("opacity",0.8);q.hide(c.get("tooltip"))},move:function(p){var r=c.getMousePosition(p).x;p=c.getMousePosition(p).y;var I=c.$("tooltip"),O=p,D=I.outerHeight(true)+
1,J=I.outerWidth(true),L=D+15;J=c.$("container").width()-J-2;D=c.$("container").height()-D-2;if(!isNaN(r)&&!isNaN(O)){r+=10;O-=30;r=Math.max(0,Math.min(J,r));O=Math.max(0,Math.min(D,O));if(p<L)O=L;I.css({left:r,top:O})}},bind:function(p,r){if(!Galleria.TOUCH){s.initialized||s.init();var I=function(O,D){s.define(O,D);j(O).hover(function(){q.clearTimer("switch_tooltip");c.$("container").unbind("mousemove",s.move).bind("mousemove",s.move).trigger("mousemove");s.show(O);Galleria.utils.addTimer("tooltip",
function(){c.$("tooltip").stop().show().animate({opacity:1});s.open=true},s.open?0:500)},function(){c.$("container").unbind("mousemove",s.move);q.clearTimer("tooltip");c.$("tooltip").stop().animate({opacity:0},200,function(){c.$("tooltip").hide();q.addTimer("switch_tooltip",function(){s.open=false},1E3)})})};typeof r==="string"?I(p in c._dom?c.get(p):p,r):j.each(p,function(O,D){I(c.get(O),D)})}},show:function(p){p=j(p in c._dom?c.get(p):p);var r=p.data("tt"),I=function(O){t.setTimeout(function(D){return function(){s.move(D)}}(O),
10);p.unbind("mouseup",I)};if(r=typeof r==="function"?r():r){c.$("tooltip").html(r.replace(/\s/,"&nbsp;"));p.bind("mouseup",I)}},define:function(p,r){if(typeof r!=="function"){var I=r;r=function(){return I}}p=j(p in c._dom?c.get(p):p).data("tt",r);s.show(p)}},C=this._fullscreen={scrolled:0,crop:c._options.imageCrop,active:false,keymap:c._keyboard.map,enter:function(p){C.active=true;q.hide(c.getActiveImage());c.$("container").addClass("fullscreen");C.scrolled=M.scrollTop();q.forceStyles(c.get("container"),
{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1E4});var r={height:"100%",overflow:"hidden",margin:0,padding:0},I=c.getData();q.forceStyles(P().html,r);q.forceStyles(P().body,r);C.keymap=j.extend({},c._keyboard.map);c.attachKeyboard({escape:c.exitFullscreen,right:c.next,left:c.prev});if(c._options.fullscreenCrop!==void 0)c._options.imageCrop=c._options.fullscreenCrop;if(I&&I.big&&I.image!==I.big){r=new Galleria.Picture;var O=r.isCached(I.big),D=c.getIndex(),J=c._thumbnails[D];c.trigger({type:Galleria.LOADSTART,
cached:O,rewind:false,index:D,imageTarget:c.getActiveImage(),thumbTarget:J});r.load(I.big,function(L){c._scaleImage(L,{complete:function(T){c.trigger({type:Galleria.LOADFINISH,cached:O,index:D,rewind:false,imageTarget:T.image,thumbTarget:J});var Z=c._controls.getActive().image;Z&&j(Z).width(T.image.width).height(T.image.height).attr("style",j(T.image).attr("style")).attr("src",T.image.src)}})})}c.rescale(function(){q.addTimer("fullscreen_enter",function(){q.show(c.getActiveImage());typeof p==="function"&&
p.call(c)},100);c.trigger(Galleria.FULLSCREEN_ENTER)});M.resize(function(){C.scale()})},scale:function(){c.rescale()},exit:function(p){C.active=false;q.hide(c.getActiveImage());c.$("container").removeClass("fullscreen");q.revertStyles(c.get("container"),P().html,P().body);t.scrollTo(0,C.scrolled);c.detachKeyboard();c.attachKeyboard(C.keymap);if(c._options.fullscreenCrop!==void 0)c._options.imageCrop=C.crop;c.rescale(function(){q.addTimer("fullscreen_exit",function(){q.show(c.getActiveImage());typeof p===
"function"&&p.call(c)},50);c.trigger(Galleria.FULLSCREEN_EXIT)});M.unbind("resize",C.scale)}},E=this._idle={trunk:[],bound:false,add:function(p,r){if(p){E.bound||E.addEvent();p=j(p);var I={},O;for(O in r)if(r.hasOwnProperty(O))I[O]=p.css(O);p.data("idle",{from:I,to:r,complete:true,busy:false});E.addTimer();E.trunk.push(p)}},remove:function(p){p=jQuery(p);j.each(E.trunk,function(r,I){if(I.length&&!I.not(p).length){c._idle.show(p);c._idle.trunk.splice(r,1)}});if(!E.trunk.length){E.removeEvent();q.clearTimer("idle")}},
addEvent:function(){E.bound=true;c.$("container").bind("mousemove click",E.showAll)},removeEvent:function(){E.bound=false;c.$("container").unbind("mousemove click",E.showAll)},addTimer:function(){q.addTimer("idle",function(){c._idle.hide()},c._options.idleTime)},hide:function(){if(c._options.idleMode){c.trigger(Galleria.IDLE_ENTER);j.each(E.trunk,function(p,r){var I=r.data("idle");if(I){r.data("idle").complete=false;q.animate(r,I.to,{duration:c._options.idleSpeed})}})}},showAll:function(){q.clearTimer("idle");
j.each(c._idle.trunk,function(p,r){c._idle.show(r)})},show:function(p){var r=p.data("idle");if(!r.busy&&!r.complete){r.busy=true;c.trigger(Galleria.IDLE_EXIT);q.clearTimer("idle");q.animate(p,r.from,{duration:c._options.idleSpeed/2,complete:function(){j(this).data("idle").busy=false;j(this).data("idle").complete=true}})}E.addTimer()}},B=this._lightbox={width:0,height:0,initialized:false,active:null,image:null,elems:{},keymap:false,init:function(){c.trigger(Galleria.LIGHTBOX_OPEN);if(!B.initialized){B.initialized=
true;var p={},r=c._options,I="";r={overlay:"position:fixed;display:none;opacity:"+r.overlayOpacity+";filter:alpha(opacity="+r.overlayOpacity*100+");top:0;left:0;width:100%;height:100%;background:"+r.overlayBackground+";z-index:99990",box:"position:fixed;display:none;width:400px;height:400px;top:50%;left:50%;margin-top:-200px;margin-left:-200px;z-index:99991",shadow:"position:absolute;background:#000;width:100%;height:100%;",content:"position:absolute;background-color:#fff;top:10px;left:10px;right:10px;bottom:10px;overflow:hidden",
info:"position:absolute;bottom:10px;left:10px;right:10px;color:#444;font:11px/13px arial,sans-serif;height:13px",close:"position:absolute;top:10px;right:10px;height:20px;width:20px;background:#fff;text-align:center;cursor:pointer;color:#444;font:16px/22px arial,sans-serif;z-index:99999",image:"position:absolute;top:10px;left:10px;right:10px;bottom:30px;overflow:hidden;display:block;",prevholder:"position:absolute;width:50%;top:0;bottom:40px;cursor:pointer;",nextholder:"position:absolute;width:50%;top:0;bottom:40px;right:-1px;cursor:pointer;",
prev:"position:absolute;top:50%;margin-top:-20px;height:40px;width:30px;background:#fff;left:20px;display:none;text-align:center;color:#000;font:bold 16px/36px arial,sans-serif",next:"position:absolute;top:50%;margin-top:-20px;height:40px;width:30px;background:#fff;right:20px;left:auto;display:none;font:bold 16px/36px arial,sans-serif;text-align:center;color:#000",title:"float:left",counter:"float:right;margin-left:8px;"};var O={};if(X===8){r.nextholder+="background:#000;filter:alpha(opacity=0);";
r.prevholder+="background:#000;filter:alpha(opacity=0);"}j.each(r,function(D,J){I+=".galleria-lightbox-"+D+"{"+J+"}"});q.insertStyleTag(I);j.each("overlay box content shadow title info close prevholder prev nextholder next counter image".split(" "),function(D,J){c.addElement("lightbox-"+J);p[J]=B.elems[J]=c.get("lightbox-"+J)});B.image=new Galleria.Picture;j.each({box:"shadow content close prevholder nextholder",info:"title counter",content:"info image",prevholder:"prev",nextholder:"next"},function(D,
J){var L=[];j.each(J.split(" "),function(T,Z){L.push("lightbox-"+Z)});O["lightbox-"+D]=L});c.append(O);j(p.image).append(B.image.container);j(P().body).append(p.overlay,p.box);q.optimizeTouch(p.box);(function(D){return D.hover(function(){j(this).css("color","#bbb")},function(){j(this).css("color","#444")})})(j(p.close).bind("click",B.hide).html("&#215;"));j.each(["Prev","Next"],function(D,J){var L=j(p[J.toLowerCase()]).html(/v/.test(J)?"&#8249;&nbsp;":"&nbsp;&#8250;"),T=j(p[J.toLowerCase()+"holder"]);
T.bind("click",function(){B["show"+J]()});X<8||Galleria.TOUCH?L.show():T.hover(function(){L.show()},function(){L.stop().fadeOut(200)})});j(p.overlay).bind("click",B.hide);if(Galleria.IPAD)c._options.lightboxTransitionSpeed=0}},rescale:function(p){var r=Math.min(M.width()-40,B.width),I=Math.min(M.height()-60,B.height);I=Math.min(r/B.width,I/B.height);r=Math.round(B.width*I)+40;I=Math.round(B.height*I)+60;r={width:r,height:I,"margin-top":Math.ceil(I/2)*-1,"margin-left":Math.ceil(r/2)*-1};p?j(B.elems.box).css(r):
j(B.elems.box).animate(r,{duration:c._options.lightboxTransitionSpeed,easing:c._options.easing,complete:function(){var O=B.image,D=c._options.lightboxFadeSpeed;c.trigger({type:Galleria.LIGHTBOX_IMAGE,imageTarget:O.image});j(O.container).show();q.show(O.image,D);q.show(B.elems.info,D)}})},hide:function(){B.image.image=null;M.unbind("resize",B.rescale);j(B.elems.box).hide();q.hide(B.elems.info);c.detachKeyboard();c.attachKeyboard(B.keymap);B.keymap=false;q.hide(B.elems.overlay,200,function(){j(this).hide().css("opacity",
c._options.overlayOpacity);c.trigger(Galleria.LIGHTBOX_CLOSE)})},showNext:function(){B.show(c.getNext(B.active))},showPrev:function(){B.show(c.getPrev(B.active))},show:function(p){B.active=p=typeof p==="number"?p:c.getIndex();B.initialized||B.init();if(!B.keymap){B.keymap=j.extend({},c._keyboard.map);c.attachKeyboard({escape:B.hide,right:B.showNext,left:B.showPrev})}M.unbind("resize",B.rescale);var r=c.getData(p),I=c.getDataLength();q.hide(B.elems.info);B.image.load(r.big||r.image,function(O){B.width=
O.original.width;B.height=O.original.height;j(O.image).css({width:"100.5%",height:"100.5%",top:0,zIndex:99998});q.hide(O.image);B.elems.title.innerHTML=r.title||"";B.elems.counter.innerHTML=p+1+" / "+I;M.resize(B.rescale);B.rescale()});j(B.elems.overlay).show();j(B.elems.box).show()}};return this};Galleria.prototype={constructor:Galleria,init:function(c,i){i=ja(i);this._original={target:c,options:i,data:null};this._target=this._dom.target=c.nodeName?c:j(c).get(0);ea.push(this);if(this._target){this._options=
{autoplay:false,carousel:true,carouselFollow:true,carouselSpeed:400,carouselSteps:"auto",clicknext:false,dataConfig:function(){return{}},dataSelector:"img",dataSource:this._target,debug:void 0,dummy:void 0,easing:"galleria",extend:function(){},fullscreenCrop:void 0,fullscreenDoubleTap:true,fullscreenTransition:void 0,height:"auto",idleMode:true,idleTime:3E3,idleSpeed:200,imageCrop:false,imageMargin:0,imagePan:false,imagePanSmoothness:12,imagePosition:"50%",imageTimeout:void 0,initialTransition:void 0,
keepSource:false,layerFollow:true,lightbox:false,lightboxFadeSpeed:200,lightboxTransitionSpeed:200,linkSourceImages:true,maxScaleRatio:void 0,minScaleRatio:void 0,overlayOpacity:0.85,overlayBackground:"#0b0b0b",pauseOnInteraction:true,popupLinks:false,preload:2,queue:true,show:0,showInfo:true,showCounter:true,showImagenav:true,swipe:true,thumbCrop:true,thumbEventType:"click",thumbFit:true,thumbMargin:0,thumbQuality:"auto",thumbnails:true,touchTransition:void 0,transition:"fade",transitionInitial:void 0,
transitionSpeed:400,useCanvas:false,width:"auto"};this._options.initialTransition=this._options.initialTransition||this._options.transitionInitial;if(i&&i.debug===false)N=false;if(i&&typeof i.imageTimeout==="number")W=i.imageTimeout;if(i&&typeof i.dummy==="string")da=i.dummy;j(this._target).children().hide();typeof Galleria.theme==="object"?this._init():qa.push(this);return this}else Galleria.raise("Target not found.",true)},_init:function(){var c=this;if(this._initialized){Galleria.raise("Init failed: Gallery instance already initialized.");
return this}this._initialized=true;if(!Galleria.theme){Galleria.raise("Init failed: No theme found.");return this}j.extend(true,this._options,Galleria.theme.defaults,this._original.options);(function(k){if("getContext"in k)fa=fa||{elem:k,context:k.getContext("2d"),cache:{},length:0}})(w.createElement("canvas"));this.bind(Galleria.DATA,function(){this._original.data=this._data;this.get("total").innerHTML=this.getDataLength();var k=this.$("container"),s={width:0,height:0},C=function(){return c.$("stage").height()};
q.wait({until:function(){j.each(["width","height"],function(E,B){s[B]=c._options[B]&&typeof c._options[B]==="number"?c._options[B]:Math.max(q.parseValue(k.css(B)),q.parseValue(c.$("target").css(B)),k[B](),c.$("target")[B]());k[B](s[B])});return C()&&s.width&&s.height>10},success:function(){Galleria.WEBKIT?t.setTimeout(function(){c._run()},1):c._run()},error:function(){C()?Galleria.raise("Could not extract sufficient width/height of the gallery container. Traced measures: width:"+s.width+"px, height: "+
s.height+"px.",true):Galleria.raise("Could not extract a stage height from the CSS. Traced height: "+C()+"px.",true)},timeout:2E3})});this.append({"info-text":["info-title","info-description"],info:["info-text"],"image-nav":["image-nav-right","image-nav-left"],stage:["images","loader","counter","image-nav"],"thumbnails-list":["thumbnails"],"thumbnails-container":["thumb-nav-left","thumbnails-list","thumb-nav-right"],container:["stage","thumbnails-container","info","tooltip"]});q.hide(this.$("counter").append(this.get("current"),
" / ",this.get("total")));this.setCounter("&#8211;");q.hide(c.get("tooltip"));this.$("container").addClass(Galleria.TOUCH?"touch":"notouch");j.each(Array(2),function(k){var s=new Galleria.Picture;j(s.container).css({position:"absolute",top:0,left:0}).prepend(c._layers[k]=j(q.create("galleria-layer")).css({position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:2})[0]);c.$("images").append(s.container);c._controls[k]=s});this.$("images").css({position:"relative",top:0,left:0,width:"100%",height:"100%"});
this.$("thumbnails, thumbnails-list").css({overflow:"hidden",position:"relative"});this.$("image-nav-right, image-nav-left").bind("click",function(k){c._options.clicknext&&k.stopPropagation();c._options.pauseOnInteraction&&c.pause();k=/right/.test(this.className)?"next":"prev";c[k]()});j.each(["info","counter","image-nav"],function(k,s){c._options["show"+s.substr(0,1).toUpperCase()+s.substr(1).replace(/-/,"")]===false&&q.moveOut(c.get(s.toLowerCase()))});this.load();if(!this._options.keep_source&&
!X)this._target.innerHTML="";this.get("errors")&&this.appendChild("target","errors");this.appendChild("target","container");if(this._options.carousel){var i=0,n=this._options.show;this.bind(Galleria.THUMBNAIL,function(){this.updateCarousel();++i==this.getDataLength()&&typeof n=="number"&&n>0&&this._carousel.follow(n)})}if(this._options.swipe){(function(k){var s=[0,0],C=[0,0],E=false,B=0,p,r={start:"touchstart",move:"touchmove",stop:"touchend"},I=function(D){if(!(D.originalEvent.touches&&D.originalEvent.touches.length>
1)){p=D.originalEvent.touches?D.originalEvent.touches[0]:D;C=[p.pageX,p.pageY];s[0]||(s=C);Math.abs(s[0]-C[0])>10&&D.preventDefault()}},O=function(D){k.unbind(r.move,I);if(D.originalEvent.touches&&D.originalEvent.touches.length||E)E=!E;else{if(q.timestamp()-B<1E3&&Math.abs(s[0]-C[0])>30&&Math.abs(s[1]-C[1])<100){D.preventDefault();c[s[0]>C[0]?"next":"prev"]()}s=C=[0,0]}};k.bind(r.start,function(D){if(!(D.originalEvent.touches&&D.originalEvent.touches.length>1)){p=D.originalEvent.touches?D.originalEvent.touches[0]:
D;B=q.timestamp();s=C=[p.pageX,p.pageY];k.bind(r.move,I).one(r.stop,O)}})})(c.$("images"));this._options.fullscreenDoubleTap&&this.$("stage").bind("touchstart",function(){var k,s,C,E,B,p;return function(r){p=Galleria.utils.timestamp();s=(r.originalEvent.touches?r.originalEvent.touches[0]:r).pageX;C=(r.originalEvent.touches?r.originalEvent.touches[0]:r).pageY;if(p-k<500&&s-E<20&&C-B<20){c.toggleFullscreen();r.preventDefault();c.$("stage").unbind("touchend",arguments.callee)}else{k=p;E=s;B=C}}}())}q.optimizeTouch(this.get("container"));
return this},_createThumbnails:function(){this.get("total").innerHTML=this.getDataLength();var c,i,n,k,s,C=this,E=this._options,B=function(){var J=C.$("thumbnails").find(".active");if(!J.length)return false;return J.find("img").attr("src")}(),p=typeof E.thumbnails==="string"?E.thumbnails.toLowerCase():null,r=function(J){return w.defaultView&&w.defaultView.getComputedStyle?w.defaultView.getComputedStyle(n.container,null)[J]:s.css(J)},I=function(J,L,T){return function(){j(T).append(J);C.trigger({type:Galleria.THUMBNAIL,
thumbTarget:J,index:L})}},O=function(J){E.pauseOnInteraction&&C.pause();var L=j(J.currentTarget).data("index");C.getIndex()!==L&&C.show(L);J.preventDefault()},D=function(J){J.scale({width:J.data.width,height:J.data.height,crop:E.thumbCrop,margin:E.thumbMargin,canvas:E.useCanvas,complete:function(L){var T=["left","top"],Z,ma;j.each(["Width","Height"],function(sa,ya){Z=ya.toLowerCase();if((E.thumbCrop!==true||E.thumbCrop===Z)&&E.thumbFit){ma={};ma[Z]=L[Z];j(L.container).css(ma);ma={};ma[T[sa]]=0;j(L.image).css(ma)}L["outer"+
ya]=j(L.container)["outer"+ya](true)});q.toggleQuality(L.image,E.thumbQuality===true||E.thumbQuality==="auto"&&L.original.width<L.width*3);C.trigger({type:Galleria.THUMBNAIL,thumbTarget:L.image,index:L.data.order})}})};this._thumbnails=[];this.$("thumbnails").empty();for(c=0;this._data[c];c++){k=this._data[c];if(E.thumbnails===true){n=new Galleria.Picture(c);i=k.thumb||k.image;this.$("thumbnails").append(n.container);s=j(n.container);n.data={width:q.parseValue(r("width")),height:q.parseValue(r("height")),
order:c};E.thumbFit&&E.thumbCrop!==true?s.css({width:0,height:0}):s.css({width:n.data.width,height:n.data.height});n.load(i,D);E.preload==="all"&&n.preload(k.image)}else if(p==="empty"||p==="numbers"){n={container:q.create("galleria-image"),image:q.create("img","span"),ready:true};p==="numbers"&&j(n.image).text(c+1);this.$("thumbnails").append(n.container);t.setTimeout(I(n.image,c,n.container),50+c*20)}else n={container:null,image:null};j(n.container).add(E.keepSource&&E.linkSourceImages?k.original:
null).data("index",c).bind(E.thumbEventType,O);B===i&&j(n.container).addClass("active");this._thumbnails.push(n)}},_run:function(){var c=this;c._createThumbnails();q.wait({until:function(){Galleria.OPERA&&c.$("stage").css("display","inline-block");c._stageWidth=c.$("stage").width();c._stageHeight=c.$("stage").height();return c._stageWidth&&c._stageHeight>50},success:function(){$.push(c);q.show(c.get("counter"));c._options.carousel&&c._carousel.bindControls();if(c._options.autoplay){c.pause();if(typeof c._options.autoplay===
"number")c._playtime=c._options.autoplay;c.trigger(Galleria.PLAY);c._playing=true}if(c._firstrun)typeof c._options.show==="number"&&c.show(c._options.show);else{c._firstrun=true;if(c._options.clicknext&&!Galleria.TOUCH){j.each(c._data,function(i,n){delete n.link});c.$("stage").css({cursor:"pointer"}).bind("click",function(){c._options.pauseOnInteraction&&c.pause();c.next()})}Galleria.History&&Galleria.History.change(function(i){isNaN(i)?t.history.go(-1):c.show(i,void 0,true)});j.each(Galleria.ready.callbacks,
function(){this.call(c,c._options)});c.trigger(Galleria.READY);Galleria.theme.init.call(c,c._options);c._options.extend.call(c,c._options);if(/^[0-9]{1,4}$/.test(ca)&&Galleria.History)c.show(ca,void 0,true);else c._data[c._options.show]&&c.show(c._options.show)}},error:function(){Galleria.raise("Stage width or height is too small to show the gallery. Traced measures: width:"+c._stageWidth+"px, height: "+c._stageHeight+"px.",true)}})},load:function(c,i,n){var k=this;this._data=[];this._thumbnails=
[];this.$("thumbnails").empty();if(typeof i==="function"){n=i;i=null}c=c||this._options.dataSource;i=i||this._options.dataSelector;n=n||this._options.dataConfig;if(/^function Object/.test(c.constructor))c=[c];if(c.constructor===Array){if(this.validate(c)){this._data=c;this._parseData().trigger(Galleria.DATA)}else Galleria.raise("Load failed: JSON Array not valid.");return this}j(c).find(i).each(function(s,C){C=j(C);var E={},B=C.parent(),p=B.attr("href");B=B.attr("rel");if(p)E.image=E.big=p;if(B)E.big=
B;k._data.push(j.extend({title:C.attr("title")||"",thumb:C.attr("src"),image:C.attr("src"),big:C.attr("src"),description:C.attr("alt")||"",link:C.attr("longdesc"),original:C.get(0)},E,n(C)))});this.getDataLength()?this.trigger(Galleria.DATA):Galleria.raise("Load failed: no data found.");return this},_parseData:function(){var c=this;j.each(this._data,function(i,n){if("thumb"in n===false)c._data[i].thumb=n.image;if(false in n)c._data[i].big=n.image});return this},splice:function(){Array.prototype.splice.apply(this._data,
q.array(arguments));return this._parseData()._createThumbnails()},push:function(){Array.prototype.push.apply(this._data,q.array(arguments));return this._parseData()._createThumbnails()},_getActive:function(){return this._controls.getActive()},validate:function(){return true},bind:function(c,i){c=la(c);this.$("container").bind(c,this.proxy(i));return this},unbind:function(c){c=la(c);this.$("container").unbind(c);return this},trigger:function(c){c=typeof c==="object"?j.extend(c,{scope:this}):{type:la(c),
scope:this};this.$("container").trigger(c);return this},addIdleState:function(){this._idle.add.apply(this._idle,q.array(arguments));return this},removeIdleState:function(){this._idle.remove.apply(this._idle,q.array(arguments));return this},enterIdleMode:function(){this._idle.hide();return this},exitIdleMode:function(){this._idle.showAll();return this},enterFullscreen:function(){this._fullscreen.enter.apply(this,q.array(arguments));return this},exitFullscreen:function(){this._fullscreen.exit.apply(this,
q.array(arguments));return this},toggleFullscreen:function(){this._fullscreen[this.isFullscreen()?"exit":"enter"].apply(this,q.array(arguments));return this},bindTooltip:function(){this._tooltip.bind.apply(this._tooltip,q.array(arguments));return this},defineTooltip:function(){this._tooltip.define.apply(this._tooltip,q.array(arguments));return this},refreshTooltip:function(){this._tooltip.show.apply(this._tooltip,q.array(arguments));return this},openLightbox:function(){this._lightbox.show.apply(this._lightbox,
q.array(arguments));return this},closeLightbox:function(){this._lightbox.hide.apply(this._lightbox,q.array(arguments));return this},getActiveImage:function(){return this._getActive().image||void 0},getActiveThumb:function(){return this._thumbnails[this._active].image||void 0},getMousePosition:function(c){return{x:c.pageX-this.$("container").offset().left,y:c.pageY-this.$("container").offset().top}},addPan:function(c){if(this._options.imageCrop!==false){c=j(c||this.getActiveImage());var i=this,n=c.width()/
2,k=c.height()/2,s=parseInt(c.css("left"),10),C=parseInt(c.css("top"),10),E=s||0,B=C||0,p=0,r=0,I=false,O=q.timestamp(),D=0,J=0,L=function(Z,ma,sa){if(Z>0){J=Math.round(Math.max(Z*-1,Math.min(0,ma)));if(D!==J){D=J;if(X===8)c.parent()["scroll"+sa](J*-1);else{Z={};Z[sa.toLowerCase()]=J;c.css(Z)}}}},T=function(Z){if(!(q.timestamp()-O<50)){I=true;n=i.getMousePosition(Z).x;k=i.getMousePosition(Z).y}};if(X===8){c.parent().scrollTop(B*-1).scrollLeft(E*-1);c.css({top:0,left:0})}this.$("stage").unbind("mousemove",
T).bind("mousemove",T);q.addTimer("pan",function(){if(I){p=c.width()-i._stageWidth;r=c.height()-i._stageHeight;s=n/i._stageWidth*p*-1;C=k/i._stageHeight*r*-1;E+=(s-E)/i._options.imagePanSmoothness;B+=(C-B)/i._options.imagePanSmoothness;L(r,B,"Top");L(p,E,"Left")}},50,true);return this}},proxy:function(c,i){if(typeof c!=="function")return function(){};i=i||this;return function(){return c.apply(i,q.array(arguments))}},removePan:function(){this.$("stage").unbind("mousemove");q.clearTimer("pan");return this},
addElement:function(){var c=this._dom;j.each(q.array(arguments),function(i,n){c[n]=q.create("galleria-"+n)});return this},attachKeyboard:function(){this._keyboard.attach.apply(this._keyboard,q.array(arguments));return this},detachKeyboard:function(){this._keyboard.detach.apply(this._keyboard,q.array(arguments));return this},appendChild:function(c,i){this.$(c).append(this.get(i)||i);return this},prependChild:function(c,i){this.$(c).prepend(this.get(i)||i);return this},remove:function(){this.$(q.array(arguments).join(",")).remove();
return this},append:function(c){var i,n;for(i in c)if(c.hasOwnProperty(i))if(c[i].constructor===Array)for(n=0;c[i][n];n++)this.appendChild(i,c[i][n]);else this.appendChild(i,c[i]);return this},_scaleImage:function(c,i){c=c||this._controls.getActive();var n,k=function(s){j(s.container).children(":first").css({top:Math.max(0,q.parseValue(s.image.style.top)),left:Math.max(0,q.parseValue(s.image.style.left)),width:q.parseValue(s.image.width),height:q.parseValue(s.image.height)})};i=j.extend({width:this._stageWidth,
height:this._stageHeight,crop:this._options.imageCrop,max:this._options.maxScaleRatio,min:this._options.minScaleRatio,margin:this._options.imageMargin,position:this._options.imagePosition},i);if(this._options.layerFollow&&this._options.imageCrop!==true)if(typeof i.complete=="function"){n=i.complete;i.complete=function(){n.call(c,c);k(c)}}else i.complete=k;else j(c.container).children(":first").css({top:0,left:0});c.scale(i);return this},updateCarousel:function(){this._carousel.update();return this},
rescale:function(c,i,n){var k=this;if(typeof c==="function"){n=c;c=void 0}var s=function(){k._stageWidth=c||k.$("stage").width();k._stageHeight=i||k.$("stage").height();k._scaleImage();k._options.carousel&&k.updateCarousel();k.trigger(Galleria.RESCALE);typeof n==="function"&&n.call(k)};Galleria.WEBKIT&&!c&&!i?q.addTimer("scale",s,10):s.call(k);return this},refreshImage:function(){this._scaleImage();this._options.imagePan&&this.addPan();return this},show:function(c,i,n){if(!(c===false||!this._options.queue&&
this._queue.stalled)){c=Math.max(0,Math.min(parseInt(c,10),this.getDataLength()-1));i=typeof i!=="undefined"?!!i:c<this.getIndex();if(!n&&Galleria.History)Galleria.History.set(c.toString());else{this._active=c;Array.prototype.push.call(this._queue,{index:c,rewind:i});this._queue.stalled||this._show();return this}}},_show:function(){var c=this,i=this._queue[0],n=this.getData(i.index);if(n){var k=this.isFullscreen()&&"big"in n?n.big:n.image,s=this._controls.getActive(),C=this._controls.getNext(),E=
C.isCached(k),B=this._thumbnails[i.index],p=function(L,T,Z,ma,sa){return function(){c._queue.stalled=false;q.toggleQuality(T.image,c._options.imageQuality);c._layers[c._controls.active].innerHTML="";j(Z.container).css({zIndex:0,opacity:0}).show();j(T.container).css({zIndex:1}).show();c._controls.swap();c._options.imagePan&&c.addPan(T.image);if(L.link||c._options.lightbox)j(T.image).css({cursor:"pointer"}).bind("mouseup",function(){if(L.link)if(c._options.popupLinks)t.open(L.link,"_blank");else t.location.href=
L.link;else c.openLightbox()});Array.prototype.shift.call(c._queue);c._queue.length&&c._show();c._playCheck();c.trigger({type:Galleria.IMAGE,index:ma.index,imageTarget:T.image,thumbTarget:sa.image})}}(n,C,s,i,B);this._options.carousel&&this._options.carouselFollow&&this._carousel.follow(i.index);if(this._options.preload){var r,I,O=this.getNext(),D;try{for(I=this._options.preload;I>0;I--){r=new Galleria.Picture;D=c.getData(O);r.preload(this.isFullscreen()&&"big"in D?D.big:D.image);O=c.getNext(O)}}catch(J){}}q.show(C.container);
j(c._thumbnails[i.index].container).addClass("active").siblings(".active").removeClass("active");c.trigger({type:Galleria.LOADSTART,cached:E,index:i.index,rewind:i.rewind,imageTarget:C.image,thumbTarget:B.image});C.load(k,function(L){j(c._layers[1-c._controls.active]).html(n.layer||"").hide();c._scaleImage(L,{complete:function(T){"image"in s&&q.toggleQuality(s.image,false);q.toggleQuality(T.image,false);c._queue.stalled=true;c.removePan();c.setInfo(i.index);c.setCounter(i.index);n.layer&&j(c._layers[1-
c._controls.active]).show();c.trigger({type:Galleria.LOADFINISH,cached:E,index:i.index,rewind:i.rewind,imageTarget:T.image,thumbTarget:c._thumbnails[i.index].image});var Z=c._options.transition;j.each({initial:s.image===null,touch:Galleria.TOUCH,fullscreen:c.isFullscreen()},function(ma,sa){if(sa&&c._options[ma+"Transition"]!==void 0){Z=c._options[ma+"Transition"];return false}});Z in ra===false?p():ra[Z].call(c,{prev:s.container,next:T.container,rewind:i.rewind,speed:c._options.transitionSpeed||400},
p)}})})}},getNext:function(c){c=typeof c==="number"?c:this.getIndex();return c===this.getDataLength()-1?0:c+1},getPrev:function(c){c=typeof c==="number"?c:this.getIndex();return c===0?this.getDataLength()-1:c-1},next:function(){this.getDataLength()>1&&this.show(this.getNext(),false);return this},prev:function(){this.getDataLength()>1&&this.show(this.getPrev(),true);return this},get:function(c){return c in this._dom?this._dom[c]:null},getData:function(c){return c in this._data?this._data[c]:this._data[this._active]},
getDataLength:function(){return this._data.length},getIndex:function(){return typeof this._active==="number"?this._active:false},getStageHeight:function(){return this._stageHeight},getStageWidth:function(){return this._stageWidth},getOptions:function(c){return typeof c==="undefined"?this._options:this._options[c]},setOptions:function(c,i){if(typeof c==="object")j.extend(this._options,c);else this._options[c]=i;return this},play:function(c){this._playing=true;this._playtime=c||this._playtime;this._playCheck();
this.trigger(Galleria.PLAY);return this},pause:function(){this._playing=false;this.trigger(Galleria.PAUSE);return this},playToggle:function(c){return this._playing?this.pause():this.play(c)},isPlaying:function(){return this._playing},isFullscreen:function(){return this._fullscreen.active},_playCheck:function(){var c=this,i=0,n=q.timestamp(),k="play"+this._id;if(this._playing){q.clearTimer(k);var s=function(){i=q.timestamp()-n;if(i>=c._playtime&&c._playing){q.clearTimer(k);c.next()}else if(c._playing){c.trigger({type:Galleria.PROGRESS,
percent:Math.ceil(i/c._playtime*100),seconds:Math.floor(i/1E3),milliseconds:i});q.addTimer(k,s,20)}};q.addTimer(k,s,20)}},setPlaytime:function(c){this._playtime=c;return this},setIndex:function(c){this._active=c;return this},setCounter:function(c){if(typeof c==="number")c++;else if(typeof c==="undefined")c=this.getIndex()+1;this.get("current").innerHTML=c;if(X){c=this.$("counter");var i=c.css("opacity");parseInt(i,10)===1?q.removeAlpha(c[0]):this.$("counter").css("opacity",i)}return this},setInfo:function(c){var i=
this,n=this.getData(c);j.each(["title","description"],function(k,s){var C=i.$("info-"+s);n[s]?C[n[s].length?"show":"hide"]().html(n[s]):C.empty().hide()});return this},hasInfo:function(c){var i="title description".split(" "),n;for(n=0;i[n];n++)if(this.getData(c)[i[n]])return true;return false},jQuery:function(c){var i=this,n=[];j.each(c.split(","),function(s,C){C=j.trim(C);i.get(C)&&n.push(C)});var k=j(i.get(n.shift()));j.each(n,function(s,C){k=k.add(i.get(C))});return k},$:function(){return this.jQuery.apply(this,
q.array(arguments))}};j.each(ia,function(c,i){var n=/_/.test(i)?i.replace(/_/g,""):i;Galleria[i.toUpperCase()]="galleria."+n});j.extend(Galleria,{IE9:X===9,IE8:X===8,IE7:X===7,IE6:X===6,IE:X,WEBKIT:/webkit/.test(aa),SAFARI:/safari/.test(aa),CHROME:/chrome/.test(aa),QUIRK:X&&w.compatMode&&w.compatMode==="BackCompat",MAC:/mac/.test(navigator.platform.toLowerCase()),OPERA:!!t.opera,IPHONE:/iphone/.test(aa),IPAD:/ipad/.test(aa),ANDROID:/android/.test(aa),TOUCH:"ontouchstart"in w});Galleria.addTheme=function(c){c.name||
Galleria.raise("No theme name specified");c.defaults=typeof c.defaults!=="object"?{}:ja(c.defaults);var i=false,n;if(typeof c.css==="string"){j("link").each(function(k,s){n=RegExp(c.css);if(n.test(s.href)){i=true;ka(c);return false}});i||j("script").each(function(k,s){n=RegExp("galleria\\."+c.name.toLowerCase()+"\\.");if(n.test(s.src)){i=s.src.replace(/[^\/]*$/,"")+c.css;q.addTimer("css",function(){q.loadCSS(i,"galleria-theme",function(){ka(c)})},1)}});i||Galleria.raise("No theme CSS loaded")}else ka(c);
return c};Galleria.loadTheme=function(c,i){var n=$.length,k=t.setTimeout(function(){Galleria.raise("Theme at "+c+" could not load, check theme path.",true)},5E3);Galleria.theme=void 0;q.loadScript(c,function(){t.clearTimeout(k);if(n){var s=[];j.each(Galleria.get(),function(C,E){var B=j.extend(E._original.options,{data_source:E._data},i);E.$("container").remove();var p=new Galleria;p._id=E._id;p.init(E._original.target,B);s.push(p)});$=s}})};Galleria.get=function(c){if(ea[c])return ea[c];else if(typeof c!==
"number")return ea;else Galleria.raise("Gallery index "+c+" not found")};Galleria.addTransition=function(c,i){ra[c]=i};Galleria.utils=q;Galleria.log=function(){return"console"in t&&"log"in t.console?t.console.log:function(){t.alert(q.array(arguments).join(", "))}}();Galleria.ready=function(c){j.each($,function(i,n){c.call(n,n._options)});Galleria.ready.callbacks.push(c)};Galleria.ready.callbacks=[];Galleria.raise=function(c,i){var n=i?"Fatal error":"Error",k=function(s){var C='<div style="padding:4px;margin:0 0 2px;background:#'+
(i?"811":"222")+'";>'+(i?"<strong>"+n+": </strong>":"")+s+"</div>";j.each(ea,function(){var E=this.$("errors"),B=this.$("target");if(!E.length){B.css("position","relative");E=this.addElement("errors").appendChild("target","errors").$("errors").css({color:"#fff",position:"absolute",top:0,left:0,zIndex:1E5})}E.append(C)})};if(N){k(c);if(i)throw Error(n+": "+c);}else if(i)if(!A){A=true;i=false;k("Image gallery could not load.")}};Galleria.version=1.25;Galleria.requires=function(c,i){Galleria.version<
c&&Galleria.raise(i||"You need to upgrade Galleria to version "+c+" to use one or more components.",true)};Galleria.Picture=function(c){this.id=c||null;this.image=null;this.container=q.create("galleria-image");j(this.container).css({overflow:"hidden",position:"relative"});this.original={width:0,height:0};this.ready=false;this.tid=null};Galleria.Picture.prototype={cache:{},show:function(){q.show(this.image)},hide:function(){q.moveOut(this.image)},clear:function(){this.image=null},isCached:function(c){return!!this.cache[c]},
preload:function(c){j(new Image).load(function(i,n){return function(){n[i]=i}}(c,this.cache)).attr("src",c)},load:function(c,i){this.tid=t.setTimeout(function(E){return function(){Galleria.raise("Image not loaded in "+Math.round(W/1E3)+" seconds: "+E)}}(c),W);this.image=new Image;var n=false,k=j(this.container),s=j(this.image),C=function(E,B,p){return function(){var r=function(){E.original={height:this.height,width:this.width};E.cache[p]=p;t.clearTimeout(E.tid);typeof B=="function"&&t.setTimeout(function(){B.call(E,
E)},1)};!this.width||!this.height?t.setTimeout(function(I){return function(){I.width&&I.height?r.call(I):Galleria.raise("Could not extract width/height from image: "+I.src+". Traced measures: width:"+I.width+"px, height: "+I.height+"px.")}}(this),2):r.call(this)}}(this,i,c);k.find("img").remove();s.css("display","block").appendTo(this.container);q.hide(this.image);if(this.cache[c]){this.image.src=c;C.call(this.image);return this.container}j(this.image).load(C).error(function(){if(n)da?j(this).attr("src",
da):Galleria.raise("Image not found: "+c);else{n=true;t.setTimeout(function(E,B){return function(){E.attr("src",B+"?"+q.timestamp())}}(j(this),c),50)}}).attr("src",c);return this.container},scale:function(c){c=j.extend({width:0,height:0,min:void 0,max:void 0,margin:0,complete:function(){},position:"center",crop:false,canvas:false},c);if(!this.image)return this.container;var i,n,k=this,s=j(k.container),C;q.wait({until:function(){i=c.width||s.width()||q.parseValue(s.css("width"));n=c.height||s.height()||
q.parseValue(s.css("height"));return i&&n},success:function(){var E=(i-c.margin*2)/k.original.width,B=(n-c.margin*2)/k.original.height,p={"true":Math.max(E,B),width:E,height:B,"false":Math.min(E,B)}[c.crop.toString()];E="";if(c.max)p=Math.min(c.max,p);if(c.min)p=Math.max(c.min,p);j.each(["width","height"],function(D,J){j(k.image)[J](k[J]=k.image[J]=Math.round(k.original[J]*p))});j(k.container).width(i).height(n);if(c.canvas&&fa){fa.elem.width=k.width;fa.elem.height=k.height;E=k.image.src+":"+k.width+
"x"+k.height;k.image.src=fa.cache[E]||function(D){fa.context.drawImage(k.image,0,0,k.original.width*p,k.original.height*p);try{C=fa.elem.toDataURL();fa.length+=C.length;return fa.cache[D]=C}catch(J){return k.image.src}}(E)}var r={},I={};E=function(D,J,L){var T=0;if(/\%/.test(D)){D=parseInt(D,10)/100;J=k.image[J]||j(k.image)[J]();T=Math.ceil(J*-1*D+L*D)}else T=q.parseValue(D);return T};var O={top:{top:0},left:{left:0},right:{left:"100%"},bottom:{top:"100%"}};j.each(c.position.toLowerCase().split(" "),
function(D,J){if(J==="center")J="50%";r[D?"top":"left"]=J});j.each(r,function(D,J){O.hasOwnProperty(J)&&j.extend(I,O[J])});r=r.top?j.extend(r,I):I;r=j.extend({top:"50%",left:"50%"},r);j(k.image).css({position:"absolute",top:E(r.top,"height",n),left:E(r.left,"width",i)});k.show();k.ready=true;c.complete.call(k,k)},error:function(){Galleria.raise("Could not scale image: "+k.image.src)},timeout:1E3});return this}};j.extend(j.easing,{galleria:function(c,i,n,k,s){if((i/=s/2)<1)return k/2*i*i*i+n;return k/
2*((i-=2)*i*i+2)+n},galleriaIn:function(c,i,n,k,s){return k*(i/=s)*i+n},galleriaOut:function(c,i,n,k,s){return-k*(i/=s)*(i-2)+n}});j.fn.galleria=function(c){return this.each(function(){j(this).data("galleria",(new Galleria).init(this,c))})}})(jQuery);(function(j){var t={prototyping:function(){j('img[src="#"]').attr("src","/media/i/placeholder.png").addClass("placeholder").each(function(){this.width-=2;this.height-=2});j('a[href="#"]').click(function(w){w.preventDefault()})},BROWSER:{IE:function(){for(var w=3,R=document.createElement("div");R.innerHTML="<\!--[if gt IE "+ ++w+"]><i></i><![endif]--\>",R.getElementsByTagName("i")[0];);return w>4?w:void 0}()}};window.Aino=t;window.STATIC_URL="/static/";window.THEMES_URL=STATIC_URL+"themes/"})(jQuery);var G_DEMO_IMAGES=[{title:"Manzanar birds on wire",thumb:STATIC_URL+"i/sample/00_m.jpg",image:STATIC_URL+"i/sample/00.jpg",description:"Birds on wire, evening, Manzanar Relocation Center / photograph by Ansel Adams."},{title:"Antarctic Sunset",thumb:STATIC_URL+"i/sample/12_m.jpg",image:STATIC_URL+"i/sample/12.jpg",description:"An Antarctic Sunset, photo taken by Calee Allen on April 6th, 2008."},{title:"Locomotives Roundhouse",thumb:STATIC_URL+"i/sample/01_m.jpg",image:STATIC_URL+"i/sample/01.jpg",
description:"Steam locomotives of the Chicago & North Western Railway."},{title:"Braunwald Alps",thumb:STATIC_URL+"i/sample/11_m.jpg",image:STATIC_URL+"i/sample/11.jpg",description:"View from Braunwald, Switzerland."},{title:"Icebergs in the High Arctic",thumb:STATIC_URL+"i/sample/02_m.jpg",image:STATIC_URL+"i/sample/02.jpg",description:"\u201dThe debris loading isn't particularly extensive, but the color is usual.\u201d"},{title:"Ara\u00f1a",thumb:STATIC_URL+"i/sample/03_m.jpg",image:STATIC_URL+
"i/sample/03.jpg",description:"Xysticus cristatus, A Estrada, Galicia, Spain"},{title:"Museo storia naturale",thumb:STATIC_URL+"i/sample/04_m.jpg",image:STATIC_URL+"i/sample/04.jpg"},{title:"Grj\u00f3tagj\u00e1 caves in summer 2009",thumb:STATIC_URL+"i/sample/05_m.jpg",image:STATIC_URL+"i/sample/05.jpg"},{title:"Thermes",thumb:STATIC_URL+"i/sample/06_m.jpg",image:STATIC_URL+"i/sample/06.jpg",description:"Xanthi hot-spa springs, Xanthi Prefecture, Greece"},{title:"Polish Army Ko\u0142obrzeg",thumb:STATIC_URL+
"i/sample/07_m.jpg",image:STATIC_URL+"i/sample/07.jpg",description:"A display of the Polish Army. Both the soldier, and the vehicle belong to the 7th Pomeranian Coastal Defence Brigade, a part of the Szczecin-based 12th Mechanized Division \u201dBoles\u0142aw Krzywousty\u201d"},{title:"Zlatograd Bulgaria",thumb:STATIC_URL+"i/sample/08_m.jpg",image:STATIC_URL+"i/sample/08.jpg"},{title:"09-28-2001 in New York City",thumb:STATIC_URL+"i/sample/09_m.jpg",image:STATIC_URL+"i/sample/09.jpg",description:"New York, NY, September 28, 2001 -- Debris on surrounding roofs at the site of the World Trade Center. Photo by Andrea Booher/ FEMA News Photo"},
{thumb:STATIC_URL+"i/sample/10_m.jpg",image:STATIC_URL+"i/sample/10.jpg"}];(function(j,t,w){var R=[],M=j.G={init:function(N){this.views._global.call(this);for(var W=document.body.className.split(" "),da=0;da<W.length;da++)W[da]in this.views&&this.views[W[da]].call(this);typeof N==="number"&&M.run(N)},make:function(N,W){R[N]=W},run:function(N,W,da){W=W||"#demo";da=da||function(){};w.theme=R[N];w.utils.loadCSS(THEMES_URL+N+"/"+N+".css","galleria-theme",function(){t(W).galleria({data_source:G_DEMO_IMAGES,extend:function(aa){da.call(this,aa)}})})},trackDownload:function(N){t(N).each(function(){t(this).click(function(){var W=
this.href.split("/");_gaq.push(["_trackEvent","Stats","Download",W.length>1?W[W.length-1]:"unknown"])})})},views:{_global:function(){t("a:path").addClass("active");t(".secondary .box li:last").addClass("last");M.trackDownload("a.dl, a.download")},home:function(){M.run(1,"#demo",function(){Galleria.TOUCH&&this.setOptions("transition","fadeslide")})},tp:function(){var N=t("#themes");t("#theme-switcher").click(function(){N.toggle()}).trigger("click")},docs:function(){},"theme-purchase":function(){t("input[type=image]").each(function(){var N=
t("<a>",{href:"",html:"Buy Now <span>$"+t(this).siblings('[name|="amount"]').val()+"</span>",click:function(W){W.preventDefault();W=t(this).closest("form");W.length&&W.submit()}});t(this).replaceWith(N);N.wrap('<div class="btn" />')})}}};j.G=M})(window,jQuery,Galleria);(function(j){G.make(0,{defaults:{transition:"pulse",thumbCrop:true,imageCrop:true,carousel:false,imagePan:true,clicknext:true,_locale:{enter_fullscreen:"Enter fullscreen",exit_fullscreen:"Exit fullscreen",click_to_close:"Click to close",show_thumbnails:"Show thumbnails",show_info:"Show info"}},init:function(t){var w=this,R=false,M;M=0;var N,W,da;this.addElement("desc","dots","thumbs","fs","more");this.append({container:["desc","dots","thumbs","fs","info-description","more"]});da=this.$("thumbnails-container").hide().css("visibility",
"visible");var aa=function(ca){return j("<div>").click(function(X){return function(P){P.preventDefault();w.show(X)}}(ca))};for(M=0;M<this.getDataLength();M++)this.$("dots").append(aa(M));M=this.$("dots").outerWidth();N=this.$("desc").hide().hover(function(){j(this).addClass("hover")},function(){j(this).removeClass("hover")}).click(function(){j(this).hide()});W=this.$("loader");this.bindTooltip({fs:function(){return R?t._locale.exit_fullscreen:t._locale.enter_fullscreen},desc:t._locale.click_to_close,
more:t._locale.show_info,thumbs:t._locale.show_thumbnails});this.bind("loadstart",function(ca){ca.cached||this.$("loader").show().fadeTo(200,0.4)});this.bind("loadfinish",function(ca){var X=w.getData().title,P=w.getData().description;N.hide();W.fadeOut(200);this.$("dots").children("div").eq(ca.index).addClass("active").siblings(".active").removeClass("active");if(X&&P){N.empty().append("<strong>"+X+"</strong>","<p>"+P+"</p>").css({marginTop:this.$("desc").outerHeight()/-2});this.$("more").show()}else this.$("more").hide();
da.fadeOut(t.fadeSpeed);w.$("thumbs").removeClass("active")});this.bind("thumbnail",function(ca){j(ca.thumbTarget).hover(function(){w.setInfo(ca.index)},function(){w.setInfo()})});this.$("fs").click(function(){w.toggleFullscreen();R=!R});this.$("thumbs").click(function(ca){ca.preventDefault();da.toggle();j(this).toggleClass("active");N.hide()});this.$("more").click(function(){N.toggle()});this.$("info").css({width:this.getStageWidth()-M-30,left:M+10})}});G.make(1,{defaults:{transition:"pulse",transitionSpeed:500,
imageCrop:true,thumbCrop:true,carousel:false,_locale:{show_thumbnails:"Show thumbnails",hide_thumbnails:"Hide thumbnails",play:"Play slideshow",pause:"Pause slideshow",enter_fullscreen:"Enter fullscreen",exit_fullscreen:"Exit fullscreen",popout_image:"Popout image",showing_image:"Showing image %s of %s"},_showFullscreen:true,_showPopout:true,_showProgress:true,_showTooltip:true},init:function(t){this.addElement("bar","fullscreen","play","popout","thumblink","s1","s2","s3","s4","progress");this.append({stage:"progress",
container:["bar","tooltip"],bar:["fullscreen","play","popout","thumblink","info","s1","s2","s3","s4"]});this.prependChild("info","counter");var w=this,R=this.$("thumbnails-container"),M=this.$("thumblink"),N=this.$("fullscreen"),W=this.$("play"),da=this.$("popout"),aa=this.$("bar"),ca=this.$("progress"),X=t.transition,P=t._locale,ia=false,ja=false,la=!!t.autoplay,d=false,$=function(){R.height(w.getStageHeight()).width(w.getStageWidth()).css("top",ia?0:w.getStageHeight()+30)},ea=function(){if(ia&&
d)w.play();else{d=la;w.pause()}Galleria.utils.animate(R,{top:ia?w.getStageHeight()+30:0},{easing:"galleria",duration:400,complete:function(){w.defineTooltip("thumblink",ia?P.show_thumbnails:P.hide_thumbnails);M[ia?"removeClass":"addClass"]("open");ia=!ia}})};$();t._showTooltip&&w.bindTooltip({thumblink:P.show_thumbnails,fullscreen:P.enter_fullscreen,play:P.play,popout:P.popout_image,caption:function(){var A=w.getData(),fa="";if(A){if(A.title&&A.title.length)fa+="<strong>"+A.title+"</strong>";if(A.description&&
A.description.length)fa+="<br>"+A.description}return fa},counter:function(){return P.showing_image.replace(/\%s/,w.getIndex()+1).replace(/\%s/,w.getDataLength())}});t.showInfo||this.$("info").hide();this.bind("play",function(){la=true;W.addClass("playing")});this.bind("pause",function(){la=false;W.removeClass("playing");ca.width(0)});t._showProgress&&this.bind("progress",function(A){ca.width(A.percent/100*this.getStageWidth())});this.bind("loadstart",function(A){A.cached||this.$("loader").show()});
this.bind("loadfinish",function(){ca.width(0);this.$("loader").hide();this.refreshTooltip("counter","caption")});this.bind("thumbnail",function(A){j(A.thumbTarget).hover(function(){w.setInfo(A.thumbOrder);w.setCounter(A.thumbOrder)},function(){w.setInfo();w.setCounter()}).click(function(){ea()})});this.bind("fullscreen_enter",function(){ja=true;w.setOptions("transition",false);N.addClass("open");aa.css("bottom",0);this.defineTooltip("fullscreen",P.exit_fullscreen);Galleria.TOUCH||this.addIdleState(aa,
{bottom:-31})});this.bind("fullscreen_exit",function(){ja=false;Galleria.utils.clearTimer("bar");w.setOptions("transition",X);N.removeClass("open");aa.css("bottom",0);this.defineTooltip("fullscreen",P.enter_fullscreen);Galleria.TOUCH||this.removeIdleState(aa,{bottom:-31})});this.bind("rescale",$);if(!Galleria.TOUCH){this.addIdleState(this.get("image-nav-left"),{left:-36});this.addIdleState(this.get("image-nav-right"),{right:-36})}M.click(ea);if(t._showPopout)da.click(function(A){w.openLightbox();
A.preventDefault()});else{da.remove();if(t._showFullscreen){this.$("s4").remove();this.$("info").css("right",40);N.css("right",0)}}W.click(function(){w.defineTooltip("play",la?P.play:P.pause);if(la)w.pause();else{ia&&M.click();w.play()}});if(t._showFullscreen)N.click(function(){ja?w.exitFullscreen():w.enterFullscreen()});else{N.remove();if(t._show_popout){this.$("s4").remove();this.$("info").css("right",40);da.css("right",0)}}if(!t._showFullscreen&&!t._showPopout){this.$("s3,s4").remove();this.$("info").css("right",
10)}t.autoplay&&this.trigger("play")}});G.make(2,{defaults:{transition:"none",imageCrop:true,thumbCrop:"height",easing:"galleriaOut",_hideDock:Galleria.TOUCH?false:true,_closeOnClick:false},init:function(t){this.addElement("thumbnails-tab");this.appendChild("thumbnails-container","thumbnails-tab");var w=this.$("thumbnails-tab"),R=this.$("loader"),M=this.$("thumbnails-container"),N=this.$("thumbnails-list"),W=this.$("info-text"),da=this.$("info"),aa=!t._hideDock,ca=0;if(Galleria.IE){this.addElement("iefix");
this.appendChild("container","iefix");this.$("iefix").css({zIndex:3,position:"absolute",backgroundColor:"#000",opacity:0.4,top:0})}t.thumbnails===false&&M.hide();var X=this.proxy(function(P){if(P||P.width){P=Math.min(P.width,j(window).width());W.width(P-40);Galleria.IE&&this.getOptions("showInfo")&&this.$("iefix").width(da.outerWidth()).height(da.outerHeight())}});this.bind("rescale",function(){ca=this.getStageHeight()-w.height()-2;M.css("top",aa?ca-N.outerHeight()+2:ca);var P=this.getActiveImage();
P&&X(P)});this.bind("loadstart",function(P){P.cached||R.show().fadeTo(100,1);j(P.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",0.6)});this.bind("loadfinish",function(){R.fadeOut(300);this.$("info, iefix").toggle(this.hasInfo())});this.bind("image",function(P){X(P.imageTarget)});this.bind("thumbnail",function(P){j(P.thumbTarget).parent(":not(.active)").children().css("opacity",0.6);j(P.thumbTarget).click(function(){aa&&t._closeOnClick&&w.click()})});this.trigger("rescale");
if(!Galleria.TOUCH){this.addIdleState(M,{opacity:0});this.addIdleState(this.get("info"),{opacity:0})}Galleria.IE&&this.addIdleState(this.get("iefix"),{opacity:0});this.$("image-nav-left, image-nav-right").css("opacity",0.01).hover(function(){j(this).animate({opacity:1},100)},function(){j(this).animate({opacity:0})}).show();if(t._hideDock)w.click(this.proxy(function(){w.toggleClass("open",!aa);aa?M.animate({top:ca},400,t.easing):M.animate({top:ca-N.outerHeight()+2},400,t.easing);aa=!aa}));else{this.bind("thumbnail",
function(){M.css("top",ca-N.outerHeight()+2)});w.css("visibility","hidden")}this.$("thumbnails").children().hover(function(){j(this).not(".active").children().stop().fadeTo(100,1)},function(){j(this).not(".active").children().stop().fadeTo(400,0.6)});this.enterFullscreen();this.attachKeyboard({escape:function(){return false},up:function(P){aa||w.click();P.preventDefault()},down:function(P){aa&&w.click();P.preventDefault()}})}});G.make(3,{defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:true},
init:function(t){this.addElement("info-link","info-close");this.append({info:["info-link","info-close"]});var w=this.$("info-link,info-close,info-text"),R=Galleria.TOUCH,M=R?"touchstart":"click";this.$("loader,counter").show().css("opacity",0.4);if(!R){this.addIdleState(this.get("image-nav-left"),{left:-50});this.addIdleState(this.get("image-nav-right"),{right:-50});this.addIdleState(this.get("counter"),{opacity:0})}if(t._toggleInfo===true)w.bind(M,function(){w.toggle()});else{w.show();this.$("info-link, info-close").hide()}this.bind("thumbnail",
function(N){if(R)j(N.thumbTarget).css("opacity",N.index==t.show?1:0.6);else{j(N.thumbTarget).css("opacity",0.6).parent().hover(function(){j(this).not(".active").children().stop().fadeTo(100,1)},function(){j(this).not(".active").children().stop().fadeTo(400,0.6)});N.index===t.show&&j(N.thumbTarget).css("opacity",1)}});this.bind("loadstart",function(N){N.cached||this.$("loader").show().fadeTo(200,0.4);this.$("info").toggle(this.hasInfo());j(N.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",
0.6)});this.bind("loadfinish",function(){this.$("loader").fadeOut(200)})}});G.make(4,{defaults:{transition:"pulse",thumbCrop:"width",imageCrop:false,carousel:false,show:false,easing:"galleriaOut",fullscreenDoubleTap:false,_webkitCursor:true,_animate:true},init:function(t){this.addElement("preloader","loaded","close").append({container:"preloader",preloader:"loaded",stage:"close"});var w=this,R=this.$("stage"),M=this.$("thumbnails"),N=this.$("images"),W=this.$("info"),da=this.$("loader"),aa=this.$("target"),
ca=0,X=aa.width(),P=0,ia=t.show,ja=false,la=function($){w.$("info").css({left:Math.max(20,j(window).width()/2-$/2+10)})},d=function($,ea){ea=j.extend({speed:400,width:190,onbrick:function(){},onheight:function(){},delay:0,debug:false},ea);$=j($);var A=$.children(),fa=$.width(),qa=Math.floor(fa/ea.width),ka=[],q,ra,c;fa={"float":"none",position:"absolute",display:j.browser.safari?"inline-block":"block"};if($.data("colCount")!==qa){$.data("colCount",qa);if(A.length){for(q=0;q<qa;q++)ka[q]=0;$.css("position",
"relative");A.css(fa).each(function(i,n){n=j(n);for(q=qa-1;q>-1;q--)if(ka[q]===Math.min.apply(window,ka))ra=q;c={top:ka[ra],left:ea.width*ra};if(!(typeof c.top!=="number"||typeof c.left!=="number")){if(ea.speed)window.setTimeout(function(k,s,C){return function(){Galleria.utils.animate(k,C,{easing:"galleriaOut",duration:s.speed,complete:s.onbrick})}}(n,ea,c),i*ea.delay);else{n.css(c);ea.onbrick.call(n)}n.data("height")||n.data("height",n.outerHeight(true));ka[ra]+=n.data("height")}});A=Math.max.apply(window,
ka);if(!(A<0))if(typeof A==="number")if(ea.speed)$.animate({height:Math.max.apply(window,ka)},ea.speed,ea.onheight);else{$.height(Math.max.apply(window,ka));ea.onheight.call($)}}}};Galleria.OPERA&&this.$("stage").css("display","none");this.bind("fullscreen_enter",function(){N.css("visibility","hidden");R.show();this.$("container").css("height","100%");ja=true});this.bind("fullscreen_exit",function(){R.hide();M.show();W.hide();ja=false});this.bind("thumbnail",function($){this.addElement("plus");var ea=
$.thumbTarget,A=this.$("plus").css({display:"block"}).insertAfter(ea),fa=j(ea).parent().data("index",$.index);t.showInfo&&this.hasInfo($.index)&&A.append("<span>"+this.getData($.index).title+"</span>");P=P||j(ea).parent().outerWidth(true);j(ea).css("opacity",0);fa.unbind(t.thumbEventType);Galleria.IE?A.hide():A.css("opacity",0);Galleria.TOUCH?fa.bind("touchstart",function(){A.css("opacity",1)}).bind("touchend",function(){A.hide()}):fa.hover(function(){Galleria.IE?A.show():A.stop().css("opacity",1)},
function(){Galleria.IE?A.hide():A.stop().animate({opacity:0},300)});ca++;this.$("loaded").css("width",ca/this.getDataLength()*100+"%");if(ca===this.getDataLength()){this.$("preloader").fadeOut(100);d(M,{width:P,speed:t._animate?400:0,onbrick:function(){var qa=j(this).find("img");window.setTimeout(function(ka){return function(){Galleria.utils.animate(ka,{opacity:1},{duration:t.transition_speed});ka.parent().bind(Galleria.TOUCH?"mouseup":"click",function(){M.hide();W.hide();var q=j(this);w.enterFullscreen(function(){w.show(q.data("index"));
if(q.data("index")===ia){N.css("visibility","visible");W.toggle(w.hasInfo())}})})}}(qa),t._animate?qa.parent().data("index")*100:0)},onheight:function(){aa.height(M.height())}})}});this.bind("loadstart",function($){$.cached||da.show()});this.bind("loadfinish",function($){W.hide();ia=this.getIndex();N.css("visibility","visible");da.hide();if(this.hasInfo()&&t.showInfo)W.fadeIn(t.transition?t.transitionSpeed:0);la($.imageTarget.width)});if(!Galleria.TOUCH){this.addIdleState(this.get("image-nav-left"),
{left:-100});this.addIdleState(this.get("image-nav-right"),{right:-100});this.addIdleState(this.get("info"),{opacity:0});this.addIdleState(this.get("close"),{top:-50})}this.$("container").css({width:t.width,height:"auto"});t._webkitCursor&&Galleria.WEBKIT&&this.$("image-nav-right,image-nav-left").addClass("cur");if(Galleria.TOUCH){this.setOptions({transition:"fadeslide",initialTransition:false});this.$("image-nav").hide()}this.$("close").click(function(){w.exitFullscreen()});j(window).resize(function(){if(ja)w.getActiveImage()&&
la(w.getActiveImage().width);else{var $=aa.width();if($!==X){X=$;d(M,{width:P,delay:50,debug:true,onheight:function(){aa.height(M.height())}})}}})}})})(jQuery);(function(j){var t={ignoreFiles:["index.htm","index.html","index.shtml","index.cgi","index.php"],strictQuery:true,ignore:function(){return RegExp("("+this.ignoreFiles.join("|")+")","i")},window:function(){var w=window.location,R=w.href.cleanPath(this.ignore()).split("/");w=w.search.substring(1).length>0?w.search.substring(1).split("&"):[];this.strictQuery||w.sort();return R.concat(w)},anchor:function(w){var R=w.getAttribute("href",1);if(!R||w.nodeName!="A")return false;w=window.location;R=R.absUrl().cleanPath(this.ignore());
if(R===(w.protocol+"//"+w.hostname).replace(/www\./,"").noSlash())return false;w=R.split("?");R=w[0].noSlash().split("/");w=w.length>1?w[1].split("&"):[];this.strictQuery||w.sort();return R.concat(w)},compareArray:function(w,R){if(w.length!=R.length)return false;for(var M=0;M<R.length;M++)if(w[M]!==R[M])return false;return true},match:function(w){if(j(w).attr("href")=="#")return false;var R=this.anchor(w),M=this.window();if(w.pathname.split("/").length<3)return this.compareArray(M,R);return M.length<
R.length?false:this.compareArray(M.slice(0,R.length),R)},current:function(w){if(j(w).attr("href")=="#")return false;w=this.anchor(w);return this.compareArray(this.window(),w)}};j.extend(j.expr[":"],{path:function(w){return t.match(w)}});j.extend(j.expr[":"],{current:function(w){return t.current(w)}});String.prototype.noSlash=function(){return this.lastIndexOf("/")===this.length-1||this.lastIndexOf("#")===this.length-1?this.substr(0,this.length-1):this.toString()};String.prototype.absUrl=function(){var w=
window.location,R,M;if(/^\w+:/.test(this))return this.toString();R=w.protocol+"//"+w.host;if(this.indexOf("/")===0)return R+this.toString();w=w.pathname.replace(/\/[^\/]*$/,"");if(M=this.match(/\.\.\//g)){var N=this.substring(M.length*3);for(M=M.length;M--;)w=w.substring(0,w.lastIndexOf("/"))}else N=this.toString();return R+w+"/"+N};String.prototype.cleanPath=function(w){return this.replace(/www\./i,"").replace(w,"").replace(/\.\//,"").noSlash().toString()}})(jQuery);

