/*
* Note: While Microsoft is not the author of this file, Microsoft is
* offering you a license subject to the terms of the Microsoft Software
* License Terms for Microsoft ASP.NET Model View Controller 3.
* Microsoft reserves all other rights. The notices below are provided
* for informational purposes only and are not the license terms under
* which Microsoft distributed this file.
*
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
* Copyright 2011, John Resig
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
*
* Date: Thu Nov 11 19:04:53 2010 -0500
*/
(function(ac,ae){function b7(b){return b8.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:!1}function b4(d){if(!a8[d]){var e=b8("<"+d+">").appendTo("body"),f=e.css("display");e.remove();if(f==="none"||f===""){f="block"}a8[d]=f}return a8[d]}function b3(d,e){var f={};b8.each(b2.concat.apply([],b2.slice(0,e)),function(){f[this]=d});return f}function a6(){try{return new ac.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}function a4(){try{return new ac.XMLHttpRequest}catch(a){}}function a2(){b8(ac).unload(function(){for(var b in aY){aY[b](0,1)}})}function aQ(b,d){b.dataFilter&&(d=b.dataFilter(d,b.dataType));var q=b.dataTypes,r={},s,t,u=q.length,v,w=q[0],x,y,z,A,B;for(s=1;s<u;s++){if(s===1){for(t in b.converters){typeof t==="string"&&(r[t.toLowerCase()]=b.converters[t])}}x=w,w=q[s];if(w==="*"){w=x}else{if(x!=="*"&&x!==w){y=x+" "+w,z=r[y]||r["* "+w];if(!z){B=ae;for(A in r){v=A.split(" ");if(v[0]===x||v[0]==="*"){B=r[v[1]+" "+w];if(B){A=r[A],A===!0?z=B:B===!0&&(z=A);break}}}}!z&&!B&&b8.error("No conversion from "+y.replace(" "," to ")),z!==!0&&(d=z?z(d):B(A(d)))}}}return d}function aO(b,l,m){var p=b.contents,q=b.dataTypes,r=b.responseFields,s,t,u,v;for(t in r){t in m&&(l[r[t]]=m[t])}while(q[0]==="*"){q.shift(),s===ae&&(s=b.mimeType||l.getResponseHeader("content-type"))}if(s){for(t in p){if(p[t]&&p[t].test(s)){q.unshift(t);break}}}if(q[0] in m){u=q[0]}else{for(t in m){if(!q[0]||b.converters[t+" "+q[0]]){u=t;break}v||(v=t)}u=u||v}if(u){u!==q[0]&&q.unshift(u);return m[u]}}function aM(d,g,h,j){if(b8.isArray(g)&&g.length){b8.each(g,function(a,c){h||aP.test(d)?j(d,c):aM(d+"["+(typeof c==="object"||b8.isArray(c)?a:"")+"]",c,h,j)})}else{if(h||g==null||typeof g!=="object"){j(d,g)}else{if(b8.isArray(g)||b8.isEmptyObject(g)){j(d,"")}else{for(var k in g){aM(d+"["+k+"]",g[k],h,j)}}}}}function aK(b,m,p,q,r,s){r=r||m.dataTypes[0],s=s||{},s[r]=!0;var t=b[r],u=0,v=t?t.length:0,w=b===ay,x;for(;u<v&&(w||!x);u++){x=t[u](m,p,q),typeof x==="string"&&(!w||s[x]?x=ae:(m.dataTypes.unshift(x),x=aK(b,m,p,q,x,s)))}(w||!x)&&!s["*"]&&(x=aK(b,m,p,q,"*",s));return x}function aI(b){return function(a,d){typeof a!=="string"&&(d=a,a="*");if(b8.isFunction(d)){var k=a.toLowerCase().split(al),l=0,m=k.length,p,q,r;for(;l<m;l++){p=k[l],r=/^\+/.test(p),r&&(p=p.substr(1)||"*"),q=b[p]=b[p]||[],q[r?"unshift":"push"](d)}}}}function aL(d,g,h){var j=g==="width"?az:aB,k=g==="width"?d.offsetWidth:d.offsetHeight;if(h==="border"){return k}b8.each(j,function(){h||(k-=parseFloat(b8.css(d,"padding"+this))||0),h==="margin"?k+=parseFloat(b8.css(d,"margin"+this))||0:k-=parseFloat(b8.css(d,"border"+this+"Width"))||0});return k}function ai(c,d){d.src?b8.ajax({url:d.src,async:!1,dataType:"script"}):b8.globalEval(d.text||d.textContent||d.innerHTML||""),d.parentNode&&d.parentNode.removeChild(d)}function ab(b){return"getElementsByTagName" in b?b.getElementsByTagName("*"):"querySelectorAll" in b?b.querySelectorAll("*"):[]}function aa(d,e){if(e.nodeType===1){var f=e.nodeName.toLowerCase();e.clearAttributes(),e.mergeAttributes(d);if(f==="object"){e.outerHTML=d.outerHTML}else{if(f!=="input"||d.type!=="checkbox"&&d.type!=="radio"){if(f==="option"){e.selected=d.defaultSelected}else{if(f==="input"||f==="textarea"){e.defaultValue=d.defaultValue}}}else{d.checked&&(e.defaultChecked=e.checked=d.checked),e.value!==d.value&&(e.value=d.value)}}e.removeAttribute(b8.expando)}}function cY(d,k){if(k.nodeType===1&&b8.hasData(d)){var l=b8.expando,m=b8.data(d),p=b8.data(k,m);if(m=m[l]){var q=m.events;p=p[l]=b8.extend({},m);if(q){delete p.handle,p.events={};for(var r in q){for(var s=0,t=q[r].length;s<t;s++){b8.event.add(k,r+(q[r][s].namespace?".":"")+q[r][s].namespace,q[r][s],q[r][s].data)}}}}}}function cW(c,d){return b8.nodeName(c,"table")?c.getElementsByTagName("tbody")[0]||c.appendChild(c.ownerDocument.createElement("tbody")):c}function cC(d,f,g){if(b8.isFunction(f)){return b8.grep(d,function(b,c){var j=!!f.call(b,c,b);return j===g})}if(f.nodeType){return b8.grep(d,function(b,c){return b===f===g})}if(typeof f==="string"){var h=b8.grep(d,function(b){return b.nodeType===1});if(cs.test(f)){return b8.filter(f,h,!g)}f=b8.filter(f,h)}return b8.grep(d,function(b,c){return b8.inArray(b,f)>=0===g})}function cA(b){return !b||!b.parentNode||b.parentNode.nodeType===11}function ck(c,d){return(c&&c!=="*"?c+".":"")+d.replace(cH,"`").replace(cJ,"&")}function ci(d){var p,u,v,w,x,y,z,A,B,C,D,E,F,G=[],H=[],I=b8._data(this,"events");if(d.liveFired!==this&&I&&I.live&&!d.target.disabled&&(!d.button||d.type!=="click")){d.namespace&&(E=new RegExp("(^|\\.)"+d.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),d.liveFired=this;var J=I.live.slice(0);for(z=0;z<J.length;z++){x=J[z],x.origType.replace(cD,"")===d.type?H.push(x.selector):J.splice(z--,1)}w=b8(d.target).closest(H,d.currentTarget);for(A=0,B=w.length;A<B;A++){D=w[A];for(z=0;z<J.length;z++){x=J[z];if(D.selector===x.selector&&(!E||E.test(x.namespace))&&!D.elem.disabled){y=D.elem,v=null;if(x.preType==="mouseenter"||x.preType==="mouseleave"){d.type=x.preType,v=b8(d.relatedTarget).closest(x.selector)[0]}(!v||v!==y)&&G.push({elem:y,handleObj:x,level:D.level})}}}for(A=0,B=G.length;A<B;A++){w=G[A];if(u&&w.level>u){break}d.currentTarget=w.elem,d.data=w.handleObj.data,d.handleObj=w.handleObj,F=w.handleObj.origHandler.apply(w.elem,arguments);if(F===!1||d.isPropagationStopped()){u=w.level,F===!1&&(p=!1);if(d.isImmediatePropagationStopped()){break}}}return p}}function b0(b,d,g){var h=b8.extend({},g[0]);h.type=b,h.originalEvent={},h.liveFired=ae,b8.event.handle.call(d,h),h.isDefaultPrevented()&&g[0].preventDefault()}function cR(){return !0}function cP(){return !1}function cl(c){for(var d in c){if(d!=="toJSON"){return !1}}return !0}function cj(b,d,e){if(e===ae&&b.nodeType===1){e=b.getAttribute("data-"+d);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:b8.isNaN(e)?ch.test(e)?b8.parseJSON(e):e:parseFloat(e)}catch(h){}b8.data(b,d,e)}else{e=ae}}return e}var a9=ac.document,b8=function(){function V(){if(!J.isReady){try{a9.documentElement.doScroll("left")}catch(d){setTimeout(V,1);return}J.ready()}}var J=function(d,e){return new J.fn.init(d,e,P)},L=ac.jQuery,N=ac.$,P,R=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,T=/\S/,W=/^\s+/,X=/\s+$/,Y=/\d/,Z=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ba=/^[\],:{}\s]*$/,bb=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bc=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bd=/(?:^|:|,)(?:\s*\[)+/g,be=/(webkit)[ \/]([\w.]+)/,bf=/(opera)(?:.*version)?[ \/]([\w.]+)/,bg=/(msie) ([\w.]+)/,bh=/(mozilla)(?:.*? rv:([\w.]+))?/,bi=navigator.userAgent,bj,bk=!1,bl,bm="then done fail isResolved isRejected promise".split(" "),a,b=Object.prototype.toString,c=Object.prototype.hasOwnProperty,K=Array.prototype.push,M=Array.prototype.slice,O=String.prototype.trim,Q=Array.prototype.indexOf,S={};J.fn=J.prototype={constructor:J,init:function(d,h,l){var m,p,q,r;if(!d){return this}if(d.nodeType){this.context=this[0]=d,this.length=1;return this}if(d==="body"&&!h&&a9.body){this.context=a9,this[0]=a9.body,this.selector="body",this.length=1;return this}if(typeof d==="string"){m=R.exec(d);if(!m||!m[1]&&h){return !h||h.jquery?(h||l).find(d):this.constructor(h).find(d)}if(m[1]){h=h instanceof J?h[0]:h,r=h?h.ownerDocument||h:a9,q=Z.exec(d),q?J.isPlainObject(h)?(d=[a9.createElement(q[1])],J.fn.attr.call(d,h,!0)):d=[r.createElement(q[1])]:(q=J.buildFragment([m[1]],[r]),d=(q.cacheable?J.clone(q.fragment):q.fragment).childNodes);return J.merge(this,d)}p=a9.getElementById(m[2]);if(p&&p.parentNode){if(p.id!==m[2]){return l.find(d)}this.length=1,this[0]=p}this.context=a9,this.selector=d;return this}if(J.isFunction(d)){return l.ready(d)}d.selector!==ae&&(this.selector=d.selector,this.context=d.context);return J.makeArray(d,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return M.call(this,0)},get:function(d){return d==null?this.toArray():d<0?this[this.length+d]:this[d]},pushStack:function(d,f,g){var h=this.constructor();J.isArray(d)?K.apply(h,d):J.merge(h,d),h.prevObject=this,h.context=this.context,f==="find"?h.selector=this.selector+(this.selector?" ":"")+g:f&&(h.selector=this.selector+"."+f+"("+g+")");return h},each:function(d,e){return J.each(this,d,e)},ready:function(d){J.bindReady(),bl.done(d);return this},eq:function(d){return d===-1?this.slice(d):this.slice(d,+d+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(M.apply(this,arguments),"slice",M.call(arguments).join(","))},map:function(d){return this.pushStack(J.map(this,function(e,f){return d.call(e,f,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:[].sort,splice:[].splice},J.fn.init.prototype=J.fn,J.extend=J.fn.extend=function(){var d,m,p,q,r,s,t=arguments[0]||{},u=1,v=arguments.length,w=!1;typeof t==="boolean"&&(w=t,t=arguments[1]||{},u=2),typeof t!=="object"&&!J.isFunction(t)&&(t={}),v===u&&(t=this,--u);for(;u<v;u++){if((d=arguments[u])!=null){for(m in d){p=t[m],q=d[m];if(t===q){continue}w&&q&&(J.isPlainObject(q)||(r=J.isArray(q)))?(r?(r=!1,s=p&&J.isArray(p)?p:[]):s=p&&J.isPlainObject(p)?p:{},t[m]=J.extend(w,s,q)):q!==ae&&(t[m]=q)}}}return t},J.extend({noConflict:function(d){ac.$=N,d&&(ac.jQuery=L);return J},isReady:!1,readyWait:1,ready:function(d){d===!0&&J.readyWait--;if(!J.readyWait||d!==!0&&!J.isReady){if(!a9.body){return setTimeout(J.ready,1)}J.isReady=!0;if(d!==!0&&--J.readyWait>0){return}bl.resolveWith(a9,[J]),J.fn.trigger&&J(a9).trigger("ready").unbind("ready")}},bindReady:function(){if(!bk){bk=!0;if(a9.readyState==="complete"){return setTimeout(J.ready,1)}if(a9.addEventListener){a9.addEventListener("DOMContentLoaded",a,!1),ac.addEventListener("load",J.ready,!1)}else{if(a9.attachEvent){a9.attachEvent("onreadystatechange",a),ac.attachEvent("onload",J.ready);var d=!1;try{d=ac.frameElement==null}catch(f){}a9.documentElement.doScroll&&d&&V()}}}},isFunction:function(d){return J.type(d)==="function"},isArray:Array.isArray||function(d){return J.type(d)==="array"},isWindow:function(d){return d&&typeof d==="object"&&"setInterval" in d},isNaN:function(d){return d==null||!Y.test(d)||isNaN(d)},type:function(d){return d==null?String(d):S[b.call(d)]||"object"},isPlainObject:function(d){if(!d||J.type(d)!=="object"||d.nodeType||J.isWindow(d)){return !1}if(d.constructor&&!c.call(d,"constructor")&&!c.call(d.constructor.prototype,"isPrototypeOf")){return !1}var e;for(e in d){}return e===ae||c.call(d,e)},isEmptyObject:function(d){for(var e in d){return !1}return !0},error:function(d){throw d},parseJSON:function(d){if(typeof d!=="string"||!d){return null}d=J.trim(d);if(ba.test(d.replace(bb,"@").replace(bc,"]").replace(bd,""))){return ac.JSON&&ac.JSON.parse?ac.JSON.parse(d):(new Function("return "+d))()}J.error("Invalid JSON: "+d)},parseXML:function(d,f,g){ac.DOMParser?(g=new DOMParser,f=g.parseFromString(d,"text/xml")):(f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(d)),g=f.documentElement,(!g||!g.nodeName||g.nodeName==="parsererror")&&J.error("Invalid XML: "+d);return f},noop:function(){},globalEval:function(d){if(d&&T.test(d)){var f=a9.head||a9.getElementsByTagName("head")[0]||a9.documentElement,g=a9.createElement("script");J.support.scriptEval()?g.appendChild(a9.createTextNode(d)):g.text=d,f.insertBefore(g,f.firstChild),f.removeChild(g)}},nodeName:function(d,e){return d.nodeName&&d.nodeName.toUpperCase()===e.toUpperCase()},each:function(d,k,l){var m,p=0,q=d.length,r=q===ae||J.isFunction(d);if(l){if(r){for(m in d){if(k.apply(d[m],l)===!1){break}}}else{for(;p<q;){if(k.apply(d[p++],l)===!1){break}}}}else{if(r){for(m in d){if(k.call(d[m],m,d[m])===!1){break}}}else{for(var s=d[0];p<q&&k.call(s,p,s)!==!1;s=d[++p]){}}}return d},trim:O?function(d){return d==null?"":O.call(d)}:function(d){return d==null?"":(d+"").replace(W,"").replace(X,"")},makeArray:function(d,f){var g=f||[];if(d!=null){var h=J.type(d);d.length==null||h==="string"||h==="function"||h==="regexp"||J.isWindow(d)?K.call(g,d):J.merge(g,d)}return g},inArray:function(e,f){if(f.indexOf){return f.indexOf(e)}for(var g=0,h=f.length;g<h;g++){if(f[g]===e){return g}}return -1},merge:function(g,h){var j=g.length,k=0;if(typeof h.length==="number"){for(var l=h.length;k<l;k++){g[j++]=h[k]}}else{while(h[k]!==ae){g[j++]=h[k++]}}g.length=j;return g},grep:function(h,j,k){var l=[],m;k=!!k;for(var p=0,q=h.length;p<q;p++){m=!!j(h[p],p),k!==m&&l.push(h[p])}return l},map:function(h,j,k){var l=[],m;for(var p=0,q=h.length;p<q;p++){m=j(h[p],p,k),m!=null&&(l[l.length]=m)}return l.concat.apply([],l)},guid:1,proxy:function(d,f,g){arguments.length===2&&(typeof f==="string"?(g=d,d=g[f],f=ae):f&&!J.isFunction(f)&&(g=f,f=ae)),!f&&d&&(f=function(){return d.apply(g||this,arguments)}),d&&(f.guid=d.guid=d.guid||f.guid||J.guid++);return f},access:function(d,l,m,p,q,r){var s=d.length;if(typeof l==="object"){for(var t in l){J.access(d,t,l[t],p,q,m)}return d}if(m!==ae){p=!r&&p&&J.isFunction(m);for(var u=0;u<s;u++){q(d[u],l,p?m.call(d[u],u,q(d[u],l)):m,r)}return d}return s?q(d[0],l):ae},now:function(){return(new Date).getTime()},_Deferred:function(){var d=[],g,h,j,k={done:function(){if(!j){var e=arguments,f,l,m,p,q;g&&(q=g,g=0);for(f=0,l=e.length;f<l;f++){m=e[f],p=J.type(m),p==="array"?k.done.apply(k,m):p==="function"&&d.push(m)}q&&k.resolveWith(q[0],q[1])}return this},resolveWith:function(e,l){if(!j&&!g&&!h){h=1;try{while(d[0]){d.shift().apply(e,l)}}catch(m){throw m}finally{g=[e,l],h=0}}return this},resolve:function(){k.resolveWith(J.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return h||g},cancel:function(){j=1,d=[];return this}};return k},Deferred:function(d){var f=J._Deferred(),g=J._Deferred(),h;J.extend(f,{then:function(e,j){f.done(e).fail(j);return this},fail:g.done,rejectWith:g.resolveWith,reject:g.resolve,isRejected:g.isResolved,promise:function(e){if(e==null){if(h){return h}h=e={}}var j=bm.length;while(j--){e[bm[j]]=f[bm[j]]}return e}}),f.done(g.cancel).fail(f.cancel),delete f.cancel,d&&d.call(f,f);return f},when:function(d){var j=arguments.length,k=j<=1&&d&&J.isFunction(d.promise)?d:J.Deferred(),l=k.promise();if(j>1){var m=M.call(arguments,0),p=j,q=function(e){return function(f){m[e]=arguments.length>1?M.call(arguments,0):f,--p||k.resolveWith(l,m)}};while(j--){d=m[j],d&&J.isFunction(d.promise)?d.promise().then(q(j),k.reject):--p}p||k.resolveWith(l,m)}else{k!==d&&k.resolve(d)}return l},uaMatch:function(d){d=d.toLowerCase();var e=be.exec(d)||bf.exec(d)||bg.exec(d)||d.indexOf("compatible")<0&&bh.exec(d)||[];return{browser:e[1]||"",version:e[2]||"0"}},sub:function(){function d(e,h){return new d.fn.init(e,h)}J.extend(!0,d,this),d.superclass=this,d.fn=d.prototype=this(),d.fn.constructor=d,d.subclass=this.subclass,d.fn.init=function f(e,h){h&&h instanceof J&&!(h instanceof d)&&(h=d(h));return J.fn.init.call(this,e,h,g)},d.fn.init.prototype=d.fn;var g=d(a9);return d},browser:{}}),bl=J._Deferred(),J.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(d,e){S["[object "+e+"]"]=e.toLowerCase()}),bj=J.uaMatch(bi),bj.browser&&(J.browser[bj.browser]=!0,J.browser.version=bj.version),J.browser.webkit&&(J.browser.safari=!0),Q&&(J.inArray=function(d,e){return Q.call(e,d)}),T.test(" ")&&(W=/^[\s\xA0]+/,X=/[\s\xA0]+$/),P=J(a9),a9.addEventListener?a=function(){a9.removeEventListener("DOMContentLoaded",a,!1),J.ready()}:a9.attachEvent&&(a=function(){a9.readyState==="complete"&&(a9.detachEvent("onreadystatechange",a),J.ready())});return J}();(function(){b8.support={};var a=a9.createElement("div");a.style.display="none",a.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var c=a.getElementsByTagName("*"),d=a.getElementsByTagName("a")[0],p=a9.createElement("select"),q=p.appendChild(a9.createElement("option")),r=a.getElementsByTagName("input")[0];if(c&&c.length&&d){b8.support={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55$/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:r.value==="on",optSelected:q.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},r.checked=!0,b8.support.noCloneChecked=r.cloneNode(!0).checked,p.disabled=!0,b8.support.optDisabled=!q.disabled;var s=null;b8.support.scriptEval=function(){if(s===null){var h=a9.documentElement,j=a9.createElement("script"),k="script"+b8.now();try{j.appendChild(a9.createTextNode("window."+k+"=1;"))}catch(l){}h.insertBefore(j,h.firstChild),ac[k]?(s=!0,delete ac[k]):s=!1,h.removeChild(j),h=j=k=null}return s};try{delete a.test}catch(t){b8.support.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function u(){b8.support.noCloneEvent=!1,a.detachEvent("onclick",u)}),a.cloneNode(!0).fireEvent("onclick")),a=a9.createElement("div"),a.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var v=a9.createDocumentFragment();v.appendChild(a.firstChild),b8.support.checkClone=v.cloneNode(!0).cloneNode(!0).lastChild.checked,b8(function(){var f=a9.createElement("div"),g=a9.getElementsByTagName("body")[0];if(g){f.style.width=f.style.paddingLeft="1px",g.appendChild(f),b8.boxModel=b8.support.boxModel=f.offsetWidth===2,"zoom" in f.style&&(f.style.display="inline",f.style.zoom=1,b8.support.inlineBlockNeedsLayout=f.offsetWidth===2,f.style.display="",f.innerHTML="<div style='width:4px;'></div>",b8.support.shrinkWrapBlocks=f.offsetWidth!==2),f.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var h=f.getElementsByTagName("td");b8.support.reliableHiddenOffsets=h[0].offsetHeight===0,h[0].style.display="",h[1].style.display="none",b8.support.reliableHiddenOffsets=b8.support.reliableHiddenOffsets&&h[0].offsetHeight===0,f.innerHTML="",g.removeChild(f).style.display="none",f=h=null}});var w=function(e){var f=a9.createElement("div");e="on"+e;if(!f.attachEvent){return !0}var g=e in f;g||(f.setAttribute(e,"return;"),g=typeof f[e]==="function"),f=null;return g};b8.support.submitBubbles=w("submit"),b8.support.changeBubbles=w("change"),a=c=d=null}})();var ch=/^(?:\{.*\}|\[.*\])$/;b8.extend({cache:{},uuid:0,expando:"jQuery"+(b8.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(b){b=b.nodeType?b8.cache[b[b8.expando]]:b[b8.expando];return !!b&&!cl(b)},data:function(b,d,m,p){if(b8.acceptData(b)){var q=b8.expando,r=typeof d==="string",s,t=b.nodeType,u=t?b8.cache:b,v=t?b[b8.expando]:b[b8.expando]&&b8.expando;if((!v||p&&v&&!u[v][q])&&r&&m===ae){return}v||(t?b[b8.expando]=v=++b8.uuid:v=b8.expando),u[v]||(u[v]={},t||(u[v].toJSON=b8.noop));if(typeof d==="object"||typeof d==="function"){p?u[v][q]=b8.extend(u[v][q],d):u[v]=b8.extend(u[v],d)}s=u[v],p&&(s[q]||(s[q]={}),s=s[q]),m!==ae&&(s[d]=m);if(d==="events"&&!s[d]){return s[q]&&s[q].events}return r?s[d]:s}},removeData:function(a,d,g){if(b8.acceptData(a)){var m=b8.expando,p=a.nodeType,q=p?b8.cache:a,r=p?a[b8.expando]:b8.expando;if(!q[r]){return}if(d){var s=g?q[r][m]:q[r];if(s){delete s[d];if(!cl(s)){return}}}if(g){delete q[r][m];if(!cl(q[r])){return}}var t=q[r][m];b8.support.deleteExpando||q!=ac?delete q[r]:q[r]=null,t?(q[r]={},p||(q[r].toJSON=b8.noop),q[r][m]=t):p&&(b8.support.deleteExpando?delete a[b8.expando]:a.removeAttribute?a.removeAttribute(b8.expando):a[b8.expando]=null)}},_data:function(d,e,f){return b8.data(d,e,f,!0)},acceptData:function(c){if(c.nodeName){var d=b8.noData[c.nodeName.toLowerCase()];if(d){return d!==!0&&c.getAttribute("classid")===d}}return !0}}),b8.fn.extend({data:function(b,d){var f=null;if(typeof b==="undefined"){if(this.length){f=b8.data(this[0]);if(this[0].nodeType===1){var l=this[0].attributes,m;for(var p=0,q=l.length;p<q;p++){m=l[p].name,m.indexOf("data-")===0&&(m=m.substr(5),cj(this[0],m,f[m]))}}}return f}if(typeof b==="object"){return this.each(function(){b8.data(this,b)})}var r=b.split(".");r[1]=r[1]?"."+r[1]:"";if(d===ae){f=this.triggerHandler("getData"+r[1]+"!",[r[0]]),f===ae&&this.length&&(f=b8.data(this[0],b),f=cj(this[0],b,f));return f===ae&&r[1]?this.data(r[0]):f}return this.each(function(){var a=b8(this),c=[r[0],d];a.triggerHandler("setData"+r[1]+"!",c),b8.data(this,b,d),a.triggerHandler("changeData"+r[1]+"!",c)})},removeData:function(b){return this.each(function(){b8.removeData(this,b)})}}),b8.extend({queue:function(d,f,g){if(d){f=(f||"fx")+"queue";var h=b8._data(d,f);if(!g){return h||[]}!h||b8.isArray(g)?h=b8._data(d,f,b8.makeArray(g)):h.push(g);return h}},dequeue:function(d,f){f=f||"fx";var g=b8.queue(d,f),h=g.shift();h==="inprogress"&&(h=g.shift()),h&&(f==="fx"&&g.unshift("inprogress"),h.call(d,function(){b8.dequeue(d,f)})),g.length||b8.removeData(d,f+"queue",!0)}}),b8.fn.extend({queue:function(b,d){typeof b!=="string"&&(d=b,b="fx");if(d===ae){return b8.queue(this[0],b)}return this.each(function(a){var c=b8.queue(this,b,d);b==="fx"&&c[0]!=="inprogress"&&b8.dequeue(this,b)})},dequeue:function(b){return this.each(function(){b8.dequeue(this,b)})},delay:function(c,d){c=b8.fx?b8.fx.speeds[c]||c:c,d=d||"fx";return this.queue(d,function(){var a=this;setTimeout(function(){b8.dequeue(a,d)},c)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var cn=/[\n\t\r]/g,cp=/\s+/,cr=/\r/g,ct=/^(?:href|src|style)$/,cv=/^(?:button|input)$/i,cx=/^(?:button|input|object|select|textarea)$/i,cz=/^a(?:rea)?$/i,cB=/^(?:radio|checkbox)$/i;b8.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},b8.fn.extend({attr:function(c,d){return b8.access(this,c,d,!0,b8.attr)},removeAttr:function(c,d){return this.each(function(){b8.attr(this,c,""),this.nodeType===1&&this.removeAttribute(c)})},addClass:function(d){if(b8.isFunction(d)){return this.each(function(a){var e=b8(this);e.addClass(d.call(this,a,e.attr("class")))})}if(d&&typeof d==="string"){var l=(d||"").split(cp);for(var m=0,p=this.length;m<p;m++){var q=this[m];if(q.nodeType===1){if(q.className){var r=" "+q.className+" ",s=q.className;for(var t=0,u=l.length;t<u;t++){r.indexOf(" "+l[t]+" ")<0&&(s+=" "+l[t])}q.className=b8.trim(s)}else{q.className=d}}}}return this},removeClass:function(b){if(b8.isFunction(b)){return this.each(function(a){var e=b8(this);e.removeClass(b.call(this,a,e.attr("class")))})}if(b&&typeof b==="string"||b===ae){var d=(b||"").split(cp);for(var h=0,m=this.length;h<m;h++){var p=this[h];if(p.nodeType===1&&p.className){if(b){var q=(" "+p.className+" ").replace(cn," ");for(var r=0,s=d.length;r<s;r++){q=q.replace(" "+d[r]+" "," ")}p.className=b8.trim(q)}else{p.className=""}}}}return this},toggleClass:function(d,f){var g=typeof d,h=typeof f==="boolean";if(b8.isFunction(d)){return this.each(function(a){var b=b8(this);b.toggleClass(d.call(this,a,b.attr("class"),f),f)})}return this.each(function(){if(g==="string"){var a,b=0,c=b8(this),e=f,l=d.split(cp);while(a=l[b++]){e=h?e:!c.hasClass(a),c[e?"addClass":"removeClass"](a)}}else{if(g==="undefined"||g==="boolean"){this.className&&b8._data(this,"__className__",this.className),this.className=this.className||d===!1?"":b8._data(this,"__className__")||""}}})},hasClass:function(e){var f=" "+e+" ";for(var g=0,h=this.length;g<h;g++){if((" "+this[g].className+" ").replace(cn," ").indexOf(f)>-1){return !0}}return !1},val:function(b){if(!arguments.length){var d=this[0];if(d){if(b8.nodeName(d,"option")){var j=d.attributes.value;return !j||j.specified?d.value:d.text}if(b8.nodeName(d,"select")){var p=d.selectedIndex,q=[],r=d.options,s=d.type==="select-one";if(p<0){return null}for(var t=s?p:0,u=s?p+1:r.length;t<u;t++){var v=r[t];if(v.selected&&(b8.support.optDisabled?!v.disabled:v.getAttribute("disabled")===null)&&(!v.parentNode.disabled||!b8.nodeName(v.parentNode,"optgroup"))){b=b8(v).val();if(s){return b}q.push(b)}}if(s&&!q.length&&r.length){return b8(r[p]).val()}return q}if(cB.test(d.type)&&!b8.support.checkOn){return d.getAttribute("value")===null?"on":d.value}return(d.value||"").replace(cr,"")}return ae}var w=b8.isFunction(b);return this.each(function(a){var g=b8(this),h=b;if(this.nodeType===1){w&&(h=b.call(this,a,g.val())),h==null?h="":typeof h==="number"?h+="":b8.isArray(h)&&(h=b8.map(h,function(c){return c==null?"":c+""}));if(b8.isArray(h)&&cB.test(this.type)){this.checked=b8.inArray(g.val(),h)>=0}else{if(b8.nodeName(this,"select")){var k=b8.makeArray(h);b8("option",this).each(function(){this.selected=b8.inArray(b8(this).val(),k)>=0}),k.length||(this.selectedIndex=-1)}else{this.value=h}}}})}}),b8.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(b,d,k,l){if(!b||b.nodeType===3||b.nodeType===8||b.nodeType===2){return ae}if(l&&d in b8.attrFn){return b8(b)[d](k)}var m=b.nodeType!==1||!b8.isXMLDoc(b),q=k!==ae;d=m&&b8.props[d]||d;if(b.nodeType===1){var r=ct.test(d);if(d==="selected"&&!b8.support.optSelected){var s=b.parentNode;s&&(s.selectedIndex,s.parentNode&&s.parentNode.selectedIndex)}if((d in b||b[d]!==ae)&&m&&!r){q&&(d==="type"&&cv.test(b.nodeName)&&b.parentNode&&b8.error("type property can't be changed"),k===null?b.nodeType===1&&b.removeAttribute(d):b[d]=k);if(b8.nodeName(b,"form")&&b.getAttributeNode(d)){return b.getAttributeNode(d).nodeValue}if(d==="tabIndex"){var t=b.getAttributeNode("tabIndex");return t&&t.specified?t.value:cx.test(b.nodeName)||cz.test(b.nodeName)&&b.href?0:ae}return b[d]}if(!b8.support.style&&m&&d==="style"){q&&(b.style.cssText=""+k);return b.style.cssText}q&&b.setAttribute(d,""+k);if(!b.attributes[d]&&(b.hasAttribute&&!b.hasAttribute(d))){return ae}var u=!b8.support.hrefNormalized&&m&&r?b.getAttribute(d,2):b.getAttribute(d);return u===null?ae:u}q&&(b[d]=k);return b[d]}});var cD=/\.(.*)$/,cF=/^(?:textarea|input|select)$/i,cH=/\./g,cJ=/ /g,cL=/[^\w\s.|`]/g,cN=function(b){return b.replace(cL,"\\$&")};b8.event={add:function(a,b,d,s){if(a.nodeType!==3&&a.nodeType!==8){try{b8.isWindow(a)&&(a!==ac&&!a.frameElement)&&(a=ac)}catch(t){}if(d===!1){d=cP}else{if(!d){return}}var u,v;d.handler&&(u=d,d=u.handler),d.guid||(d.guid=b8.guid++);var w=b8._data(a);if(!w){return}var x=w.events,y=w.handle;x||(w.events=x={}),y||(w.handle=y=function(){return typeof b8!=="undefined"&&!b8.event.triggered?b8.event.handle.apply(y.elem,arguments):ae}),y.elem=a,b=b.split(" ");var z,A=0,B;while(z=b[A++]){v=u?b8.extend({},u):{handler:d,data:s},z.indexOf(".")>-1?(B=z.split("."),z=B.shift(),v.namespace=B.slice(0).sort().join(".")):(B=[],v.namespace=""),v.type=z,v.guid||(v.guid=d.guid);var C=x[z],D=b8.event.special[z]||{};if(!C){C=x[z]=[];if(!D.setup||D.setup.call(a,s,B,y)===!1){a.addEventListener?a.addEventListener(z,y,!1):a.attachEvent&&a.attachEvent("on"+z,y)}}D.add&&(D.add.call(a,v),v.handler.guid||(v.handler.guid=d.guid)),C.push(v),b8.event.global[z]=!0}a=null}},global:{},remove:function(b,d,u,v){if(b.nodeType!==3&&b.nodeType!==8){u===!1&&(u=cP);var x,y,z,A,B=0,C,D,E,F,G,H,I,J=b8.hasData(b)&&b8._data(b),K=J&&J.events;if(!J||!K){return}d&&d.type&&(u=d.handler,d=d.type);if(!d||typeof d==="string"&&d.charAt(0)==="."){d=d||"";for(y in K){b8.event.remove(b,y+d)}return}d=d.split(" ");while(y=d[B++]){I=y,H=null,C=y.indexOf(".")<0,D=[],C||(D=y.split("."),y=D.shift(),E=new RegExp("(^|\\.)"+b8.map(D.slice(0).sort(),cN).join("\\.(?:.*\\.)?")+"(\\.|$)")),G=K[y];if(!G){continue}if(!u){for(A=0;A<G.length;A++){H=G[A];if(C||E.test(H.namespace)){b8.event.remove(b,I,H.handler,A),G.splice(A--,1)}}continue}F=b8.event.special[y]||{};for(A=v||0;A<G.length;A++){H=G[A];if(u.guid===H.guid){if(C||E.test(H.namespace)){v==null&&G.splice(A--,1),F.remove&&F.remove.call(b,H)}if(v!=null){break}}}if(G.length===0||v!=null&&G.length===1){(!F.teardown||F.teardown.call(b,D)===!1)&&b8.removeEvent(b,y,J.handle),x=null,delete K[y]}}if(b8.isEmptyObject(K)){var L=J.handle;L&&(L.elem=null),delete J.events,delete J.handle,b8.isEmptyObject(J)&&b8.removeData(b,ae,!0)}}},trigger:function(b,d,p){var r=b.type||b,s=arguments[3];if(!s){b=typeof b==="object"?b[b8.expando]?b:b8.extend(b8.Event(r),b):b8.Event(r),r.indexOf("!")>=0&&(b.type=r=r.slice(0,-1),b.exclusive=!0),p||(b.stopPropagation(),b8.event.global[r]&&b8.each(b8.cache,function(){var a=b8.expando,c=this[a];c&&c.events&&c.events[r]&&b8.event.trigger(b,d,c.handle.elem)}));if(!p||p.nodeType===3||p.nodeType===8){return ae}b.result=ae,b.target=p,d=b8.makeArray(d),d.unshift(b)}b.currentTarget=p;var t=b8._data(p,"handle");t&&t.apply(p,d);var u=p.parentNode||p.ownerDocument;try{p&&p.nodeName&&b8.noData[p.nodeName.toLowerCase()]||p["on"+r]&&p["on"+r].apply(p,d)===!1&&(b.result=!1,b.preventDefault())}catch(v){}if(!b.isPropagationStopped()&&u){b8.event.trigger(b,d,u,!0)}else{if(!b.isDefaultPrevented()){var w,x=b.target,y=r.replace(cD,""),z=b8.nodeName(x,"a")&&y==="click",A=b8.event.special[y]||{};if((!A._default||A._default.call(p,b)===!1)&&!z&&!(x&&x.nodeName&&b8.noData[x.nodeName.toLowerCase()])){try{x[y]&&(w=x["on"+y],w&&(x["on"+y]=null),b8.event.triggered=!0,x[y]())}catch(B){}w&&(x["on"+y]=w),b8.event.triggered=!1}}}},handle:function(a){var b,d,p,q,r,s=[],t=b8.makeArray(arguments);a=t[0]=b8.event.fix(a||ac.event),a.currentTarget=this,b=a.type.indexOf(".")<0&&!a.exclusive,b||(p=a.type.split("."),a.type=p.shift(),s=p.slice(0).sort(),q=new RegExp("(^|\\.)"+s.join("\\.(?:.*\\.)?")+"(\\.|$)")),a.namespace=a.namespace||s.join("."),r=b8._data(this,"events"),d=(r||{})[a.type];if(r&&d){d=d.slice(0);for(var u=0,v=d.length;u<v;u++){var w=d[u];if(b||q.test(w.namespace)){a.handler=w.handler,a.data=w.data,a.handleObj=w;var x=w.handler.apply(this,t);x!==ae&&(a.result=x,x===!1&&(a.preventDefault(),a.stopPropagation()));if(a.isImmediatePropagationStopped()){break}}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(b){if(b[b8.expando]){return b}var c=b;b=b8.Event(c);for(var d=this.props.length,j;d;){j=this.props[--d],b[j]=c[j]}b.target||(b.target=b.srcElement||a9),b.target.nodeType===3&&(b.target=b.target.parentNode),!b.relatedTarget&&b.fromElement&&(b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement);if(b.pageX==null&&b.clientX!=null){var k=a9.documentElement,l=a9.body;b.pageX=b.clientX+(k&&k.scrollLeft||l&&l.scrollLeft||0)-(k&&k.clientLeft||l&&l.clientLeft||0),b.pageY=b.clientY+(k&&k.scrollTop||l&&l.scrollTop||0)-(k&&k.clientTop||l&&l.clientTop||0)}b.which==null&&(b.charCode!=null||b.keyCode!=null)&&(b.which=b.charCode!=null?b.charCode:b.keyCode),!b.metaKey&&b.ctrlKey&&(b.metaKey=b.ctrlKey),!b.which&&b.button!==ae&&(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);return b},guid:100000000,proxy:b8.proxy,special:{ready:{setup:b8.bindReady,teardown:b8.noop},live:{add:function(b){b8.event.add(this,ck(b.origType,b.selector),b8.extend({},b,{handler:ci,guid:b.handler.guid}))},remove:function(b){b8.event.remove(this,ck(b.origType,b.selector),b)}},beforeunload:{setup:function(d,e,f){b8.isWindow(this)&&(this.onbeforeunload=f)},teardown:function(c,d){this.onbeforeunload===d&&(this.onbeforeunload=null)}}}},b8.removeEvent=a9.removeEventListener?function(d,e,f){d.removeEventListener&&d.removeEventListener(e,f,!1)}:function(d,e,f){d.detachEvent&&d.detachEvent("on"+e,f)},b8.Event=function(b){if(!this.preventDefault){return new b8.Event(b)}b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||b.returnValue===!1||b.getPreventDefault&&b.getPreventDefault()?cR:cP):this.type=b,this.timeStamp=b8.now(),this[b8.expando]=!0},b8.Event.prototype={preventDefault:function(){this.isDefaultPrevented=cR;var b=this.originalEvent;b&&(b.preventDefault?b.preventDefault():b.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=cR;var b=this.originalEvent;b&&(b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=cR,this.stopPropagation()},isDefaultPrevented:cP,isPropagationStopped:cP,isImmediatePropagationStopped:cP};var cT=function(c){var d=c.relatedTarget;try{if(d!==a9&&!d.parentNode){return}while(d&&d!==this){d=d.parentNode}d!==this&&(c.type=c.data,b8.event.handle.apply(this,arguments))}catch(f){}},cV=function(b){b.type=b.data,b8.event.handle.apply(this,arguments)};b8.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,d){b8.event.special[c]={setup:function(a){b8.event.add(this,d,a&&a.selector?cV:cT,c)},teardown:function(b){b8.event.remove(this,d,b&&b.selector?cV:cT)}}}),b8.support.submitBubbles||(b8.event.special.submit={setup:function(c,d){if(this.nodeName&&this.nodeName.toLowerCase()!=="form"){b8.event.add(this,"click.specialSubmit",function(e){var f=e.target,g=f.type;(g==="submit"||g==="image")&&b8(f).closest("form").length&&b0("submit",this,arguments)}),b8.event.add(this,"keypress.specialSubmit",function(e){var f=e.target,g=f.type;(g==="text"||g==="password")&&b8(f).closest("form").length&&e.keyCode===13&&b0("submit",this,arguments)})}else{return !1}},teardown:function(b){b8.event.remove(this,".specialSubmit")}});if(!b8.support.changeBubbles){var cX,ad=function(d){var e=d.type,f=d.value;e==="radio"||e==="checkbox"?f=d.checked:e==="select-multiple"?f=d.selectedIndex>-1?b8.map(d.options,function(b){return b.selected}).join("-"):"":d.nodeName.toLowerCase()==="select"&&(f=d.selectedIndex);return f},af=function af(b){var d=b.target,g,h;if(cF.test(d.nodeName)&&!d.readOnly){g=b8._data(d,"_change_data"),h=ad(d),(b.type!=="focusout"||d.type!=="radio")&&b8._data(d,"_change_data",h);if(g===ae||h===g){return}if(g!=null||h){b.type="change",b.liveFired=ae,b8.event.trigger(b,arguments[1],d)}}};b8.event.special.change={filters:{focusout:af,beforedeactivate:af,click:function(d){var e=d.target,f=e.type;(f==="radio"||f==="checkbox"||e.nodeName.toLowerCase()==="select")&&af.call(this,d)},keydown:function(d){var e=d.target,f=e.type;(d.keyCode===13&&e.nodeName.toLowerCase()!=="textarea"||d.keyCode===32&&(f==="checkbox"||f==="radio")||f==="select-multiple")&&af.call(this,d)},beforeactivate:function(c){var d=c.target;b8._data(d,"_change_data",ad(d))}},setup:function(d,e){if(this.type==="file"){return !1}for(var f in cX){b8.event.add(this,f+".specialChange",cX[f])}return cF.test(this.nodeName)},teardown:function(b){b8.event.remove(this,".specialChange");return cF.test(this.nodeName)}},cX=b8.event.special.change.filters,cX.focus=cX.beforeactivate}a9.addEventListener&&b8.each({focus:"focusin",blur:"focusout"},function(d,e){function f(b){b=b8.event.fix(b),b.type=e;return b8.event.handle.call(this,b)}b8.event.special[e]={setup:function(){this.addEventListener(d,f,!0)},teardown:function(){this.removeEventListener(d,f,!0)}}}),b8.each(["bind","one"],function(b,d){b8.fn[d]=function(c,k,l){if(typeof c==="object"){for(var m in c){this[d](m,k,c[m],l)}return this}if(b8.isFunction(k)||k===!1){l=k,k=ae}var p=d==="one"?b8.proxy(l,function(e){b8(this).unbind(e,p);return l.apply(this,arguments)}):l;if(c==="unload"&&d!=="one"){this.one(c,k,l)}else{for(var q=0,r=this.length;q<r;q++){b8.event.add(this[q],c,p,k)}}return this}}),b8.fn.extend({unbind:function(d,g){if(typeof d!=="object"||d.preventDefault){for(var j=0,k=this.length;j<k;j++){b8.event.remove(this[j],d,g)}}else{for(var h in d){this.unbind(h,d[h])}}return this},delegate:function(e,f,g,h){return this.live(f,g,h,e)},undelegate:function(d,e,f){return arguments.length===0?this.unbind("live"):this.die(e,null,f,d)},trigger:function(c,d){return this.each(function(){b8.event.trigger(c,d,this)})},triggerHandler:function(d,e){if(this[0]){var f=b8.Event(d);f.preventDefault(),f.stopPropagation(),b8.event.trigger(f,e,this[0]);return f.result}},toggle:function(d){var e=arguments,f=1;while(f<e.length){b8.proxy(d,e[f++])}return this.click(b8.proxy(d,function(a){var b=(b8._data(this,"lastToggle"+d.guid)||0)%f;b8._data(this,"lastToggle"+d.guid,b+1),a.preventDefault();return e[b].apply(this,arguments)||!1}))},hover:function(c,d){return this.mouseenter(c).mouseleave(d||c)}});var b9={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};b8.each(["live","die"],function(b,d){b8.fn[d]=function(c,p,s,t){var u,v=0,w,x,y,z=t||this.selector,A=t?this:b8(this.context);if(typeof c==="object"&&!c.preventDefault){for(var B in c){A[d](B,p,c[B],z)}return this}b8.isFunction(p)&&(s=p,p=ae),c=(c||"").split(" ");while((u=c[v++])!=null){w=cD.exec(u),x="",w&&(x=w[0],u=u.replace(cD,""));if(u==="hover"){c.push("mouseenter"+x,"mouseleave"+x);continue}y=u,u==="focus"||u==="blur"?(c.push(b9[u]+x),u=u+x):u=(b9[u]||u)+x;if(d==="live"){for(var C=0,D=A.length;C<D;C++){b8.event.add(A[C],"live."+ck(u,z),{data:p,selector:z,handler:s,origType:u,origHandler:s,preType:y})}}else{A.unbind("live."+ck(u,z),s)}}return this}}),b8.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(c,d){b8.fn[d]=function(b,e){e==null&&(e=b,b=null);return arguments.length>0?this.bind(d,b,e):this.trigger(d)},b8.attrFn&&(b8.attrFn[d]=!0)}),function(){function K(k,l,m,p,q,r){for(var s=0,t=p.length;s<t;s++){var u=p[s];if(u){var v=!1;u=u[k];while(u){if(u.sizcache===m){v=p[u.sizset];break}if(u.nodeType===1){r||(u.sizcache=m,u.sizset=s);if(typeof l!=="string"){if(u===l){v=!0;break}}else{if(A.filter(l,[u]).length>0){v=u;break}}}u=u[k]}p[s]=v}}}function J(k,l,m,p,q,r){for(var s=0,t=p.length;s<t;s++){var u=p[s];if(u){var v=!1;u=u[k];while(u){if(u.sizcache===m){v=p[u.sizset];break}u.nodeType===1&&!r&&(u.sizcache=m,u.sizset=s);if(u.nodeName.toLowerCase()===l){v=u;break}u=u[k]}p[s]=v}}}var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,c=0,d=Object.prototype.toString,w=!1,x=!0,y=/\\/g,z=/\W/;[0,0].sort(function(){x=!1;return 0});var A=function(a,f,k,l){k=k||[],f=f||a9;var m=f;if(f.nodeType!==1&&f.nodeType!==9){return[]}if(!a||typeof a!=="string"){return k}var p,v,M,N,O,P,Q,R,S=!0,T=A.isXML(f),V=[],W=a;do{b.exec(""),p=b.exec(W);if(p){W=p[3],V.push(p[1]);if(p[2]){N=p[3];break}}}while(p);if(V.length>1&&C.exec(a)){if(V.length===2&&B.relative[V[0]]){v=L(V[0]+V[1],f)}else{v=B.relative[V[0]]?[f]:A(V.shift(),f);while(V.length){a=V.shift(),B.relative[a]&&(a+=V.shift()),v=L(a,v)}}}else{!l&&V.length>1&&f.nodeType===9&&!T&&B.match.ID.test(V[0])&&!B.match.ID.test(V[V.length-1])&&(O=A.find(V.shift(),f,T),f=O.expr?A.filter(O.expr,O.set)[0]:O.set[0]);if(f){O=l?{expr:V.pop(),set:F(l)}:A.find(V.pop(),V.length===1&&(V[0]==="~"||V[0]==="+")&&f.parentNode?f.parentNode:f,T),v=O.expr?A.filter(O.expr,O.set):O.set,V.length>0?M=F(v):S=!1;while(V.length){P=V.pop(),Q=P,B.relative[P]?Q=V.pop():P="",Q==null&&(Q=f),B.relative[P](M,Q,T)}}else{M=V=[]}}M||(M=v),M||A.error(P||a);if(d.call(M)==="[object Array]"){if(S){if(f&&f.nodeType===1){for(R=0;M[R]!=null;R++){M[R]&&(M[R]===!0||M[R].nodeType===1&&A.contains(f,M[R]))&&k.push(v[R])}}else{for(R=0;M[R]!=null;R++){M[R]&&M[R].nodeType===1&&k.push(v[R])}}}else{k.push.apply(k,M)}}else{F(M,k)}N&&(A(N,m,k,l),A.uniqueSort(k));return k};A.uniqueSort=function(e){if(H){w=x,e.sort(H);if(w){for(var f=1;f<e.length;f++){e[f]===e[f-1]&&e.splice(f--,1)}}}return e},A.matches=function(e,f){return A(e,null,null,f)},A.matchesSelector=function(e,f){return A(f,null,null,[e]).length>0},A.find=function(k,l,m){var p;if(!k){return[]}for(var q=0,r=B.order.length;q<r;q++){var s,t=B.order[q];if(s=B.leftMatch[t].exec(k)){var u=s[1];s.splice(1,1);if(u.substr(u.length-1)!=="\\"){s[1]=(s[1]||"").replace(y,""),p=B.find[t](s,l,m);if(p!=null){k=k.replace(B.match[t],"");break}}}}p||(p=typeof l.getElementsByTagName!=="undefined"?l.getElementsByTagName("*"):[]);return{set:p,expr:k}},A.filter=function(k,l,u,v){var M,N,O=k,P=[],Q=l,R=l&&l[0]&&A.isXML(l[0]);while(k&&l.length){for(var S in B.filter){if((M=B.leftMatch[S].exec(k))!=null&&M[2]){var T,V,W=B.filter[S],X=M[1];N=!1,M.splice(1,1);if(X.substr(X.length-1)==="\\"){continue}Q===P&&(P=[]);if(B.preFilter[S]){M=B.preFilter[S](M,Q,u,P,v,R);if(M){if(M===!0){continue}}else{N=T=!0}}if(M){for(var Y=0;(V=Q[Y])!=null;Y++){if(V){T=W(V,M,Y,Q);var Z=v^!!T;u&&T!=null?Z?N=!0:Q[Y]=!1:Z&&(P.push(V),N=!0)}}}if(T!==ae){u||(Q=P),k=k.replace(B.match[S],"");if(!N){return[]}break}}}if(k===O){if(N==null){A.error(k)}else{break}}O=k}return Q},A.error=function(e){throw"Syntax error, unrecognized expression: "+e};var B=A.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(j,k){var l=typeof k==="string",m=l&&!z.test(k),p=l&&!m;m&&(k=k.toLowerCase());for(var q=0,r=j.length,s;q<r;q++){if(s=j[q]){while((s=s.previousSibling)&&s.nodeType!==1){}j[q]=p||s&&s.nodeName.toLowerCase()===k?s||!1:s===k}}p&&A.filter(k,j,!0)},">":function(h,j){var k,l=typeof j==="string",m=0,p=h.length;if(l&&!z.test(j)){j=j.toLowerCase();for(;m<p;m++){k=h[m];if(k){var q=k.parentNode;h[m]=q.nodeName.toLowerCase()===j?q:!1}}}else{for(;m<p;m++){k=h[m],k&&(h[m]=l?k.parentNode:k.parentNode===j)}l&&A.filter(j,h,!0)}},"":function(e,h,j){var k,l=c++,m=K;typeof h==="string"&&!z.test(h)&&(h=h.toLowerCase(),k=h,m=J),m("parentNode",h,l,e,k,j)},"~":function(e,h,j){var k,l=c++,m=K;typeof h==="string"&&!z.test(h)&&(h=h.toLowerCase(),k=h,m=J),m("previousSibling",h,l,e,k,j)}},find:{ID:function(e,f,g){if(typeof f.getElementById!=="undefined"&&!g){var h=f.getElementById(e[1]);return h&&h.parentNode?[h]:[]}},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var j=[],k=h.getElementsByName(g[1]);for(var l=0,m=k.length;l<m;l++){k[l].getAttribute("name")===g[1]&&j.push(k[l])}return j.length===0?null:j}},TAG:function(e,f){if(typeof f.getElementsByTagName!=="undefined"){return f.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(j,k,l,m,p,q){j=" "+j[1].replace(y,"")+" ";if(q){return j}for(var r=0,s;(s=k[r])!=null;r++){s&&(p^(s.className&&(" "+s.className+" ").replace(/[\t\n\r]/g," ").indexOf(j)>=0)?l||m.push(s):l&&(k[r]=!1))}return !1},ID:function(e){return e[1].replace(y,"")},TAG:function(e,f){return e[1].replace(y,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){e[2]||A.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var f=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=f[1]+(f[2]||1)-0,e[3]=f[3]-0}else{e[2]&&A.error(e[0])}e[0]=c++;return e},ATTR:function(h,j,k,l,m,p){var q=h[1]=h[1].replace(y,"");!p&&B.attrMap[q]&&(h[1]=B.attrMap[q]),h[4]=(h[4]||h[5]||"").replace(y,""),h[2]==="~="&&(h[4]=" "+h[4]+" ");return h},PSEUDO:function(a,h,j,k,l){if(a[1]==="not"){if((b.exec(a[3])||"").length>1||/^\w/.test(a[3])){a[3]=A(a[3],null,null,h)}else{var m=A.filter(a[3],h,j,!0^l);j||k.push.apply(k,m);return !1}}else{if(B.match.POS.test(a[0])||B.match.CHILD.test(a[0])){return !0}}return a},POS:function(e){e.unshift(!0);return e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!=="hidden"},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){e.parentNode&&e.parentNode.selectedIndex;return e.selected===!0},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(e,f,g){return !!A(g[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.getAttribute("type")},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(e,f){return f===0},last:function(e,f,g,h){return f===h.length-1},even:function(e,f){return f%2===0},odd:function(e,f){return f%2===1},lt:function(e,f,g){return f<g[3]-0},gt:function(e,f,g){return f>g[3]-0},nth:function(e,f,g){return g[3]-0===f},eq:function(e,f,g){return g[3]-0===f}},filter:{PSEUDO:function(j,k,l,m){var p=k[1],q=B.filters[p];if(q){return q(j,l,k,m)}if(p==="contains"){return(j.textContent||j.innerText||A.getText([j])||"").indexOf(k[3])>=0}if(p==="not"){var r=k[3];for(var s=0,t=r.length;s<t;s++){if(r[s]===j){return !1}}return !0}A.error(p)},CHILD:function(k,l){var m=l[1],p=k;switch(m){case"only":case"first":while(p=p.previousSibling){if(p.nodeType===1){return !1}}if(m==="first"){return !0}p=k;case"last":while(p=p.nextSibling){if(p.nodeType===1){return !1}}return !0;case"nth":var q=l[2],r=l[3];if(q===1&&r===0){return !0}var s=l[0],t=k.parentNode;if(t&&(t.sizcache!==s||!k.nodeIndex)){var u=0;for(p=t.firstChild;p;p=p.nextSibling){p.nodeType===1&&(p.nodeIndex=++u)}t.sizcache=s}var v=k.nodeIndex-r;return q===0?v===0:v%q===0&&v/q>=0}},ID:function(e,f){return e.nodeType===1&&e.getAttribute("id")===f},TAG:function(e,f){return f==="*"&&e.nodeType===1||e.nodeName.toLowerCase()===f},CLASS:function(e,f){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(f)>-1},ATTR:function(h,j){var k=j[1],l=B.attrHandle[k]?B.attrHandle[k](h):h[k]!=null?h[k]:h.getAttribute(k),m=l+"",p=j[2],q=j[4];return l==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:q?p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":!1:m&&l!==!1},POS:function(g,h,j,k){var l=h[2],m=B.setFilters[l];if(m){return m(g,j,h,k)}}}},C=B.match.POS,D=function(e,f){return"\\"+(f-0+1)};for(var E in B.match){B.match[E]=new RegExp(B.match[E].source+/(?![^\[]*\])(?![^\(]*\))/.source),B.leftMatch[E]=new RegExp(/(^(?:.|\r|\n)*?)/.source+B.match[E].source.replace(/\\(\d+)/g,D))}var F=function(e,f){e=Array.prototype.slice.call(e,0);if(f){f.push.apply(f,e);return f}return e};try{Array.prototype.slice.call(a9.documentElement.childNodes,0)[0].nodeType}catch(G){F=function(f,g){var h=0,j=g||[];if(d.call(f)==="[object Array]"){Array.prototype.push.apply(j,f)}else{if(typeof f.length==="number"){for(var k=f.length;h<k;h++){j.push(f[h])}}else{for(;f[h];h++){j.push(f[h])}}}return j}}var H,I;a9.documentElement.compareDocumentPosition?H=function(e,f){if(e===f){w=!0;return 0}if(!e.compareDocumentPosition||!f.compareDocumentPosition){return e.compareDocumentPosition?-1:1}return e.compareDocumentPosition(f)&4?-1:1}:(H=function(g,l){var m,p,q=[],r=[],s=g.parentNode,t=l.parentNode,u=s;if(g===l){w=!0;return 0}if(s===t){return I(g,l)}if(!s){return -1}if(!t){return 1}while(u){q.unshift(u),u=u.parentNode}u=t;while(u){r.unshift(u),u=u.parentNode}m=q.length,p=r.length;for(var v=0;v<m&&v<p;v++){if(q[v]!==r[v]){return I(q[v],r[v])}}return v===m?I(g,r[v],-1):I(q[v],l,1)},I=function(e,f,g){if(e===f){return g}var h=e.nextSibling;while(h){if(h===f){return -1}h=h.nextSibling}return 1}),A.getText=function(e){var f="",g;for(var h=0;e[h];h++){g=e[h],g.nodeType===3||g.nodeType===4?f+=g.nodeValue:g.nodeType!==8&&(f+=A.getText(g.childNodes))}return f},function(){var f=a9.createElement("div"),g="script"+(new Date).getTime(),h=a9.documentElement;f.innerHTML="<a name='"+g+"'/>",h.insertBefore(f,h.firstChild),a9.getElementById(g)&&(B.find.ID=function(j,k,l){if(typeof k.getElementById!=="undefined"&&!l){var m=k.getElementById(j[1]);return m?m.id===j[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===j[1]?[m]:ae:[]}},B.filter.ID=function(e,j){var k=typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id");return e.nodeType===1&&k&&k.nodeValue===j}),h.removeChild(f),h=f=null}(),function(){var e=a9.createElement("div");e.appendChild(a9.createComment("")),e.getElementsByTagName("*").length>0&&(B.find.TAG=function(f,g){var h=g.getElementsByTagName(f[1]);if(f[1]==="*"){var j=[];for(var k=0;h[k];k++){h[k].nodeType===1&&j.push(h[k])}h=j}return h}),e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"&&(B.attrHandle.href=function(f){return f.getAttribute("href",2)}),e=null}(),a9.querySelectorAll&&function(){var f=A,g=a9.createElement("div"),h="__sizzle__";g.innerHTML="<p class='TEST'></p>";if(!g.querySelectorAll||g.querySelectorAll(".TEST").length!==0){A=function(a,k,l,p){k=k||a9;if(!p&&!A.isXML(k)){var t=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(t&&(k.nodeType===1||k.nodeType===9)){if(t[1]){return F(k.getElementsByTagName(a),l)}if(t[2]&&B.find.CLASS&&k.getElementsByClassName){return F(k.getElementsByClassName(t[2]),l)}}if(k.nodeType===9){if(a==="body"&&k.body){return F([k.body],l)}if(t&&t[3]){var u=k.getElementById(t[3]);if(!u||!u.parentNode){return F([],l)}if(u.id===t[3]){return F([u],l)}}try{return F(k.querySelectorAll(a),l)}catch(v){}}else{if(k.nodeType===1&&k.nodeName.toLowerCase()!=="object"){var M=k,N=k.getAttribute("id"),O=N||h,P=k.parentNode,Q=/^\s*[+~]/.test(a);N?O=O.replace(/'/g,"\\$&"):k.setAttribute("id",O),Q&&P&&(k=k.parentNode);try{if(!Q||P){return F(k.querySelectorAll("[id='"+O+"'] "+a),l)}}catch(R){}finally{N||M.removeAttribute("id")}}}}return f(a,k,l,p)};for(var j in f){A[j]=f[j]}g=null}}(),function(){var f=a9.documentElement,g=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.msMatchesSelector,h=!1;try{g.call(a9.documentElement,"[test!='']:sizzle")}catch(j){h=!0}g&&(A.matchesSelector=function(k,l){l=l.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!A.isXML(k)){try{if(h||!B.match.PSEUDO.test(l)&&!/!=/.test(l)){return g.call(k,l)}}catch(m){}}return A(l,null,null,[k]).length>0})}(),function(){var e=a9.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName&&e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}B.order.splice(1,0,"CLASS"),B.find.CLASS=function(f,g,h){if(typeof g.getElementsByClassName!=="undefined"&&!h){return g.getElementsByClassName(f[1])}},e=null}}(),a9.documentElement.contains?A.contains=function(e,f){return e!==f&&(e.contains?e.contains(f):!0)}:a9.documentElement.compareDocumentPosition?A.contains=function(e,f){return !!(e.compareDocumentPosition(f)&16)}:A.contains=function(){return !1},A.isXML=function(e){var f=(e?e.ownerDocument||e:0).documentElement;return f?f.nodeName!=="HTML":!1};var L=function(j,k){var l,m=[],p="",q=k.nodeType?[k]:k;while(l=B.match.PSEUDO.exec(j)){p+=l[0],j=j.replace(B.match.PSEUDO,"")}j=B.relative[j]?j+"*":j;for(var r=0,s=q.length;r<s;r++){A(j,q[r],m)}return A.filter(p,m)};b8.find=A,b8.expr=A.selectors,b8.expr[":"]=b8.expr.filters,b8.unique=A.uniqueSort,b8.text=A.getText,b8.isXMLDoc=A.isXML,b8.contains=A.contains}();var cm=/Until$/,co=/^(?:parents|prevUntil|prevAll)/,cq=/,/,cs=/^.[^:#\[\.,]*$/,cu=Array.prototype.slice,cw=b8.expr.match.POS,cy={children:!0,contents:!0,next:!0,prev:!0};b8.fn.extend({find:function(d){var j=this.pushStack("","find",d),k=0;for(var l=0,m=this.length;l<m;l++){k=j.length,b8.find(d,this[l],j);if(l>0){for(var p=k;p<j.length;p++){for(var q=0;q<k;q++){if(j[q]===j[p]){j.splice(p--,1);break}}}}}return j},has:function(c){var d=b8(c);return this.filter(function(){for(var b=0,e=d.length;b<e;b++){if(b8.contains(this,d[b])){return !0}}})},not:function(b){return this.pushStack(cC(this,b,!1),"not",b)},filter:function(b){return this.pushStack(cC(this,b,!0),"filter",b)},is:function(b){return !!b&&b8.filter(b,this).length>0},closest:function(d,m){var p=[],q,r,s=this[0];if(b8.isArray(d)){var t,u,v={},w=1;if(s&&d.length){for(q=0,r=d.length;q<r;q++){u=d[q],v[u]||(v[u]=b8.expr.match.POS.test(u)?b8(u,m||this.context):u)}while(s&&s.ownerDocument&&s!==m){for(u in v){t=v[u],(t.jquery?t.index(s)>-1:b8(s).is(t))&&p.push({selector:u,elem:s,level:w})}s=s.parentNode,w++}}return p}var x=cw.test(d)?b8(d,m||this.context):null;for(q=0,r=this.length;q<r;q++){s=this[q];while(s){if(x?x.index(s)>-1:b8.find.matchesSelector(s,d)){p.push(s);break}s=s.parentNode;if(!s||!s.ownerDocument||s===m){break}}}p=p.length>1?b8.unique(p):p;return this.pushStack(p,"closest",d)},index:function(b){if(!b||typeof b==="string"){return b8.inArray(this[0],b?b8(b):this.parent().children())}return b8.inArray(b.jquery?b[0]:b,this)},add:function(d,f){var g=typeof d==="string"?b8(d,f):b8.makeArray(d),h=b8.merge(this.get(),g);return this.pushStack(cA(g[0])||cA(h[0])?h:b8.unique(h))},andSelf:function(){return this.add(this.prevObject)}}),b8.each({parent:function(c){var d=c.parentNode;return d&&d.nodeType!==11?d:null},parents:function(b){return b8.dir(b,"parentNode")},parentsUntil:function(d,e,f){return b8.dir(d,"parentNode",f)},next:function(b){return b8.nth(b,2,"nextSibling")},prev:function(b){return b8.nth(b,2,"previousSibling")},nextAll:function(b){return b8.dir(b,"nextSibling")},prevAll:function(b){return b8.dir(b,"previousSibling")},nextUntil:function(d,e,f){return b8.dir(d,"nextSibling",f)},prevUntil:function(d,e,f){return b8.dir(d,"previousSibling",f)},siblings:function(b){return b8.sibling(b.parentNode.firstChild,b)},children:function(b){return b8.sibling(b.firstChild)},contents:function(b){return b8.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:b8.makeArray(b.childNodes)}},function(c,d){b8.fn[c]=function(a,b){var h=b8.map(this,d,a),j=cu.call(arguments);cm.test(c)||(b=a),b&&typeof b==="string"&&(h=b8.filter(b,h)),h=this.length>1&&!cy[c]?b8.unique(h):h,(this.length>1||cq.test(b))&&co.test(c)&&(h=h.reverse());return this.pushStack(h,c,j.join(","))}}),b8.extend({filter:function(d,e,f){f&&(d=":not("+d+")");return e.length===1?b8.find.matchesSelector(e[0],d)?[e[0]]:[]:b8.find.matches(d,e)},dir:function(b,d,h){var j=[],k=b[d];while(k&&k.nodeType!==9&&(h===ae||k.nodeType!==1||!b8(k).is(h))){k.nodeType===1&&j.push(k),k=k[d]}return j},nth:function(f,g,h,j){g=g||1;var k=0;for(;f;f=f[h]){if(f.nodeType===1&&++k===g){break}}return f},sibling:function(d,e){var f=[];for(;d;d=d.nextSibling){d.nodeType===1&&d!==e&&f.push(d)}return f}});var cE=/ jQuery\d+="(?:\d+|null)"/g,cG=/^\s+/,cI=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,cK=/<([\w:]+)/,cM=/<tbody/i,cO=/<|&#?\w+;/,cQ=/<(?:script|object|embed|option|style)/i,cS=/checked\s*(?:[^=]|=\s*.checked.)/i,cU={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,"",""]};cU.optgroup=cU.option,cU.tbody=cU.tfoot=cU.colgroup=cU.caption=cU.thead,cU.th=cU.td,b8.support.htmlSerialize||(cU._default=[1,"div<div>","</div>"]),b8.fn.extend({text:function(b){if(b8.isFunction(b)){return this.each(function(a){var d=b8(this);d.text(b.call(this,a,d.text()))})}if(typeof b!=="object"&&b!==ae){return this.empty().append((this[0]&&this[0].ownerDocument||a9).createTextNode(b))}return b8.text(this)},wrapAll:function(c){if(b8.isFunction(c)){return this.each(function(a){b8(this).wrapAll(c.call(this,a))})}if(this[0]){var d=b8(c,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&d.insertBefore(this[0]),d.map(function(){var b=this;while(b.firstChild&&b.firstChild.nodeType===1){b=b.firstChild}return b}).append(this)}return this},wrapInner:function(b){if(b8.isFunction(b)){return this.each(function(a){b8(this).wrapInner(b.call(this,a))})}return this.each(function(){var a=b8(this),d=a.contents();d.length?d.wrapAll(b):a.append(b)})},wrap:function(b){return this.each(function(){b8(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){b8.nodeName(this,"body")||b8(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this)})}if(arguments.length){var b=b8(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling)})}if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,b8(arguments[0]).toArray());return b}},remove:function(d,f){for(var g=0,h;(h=this[g])!=null;g++){if(!d||b8.filter(d,[h]).length){!f&&h.nodeType===1&&(b8.cleanData(h.getElementsByTagName("*")),b8.cleanData([h])),h.parentNode&&h.parentNode.removeChild(h)}}return this},empty:function(){for(var c=0,d;(d=this[c])!=null;c++){d.nodeType===1&&b8.cleanData(d.getElementsByTagName("*"));while(d.firstChild){d.removeChild(d.firstChild)}}return this},clone:function(c,d){c=c==null?!1:c,d=d==null?c:d;return this.map(function(){return b8.clone(this,c,d)})},html:function(b){if(b===ae){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(cE,""):null}if(typeof b!=="string"||cQ.test(b)||!b8.support.leadingWhitespace&&cG.test(b)||cU[(cK.exec(b)||["",""])[1].toLowerCase()]){b8.isFunction(b)?this.each(function(a){var e=b8(this);e.html(b.call(this,a,e.html()))}):this.empty().append(b)}else{b=b.replace(cI,"<$1></$2>");try{for(var d=0,g=this.length;d<g;d++){this[d].nodeType===1&&(b8.cleanData(this[d].getElementsByTagName("*")),this[d].innerHTML=b)}}catch(h){this.empty().append(b)}}return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(b8.isFunction(b)){return this.each(function(a){var d=b8(this),f=d.html();d.replaceWith(b.call(this,a,f))})}typeof b!=="string"&&(b=b8(b).detach());return this.each(function(){var a=this.nextSibling,d=this.parentNode;b8(this).remove(),a?b8(a).before(b):b8(d).append(b)})}return this.pushStack(b8(b8.isFunction(b)?b():b),"replaceWith",b)},detach:function(b){return this.remove(b,!0)},domManip:function(b,d,p){var q,r,s,t,u=b[0],v=[];if(!b8.support.checkClone&&arguments.length===3&&typeof u==="string"&&cS.test(u)){return this.each(function(){b8(this).domManip(b,d,p,!0)})}if(b8.isFunction(u)){return this.each(function(a){var c=b8(this);b[0]=u.call(this,a,d?c.html():ae),c.domManip(b,d,p)})}if(this[0]){t=u&&u.parentNode,b8.support.parentNode&&t&&t.nodeType===11&&t.childNodes.length===this.length?q={fragment:t}:q=b8.buildFragment(b,this,v),s=q.fragment,s.childNodes.length===1?r=s=s.firstChild:r=s.firstChild;if(r){d=d&&b8.nodeName(r,"tr");for(var w=0,x=this.length,y=x-1;w<x;w++){p.call(d?cW(this[w],r):this[w],q.cacheable||x>1&&w<y?b8.clone(s,!0,!0):s)}}v.length&&b8.each(v,ai)}return this}}),b8.buildFragment=function(c,d,j){var k,l,m,p=d&&d[0]?d[0].ownerDocument||d[0]:a9;c.length===1&&typeof c[0]==="string"&&c[0].length<512&&p===a9&&c[0].charAt(0)==="<"&&!cQ.test(c[0])&&(b8.support.checkClone||!cS.test(c[0]))&&(l=!0,m=b8.fragments[c[0]],m&&(m!==1&&(k=m))),k||(k=p.createDocumentFragment(),b8.clean(c,p,k,j)),l&&(b8.fragments[c[0]]=m?k:1);return{fragment:k,cacheable:l}},b8.fragments={},b8.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,d){b8.fn[c]=function(a){var b=[],k=b8(a),l=this.length===1&&this[0].parentNode;if(l&&l.nodeType===11&&l.childNodes.length===1&&k.length===1){k[d](this[0]);return this}for(var m=0,p=k.length;m<p;m++){var q=(m>0?this.clone(!0):this).get();b8(k[m])[d](q),b=b.concat(q)}return this.pushStack(b,c,k.selector)}}),b8.extend({clone:function(d,j,k){var l=d.cloneNode(!0),m,p,q;if((!b8.support.noCloneEvent||!b8.support.noCloneChecked)&&(d.nodeType===1||d.nodeType===11)&&!b8.isXMLDoc(d)){aa(d,l),m=ab(d),p=ab(l);for(q=0;m[q];++q){aa(m[q],p[q])}}if(j){cY(d,l);if(k){m=ab(d),p=ab(l);for(q=0;m[q];++q){cY(m[q],p[q])}}}return l},clean:function(c,d,q,r){d=d||a9,typeof d.createElement==="undefined"&&(d=d.ownerDocument||d[0]&&d[0].ownerDocument||a9);var s=[];for(var t=0,u;(u=c[t])!=null;t++){typeof u==="number"&&(u+="");if(!u){continue}if(typeof u!=="string"||cO.test(u)){if(typeof u==="string"){u=u.replace(cI,"<$1></$2>");var v=(cK.exec(u)||["",""])[1].toLowerCase(),w=cU[v]||cU._default,x=w[0],y=d.createElement("div");y.innerHTML=w[1]+u+w[2];while(x--){y=y.lastChild}if(!b8.support.tbody){var z=cM.test(u),A=v==="table"&&!z?y.firstChild&&y.firstChild.childNodes:w[1]==="<table>"&&!z?y.childNodes:[];for(var B=A.length-1;B>=0;--B){b8.nodeName(A[B],"tbody")&&!A[B].childNodes.length&&A[B].parentNode.removeChild(A[B])}}!b8.support.leadingWhitespace&&cG.test(u)&&y.insertBefore(d.createTextNode(cG.exec(u)[0]),y.firstChild),u=y.childNodes}}else{u=d.createTextNode(u)}u.nodeType?s.push(u):s=b8.merge(s,u)}if(q){for(t=0;s[t];t++){!r||!b8.nodeName(s[t],"script")||s[t].type&&s[t].type.toLowerCase()!=="text/javascript"?(s[t].nodeType===1&&s.splice.apply(s,[t+1,0].concat(b8.makeArray(s[t].getElementsByTagName("script")))),q.appendChild(s[t])):r.push(s[t].parentNode?s[t].parentNode.removeChild(s[t]):s[t])}}return s},cleanData:function(d){var l,m,p=b8.cache,q=b8.expando,r=b8.event.special,s=b8.support.deleteExpando;for(var t=0,u;(u=d[t])!=null;t++){if(u.nodeName&&b8.noData[u.nodeName.toLowerCase()]){continue}m=u[b8.expando];if(m){l=p[m]&&p[m][q];if(l&&l.events){for(var v in l.events){r[v]?b8.event.remove(u,v):b8.removeEvent(u,v,l.handle)}l.handle&&(l.handle.elem=null)}s?delete u[b8.expando]:u.removeAttribute&&u.removeAttribute(b8.expando),delete p[m]}}}});var ak=/alpha\([^)]*\)/i,am=/opacity=([^)]*)/,ao=/-([a-z])/ig,aq=/([A-Z])/g,at=/^-?\d+(?:px)?$/i,av=/^-?\d/,ax={position:"absolute",visibility:"hidden",display:"block"},az=["Left","Right"],aB=["Top","Bottom"],aD,aF,aH,aJ=function(c,d){return d.toUpperCase()};b8.fn.css=function(b,d){if(arguments.length===2&&d===ae){return this}return b8.access(this,b,d,!0,function(f,g,h){return h!==ae?b8.style(f,g,h):b8.css(f,g)})},b8.extend({cssHooks:{opacity:{get:function(d,e){if(e){var f=aD(d,"opacity","opacity");return f===""?"1":f}return d.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":b8.support.cssFloat?"cssFloat":"styleFloat"},style:function(b,d,l,m){if(b&&b.nodeType!==3&&b.nodeType!==8&&b.style){var p,q=b8.camelCase(d),r=b.style,s=b8.cssHooks[q];d=b8.cssProps[q]||q;if(l===ae){if(s&&"get" in s&&(p=s.get(b,!1,m))!==ae){return p}return r[d]}if(typeof l==="number"&&isNaN(l)||l==null){return}typeof l==="number"&&!b8.cssNumber[q]&&(l+="px");if(!s||!("set" in s)||(l=s.set(b,l))!==ae){try{r[d]=l}catch(t){}}}},css:function(b,d,j){var k,l=b8.camelCase(d),m=b8.cssHooks[l];d=b8.cssProps[l]||l;if(m&&"get" in m&&(k=m.get(b,!0,j))!==ae){return k}if(aD){return aD(b,d,l)}},swap:function(f,g,h){var j={};for(var k in g){j[k]=f.style[k],f.style[k]=g[k]}h.call(f);for(k in g){f.style[k]=j[k]}},camelCase:function(b){return b.replace(ao,aJ)}}),b8.curCSS=b8.css,b8.each(["height","width"],function(c,d){b8.cssHooks[d]={get:function(b,g,h){var j;if(g){b.offsetWidth!==0?j=aL(b,d,h):b8.swap(b,ax,function(){j=aL(b,d,h)});if(j<=0){j=aD(b,d,d),j==="0px"&&aH&&(j=aH(b,d,d));if(j!=null){return j===""||j==="auto"?"0px":j}}if(j<0||j==null){j=b.style[d];return j===""||j==="auto"?"0px":j}return typeof j==="string"?j:j+"px"}},set:function(e,f){if(!at.test(f)){return f}f=parseFloat(f);if(f>=0){return f+"px"}}}}),b8.support.opacity||(b8.cssHooks.opacity={get:function(c,d){return am.test((d&&c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100+"":d?"1":""},set:function(d,g){var h=d.style;h.zoom=1;var j=b8.isNaN(g)?"":"alpha(opacity="+g*100+")",k=h.filter||"";h.filter=ak.test(k)?k.replace(ak,j):h.filter+" "+j}}),a9.defaultView&&a9.defaultView.getComputedStyle&&(aF=function(b,d,j){var k,l,m;j=j.replace(aq,"-$1").toLowerCase();if(!(l=b.ownerDocument.defaultView)){return ae}if(m=l.getComputedStyle(b,null)){k=m.getPropertyValue(j),k===""&&!b8.contains(b.ownerDocument.documentElement,b)&&(k=b8.style(b,j))}return k}),a9.documentElement.currentStyle&&(aH=function(g,h){var j,k=g.currentStyle&&g.currentStyle[h],l=g.runtimeStyle&&g.runtimeStyle[h],m=g.style;!at.test(k)&&av.test(k)&&(j=m.left,l&&(g.runtimeStyle.left=g.currentStyle.left),m.left=h==="fontSize"?"1em":k||0,k=m.pixelLeft+"px",m.left=j,l&&(g.runtimeStyle.left=l));return k===""?"auto":k}),aD=aF||aH,b8.expr&&b8.expr.filters&&(b8.expr.filters.hidden=function(d){var e=d.offsetWidth,f=d.offsetHeight;return e===0&&f===0||!b8.support.reliableHiddenOffsets&&(d.style.display||b8.css(d,"display"))==="none"},b8.expr.filters.visible=function(b){return !b8.expr.filters.hidden(b)});var aN=/%20/g,aP=/\[\]$/,aR=/\r?\n/g,aT=/#.*$/,aV=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aX=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aZ=/(?:^file|^widget|\-extension):$/,a1=/^(?:GET|HEAD)$/,a3=/^\/\//,a5=/\?/,a7=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,aj=/^(?:select|textarea)/i,al=/\s+/,an=/([?&])_=[^&]*/,ap=/(^|\-)([a-z])/g,ar=function(d,e,f){return e+f.toUpperCase()},au=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,aw=b8.fn.load,ay={},aA={},aC,aE;try{aC=a9.location.href}catch(aG){aC=a9.createElement("a"),aC.href="",aC=aC.href}aE=au.exec(aC.toLowerCase()),b8.fn.extend({load:function(b,d,j){if(typeof b!=="string"&&aw){return aw.apply(this,arguments)}if(!this.length){return this}var k=b.indexOf(" ");if(k>=0){var l=b.slice(k,b.length);b=b.slice(0,k)}var m="GET";d&&(b8.isFunction(d)?(j=d,d=ae):typeof d==="object"&&(d=b8.param(d,b8.ajaxSettings.traditional),m="POST"));var p=this;b8.ajax({url:b,type:m,dataType:"html",data:d,complete:function(e,f,g){g=e.responseText,e.isResolved()&&(e.done(function(c){g=c}),p.html(l?b8("<div>").append(g.replace(a7,"")).find(l):g)),j&&p.each(j,[g,f,e])}});return this},serialize:function(){return b8.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b8.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||aj.test(this.nodeName)||aX.test(this.type))}).map(function(d,e){var f=b8(this).val();return f==null?null:b8.isArray(f)?b8.map(f,function(b,g){return{name:e.name,value:b.replace(aR,"\r\n")}}):{name:e.name,value:f.replace(aR,"\r\n")}}).get()}}),b8.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,d){b8.fn[d]=function(b){return this.bind(d,b)}}),b8.each(["get","post"],function(b,d){b8[d]=function(c,h,j,k){b8.isFunction(h)&&(k=k||j,j=h,h=ae);return b8.ajax({type:d,url:c,data:h,success:j,dataType:k})}}),b8.extend({getScript:function(b,d){return b8.get(b,ae,d,"script")},getJSON:function(d,e,f){return b8.get(d,e,f,"json")},ajaxSetup:function(d,e){e?b8.extend(!0,d,b8.ajaxSettings,e):(e=d,d=b8.extend(!0,b8.ajaxSettings,e));for(var f in {context:1,url:1}){f in e?d[f]=e[f]:f in b8.ajaxSettings&&(d[f]=b8.ajaxSettings[f])}return d},ajaxSettings:{url:aC,isLocal:aZ.test(aE[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":ac.String,"text html":!0,"text json":b8.parseJSON,"text xml":b8.parseXML}},ajaxPrefilter:aI(ay),ajaxTransport:aI(aA),ajax:function(b,d){function Q(e,f,g,h){if(M!==2){M=2,K&&clearTimeout(K),J=ae,H=h||"",P.readyState=e?4:0;var j,k,m,p=g?aO(z,P,g):ae,r,s;if(e>=200&&e<300||e===304){if(z.ifModified){if(r=P.getResponseHeader("Last-Modified")){b8.lastModified[F]=r}if(s=P.getResponseHeader("Etag")){b8.etag[F]=s}}if(e===304){f="notmodified",j=!0}else{try{k=aQ(z,p),f="success",j=!0}catch(u){f="parsererror",m=u}}}else{m=f;if(!f||e){f="error",e<0&&(e=0)}}P.status=e,P.statusText=f,j?C.resolveWith(A,[k,f,P]):C.rejectWith(A,[P,f,m]),P.statusCode(E),E=ae,N&&B.trigger("ajax"+(j?"Success":"Error"),[P,z,j?k:m]),D.resolveWith(A,[P,f]),N&&(B.trigger("ajaxComplete",[P,z]),--b8.active||b8.event.trigger("ajaxStop"))}}typeof b==="object"&&(d=b,b=ae),d=d||{};var z=b8.ajaxSetup({},d),A=z.context||z,B=A!==z&&(A.nodeType||A instanceof b8)?b8(A):b8.event,C=b8.Deferred(),D=b8._Deferred(),E=z.statusCode||{},F,G={},H,I,J,K,L,M=0,N,O,P={readyState:0,setRequestHeader:function(c,e){M||(G[c.toLowerCase().replace(ap,ar)]=e);return this},getAllResponseHeaders:function(){return M===2?H:null},getResponseHeader:function(e){var f;if(M===2){if(!I){I={};while(f=aV.exec(H)){I[f[1].toLowerCase()]=f[2]}}f=I[e.toLowerCase()]}return f===ae?null:f},overrideMimeType:function(c){M||(z.mimeType=c);return this},abort:function(c){c=c||"abort",J&&J.abort(c),Q(0,c);return this}};C.promise(P),P.success=P.done,P.error=P.fail,P.complete=D.done,P.statusCode=function(c){if(c){var e;if(M<2){for(e in c){E[e]=[E[e],c[e]]}}else{e=c[P.status],P.then(e,e)}}return this},z.url=((b||z.url)+"").replace(aT,"").replace(a3,aE[1]+"//"),z.dataTypes=b8.trim(z.dataType||"*").toLowerCase().split(al),z.crossDomain||(L=au.exec(z.url.toLowerCase()),z.crossDomain=L&&(L[1]!=aE[1]||L[2]!=aE[2]||(L[3]||(L[1]==="http:"?80:443))!=(aE[3]||(aE[1]==="http:"?80:443)))),z.data&&z.processData&&typeof z.data!=="string"&&(z.data=b8.param(z.data,z.traditional)),aK(ay,z,d,P);if(M===2){return !1}N=z.global,z.type=z.type.toUpperCase(),z.hasContent=!a1.test(z.type),N&&b8.active++===0&&b8.event.trigger("ajaxStart");if(!z.hasContent){z.data&&(z.url+=(a5.test(z.url)?"&":"?")+z.data),F=z.url;if(z.cache===!1){var R=b8.now(),S=z.url.replace(an,"$1_="+R);z.url=S+(S===z.url?(a5.test(z.url)?"&":"?")+"_="+R:"")}}if(z.data&&z.hasContent&&z.contentType!==!1||d.contentType){G["Content-Type"]=z.contentType}z.ifModified&&(F=F||z.url,b8.lastModified[F]&&(G["If-Modified-Since"]=b8.lastModified[F]),b8.etag[F]&&(G["If-None-Match"]=b8.etag[F])),G.Accept=z.dataTypes[0]&&z.accepts[z.dataTypes[0]]?z.accepts[z.dataTypes[0]]+(z.dataTypes[0]!=="*"?", */*; q=0.01":""):z.accepts["*"];for(O in z.headers){P.setRequestHeader(O,z.headers[O])}if(z.beforeSend&&(z.beforeSend.call(A,P,z)===!1||M===2)){P.abort();return !1}for(O in {success:1,error:1,complete:1}){P[O](z[O])}J=aK(aA,z,d,P);if(J){P.readyState=1,N&&B.trigger("ajaxSend",[P,z]),z.async&&z.timeout>0&&(K=setTimeout(function(){P.abort("timeout")},z.timeout));try{M=1,J.send(G,Q)}catch(T){status<2?Q(-1,T):b8.error(T)}}else{Q(-1,"No Transport")}return P},param:function(b,d){var h=[],j=function(c,e){e=b8.isFunction(e)?e():e,h[h.length]=encodeURIComponent(c)+"="+encodeURIComponent(e)};d===ae&&(d=b8.ajaxSettings.traditional);if(b8.isArray(b)||b.jquery&&!b8.isPlainObject(b)){b8.each(b,function(){j(this.name,this.value)})}else{for(var k in b){aM(k,b[k],d,j)}}return h.join("&").replace(aN,"+")}}),b8.extend({active:0,lastModified:{},etag:{}});var aS=b8.now(),aU=/(\=)\?(&|$)|()\?\?()/i;b8.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b8.expando+"_"+aS++}}),b8.ajaxPrefilter("json jsonp",function(a,d,p){var q=typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||d.jsonpCallback||d.jsonp!=null||a.jsonp!==!1&&(aU.test(a.url)||q&&aU.test(a.data))){var r,s=a.jsonpCallback=b8.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,t=ac[s],u=a.url,v=a.data,w="$1"+s+"$2",x=function(){ac[s]=t,r&&b8.isFunction(t)&&ac[s](r[0])};a.jsonp!==!1&&(u=u.replace(aU,w),a.url===u&&(q&&(v=v.replace(aU,w)),a.data===v&&(u+=(/\?/.test(u)?"&":"?")+a.jsonp+"="+s))),a.url=u,a.data=v,ac[s]=function(b){r=[b]},p.then(x,x),a.converters["script json"]=function(){r||b8.error(s+" was not called");return r[0]},a.dataTypes[0]="json";return"script"}}),b8.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){b8.globalEval(b);return b}}}),b8.ajaxPrefilter("script",function(b){b.cache===ae&&(b.cache=!1),b.crossDomain&&(b.type="GET",b.global=!1)}),b8.ajaxTransport("script",function(b){if(b.crossDomain){var c,f=a9.head||a9.getElementsByTagName("head")[0]||a9.documentElement;return{send:function(a,d){c=a9.createElement("script"),c.async="async",b.scriptCharset&&(c.charset=b.scriptCharset),c.src=b.url,c.onload=c.onreadystatechange=function(e,g){if(!c.readyState||/loaded|complete/.test(c.readyState)){c.onload=c.onreadystatechange=null,f&&c.parentNode&&f.removeChild(c),c=ae,g||d(200,"success")}},f.insertBefore(c,f.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var aW=b8.now(),aY,a0;b8.ajaxSettings.xhr=ac.ActiveXObject?function(){return !this.isLocal&&a4()||a6()}:a4,a0=b8.ajaxSettings.xhr(),b8.support.ajax=!!a0,b8.support.cors=a0&&"withCredentials" in a0,a0=ae,b8.support.ajax&&b8.ajaxTransport(function(b){if(!b.crossDomain||b8.support.cors){var d;return{send:function(a,c){var k=b.xhr(),l,m;b.username?k.open(b.type,b.url,b.async,b.username,b.password):k.open(b.type,b.url,b.async);if(b.xhrFields){for(m in b.xhrFields){k[m]=b.xhrFields[m]}}b.mimeType&&k.overrideMimeType&&k.overrideMimeType(b.mimeType),(!b.crossDomain||b.hasContent)&&!a["X-Requested-With"]&&(a["X-Requested-With"]="XMLHttpRequest");try{for(m in a){k.setRequestHeader(m,a[m])}}catch(p){}k.send(b.hasContent&&b.data||null),d=function(f,g){var h,q,r,s,t;try{if(d&&(g||k.readyState===4)){d=ae,l&&(k.onreadystatechange=b8.noop,delete aY[l]);if(g){k.readyState!==4&&k.abort()}else{h=k.status,r=k.getAllResponseHeaders(),s={},t=k.responseXML,t&&t.documentElement&&(s.xml=t),s.text=k.responseText;try{q=k.statusText}catch(u){q=""}h||!b.isLocal||b.crossDomain?h===1223&&(h=204):h=s.text?200:404}}}catch(v){g||c(-1,v)}s&&c(h,q,s,r)},b.async&&k.readyState!==4?(aY||(aY={},a2()),l=aW++,k.onreadystatechange=aY[l]=d):d()},abort:function(){d&&d(0,1)}}}});var a8={},ag=/^(?:toggle|show|hide)$/,ah=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,b1,b2=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];b8.fn.extend({show:function(d,j,k){var l,m;if(d||d===0){return this.animate(b3("show",3),d,j,k)}for(var p=0,q=this.length;p<q;p++){l=this[p],m=l.style.display,!b8._data(l,"olddisplay")&&m==="none"&&(m=l.style.display=""),m===""&&b8.css(l,"display")==="none"&&b8._data(l,"olddisplay",b4(l.nodeName))}for(p=0;p<q;p++){l=this[p],m=l.style.display;if(m===""||m==="none"){l.style.display=b8._data(l,"olddisplay")||""}}return this},hide:function(d,h,j){if(d||d===0){return this.animate(b3("hide",3),d,h,j)}for(var k=0,l=this.length;k<l;k++){var m=b8.css(this[k],"display");m!=="none"&&!b8._data(this[k],"olddisplay")&&b8._data(this[k],"olddisplay",m)}for(k=0;k<l;k++){this[k].style.display="none"}return this},_toggle:b8.fn.toggle,toggle:function(d,f,g){var h=typeof d==="boolean";b8.isFunction(d)&&b8.isFunction(f)?this._toggle.apply(this,arguments):d==null||h?this.each(function(){var a=h?d:b8(this).is(":hidden");b8(this)[a?"show":"hide"]()}):this.animate(b3("toggle",3),d,f,g);return this},fadeTo:function(e,f,g,h){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:f},e,g,h)},animate:function(d,g,h,j){var k=b8.speed(g,h,j);if(b8.isEmptyObject(d)){return this.each(k.complete)}return this[k.queue===!1?"each":"queue"](function(){var a=b8.extend({},k),f,l=this.nodeType===1,m=l&&b8(this).is(":hidden"),p=this;for(f in d){var q=b8.camelCase(f);f!==q&&(d[q]=d[f],delete d[f],f=q);if(d[f]==="hide"&&m||d[f]==="show"&&!m){return a.complete.call(this)}if(l&&(f==="height"||f==="width")){a.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(b8.css(this,"display")==="inline"&&b8.css(this,"float")==="none"){if(b8.support.inlineBlockNeedsLayout){var r=b4(this.nodeName);r==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else{this.style.display="inline-block"}}}b8.isArray(d[f])&&((a.specialEasing=a.specialEasing||{})[f]=d[f][1],d[f]=d[f][0])}a.overflow!=null&&(this.style.overflow="hidden"),a.curAnim=b8.extend({},d),b8.each(d,function(b,s){var t=new b8.fx(p,a,b);if(ag.test(s)){t[s==="toggle"?m?"show":"hide":s](d)}else{var u=ah.exec(s),v=t.cur();if(u){var w=parseFloat(u[2]),x=u[3]||(b8.cssNumber[b]?"":"px");x!=="px"&&(b8.style(p,b,(w||1)+x),v=(w||1)/t.cur()*v,b8.style(p,b,v+x)),u[1]&&(w=(u[1]==="-="?-1:1)*w+v),t.custom(v,w,x)}else{t.custom(v,s,"")}}});return !0})},stop:function(d,e){var f=b8.timers;d&&this.queue([]),this.each(function(){for(var b=f.length-1;b>=0;b--){f[b].elem===this&&(e&&f[b](!0),f.splice(b,1))}}),e||this.dequeue();return this}}),b8.each({slideDown:b3("show",1),slideUp:b3("hide",1),slideToggle:b3("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,d){b8.fn[c]=function(b,e,f){return this.animate(d,b,e,f)}}),b8.extend({speed:function(d,f,g){var h=d&&typeof d==="object"?b8.extend({},d):{complete:g||!g&&f||b8.isFunction(d)&&d,duration:d,easing:g&&f||f&&!b8.isFunction(f)&&f};h.duration=b8.fx.off?0:typeof h.duration==="number"?h.duration:h.duration in b8.fx.speeds?b8.fx.speeds[h.duration]:b8.fx.speeds._default,h.old=h.complete,h.complete=function(){h.queue!==!1&&b8(this).dequeue(),b8.isFunction(h.old)&&h.old.call(this)};return h},easing:{linear:function(e,f,g,h){return g+h*e},swing:function(e,f,g,h){return(-Math.cos(e*Math.PI)/2+0.5)*h+g}},timers:[],fx:function(d,e,f){this.options=e,this.elem=d,this.prop=f,e.orig||(e.orig={})}}),b8.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(b8.fx.step[this.prop]||b8.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var c,d=b8.css(this.elem,this.prop);return isNaN(c=parseFloat(d))?!d||d==="auto"?0:d:c},custom:function(d,h,j){function m(b){return k.step(b)}var k=this,l=b8.fx;this.startTime=b8.now(),this.start=d,this.end=h,this.unit=j||this.unit||(b8.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,m.elem=this.elem,m()&&b8.timers.push(m)&&!b1&&(b1=setInterval(l.tick,l.interval))},show:function(){this.options.orig[this.prop]=b8.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),b8(this.elem).show()},hide:function(){this.options.orig[this.prop]=b8.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(d){var l=b8.now(),m=!0;if(d||l>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var p in this.options.curAnim){this.options.curAnim[p]!==!0&&(m=!1)}if(m){if(this.options.overflow!=null&&!b8.support.shrinkWrapBlocks){var q=this.elem,r=this.options;b8.each(["","X","Y"],function(c,e){q.style["overflow"+e]=r.overflow[c]})}this.options.hide&&b8(this.elem).hide();if(this.options.hide||this.options.show){for(var s in this.options.curAnim){b8.style(this.elem,s,this.options.orig[s])}}this.options.complete.call(this.elem)}return !1}var t=l-this.startTime;this.state=t/this.options.duration;var u=this.options.specialEasing&&this.options.specialEasing[this.prop],v=this.options.easing||(b8.easing.swing?"swing":"linear");this.pos=b8.easing[u||v](this.state,t,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return !0}},b8.extend(b8.fx,{tick:function(){var c=b8.timers;for(var d=0;d<c.length;d++){c[d]()||c.splice(d--,1)}c.length||b8.fx.stop()},interval:13,stop:function(){clearInterval(b1),b1=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){b8.style(b.elem,"opacity",b.now)},_default:function(b){b.elem.style&&b.elem.style[b.prop]!=null?b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit:b.elem[b.prop]=b.now}}}),b8.expr&&b8.expr.filters&&(b8.expr.filters.animated=function(b){return b8.grep(b8.timers,function(a){return b===a.elem}).length});var b5=/^t(?:able|d|h)$/i,b6=/^(?:body|html)$/i;"getBoundingClientRect" in a9.documentElement?b8.fn.offset=function(d){var p=this[0],q;if(d){return this.each(function(a){b8.offset.setOffset(this,d,a)})}if(!p||!p.ownerDocument){return null}if(p===p.ownerDocument.body){return b8.offset.bodyOffset(p)}try{q=p.getBoundingClientRect()}catch(r){}var s=p.ownerDocument,t=s.documentElement;if(!q||!b8.contains(t,p)){return q?{top:q.top,left:q.left}:{top:0,left:0}}var u=s.body,v=b7(s),w=t.clientTop||u.clientTop||0,x=t.clientLeft||u.clientLeft||0,y=v.pageYOffset||b8.support.boxModel&&t.scrollTop||u.scrollTop,z=v.pageXOffset||b8.support.boxModel&&t.scrollLeft||u.scrollLeft,A=q.top+y-w,B=q.left+z-x;return{top:A,left:B}}:b8.fn.offset=function(d){var p=this[0];if(d){return this.each(function(a){b8.offset.setOffset(this,d,a)})}if(!p||!p.ownerDocument){return null}if(p===p.ownerDocument.body){return b8.offset.bodyOffset(p)}b8.offset.initialize();var q,r=p.offsetParent,s=p,t=p.ownerDocument,u=t.documentElement,v=t.body,w=t.defaultView,x=w?w.getComputedStyle(p,null):p.currentStyle,y=p.offsetTop,z=p.offsetLeft;while((p=p.parentNode)&&p!==v&&p!==u){if(b8.offset.supportsFixedPosition&&x.position==="fixed"){break}q=w?w.getComputedStyle(p,null):p.currentStyle,y-=p.scrollTop,z-=p.scrollLeft,p===r&&(y+=p.offsetTop,z+=p.offsetLeft,b8.offset.doesNotAddBorder&&(!b8.offset.doesAddBorderForTableAndCells||!b5.test(p.nodeName))&&(y+=parseFloat(q.borderTopWidth)||0,z+=parseFloat(q.borderLeftWidth)||0),s=r,r=p.offsetParent),b8.offset.subtractsBorderForOverflowNotVisible&&q.overflow!=="visible"&&(y+=parseFloat(q.borderTopWidth)||0,z+=parseFloat(q.borderLeftWidth)||0),x=q}if(x.position==="relative"||x.position==="static"){y+=v.offsetTop,z+=v.offsetLeft}b8.offset.supportsFixedPosition&&x.position==="fixed"&&(y+=Math.max(u.scrollTop,v.scrollTop),z+=Math.max(u.scrollLeft,v.scrollLeft));return{top:y,left:z}},b8.offset={initialize:function(){var c=a9.body,d=a9.createElement("div"),k,l,m,p,q=parseFloat(b8.css(c,"marginTop"))||0,r="<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>";b8.extend(d.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),d.innerHTML=r,c.insertBefore(d,c.firstChild),k=d.firstChild,l=k.firstChild,p=k.nextSibling.firstChild.firstChild,this.doesNotAddBorder=l.offsetTop!==5,this.doesAddBorderForTableAndCells=p.offsetTop===5,l.style.position="fixed",l.style.top="20px",this.supportsFixedPosition=l.offsetTop===20||l.offsetTop===15,l.style.position=l.style.top="",k.style.overflow="hidden",k.style.position="relative",this.subtractsBorderForOverflowNotVisible=l.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=c.offsetTop!==q,c.removeChild(d),c=d=k=l=m=p=null,b8.offset.initialize=b8.noop},bodyOffset:function(d){var e=d.offsetTop,f=d.offsetLeft;b8.offset.initialize(),b8.offset.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(b8.css(d,"marginTop"))||0,f+=parseFloat(b8.css(d,"marginLeft"))||0);return{top:e,left:f}},setOffset:function(d,p,q){var r=b8.css(d,"position");r==="static"&&(d.style.position="relative");var s=b8(d),t=s.offset(),u=b8.css(d,"top"),v=b8.css(d,"left"),w=r==="absolute"&&b8.inArray("auto",[u,v])>-1,x={},y={},z,A;w&&(y=s.position()),z=w?y.top:parseInt(u,10)||0,A=w?y.left:parseInt(v,10)||0,b8.isFunction(p)&&(p=p.call(d,q,t)),p.top!=null&&(x.top=p.top-t.top+z),p.left!=null&&(x.left=p.left-t.left+A),"using" in p?p.using.call(d,x):s.css(x)}},b8.fn.extend({position:function(){if(!this[0]){return null}var d=this[0],f=this.offsetParent(),g=this.offset(),h=b6.test(f[0].nodeName)?{top:0,left:0}:f.offset();g.top-=parseFloat(b8.css(d,"marginTop"))||0,g.left-=parseFloat(b8.css(d,"marginLeft"))||0,h.top+=parseFloat(b8.css(f[0],"borderTopWidth"))||0,h.left+=parseFloat(b8.css(f[0],"borderLeftWidth"))||0;return{top:g.top-h.top,left:g.left-h.left}},offsetParent:function(){return this.map(function(){var b=this.offsetParent||a9.body;while(b&&(!b6.test(b.nodeName)&&b8.css(b,"position")==="static")){b=b.offsetParent}return b})}}),b8.each(["Left","Top"],function(b,d){var f="scroll"+d;b8.fn[f]=function(a){var e=this[0],h;if(!e){return null}if(a!==ae){return this.each(function(){h=b7(this),h?h.scrollTo(b?b8(h).scrollLeft():a,b?a:b8(h).scrollTop()):this[f]=a})}h=b7(e);return h?"pageXOffset" in h?h[b?"pageYOffset":"pageXOffset"]:b8.support.boxModel&&h.document.documentElement[f]||h.document.body[f]:e[f]}}),b8.each(["Height","Width"],function(b,d){var f=d.toLowerCase();b8.fn["inner"+d]=function(){return this[0]?parseFloat(b8.css(this[0],f,"padding")):null},b8.fn["outer"+d]=function(c){return this[0]?parseFloat(b8.css(this[0],f,c?"margin":"border")):null},b8.fn[f]=function(c){var e=this[0];if(!e){return c==null?null:this}if(b8.isFunction(c)){return this.each(function(a){var g=b8(this);g[f](c.call(this,a,g[f]()))})}if(b8.isWindow(e)){var j=e.document.documentElement["client"+d];return e.document.compatMode==="CSS1Compat"&&j||e.document.body["client"+d]||j}if(e.nodeType===9){return Math.max(e.documentElement["client"+d],e.body["scroll"+d],e.documentElement["scroll"+d],e.body["offset"+d],e.documentElement["offset"+d])}if(c===ae){var k=b8.css(e,f),l=parseFloat(k);return b8.isNaN(l)?k:l}return this.css(f,typeof c==="string"?c:c+"px")}}),ac.jQuery=ac.$=b8})(window);
/*
* tn3 v1.1.0.30
* http://tn3gallery.com/
*
* License
* http://tn3gallery.com/license
*
* Date: 06 Sep, 2011 11:34:12 +0300
*/
(function(s){function r(a){var b=a.skinDir+"/"+a.skin,c=w[b];if(c){c.loaded?k.call(this,a,c.html):c.queue.push({c:this,s:a})}else{w[b]={loaded:false,queue:[{c:this,s:a}]};s.ajax({url:b+".html",dataType:"text",success:function(d){var e=w[b];e.loaded=true;e.html=d;for(d=0;d<e.queue.length;d++){k.call(e.queue[d].c,e.queue[d].s,e.html)}},dataFilter:function(d){return d=d.substring(d.indexOf("<body>")+6,d.lastIndexOf("</body>"))},error:function(){if(a.error){var d=s.Event("tn3_error");d.description="tn3 skin load error";a.error(d)}}})}return this}function k(a,b){this.each(function(){for(var c=s(this),d,e,f=b.indexOf("<img src=");f!=-1;){f+=10;e=b.indexOf('"',f);d=a.skinDir+"/"+b.substring(f,e);b=b.substr(0,f)+d+b.substr(e);f=b.indexOf("<img src=",f)}c.append(b);c.data("tn3").init(c,a.fullOnly)})}function l(a){var b=[],c=a.children(".tn3.album"),d,e;if(c.length>0){c.each(function(f){d=s(this);b[f]={title:d.find(":header").html()};s.extend(b[f],m(d));if(e=q(d)){b[f].imgs=e;if(!b[f].thumb){b[f].thumb=b[f].imgs[0].thumb}}})}else{if(e=q(a)){b[0]={imgs:e}}}return b}function q(a){var b=[],c,d,e;c=a.find("li");if(c.length>0){c.each(function(f){d=s(this);e=d.find(":header");b[f]={title:e.html(),img:d.find("a").attr("href"),thumb:d.find("a img").attr("src")};if(!b[f].img){b[f].img=d.find("img").attr("src")}s.extend(b[f],m(d))})}else{c=a.find("img");c.each(function(f){d=s(this);$at=d.parent("a");b[f]=$at.length==0?{title:d.attr("title"),img:d.attr("src")}:{title:d.attr("title"),img:$at.attr("href"),thumb:d.attr("src")}})}if(b.length==0){return null}return b}function m(a){var b={};a=a.children(".tn3");var c;s.each(a,function(){c=s(this);b[c.attr("class").substr(4)]=c.html()});return b}function t(a){s('a[href^="#tn3-'+a+'"]').click(function(b){var c=v[a];b=s(b.currentTarget).attr("href");b=b.substr(b.indexOf("-",5)+1);b=b.split("-");switch(b[0]){case"next":c.cAlbum!=null&&c.show("next",b[1]=="fs");break;case"prev":c.cAlbum!=null&&c.show("prev",b[1]=="fs");break;default:c.cAlbum!=parseInt(b[0])?c.showAlbum(parseInt(b[0]),parseInt(b[1]),b[2]=="fs"):c.show(parseInt(b[1]),b[2]=="fs")}})}function u(){if(v.length==0){var a=s(".tn3gallery");a.length>0&&a.tn3({})}}if(/1\.(0|1|2|3|4)\.(0|1)/.test(s.fn.jquery)||/^1.1/.test(s.fn.jquery)||/^1.2/.test(s.fn.jquery)||/^1.3/.test(s.fn.jquery)){alert("tn3gallery requires jQuery v1.4.2 or later!  You are using v"+s.fn.jquery)}else{var w={},v=[];s.fn.tn3=function(a){a=s.extend(true,{},s.fn.tn3.config,a);if(a.skin!=null){if(typeof a.skin=="object"){a.skinDir+="/"+a.skin[0];if(a.cssID==null){a.cssID=a.skin[0]}a.skin=a.skin[1]}else{a.skinDir+="/"+a.skin}}else{a.skin="tn3";a.skinDir+="/tn3";var b=true}if(a.cssID==null){a.cssID=a.skin==null?"tn3":a.skin}this.each(function(){var c=s(this);a.fullOnly?c.hide():c.css("visibility","hidden");var d=a.data?a.data:l(c);d=v.push(new s.fn.tn3.Gallery(d,a))-1;c.data("tn3",v[d]);for(var e=0;e<s.fn.tn3.plugins.length;e++){s.fn.tn3.plugins[e].init(c,a)}c.empty();t(d)});b?k.call(this,a,a.skinDefault):r.call(this,a);return this};s.fn.tn3.plugins=[];s.fn.tn3.plugIn=function(a,b){s.fn.tn3.plugins.push({id:a,init:b})};s.fn.tn3.version="1.1.0.30";s.fn.tn3.config={data:null,skin:null,skinDir:"skins",skinDefault:'<div class="tn3-gallery"><div class="tn3-image"><div class="tn3-text-bg"><div class="tn3-image-title"></div><div class="tn3-image-description"></div></div><div class="tn3-next tn3_v tn3_o"></div><div class="tn3-prev tn3_v tn3_o"></div><div class="tn3-preloader tn3_h tn3_v"></div><div class="tn3-timer"></div></div><div class="tn3-controls-bg tn3_rh"><div class="tn3-sep1"></div><div class="tn3-sep2"></div><div class="tn3-sep3"></div></div><div class="tn3-thumbs"></div><div class="tn3-fullscreen"></div><div class="tn3-show-albums"></div><div class="tn3-next-page"></div><div class="tn3-prev-page"></div><div class="tn3-play"></div><div class="tn3-count"></div><div class="tn3-albums"><div class="tn3-inalbums"><div class="tn3-album"></div></div><div class="tn3-albums-next"></div><div class="tn3-albums-prev"></div><div class="tn3-albums-close"></div></div></div>',cssID:null};s.fn.tn3.translations={};s.fn.tn3.translate=function(a,b){if(b){s.fn.tn3.translations[a]=b}else{var c=s.fn.tn3.translations[a];return c?c:a}};s(function(){setTimeout(u,1)})}})(jQuery);(function(a){a.fn.tn3utils=U={};U.shuffle=function(h){var c,f,g=h.length;if(g){for(;--g;){f=Math.floor(Math.random()*(g+1));c=h[f];h[f]=h[g];h[g]=c}}};a.extend(a.easing,{def:"easeOutQuad",swing:function(k,f,g,j,h){return a.easing[a.easing.def](k,f,g,j,h)},linear:function(k,f,g,j,h){return j*f/h+g},easeInQuad:function(k,f,g,j,h){return j*(f/=h)*f+g},easeOutQuad:function(k,f,g,j,h){return -j*(f/=h)*(f-2)+g},easeInOutQuad:function(k,f,g,j,h){if((f/=h/2)<1){return j/2*f*f+g}return -j/2*(--f*(f-2)-1)+g},easeInCubic:function(k,f,g,j,h){return j*(f/=h)*f*f+g},easeOutCubic:function(k,f,g,j,h){return j*((f=f/h-1)*f*f+1)+g},easeInOutCubic:function(k,f,g,j,h){if((f/=h/2)<1){return j/2*f*f*f+g}return j/2*((f-=2)*f*f+2)+g},easeInQuart:function(k,f,g,j,h){return j*(f/=h)*f*f*f+g},easeOutQuart:function(k,f,g,j,h){return -j*((f=f/h-1)*f*f*f-1)+g},easeInOutQuart:function(k,f,g,j,h){if((f/=h/2)<1){return j/2*f*f*f*f+g}return -j/2*((f-=2)*f*f*f-2)+g},easeInQuint:function(k,f,g,j,h){return j*(f/=h)*f*f*f*f+g},easeOutQuint:function(k,f,g,j,h){return j*((f=f/h-1)*f*f*f*f+1)+g},easeInOutQuint:function(k,f,g,j,h){if((f/=h/2)<1){return j/2*f*f*f*f*f+g}return j/2*((f-=2)*f*f*f*f+2)+g},easeInSine:function(k,f,g,j,h){return -j*Math.cos(f/h*(Math.PI/2))+j+g},easeOutSine:function(k,f,g,j,h){return j*Math.sin(f/h*(Math.PI/2))+g},easeInOutSine:function(k,f,g,j,h){return -j/2*(Math.cos(Math.PI*f/h)-1)+g},easeInExpo:function(k,f,g,j,h){return f==0?g:j*Math.pow(2,10*(f/h-1))+g},easeOutExpo:function(k,f,g,j,h){return f==h?g+j:j*(-Math.pow(2,-10*f/h)+1)+g},easeInOutExpo:function(k,f,g,j,h){if(f==0){return g}if(f==h){return g+j}if((f/=h/2)<1){return j/2*Math.pow(2,10*(f-1))+g}return j/2*(-Math.pow(2,-10*--f)+2)+g},easeInCirc:function(k,f,g,j,h){return -j*(Math.sqrt(1-(f/=h)*f)-1)+g},easeOutCirc:function(k,f,g,j,h){return j*Math.sqrt(1-(f=f/h-1)*f)+g},easeInOutCirc:function(k,f,g,j,h){if((f/=h/2)<1){return -j/2*(Math.sqrt(1-f*f)-1)+g}return j/2*(Math.sqrt(1-(f-=2)*f)+1)+g},easeInElastic:function(m,f,j,l,k){m=1.70158;var p=0,q=l;if(f==0){return j}if((f/=k)==1){return j+l}p||(p=k*0.3);if(q<Math.abs(l)){q=l;m=p/4}else{m=p/(2*Math.PI)*Math.asin(l/q)}return -(q*Math.pow(2,10*(f-=1))*Math.sin((f*k-m)*2*Math.PI/p))+j},easeOutElastic:function(m,f,j,l,k){m=1.70158;var p=0,q=l;if(f==0){return j}if((f/=k)==1){return j+l}p||(p=k*0.3);if(q<Math.abs(l)){q=l;m=p/4}else{m=p/(2*Math.PI)*Math.asin(l/q)}return q*Math.pow(2,-10*f)*Math.sin((f*k-m)*2*Math.PI/p)+l+j},easeInOutElastic:function(m,f,j,l,k){m=1.70158;var p=0,q=l;if(f==0){return j}if((f/=k/2)==2){return j+l}p||(p=k*0.3*1.5);if(q<Math.abs(l)){q=l;m=p/4}else{m=p/(2*Math.PI)*Math.asin(l/q)}if(f<1){return -0.5*q*Math.pow(2,10*(f-=1))*Math.sin((f*k-m)*2*Math.PI/p)+j}return q*Math.pow(2,-10*(f-=1))*Math.sin((f*k-m)*2*Math.PI/p)*0.5+l+j},easeInBack:function(l,f,h,k,j,m){if(m==undefined){m=1.70158}return k*(f/=j)*f*((m+1)*f-m)+h},easeOutBack:function(l,f,h,k,j,m){if(m==undefined){m=1.70158}return k*((f=f/j-1)*f*((m+1)*f+m)+1)+h},easeInOutBack:function(l,f,h,k,j,m){if(m==undefined){m=1.70158}if((f/=j/2)<1){return k/2*f*f*(((m*=1.525)+1)*f-m)+h}return k/2*((f-=2)*f*(((m*=1.525)+1)*f+m)+2)+h},easeInBounce:function(k,f,g,j,h){return j-a.easing.easeOutBounce(k,h-f,0,j,h)+g},easeOutBounce:function(k,f,g,j,h){return(f/=h)<1/2.75?j*7.5625*f*f+g:f<2/2.75?j*(7.5625*(f-=1.5/2.75)*f+0.75)+g:f<2.5/2.75?j*(7.5625*(f-=2.25/2.75)*f+0.9375)+g:j*(7.5625*(f-=2.625/2.75)*f+0.984375)+g},easeInOutBounce:function(k,f,g,j,h){if(f<h/2){return a.easing.easeInBounce(k,f*2,0,j,h)*0.5+g}return a.easing.easeOutBounce(k,f*2-h,0,j,h)*0.5+j*0.5+g}})})(jQuery);(function(b){b.fn.tn3.Gallery=function(c,d){this.data=c;this.config=b.extend(true,{},b.fn.tn3.Gallery.config,d);this.initialized=false;this.t=b.fn.tn3.translate;this.loader=new b.fn.tn3.External(d.external,this)};b.fn.tn3.Gallery.config={cssID:"tn3",active:[],iniAlbum:0,iniImage:0,imageClick:"next",startWithAlbums:false,autoplay:false,delay:7000,timerMode:"bar",timerSteps:500,timerStepChar:"&#8226;",isFullScreen:false,fullOnly:false,width:null,height:null,mouseWheel:true,image:{},thumbnailer:{}};var a;b.fn.tn3.Gallery.prototype={config:null,$c:null,$tn3:null,data:null,thumbnailer:null,imager:null,cAlbum:null,timer:null,items:null,initialized:null,n:null,albums:null,loader:null,fso:null,timerSize:null,special:null,areHidden:false,$inImage:null,init:function(e,f){this.$c=e;if(!(this.loader.reqs>0||this.data.length==0||f)){this.trigger("init_start");this.config.fullOnly&&this.$c.show();this.$c.css("visibility","visible");this.$tn3=this.$c.find("."+this.config.cssID+"-gallery");var h=this.config.initValues={width:this.$tn3.width(),height:this.$tn3.height()};this.$tn3.css("float","left");h.wDif=this.$tn3.outerWidth(true)-h.width;h.hDif=this.$tn3.outerHeight(true)-h.height;this.config.mouseWheel&&this.initMouseWheel();var g=this;this.timer=new b.fn.tn3.Timer(this.$c,this.config.delay,this.config.timerSteps);this.$c.bind("timer_end",function(){g.show("next")});this.special={rv:[],rh:[],v:[],h:[],o:[]};this.parseLayout();this.center();b.each(this.items,function(c,d){switch(c){case"next":d.click(function(k){g.show("next");k.stopPropagation()});d.attr("title",g.t("Next Image"));break;case"prev":d.click(function(k){g.show("prev");k.stopPropagation()});d.attr("title",g.t("Previous Image"));break;case"next-page":d.click(function(){g.items.thumbs&&g.thumbnailer.next(true)});d.attr("title",g.t("Next Page"));break;case"prev-page":d.click(function(){g.items.thumbs&&g.thumbnailer.prev(true)});d.attr("title",g.t("Previous Page"));break;case"thumbs":g.config.thumbnailer.cssID=g.config.cssID;g.config.thumbnailer.initValues={width:d.width(),height:d.height()};g.config.thumbnailer.initValues.vertical=d.width()<=d.height();d.bind("tn_click",function(k){g.show(k.n)}).bind("tn_over",function(){g.timer.pause(true)}).bind("tn_out",function(){g.timer.pause(false)}).bind("tn_error",function(k){g.trigger("error",k)});break;case"image":g.config.image.cssID=g.config.cssID;g.config.image.initValues={width:d.width(),height:d.height()};d.bind("img_click",function(k){switch(g.config.imageClick){case"next":g.show("next");break;case"fullscreen":g.fullscreen();break;case"url":if(k=g.data[g.cAlbum].imgs[k.n].url){window.location=k}}}).bind("img_load_start",function(){g.items.preloader&&g.items.preloader.show()}).bind("img_load_end",function(k){g.n=k.n;g.items.thumbs&&g.thumbnailer.thumbClick(k.n);g.items.preloader&&g.items.preloader.hide();g.items.timer&&g.items.timer.hide();g.$inImage&&g.$inImage.hide()}).bind("img_transition",function(){g.setTextValues(false,"image");g.$inImage&&g.$inImage.fadeIn(300);g.items.count&&g.items.count.text(g.n+1+"/"+g.data[g.cAlbum].imgs.length);g.config.autoplay&&g.timer.start();g.special.o.length>0&&g.hideElements()}).bind("img_enter",function(){g.items.timer&&g.timer.pause(true);g.special.o.length>0&&g.showElements(300)}).bind("img_leave",function(){g.items.timer&&g.timer.pause(false);g.special.o.length>0&&g.hideElements(300)}).bind("img_resize",function(k){if(g.$inImage){g.$inImage.width(k.w).height(k.h).css("left",k.left).css("top",k.top);g.center();g.imager.bindMouseEvents(g.$inImage)}}).bind("img_error",function(k){g.trigger("error",k)});break;case"preloader":d.hide();break;case"timer":var j=d.width()>d.height()?"width":"height";g.$c.bind("timer_tick",function(l){if(g.config.timerMode=="char"){for(var k=g.config.timerStepChar;--l.tick;){k+=g.config.timerStepChar}g.items.timer.html(k)}else{g.items.timer[j](g.timerSize/l.totalTicks*l.tick)}g.trigger(l.type,l)}).bind("timer_start",function(k){g.timerSize=g.$inImage[j]();g.items.timer.fadeIn(300);g.trigger(k.type,k)}).bind("timer_end timer_stop",function(){g.items.timer.hide()});d.hide();break;case"play":d.click(function(k){if(g.timer.runs){g.timer.stop();g.config.autoplay=false;d.removeClass(g.config.cssID+"-play-active");d.attr("title",g.t("Start Slideshow"))}else{g.timer.start();g.config.autoplay=true;d.addClass(g.config.cssID+"-play-active");d.attr("title",g.t("Stop Slideshow"))}k.stopPropagation()});d.attr("title",g.t("Start Slideshow"));g.config.autoplay&&d.click();break;case"albums":g.albums=new b.fn.tn3.Albums(g.data,d,g.config.cssID);d.hide();d.bind("albums_binit",function(k){g.trigger(k.type,k)}).bind("albums_click",function(k){g.showAlbum(k.n);g.trigger(k.type,k)}).bind("albums_init",function(k){g.timer.pause(true);g.trigger(k.type,k)}).bind("albums_error",function(k){g.trigger("error",k)}).bind("albums_close",function(){g.timer.pause(false)});break;case"albums-next":g.albums&&g.albums.setControl("next",d);d.attr("title",g.t("Next Album Page"));break;case"albums-prev":g.albums&&g.albums.setControl("prev",d);d.attr("title",g.t("Previous Album Page"));break;case"albums-close":g.albums&&g.albums.setControl("close",d);d.attr("title",g.t("Close"));break;case"show-albums":d.click(function(k){g.items.albums&&g.albums.show(0,g.cAlbum,false,true);k.stopPropagation()});d.attr("title",g.t("Album List"));break;case"fullscreen":d.click(function(k){g.fullscreen();k.stopPropagation()});d.attr("title",g.t("Maximize"))}});if(this.config.width!==null||this.config.height!==null){if(this.config.width==null){this.config.width=this.config.initValues.width}if(this.config.height==null){this.config.height=this.config.initValues.height}this.resize(this.config.width,this.config.height)}h=Math.min(this.config.iniAlbum,this.data.length-1);this.initialized=true;this.config.startWithAlbums&&this.data.length>1&&this.items.albums?this.albums.show():this.showAlbum(h,this.config.iniImage);this.config.isFullScreen&&this.onFullResize(b(window).width(),b(window).height());this.trigger("init")}},parseLayout:function(){var e=this.items={},f=this.config,k=f.active,j=f.cssID.length+1,l=this,m,q;this.$c.find("div[class^='"+f.cssID+"-']").each(function(){m=b(this);q=m.attr("class").split(" ")[0].substr(j);if(k.length==0||b.inArray(q,k)!=-1){e[q]=m}else{q!="gallery"&&m.remove()}if(m.parent().hasClass(f.cssID+"-image")){if(!l.$inImage){l.$inImage=m.parent().append('<div class="tn3-in-image"></div>').find(":last");if(b.browser.msie){var c=b("<div />");c.css("background-color","#fff").css("opacity",0).css("width","100%").css("height","100%");c.appendTo(l.$inImage)}l.$inImage.css("position","absolute").width(e.image.width()).height(e.image.height())}m.appendTo(l.$inImage)}this.className.indexOf("tn3_")!=-1&&l.addSpecial(q,this.className)})},addSpecial:function(e,f){for(var j=f.split(" "),h,k=0;k<j.length;k++){h=j[k].split("_");if(h[0]=="tn3"){this.special[h[1]].push(e);if(h[1]=="rh"||h[1]=="rv"){this.config.initValues[e]={w:this.items[e].width(),h:this.items[e].height()}}}}},initHover:function(c,e){var f=this;c.hover(function(){c.addClass(f.config.cssID+"-"+e+"-over")},function(){c.removeClass(f.config.cssID+"-"+e+"-over")})},setTextValues:function(e,f){var k,j,l,m=f+"-";for(l in this.items){if(l.indexOf(m)==0){k=l.substr(m.length);if(k!="info"&&k!="prev"&&k!="next"){j=f=="image"?this.data[this.cAlbum].imgs[this.n]:this.data[this.cAlbum];if(!(!j||j[k]==undefined)){j[k]=b.trim(j[k]);k={field:k,text:j[k],data:j};this.trigger("set_text",k);if(e||k.text==undefined||k.text.length==0){this.items[l].html("");this.items[l].hide()}else{this.items[l].html(k.text);this.items[l].show()}}}}}},show:function(c,d){this.timer.stop();this.imager&&this.imager.show(c);d&&this.fullscreen()},setAlbumData:function(e,f){if(f){this.trigger("error",{description:f})}else{for(var h=0,g=e.length;h<g;h++){this.data.push(e[h])}this.$c&&this.init(this.$c,this.config.fullOnly)}},setImageData:function(c,e,f){if(f){this.trigger("error",{description:f})}else{c={data:c};this.trigger("image_data",c);this.data[e].imgs=c.data;this.cAlbum==e&&this.rebuild(c.data)}},showAlbum:function(c,e,f){if(this.initialized){if(c>this.data.length){return}this.timer.stop();this.cAlbum=c;if(this.data[this.cAlbum].imgs===undefined){this.loader?this.loader.getImages(this.data[this.cAlbum].adata,this.cAlbum):this.trigger("error",{description:"Wrong album id"})}else{this.rebuild(this.data[this.cAlbum].imgs,e)}this.albums&&this.albums.hide();this.items.preloader&&this.items.preloader.show()}else{this.config.iniAlbum=c;this.config.iniImage=e;this.init(this.$c,false)}f&&this.fullscreen()},rebuild:function(c,d){if(this.items.thumbs){if(this.thumbnailer){this.thumbnailer.rebuild(c)}else{this.thumbnailer=new b.fn.tn3.Thumbnailer(this.items.thumbs,c,this.config.thumbnailer)}}if(this.items.image){if(this.imager){this.imager.rebuild(c)}else{this.imager=new b.fn.tn3.Imager(this.items.image,c,this.config.image)}}this.setTextValues(true,"image");this.setTextValues(false,"album");this.show(d==null?0:d);this.trigger("rebuild",{album:this.cAlbum})},showElements:function(c){if(this.areHidden){var e=this,f;b.each(this.special.o,function(d,h){f=e.items[h];f.show();if(c&&b.support.opacity){f.stop(true);f.css("opacity",0);f.animate({opacity:1},{duration:c,queue:false})}});this.areHidden=false}},hideElements:function(c){if(!this.areHidden){var e=this,f;b.each(this.special.o,function(d,h){f=e.items[h];if(c&&b.support.opacity){f.stop(true);f.animate({opacity:0},{duration:c,complete:function(){f.hide()},queue:false})}else{f.hide()}});this.areHidden=true}},setData:function(c){if(this.items.thumbs){this.thumbnailer.data=c}if(this.items.imager){this.imager.data=c}},fullscreen:function(){if(this.config.isFullScreen){b(window).unbind("resize",this.onFullResize);b.tn3unblock();this.config.width!==null||this.config.height!==null?this.resize(this.config.width,this.config.height):this.resize(this.config.initValues.width,this.config.initValues.height);if(this.items.fullscreen){this.items.fullscreen.removeClass(this.config.cssID+"-fullscreen-active");this.items.fullscreen.attr("title",this.t("Maximize"))}this.config.fullOnly&&this.$c.hide();this.config.isFullScreen=false;this.trigger("fullscreen",{fullscreen:false});b(document).unbind("keyup",this.onEscape)}else{b.tn3block({message:this.$tn3,cssID:this.config.cssID});b(window).bind("resize",b.proxy(this.onFullResize,this));this.config.fullOnly&&this.$c.show();this.config.isFullScreen=true;if(this.items.fullscreen){this.items.fullscreen.addClass(this.config.cssID+"-fullscreen-active");this.items.fullscreen.attr("title",this.t("Minimize"))}this.onFullResize();a=this;b(document).bind("keyup",this.onEscape);this.trigger("fullscreen",{fullscreen:true})}},onEscape:function(c){c.keyCode==27&&a.fullscreen();c.keyCode==39&&a.show("next");c.keyCode==37&&a.show("prev");c.keyCode==38&&a.items.albums&&a.albums.show(0,a.cAlbum,false,true);c.keyCode==40&&a.albums.hide()},onFullResize:function(){var c=b(window),d=c.width();c=c.height();d-=this.config.initValues.wDif;c-=this.config.initValues.hDif;this.resize(d,c)},resize:function(e,f){this.$tn3.width(e).height(f);var k=e-this.config.initValues.width,j=f-this.config.initValues.height,l,m,q=this;if(this.items.image){l=this.config.image.initValues.width+k;m=this.config.image.initValues.height+j;if(this.imager){this.imager.setSize(l,m)}else{this.items.image.width(l).height(m);this.$inImage.width(l).height(m)}}if(this.items.thumbs){l=this.config.thumbnailer.initValues.width+k;m=this.config.thumbnailer.initValues.height+j;if(this.thumbnailer){this.thumbnailer.setSize(l,m)}else{this.config.thumbnailer.initValues.vertical?this.items.thumbs.height(m):this.items.thumbs.width(l)}}if(this.items.albums){l=this.albums.initValues.width+k;m=this.albums.initValues.height+j;this.albums.changeSize(k,j)}b.each(this.special.rh,function(d,c){q.items[c].width(q.config.initValues[c].w+k)});b.each(this.special.rv,function(d,c){q.items[c].height(q.config.initValues[c].h+j)});this.center()},center:function(){var c,d=this;b.each(this.special.v,function(f,e){c=d.items[e];c.css("top",(c.parent().height()-c.height())/2)});b.each(this.special.h,function(f,e){c=d.items[e];c.css("left",(c.parent().width()-c.width())/2)})},trigger:function(e,f){var h=b.Event("tn3_"+e),g;for(g in f){h[g]=f[g]}if(f&&f.type!=undefined){h.type="tn3_"+e}h.source=this;this.$c.trigger(h);this.config[e]&&this.config[e].call(this,h);for(g in f){f[g]=h[g]}},initMouseWheel:function(){var c=this,d=function(e){c.show((e.detail?-e.detail:e.wheelDelta)>0?"prev":"next");e.preventDefault()};this.$tn3.bind("mousewheel",d);this.$tn3.bind("DOMMouseScroll",d)},replaceMenu:function(c,e){var f='<div style="position:absolute;background-color:#fff;color: #000;padding:0px 4px 0px 4px;z-index:1010;font-family:sans-serif;font-size:12px;">&copy; <a href="'+e+'">'+c+"</a></div>";this.$tn3.bind("contextmenu",function(d){d.preventDefault()}).bind("mousedown",function(d){if(d.which==3){var h=b("body").append(f).find("div:last");h.css("left",d.pageX).css("top",d.pageY);h.find("a").mouseup(function(g){window.location=e;h.unbind(g)});b("body").mouseup(function(g){h.remove();b("body").unbind(g)})}})}}})(jQuery);(function(a){a.fn.tn3.Imager=function(f,c,d){this.$c=f;this.data=c;this.config=a.extend(true,{},a.fn.tn3.Imager.config,d);this.init()};a.fn.tn3.Imager.config={transitions:null,defaultTransition:{type:"slide"},random:false,cssID:"tn3",maxZoom:1.4,crop:false,clickEvent:"click",idleDelay:3000,dif:0};a.fn.tn3.Imager.prototype={config:null,$c:false,data:false,cached:null,active:-1,$active:false,$buffer:false,isInTransition:false,ts:null,cDim:null,qid:null,currentlyLoading:null,side:null,$ic:null,$binder:null,infoID:null,lastEnter:false,mouseCoor:{x:0,y:0},mouseIsOver:false,init:function(){this.$c.css("overflow","hidden");this.$c.css("position","relative");this.bindMouseEvents(this.$c);this.cached=[];this.ts=new a.fn.tn3.Transitions(this.config.transitions,this.config.defaultTransition,this.config.random,this,"onTransitionEnd")},bindMouseEvents:function(c){this.unbindMouseEvents();var b=this;c.hover(function(){b.mouseIsOver=true;b.enterLeave("enter");b.startIdle();a(document).mousemove(a.proxy(b.onMouseMove,b))},function(){b.mouseIsOver=false;b.enterLeave("leave");b.stopIdle();a(document).unbind("mousemove",b.onMouseMove)});c[this.config.clickEvent](function(d){b.active==-1||b.isInTransition||d.target.tagName.toUpperCase()!="A"&&b.trigger("click",{n:b.active})});this.$binder=c},unbindMouseEvents:function(){this.$binder&&this.$binder.unbind("mouseenter mouseleave "+this.config.clickEvent);a(document).unbind("mousemove",this.onMouseMove);this.stopIdle()},startIdle:function(){this.stopIdle();var b=this;if(this.config.idleDelay>0){this.infoID=setTimeout(function(){b.enterLeave("leave");b.stopIdle()},this.config.idleDelay)}},onMouseMove:function(b){this.mouseCoor={x:b.pageX,y:b.pageY};if(!this.isInTransition){this.infoID||this.enterLeave("enter");this.startIdle()}},stopIdle:function(){clearTimeout(this.infoID);this.infoID=null},enterLeave:function(b){this.lastEnter!=b&&this.trigger(b);this.lastEnter=b},show:function(b){if(this.isInTransition){this.qid=b}else{this.qid=null;if(b=="next"){b=this.active+1<this.data.length?this.active+1:0;this.side="left"}else{if(b=="prev"){b=this.active>0?this.active-1:this.data.length-1;this.side="right"}else{this.side=this.active>b?"right":"left"}}this.trigger("load_start",{n:b});this.$buffer=this.$c.prepend('<div class="'+this.config.cssID+'-image-in" style="position:absolute;overflow:hidden;"></div>').find(":first");if(this.cached[this.currentlyLoading]!=undefined){this.cached[this.currentlyLoading].init=false}if(this.cached[b]!=undefined){if(this.cached[b].status=="loaded"){this.initImage(this.cached[b].loader.$img,b)}else{this.cached[b].init=true;this.currentlyLoading=b}}else{this.cached[b]={status:"loading",init:true};this.currentlyLoading=b;this.cached[b].loader=new a.fn.tn3.ImageLoader(this.data[b].img,this,this.onCacheLoad,[b])}}},onCacheLoad:function(f,c,d){this.cached[c].status="loaded";d&&this.trigger("error",{description:d,n:c});this.cached[c].init&&this.initImage(f,c)},initImage:function(f,c){this.currentlyLoading=null;this.active=c;if(!this.cDim){this.cDim={w:this.$c.width(),h:this.$c.height()}}this.$buffer.width(this.cDim.w).height(this.cDim.h);var d=a('<div class="'+this.config.cssID+'-full-image" style="position:absolute"></div>');f.appendTo(d);this.$buffer.append(d);this.$buffer.data("ic",d);this.$buffer.data("img",f);this.resize(this.$buffer);this.trigger("load_end",{n:c});if(this.$active!=false){this.isInTransition=true;this.unbindMouseEvents();if(this.mouseIsOver){a(document).mousemove(a.proxy(this.onMouseMove,this))}else{this.mouseCoor={x:0,y:0}}this.lastEnter="leave";this.ts.start(this.$active,this.$buffer,this.side)}else{this.$active=this.$buffer;this.trigger("transition",{n:this.active})}if(this.cached[c+1]==undefined&&this.data[c+1]!=undefined){this.cached[c+1]={status:"loading",init:false};this.cached[c+1].loader=new a.fn.tn3.ImageLoader(this.data[c+1].img,this,this.onCacheLoad,[c+1])}},setSize:function(c,b){this.isInTransition&&this.ts.stop(this.$active,this.$buffer,this.ts.config);this.$c.width(c).height(b);this.cDim={w:this.$c.width(),h:this.$c.height()};if(this.$active){this.$active.width(c).height(b);this.resize(this.$active)}},resize:function(l){$img=l.data("img");if($img==undefined){this.trigger("resize",{w:this.cDim.w,h:this.cDim.h,left:0,top:0})}else{$ic=l.data("ic");$img.width("").height("");l.data("scaled",false);var f=$img.width(),h=$img.height(),k=0,j=0,m={w:f,h:h,left:0,top:0};if(f!=this.cDim.w||h!=this.cDim.h){k=this.cDim.w/f;j=this.cDim.h/h;k=this.config.crop?Math.max(k,j):Math.min(k,j);k=Math.min(this.config.maxZoom,k);f=m.w=Math.round(f*k)-this.config.dif;h=m.h=Math.round(h*k)-this.config.dif;if(this.cDim.w>=f){k=m.left=(this.cDim.w-f)/2}else{k=-(f-this.cDim.w)*0.5;m.w=this.cDim.w}if(this.cDim.h>h){j=m.top=(this.cDim.h-h)/2}else{j=-(h-this.cDim.h)*0.5;m.h=this.cDim.h}$img.width(f).height(h);$ic.width(f).height(h);l.data("scaled",true)}$ic.css("left",k).css("top",j);this.bindMouseEvents($ic);this.trigger("resize",m)}},onTransitionEnd:function(){this.$active.remove();this.$active=this.$buffer;this.isInTransition=false;this.trigger("transition",{n:this.active});this.bindMouseEvents(this.$binder);var b=this.$binder.offset();this.mouseIsOver=false;if(this.mouseCoor.x>=b.left&&this.mouseCoor.x<=b.left+this.$binder.width()){if(this.mouseCoor.y>=b.top&&this.mouseCoor.y<=b.top+this.$binder.height()){this.lastEnter="leave";this.enterLeave("enter");this.startIdle();this.mouseIsOver=true;a(document).mousemove(a.proxy(this.onMouseMove,this))}}this.qid!=null&&this.show(this.qid)},trigger:function(h,c){var f=a.Event("img_"+h),g;for(g in c){f[g]=c[g]}f.source=this;this.$c.trigger(f);this.config[h]&&this.config[h].call(this,f)},destroy:function(){this.isInTransition&&this.ts.stop(this.$active,this.$buffer);this.$active&&this.$active.remove();this.$buffer.remove()},rebuild:function(b){this.quid=null;this.isInTransition&&this.ts.stop(this.$active,this.$buffer);this.$buffer.remove();this.cached=[];this.data=b;this.loader&&this.loader.cancel()}}})(jQuery);(function(a){a.fn.tn3.Thumbnailer=function(f,c,d){this.$c=f;this.data=c;this.config=a.extend({},a.fn.tn3.Thumbnailer.config,d);this.init()};a.fn.tn3.Thumbnailer.config={overMove:true,buffer:20,speed:8,slowdown:50,shaderColor:"#000000",shaderOpacity:0.5,shaderDuration:300,shaderOut:300,useTitle:false,seqLoad:true,align:1,mode:"thumbs",cssID:"tn3"};a.fn.tn3.Thumbnailer.prototype={config:null,$c:null,$oc:null,$ul:null,data:null,active:-1,listSize:0,containerSize:0,containerPadding:0,noBufSize:0,containerOffset:0,mcoor:"mouseX",edge:"left",size:"width",outerSize:"outerWidth",mouseX:0,mouseY:0,intID:false,pos:0,difference:0,cnt:1,thumbCount:-1,initialized:false,clickWhenReady:-1,loaders:null,lis:null,isVertical:null,marginDif:0,nloaded:0,init:function(){this.$c.css("position","absolute").css("cursor","progress");this.lis=[];this.loaders=[];this.initialized=false;this.$oc=a("<div />");this.$ul=a("<ul />");this.$oc.appendTo(this.$c);this.$oc.css("position","absolute").css("overflow","hidden").width(this.$c.width()).height(this.$c.height());this.$ul.appendTo(this.$oc);this.$ul.css("position","relative").css("margin","0px").css("padding","0px").css("border-width","0px").css("width","12000px").css("list-style","none");if(this.isVertical==null){if(this.isVertical=this.$c.width()<this.$c.height()){this.mcoor="mouseY";this.edge="top";this.size="height";this.outerSize="outerHeight"}else{this.mcoor="mouseX";this.edge="left";this.size="width";this.outerSize="outerWidth"}this.containerSize=this.$oc[this.size]();this.noBufSize=this.containerSize-2*this.config.buffer;this.containerOffset=this.$oc.offset()[this.edge];this.containerPadding=parseInt(this.$c.css("padding-"+this.edge))}this.listSize=0;if(navigator.userAgent.indexOf("MSIE")!=-1){this.config.seqLoad=false}this.loadNextThumb()},loadNextThumb:function(){this.thumbCount++;var c=this.$ul.append("<li></li>").find(":last");if(this.config.mode=="thumbs"){var b=this.data[this.thumbCount].thumb;if(b){this.loaders.push(new a.fn.tn3.ImageLoader(b,this,this.onLoadThumb,[c,this.thumbCount]));!this.config.seqLoad&&this.thumbCount<this.data.length-1&&this.loadNextThumb();return}else{this.config.mode="bullets"}}this.config.mode=="numbers"&&c.text(this.thumbCount+1);this.onLoadThumb(null,c,this.thumbCount)},onLoadThumb:function(k,f,g,j){this.lis[g]={li:f};f.addClass(this.config.cssID+"-thumb");f.css("float",this.isVertical?"none":"left");if(k){var h=this.lis[g].thumb=f.append(k).find(":last");this.lis[g].pos=f.position()[this.edge]}this.config.useTitle&&f.attr("title",this.data[g].title);if(this.config.mode=="thumbs"){this.lis[g].shade=f.prepend("<div/>").find(":first");this.lis[g].shade.css("background-color",this.config.shaderColor).css("width",h.width()).css("height",h.height()).css("position","absolute")}this.initThumb(g);f.css("opacity",0);f.animate({opacity:1},1000);this.listSize+=f[this.outerSize](true);if(!this.initialized){this.initialized=true;this.initMouse(true)}j&&this.trigger("error",{description:j,n:g});this.trigger("thumbLoad",{n:g});this.nloaded++;if(this.nloaded<this.data.length){if(this.config.seqLoad||this.config.mode!="thumbs"){this.loadNextThumb()}}else{if(k){this.loaders=null}if(!this.config.seqLoad){for(k=0;k<this.lis.length;k++){this.lis[k].pos=this.lis[k].li.position()[this.edge]}}this.thumbsLoaded()}if(this.clickWhenReady==g){this.clickWhenReady=-1;this.thumbClick(g)}},initThumb:function(f){var c=this.lis[f];if(c.li){c.li.removeClass().addClass(this.config.cssID+"-thumb");if(c.shade){c.shade.stop();c.shade.css("opacity",this.config.shaderOpacity)}var d=this;c.li.click(function(){d.thumbClick(f);d.trigger("click",{n:f});return false});this.config.mode!="thumbs"&&c.li.hover(function(){d.mouseOver(f)},function(){d.mouseOver(-1)})}},lastOver:-1,mouseOver:function(c){if(c!=this.lastOver){if(this.lastOver!=-1&&this.lastOver!=this.active){b=this.lis[this.lastOver];b.li.removeClass(this.config.cssID+"-thumb-over");if(b.shade){b.shade.stop();b.shade.animate({opacity:this.config.shaderOpacity},{duration:this.config.shaderOut,easing:"easeOutCubic",queue:false})}this.trigger("thumbOut",{n:c})}this.lastOver=c;if(!(c==-1||c==this.active)){var b=this.lis[c];b.li.addClass(this.config.cssID+"-thumb-over");if(b.shade){b.shade.stop();b.shade.animate({opacity:0},{duration:this.config.shaderDuration,easing:"easeOutCubic",queue:false})}this.trigger("thumbOver",{n:c})}}},next:function(b){if(b){this.listSize>this.containerSize&&this.move(this.$ul.position()[this.edge]-this.containerSize)}else{b=this.active+1;if(this.active==-1||this.active+1==this.data.length){b=0}this.thumbClick(b)}},prev:function(b){if(b){this.listSize>this.containerSize&&this.move(this.$ul.position()[this.edge]+this.containerSize)}else{b=this.active-1;if(this.active==-1||this.active==0){b=this.data.length-1}this.thumbClick(b)}},move:function(c){var b={};b[this.edge]=Math.min(0,Math.max(c,-(this.listSize-this.containerSize)));this.$ul.stop();this.$ul.animate(b,300)},thumbClick:function(c){if(this.active==-1){if(this.thumbCount<=c||this.lis.length<=c){this.clickWhenReady=c;return}}else{if(c==this.active){return}else{this.initThumb(this.active)}}if(c=="next"){c=this.active+1<this.data.length?this.active+1:0}else{if(c=="prev"){c=this.active>0?this.active-1:this.data.length-1}}var b=this.lis[c];b.li.addClass(this.config.cssID+"-thumb-selected").unbind("click mouseenter mouseleave");b.shade&&b.shade.animate({opacity:0},this.config.shaderDuration);this.active=c;this.centerActive()},centerActive:function(h){if(this.active!=-1){var c=this.lis[this.active].li,f=this.$ul.position()[this.edge]+c.position()[this.edge],g=c[this.outerSize]()/2;if(f+g>this.containerSize||f+g<0){c=10-c.position()[this.edge]+this.containerSize/2-g;c=Math.min(0,c);c=Math.max(c,-this.listSize+this.containerSize);f={};f[this.edge]=c;h?this.$ul.css(f):this.$ul.animate(f,200)}}},thumbsLoaded:function(){this.$c.css("cursor","auto");this.$ul.css("width",this.listSize+"px");this.centerList();this.trigger("load")},centerList:function(c){if(this.listSize<this.containerSize){var b={};b[this.edge]=this.config.align?this.config.align==1?(this.containerSize-this.listSize)/2:this.containerSize-this.listSize:0;c||this.config.mode!="thumbs"?this.$ul.css(b):this.$ul.animate(b,300)}else{this.centerActive(c);if(this.$ul.position()[this.edge]>0){this.$ul.css(this.edge,0)}else{this.$ul.position()[this.edge]+this.listSize<this.containerSize&&this.$ul.css(this.edge,-(this.listSize-this.containerSize))}}},initMouse:function(b){if(this.config.mode=="thumbs"){b=b?"bind":"unbind";this.$oc[b]("mouseenter",a.proxy(this.mouseenter,this));this.$oc[b]("mouseleave",a.proxy(this.mouseleave,this))}},mouseenter:function(){this.trigger("over");clearInterval(this.intID);var b=this;this.$ul.stop();this.$c.mousemove(this.mcoor=="mouseX"?function(c){b.mouseX=c.pageX-b.containerOffset}:function(c){b.mouseY=c.pageY-b.containerOffset});this.marginDif=parseInt(this.lis[0].li.css("margin-"+this.edge));if(isNaN(this.marginDif)){this.marginDif=0}b.intID=this.listSize>this.containerSize&&this.config.overMove?setInterval(function(){b.slide.call(b)},10):setInterval(function(){b.mouseTrack.call(b)},10)},mouseleave:function(){this.trigger("out");this.$c.unbind("mousemove");clearInterval(this.intID);var b=this;this.intID=setInterval(function(){b.slideOut.call(b)},10);this.mouseOver(-1)},slide:function(){this.cnt=1;var f=this[this.mcoor];if(f<=this.config.buffer){this.pos=0}else{if(f>=this.containerSize-this.config.buffer){this.pos=this.containerSize-this.listSize-1}else{var c=this.containerSize*(f-this.config.buffer);c/=this.noBufSize;this.pos=c*(1-this.listSize/this.containerSize)}}for(c=this.lis.length-1;c>-1;c--){var d=f-this.prevdx;if(d>=this.lis[c].pos&&d<this.lis[c].pos+this.lis[c].li.width()){this.mouseOver(c);break}}f=this.prevdx-this.marginDif;this.difference=f-this.pos;f=Math.round(f-this.difference/this.config.speed);if(this.prevdx!=f){this.$ul.css(this.edge,f);this.prevdx=f}},prevdx:0,mouseTrack:function(){for(var f=this[this.mcoor],c=this.lis.length-1;c>-1;c--){var d=f-this.$ul.position()[this.edge];if(d>=this.lis[c].pos&&d<this.lis[c].pos+this.lis[c].li.width()){this.mouseOver(c);break}}},slideOut:function(){if(this.config.slowdown!=0&&this.difference!=0){var b=this.$ul.position()[this.edge];this.difference=b-this.pos;this.$ul.css(this.edge,b-this.difference/(this.config.speed*this.cnt));this.cnt*=1+4/this.config.slowdown;if(this.cnt>=40){this.difference=0;this.cnt=1}}else{clearInterval(this.intID);this.intID=null}},trigger:function(h,c){var f=a.Event("tn_"+h),g;for(g in c){f[g]=c[g]}f.source=this;this.$c.trigger(f);this.config[h]&&this.config[h].call(this,f)},destroy:function(){clearInterval(this.intID);this.$c.empty()},rebuild:function(b){clearInterval(this.intID);this.$c.empty();this.data=b;this.active=this.thumbCount=-1;this.nloaded=0;this.initMouse(false);this.loaders!==null&&a.each(this.loaders,function(c,d){d.cancel()});this.init()},setSize:function(c,b){this.isVertical?this.$c.height(b):this.$c.width(c);this.$oc.width(this.$c.width()).height(this.$c.height());this.containerSize=this.$oc[this.size]();this.noBufSize=this.containerSize-2*this.config.buffer;this.containerOffset=this.$oc.offset()[this.edge];this.initMouse(true);this.loaders===null&&this.centerList(true)}}})(jQuery);(function(a){a.fn.tn3.altLink=null;a.fn.tn3.ImageLoader=function(h,c,f,g){this.$img=a(new Image);g.unshift(this.$img);this.altLink=a.fn.tn3.altLink;c={url:h,context:c,callback:f,args:g};this.$img.bind("load",c,this.load);this.$img.bind("error",c,a.proxy(this.error,this));this.$img.attr("src",h)};a.fn.tn3.ImageLoader.prototype={$img:null,altLink:null,load:function(b){b.data.callback.apply(b.data.context,b.data.args);b.data.args[0].unbind("load").unbind("error")},error:function(b){if(this.altLink){this.altLink=null;this.$img.attr("src",a.fn.tn3.altLink+"?u="+b.data.url)}else{b.data.args.push("image loading error: "+b.data.url);b.data.callback.apply(b.data.context,b.data.args);this.$img.unbind("load").unbind("error")}},cancel:function(){this.$img.unbind("load").unbind("error")}}})(jQuery);(function(a){a.fn.tn3.Timer=function(f,c,d){this.$target=f;this.duration=c;this.tickint=d};a.fn.tn3.Timer.prototype={$target:null,duration:null,id:null,runs:false,counter:null,countDuration:null,tickid:null,ticks:null,tickint:500,start:function(){if(!this.runs){this.runs=true;this.startCount(this.duration);this.trigger("timer_start")}},startCount:function(f){this.clean();this.countDuration=f;this.counter=+new Date;var c=this;this.id=setTimeout(function(){c.clean.call(c);c.runs=false;c.trigger.call(c,"timer_end")},f);var d=this.duration/this.tickint;this.ticks=Math.round(f/d);this.tickid=setInterval(function(){c.ticks=Math.ceil((f-new Date+c.counter)/d);c.ticks>0&&c.trigger.call(c,"timer_tick",{tick:c.ticks,totalTicks:c.tickint})},d);this.trigger("timer_tick",{tick:this.ticks,totalTicks:this.tickint})},stop:function(){this.clean();this.runs=false;this.trigger("timer_stop")},clean:function(){clearTimeout(this.id);this.id=null;clearInterval(this.tickid);this.elapsed=this.tickid=null},elapsed:null,pause:function(b){if(this.runs){if(b){this.clean();b=this.duration/this.tickint;this.elapsed=Math.floor((+new Date-this.counter)/b)*b}else{if(this.elapsed!=null){this.startCount(this.countDuration-this.elapsed);this.elapsed=null}}}},trigger:function(h,c){var f=a.Event(h),g;for(g in c){f[g]=c[g]}this.$target.trigger(f)}}})(jQuery);(function(a){a.fn.tn3.Albums=function(f,c,d){this.data=f;this.$c=c;this.$in=c.find("."+d+"-inalbums");this.cssID=d;this.$a=this.$in.find("."+this.cssID+"-album");this.n=0;this.initValues={width:c.width(),height:c.height(),aw:this.$a.width(),ah:this.$a.height(),inw:this.$in.width(),inh:this.$in.height()};this.pad=parseInt(this.$in.css("padding-left"))};a.fn.tn3.Albums.prototype={data:null,$c:null,$in:null,$a:null,initValues:null,p:null,aw:null,ah:null,cssID:null,coors:null,ctrl_next:null,ctrl_prev:null,n:null,selected:null,pad:null,space:null,getButtons:function(){this.$in.empty();var f=[];$cur=this.$a.clone();$cur.appendTo(this.$in);this.space=this.space===null?this.pad:this.space;var c=this.$in.width()-2*this.pad;this.$in.height();var d=Math.floor(c/this.initValues.aw);this.aw=Math.floor((c-(d-1)*this.space)/d);this.ah=this.initValues.ah;for(d=c=this.pad;d+this.ah<this.$in.height();){for(;c+this.aw<this.$in.width();){f.push($cur);$cur.css("left",c).css("top",d);$cur.width(this.aw).height(this.ah);$cur.hide();$cur=this.$a.clone();$cur.appendTo(this.$in);c+=this.aw+this.space}d+=this.ah+this.space;c=this.pad}$cur.remove();return f},show:function(r,f,l,q){this.$c.show();if(r==undefined){r=0}else{if(r=="next"){r=this.n+1<this.data.length?this.n+1:0}else{if(r=="prev"){r=this.n>0?this.n-1:this.data.length-1}}}if(f!=undefined){this.selected=f}var m,s,t=this.getButtons();if(q&&f!==null){for(;t.length*(r+1)<f;){r++}}var x=this;f=r*t.length;q=Math.min(this.data.length,(r+1)*t.length);this.trigger("init");for(var v=f;v<q;v++){var u=this.data[v];if(!u.title){u.title="Unknown"}m=t[v-f];s='<div class="'+this.cssID+'-album-image"></div>';s+='<div class="'+this.cssID+'-album-title">'+u.title+"</div>";if(u.description){s+='<div class="'+this.cssID+'-album-description">'+u.description+"</div>"}m.html(s);new a.fn.tn3.ImageLoader(u.thumb,this,this.onThumbLoad,[m.find("."+this.cssID+"-album-image")]);m.data("tn3",v);this.trigger("binit",{$a:m});if(v!=this.selected){m.click(function(){x.trigger("click",{n:a(this).data("tn3")})}).hover(function(){a(this).addClass(x.cssID+"-album-over")},function(){a(this).removeClass(x.cssID+"-album-over")})}else{m.addClass(this.cssID+"-album-selected");m.unbind("click mouseenter mouseleave")}}m=v%t.length;if(m!=0){for(s=t.length-1;s>=m;s--){t.splice(s,1)}}this.n=r;if(l){a.each(t,function(b){t[b].show()})}else{var w=800/t.length;this.$c.slideDown(r==0?300:0,function(){a.each(t,function(b){t[b].delay(b*w).fadeIn(150)})})}this.ctrl_prev&&this.enablePageControl("prev",f>0);this.ctrl_next&&this.enablePageControl("next",q<this.data.length);this.ctrl_close.css("display",this.selected===null?"none":"inline")},onThumbLoad:function(f,c,d){d&&this.trigger("error",{description:d});c.prepend(f)},hide:function(){this.$c.hide()},enablePageControl:function(h,c){var f=this["ctrl_"+h];if(c){if(!f.data("active")){var g=this;f.click(function(b){g.show(h);b.stopPropagation()}).hover(function(){a(this).addClass(g.cssID+"-albums-"+h+"-over")},function(){a(this).removeClass(g.cssID+"-albums-"+h+"-over")});f.data("active",true)}}else{f.removeClass(this.cssID+"-albums-"+h+"-over");f.unbind();f.data("active",false)}},setControl:function(f,c){if(f=="close"){var d=this;c.click(function(b){d.$c.hide();d.trigger("close");b.stopPropagation()})}this["ctrl_"+f]=c},trigger:function(h,c){var f=a.Event("albums_"+h),g;for(g in c){f[g]=c[g]}f.source=this;this.$c.trigger(f)},changeSize:function(c,b){this.$c.width(this.initValues.width+c).height(this.initValues.height+b);this.$in.width(this.initValues.inw+c).height(this.initValues.inh+b);this.$c.css("display")!="none"&&this.show(undefined,undefined,true)}}})(jQuery);(function(d){var c=d.fn.tn3.Transitions=function(a,f,e,j,k){this.ts=a;this.def=d.extend(true,{},this[f.type+"Config"],f);if(!a){this.ts=[this.def]}for(var l in this.ts){this.ts[l]=d.extend(true,{},this[this.ts[l].type+"Config"],this.ts[l])}this.random=e;this.end=d.proxy(j,k)},b=c.prototype={ts:null,def:{type:"slide"},random:false,gs:[],end:null,ct:null,counter:-1,setTransition:function(){if(this.ts.length==1){this.ct=this.ts[0]}else{this.counter++;if(this.counter==this.ts.length){this.counter=0}this.random&&this.counter==0&&d.fn.tn3utils.shuffle(this.ts);this.ct=this.ts[this.counter]}},start:function(a,f,e){this.setTransition();if(this[this.ct.type+"Condition"]!==undefined&&!this[this.ct.type+"Condition"](a,f,this.ct)){this.ct=this.def}this[this.ct.type](a,f,this.ct,e)},stop:function(a,e){this[this.ct.type+"Stop"](a,e,this.ct)},makeGrid:function(a,f,e){var t=a.width(),v=Math.round(t/f);t=t-v*f;var B=a.height(),x=Math.round(B/e);B=B-x*e;var w,y,z,A,C,D=0,E=0,F="url("+a.find("img").attr("src")+") no-repeat scroll -";for(w=0;w<f;w++){this.gs[w]=[];A=t>w?v+1:v;for(y=0;y<e;y++){z=a.append("<div></div>").find(":last");C=B>y?x+1:x;z.width(A).height(C).css("background",F+D+"px -"+E+"px").css("left",D).css("top",E).css("position","absolute");this.gs[w].push(z);E+=C}D+=A;E=0}a.find("img").remove()},stopGrid:function(){for(var a=0;a<this.gs.length;a++){for(var e=0;e<this.gs[a].length;e++){this.gs[a][e].clearQueue();this.gs[a][e].remove()}}this.gs=[]},flatSort:function(a){for(var f=[],e=0;e<this.gs.length;e++){for(var h=0;h<this.gs[e].length;h++){f.push(this.gs[e][h])}}a&&f.reverse();return f},randomSort:function(){var a=this.flatSort();d.fn.tn3utils.shuffle(a);return a},diagonalSort:function(a,f){for(var e=[],j=a>0?this.gs.length-1:0,k=f>0?0:this.gs[0].length-1;this.gs[j];){e.push(this.addDiagonal([],j,k,a,f));j-=a}j+=a;for(k+=f;this.gs[j][k];){e.push(this.addDiagonal([],j,k,a,f));k+=f}return e},addDiagonal:function(a,f,e,j,k){a.push(this.gs[f][e]);return this.gs[f+j]&&this.gs[f+j][e+k]?this.addDiagonal(a,f+j,e+k,j,k):a},circleSort:function(a){var f=[],e=this.gs.length,k=this.gs[0].length,l=[Math.floor(e/2),Math.floor(k/2)];e=e*k;k=[[1,0],[0,1],[-1,0],[0,-1]];var r=0,q=0,m;for(f.push(this.gs[l[0]][l[1]]);f.length<e;){for(m=0;m<=r;m++){this.addGridPiece(f,l,k[q])}if(q==k.length-1){q=0}else{q++}r+=0.5}a&&f.reverse();return f},addGridPiece:function(a,f,e){f[0]+=e[0];f[1]+=e[1];this.gs[f[0]]&&this.gs[f[0]][f[1]]&&a.push(this.gs[f[0]][f[1]])},getSlidePositions:function(a,f){var e={dir:f};switch(f){case"left":e.pos=a.outerWidth(true);break;case"right":e.pos=-a.outerWidth(true);e.dir="left";break;case"top":e.pos=-a.outerHeight(true);break;case"bottom":e.pos=a.outerHeight(true);e.dir="top"}return e},animateGrid:function(a,f,e,m,q,v,s){var r={duration:m,easing:e,complete:function(){d(this).remove()}};for(e=0;e<a.length;e++){m=d.easing[q](0,e,0,v,a.length);if(e==a.length-1){var t=this;r.complete=function(){d(this).remove();s.call(t)}}if(d.isArray(a[e])){for(var u in a[e]){a[e][u].delay(m).animate(f[e],r)}}else{a[e].delay(m).animate(f[e],r)}}},getValueArray:function(a,f,e){var k=[],l=d.isArray(f),q=d.isArray(e),m;for(m=0;m<a;m++){o={};o[l?f[m%f.length]:f]=q?e[m%e.length]:e;k.push(o)}return k}};c.defined=[];c.define=function(a){for(var e in a){switch(e){case"type":c.defined.push(a.type);break;case"config":b[a.type+"Config"]=a.config;break;case"f":b[a.type]=a.f;break;case"stop":b[a.type+"Stop"]=a.stop;break;case"condition":b[a.type+"Condition"]=a.condition;break;default:b[e]=a[e]}}};c.define({type:"none",config:{},f:function(){this.end()},stop:function(){this.end()}});c.define({type:"fade",config:{duration:300,easing:"easeInQuad"},f:function(a,f,e){var h=this;a.animate({opacity:0},e.duration,e.easing,function(){h.end()})},stop:function(a){a.stop();this.end()}});c.define({type:"slide",config:{duration:300,direction:"auto",easing:"easeInOutCirc"},f:function(a,f,e,j){j=this.getSlidePositions(f,e.direction=="auto"?j:e.direction);var k={},l={};f.css(j.dir,j.pos);k[j.dir]=0;f.animate(k,e.duration,e.easing,this.end);l[j.dir]=-j.pos;a.animate(l,e.duration,e.easing)},stop:function(a,e){e.stop();a.stop();a.css("left",0).css("top",0);e.css("left",0).css("top",0);this.end()}});c.define({type:"blinds",config:{duration:240,easing:"easeInQuad",direction:"vertical",parts:12,partDuration:100,partEasing:"easeInQuad",method:"fade",partDirection:"auto",cross:true},f:function(a,f,e,j){e.direction=="horizontal"?this.makeGrid(a,1,e.parts):this.makeGrid(a,e.parts,1);j=e.partDirection=="auto"?j:e.partDirection;a=this.flatSort(j=="left"||j=="top");var k;switch(e.method){case"fade":k=this.getValueArray(a.length,"opacity",0);break;case"scale":k=this.getValueArray(a.length,j=="left"?"width":"height","1px");break;case"slide":f=this.getSlidePositions(f,j);k=this.getValueArray(a.length,f.dir,e.cross?[f.pos,-f.pos]:f.pos)}this.animateGrid(a,k,e.partEasing,e.partDuration,e.easing,e.duration,this.blindsStop)},stop:function(){this.stopGrid();this.end()},condition:function(a,e){return !a.data("scaled")||!e.data("scaled")}});c.define({type:"grid",config:{duration:260,easing:"easeInQuad",gridX:7,gridY:5,sort:"diagonal",sortReverse:false,diagonalStart:"bl",method:"fade",partDuration:300,partEasing:"easeOutSine",partDirection:"left"},f:function(a,f,e,j){this.makeGrid(a,e.gridX,e.gridY);a=e.partDirection=="auto"?j:e.partDirection;var k,l;if(e.sort=="diagonal"){switch(e.diagonalStart){case"tr":k=this.diagonalSort(1,1);break;case"tl":k=this.diagonalSort(-1,1);break;case"br":k=this.diagonalSort(1,-1);break;case"bl":k=this.diagonalSort(-1,-1)}}else{k=this[e.sort+"Sort"](e.sortReverse)}switch(e.method){case"fade":l=this.getValueArray(k.length,"opacity",0);break;case"scale":l=this.getValueArray(k.length,a=="left"?"width":"height","1px")}this.animateGrid(k,l,e.partEasing,e.partDuration,e.easing,e.duration,this.gridStop)},stop:function(){this.stopGrid();this.end()},condition:function(a,e){return !a.data("scaled")||!e.data("scaled")}})})(jQuery);(function(s){function r(a){var b=a&&a.message!==undefined?a.message:undefined;a=s.extend({},s.tn3block.defaults,a||{});b=b===undefined?a.message:b;v&&k({});var c=a.baseZ,d=s.browser.msie||a.forceIframe?s('<iframe class="blockUI" style="z-index:'+c+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+a.iframeSrc+'"></iframe>'):s('<div class="blockUI" style="display:none"></div>'),e=s('<div class="blockUI '+a.cssID+'-overlay" style="z-index:'+c+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');c=s('<div class="blockUI '+a.blockMsgClass+' blockPage" style="z-index:'+c+';display:none;position:fixed"></div>');c.css("left","0px").css("top","0px");if(!a.applyPlatformOpacityRules||!(s.browser.mozilla&&/Linux/.test(navigator.platform))){e.css(a.overlayCSS)}e.css("position","fixed");if(s.browser.msie||a.forceIframe){d.css("opacity",0)}var f=[d,e,c],g=s("body");s.each(f,function(){this.appendTo(g)});f=u&&(!s.boxModel||s("object,embed",null).length>0);if(w||f){a.allowBodyStretch&&s.boxModel&&s("html,body").css("height","100%");s.each([d,e,c],function(j,p){var h=p[0].style;h.position="absolute";if(j<2){h.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight)- (jQuery.boxModel?0:"+a.quirksmodeOffsetHack+') + "px"');h.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')}else{if(a.centerY){h.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2- (this.offsetHeight / 2)+ (blah = document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop)+ "px"');h.marginTop=0}else{a.centerY||h.setExpression("top",'(document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}}})}if(b){b.data("blockUI.parent",b.parent());c.append(b);if(b.jquery||b.nodeType){s(b).show()}}if((s.browser.msie||a.forceIframe)&&a.showOverlay){d.show()}a.showOverlay&&e.show();b&&c.show();a.onBlock&&a.onBlock();q(1,a);v=b}function k(a){a=s.extend({},s.tn3block.defaults,a||{});q(0,a);var b=s("body").children().filter(".blockUI").add("body > .blockUI");l(b,a)}function l(a,b){a.each(function(){this.parentNode&&this.parentNode.removeChild(this)});v.data("blockUI.parent").append(v);v=null;typeof b.onUnblock=="function"&&b.onUnblock.call(b.con)}function q(a,b){if(a||v){!b.bindEvents||a&&!b.showOverlay||(a?s(document).bind("mousedown mouseup keydown keypress",b,m):s(document).unbind("mousedown mouseup keydown keypress",m))}}function m(a){var b=a.data;if(s(a.target).parents("div."+b.blockMsgClass).length>0){return true}return s(a.target).parents().children().filter("div.blockUI").length==0}var t=document.documentMode||0,u=s.browser.msie&&(s.browser.version<8&&!t||t<8),w=s.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!t;s.tn3block=function(a){r(a)};s.tn3unblock=function(a){k(a)};var v=undefined;s.tn3block.defaults={message:"<h1>Please wait...</h1>",overlayCSS:{},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1000,allowBodyStretch:true,bindEvents:true,showOverlay:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",cssID:"tn3"}})(jQuery);(function(a){(a.fn.tn3.External=function(f,c){if(f){this.context=c;this.reqs=f.length;for(var d=0;d<f.length;d++){new a.fn.tn3.External[f[d].origin](f[d],this)}}}).prototype={context:null,reqs:0,getImages:function(c,b){c.origin.getImages(c,b)},setAlbumData:function(c,b){this.reqs--;this.context.setAlbumData.call(this.context,c,b)},setImageData:function(f,c,d){this.context.setImageData.call(this.context,f,c,d)}}})(jQuery);(function(b){var a=b.fn.tn3.External;a.xml=function(c,d){this.extcon=d;this.config=b.extend(true,{},a.xml.config,c);this.init()};a.xml.config={url:"",thumb_size:1,image_size:0};a.xml.prototype={config:null,extcon:null,getImages:function(){},init:function(){this.request()},request:function(){b.ajax({url:this.config.url,cache:false,context:this,success:function(c){this.extcon.setAlbumData(this.parseXML(c))},error:function(){this.extcon.setAlbumData([],"XML loading failed")}})},parseXML:function(e){try{var f=[],k=this,j,l,m;b(e).find(":first").children().each(function(d,c){j=b(this);f[d]={};f[d].adata={id:d,origin:k};l=j.find("file_root").text();k.setProps(c,f[d],l);f[d].imgs=[];delete f[d].images;j.find("images > image").each(function(g,h){m=f[d].imgs[g]={};k.setProps(h,m,l)})})}catch(q){this.extcon.setAlbumData([],"XML parsing error")}return f},setProps:function(e,f,h){var g;b(e).children().each(function(c,d){if(d.firstChild){g=d.firstChild.nodeValue;n=d.tagName;if(n.substring(n.length-3)=="src"){g=h+g;if(n=="image_src"){n="img"}else{if(n=="thumb_src"){n="thumb"}}}f[n]=g}});if(!f.thumb){f.thumb=this.getThumb(f.img,this.config.thumb_size)}if(this.config.image_size>0){f.img=this.getThumb(f.img,this.config.image_size)}},getThumb:function(e,f){if(!(!e||e=="")){if(f==undefined){f=1}else{if(f==0){return e}}var j=e.split("/"),h=j.pop().split("."),k=h.pop().toString();k=h.join(".")+"_"+f+"."+k.toLowerCase();return e=j.join("/")+"/thumbs/"+k}}}})(jQuery);window.Modernizr=function(K,M,O){function ac(){S.input=function(d){for(var e=0,f=d.length;e<f;e++){ao[d[e]]=d[e] in ag}return ao}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),S.inputtypes=function(b){for(var c=0,g,j,k,l=b.length;c<l;c++){ag.setAttribute("type",j=b[c]),g=ag.type!=="text",g&&(ag.value=ah,ag.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(j)&&ag.style.WebkitAppearance!==O?(X.appendChild(ag),k=M.defaultView,g=k.getComputedStyle&&k.getComputedStyle(ag,null).WebkitAppearance!=="textfield"&&ag.offsetHeight!==0,X.removeChild(ag)):/^(search|tel)$/.test(j)||(/^(url|email)$/.test(j)?g=ag.checkValidity&&ag.checkValidity()===!1:/^color$/.test(j)?(X.appendChild(ag),X.offsetWidth,g=ag.value!=ah,X.removeChild(ag)):g=ag.value!=ah)),an[b[c]]=!!g}return an}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function Y(e,f){var g=e.charAt(0).toUpperCase()+e.substr(1),h=(e+" "+ak.join(g+" ")+g).split(" ");return W(h,f)}function W(c,e){for(var f in c){if(af[c[f]]!==O){return e=="pfx"?c[f]:!0}}return !1}function T(c,d){return !!~(""+c).indexOf(d)}function R(c,d){return typeof c===d}function P(c,d){return N(aj.join(c+";")+(d||""))}function N(b){af.cssText=b}var Q="2.0.6",S={},V=!0,X=M.documentElement,Z=M.head||M.getElementsByTagName("head")[0],ab="modernizr",ad=M.createElement(ab),af=ad.style,ag=M.createElement("input"),ah=":)",ai=Object.prototype.toString,aj=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),ak="Webkit Moz O ms Khtml".split(" "),al={svg:"http://www.w3.org/2000/svg"},am={},an={},ao={},ap=[],aq=function(b,g,l,m){var p,q,r,s=M.createElement("div");if(parseInt(l,10)){while(l--){r=M.createElement("div"),r.id=m?m[l]:ab+(l+1),s.appendChild(r)}}p=["&shy;","<style>",b,"</style>"].join(""),s.id=ab,s.innerHTML+=p,X.appendChild(s),q=g(s,b),s.parentNode.removeChild(s);return !!q},ar=function(a){if(K.matchMedia){return matchMedia(a).matches}var d;aq("@media "+a+" { #"+ab+" { position: absolute; } }",function(c){d=(K.getComputedStyle?getComputedStyle(c,null):c.currentStyle).position=="absolute"});return d},at=function(){function c(a,g){g=g||M.createElement(b[a]||"div"),a="on"+a;var h=a in g;h||(g.setAttribute||(g=M.createElement("div")),g.setAttribute&&g.removeAttribute&&(g.setAttribute(a,""),h=R(g[a],"function"),R(g[a],O)||(g[a]=O),g.removeAttribute(a))),g=null;return h}var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return c}(),au,av={}.hasOwnProperty,L;!R(av,O)&&!R(av.call,O)?L=function(c,d){return av.call(c,d)}:L=function(c,d){return d in c&&R(c.constructor.prototype[d],O)};var aa=function(a,b){var e=a.join(""),h=b.length;aq(e,function(g,k){var l=M.styleSheets[M.styleSheets.length-1],m=l.cssRules&&l.cssRules[0]?l.cssRules[0].cssText:l.cssText||"",p=g.childNodes,q={};while(h--){q[p[h].id]=p[h]}S.touch="ontouchstart" in K||q.touch.offsetTop===9,S.csstransforms3d=q.csstransforms3d.offsetLeft===9,S.generatedcontent=q.generatedcontent.offsetHeight>=1,S.fontface=/src/i.test(m)&&m.indexOf(k.split(" ")[0])===0},h,b)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",aj.join("touch-enabled),("),ab,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",aj.join("transform-3d),("),ab,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',ah,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);am.flexbox=function(){function g(e,f,l,m){e.style.cssText=aj.join(f+":"+l+";")+(m||"")}function b(e,f,l,m){f+=":",e.style.cssText=(f+aj.join(l+";"+f)).slice(0,-f.length)+(m||"")}var h=M.createElement("div"),j=M.createElement("div");b(h,"display","box","width:42px;padding:0;"),g(j,"box-flex","1","width:10px;"),h.appendChild(j),X.appendChild(h);var k=j.offsetWidth===42;h.removeChild(j),X.removeChild(h);return k},am.canvas=function(){var b=M.createElement("canvas");return !!b.getContext&&!!b.getContext("2d")},am.canvastext=function(){return !!S.canvas&&!!R(M.createElement("canvas").getContext("2d").fillText,"function")},am.webgl=function(){return !!K.WebGLRenderingContext},am.touch=function(){return S.touch},am.geolocation=function(){return !!navigator.geolocation},am.postmessage=function(){return !!K.postMessage},am.websqldatabase=function(){var a=!!K.openDatabase;return a},am.indexedDB=function(){for(var a=-1,d=ak.length;++a<d;){if(K[ak[a].toLowerCase()+"IndexedDB"]){return !0}}return !!K.indexedDB},am.hashchange=function(){return at("hashchange",K)&&(M.documentMode===O||M.documentMode>7)},am.history=function(){return !!K.history&&!!history.pushState},am.draganddrop=function(){return at("dragstart")&&at("drop")},am.websockets=function(){for(var a=-1,d=ak.length;++a<d;){if(K[ak[a]+"WebSocket"]){return !0}}return"WebSocket" in K},am.rgba=function(){N("background-color:rgba(150,255,150,.5)");return T(af.backgroundColor,"rgba")},am.hsla=function(){N("background-color:hsla(120,40%,100%,.5)");return T(af.backgroundColor,"rgba")||T(af.backgroundColor,"hsla")},am.multiplebgs=function(){N("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(af.background)},am.backgroundsize=function(){return Y("backgroundSize")},am.borderimage=function(){return Y("borderImage")},am.borderradius=function(){return Y("borderRadius")},am.boxshadow=function(){return Y("boxShadow")},am.textshadow=function(){return M.createElement("div").style.textShadow===""},am.opacity=function(){P("opacity:.55");return/^0.55$/.test(af.opacity)},am.cssanimations=function(){return Y("animationName")},am.csscolumns=function(){return Y("columnCount")},am.cssgradients=function(){var d="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",f="linear-gradient(left top,#9f9, white);";N((d+aj.join(e+d)+aj.join(f+d)).slice(0,-d.length));return T(af.backgroundImage,"gradient")},am.cssreflections=function(){return Y("boxReflect")},am.csstransforms=function(){return !!W(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},am.csstransforms3d=function(){var b=!!W(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);b&&"webkitPerspective" in X.style&&(b=S.csstransforms3d);return b},am.csstransitions=function(){return Y("transitionProperty")},am.fontface=function(){return S.fontface},am.generatedcontent=function(){return S.generatedcontent},am.video=function(){var b=M.createElement("video"),f=!1;try{if(f=!!b.canPlayType){f=new Boolean(f),f.ogg=b.canPlayType('video/ogg; codecs="theora"');var g='video/mp4; codecs="avc1.42E01E';f.h264=b.canPlayType(g+'"')||b.canPlayType(g+', mp4a.40.2"'),f.webm=b.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(h){}return f},am.audio=function(){var b=M.createElement("audio"),e=!1;try{if(e=!!b.canPlayType){e=new Boolean(e),e.ogg=b.canPlayType('audio/ogg; codecs="vorbis"'),e.mp3=b.canPlayType("audio/mpeg;"),e.wav=b.canPlayType('audio/wav; codecs="1"'),e.m4a=b.canPlayType("audio/x-m4a;")||b.canPlayType("audio/aac;")}}catch(f){}return e},am.localstorage=function(){try{return !!localStorage.getItem}catch(b){return !1}},am.sessionstorage=function(){try{return !!sessionStorage.getItem}catch(b){return !1}},am.webworkers=function(){return !!K.Worker},am.applicationcache=function(){return !!K.applicationCache},am.svg=function(){return !!M.createElementNS&&!!M.createElementNS(al.svg,"svg").createSVGRect},am.inlinesvg=function(){var b=M.createElement("div");b.innerHTML="<svg/>";return(b.firstChild&&b.firstChild.namespaceURI)==al.svg},am.smil=function(){return !!M.createElementNS&&/SVG/.test(ai.call(M.createElementNS(al.svg,"animate")))},am.svgclippaths=function(){return !!M.createElementNS&&/SVG/.test(ai.call(M.createElementNS(al.svg,"clipPath")))};for(var ae in am){L(am,ae)&&(au=ae.toLowerCase(),S[au]=am[ae](),ap.push((S[au]?"":"no-")+au))}S.input||ac(),S.addTest=function(c,e){if(typeof c=="object"){for(var f in c){L(c,f)&&S.addTest(f,c[f])}}else{c=c.toLowerCase();if(S[c]!==O){return}e=typeof e=="boolean"?e:!!e(),X.className+=" "+(e?"":"no-")+c,S[c]=e}return S},N(""),ad=ag=null,K.attachEvent&&function(){var b=M.createElement("div");b.innerHTML="<elem></elem>";return b.childNodes.length!==1}()&&function(c,t){function J(d){var e=-1;while(++e<x){d.createElement(w[e])}}c.iepp=c.iepp||{};var u=c.iepp,v=u.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",w=v.split("|"),x=w.length,y=new RegExp("(^|\\s)("+v+")","gi"),z=new RegExp("<(/*)("+v+")","gi"),A=/^\s*[\{\}]\s*$/,B=new RegExp("(^|[^\\n]*?\\s)("+v+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),C=t.createDocumentFragment(),D=t.documentElement,E=D.firstChild,F=t.createElement("body"),G=t.createElement("style"),H=/print|all/,I;u.getCSS=function(d,j){if(d+""===O){return""}var k=-1,l=d.length,m,p=[];while(++k<l){m=d[k];if(m.disabled){continue}j=m.media||j,H.test(j)&&p.push(u.getCSS(m.imports,j),m.cssText),j="all"}return p.join("")},u.parseCSS=function(d){var e=[],f;while((f=B.exec(d))!=null){e.push(((A.exec(f[1])?"\n":f[1])+f[2]+f[3]).replace(y,"$1.iepp_$2")+f[4])}return e.join("\n")},u.writeHTML=function(){var b=-1;I=I||t.body;while(++b<x){var f=t.getElementsByTagName(w[b]),g=f.length,h=-1;while(++h<g){f[h].className.indexOf("iepp_")<0&&(f[h].className+=" iepp_"+w[b])}}C.appendChild(I),D.appendChild(F),F.className=I.className,F.id=I.id,F.innerHTML=I.innerHTML.replace(z,"<$1font")},u._beforePrint=function(){G.styleSheet.cssText=u.parseCSS(u.getCSS(t.styleSheets,"all")),u.writeHTML()},u.restoreHTML=function(){F.innerHTML="",D.removeChild(F),D.appendChild(I)},u._afterPrint=function(){u.restoreHTML(),G.styleSheet.cssText=""},J(t),J(C);u.disablePP||(E.insertBefore(G,E.firstChild),G.media="print",G.className="iepp-printshim",c.attachEvent("onbeforeprint",u._beforePrint),c.attachEvent("onafterprint",u._afterPrint))}(K,M),S._version=Q,S._prefixes=aj,S._domPrefixes=ak,S.mq=ar,S.hasEvent=at,S.testProp=function(b){return W([b])},S.testAllProps=Y,S.testStyles=aq,S.prefixed=function(b){return Y(b,"pfx")},X.className=X.className.replace(/\bno-js\b/,"")+(V?" js "+ap.join(" "):"");return S}(this,this.document),function(v,w){function P(){M(!0)}v.respond={},respond.update=function(){},respond.mediaQueriesSupported=w;if(!w){var x=v.document,y=x.documentElement,z=[],A=[],B=[],C={},D=30,E=x.getElementsByTagName("head")[0]||y,F=E.getElementsByTagName("link"),G=[],H=function(){var a=F,h=a.length,j=0,k,l,m,p;for(;j<h;j++){k=a[j],l=k.href,m=k.media,p=k.rel&&k.rel.toLowerCase()==="stylesheet",!!l&&p&&!C[l]&&(!/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test(l)||l.replace(RegExp.$1,"").split("/")[0]===v.location.host?G.push({href:l,media:m}):C[l]=!0)}I()},I=function(){if(G.length){var b=G.shift();N(b.href,function(a){J(a,b.href,b.media),C[b.href]=!0,I()})}},J=function(e,f,p){var q=e.match(/@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi),r=q&&q.length||0,f=f.substring(0,f.lastIndexOf("/")),s=function(b){return b.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+f+"$2$3")},t=!r&&p,u=0,Q,R,S,T,V;f.length&&(f+="/"),t&&(r=1);for(;u<r;u++){Q=0,t?(R=p,A.push(s(e))):(R=q[u].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,A.push(RegExp.$2&&s(RegExp.$2))),T=R.split(","),V=T.length;for(;Q<V;Q++){S=T[Q],z.push({media:S.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:A.length-1,minw:S.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:S.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}}M()},K,L,M=function(c){var d="clientWidth",e=y[d],f=x.compatMode==="CSS1Compat"&&e||x.body[d]||e,g={},j=x.createDocumentFragment(),k=F[F.length-1],p=(new Date).getTime();if(c&&K&&p-K<D){clearTimeout(L),L=setTimeout(M,D)}else{K=p;for(var q in z){var r=z[q];if(!r.minw&&!r.maxw||(!r.minw||r.minw&&f>=r.minw)&&(!r.maxw||r.maxw&&f<=r.maxw)){g[r.media]||(g[r.media]=[]),g[r.media].push(A[r.rules])}}for(var q in B){B[q]&&B[q].parentNode===E&&E.removeChild(B[q])}for(var q in g){var Q=x.createElement("style"),R=g[q].join("\n");Q.type="text/css",Q.media=q,Q.styleSheet?Q.styleSheet.cssText=R:Q.appendChild(x.createTextNode(R)),j.appendChild(Q),B.push(Q)}E.insertBefore(j,k.nextSibling)}},N=function(d,e){var f=O();if(!!f){f.open("GET",d,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status==200||f.status==304)&&e(f.responseText)};if(f.readyState==4){return}f.send()}},O=function(){var e=!1,f=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new XMLHttpRequest}],g=f.length;while(g--){try{e=f[g]()}catch(h){continue}break}return function(){return e}}();H(),respond.update=H,v.addEventListener?v.addEventListener("resize",P,!1):v.attachEvent&&v.attachEvent("onresize",P)}}(this,Modernizr.mq("only all")),function(I,K,M){function ab(b){return !b||b=="loaded"||b=="complete"}function aa(){var c=1,d=-1;while(ag.length- ++d){if(ag[d].s&&!(c=ag[d].r)){break}}c&&V()}function Z(b){var e=K.createElement("script"),f;e.src=b.s,e.onreadystatechange=e.onload=function(){!f&&ab(e.readyState)&&(f=1,aa(),e.onload=e.onreadystatechange=null)},ad(function(){f||(f=1,aa())},Y.errorTimeout),b.e?e.onload():ae.parentNode.insertBefore(e,ae)}function X(b){var f=K.createElement("link"),g;f.href=b.s,f.rel="stylesheet",f.type="text/css";if(!b.e&&(an||ai)){var h=function(c){ad(function(){if(!g){try{c.sheet.cssRules.length?(g=1,aa()):h(c)}catch(a){a.code==1000||a.message=="security"||a.message=="denied"?(g=1,ad(function(){aa()},0)):h(c)}}},0)};h(f)}else{f.onload=function(){g||(g=1,ad(function(){aa()},0))},b.e&&f.onload()}ad(function(){g||(g=1,aa())},Y.errorTimeout),!b.e&&ae.parentNode.insertBefore(f,ae)}function V(){var b=ag.shift();ah=1,b?b.t?ad(function(){b.t=="c"?X(b):Z(b)},0):(b(),aa()):ah=0}function S(b,g,j,k,m,p){function q(){!t&&ab(s.readyState)&&(u.r=t=1,!ah&&aa(),s.onload=s.onreadystatechange=null,ad(function(){al.removeChild(s)},0))}var s=K.createElement(b),t=0,u={t:j,s:g,e:p};s.src=s.data=g,!aj&&(s.style.display="none"),s.width=s.height="0",b!="object"&&(s.type=j),s.onload=s.onreadystatechange=q,b=="img"?s.onerror=q:b=="script"&&(s.onerror=function(){u.e=u.r=1,V()}),ag.splice(k,0,u),al.insertBefore(s,aj?null:ae),ad(function(){t||(al.removeChild(s),u.r=u.e=t=1,aa())},Y.errorTimeout)}function Q(e,f,g){var h=f=="c"?aq:ap;ah=0,f=f||"j",N(e)?S(h,e,f,this.i++,ac,g):(ag.splice(this.i++,0,e),ag.length==1&&V());return this}function O(){var b=Y;b.loader={load:Q,i:0};return b}var ac=K.documentElement,ad=I.setTimeout,ae=K.getElementsByTagName("script")[0],af={}.toString,ag=[],ah=0,ai="MozAppearance" in ac.style,aj=ai&&!!K.createRange().compareNode,ak=ai&&!aj,al=aj?ac:ae.parentNode,am=I.opera&&af.call(I.opera)=="[object Opera]",an="webkitAppearance" in ac.style,ao=an&&"async" in K.createElement("script"),ap=ai?"object":am||ao?"img":"script",aq=an?"img":ap,J=Array.isArray||function(b){return af.call(b)=="[object Array]"},L=function(b){return Object(b)===b},N=function(b){return typeof b=="string"},P=function(b){return af.call(b)=="[object Function]"},R=[],T={},W,Y;Y=function(c){function k(q){var r=q.split("!"),s=R.length,t=r.pop(),u=r.length,v={url:t,origUrl:t,prefixes:r},w,x;for(x=0;x<u;x++){w=T[r[x]],w&&(v=w(v))}for(x=0;x<s;x++){v=R[x](v)}return v}function j(f,q,r,s,t){var u=k(f),v=u.autoCallback;if(!u.bypass){q&&(q=P(q)?q:q[f]||q[s]||q[f.split("/").pop().split("?")[0]]);if(u.instead){return u.instead(f,q,r,s,t)}r.load(u.url,u.forceCSS||!u.forceJS&&/css$/.test(u.url)?"c":M,u.noexec),(P(q)||P(v))&&r.load(function(){O(),q&&q(u.origUrl,t,s),v&&v(u.origUrl,t,s)})}}function d(e,q){function r(b){if(N(b)){j(b,v,q,0,s)}else{if(L(b)){for(w in b){b.hasOwnProperty(w)&&j(b[w],v,q,w,s)}}}}var s=!!e.test,t=s?e.yep:e.nope,u=e.load||e.both,v=e.callback,w;r(t),r(u),e.complete&&q.load(e.complete)}var l,m,p=this.yepnope.loader;if(N(c)){j(c,0,p,0)}else{if(J(c)){for(l=0;l<c.length;l++){m=c[l],N(m)?j(m,0,p,0):J(m)?Y(m):L(m)&&d(m,p)}}else{L(c)&&d(c,p)}}},Y.addPrefix=function(c,d){T[c]=d},Y.addFilter=function(b){R.push(b)},Y.errorTimeout=10000,K.readyState==null&&K.addEventListener&&(K.readyState="loading",K.addEventListener("DOMContentLoaded",W=function(){K.removeEventListener("DOMContentLoaded",W,0),K.readyState="complete"},0)),I.yepnope=O()}(this,this.document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var c;var a;var b;try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");c=a.GetVariable("$version")}catch(b){}if(!c){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c="WIN 6,0,21,0";a.AllowScriptAccess="always";c=a.GetVariable("$version")}catch(b){}}if(!c){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");c=a.GetVariable("$version")}catch(b){}}if(!c){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");c="WIN 3,0,18,0"}catch(b){}}if(!c){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");c="WIN 2,0,0,11"}catch(b){c=-1}}return c}function GetSwfVer(){var c=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var d=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var b=navigator.plugins["Shockwave Flash"+d].description;var a=b.split(" ");var e=a[2].split(".");var f=e[0];var g=e[1];var h=a[3];if(h==""){h=a[4]}if(h[0]=="d"){h=h.substring(1)}else{if(h[0]=="r"){h=h.substring(1);if(h.indexOf("d")>0){h=h.substring(0,h.indexOf("d"))}}}var c=f+"."+g+"."+h}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){c=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){c=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){c=2}else{if(isIE&&isWin&&!isOpera){c=ControlVersion()}}}}}return c}function DetectFlashVer(a,b,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var d=versionArray[0];var e=versionArray[1];var f=versionArray[2];if(d>parseFloat(a)){return true}else{if(d==parseFloat(a)){if(e>parseFloat(b)){return true}else{if(e==parseFloat(b)){if(f>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(c,d,a){var e="";if(isIE&&isWin&&!isOpera){e+="<object ";for(var b in c){e+=b+'="'+c[b]+'" '}e+=">";for(var b in d){e+='<param name="'+b+'" value="'+d[b]+'" /> '}e+="</object>"}else{e+="<embed ";for(var b in a){e+=b+'="'+a[b]+'" '}e+="> </embed>"}document.write(e)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(a,d,h,b,f){var g=new Object();g.embedAttrs=new Object();g.params=new Object();g.objAttrs=new Object();for(var e=0;e<a.length;e=e+2){var c=a[e].toLowerCase();switch(c){case"classid":break;case"pluginspage":g.embedAttrs[a[e]]=a[e+1];break;case"src":case"movie":a[e+1]=AC_AddExtension(a[e+1],d);g.embedAttrs.src=a[e+1];g.params[h]=a[e+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":g.objAttrs[a[e]]=a[e+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":g.embedAttrs[a[e]]=g.objAttrs[a[e]]=a[e+1];break;default:g.embedAttrs[a[e]]=g.params[a[e]]=a[e+1]}}g.objAttrs.classid=b;if(f){g.embedAttrs.type=f}return g}if(typeof SlideShowProRefs!="object"){SlideShowProRefs={};SlideShowPro=function(f){if(this instanceof SlideShowPro){this.opts={attributes:{width:550,height:400,autoMobile:false,mobileFlash:true,onEmbed:false,onReady:false},mobile:{auto:false,showBackButton:false,showInfoButton:true,flash:false,poster:"default",linkToPlayer:true,sharpening:true},params:{bgcolor:"#000000",allowFullScreen:true,allowscriptaccess:"always"},flashvars:{initialURL:escape(document.location),useExternalInterface:"false",id:f.attributes.id,xmlFileType:"Director"}};if(document.location.host!=""){var c=document.location.host;if(c.indexOf(":")!==-1){c=c.substr(0,c.indexOf(":"))}this.opts.flashvars.allowedDomains=c}this.listeners={};this._autoMobile=false;for(var d in this.opts){for(var e in f[d]){this.opts[d][e]=f[d][e]}}if(this.opts.attributes.autoMobile){this.opts.mobile.auto=true}if(!this.opts.attributes.mobileFlash){this.opts.mobile.flash=false}if(!this.opts.flashvars.paramXMLPath){this.opts.flashvars.loadParams=false}if(this.opts.flashvars.xmlFileType=="Single Content"){this.opts.flashvars.startup="Open album";this.opts.flashvars.panZoom="Off";this.opts.flashvars.navAppearance="Hidden"}this.target=document.getElementById(this.opts.attributes.id);var b=this.target.getElementsByTagName("div");for(var d=0;d<b.length;d++){if(b[d].className=="ssp-mobile-poster"){this.customPoster=b[d];this.target.removeChild(b[d])}}this.fallbackText=this.target.innerHTML;this.target.innerHTML="";this.parseXMLPath(this.opts.flashvars.xmlFilePath);if(!this.opts.attributes.src){this.opts.attributes.src=this.host+"/m/slideshowpro.swf"}this.normPaths();if(this.opts.mobile.auto&&this.isMobile()&&(!this.hasFlash()||!this.opts.mobile.flash)){this._autoMobile=false;var a=this.e("div",{position:"absolute",width:"10000px",height:"10000px",background:"#060606",top:0,left:0,zIndex:1000000});document.body.appendChild(a);window.scrollTo(0,1);this.fallback()}else{if(this.opts.mobile.devMode||(this.isMobile()&&(!this.hasFlash()||!this.opts.mobile.flash))){this.fallback()}else{this.embed()}}SlideShowProRefs[this.opts.attributes.id]=this;return this}else{return new SlideShowPro(f)}};SlideShowPro.prototype.parseXMLPath=function(b){var a=/^(https?:\/\/)?(.*)?\/images.php\?(album|gallery)=(\d+)$/.exec(b);if(a===null){a=/^(https?:\/\/)?(.*)?\/[A-Za-z]+\/album-\d+\/lg\/.*$/.exec(b)}if(a[2]){this.host=a[1]+a[2]}else{this.host=""}this.contentType=a[3];this.contentId=a[4]};SlideShowPro.prototype.formOutlink=function(a){this.outlink=this.host+"/m/?"+this.contentType+"="+a.internal_id+a.id+"&back="+Number(this.opts.mobile.showBackButton)+"&info="+Number(this.opts.mobile.showInfoButton)+"&sharpening="+Number(this.opts.mobile.sharpening);if(this._autoMobile){top.location.replace(this.outlink);return true}return false};SlideShowPro.prototype.normPaths=function(){if(document.location.host==""){this.opts.flashvars.permalinks="Off";return false}String.prototype.cleanWWW=function(){return this.replace("//www.","//")};var d=document.location.protocol+"//"+document.location.host;var e=d.cleanWWW();var c=[this.host,this.opts.attributes.src,this.opts.flashvars.xmlFilePath];if(this.opts.flashvars.paramXMLPath){c.push(this.opts.flashvars.paramXMLPath)}for(var f=0;f<c.length;f++){var b=c[f];var a=b.cleanWWW();if(a.indexOf(e)!==-1){b=a.replace(e,"")}c[f]=b}this.host=c[0];this.opts.attributes.src=c[1];this.opts.flashvars.xmlFilePath=c[2];if(c.length>3){this.opts.flashvars.paramXMLPath=c[3]}};SlideShowPro.prototype.isMobile=function(){return/iPad|iPhone|iPod|Android 2\.\d/.exec(navigator.userAgent)!==null};SlideShowPro.prototype.hasFlash=function(){var a=navigator.plugins;if(a&&a["Shockwave Flash"]&&a["Shockwave Flash"].description){return true}else{return false}};SlideShowPro.prototype.ready=function(){if(typeof this.opts.attributes.onReady=="function"){this.opts.attributes.onReady.call(this)}var evs=["albumData","albumEnd","albumStart","displayMode","galleryClosed","galleryClosing","galleryData","galleryHidden","galleryInfo","galleryOpen","galleryOpening","galleryToggled","imageAlign","imageClick","imageData","imageFormat","imageLoad","imageRollOut","imageRollOver","imageZone","nextImage","nextImageGroup","nextScreen","netStreamStatus","permalink","preloadEnd","preloadInit","preloadProgress","prevImage","prevImageGroup","prevScreen","transEffectStart","transEffectEnd","transPauseStart","transPauseEnd","videoCuePoint","videoEnd","videoMetadata","videoPause","videoPlayRelease","videoPreviewLoad","videoPreviewRemove","videoResume","videoStart","videoXMPData","xmlData"];for(var i in evs){this.api.addEventListener(evs[i],'SlideShowProRefs["'+this.opts.attributes.id+'"].answer')}var fns=["enterFullScreenDisplayState","getAlbumData","getGalleryData","halt","loadAlbum","loadContent","muteMedia","nextGalleryScreen","nextImage","nextImageGroup","pauseMedia","playMedia","previousGalleryScreen","previousImage","previousImageGroup","removeEventListener","setMediaVolume","setSize","setStartAlbum","toggleDisplayMode","toggleGallery","toggleNav","unloadContent","unMuteMedia"];for(var i in fns){var exec="this."+fns[i]+" = function() { var n = '"+fns[i]+"'; var _str = ''; if (arguments.length > 0) { var _a = []; for (i = 0; i < arguments.length; i++) { _a.push(\"'\" + arguments[i] + \"'\"); }; if (n == 'loadAlbum' && _a.length == 1) { _a.push(0); }; _str = _a.join(','); }; eval('this.api."+fns[i]+"(' + _str + ')'); }";eval(exec)}};SlideShowPro.prototype.addEventListener=function(b,a){if(!this.listeners[b]){this.listeners[b]=[]}this.listeners[b].push(a)};SlideShowPro.prototype.embed=function(){var c=this.opts.flashvars||{};var d=this.opts.params||{};var b=this.opts.attributes||{};var e=this;if(typeof flashPutHref!=="function"){flashPutHref=function(a){location.href=a}}swfobjectSSP.embedSWF(b.src,b.id,b.width,b.height,"10.0.0",false,c,d,b,function(a){e.embedCallback(a)})};function onSlideShowProReady(a){SlideShowProRefs[a].ready()}SlideShowPro.prototype.answer=function(b){if(this.listeners[b.name]){for(var a in this.listeners[b.name]){this.listeners[b.name][a].apply(this,[b])}}};SlideShowPro.prototype.embedCallback=function(a){if(a.success){this.api=a.ref}else{if(this.isMobile()){this.fallback()}else{this.target.innerHTML=this.fallbackText}}if(this.opts.attributes.onEmbed){this.opts.attributes.onEmbed.apply(this,[a.success])}return a.success};SlideShowPro.prototype.videoFallback=function(){var b={mov:"video/quicktime",mp4:"video/mp4",m4v:"video/x-m4v"};var c=this.opts.flashvars.xmlFilePath;var a=c.substr(c.lastIndexOf(".")+1,c.length);if(b[a]){var d=document.createElement("video");if(typeof(d.canPlayType)!==undefined&&d.canPlayType(b[a])!=""){d.width=this.opts.attributes.width;d.height=this.opts.attributes.height;d.controls=true;d.autoplay=true;d.src=c;this.target.appendChild(d);return}}this.target.innerHTML=this.fallbackText};SlideShowPro.prototype.e=function(b,e,d){if(typeof b=="string"){b=document.createElement(b);b.style.fontWeight="normal";b.style.textTransform="none";b.style.textAlign="left";b.style.styleFloat="none";b.style.cssFloat="none";b.style.lineHeight="1em";var f=["margin","padding","border"];for(var c=0;c<f.length;c++){b.style[f[c]]="0px"}var a=["top","left","right","bottom"];for(var c=0;c<a.length;c++){b.style[a[c]]="auto"}}for(var c in e){b.style[c]=e[c]}b.style.zoom=1;if(d){b.className=d}return b};SlideShowPro.prototype.computeStyle=function(a,b){if(b=="width"){return a.offsetWidth}else{if(b=="height"){return a.offsetHeight}else{if(a.currentStyle){return a.currentStyle[b]}else{if(window.getComputedStyle){return document.defaultView.getComputedStyle(a,null).getPropertyValue(b)}else{return false}}}}};SlideShowPro.prototype.fallback=function(){if(this.opts.flashvars.xmlFileType=="Single Content"){this.videoFallback();return}if(this.opts.mobile.xmlFilePath){this.parseXMLPath(this.opts.mobile.xmlFilePath)}var j=this.opts.attributes.width;var f=this.opts.attributes.height;var d=true,c=true;if(!isNaN(j)){j+="px";d=false}if(!isNaN(f)){f+="px";c=false}var e={position:"relative",width:j,height:f,backgroundColor:this.opts.params.bgcolor,overflow:"hidden"};if(this.opts.mobile.linkToPlayer){e.cursor="pointer"}this.e(this.target,e);var b,a;if(d){b=parseInt(this.computeStyle(this.target,"width"),10)}else{b=this.opts.attributes.width}if(c){a=parseInt(this.computeStyle(this.target,"height"))}else{a=this.opts.attributes.height}this.realH=a;this.realW=b;var g=this;if(this.opts.mobile.linkToPlayer){this.target.onclick=function(){if(g.bttn){g.e(g.bttn,{background:"#333"})}top.location.href=g.outlink}}DirectorJS.setHost(this.host);if(this.contentType=="album"){DirectorJS.Format.preview({width:100,height:100,square:1});DirectorJS.Album.get(this.contentId,function(h){g.startDraw(h)},{with_content:false})}else{DirectorJS.Gallery.get(this.contentId,function(h){g.startDraw(h)},{with_content:false})}};SlideShowPro.prototype.startDraw=function(b){if(this.formOutlink(b)){return}if(!b.description){b.description=""}if(this.customPoster){this.e(this.customPoster,{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%"});var a=this.customPoster.innerHTML.replace("{{title}}",b.name).replace("{{description}}",b.description).replace("{{mobile_link}}",this.outlink);this.customPoster.innerHTML=a;this.target.appendChild(this.customPoster)}else{var d=this.host+"/m/posters/"+this.opts.mobile.poster+".js";var c=document.createElement("script");c.src=d;var e=this;c.onload=function(){e.drawPoster(b)};document.body.appendChild(c)}};var DirectorJS={req:[],userScope:{},formats:{},selfHosted:true,setHost:function(a){this.host=a;if(this.selfHosted){this.host+="/index.php?"}},initReq:function(b){var a=b+Math.floor(Math.random()*1000);this.req[a]=new Object;this.req[a].params=[];return this.req[a]},conn:function(e){if(e){var b=e.apiMethod+Math.floor(Math.random()*10000);e.params.push("callback="+b);for(i in this.formats){var a=this.formats[i];e.params.push("size["+i+"]="+a)}if(this.previewFormat){e.params.push("preview="+this.previewFormat)}e.params=e.params.join("&");var d="?"+e.params;var h=this.host+"/api/"+e.apiMethod+d;var c=document.getElementsByTagName("head")[0];window[b]=function(f){if(f.stat=="fail"){if(console){console.log("SlideShowPro API error: "+f.error)}return}else{e.callback.apply(this,[f.data])}window[b]=null;c.removeChild(g)};var g=document.createElement("script");g.src=h;c.appendChild(g)}},Format:{add:function(b){var a={square:0,quality:85,sharpening:1};for(i in b){a[i]=b[i]}DirectorJS.formats[b.name]=[a.name,a.width,a.height,a.square,a.quality,a.sharpening].join(",")},preview:function(b){var a={square:0,quality:85,sharpening:1};for(i in b){a[i]=b[i]}DirectorJS.previewFormat=[a.width,a.height,a.square,a.quality,a.sharpening].join(",")}},Album:{get:function(c,a,d){var e=DirectorJS.initReq("album.get.");var b={only_active:1};DirectorJS.prepAndSendObjs(b,d,e);e.apiMethod="get_album";e.callback=a;e.params.push("album_id="+c);DirectorJS.conn(e)}},Gallery:{get:function(c,a,d){var e=DirectorJS.initReq("gallery.get.");var b={limit:null,order:"display",with_content:true};DirectorJS.prepAndSendObjs(b,d,e);e.apiMethod="get_gallery";e.callback=a;e.params.push("gallery_id="+c);DirectorJS.conn(e)}},prepAndSendObjs:function(b,c,d){if(typeof c=="object"){if(typeof c.tags=="object"){var h={};var g=c.tags[0];if(c.tags[1]=="all"){var a=1}else{var a=0}c.tags=g;c.tags_exclusive=a}if(typeof c.scope=="object"){var h={};var e=c.scope[0];var f=c.scope[1];c.scope=e;c.scope_id=f}for(i in c){b[i]=c[i]}}for(i in b){if(i=="sort_on"&&b[i]=="random"){d.params.push("buster="+String(Math.round(Math.random()*10)))}if(String(b[i])=="true"||String(b[i])=="false"){b[i]=Number(b[i])}d.params.push(i+"="+b[i])}}};SlideShowPro.prototype.drawPreview=function(j,g,m){m=m||0;var l=this;if(this.contentType=="album"){DirectorJS.Format.preview({width:Number(this.realW),height:Number(j),square:1});DirectorJS.Album.get(this.contentId,function(c){var p=l.realW,h=0;if(c.preview.width<l.realW){p=c.preview.width;h=(l.realW-p)/2}if(c.preview.height<j){m+=(j-c.preview.height)/2;j=c.preview.height}var d=l.e("img",{width:p+"px",height:j+"px",position:"absolute",top:m+"px",left:h+"px",zIndex:1,opacity:0,webkitTransition:"opacity 750ms 500ms"});d.onload=function(){l.e(this,{opacity:1})};l.target.appendChild(d);d.src=c.preview.url},{with_content:false})}else{var e=g.albums.length;var f=4;if(e<4){f=e}else{if(e%4==1){f=3}}var b=l.realW;var a=l.realH;var k=Math.min(Math.ceil(e/f),Math.floor(a/(b/f)));k=Math.max(k,1);this.galleryH=Math.ceil(j/k);this.galleryW=Math.ceil(b/f);DirectorJS.Format.preview({width:l.galleryW,height:l.galleryH,square:1});DirectorJS.Gallery.get(this.contentId,function(d){var s=l.e("div",{position:"absolute",top:"0px",left:"0px",height:j+"px",width:"100%"});l.target.appendChild(s);var r=0,q=0;for(i in d.albums){var c=d.albums[i];if(c.preview){var p=q*l.galleryW;if(p>=l.realW){p=0;r++;q=0}var h=l.e("img",{position:"absolute",top:m+(r*l.galleryH)+"px",left:p+"px",width:l.galleryW+"px",height:l.galleryH+"px",opacity:0,webkitTransition:"opacity 750ms 500ms"});h.onload=function(){l.e(this,{opacity:1})};s.appendChild(h);h.src=c.preview.url;q++}}},{with_content:false,limit:f*k})}};swfobjectSSP=function(){var ae="undefined",aG="object",aJ="Shockwave Flash",aR="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",aH="SWFObjectExprInst",aS="onreadystatechange",aB=window,ap=document,aK=navigator,aL=false,aN=[al],aA=[],az=[],ao=[],au,aF,ag,aa,aq=false,X=false,ay,ak,aw=true,ax=function(){var a=typeof ap.getElementById!=ae&&typeof ap.getElementsByTagName!=ae&&typeof ap.createElement!=ae,h=aK.userAgent.toLowerCase(),k=aK.platform.toLowerCase(),e=k?/win/.test(k):/win/.test(h),c=k?/mac/.test(k):/mac/.test(h),f=/webkit/.test(h)?parseFloat(h.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,j=!+"\v1",g=[0,0,0],b=null;if(typeof aK.plugins!=ae&&typeof aK.plugins[aJ]==aG){b=aK.plugins[aJ].description;if(b&&!(typeof aK.mimeTypes!=ae&&aK.mimeTypes[aE]&&!aK.mimeTypes[aE].enabledPlugin)){aL=true;j=false;b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");g[0]=parseInt(b.replace(/^(.*)\..*$/,"$1"),10);g[1]=parseInt(b.replace(/^.*\.(.*)\s.*$/,"$1"),10);g[2]=/[a-zA-Z]/.test(b)?parseInt(b.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof aB.ActiveXObject!=ae){try{var d=new ActiveXObject(aR);if(d){b=d.GetVariable("$version");if(b){j=true;b=b.split(" ")[1].split(",");g=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)]}}}catch(l){}}}return{w3:a,pv:g,wk:f,ie:j,win:e,mac:c}}(),ar=function(){if(!ax.w3){return}if((typeof ap.readyState!=ae&&ap.readyState=="complete")||(typeof ap.readyState==ae&&(ap.getElementsByTagName("body")[0]||ap.body))){ah()}if(!aq){if(typeof ap.addEventListener!=ae){ap.addEventListener("DOMContentLoaded",ah,false)}if(ax.ie&&ax.win){ap.attachEvent(aS,function(){if(ap.readyState=="complete"){ap.detachEvent(aS,arguments.callee);ah()}});if(aB==top){(function(){if(aq){return}try{ap.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}ah()})()}}if(ax.wk){(function(){if(aq){return}if(!/loaded|complete/.test(ap.readyState)){setTimeout(arguments.callee,0);return}ah()})()}aI(ah)}}();function ah(){if(aq){return}try{var d=ap.getElementsByTagName("body")[0].appendChild(ac("span"));d.parentNode.removeChild(d)}catch(a){return}aq=true;var b=aN.length;for(var c=0;c<b;c++){aN[c]()}}function at(a){if(aq){a()}else{aN[aN.length]=a}}function aI(b){if(typeof aB.addEventListener!=ae){aB.addEventListener("load",b,false)}else{if(typeof ap.addEventListener!=ae){ap.addEventListener("load",b,false)}else{if(typeof aB.attachEvent!=ae){an(aB,"onload",b)}else{if(typeof aB.onload=="function"){var a=aB.onload;aB.onload=function(){a();b()}}else{aB.onload=b}}}}}function al(){if(aL){aP()}else{am()}}function aP(){var b=ap.getElementsByTagName("body")[0];var a=ac(aG);a.setAttribute("type",aE);var d=b.appendChild(a);if(d){var c=0;(function(){if(typeof d.GetVariable!=ae){var e=d.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ax.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}b.removeChild(a);d=null;am()})()}else{am()}}function am(){var g=aA.length;if(g>0){for(var f=0;f<g;f++){var l=aA[f].id;var b=aA[f].callbackFn;var a={success:false,id:l};if(ax.pv[0]>0){var e=ab(l);if(e){if(ai(aA[f].swfVersion)&&!(ax.wk&&ax.wk<312)){aQ(l,true);if(b){a.success=true;a.ref=aU(l);b(a)}}else{if(aA[f].expressInstall&&Y()){var j={};j.data=aA[f].expressInstall;j.width=e.getAttribute("width")||"0";j.height=e.getAttribute("height")||"0";if(e.getAttribute("class")){j.styleclass=e.getAttribute("class")}if(e.getAttribute("align")){j.align=e.getAttribute("align")}var h={};var k=e.getElementsByTagName("param");var c=k.length;for(var d=0;d<c;d++){if(k[d].getAttribute("name").toLowerCase()!="movie"){h[k[d].getAttribute("name")]=k[d].getAttribute("value")}}aD(j,h,l,b)}else{aC(e);if(b){b(a)}}}}}else{aQ(l,true);if(b){var m=aU(l);if(m&&typeof m.SetVariable!=ae){a.success=true;a.ref=m}b(a)}}}}}function aU(a){var b=null;var c=ab(a);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=ae){b=c}else{var d=c.getElementsByTagName(aG)[0];if(d){b=d}}}return b}function Y(){return !X&&ai("6.0.65")&&(ax.win||ax.mac)&&!(ax.wk&&ax.wk<312)}function aD(a,b,f,h){X=true;ag=h||null;aa={success:false,id:f};var e=ab(f);if(e){if(e.nodeName=="OBJECT"){au=aj(e);aF=null}else{au=e;aF=f}a.id=aH;if(typeof a.width==ae||(!/%$/.test(a.width)&&parseInt(a.width,10)<310)){a.width="310"}if(typeof a.height==ae||(!/%$/.test(a.height)&&parseInt(a.height,10)<137)){a.height="137"}ap.title=ap.title.slice(0,47)+" - Flash Player Installation";var d=ax.ie&&ax.win?"ActiveX":"PlugIn",c="MMredirectURL="+aB.location.toString().replace(/&/g,"%26")+"&MMplayerType="+d+"&MMdoctitle="+ap.title;if(typeof b.flashvars!=ae){b.flashvars+="&"+c}else{b.flashvars=c}if(ax.ie&&ax.win&&e.readyState!=4){var g=ac("div");f+="SWFObjectNew";g.setAttribute("id",f);e.parentNode.insertBefore(g,e);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e)}else{setTimeout(arguments.callee,10)}})()}aM(a,b,f)}}function aC(b){if(ax.ie&&ax.win&&b.readyState!=4){var a=ac("div");b.parentNode.insertBefore(a,b);a.parentNode.replaceChild(aj(b),a);b.style.display="none";(function(){if(b.readyState==4){b.parentNode.removeChild(b)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.replaceChild(aj(b),b)}}function aj(b){var a=ac("div");if(ax.win&&ax.ie){a.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aG)[0];if(e){var c=e.childNodes;if(c){var d=c.length;for(var f=0;f<d;f++){if(!(c[f].nodeType==1&&c[f].nodeName=="PARAM")&&!(c[f].nodeType==8)){a.appendChild(c[f].cloneNode(true))}}}}}return a}function aM(j,g,l){var k,a=ab(l);if(ax.wk&&ax.wk<312){return k}if(a){if(typeof j.id==ae){j.id=l}if(ax.ie&&ax.win){var h="";for(var e in j){if(j[e]!=Object.prototype[e]){if(e.toLowerCase()=="data"){g.movie=j[e]}else{if(e.toLowerCase()=="styleclass"){h+=' class="'+j[e]+'"'}else{if(e.toLowerCase()!="classid"){h+=" "+e+'="'+j[e]+'"'}}}}}var f="";for(var d in g){if(g[d]!=Object.prototype[d]){f+='<param name="'+d+'" value="'+g[d]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+h+">"+f+"</object>";az[az.length]=j.id;k=ab(j.id)}else{var m=ac(aG);m.setAttribute("type",aE);for(var c in j){if(j[c]!=Object.prototype[c]){if(c.toLowerCase()=="styleclass"){m.setAttribute("class",j[c])}else{if(c.toLowerCase()!="classid"){m.setAttribute(c,j[c])}}}}for(var b in g){if(g[b]!=Object.prototype[b]&&b.toLowerCase()!="movie"){af(m,b,g[b])}}a.parentNode.replaceChild(m,a);k=m}}return k}function af(d,b,c){var a=ac("param");a.setAttribute("name",b);a.setAttribute("value",c);d.appendChild(a)}function aT(b){var a=ab(b);if(a&&a.nodeName=="OBJECT"){if(ax.ie&&ax.win){a.style.display="none";(function(){if(a.readyState==4){Z(b)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.removeChild(a)}}}function Z(c){var b=ab(c);if(b){for(var a in b){if(typeof b[a]=="function"){b[a]=null}}b.parentNode.removeChild(b)}}function ab(c){var a=null;try{a=ap.getElementById(c)}catch(b){}return a}function ac(a){return ap.createElement(a)}function an(c,a,b){c.attachEvent(a,b);ao[ao.length]=[c,a,b]}function ai(c){var b=ax.pv,a=c.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return(b[0]>a[0]||(b[0]==a[0]&&b[1]>a[1])||(b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]))?true:false}function aO(c,f,d,b){if(ax.ie&&ax.mac){return}var a=ap.getElementsByTagName("head")[0];if(!a){return}var e=(d&&typeof d=="string")?d:"screen";if(b){ay=null;ak=null}if(!ay||ak!=e){var g=ac("style");g.setAttribute("type","text/css");g.setAttribute("media",e);ay=a.appendChild(g);if(ax.ie&&ax.win&&typeof ap.styleSheets!=ae&&ap.styleSheets.length>0){ay=ap.styleSheets[ap.styleSheets.length-1]}ak=e}if(ax.ie&&ax.win){if(ay&&typeof ay.addRule==aG){ay.addRule(c,f)}}else{if(ay&&typeof ap.createTextNode!=ae){ay.appendChild(ap.createTextNode(c+" {"+f+"}"))}}}function aQ(c,a){if(!aw){return}var b=a?"visible":"hidden";if(aq&&ab(c)){ab(c).style.visibility=b}else{aO("#"+c,"visibility:"+b)}}function av(b){var c=/[\\\"<>\.;]/;var a=c.exec(b)!=null;return a&&typeof encodeURIComponent!=ae?encodeURIComponent(b):b}var ad=function(){if(ax.ie&&ax.win){window.attachEvent("onunload",function(){var c=ao.length;for(var b=0;b<c;b++){ao[b][0].detachEvent(ao[b][1],ao[b][2])}var f=az.length;for(var a=0;a<f;a++){aT(az[a])}for(var e in ax){ax[e]=null}ax=null;for(var d in swfobjectSSP){swfobjectSSP[d]=null}swfobjectSSP=null})}}();return{registerObject:function(b,c,a,e){if(ax.w3&&b&&c){var d={};d.id=b;d.swfVersion=c;d.expressInstall=a;d.callbackFn=e;aA[aA.length]=d;aQ(b,false)}else{if(e){e({success:false,id:b})}}},getObjectById:function(a){if(ax.w3){return aU(a)}},embedSWF:function(b,h,e,g,k,a,l,d,f,c){var j={success:false,id:h};if(ax.w3&&!(ax.wk&&ax.wk<312)&&b&&h&&e&&g&&k){aQ(h,false);at(function(){e+="";g+="";var p={};if(f&&typeof f===aG){for(var r in f){p[r]=f[r]}}p.data=b;p.width=e;p.height=g;var s={};if(d&&typeof d===aG){for(var q in d){s[q]=d[q]}}if(l&&typeof l===aG){for(var m in l){if(typeof s.flashvars!=ae){s.flashvars+="&"+m+"="+l[m]}else{s.flashvars=m+"="+l[m]}}}if(ai(k)){var t=aM(p,s,h);if(p.id==h){aQ(h,true)}j.success=true;j.ref=t}else{if(a&&Y()){p.data=a;aD(p,s,h,c);return}else{aQ(h,true)}}if(c){c(j)}})}else{if(c){c(j)}}},switchOffAutoHideShow:function(){aw=false},ua:ax,getFlashPlayerVersion:function(){return{major:ax.pv[0],minor:ax.pv[1],release:ax.pv[2]}},hasFlashPlayerVersion:ai,createSWF:function(c,b,a){if(ax.w3){return aM(c,b,a)}else{return undefined}},showExpressInstall:function(d,a,b,c){if(ax.w3&&Y()){aD(d,a,b,c)}},removeSWF:function(a){if(ax.w3){aT(a)}},createCSS:function(a,d,c,b){if(ax.w3){aO(a,d,c,b)}},addDomLoadEvent:at,addLoadEvent:aI,getQueryParamValue:function(a){var d=ap.location.search||ap.location.hash;if(d){if(/\?/.test(d)){d=d.split("?")[1]}if(a==null){return av(d)}var c=d.split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==a){return av(c[b].substring((c[b].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(X){var a=ab(aH);if(a&&au){a.parentNode.replaceChild(au,a);if(aF){aQ(aF,true);if(ax.ie&&ax.win){au.style.display="block"}}if(ag){ag(aa)}}X=false}}}}()}var requiredMajorVersion=9;var requiredMinorVersion=0;var requiredRevision=45;var $tn3;function DisplaySlideShow(m,d,e,g,c,f,l,h,j,k){var a=h.charAt(h.length-1);var b=DetectFlashVer(requiredMajorVersion,requiredMinorVersion,requiredRevision);if(b&&mode!="jquery"){SlideShowPro({attributes:{id:h,width:m,height:d},mobile:{auto:false,poster:"crystal",flash:true,linkToPlayer:false},params:{bgcolor:"#000000",allowfullscreen:true},flashvars:{contentAreaBackgroundColor:"#000000",navLinkPreviewSize:"120,120",directorThumbQuality:"80",directorLargeQuality:"100",directorLargeSharpening:"0",directorThumbSharpening:"0",xmlFilePath:"http://dir.acecomputerservices.co.uk/images.php?album="+a,navBackgroundColor:"#000000",feedbackTimerAppearance:"Hidden",galleryAppearance:"Hidden",galleryBackgroundColor:"#000000",mediaPlayerBackgroundColor:"#000000",navLinksBackgroundColor:"#000000",directorLargePublishing:"Full Screen",navThumbLinkBackgroundColor:"#000000",contentFrameColor:"#000000",contentAreaStrokeColor:"#000000",navThumbLinkSize:"40,40",navButtonsAppearance:g?"Hide Gallery Control":"Hidden",transitionLength:j,transitionPause:k,cacheContent:"All",navGradientAppearance:"Hidden",navAppearance:g?"Always Visible":"Hidden",contentScale:c?"Crop to Fit":"Downscale Only",contentOrder:f?"Random":"Sequential",panZoom:e?"On":"Off",transitionStyle:l,panZoomScale:"1,1.2",panZoomDirection:"Out",contentAreaAction:"Toggle Full Screen"}})}else{if(mode!="flash"){DisplayJSlideShowTn3(CalcJsGalleryWidth(),CalcJsGalleryHeight(),a,h,e);$(window).resize(function(){$tn3.resize(CalcJsGalleryWidth(),CalcJsGalleryHeight())})}}}function CalcJsGalleryWidth(){return $("#main").width()}function CalcJsGalleryHeight(){return $("#main").height()}$(document).ready(function(){$("#menu li a").each(function(){if(window.location.href.toLowerCase().indexOf(this.href.toLowerCase())>-1){$(this).addClass("selectedLink")}});$("div.pager a").click(function(){$("div.pager a").attr("disabled",true);var b=$("div.displaysection:visible");var a=$("div.displaysection:hidden");b.queue(function(){b.fadeToggle(2000);$(this).dequeue()});b.queue(function(){a.fadeToggle("fast");$("div.pager a").attr("disabled",false);$(this).dequeue()})})});function IsPortrait(){return(window.innerWidth<=window.innerHeight)}function DisplayJSlideShowTn3(e,b,a,d,c){$tn3=$(".mygallery").tn3({skinDir:rootUrl+"content/skins",width:e,autoplay:c?false:true,iniImage:c?2:0,skin:c?"tn3-nothumb":"tn3",height:b-5,mouseWheel:false,image:{maxZoom:1.5,crop:c?false:false,clickEvent:"dblclick",transitions:[{type:"none"}]},thumbnailer:{},external:[{origin:"xml",url:rootUrl+"XmlData.axd?xt=tn3&albumId="+a+"&w="+1000+"&h="+1000}]}).data("tn3")}function DisplayJSlideShow(e,c,b,d){var f=(b=="9");var h;var g;if(IsPortrait()){h=screen.height;g=screen.width}else{h=screen.width;g=screen.height}var a;try{$.slideshowBoxEmbedCanvas.init({appendToID:d,domainKeys:"",source:rootUrl+"XmlData.axd?albumId="+b+"&w="+h+"&h="+g,audioFile:"",audioFileAlt:"",audioPlayerIcon:"speaker",audioPlayerColor:"#FFFFFF",loopAudio:true,audioPlayMode:"synchronizeWithSlideshow",audioPlayerOn:"",audioPlayerOff:"",fontName:"",fontSize:10,bold:false,italic:false,textTopOffset:0,width:e,height:c,autoSlideShow:true,slideShowSpeed:5,backgroundVisible:true,backgroundColor:"#000000",backgroundImage:"",scaleBackground:true,loadOriginalImages:false,autoHideControls:false,controlsHideSpeed:2,controlBarAlpha:1,controlBarPrimaryColor:"#000000",controlBarSecondaryColor:"#CCCCCC",slideShowControls:f?false:true,fullScreenButton:f?false:true,thumbWidth:f?0:50,thumbHeight:f?0:50,showImageIndex:false,showImageInfos:false,scaleMode:"scale",preloaderPosition:"centered",textColor:"#FFFFFF",textBackgroundAlpha:0.5,textBackgroundColor:"#000000"})}catch(a){}}window._gaq=[["_setAccount","UA-5835154-2"],["_trackPageview"],["_trackPageLoadTime"]];Modernizr.load({load:("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js"});
