(function(a,b){function c(i){return d.isWindow(i)?i:i.nodeType===9?i.defaultView||i.parentWindow:!1}function e(i){if(!Ca[i]){var a=o.body,b=d("<"+i+">").appendTo(a),n=b.css("display");b.remove();if(n==="none"||n===""){la||(la=o.createElement("iframe"),la.frameBorder=la.width=la.height=0);a.appendChild(la);if(!ra||!la.createElement)ra=(la.contentWindow||la.contentDocument).document,ra.write((o.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ra.close();b=ra.createElement(i);ra.body.appendChild(b);
n=d.css(b,"display");a.removeChild(la)}Ca[i]=n}return Ca[i]}function f(i,a){var b={};d.each(Ia.concat.apply([],Ia.slice(0,a)),function(){b[this]=i});return b}function g(){ya=b}function l(){setTimeout(g,0);return ya=d.now()}function m(){try{return new a.XMLHttpRequest}catch(i){}}function t(i,a,b,n){if(d.isArray(a))d.each(a,function(a,h){b||$a.test(i)?n(i,h):t(i+"["+(typeof h=="object"||d.isArray(h)?a:"")+"]",h,b,n)});else if(!b&&a!=null&&typeof a=="object")for(var c in a)t(i+"["+c+"]",a[c],b,n);else n(i,
a)}function s(i,a){var p,n,c=d.ajaxSettings.flatOptions||{};for(p in a)a[p]!==b&&((c[p]?i:n||(n={}))[p]=a[p]);n&&d.extend(!0,i,n)}function y(i,a,d,n,c,e){c=c||a.dataTypes[0];e=e||{};e[c]=!0;for(var c=i[c],f=0,g=c?c.length:0,k=i===Da,j;f<g&&(k||!j);f++)j=c[f](a,d,n),typeof j=="string"&&(!k||e[j]?j=b:(a.dataTypes.unshift(j),j=y(i,a,d,n,j,e)));(k||!j)&&!e["*"]&&(j=y(i,a,d,n,"*",e));return j}function u(i){return function(a,b){var h;typeof a!="string"&&(b=a,a="*");if(d.isFunction(b))for(var n=a.toLowerCase().split(Ka),
c=0,e=n.length,f,g;c<e;c++)f=n[c],(g=/^\+/.test(f))&&(f=f.substr(1)||"*"),h=i[f]=i[f]||[],f=h,f[g?"unshift":"push"](b)}}function H(i,a,b){var n=a==="width"?i.offsetWidth:i.offsetHeight,c=a==="width"?ab:bb;if(n>0)return b!=="border"&&d.each(c,function(){b||(n-=parseFloat(d.css(i,"padding"+this))||0);b==="margin"?n+=parseFloat(d.css(i,b+this))||0:n-=parseFloat(d.css(i,"border"+this+"Width"))||0}),n+"px";n=sa(i,a,a);if(n<0||n==null)n=i.style[a]||0;n=parseFloat(n)||0;b&&d.each(c,function(){n+=parseFloat(d.css(i,
"padding"+this))||0;b!=="padding"&&(n+=parseFloat(d.css(i,"border"+this+"Width"))||0);b==="margin"&&(n+=parseFloat(d.css(i,b+this))||0)});return n+"px"}function w(i,a){a.src?d.ajax({url:a.src,async:!1,dataType:"script"}):d.globalEval((a.text||a.textContent||a.innerHTML||"").replace(cb,"/*$0*/"));a.parentNode&&a.parentNode.removeChild(a)}function v(i){d.nodeName(i,"input")?ba(i):"getElementsByTagName"in i&&d.grep(i.getElementsByTagName("input"),ba)}function ba(i){if(i.type==="checkbox"||i.type==="radio")i.defaultChecked=
i.checked}function J(i){return"getElementsByTagName"in i?i.getElementsByTagName("*"):"querySelectorAll"in i?i.querySelectorAll("*"):[]}function O(i,a){var b;if(a.nodeType===1){a.clearAttributes&&a.clearAttributes();a.mergeAttributes&&a.mergeAttributes(i);b=a.nodeName.toLowerCase();if(b==="object")a.outerHTML=i.outerHTML;else if(b!=="input"||i.type!=="checkbox"&&i.type!=="radio")if(b==="option")a.selected=i.defaultSelected;else{if(b==="input"||b==="textarea")a.defaultValue=i.defaultValue}else i.checked&&
(a.defaultChecked=a.checked=i.checked),a.value!==i.value&&(a.value=i.value);a.removeAttribute(d.expando)}}function Z(a,h){if(h.nodeType===1&&d.hasData(a)){var b=d.expando,n=d.data(a),c=d.data(h,n);if(n=n[b]){var e=n.events,c=c[b]=d.extend({},n);if(e){delete c.handle;c.events={};for(var f in e){b=0;for(n=e[f].length;b<n;b++)d.event.add(h,f+(e[f][b].namespace?".":"")+e[f][b].namespace,e[f][b],e[f][b].data)}}}}}function U(a,h,b){h=h||0;if(d.isFunction(h))return d.grep(a,function(a,i){return!!h.call(a,
i,a)===b});if(h.nodeType)return d.grep(a,function(a){return a===h===b});if(typeof h=="string"){var n=d.grep(a,function(a){return a.nodeType===1});if(ta.test(h))return d.filter(h,n,!b);h=d.filter(h,n)}return d.grep(a,function(a){return d.inArray(a,h)>=0===b})}function fa(a,h){return(a&&a!=="*"?a+".":"")+h.replace(ja,"`").replace(ha,"&")}function K(a){var h,b,n,c,e,f,g,k,j,l,m,q=[];c=[];e=d._data(this,"events");if(!(a.liveFired===this||!e||!e.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&
(m=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var r=e.live.slice(0);for(g=0;g<r.length;g++)e=r[g],e.origType.replace(L,"")===a.type?c.push(e.selector):r.splice(g--,1);c=d(a.target).closest(c,a.currentTarget);k=0;for(j=c.length;k<j;k++){l=c[k];for(g=0;g<r.length;g++)if(e=r[g],l.selector===e.selector&&(!m||m.test(e.namespace))&&!l.elem.disabled){f=l.elem;n=null;if(e.preType==="mouseenter"||e.preType==="mouseleave")a.type=e.preType,(n=d(a.relatedTarget).closest(e.selector)[0])&&
d.contains(f,n)&&(n=f);(!n||n!==f)&&q.push({elem:f,handleObj:e,level:l.level})}}k=0;for(j=q.length;k<j;k++){c=q[k];if(b&&c.level>b)break;a.currentTarget=c.elem;a.data=c.handleObj.data;a.handleObj=c.handleObj;m=c.handleObj.origHandler.apply(c.elem,arguments);if(m===!1||a.isPropagationStopped())if(b=c.level,m===!1&&(h=!1),a.isImmediatePropagationStopped())break}return h}}function V(a,h,p){var n=d.extend({},p[0]);n.type=a;n.originalEvent={};n.liveFired=b;d.event.handle.call(h,n);n.isDefaultPrevented()&&
p[0].preventDefault()}function X(){return!0}function aa(){return!1}function A(a,h,p){var n=h+"defer",c=h+"queue",e=h+"mark",f=d.data(a,n,b,!0);f&&(p==="queue"||!d.data(a,c,b,!0))&&(p==="mark"||!d.data(a,e,b,!0))&&setTimeout(function(){!d.data(a,c,b,!0)&&!d.data(a,e,b,!0)&&(d.removeData(a,n,!0),f.resolve())},0)}function S(a){for(var h in a)if(h!=="toJSON")return!1;return!0}function M(a,h,p){if(p===b&&a.nodeType===1)if(p="data-"+h.replace(E,"-$1").toLowerCase(),p=a.getAttribute(p),typeof p=="string"){try{p=
p==="true"?!0:p==="false"?!1:p==="null"?null:d.isNaN(p)?q.test(p)?d.parseJSON(p):p:parseFloat(p)}catch(n){}d.data(a,h,p)}else p=b;return p}var o=a.document,z=a.navigator,T=a.location,d=function(){function i(){if(!h.isReady){try{o.documentElement.doScroll("left")}catch(a){setTimeout(i,1);return}h.ready()}}var h=function(a,i){return new h.fn.init(a,i,c)},d=a.jQuery,n=a.$,c,e=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,f=/\S/,g=/^\s+/,k=/\s+$/,j=/\d/,l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,r=
/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,E=/(?:^|:|,)(?:\s*\[)+/g,D=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,F=/(msie) ([\w.]+)/,W=/(mozilla)(?:.*? rv:([\w.]+))?/,db=/-([a-z]|[0-9])/ig,eb=/^-ms-/,fb=function(a,i){return(i+"").toUpperCase()},xa=z.userAgent,za,ua,u=Object.prototype.toString,t=Object.prototype.hasOwnProperty,C=Array.prototype.push,x=Array.prototype.slice,y=String.prototype.trim,na=Array.prototype.indexOf,
v={};h.fn=h.prototype={constructor:h,init:function(a,i,d){var p,n;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!i&&o.body)return this.context=o,this[0]=o.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?p=e.exec(a):p=[null,a,null];if(p&&(p[1]||!i)){if(p[1])return n=(i=i instanceof h?i[0]:i)?i.ownerDocument||i:o,(d=l.exec(a))?h.isPlainObject(i)?(a=[o.createElement(d[1])],h.fn.attr.call(a,
i,!0)):a=[n.createElement(d[1])]:(d=h.buildFragment([p[1]],[n]),a=(d.cacheable?h.clone(d.fragment):d.fragment).childNodes),h.merge(this,a);if((i=o.getElementById(p[2]))&&i.parentNode){if(i.id!==p[2])return d.find(a);this.length=1;this[0]=i}this.context=o;this.selector=a;return this}return!i||i.jquery?(i||d).find(a):this.constructor(i).find(a)}if(h.isFunction(a))return d.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return h.makeArray(a,this)},selector:"",jquery:"1.6.4",
length:0,size:function(){return this.length},toArray:function(){return x.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,i,d){var b=this.constructor();h.isArray(a)?C.apply(b,a):h.merge(b,a);b.prevObject=this;b.context=this.context;i==="find"?b.selector=this.selector+(this.selector?" ":"")+d:i&&(b.selector=this.selector+"."+i+"("+d+")");return b},each:function(a,i){return h.each(this,a,i)},ready:function(a){h.bindReady();za.done(a);
return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(x.apply(this,arguments),"slice",x.call(arguments).join(","))},map:function(a){return this.pushStack(h.map(this,function(i,h){return a.call(i,h,i)}))},end:function(){return this.prevObject||this.constructor(null)},push:C,sort:[].sort,splice:[].splice};h.fn.init.prototype=h.fn;h.extend=h.fn.extend=function(){var a,
i,d,p,n,c,e=arguments[0]||{},P=1,f=arguments.length,g=!1;typeof e=="boolean"&&(g=e,e=arguments[1]||{},P=2);typeof e!="object"&&!h.isFunction(e)&&(e={});for(f===P&&(e=this,--P);P<f;P++)if((a=arguments[P])!=null)for(i in a)d=e[i],p=a[i],e!==p&&(g&&p&&(h.isPlainObject(p)||(n=h.isArray(p)))?(n?(n=!1,c=d&&h.isArray(d)?d:[]):c=d&&h.isPlainObject(d)?d:{},e[i]=h.extend(g,c,p)):p!==b&&(e[i]=p));return e};h.extend({noConflict:function(i){a.$===h&&(a.$=n);i&&a.jQuery===h&&(a.jQuery=d);return h},isReady:!1,readyWait:1,
holdReady:function(a){a?h.readyWait++:h.ready(!0)},ready:function(a){if(a===!0&&!--h.readyWait||a!==!0&&!h.isReady){if(!o.body)return setTimeout(h.ready,1);h.isReady=!0;a!==!0&&--h.readyWait>0||(za.resolveWith(o,[h]),h.fn.trigger&&h(o).trigger("ready").unbind("ready"))}},bindReady:function(){if(!za){za=h._Deferred();if(o.readyState==="complete")return setTimeout(h.ready,1);if(o.addEventListener)o.addEventListener("DOMContentLoaded",ua,!1),a.addEventListener("load",h.ready,!1);else if(o.attachEvent){o.attachEvent("onreadystatechange",
ua);a.attachEvent("onload",h.ready);var d=!1;try{d=a.frameElement==null}catch(b){}o.documentElement.doScroll&&d&&i()}}},isFunction:function(a){return h.type(a)==="function"},isArray:Array.isArray||function(a){return h.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!j.test(a)||isNaN(a)},type:function(a){return a==null?String(a):v[u.call(a)]||"object"},isPlainObject:function(a){if(!a||h.type(a)!=="object"||a.nodeType||h.isWindow(a))return!1;
try{if(a.constructor&&!t.call(a,"constructor")&&!t.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}for(var d in a);return d===b||t.call(a,d)},isEmptyObject:function(a){for(var i in a)return!1;return!0},error:function(a){throw a;},parseJSON:function(i){if(typeof i!="string"||!i)return null;i=h.trim(i);if(a.JSON&&a.JSON.parse)return a.JSON.parse(i);if(m.test(i.replace(r,"@").replace(q,"]").replace(E,"")))return(new Function("return "+i))();h.error("Invalid JSON: "+i)},parseXML:function(i){var d,
p;try{a.DOMParser?(p=new DOMParser,d=p.parseFromString(i,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(i))}catch(n){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&h.error("Invalid XML: "+i);return d},noop:function(){},globalEval:function(i){i&&f.test(i)&&(a.execScript||function(i){a.eval.call(a,i)})(i)},camelCase:function(a){return a.replace(eb,"ms-").replace(db,fb)},nodeName:function(a,i){return a.nodeName&&a.nodeName.toUpperCase()===
i.toUpperCase()},each:function(a,i,d){var p,n=0,c=a.length,e=c===b||h.isFunction(a);if(d)if(e)for(p in a){if(i.apply(a[p],d)===!1)break}else for(;n<c;){if(i.apply(a[n++],d)===!1)break}else if(e)for(p in a){if(i.call(a[p],p,a[p])===!1)break}else for(;n<c;)if(i.call(a[n],n,a[n++])===!1)break;return a},trim:y?function(a){return a==null?"":y.call(a)}:function(a){return a==null?"":(a+"").replace(g,"").replace(k,"")},makeArray:function(a,i){var d=i||[];if(a!=null){var b=h.type(a);a.length==null||b==="string"||
b==="function"||b==="regexp"||h.isWindow(a)?C.call(d,a):h.merge(d,a)}return d},inArray:function(a,i){if(!i)return-1;if(na)return na.call(i,a);for(var h=0,d=i.length;h<d;h++)if(i[h]===a)return h;return-1},merge:function(a,i){var h=a.length,d=0;if(typeof i.length=="number")for(var p=i.length;d<p;d++)a[h++]=i[d];else for(;i[d]!==b;)a[h++]=i[d++];a.length=h;return a},grep:function(a,i,h){for(var d=[],b,h=!!h,p=0,n=a.length;p<n;p++)b=!!i(a[p],p),h!==b&&d.push(a[p]);return d},map:function(a,i,d){var p,
n,c=[],e=0,P=a.length;if(a instanceof h||P!==b&&typeof P=="number"&&(P>0&&a[0]&&a[P-1]||P===0||h.isArray(a)))for(;e<P;e++)p=i(a[e],e,d),p!=null&&(c[c.length]=p);else for(n in a)p=i(a[n],n,d),p!=null&&(c[c.length]=p);return c.concat.apply([],c)},guid:1,proxy:function(a,i){if(typeof i=="string")var d=a[i],i=a,a=d;if(!h.isFunction(a))return b;var p=x.call(arguments,2),d=function(){return a.apply(i,p.concat(x.call(arguments)))};d.guid=a.guid=a.guid||d.guid||h.guid++;return d},access:function(a,i,d,p,
n,c){var e=a.length;if(typeof i=="object"){for(var P in i)h.access(a,P,i[P],p,n,d);return a}if(d!==b){p=!c&&p&&h.isFunction(d);for(P=0;P<e;P++)n(a[P],i,p?d.call(a[P],P,n(a[P],i)):d,c);return a}return e?n(a[0],i):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=D.exec(a)||s.exec(a)||F.exec(a)||a.indexOf("compatible")<0&&W.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(i,h){return new a.fn.init(i,h)}h.extend(!0,a,this);a.superclass=
this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,b){b&&b instanceof h&&!(b instanceof a)&&(b=a(b));return h.fn.init.call(this,d,b,i)};a.fn.init.prototype=a.fn;var i=a(o);return a},browser:{}});h.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,i){v["[object "+i+"]"]=i.toLowerCase()});xa=h.uaMatch(xa);xa.browser&&(h.browser[xa.browser]=!0,h.browser.version=xa.version);h.browser.webkit&&(h.browser.safari=!0);f.test("\u00a0")&&(g=
/^[\s\xA0]+/,k=/[\s\xA0]+$/);c=h(o);o.addEventListener?ua=function(){o.removeEventListener("DOMContentLoaded",ua,!1);h.ready()}:o.attachEvent&&(ua=function(){o.readyState==="complete"&&(o.detachEvent("onreadystatechange",ua),h.ready())});return h}(),N="done fail isResolved isRejected promise then always pipe".split(" "),B=[].slice;d.extend({_Deferred:function(){var a=[],h,b,n,c={done:function(){if(!n){var b=arguments,p,e,f,g,k;h&&(k=h,h=0);p=0;for(e=b.length;p<e;p++)f=b[p],g=d.type(f),g==="array"?
c.done.apply(c,f):g==="function"&&a.push(f);k&&c.resolveWith(k[0],k[1])}return this},resolveWith:function(d,c){if(!n&&!h&&!b){c=c||[];b=1;try{for(;a[0];)a.shift().apply(d,c)}finally{h=[d,c],b=0}}return this},resolve:function(){c.resolveWith(this,arguments);return this},isResolved:function(){return!!b||!!h},cancel:function(){n=1;a=[];return this}};return c},Deferred:function(a){var h=d._Deferred(),b=d._Deferred(),n;d.extend(h,{then:function(a,i){h.done(a).fail(i);return this},always:function(){return h.done.apply(h,
arguments).fail.apply(this,arguments)},fail:b.done,rejectWith:b.resolveWith,reject:b.resolve,isRejected:b.isResolved,pipe:function(a,i){return d.Deferred(function(b){d.each({done:[a,"resolve"],fail:[i,"reject"]},function(a,i){var p=i[0],n=i[1],c;d.isFunction(p)?h[a](function(){(c=p.apply(this,arguments))&&d.isFunction(c.promise)?c.promise().then(b.resolve,b.reject):b[n+"With"](this===h?b:this,[c])}):h[a](b[n])})}).promise()},promise:function(a){if(a==null){if(n)return n;n=a={}}for(var i=N.length;i--;)a[N[i]]=
h[N[i]];return a}});h.done(b.cancel).fail(h.cancel);delete h.cancel;a&&a.call(h,h);return h},when:function(a){function h(a){return function(i){b[a]=arguments.length>1?B.call(arguments,0):i;--e||f.resolveWith(f,B.call(b,0))}}var b=arguments,n=0,c=b.length,e=c,f=c<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(c>1){for(;n<c;n++)b[n]&&d.isFunction(b[n].promise)?b[n].promise().then(h(n),f.reject):--e;e||f.resolveWith(f,b)}else f!==a&&f.resolveWith(f,c?[a]:[]);return f.promise()}});d.support=function(){var a=
o.createElement("div"),h=o.documentElement,b,n,c,e,f,g,k;a.setAttribute("className","t");a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=a.getElementsByTagName("*");n=a.getElementsByTagName("a")[0];if(!b||!b.length||!n)return{};c=o.createElement("select");e=c.appendChild(o.createElement("option"));b=a.getElementsByTagName("input")[0];g={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,
htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:n.getAttribute("href")==="/a",opacity:/^0.55$/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:b.value==="on",optSelected:e.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};b.checked=!0;g.noCloneChecked=b.cloneNode(!0).checked;c.disabled=
!0;g.optDisabled=!e.disabled;try{delete a.test}catch(j){g.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){g.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick"));b=o.createElement("input");b.value="t";b.setAttribute("type","radio");g.radioValue=b.value==="t";b.setAttribute("checked","checked");a.appendChild(b);n=o.createDocumentFragment();n.appendChild(a.firstChild);g.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="";
a.style.width=a.style.paddingLeft="1px";c=o.getElementsByTagName("body")[0];n=o.createElement(c?"div":"body");e={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};c&&d.extend(e,{position:"absolute",left:"-1000px",top:"-1000px"});for(k in e)n.style[k]=e[k];n.appendChild(a);h=c||h;h.insertBefore(n,h.firstChild);g.appendChecked=b.checked;g.boxModel=a.offsetWidth===2;"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,g.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display=
"",a.innerHTML="<div style='width:4px;'></div>",g.shrinkWrapBlocks=a.offsetWidth!==2);a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";c=a.getElementsByTagName("td");b=c[0].offsetHeight===0;c[0].style.display="";c[1].style.display="none";g.reliableHiddenOffsets=b&&c[0].offsetHeight===0;a.innerHTML="";o.defaultView&&o.defaultView.getComputedStyle&&(f=o.createElement("div"),f.style.width="0",f.style.marginRight="0",a.appendChild(f),g.reliableMarginRight=
(parseInt((o.defaultView.getComputedStyle(f,null)||{marginRight:0}).marginRight,10)||0)===0);n.innerHTML="";h.removeChild(n);if(a.attachEvent)for(k in{submit:1,change:1,focusin:1})f="on"+k,(b=f in a)||(a.setAttribute(f,"return;"),b=typeof a[f]=="function"),g[k+"Bubbles"]=b;n=n=c=e=c=f=a=b=null;return g}();d.boxModel=d.support.boxModel;var q=/^(?:\{.*\}|\[.*\])$/,E=/([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!S(a)},data:function(a,h,p,c){if(d.acceptData(a)){var e,f=d.expando,g=typeof h=="string",k=a.nodeType,j=k?d.cache:a,l=k?a[d.expando]:a[d.expando]&&d.expando;if(l&&(!c||!l||!j[l]||j[l][f])||!(g&&p===b)){l||(k?a[d.expando]=l=++d.uuid:l=d.expando);j[l]||(j[l]={},k||(j[l].toJSON=d.noop));if(typeof h=="object"||typeof h=="function")c?j[l][f]=d.extend(j[l][f],h):j[l]=d.extend(j[l],h);a=j[l];c&&(a[f]||(a[f]={}),a=a[f]);
p!==b&&(a[d.camelCase(h)]=p);if(h==="events"&&!a[h])return a[f]&&a[f].events;g?(e=a[h],e==null&&(e=a[d.camelCase(h)])):e=a;return e}}},removeData:function(a,h,b){if(d.acceptData(a)){var c,e=d.expando,f=a.nodeType,g=f?d.cache:a,k=f?a[d.expando]:d.expando;if(g[k]){if(h&&(c=b?g[k][e]:g[k]))if(c[h]||(h=d.camelCase(h)),delete c[h],!S(c))return;if(b&&(delete g[k][e],!S(g[k])))return;h=g[k][e];d.support.deleteExpando||!g.setInterval?delete g[k]:g[k]=null;h?(g[k]={},f||(g[k].toJSON=d.noop),g[k][e]=h):f&&
(d.support.deleteExpando?delete a[d.expando]:a.removeAttribute?a.removeAttribute(d.expando):a[d.expando]=null)}}},_data:function(a,h,b){return d.data(a,h,b,!0)},acceptData:function(a){if(a.nodeName){var h=d.noData[a.nodeName.toLowerCase()];if(h)return h!==!0&&a.getAttribute("classid")===h}return!0}});d.fn.extend({data:function(a,h){var p=null;if(typeof a=="undefined"){if(this.length&&(p=d.data(this[0]),this[0].nodeType===1))for(var c=this[0].attributes,e,f=0,g=c.length;f<g;f++)e=c[f].name,e.indexOf("data-")===
0&&(e=d.camelCase(e.substring(5)),M(this[0],e,p[e]));return p}if(typeof a=="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";return h===b?(p=this.triggerHandler("getData"+k[1]+"!",[k[0]]),p===b&&this.length&&(p=d.data(this[0],a),p=M(this[0],a,p)),p===b&&k[1]?this.data(k[0]):p):this.each(function(){var b=d(this),p=[k[0],h];b.triggerHandler("setData"+k[1]+"!",p);d.data(this,a,h);b.triggerHandler("changeData"+k[1]+"!",p)})},removeData:function(a){return this.each(function(){d.removeData(this,
a)})}});d.extend({_mark:function(a,h){a&&(h=(h||"fx")+"mark",d.data(a,h,(d.data(a,h,b,!0)||0)+1,!0))},_unmark:function(a,h,p){a!==!0&&(p=h,h=a,a=!1);if(h){var p=p||"fx",c=p+"mark";(a=a?0:(d.data(h,c,b,!0)||1)-1)?d.data(h,c,a,!0):(d.removeData(h,c,!0),A(h,p,"mark"))}},queue:function(a,h,p){if(a){var h=(h||"fx")+"queue",c=d.data(a,h,b,!0);p&&(!c||d.isArray(p)?c=d.data(a,h,d.makeArray(p),!0):c.push(p));return c||[]}},dequeue:function(a,h){var h=h||"fx",b=d.queue(a,h),c=b.shift();c==="inprogress"&&(c=
b.shift());c&&(h==="fx"&&b.unshift("inprogress"),c.call(a,function(){d.dequeue(a,h)}));b.length||(d.removeData(a,h+"queue",!0),A(a,h,"queue"))}});d.fn.extend({queue:function(a,h){typeof a!="string"&&(h=a,a="fx");return h===b?d.queue(this[0],a):this.each(function(){var b=d.queue(this,a,h);a==="fx"&&b[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,h){a=d.fx?d.fx.speeds[a]||a:a;h=h||"fx";return this.queue(h,function(){var b=
this;setTimeout(function(){d.dequeue(b,h)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function h(){--f||c.resolveWith(n,[n])}typeof a!="string"&&(a=b);var a=a||"fx",c=d.Deferred(),n=this,e=n.length,f=1,g=a+"defer",k=a+"queue";a+="mark";for(var j;e--;)if(j=d.data(n[e],g,b,!0)||(d.data(n[e],k,b,!0)||d.data(n[e],a,b,!0))&&d.data(n[e],g,d._Deferred(),!0))f++,j.done(h);h();return c.promise()}});var x=/[\n\t\r]/g,I=/\s+/,r=/\r/g,F=/^(?:button|input)$/i,W=/^(?:button|input|object|select|textarea)$/i,
C=/^a(?:rea)?$/i,oa=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Y,j;d.fn.extend({attr:function(a,h){return d.access(this,a,h,!0,d.attr)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})},prop:function(a,h){return d.access(this,a,h,!0,d.prop)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(h){}})},addClass:function(a){var h,b,c,e,f,g,k;
if(d.isFunction(a))return this.each(function(h){d(this).addClass(a.call(this,h,this.className))});if(a&&typeof a=="string"){h=a.split(I);b=0;for(c=this.length;b<c;b++)if(e=this[b],e.nodeType===1)if(!e.className&&h.length===1)e.className=a;else{f=" "+e.className+" ";g=0;for(k=h.length;g<k;g++)~f.indexOf(" "+h[g]+" ")||(f+=h[g]+" ");e.className=d.trim(f)}}return this},removeClass:function(a){var h,c,e,f,g,k,j;if(d.isFunction(a))return this.each(function(h){d(this).removeClass(a.call(this,h,this.className))});
if(a&&typeof a=="string"||a===b){h=(a||"").split(I);c=0;for(e=this.length;c<e;c++)if(f=this[c],f.nodeType===1&&f.className)if(a){g=(" "+f.className+" ").replace(x," ");k=0;for(j=h.length;k<j;k++)g=g.replace(" "+h[k]+" "," ");f.className=d.trim(g)}else f.className=""}return this},toggleClass:function(a,h){var b=typeof a,c=typeof h=="boolean";return d.isFunction(a)?this.each(function(b){d(this).toggleClass(a.call(this,b,this.className,h),h)}):this.each(function(){if(b==="string")for(var e,f=0,g=d(this),
k=h,j=a.split(I);e=j[f++];)k=c?k:!g.hasClass(e),g[k?"addClass":"removeClass"](e);else if(b==="undefined"||b==="boolean")this.className&&d._data(this,"__className__",this.className),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",h=0,b=this.length;h<b;h++)if(this[h].nodeType===1&&(" "+this[h].className+" ").replace(x," ").indexOf(a)>-1)return!0;return!1},val:function(a){var h,c,e=this[0];if(!arguments.length){if(e){if((h=d.valHooks[e.nodeName.toLowerCase()]||
d.valHooks[e.type])&&"get"in h&&(c=h.get(e,"value"))!==b)return c;c=e.value;return typeof c=="string"?c.replace(r,""):c==null?"":c}return b}var f=d.isFunction(a);return this.each(function(c){var p=d(this),e;if(this.nodeType===1&&(f?e=a.call(this,c,p.val()):e=a,e==null?e="":typeof e=="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""})),h=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type],!h||!("set"in h)||h.set(this,e,"value")===b))this.value=e})}});d.extend({valHooks:{option:{get:function(a){var h=
a.attributes.value;return!h||h.specified?a.value:a.text}},select:{get:function(a){var h,b=a.selectedIndex,c=[],e=a.options,a=a.type==="select-one";if(b<0)return null;for(var f=a?b:0,g=a?b+1:e.length;f<g;f++)if(h=e[f],h.selected&&(d.support.optDisabled?!h.disabled:h.getAttribute("disabled")===null)&&(!h.parentNode.disabled||!d.nodeName(h.parentNode,"optgroup"))){h=d(h).val();if(a)return h;c.push(h)}return a&&!c.length&&e.length?d(e[b]).val():c},set:function(a,h){var b=d.makeArray(h);d(a).find("option").each(function(){this.selected=
d.inArray(d(this).val(),b)>=0});b.length||(a.selectedIndex=-1);return b}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,h,c,e){var f=a.nodeType;if(!a||f===3||f===8||f===2)return b;if(e&&h in d.attrFn)return d(a)[h](c);if(!("getAttribute"in a))return d.prop(a,h,c);var g,k;(e=f!==1||!d.isXMLDoc(a))&&(h=d.attrFix[h]||h,k=d.attrHooks[h],k||(oa.test(h)?k=j:Y&&(k=Y)));if(c!==b){if(c===null)return d.removeAttr(a,h),b;if(k&&"set"in
k&&e&&(g=k.set(a,c,h))!==b)return g;a.setAttribute(h,""+c);return c}if(k&&"get"in k&&e&&(g=k.get(a,h))!==null)return g;g=a.getAttribute(h);return g===null?b:g},removeAttr:function(a,b){var c;a.nodeType===1&&(b=d.attrFix[b]||b,d.attr(a,b,""),a.removeAttribute(b),oa.test(b)&&(c=d.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(F.test(a.nodeName)&&a.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&b==="radio"&&d.nodeName(a,"input")){var c=a.value;
a.setAttribute("type",b);c&&(a.value=c);return b}}},value:{get:function(a,b){return Y&&d.nodeName(a,"button")?Y.get(a,b):b in a?a.value:null},set:function(a,b,c){if(Y&&d.nodeName(a,"button"))return Y.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,
h,c){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var f,g;(e!==1||!d.isXMLDoc(a))&&(h=d.propFix[h]||h,g=d.propHooks[h]);return c!==b?g&&"set"in g&&(f=g.set(a,c,h))!==b?f:a[h]=c:g&&"get"in g&&(f=g.get(a,h))!==null?f:a[h]},propHooks:{tabIndex:{get:function(a){var h=a.getAttributeNode("tabindex");return h&&h.specified?parseInt(h.value,10):W.test(a.nodeName)||C.test(a.nodeName)&&a.href?0:b}}}});d.attrHooks.tabIndex=d.propHooks.tabIndex;j={get:function(a,h){var c;return d.prop(a,h)===!0||(c=a.getAttributeNode(h))&&
c.nodeValue!==!1?h.toLowerCase():b},set:function(a,b,c){var e;b===!1?d.removeAttr(a,c):(e=d.propFix[c]||c,e in a&&(a[e]=!0),a.setAttribute(c,c.toLowerCase()));return c}};d.support.getSetAttribute||(Y=d.valHooks.button={get:function(a,h){var d;return(d=a.getAttributeNode(h))&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var c=a.getAttributeNode(d);c||(c=o.createAttribute(d),a.setAttributeNode(c));return c.nodeValue=b+""}},d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],
{set:function(a,i){if(i==="")return a.setAttribute(b,"auto"),i}})}));d.support.hrefNormalized||d.each(["href","src","width","height"],function(a,h){d.attrHooks[h]=d.extend(d.attrHooks[h],{get:function(a){a=a.getAttribute(h,2);return a===null?b:a}})});d.support.style||(d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}});d.support.optSelected||(d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(){return null}}));
d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,b){if(d.isArray(b))return a.checked=d.inArray(d(a).val(),b)>=0}})});var L=/\.(.*)$/,ea=/^(?:textarea|input|select)$/i,ja=/\./g,ha=/ /g,ca=/[^\w\s.|`]/g,da=function(a){return a.replace(ca,"\\$&")};d.event={add:function(a,h,c,e){if(a.nodeType!==3&&a.nodeType!==
8){if(c===!1)c=aa;else if(!c)return;var f,g;c.handler&&(f=c,c=f.handler);c.guid||(c.guid=d.guid++);if(g=d._data(a)){var k=g.events,j=g.handle;k||(g.events=k={});j||(g.handle=j=function(a){return typeof d!="undefined"&&(!a||d.event.triggered!==a.type)?d.event.handle.apply(j.elem,arguments):b});j.elem=a;for(var h=h.split(" "),l,m=0,r;l=h[m++];){g=f?d.extend({},f):{handler:c,data:e};l.indexOf(".")>-1?(r=l.split("."),l=r.shift(),g.namespace=r.slice(0).sort().join(".")):(r=[],g.namespace="");g.type=l;
g.guid||(g.guid=c.guid);var q=k[l],E=d.event.special[l]||{};if(!q&&(q=k[l]=[],!E.setup||E.setup.call(a,e,r,j)===!1))a.addEventListener?a.addEventListener(l,j,!1):a.attachEvent&&a.attachEvent("on"+l,j);E.add&&(E.add.call(a,g),g.handler.guid||(g.handler.guid=c.guid));q.push(g);d.event.global[l]=!0}a=null}}},global:{},remove:function(a,h,c,e){if(a.nodeType!==3&&a.nodeType!==8){c===!1&&(c=aa);var f,g,k=0,j,l,m,r,q,E,D=d.hasData(a)&&d._data(a),o=D&&D.events;if(D&&o)if(h&&h.type&&(c=h.handler,h=h.type),
!h||typeof h=="string"&&h.charAt(0)===".")for(f in h=h||"",o)d.event.remove(a,f+h);else{for(h=h.split(" ");f=h[k++];)if(r=f,j=f.indexOf(".")<0,l=[],j||(l=f.split("."),f=l.shift(),m=RegExp("(^|\\.)"+d.map(l.slice(0).sort(),da).join("\\.(?:.*\\.)?")+"(\\.|$)")),q=o[f])if(c){r=d.event.special[f]||{};for(g=e||0;g<q.length;g++)if(E=q[g],c.guid===E.guid){if(j||m.test(E.namespace))e==null&&q.splice(g--,1),r.remove&&r.remove.call(a,E);if(e!=null)break}if(q.length===0||e!=null&&q.length===1)(!r.teardown||
r.teardown.call(a,l)===!1)&&d.removeEvent(a,f,D.handle),delete o[f]}else for(g=0;g<q.length;g++)if(E=q[g],j||m.test(E.namespace))d.event.remove(a,r,E.handler,g),q.splice(g--,1);if(d.isEmptyObject(o))(h=D.handle)&&(h.elem=null),delete D.events,delete D.handle,d.isEmptyObject(D)&&d.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(i,h,c,e){var f=i.type||i,g=[],k;f.indexOf("!")>=0&&(f=f.slice(0,-1),k=!0);f.indexOf(".")>=0&&(g=f.split("."),f=g.shift(),g.sort());
if(c&&!d.event.customEvent[f]||d.event.global[f]){i=typeof i=="object"?i[d.expando]?i:new d.Event(f,i):new d.Event(f);i.type=f;i.exclusive=k;i.namespace=g.join(".");i.namespace_re=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)");if(e||!c)i.preventDefault(),i.stopPropagation();if(c){if(!(c.nodeType===3||c.nodeType===8)){i.result=b;i.target=c;h=h!=null?d.makeArray(h):[];h.unshift(i);g=c;e=f.indexOf(":")<0?"on"+f:"";do k=d._data(g,"handle"),i.currentTarget=g,k&&k.apply(g,h),e&&d.acceptData(g)&&g[e]&&
g[e].apply(g,h)===!1&&(i.result=!1,i.preventDefault()),g=g.parentNode||g.ownerDocument||g===i.target.ownerDocument&&a;while(g&&!i.isPropagationStopped());if(!i.isDefaultPrevented()){var j,g=d.event.special[f]||{};if((!g._default||g._default.call(c.ownerDocument,i)===!1)&&(f!=="click"||!d.nodeName(c,"a"))&&d.acceptData(c)){try{e&&c[f]&&(j=c[e],j&&(c[e]=null),d.event.triggered=f,c[f]())}catch(l){}j&&(c[e]=j);d.event.triggered=b}}return i.result}}else d.each(d.cache,function(){var a=this[d.expando];
a&&a.events&&a.events[f]&&d.event.trigger(i,h,a.handle.elem)})}},handle:function(i){var i=d.event.fix(i||a.event),h=((d._data(this,"events")||{})[i.type]||[]).slice(0),c=!i.exclusive&&!i.namespace,e=Array.prototype.slice.call(arguments,0);e[0]=i;i.currentTarget=this;for(var f=0,g=h.length;f<g;f++){var k=h[f];if(c||i.namespace_re.test(k.namespace))if(i.handler=k.handler,i.data=k.data,i.handleObj=k,k=k.handler.apply(this,e),k!==b&&(i.result=k,k===!1&&(i.preventDefault(),i.stopPropagation())),i.isImmediatePropagationStopped())break}return i.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(a){if(a[d.expando])return a;for(var h=a,a=d.Event(h),c=this.props.length,e;c;)e=this.props[--c],a[e]=h[e];a.target||(a.target=a.srcElement||o);a.target.nodeType===
3&&(a.target=a.target.parentNode);!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null)c=a.target.ownerDocument||o,h=c.documentElement,c=c.body,a.pageX=a.clientX+(h&&h.scrollLeft||c&&c.scrollLeft||0)-(h&&h.clientLeft||c&&c.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||c&&c.scrollTop||0)-(h&&h.clientTop||c&&c.clientTop||0);a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode);
!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey);!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,fa(a.origType,a.selector),d.extend({},a,{handler:K,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,fa(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===
b&&(this.onbeforeunload=null)}}}};d.removeEvent=o.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,!1)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};d.Event=function(a,b){if(!this.preventDefault)return new d.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?X:aa):this.type=a;b&&d.extend(this,b);this.timeStamp=d.now();this[d.expando]=!0};
d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=X;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=X;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=X;this.stopPropagation()},isDefaultPrevented:aa,isPropagationStopped:aa,isImmediatePropagationStopped:aa};var R=function(a){var b=
a.relatedTarget,c=!1,e=a.type;a.type=a.data;b!==this&&(b&&(c=d.contains(this,b)),c||(d.event.handle.apply(this,arguments),a.type=e))},ia=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?ia:R,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?ia:R)}}});d.support.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,
"form"))return!1;else d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=d.nodeName(b,"input")||d.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&d(b).closest("form").length&&V("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=d.nodeName(b,"input")||d.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&V("submit",this,arguments)})},teardown:function(){d.event.remove(this,
".specialSubmit")}});if(!d.support.changeBubbles){var ga,Q=function(a){var b=d.nodeName(a,"input")?a.type:"",c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":d.nodeName(a,"select")&&(c=a.selectedIndex);return c},ma=function(a,h){var c=a.target,e,f;if(ea.test(c.nodeName)&&!c.readOnly&&(e=d._data(c,"_change_data"),f=Q(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f),!(e===
b||f===e)))if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,h,c)};d.event.special.change={filters:{focusout:ma,beforedeactivate:ma,click:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||d.nodeName(b,"select"))&&ma.call(this,a)},keydown:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!d.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&ma.call(this,a)},beforeactivate:function(a){a=
a.target;d._data(a,"_change_data",Q(a))}},setup:function(){if(this.type==="file")return!1;for(var a in ga)d.event.add(this,a+".specialChange",ga[a]);return ea.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return ea.test(this.nodeName)}};ga=d.event.special.change.filters;ga.focus=ga.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){var i=d.event.fix(a);i.type=b;i.originalEvent={};d.event.trigger(i,null,i.target);
i.isDefaultPrevented()&&a.preventDefault()}var e=0;d.event.special[b]={setup:function(){e++===0&&o.addEventListener(a,c,!0)},teardown:function(){--e===0&&o.removeEventListener(a,c,!0)}}});d.each(["bind","one"],function(a,c){d.fn[c]=function(a,i,e){var f;if(typeof a=="object"){for(var g in a)this[c](g,i,a[g],e);return this}if(arguments.length===2||i===!1)e=i,i=b;c==="one"?(f=function(a){d(this).unbind(a,f);return e.apply(this,arguments)},f.guid=e.guid||d.guid++):f=e;if(a==="unload"&&c!=="one")this.one(a,
i,e);else{g=0;for(var k=this.length;g<k;g++)d.event.add(this[g],a,f,i)}return this}});d.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else{c=0;for(var e=this.length;c<e;c++)d.event.remove(this[c],a,b)}return this},delegate:function(a,b,d,c){return this.live(b,d,c,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},
triggerHandler:function(a,b){if(this[0])return d.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||d.guid++,e=0,f=function(c){var f=(d.data(this,"lastToggle"+a.guid)||0)%e;d.data(this,"lastToggle"+a.guid,f+1);c.preventDefault();return b[f].apply(this,arguments)||!1};for(f.guid=c;e<b.length;)b[e++].guid=c;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var G={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
d.each(["live","die"],function(a,c){d.fn[c]=function(a,i,e,f){var g=0,k,j,l=f||this.selector,m=f?this:d(this.context);if(typeof a=="object"&&!a.preventDefault){for(k in a)m[c](k,i,a[k],l);return this}if(c==="die"&&!a&&f&&f.charAt(0)===".")return m.unbind(f),this;if(i===!1||d.isFunction(i))e=i||aa,i=b;for(a=(a||"").split(" ");(f=a[g++])!=null;)if(k=L.exec(f),j="",k&&(j=k[0],f=f.replace(L,"")),f==="hover")a.push("mouseenter"+j,"mouseleave"+j);else if(k=f,G[f]?(a.push(G[f]+j),f+=j):f=(G[f]||f)+j,c===
"live"){j=0;for(var r=m.length;j<r;j++)d.event.add(m[j],"live."+fa(f,l),{data:i,selector:l,handler:e,origType:f,origHandler:e,preType:k})}else m.unbind("live."+fa(f,l),e);return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=function(a,d){d==null&&(d=a,a=null);return arguments.length>0?this.bind(b,a,d):this.trigger(b)};
d.attrFn&&(d.attrFn[b]=!0)});(function(){function a(b,d,c,i,h,e){for(var h=0,f=i.length;h<f;h++){var g=i[h];if(g){for(var n=!1,g=g[b];g;){if(g.sizcache===c){n=i[g.sizset];break}if(g.nodeType===1)if(e||(g.sizcache=c,g.sizset=h),typeof d!="string"){if(g===d){n=!0;break}}else if(r.filter(d,[g]).length>0){n=g;break}g=g[b]}i[h]=n}}}function c(a,b,d,i,h,e){for(var h=0,f=i.length;h<f;h++){var g=i[h];if(g){for(var n=!1,g=g[a];g;){if(g.sizcache===d){n=i[g.sizset];break}g.nodeType===1&&!e&&(g.sizcache=d,g.sizset=
h);if(g.nodeName.toLowerCase()===b){n=g;break}g=g[a]}i[h]=n}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f=0,g=Object.prototype.toString,k=!1,j=!0,l=/\\/g,m=/\W/;[0,0].sort(function(){j=!1;return 0});var r=function(a,b,d,c){var d=d||[],i=b=b||o;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!="string")return d;var h,f,n,k,j,l,wa=!0,m=r.isXML(b),D=[],Ja=a;do if(e.exec(""),h=e.exec(Ja))if(Ja=
h[3],D.push(h[1]),h[2]){k=h[3];break}while(h);if(D.length>1&&E.exec(a))if(D.length===2&&q.relative[D[0]])f=C(D[0]+D[1],b);else for(f=q.relative[D[0]]?[b]:r(D.shift(),b);D.length;)a=D.shift(),q.relative[a]&&(a+=D.shift()),f=C(a,f);else if(!c&&D.length>1&&b.nodeType===9&&!m&&q.match.ID.test(D[0])&&!q.match.ID.test(D[D.length-1])&&(j=r.find(D.shift(),b,m),b=j.expr?r.filter(j.expr,j.set)[0]:j.set[0]),b){j=c?{expr:D.pop(),set:F(c)}:r.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&b.parentNode?b.parentNode:
b,m);f=j.expr?r.filter(j.expr,j.set):j.set;for(D.length>0?n=F(f):wa=!1;D.length;)h=l=D.pop(),q.relative[l]?h=D.pop():l="",h==null&&(h=b),q.relative[l](n,h,m)}else n=[];n||(n=f);n||r.error(l||a);if(g.call(n)==="[object Array]")if(wa)if(b&&b.nodeType===1)for(a=0;n[a]!=null;a++)n[a]&&(n[a]===!0||n[a].nodeType===1&&r.contains(b,n[a]))&&d.push(f[a]);else for(a=0;n[a]!=null;a++)n[a]&&n[a].nodeType===1&&d.push(f[a]);else d.push.apply(d,n);else F(n,d);k&&(r(k,i,d,c),r.uniqueSort(d));return d};r.uniqueSort=
function(a){if(t&&(k=j,a.sort(t),k))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};r.matches=function(a,b){return r(a,null,null,b)};r.matchesSelector=function(a,b){return r(b,null,null,[a]).length>0};r.find=function(a,b,d){var c;if(!a)return[];for(var i=0,h=q.order.length;i<h;i++){var e,f=q.order[i];if(e=q.leftMatch[f].exec(a)){var g=e[1];e.splice(1,1);if(g.substr(g.length-1)!=="\\"&&(e[1]=(e[1]||"").replace(l,""),c=q.find[f](e,b,d),c!=null)){a=a.replace(q.match[f],"");break}}}c||
(c=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:c,expr:a}};r.filter=function(a,d,c,i){for(var h,e,f=a,g=[],n=d,p=d&&d[0]&&r.isXML(d[0]);a&&d.length;){for(var k in q.filter)if((h=q.leftMatch[k].exec(a))!=null&&h[2]){var j,P,l=q.filter[k];P=h[1];e=!1;h.splice(1,1);if(P.substr(P.length-1)!=="\\"){n===g&&(g=[]);if(q.preFilter[k])if(h=q.preFilter[k](h,n,c,g,i,p)){if(h===!0)continue}else e=j=!0;if(h)for(var m=0;(P=n[m])!=null;m++)if(P){j=l(P,h,m,n);var wa=i^!!j;
c&&j!=null?wa?e=!0:n[m]=!1:wa&&(g.push(P),e=!0)}if(j!==b){c||(n=g);a=a.replace(q.match[k],"");if(!e)return[];break}}}if(a===f)if(e==null)r.error(a);else break;f=a}return n};r.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var q=r.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(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var d=
typeof b=="string",c=d&&!m.test(b),d=d&&!c;c&&(b=b.toLowerCase());for(var c=0,i=a.length,h;c<i;c++)if(h=a[c]){for(;(h=h.previousSibling)&&h.nodeType!==1;);a[c]=d||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}d&&r.filter(b,a,!0)},">":function(a,b){var d,c=typeof b=="string",i=0,h=a.length;if(c&&!m.test(b))for(b=b.toLowerCase();i<h;i++){if(d=a[i])d=d.parentNode,a[i]=d.nodeName.toLowerCase()===b?d:!1}else{for(;i<h;i++)(d=a[i])&&(a[i]=c?d.parentNode:d.parentNode===b);c&&r.filter(b,a,!0)}},"":function(b,
d,e){var g,p=f++,k=a;typeof d=="string"&&!m.test(d)&&(d=d.toLowerCase(),g=d,k=c);k("parentNode",d,p,b,g,e)},"~":function(b,d,e){var g,p=f++,k=a;typeof d=="string"&&!m.test(d)&&(d=d.toLowerCase(),g=d,k=c);k("previousSibling",d,p,b,g,e)}},find:{ID:function(a,b,d){if(typeof b.getElementById!="undefined"&&!d)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){for(var d=[],c=b.getElementsByName(a[1]),i=0,h=c.length;i<h;i++)c[i].getAttribute("name")===
a[1]&&d.push(c[i]);return d.length===0?null:d}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,d,c,i,h){a=" "+a[1].replace(l,"")+" ";if(h)return a;for(var h=0,e;(e=b[h])!=null;h++)e&&(i^(e.className&&(" "+e.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?d||c.push(e):d&&(b[h]=!1));return!1},ID:function(a){return a[1].replace(l,"")},TAG:function(a){return a[1].replace(l,"").toLowerCase()},CHILD:function(a){if(a[1]===
"nth"){a[2]||r.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&r.error(a[0]);a[0]=f++;return a},ATTR:function(a,b,d,c,i,h){b=a[1]=a[1].replace(l,"");!h&&q.attrMap[b]&&(a[1]=q.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(l,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,d,c,i){if(a[1]==="not")if((e.exec(a[3])||"").length>1||
/^\w/.test(a[3]))a[3]=r(a[3],null,null,b);else return a=r.filter(a[3],b,d,1^i),d||c.push.apply(c,a),!1;else if(q.match.POS.test(a[0])||q.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},
has:function(a,b,d){return!!r(d[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),d=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===d&&(b===d||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()===
"input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===
a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,d,c){return b===c.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,d){return b<d[3]-0},gt:function(a,b,d){return b>d[3]-0},nth:function(a,b,d){return d[3]-0===b},eq:function(a,b,d){return d[3]-0===b}},filter:{PSEUDO:function(a,b,d,c){var i=b[1],h=q.filters[i];if(h)return h(a,d,b,c);if(i==="contains")return(a.textContent||a.innerText||r.getText([a])||"").indexOf(b[3])>=
0;if(i==="not"){b=b[3];d=0;for(c=b.length;d<c;d++)if(b[d]===a)return!1;return!0}r.error(i)},CHILD:function(a,b){var d=b[1],c=a;switch(d){case "only":case "first":for(;c=c.previousSibling;)if(c.nodeType===1)return!1;if(d==="first")return!0;c=a;case "last":for(;c=c.nextSibling;)if(c.nodeType===1)return!1;return!0;case "nth":var d=b[2],i=b[3];if(d===1&&i===0)return!0;var h=b[0],e=a.parentNode;if(e&&(e.sizcache!==h||!a.nodeIndex)){for(var f=0,c=e.firstChild;c;c=c.nextSibling)c.nodeType===1&&(c.nodeIndex=
++f);e.sizcache=h}c=a.nodeIndex-i;return d===0?c===0:c%d===0&&c/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var d=b[1],d=q.attrHandle[d]?q.attrHandle[d](a):a[d]!=null?a[d]:a.getAttribute(d),c=d+"",i=b[2],h=b[4];return d==null?i==="!=":i==="="?c===h:i==="*="?c.indexOf(h)>=0:i==="~="?
(" "+c+" ").indexOf(h)>=0:h?i==="!="?c!==h:i==="^="?c.indexOf(h)===0:i==="$="?c.substr(c.length-h.length)===h:i==="|="?c===h||c.substr(0,h.length+1)===h+"-":!1:c&&d!==!1},POS:function(a,b,d,c){var i=q.setFilters[b[2]];if(i)return i(a,d,b,c)}}},E=q.match.POS,D=function(a,b){return"\\"+(b-0+1)},s;for(s in q.match)q.match[s]=RegExp(q.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),q.leftMatch[s]=RegExp(/(^(?:.|\r|\n)*?)/.source+q.match[s].source.replace(/\\(\d+)/g,D));var F=function(a,b){a=Array.prototype.slice.call(a,
0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(o.documentElement.childNodes,0)}catch(W){F=function(a,b){var d=0,c=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length=="number")for(var i=a.length;d<i;d++)c.push(a[d]);else for(;a[d];d++)c.push(a[d]);return c}}var t,u;o.documentElement.compareDocumentPosition?t=function(a,b){return a===b?(k=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&
4?-1:1}:(t=function(a,b){if(a===b)return k=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var d,c,i=[],h=[];d=a.parentNode;c=b.parentNode;var e=d;if(d===c)return u(a,b);if(!d)return-1;if(!c)return 1;for(;e;)i.unshift(e),e=e.parentNode;for(e=c;e;)h.unshift(e),e=e.parentNode;d=i.length;c=h.length;for(e=0;e<d&&e<c;e++)if(i[e]!==h[e])return u(i[e],h[e]);return e===d?u(a,h[e],-1):u(i[e],b,1)},u=function(a,b,d){if(a===b)return d;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});
r.getText=function(a){for(var b="",d,c=0;a[c];c++)d=a[c],d.nodeType===3||d.nodeType===4?b+=d.nodeValue:d.nodeType!==8&&(b+=r.getText(d.childNodes));return b};(function(){var a=o.createElement("div"),d="script"+(new Date).getTime(),c=o.documentElement;a.innerHTML="<a name='"+d+"'/>";c.insertBefore(a,c.firstChild);o.getElementById(d)&&(q.find.ID=function(a,d,c){if(typeof d.getElementById!="undefined"&&!c)return(d=d.getElementById(a[1]))?d.id===a[1]||typeof d.getAttributeNode!="undefined"&&d.getAttributeNode("id").nodeValue===
a[1]?[d]:b:[]},q.filter.ID=function(a,b){var d=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&d&&d.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=o.createElement("div");a.appendChild(o.createComment(""));a.getElementsByTagName("*").length>0&&(q.find.TAG=function(a,b){var d=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var c=[],i=0;d[i];i++)d[i].nodeType===1&&c.push(d[i]);d=c}return d});a.innerHTML="<a href='#'></a>";a.firstChild&&typeof a.firstChild.getAttribute!=
"undefined"&&a.firstChild.getAttribute("href")!=="#"&&(q.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();o.querySelectorAll&&function(){var a=r,b=o.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){r=function(b,d,c,i){d=d||o;if(!i&&!r.isXML(d)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(d.nodeType===1||d.nodeType===9)){if(h[1])return F(d.getElementsByTagName(b),c);if(h[2]&&q.find.CLASS&&d.getElementsByClassName)return F(d.getElementsByClassName(h[2]),
c)}if(d.nodeType===9){if(b==="body"&&d.body)return F([d.body],c);if(h&&h[3]){var e=d.getElementById(h[3]);if(!e||!e.parentNode)return F([],c);if(e.id===h[3])return F([e],c)}try{return F(d.querySelectorAll(b),c)}catch(f){}}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var h=d,g=(e=d.getAttribute("id"))||"__sizzle__",n=d.parentNode,p=/^\s*[+~]/.test(b);e?g=g.replace(/'/g,"\\$&"):d.setAttribute("id",g);p&&n&&(d=d.parentNode);try{if(!p||n)return F(d.querySelectorAll("[id='"+g+"'] "+b),
c)}catch(k){}finally{e||h.removeAttribute("id")}}}return a(b,d,c,i)};for(var d in a)r[d]=a[d];b=null}}();(function(){var a=o.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(o.createElement("div"),"div"),c=!1;try{b.call(o.documentElement,"[test!='']:sizzle")}catch(i){c=!0}r.matchesSelector=function(a,i){i=i.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!r.isXML(a))try{if(c||!q.match.PSEUDO.test(i)&&!/!=/.test(i)){var h=b.call(a,
i);if(h||!d||a.document&&a.document.nodeType!==11)return h}}catch(e){}return r(i,null,null,[a]).length>0}}})();(function(){var a=o.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))q.order.splice(1,0,"CLASS"),q.find.CLASS=function(a,b,d){if(typeof b.getElementsByClassName!="undefined"&&!d)return b.getElementsByClassName(a[1])},
a=null})();o.documentElement.contains?r.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:o.documentElement.compareDocumentPosition?r.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:r.contains=function(){return!1};r.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var C=function(a,b){for(var d,c=[],i="",h=b.nodeType?[b]:b;d=q.match.PSEUDO.exec(a);)i+=d[0],a=a.replace(q.match.PSEUDO,"");a=q.relative[a]?a+"*":a;d=0;for(var e=
h.length;d<e;d++)r(a,h[d],c);return r.filter(i,c)};d.find=r;d.expr=r.selectors;d.expr[":"]=d.expr.filters;d.unique=r.uniqueSort;d.text=r.getText;d.isXMLDoc=r.isXML;d.contains=r.contains})();var k=/Until$/,D=/^(?:parents|prevUntil|prevAll)/,na=/,/,ta=/^.[^:#\[\.,]*$/,Ea=Array.prototype.slice,La=d.expr.match.POS,gb={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this,c,e;if(typeof a!="string")return d(a).filter(function(){c=0;for(e=b.length;c<e;c++)if(d.contains(b[c],this))return!0});
var f=this.pushStack("","find",a),g,k,j;c=0;for(e=this.length;c<e;c++)if(g=f.length,d.find(a,this[c],f),c>0)for(k=g;k<f.length;k++)for(j=0;j<g;j++)if(f[j]===f[k]){f.splice(k--,1);break}return f},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(U(this,a,!1),"not",a)},filter:function(a){return this.pushStack(U(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?d.filter(a,
this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var k,j={},l=1;if(g&&a.length){e=0;for(f=a.length;e<f;e++)k=a[e],j[k]||(j[k]=La.test(k)?d(k,b||this.context):k);for(;g&&g.ownerDocument&&g!==b;){for(k in j)e=j[k],(e.jquery?e.index(g)>-1:d(g).is(e))&&c.push({selector:k,elem:g,level:l});g=g.parentNode;l++}}return c}k=La.test(a)||typeof a!="string"?d(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;){if(k?k.index(g)>-1:d.find.matchesSelector(g,
a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a=="string"?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),e=d.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11||!e[0]||
!e[0].parentNode||e[0].parentNode.nodeType===11?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},
nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=Ea.call(arguments);k.test(a)||(e=c);e&&typeof e=="string"&&(f=d.filter(e,f));
f=this.length>1&&!gb[a]?d.unique(f):f;(this.length>1||na.test(e))&&D.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}});d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){for(var f=[],a=a[c];a&&a.nodeType!==9&&(e===b||a.nodeType!==1||!d(a).is(e));)a.nodeType===1&&f.push(a),a=a[c];return f},nth:function(a,b,d){for(var b=b||1,c=0;a;a=a[d])if(a.nodeType===1&&++c===b)break;return a},
sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var hb=/ jQuery\d+="(?:\d+|null)"/g,Fa=/^\s+/,Ma=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Na=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,Oa=/<(?:script|object|embed|option|style)/i,Pa=/checked\s*(?:[^=]|=\s*.checked.)/i,kb=/\/(java|ecma)script/i,cb=/^\s*<!(?:\[CDATA\[|\-\-)/,ka={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,"",""]};ka.optgroup=ka.option;ka.tbody=ka.tfoot=ka.colgroup=ka.caption=ka.thead;ka.th=ka.td;d.support.htmlSerialize||(ka._default=[1,"div<div>","</div>"]);d.fn.extend({text:function(a){return d.isFunction(a)?this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))}):typeof a!=
"object"&&a!==b?this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(a)):d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return d.isFunction(a)?this.each(function(b){d(this).wrapInner(a.call(this,
b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},
before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());
return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?!1:a;b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},
html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(hb,""):null;if(typeof a=="string"&&!Oa.test(a)&&(d.support.leadingWhitespace||!Fa.test(a))&&!ka[(Na.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ma,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}else d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):
this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove();b?d(b).before(a):d(c).append(a)})}return this.length?this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,
c,e){var f,g,k,j=a[0],l=[];if(!d.support.checkClone&&arguments.length===3&&typeof j=="string"&&Pa.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b);g.domManip(a,c,e)});if(this[0]){k=j&&j.parentNode;d.support.parentNode&&k&&k.nodeType===11&&k.childNodes.length===this.length?f={fragment:k}:f=d.buildFragment(a,this,l);k=f.fragment;k.childNodes.length===1?g=k=k.firstChild:g=k.firstChild;if(g){c=
c&&d.nodeName(g,"tr");g=0;for(var r=this.length,q=r-1;g<r;g++)e.call(c?d.nodeName(this[g],"table")?this[g].getElementsByTagName("tbody")[0]||this[g].appendChild(this[g].ownerDocument.createElement("tbody")):this[g]:this[g],f.cacheable||r>1&&g<q?d.clone(k,!0,!0):k)}l.length&&d.each(l,w)}return this}});d.buildFragment=function(a,b,c){var e,f,g,k;b&&b[0]&&(k=b[0].ownerDocument||b[0]);k.createDocumentFragment||(k=o);a.length===1&&typeof a[0]=="string"&&a[0].length<512&&k===o&&a[0].charAt(0)==="<"&&!Oa.test(a[0])&&
(d.support.checkClone||!Pa.test(a[0]))&&(f=!0,g=d.fragments[a[0]],g&&g!==1&&(e=g));e||(e=k.createDocumentFragment(),d.clean(a,k,e,c));f&&(d.fragments[a[0]]=g?e:1);return{fragment:e,cacheable:f}};d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],c=d(c),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&c.length===1)return c[b](this[0]),this;for(var f=
0,g=c.length;f<g;f++){var k=(f>0?this.clone(!0):this).get();d(c[f])[b](k);e=e.concat(k)}return this.pushStack(e,a,c.selector)}});d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,k;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){O(a,e);f=J(a);g=J(e);for(k=0;f[k];++k)g[k]&&O(f[k],g[k])}if(b&&(Z(a,e),c)){f=J(a);g=J(e);for(k=0;f[k];++k)Z(f[k],g[k])}return e},clean:function(a,b,c,e){b=b||o;typeof b.createElement=="undefined"&&(b=b.ownerDocument||
b[0]&&b[0].ownerDocument||o);for(var f=[],g,k=0,j;(j=a[k])!=null;k++)if(typeof j=="number"&&(j+=""),j){if(typeof j=="string")if(jb.test(j)){j=j.replace(Ma,"<$1></$2>");g=(Na.exec(j)||["",""])[1].toLowerCase();var l=ka[g]||ka._default,r=l[0],q=b.createElement("div");for(q.innerHTML=l[1]+j+l[2];r--;)q=q.lastChild;if(!d.support.tbody){r=ib.test(j);l=g==="table"&&!r?q.firstChild&&q.firstChild.childNodes:l[1]==="<table>"&&!r?q.childNodes:[];for(g=l.length-1;g>=0;--g)d.nodeName(l[g],"tbody")&&!l[g].childNodes.length&&
l[g].parentNode.removeChild(l[g])}!d.support.leadingWhitespace&&Fa.test(j)&&q.insertBefore(b.createTextNode(Fa.exec(j)[0]),q.firstChild);j=q.childNodes}else j=b.createTextNode(j);var m;if(!d.support.appendChecked)if(j[0]&&typeof(m=j.length)=="number")for(g=0;g<m;g++)v(j[g]);else v(j);j.nodeType?f.push(j):f=d.merge(f,j)}if(c){a=function(a){return!a.type||kb.test(a.type)};for(k=0;f[k];k++)e&&d.nodeName(f[k],"script")&&(!f[k].type||f[k].type.toLowerCase()==="text/javascript")?e.push(f[k].parentNode?
f[k].parentNode.removeChild(f[k]):f[k]):(f[k].nodeType===1&&(b=d.grep(f[k].getElementsByTagName("script"),a),f.splice.apply(f,[k+1,0].concat(b))),c.appendChild(f[k]))}return f},cleanData:function(a){for(var b,c,e=d.cache,f=d.expando,g=d.event.special,k=d.support.deleteExpando,j=0,l;(l=a[j])!=null;j++)if(!l.nodeName||!d.noData[l.nodeName.toLowerCase()])if(c=l[d.expando]){if((b=e[c]&&e[c][f])&&b.events){for(var r in b.events)g[r]?d.event.remove(l,r):d.removeEvent(l,r,b.handle);b.handle&&(b.handle.elem=
null)}k?delete l[d.expando]:l.removeAttribute&&l.removeAttribute(d.expando);delete e[c]}}});var Ga=/alpha\([^)]*\)/i,lb=/opacity=([^)]*)/,mb=/([A-Z]|^ms)/g,Qa=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob=/^([\-+])=([\-+.\de]+)/,pb={position:"absolute",visibility:"hidden",display:"block"},ab=["Left","Right"],bb=["Top","Bottom"],sa,Ra,Sa;d.fn.css=function(a,c){return arguments.length===2&&c===b?this:d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})};d.extend({cssHooks:{opacity:{get:function(a,
b){if(b){var d=sa(a,"opacity","opacity");return d===""?"1":d}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,k=d.camelCase(c),j=a.style,l=d.cssHooks[k],c=d.cssProps[k]||k;if(e===b)return l&&"get"in l&&(g=l.get(a,!1,f))!==b?g:j[c];f=typeof e;f==="string"&&(g=ob.exec(e))&&(e=+(g[1]+
1)*+g[2]+parseFloat(d.css(a,c)),f="number");if(!(e==null||f==="number"&&isNaN(e)))if(f==="number"&&!d.cssNumber[k]&&(e+="px"),!l||!("set"in l)||(e=l.set(a,e))!==b)try{j[c]=e}catch(r){}}},css:function(a,c,e){var f,g,c=d.camelCase(c);g=d.cssHooks[c];c=d.cssProps[c]||c;c==="cssFloat"&&(c="float");if(g&&"get"in g&&(f=g.get(a,!0,e))!==b)return f;if(sa)return sa(a,c)},swap:function(a,b,d){var c={},e;for(e in b)c[e]=a.style[e],a.style[e]=b[e];d.call(a);for(e in b)a.style[e]=c[e]}});d.curCSS=d.css;d.each(["height",
"width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){if(a.offsetWidth!==0)return H(a,b,e);d.swap(a,pb,function(){f=H(a,b,e)});return f}},set:function(a,b){if(!Qa.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}});d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return lb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,e=a.currentStyle,f=d.isNaN(b)?"":"alpha(opacity="+b*100+")",
g=e&&e.filter||c.filter||"";c.zoom=1;if(b>=1&&d.trim(g.replace(Ga,""))===""&&(c.removeAttribute("filter"),e&&!e.filter))return;c.filter=Ga.test(g)?g.replace(Ga,f):g+" "+f}});d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){b?c=sa(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})});o.defaultView&&o.defaultView.getComputedStyle&&(Ra=function(a,c){var e,f,c=c.replace(mb,"-$1").toLowerCase();if(!(f=
a.ownerDocument.defaultView))return b;if(f=f.getComputedStyle(a,null))e=f.getPropertyValue(c),e===""&&!d.contains(a.ownerDocument.documentElement,a)&&(e=d.style(a,c));return e});o.documentElement.currentStyle&&(Sa=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!Qa.test(d)&&nb.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":
d});sa=Ra||Sa;d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var qb=/%20/g,$a=/\[\]$/,Ta=/\r?\n/g,rb=/#.*$/,sb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,tb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ub=/^(?:GET|HEAD)$/,vb=
/^\/\//,Ua=/\?/,wb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,xb=/^(?:select|textarea)/i,Ka=/\s+/,yb=/([?&])_=[^&]*/,Va=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Wa=d.fn.load,Da={},Xa={},pa,qa,Ya=["*/"]+["*"];try{pa=T.href}catch(Eb){pa=o.createElement("a"),pa.href="",pa=pa.href}qa=Va.exec(pa.toLowerCase())||[];d.fn.extend({load:function(a,c,e){if(typeof a!="string"&&Wa)return Wa.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0)var g=a.slice(f,a.length),
a=a.slice(0,f);f="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c=="object"&&(c=d.param(c,d.ajaxSettings.traditional),f="POST"));var k=this;d.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText;a.isResolved()&&(a.done(function(a){c=a}),k.html(g?d("<div>").append(c.replace(wb,"")).find(g):c));e&&k.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):
this}).filter(function(){return this.name&&!this.disabled&&(this.checked||xb.test(this.nodeName)||tb.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a){return{name:b.name,value:a.replace(Ta,"\r\n")}}):{name:b.name,value:c.replace(Ta,"\r\n")}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}});d.each(["get","post"],function(a,c){d[c]=function(a,
e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}});d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?s(a,d.ajaxSettings):(b=a,a=d.ajaxSettings);s(a,b);return a},ajaxSettings:{url:pa,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(qa[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","*":Ya},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:u(Da),ajaxTransport:u(Xa),ajax:function(a,c){function e(a,c,h,i){if(t!==2){t=2;s&&clearTimeout(s);F=b;E=i||"";x.readyState=a>0?4:0;var p,m,D,i=c;if(h){var o=f,W=x,C=o.contents,y=
o.dataTypes,na=o.responseFields,v,w,I,Y;for(w in na)w in h&&(W[na[w]]=h[w]);for(;y[0]==="*";)y.shift(),v===b&&(v=o.mimeType||W.getResponseHeader("content-type"));if(v)for(w in C)if(C[w]&&C[w].test(v)){y.unshift(w);break}if(y[0]in h)I=y[0];else{for(w in h){if(!y[0]||o.converters[w+" "+y[0]]){I=w;break}Y||(Y=w)}I=I||Y}I?(I!==y[0]&&y.unshift(I),h=h[I]):h=void 0}else h=b;if(a>=200&&a<300||a===304){if(f.ifModified){if(v=x.getResponseHeader("Last-Modified"))d.lastModified[q]=v;if(v=x.getResponseHeader("Etag"))d.etag[q]=
v}if(a===304)i="notmodified",p=!0;else try{v=f;v.dataFilter&&(h=v.dataFilter(h,v.dataType));var z=v.dataTypes;w={};var L,ta,Z=z.length,B,A=z[0],H,K,J,U,G;for(L=1;L<Z;L++){if(L===1)for(ta in v.converters)typeof ta=="string"&&(w[ta.toLowerCase()]=v.converters[ta]);H=A;A=z[L];if(A==="*")A=H;else if(H!=="*"&&H!==A){K=H+" "+A;J=w[K]||w["* "+A];if(!J)for(U in G=b,w)if(B=U.split(" "),B[0]===H||B[0]==="*")if(G=w[B[1]+" "+A]){U=w[U];U===!0?J=G:G===!0&&(J=U);break}!J&&!G&&d.error("No conversion from "+K.replace(" ",
" to "));J!==!0&&(h=J?J(h):G(U(h)))}}m=h;i="success";p=!0}catch(Ea){i="parsererror",D=Ea}}else if(D=i,!i||a)i="error",a<0&&(a=0);x.status=a;x.statusText=""+(c||i);p?j.resolveWith(g,[m,i,x]):j.rejectWith(g,[x,i,D]);x.statusCode(r);r=b;u&&k.trigger("ajax"+(p?"Success":"Error"),[x,f,p?m:D]);l.resolveWith(g,[x,i]);u&&(k.trigger("ajaxComplete",[x,f]),--d.active||d.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b);var c=c||{},f=d.ajaxSetup({},c),g=f.context||f,k=g!==f&&(g.nodeType||g instanceof
d)?d(g):d.event,j=d.Deferred(),l=d._Deferred(),r=f.statusCode||{},q,m={},D={},E,o,F,s,W,t=0,u,C,x={readyState:0,setRequestHeader:function(a,b){if(!t){var c=a.toLowerCase(),a=D[c]=D[c]||a;m[a]=b}return this},getAllResponseHeaders:function(){return t===2?E:null},getResponseHeader:function(a){var c;if(t===2){if(!o)for(o={};c=sb.exec(E);)o[c[1].toLowerCase()]=c[2];c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){t||(f.mimeType=a);return this},abort:function(a){a=a||"abort";F&&F.abort(a);
e(0,a);return this}};j.promise(x);x.success=x.done;x.error=x.fail;x.complete=l.done;x.statusCode=function(a){if(a){var b;if(t<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.then(b,b)}return this};f.url=((a||f.url)+"").replace(rb,"").replace(vb,qa[1]+"//");f.dataTypes=d.trim(f.dataType||"*").toLowerCase().split(Ka);f.crossDomain==null&&(W=Va.exec(f.url.toLowerCase()),f.crossDomain=!(!W||W[1]==qa[1]&&W[2]==qa[2]&&(W[3]||(W[1]==="http:"?80:443))==(qa[3]||(qa[1]==="http:"?80:443))));f.data&&f.processData&&
typeof f.data!="string"&&(f.data=d.param(f.data,f.traditional));y(Da,f,c,x);if(t===2)return!1;u=f.global;f.type=f.type.toUpperCase();f.hasContent=!ub.test(f.type);u&&d.active++===0&&d.event.trigger("ajaxStart");if(!f.hasContent&&(f.data&&(f.url+=(Ua.test(f.url)?"&":"?")+f.data,delete f.data),q=f.url,f.cache===!1)){W=d.now();var na=f.url.replace(yb,"$1_="+W);f.url=na+(na===f.url?(Ua.test(f.url)?"&":"?")+"_="+W:"")}(f.data&&f.hasContent&&f.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",
f.contentType);f.ifModified&&(q=q||f.url,d.lastModified[q]&&x.setRequestHeader("If-Modified-Since",d.lastModified[q]),d.etag[q]&&x.setRequestHeader("If-None-Match",d.etag[q]));x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+Ya+"; q=0.01":""):f.accepts["*"]);for(C in f.headers)x.setRequestHeader(C,f.headers[C]);if(f.beforeSend&&(f.beforeSend.call(g,x,f)===!1||t===2))return x.abort(),!1;for(C in{success:1,error:1,complete:1})x[C](f[C]);
if(F=y(Xa,f,c,x)){x.readyState=1;u&&k.trigger("ajaxSend",[x,f]);f.async&&f.timeout>0&&(s=setTimeout(function(){x.abort("timeout")},f.timeout));try{t=1,F.send(m,e)}catch(v){t<2?e(-1,v):d.error(v)}}else e(-1,"No Transport");return x},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)t(g,
a[g],c,f);return e.join("&").replace(qb,"+")}});d.extend({active:0,lastModified:{},etag:{}});var zb=d.now(),Aa=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+zb++}});d.ajaxPrefilter("json jsonp",function(b,c,e){c=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(Aa.test(b.url)||c&&Aa.test(b.data))){var f,g=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,
k=a[g],j=b.url,l=b.data,r="$1"+g+"$2";b.jsonp!==!1&&(j=j.replace(Aa,r),b.url===j&&(c&&(l=l.replace(Aa,r)),b.data===l&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+g)));b.url=j;b.data=l;a[g]=function(a){f=[a]};e.always(function(){a[g]=k;f&&d.isFunction(k)&&a[g](f[0])});b.converters["script json"]=function(){f||d.error(g+" was not called");return f[0]};b.dataTypes[0]="json";return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});d.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=o.head||o.getElementsByTagName("head")[0]||o.documentElement;return{send:function(e,f){c=o.createElement("script");c.async="async";a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(a,
e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||f(200,"success")};d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var Ha=a.ActiveXObject?function(){for(var a in va)va[a](0,1)}:!1,Ab=0,va;d.ajaxSettings.xhr=a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&m()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:m;(function(a){d.extend(d.support,{ajax:!!a,
cors:!!a&&"withCredentials"in a})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(c){if(!c.crossDomain||d.support.cors){var e;return{send:function(f,g){var k=c.xhr(),j,l;c.username?k.open(c.type,c.url,c.async,c.username,c.password):k.open(c.type,c.url,c.async);if(c.xhrFields)for(l in c.xhrFields)k[l]=c.xhrFields[l];c.mimeType&&k.overrideMimeType&&k.overrideMimeType(c.mimeType);!c.crossDomain&&!f["X-Requested-With"]&&(f["X-Requested-With"]="XMLHttpRequest");try{for(l in f)k.setRequestHeader(l,
f[l])}catch(r){}k.send(c.hasContent&&c.data||null);e=function(a,f){var l,p,r,q,m;try{if(e&&(f||k.readyState===4))if(e=b,j&&(k.onreadystatechange=d.noop,Ha&&delete va[j]),f)k.readyState!==4&&k.abort();else{l=k.status;r=k.getAllResponseHeaders();q={};(m=k.responseXML)&&m.documentElement&&(q.xml=m);q.text=k.responseText;try{p=k.statusText}catch(D){p=""}!l&&c.isLocal&&!c.crossDomain?l=q.text?200:404:l===1223&&(l=204)}}catch(E){f||g(-1,E)}q&&g(l,p,q,r)};!c.async||k.readyState===4?e():(j=++Ab,Ha&&(va||
(va={},d(a).unload(Ha)),va[j]=e),k.onreadystatechange=e)},abort:function(){e&&e(0,1)}}}});var Ca={},la,ra,Bb=/^(?:toggle|show|hide)$/,Cb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Ba,Ia=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ya;d.fn.extend({show:function(a,b,c){var g;if(a||a===0)return this.animate(f("show",3),a,b,c);b=0;for(c=this.length;b<c;b++)a=this[b],a.style&&(g=a.style.display,!d._data(a,"olddisplay")&&
g==="none"&&(g=a.style.display=""),g===""&&d.css(a,"display")==="none"&&d._data(a,"olddisplay",e(a.nodeName)));for(b=0;b<c;b++)if(a=this[b],a.style&&(g=a.style.display,g===""||g==="none"))a.style.display=d._data(a,"olddisplay")||"";return this},hide:function(a,b,c){if(a||a===0)return this.animate(f("hide",3),a,b,c);a=0;for(b=this.length;a<b;a++)this[a].style&&(c=d.css(this[a],"display"),c!=="none"&&!d._data(this[a],"olddisplay")&&d._data(this[a],"olddisplay",c));for(a=0;a<b;a++)this[a].style&&(this[a].style.display=
"none");return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a=="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(f("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,f){var g=d.speed(b,c,f);if(d.isEmptyObject(a))return this.each(g.complete,
[!1]);a=d.extend({},a);return this[g.queue===!1?"each":"queue"](function(){var i;g.queue===!1&&d._mark(this);var b=d.extend({},g),c=this.nodeType===1,f=c&&d(this).is(":hidden"),h,k,j,l,n,r,q,p;b.animatedProperties={};for(j in a){h=d.camelCase(j);j!==h&&(a[h]=a[j],delete a[j]);k=a[h];d.isArray(k)?(b.animatedProperties[h]=k[1],i=a[h]=k[0],k=i):b.animatedProperties[h]=b.specialEasing&&b.specialEasing[h]||b.easing||"swing";if(k==="hide"&&f||k==="show"&&!f)return b.complete.call(this);c&&(h==="height"||
h==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],d.css(this,"display")==="inline"&&d.css(this,"float")==="none"&&(d.support.inlineBlockNeedsLayout?(l=e(this.nodeName),l==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(j in a)c=new d.fx(this,b,j),k=a[j],Bb.test(k)?c[k==="toggle"?f?"show":"hide":k]():(n=Cb.exec(k),r=c.cur(),n?
(q=parseFloat(n[2]),p=n[3]||(d.cssNumber[j]?"":"px"),p!=="px"&&(d.style(this,j,(q||1)+p),r*=(q||1)/c.cur(),d.style(this,j,r+p)),n[1]&&(q=(n[1]==="-="?-1:1)*q+r),c.custom(r,q,p)):c.custom(r,k,""));return!0})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=d.timers,c=a.length;for(b||d._unmark(!0,this);c--;)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))});b||this.dequeue();return this}});d.each({slideDown:f("show",1),slideUp:f("hide",1),slideToggle:f("toggle",1),fadeIn:{opacity:"show"},
fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});d.extend({speed:function(a,b,c){var e=a&&typeof a=="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration=="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default;e.old=e.complete;e.complete=function(a){d.isFunction(e.old)&&e.old.call(this);e.queue!==
!1?d.dequeue(this):a!==!1&&d._unmark(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];
var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function e(a){return f.step(a)}var f=this,g=d.fx;this.startTime=ya||l();this.start=a;this.end=b;this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&d.timers.push(e)&&!Ba&&(Ba=setInterval(g.tick,g.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop===
"width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=ya||l(),c=!0,e=this.elem,f=this.options,g,k;if(a||b>=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=!0;for(g in f.animatedProperties)f.animatedProperties[g]!==!0&&(c=!1);if(c){f.overflow!=null&&!d.support.shrinkWrapBlocks&&
d.each(["","X","Y"],function(a,b){e.style["overflow"+b]=f.overflow[a]});f.hide&&d(e).hide();if(f.hide||f.show)for(var j in f.animatedProperties)d.style(e,j,f.orig[j]);f.complete.call(e)}return!1}f.duration==Infinity?this.now=b:(k=b-this.startTime,this.state=k/f.duration,this.pos=d.easing[f.animatedProperties[this.prop]](this.state,k,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};d.extend(d.fx,{tick:function(){for(var a=d.timers,b=0;b<a.length;++b)a[b]()||
a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(Ba);Ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var Db=
/^t(?:able|d|h)$/i,Za=/^(?:body|html)$/i;"getBoundingClientRect"in o.documentElement?d.fn.offset=function(a){var b=this[0],e;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{e=b.getBoundingClientRect()}catch(f){}var g=b.ownerDocument,k=g.documentElement;if(!e||!d.contains(k,b))return e?{top:e.top,left:e.left}:{top:0,left:0};b=g.body;g=c(g);return{top:e.top+(g.pageYOffset||d.support.boxModel&&
k.scrollTop||b.scrollTop)-(k.clientTop||b.clientTop||0),left:e.left+(g.pageXOffset||d.support.boxModel&&k.scrollLeft||b.scrollLeft)-(k.clientLeft||b.clientLeft||0)}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,k=f.body;c=(f=f.defaultView)?f.getComputedStyle(b,null):
b.currentStyle;for(var j=b.offsetTop,l=b.offsetLeft;(b=b.parentNode)&&b!==k&&b!==g;){if(d.offset.supportsFixedPosition&&c.position==="fixed")break;c=f?f.getComputedStyle(b,null):b.currentStyle;j-=b.scrollTop;l-=b.scrollLeft;b===e&&(j+=b.offsetTop,l+=b.offsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!Db.test(b.nodeName))&&(j+=parseFloat(c.borderTopWidth)||0,l+=parseFloat(c.borderLeftWidth)||0),e=b.offsetParent);d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!==
"visible"&&(j+=parseFloat(c.borderTopWidth)||0,l+=parseFloat(c.borderLeftWidth)||0)}if(c.position==="relative"||c.position==="static")j+=k.offsetTop,l+=k.offsetLeft;d.offset.supportsFixedPosition&&c.position==="fixed"&&(j+=Math.max(g.scrollTop,k.scrollTop),l+=Math.max(g.scrollLeft,k.scrollLeft));return{top:j,left:l}};d.offset={initialize:function(){var a=o.body,b=o.createElement("div"),c,e,f,g=parseFloat(d.css(a,"marginTop"))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,
width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);c=b.firstChild;e=c.firstChild;f=c.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";c.style.overflow="hidden";c.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==g;a.removeChild(b);d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize();d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,
"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),k=d.css(a,"top"),j=d.css(a,"left"),l={},r={},q,m;(e==="absolute"||e==="fixed")&&d.inArray("auto",[k,j])>-1?(r=f.position(),q=r.top,m=r.left):(q=parseFloat(k)||0,m=parseFloat(j)||0);d.isFunction(b)&&(b=b.call(a,c,g));b.top!=null&&(l.top=b.top-g.top+q);b.left!=null&&(l.left=b.left-g.left+m);"using"in b?
b.using.call(a,l):f.css(l)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=Za.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0;c.left-=parseFloat(d.css(a,"marginLeft"))||0;e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||
o.body;a&&!Za.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,e){var f="scroll"+e;d.fn[f]=function(e){var g,h;return e===b?(g=this[0],!g?null:(h=c(g))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&h.document.documentElement[f]||h.document.body[f]:g[f]):this.each(function(){(h=c(this))?h.scrollTo(a?d(h).scrollLeft():e,a?e:d(h).scrollTop()):this[f]=e})}});d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();
d.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(d.css(a,e,"padding")):null};d.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(d.css(b,e,a?"margin":"border")):null};d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c],k=f.document.body;return f.document.compatMode==="CSS1Compat"&&g||k&&k["client"+
c]||g}return f.nodeType===9?Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]):a===b?(f=d.css(f,e),g=parseFloat(f),d.isNaN(g)?f:g):this.css(e,typeof a=="string"?a:a+"px")}});a.jQuery=a.$=d})(window);/*
 jQuery Address Plugin v1.4
 http://www.asual.com/jquery/address/

 Copyright (c) 2009-2010 Rostislav Hristov
 Dual licensed under the MIT or GPL Version 2 licenses.
 http://jquery.org/license

 Date: 2011-05-04 14:22:12 +0300 (Wed, 04 May 2011)
*/
(function(a){a.address=function(){var b=function(b){a(a.address).trigger(a.extend(a.Event(b),function(){for(var b={},c=a.address.parameterNames(),d=0,e=c.length;d<e;d++)b[c[d]]=a.address.parameter(c[d]);return{value:a.address.value(),path:a.address.path(),pathNames:a.address.pathNames(),parameterNames:c,parameters:b,queryString:a.address.queryString()}}.call(a.address)))},c=function(b,c,d){a().bind.apply(a(a.address),Array.prototype.slice.call(arguments));return a.address},e=function(){return W.pushState&&
z.state!==K},f=function(){return("/"+C.pathname.replace(RegExp(z.state),"")+C.search+(g()?"#"+g():"")).replace(j,"/")},g=function(){var a=C.href.indexOf("#");return a!=-1?t(C.href.substr(a+1),o):""},l=function(){return e()?f():g()},m=function(a){a=a.toString();return(z.strict&&a.substr(0,1)!="/"?"/":"")+a},t=function(a,b){return z.crawlable&&b?(a!==""?"!":"")+a:a.replace(/^\!/,"")},s=function(a,b){return parseInt(a.css(b),10)},y=function(a){for(var b,c,d=0,e=a.childNodes.length;d<e;d++){try{"src"in
a.childNodes[d]&&a.childNodes[d].src&&(b=String(a.childNodes[d].src))}catch(f){}(c=y(a.childNodes[d]))&&(b=c)}return b},u=function(){if(!ca){var a=l();Q!=a&&(B&&d<7?C.reload():(B&&d<8&&z.history&&Y(v,50),Q=a,H(o)))}},H=function(a){b(aa);b(a?A:S);Y(w,10)},w=function(){if(z.tracker!=="null"&&z.tracker!==null){var b=a.isFunction(z.tracker)?z.tracker:I[z.tracker],c=(C.pathname+C.search+(a.address&&!e()?a.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,"");a.isFunction(b)?b(c):a.isFunction(I.urchinTracker)?
I.urchinTracker(c):I.pageTracker!==K&&a.isFunction(I.pageTracker._trackPageview)?I.pageTracker._trackPageview(c):I._gaq!==K&&a.isFunction(I._gaq.push)&&I._gaq.push(["_trackPageview",decodeURI(c)])}},v=function(){var a="javascript:"+o+";document.open();document.writeln('<html><head><title>"+F.title.replace("'","\\'")+"</title><script>var "+V+' = "'+encodeURIComponent(l())+(F.domain!=C.hostname?'";document.domain="'+F.domain:"")+"\";<\/script></head></html>');document.close();";d<7?L.src=a:L.contentWindow.location.replace(a)},
ba=function(){if(ea&&ja!=-1){for(var a,b=ea.substr(ja+1).split("&"),c=0;c<b.length;c++)a=b[c].split("="),/^(autoUpdate|crawlable|history|strict|wrap)$/.test(a[0])&&(z[a[0]]=isNaN(a[1])?/^(true|yes)$/i.test(a[1]):parseInt(a[1],10)!==0),/^(state|tracker)$/.test(a[0])&&(z[a[0]]=a[1]);ea=null}Q=l()},J=function(){if(!da){da=M;ba();var c=function(){O.call(this);fa.call(this)},f=a("body").ajaxComplete(c);c();z.wrap&&(a("body > *").wrapAll('<div style="padding:'+(s(f,"marginTop")+s(f,"paddingTop"))+"px "+
(s(f,"marginRight")+s(f,"paddingRight"))+"px "+(s(f,"marginBottom")+s(f,"paddingBottom"))+"px "+(s(f,"marginLeft")+s(f,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+V+'" style="height:100%;overflow:auto;position:relative;'+(E&&!window.statusbar.visible?"resize:both;":"")+'" />'),a("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"}),E&&a('<style type="text/css" />').appendTo("head").text("#"+V+"::-webkit-resizer { background-color: #fff; }"));if(B&&d<8)c=F.getElementsByTagName("frameset")[0],
L=F.createElement((c?"":"i")+"frame"),c?(c.insertAdjacentElement("beforeEnd",L),c[c.cols?"cols":"rows"]+=",0",L.noResize=M,L.frameBorder=L.frameSpacing=0):(L.style.display="none",L.style.width=L.style.height=0,L.tabIndex=-1,F.body.insertAdjacentElement("afterBegin",L)),Y(function(){a(L).bind("load",function(){var a=L.contentWindow;Q=a[V]!==K?a[V]:"";if(Q!=l())H(o),C.hash=t(Q,M)});L.contentWindow[V]===K&&v()},50);Y(function(){b("init");H(o)},1);e()||(B&&d>7||!B&&"on"+X in I?I.addEventListener?I.addEventListener(X,
u,o):I.attachEvent&&I.attachEvent("on"+X,u):oa(u,50))}},O=function(){var b,c=a("a"),d=c.size(),e=-1,f=function(){++e!=d&&(b=a(c.get(e)),b.is('[rel*="address:"]')&&b.address(),Y(f,1))};Y(f,1)},Z=function(){Q!=l()&&(Q=l(),H(o))},U=function(){I.removeEventListener?I.removeEventListener(X,u,o):I.detachEvent&&I.detachEvent("on"+X,u)},fa=function(){if(z.crawlable){var b=C.pathname.replace(/\/$/,"");a("body").html().indexOf("_escaped_fragment_")!=-1&&a('a[href]:not([href^=http]), a[href*="'+document.domain+
'"]').each(function(){var c=a(this).attr("href").replace(/^http:/,"").replace(RegExp(b+"/?$"),"");(c===""||c.indexOf("_escaped_fragment_")!=-1)&&a(this).attr("href","#"+c.replace(/\/(.*)\?_escaped_fragment_=(.*)$/,"!$2"))})}},K,V="jQueryAddress",X="hashchange",aa="change",A="internalChange",S="externalChange",M=!0,o=!1,z={autoUpdate:M,crawlable:o,history:M,strict:M,wrap:o},T=a.browser,d=parseFloat(a.browser.version),N=T.mozilla,B=T.msie,q=T.opera,E=T.webkit||T.safari,x=o,I;try{I=top.document!==K?
top:window}catch(r){I=window}var F=I.document,W=I.history,C=I.location,oa=setInterval,Y=setTimeout,j=/\/{2,9}/g,T=navigator.userAgent,L,ea=y(document),ja=ea?ea.indexOf("?"):-1,ha=F.title,ca=o,da=o,R=M,ia=M,ga=o,Q=l();if(B){d=parseFloat(T.substr(T.indexOf("MSIE")+4));F.documentMode&&F.documentMode!=d&&(d=F.documentMode!=8?7:8);var ma=F.onpropertychange;F.onpropertychange=function(){ma&&ma.call(F);if(F.title!=ha&&F.title.indexOf("#"+l())!=-1)F.title=ha}}if(x=N&&d>=1||B&&d>=6||q&&d>=9.5||E&&d>=523){if(q)history.navigationMode=
"compatible";if(document.readyState=="complete")var G=setInterval(function(){a.address&&(J(),clearInterval(G))},50);else ba(),a(J);a(window).bind("popstate",Z).bind("unload",U)}else!x&&g()!==""?C.replace(C.href.substr(0,C.href.indexOf("#"))):w();return{bind:function(a,b,d){return c(a,b,d)},init:function(a){return c("init",a)},change:function(a){return c(aa,a)},internalChange:function(a){return c(A,a)},externalChange:function(a){return c(S,a)},baseURL:function(){var a=C.href;a.indexOf("#")!=-1&&(a=
a.substr(0,a.indexOf("#")));/\/$/.test(a)&&(a=a.substr(0,a.length-1));return a},autoUpdate:function(a){return a!==K?(z.autoUpdate=a,this):z.autoUpdate},crawlable:function(a){return a!==K?(z.crawlable=a,this):z.crawlable},history:function(a){return a!==K?(z.history=a,this):z.history},state:function(a){if(a!==K){z.state=a;var b=f();z.state!==K&&(W.pushState?b.substr(0,3)=="/#/"&&C.replace(z.state.replace(/^\/$/,"")+b.substr(2)):b!="/"&&b.replace(/^\/#/,"")!=g()&&Y(function(){C.replace(z.state.replace(/^\/$/,
"")+"/#"+b)},1));return this}return z.state},strict:function(a){return a!==K?(z.strict=a,this):z.strict},tracker:function(a){return a!==K?(z.tracker=a,this):z.tracker},wrap:function(a){return a!==K?(z.wrap=a,this):z.wrap},update:function(){ga=M;this.value(Q);ga=o;return this},title:function(a){return a!==K?(Y(function(){ha=F.title=a;if(ia&&L&&L.contentWindow&&L.contentWindow.document)L.contentWindow.document.title=a,ia=o;!R&&N&&C.replace(C.href.indexOf("#")!=-1?C.href:C.href+"#");R=o},50),this):F.title},
value:function(a){if(a!==K){a=m(a);a=="/"&&(a="");if(Q==a&&!ga)return;R=M;Q=a;if(z.autoUpdate||ga)if(H(M),e())W[z.history?"pushState":"replaceState"]({},"",z.state.replace(/\/$/,"")+(Q===""?"/":Q));else{ca=M;if(E)z.history?C.hash="#"+t(Q,M):C.replace("#"+t(Q,M));else if(Q!=l())z.history?C.hash="#"+t(Q,M):C.replace("#"+t(Q,M));B&&d<8&&z.history&&Y(v,50);E?Y(function(){ca=o},1):ca=o}return this}return!x?null:m(Q)},path:function(a){if(a!==K){var b=this.queryString(),c=this.hash();this.value(a+(b?"?"+
b:"")+(c?"#"+c:""));return this}return m(Q).split("#")[0].split("?")[0]},pathNames:function(){var a=this.path(),b=a.replace(j,"/").split("/");(a.substr(0,1)=="/"||a.length===0)&&b.splice(0,1);a.substr(a.length-1,1)=="/"&&b.splice(b.length-1,1);return b},queryString:function(a){if(a!==K){var b=this.hash();this.value(this.path()+(a?"?"+a:"")+(b?"#"+b:""));return this}a=Q.split("?");return a.slice(1,a.length).join("?").split("#")[0]},parameter:function(b,c,d){var e,f;if(c!==K){var g=this.parameterNames();
f=[];c=c?c.toString():"";for(e=0;e<g.length;e++){var j=g[e],l=this.parameter(j);typeof l=="string"&&(l=[l]);j==b&&(l=c===null||c===""?[]:d?l.concat([c]):[c]);for(var r=0;r<l.length;r++)f.push(j+"="+l[r])}a.inArray(b,g)==-1&&c!==null&&c!==""&&f.push(b+"="+c);this.queryString(f.join("&"));return this}if(c=this.queryString()){d=[];f=c.split("&");for(e=0;e<f.length;e++)c=f[e].split("="),c[0]==b&&d.push(c.slice(1).join("="));if(d.length!==0)return d.length!=1?d:d[0]}},parameterNames:function(){var b=this.queryString(),
c=[];if(b&&b.indexOf("=")!=-1)for(var b=b.split("&"),d=0;d<b.length;d++){var e=b[d].split("=")[0];a.inArray(e,c)==-1&&c.push(e)}return c},hash:function(a){if(a!==K)return this.value(Q.split("#")[0]+(a?"#"+a:"")),this;a=Q.split("#");return a.slice(1,a.length).join("#")}}}();a.fn.address=function(b){if(!a(this).attr("address")){var c=function(c){if(c.shiftKey||c.ctrlKey||c.metaKey)return!0;if(a(this).is("a")){var f=b?b.call(this):/address:/.test(a(this).attr("rel"))?a(this).attr("rel").split("address:")[1].split(" ")[0]:
a.address.state()!==void 0&&a.address.state()!="/"?a(this).attr("href").replace(RegExp("^(.*"+a.address.state()+"|\\.)"),""):a(this).attr("href").replace(/^(#\!?|\.)/,"");isHTML5Browser==!1?a.address.value(f):(document.location.href.length-1==document.location.href.lastIndexOf("/")?setHTML5lastURL(document.location.href.slice(0,document.location.href.length-1)):setHTML5lastURL(document.location.href),f=a(this).attr("rel").replace("address:",""),albumInURL==!0&&(f=f[0]=="/"?"album"+f:"album/"+f),changeURLHTML5(f));
c.preventDefault()}};a(this).click(c).live("click",c).live("submit",function(c){if(a(this).is("form")){var f=a(this).attr("action"),f=b?b.call(this):(f.indexOf("?")!=-1?f.replace(/&$/,""):f+"?")+a(this).serialize();a.address.value(f);c.preventDefault()}}).attr("address",!0)}return this}})(jQuery);/*
 jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/

 Uses the built in easing capabilities added In jQuery 1.1
 to offer multiple easing options

 TERMS OF USE - jQuery Easing

 Open source under the BSD License. 

 Copyright � 2008 George McGinley Smith
 All rights reserved.

 Redistribution and use in source and binary forms, with or without modification, 
 are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this list of 
 conditions and the following disclaimer.
 Redistributions in binary form must reproduce the above copyright notice, this list 
 of conditions and the following disclaimer in the documentation and/or other materials 
 provided with the distribution.

 Neither the name of the author nor the names of contributors may be used to endorse 
 or promote products derived from this software without specific prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 OF THE POSSIBILITY OF SUCH DAMAGE. 

*/
jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,e,f){return jQuery.easing[jQuery.easing.def](a,b,c,e,f)},easeInQuad:function(a,b,c,e,f){return e*(b/=f)*b+c},easeOutQuad:function(a,b,c,e,f){return-e*(b/=f)*(b-2)+c},easeInOutQuad:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b+c:-e/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,e,f){return e*(b/=f)*b*b+c},easeOutCubic:function(a,b,c,e,f){return e*((b=b/f-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b*b+c:e/
2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,e,f){return e*(b/=f)*b*b*b+c},easeOutQuart:function(a,b,c,e,f){return-e*((b=b/f-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b*b*b+c:-e/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,e,f){return e*(b/=f)*b*b*b*b+c},easeOutQuint:function(a,b,c,e,f){return e*((b=b/f-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b*b*b*b+c:e/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,e,f){return-e*Math.cos(b/
f*(Math.PI/2))+e+c},easeOutSine:function(a,b,c,e,f){return e*Math.sin(b/f*(Math.PI/2))+c},easeInOutSine:function(a,b,c,e,f){return-e/2*(Math.cos(Math.PI*b/f)-1)+c},easeInExpo:function(a,b,c,e,f){return b==0?c:e*Math.pow(2,10*(b/f-1))+c},easeOutExpo:function(a,b,c,e,f){return b==f?c+e:e*(-Math.pow(2,-10*b/f)+1)+c},easeInOutExpo:function(a,b,c,e,f){return b==0?c:b==f?c+e:(b/=f/2)<1?e/2*Math.pow(2,10*(b-1))+c:e/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,e,f){return-e*(Math.sqrt(1-(b/=f)*
b)-1)+c},easeOutCirc:function(a,b,c,e,f){return e*Math.sqrt(1-(b=b/f-1)*b)+c},easeInOutCirc:function(a,b,c,e,f){return(b/=f/2)<1?-e/2*(Math.sqrt(1-b*b)-1)+c:e/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,e,f){var a=1.70158,g=0,l=e;if(b==0)return c;if((b/=f)==1)return c+e;g||(g=f*0.3);l<Math.abs(e)?(l=e,a=g/4):a=g/(2*Math.PI)*Math.asin(e/l);return-(l*Math.pow(2,10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,e,f){var a=1.70158,g=0,l=e;if(b==0)return c;if((b/=
f)==1)return c+e;g||(g=f*0.3);l<Math.abs(e)?(l=e,a=g/4):a=g/(2*Math.PI)*Math.asin(e/l);return l*Math.pow(2,-10*b)*Math.sin((b*f-a)*2*Math.PI/g)+e+c},easeInOutElastic:function(a,b,c,e,f){var a=1.70158,g=0,l=e;if(b==0)return c;if((b/=f/2)==2)return c+e;g||(g=f*0.3*1.5);l<Math.abs(e)?(l=e,a=g/4):a=g/(2*Math.PI)*Math.asin(e/l);return b<1?-0.5*l*Math.pow(2,10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/g)+c:l*Math.pow(2,-10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/g)*0.5+e+c},easeInBack:function(a,b,c,e,f,g){g==void 0&&
(g=1.70158);return e*(b/=f)*b*((g+1)*b-g)+c},easeOutBack:function(a,b,c,e,f,g){g==void 0&&(g=1.70158);return e*((b=b/f-1)*b*((g+1)*b+g)+1)+c},easeInOutBack:function(a,b,c,e,f,g){g==void 0&&(g=1.70158);return(b/=f/2)<1?e/2*b*b*(((g*=1.525)+1)*b-g)+c:e/2*((b-=2)*b*(((g*=1.525)+1)*b+g)+2)+c},easeInBounce:function(a,b,c,e,f){return e-jQuery.easing.easeOutBounce(a,f-b,0,e,f)+c},easeOutBounce:function(a,b,c,e,f){return(b/=f)<1/2.75?e*7.5625*b*b+c:b<2/2.75?e*(7.5625*(b-=1.5/2.75)*b+0.75)+c:b<2.5/2.75?e*
(7.5625*(b-=2.25/2.75)*b+0.9375)+c:e*(7.5625*(b-=2.625/2.75)*b+0.984375)+c},easeInOutBounce:function(a,b,c,e,f){return b<f/2?jQuery.easing.easeInBounce(a,b*2,0,e,f)*0.5+c:jQuery.easing.easeOutBounce(a,b*2-f,0,e,f)*0.5+e*0.5+c}});/*
 ColorBox v1.3.18 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
 Copyright (c) 2011 Jack Moore - jack@colorpowered.com
 Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
(function(a,b,c){function e(c,d,e){c=b.createElement(c);return d&&(c.id=w+d),e&&(c.style.cssText=e),a(c)}function f(a){var b=N.length,a=(da+a)%b;return a<0?b+a:a}function g(a,b){return Math.round((/%/.test(a)?(b==="x"?B.width():B.height())/100:1)*parseInt(a,10))}function l(a){return j.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function m(){var b;j=a.extend({},a.data(ca,H));for(b in j)a.isFunction(j[b])&&b.slice(0,2)!=="on"&&(j[b]=j[b].call(ca));j.rel=j.rel||ca.rel||"nofollow";j.href=
j.href||a(ca).attr("href");j.title=j.title||ca.title;typeof j.href=="string"&&(j.href=a.trim(j.href))}function t(b,c){a.event.trigger(b);c&&c.call(ca)}function s(){var a,b=w+"Slideshow_",c="click."+w,d,e;j.slideshow&&N[1]?(d=function(){F.text(j.slideshowStop).unbind(c).bind(O,function(){if(da<N.length-1||j.loop)a=setTimeout(G.next,j.slideshowSpeed)}).bind(J,function(){clearTimeout(a)}).one(c+" "+Z,e);A.removeClass(b+"off").addClass(b+"on");a=setTimeout(G.next,j.slideshowSpeed)},e=function(){clearTimeout(a);
F.text(j.slideshowStart).unbind([O,J,Z,c].join(" ")).one(c,function(){G.next();d()});A.removeClass(b+"on").addClass(b+"off")},j.slideshowAuto?d():e()):A.removeClass(b+"off "+b+"on")}function y(b){if(!Q){ca=b;m();N=a(ca);da=0;j.rel!=="nofollow"&&(N=a("."+v).filter(function(){return(a.data(this,H).rel||this.rel)===j.rel}),da=N.index(ca),da===-1&&(N=N.add(ca),da=N.length-1));if(!ia){ia=ga=!0;A.show();if(j.returnFocus)try{ca.blur(),a(ca).one(U,function(){try{this.focus()}catch(a){}})}catch(c){}aa.css({opacity:+j.opacity,
cursor:j.overlayClose?"pointer":"auto"}).show();j.w=g(j.initialWidth,"x");j.h=g(j.initialHeight,"y");G.position();V&&B.bind("resize."+X+" scroll."+X,function(){aa.css({width:B.width(),height:B.height(),top:B.scrollTop(),left:B.scrollLeft()})}).trigger("resize."+X);t(ba,j.onOpen);Y.add(I).hide();oa.html(j.close).show()}G.load(!0)}}var u={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,
inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},H="colorbox",w="cbox",
v=w+"Element",ba=w+"_open",J=w+"_load",O=w+"_complete",Z=w+"_cleanup",U=w+"_closed",fa=w+"_purge",K=a.browser.msie&&!a.support.opacity,V=K&&a.browser.version<7,X=w+"_IE6",aa,A,S,M,o,z,T,d,N,B,q,E,x,I,r,F,W,C,oa,Y,j,L,ea,ja,ha,ca,da,R,ia,ga,Q,ma,G;G=a.fn[H]=a[H]=function(b,c){var d=this,b=b||{};G.init();if(!d[0]){if(d.selector)return d;d=a("<a/>");b.open=!0}return c&&(b.onComplete=c),d.each(function(){a.data(this,H,a.extend({},a.data(this,H)||u,b));a(this).addClass(v)}),(a.isFunction(b.open)&&b.open.call(d)||
b.open)&&y(d[0]),d};G.init=function(){A||(a("body")[0]?(B=a(c),A=e("div").attr({id:H,"class":K?w+(V?"IE6":"IE"):""}),aa=e("div","Overlay",V?"position:absolute":"").hide(),S=e("div","Wrapper"),M=e("div","Content").append(q=e("div","LoadedContent","width:0; height:0; overflow:hidden"),x=e("div","LoadingOverlay").add(e("div","LoadingGraphic")),I=e("div","Title"),r=e("div","Current"),W=e("div","Next"),C=e("div","Previous"),F=e("div","Slideshow").bind(ba,s),oa=e("div","Close")),S.append(e("div").append(e("div",
"TopLeft"),o=e("div","TopCenter"),e("div","TopRight")),e("div",!1,"clear:left").append(z=e("div","MiddleLeft"),M,T=e("div","MiddleRight")),e("div",!1,"clear:left").append(e("div","BottomLeft"),d=e("div","BottomCenter"),e("div","BottomRight"))).find("div div").css({"float":"left"}),E=e("div",!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(aa,A.append(S,E)),L=o.height()+d.height()+M.outerHeight(!0)-M.height(),ea=z.width()+T.width()+M.outerWidth(!0)-M.width(),
ja=q.outerHeight(!0),ha=q.outerWidth(!0),A.css({"padding-bottom":L,"padding-right":ea}).hide(),W.click(function(){G.next()}),C.click(function(){G.prev()}),oa.click(function(){G.close()}),Y=W.add(C).add(r).add(F),aa.click(function(){j.overlayClose&&G.close()}),a(b).bind("keydown."+w,function(a){var b=a.keyCode;ia&&j.escKey&&b===27&&(a.preventDefault(),G.close());ia&&j.arrowKey&&N[1]&&(b===37?(a.preventDefault(),C.click()):b===39&&(a.preventDefault(),W.click()))})):a(G.init))};G.remove=function(){A.add(aa).remove();
A=null;a("."+v).removeData(H).removeClass(v)};G.position=function(a,b){function c(a){o[0].style.width=d[0].style.width=M[0].style.width=a.style.width;x[0].style.height=x[1].style.height=M[0].style.height=z[0].style.height=T[0].style.height=a.style.height}var e=0,f=0,l=A.offset();B.unbind("resize."+w);A.css({top:-99999,left:-99999});j.fixed&&!V?A.css({position:"fixed"}):(e=B.scrollTop(),f=B.scrollLeft(),A.css({position:"absolute"}));j.right!==!1?f+=Math.max(B.width()-j.w-ha-ea-g(j.right,"x"),0):j.left!==
!1?f+=g(j.left,"x"):f+=Math.round(Math.max(B.width()-j.w-ha-ea,0)/2);j.bottom!==!1?e+=Math.max(B.height()-j.h-ja-L-g(j.bottom,"y"),0):j.top!==!1?e+=g(j.top,"y"):e+=Math.round(Math.max(B.height()-j.h-ja-L,0)/2);A.css({top:l.top,left:l.left});a=A.width()===j.w+ha&&A.height()===j.h+ja?0:a||0;S[0].style.width=S[0].style.height="9999px";A.dequeue().animate({width:j.w+ha,height:j.h+ja,top:e,left:f},{duration:a,complete:function(){c(this);ga=!1;S[0].style.width=j.w+ha+ea+"px";S[0].style.height=j.h+ja+L+
"px";b&&b();setTimeout(function(){B.bind("resize."+w,G.position)},1)},step:function(){c(this)}})};G.resize=function(a){ia&&(a=a||{},a.width&&(j.w=g(a.width,"x")-ha-ea),a.innerWidth&&(j.w=g(a.innerWidth,"x")),q.css({width:j.w}),a.height&&(j.h=g(a.height,"y")-ja-L),a.innerHeight&&(j.h=g(a.innerHeight,"y")),!a.innerHeight&&!a.height&&(q.css({height:"auto"}),j.h=q.height()),q.css({height:j.h}),G.position(j.transition==="none"?0:j.speed))};G.prep=function(b){if(ia){var c,d=j.transition==="none"?0:j.speed;
q.remove();q=e("div","LoadedContent").append(b);q.hide().appendTo(E.show()).css({width:(j.w=j.w||q.width(),j.w=j.mw&&j.mw<j.w?j.mw:j.w,j.w),overflow:j.scrolling?"auto":"hidden"}).css({height:(j.h=j.h||q.height(),j.h=j.mh&&j.mh<j.h?j.mh:j.h,j.h)}).prependTo(M);E.hide();a(R).css({"float":"none"});V&&a("select").not(A.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(Z,function(){this.style.visibility="inherit"});c=function(){function b(){K&&A[0].style.removeAttribute("filter")}
var c,g;c=N.length;var k,m,E,o;if(ia){m=function(){clearTimeout(ma);x.hide();t(O,j.onComplete)};K&&R&&q.fadeIn(100);I.html(j.title).add(q).show();if(c>1){if(typeof j.current=="string"&&r.html(j.current.replace("{current}",da+1).replace("{total}",c)).show(),W[j.loop||da<c-1?"show":"hide"]().html(j.next),C[j.loop||da?"show":"hide"]().html(j.previous),j.slideshow&&F.show(),j.preloading)for(c=[f(-1),f(1)];g=N[c.pop()];)E=a.data(g,H).href||g.href,a.isFunction(E)&&(E=E.call(g)),l(E)&&(o=new Image,o.src=
E)}else Y.hide();j.iframe?(k=e("iframe")[0],"frameBorder"in k&&(k.frameBorder=0),"allowTransparency"in k&&(k.allowTransparency="true"),k.name=w+ +new Date,j.fastIframe?m():a(k).one("load",m),k.src=j.href,j.scrolling||(k.scrolling="no"),a(k).addClass(w+"Iframe").appendTo(q).one(fa,function(){k.src="//about:blank"})):m();j.transition==="fade"?A.fadeTo(d,1,b):b()}};j.transition==="fade"?A.fadeTo(d,0,function(){G.position(0,c)}):G.position(d,c)}};G.load=function(b){var c,d,f=G.prep;ga=!0;R=!1;ca=N[da];
b||m();t(fa);t(J,j.onLoad);j.h=j.height?g(j.height,"y")-ja-L:j.innerHeight&&g(j.innerHeight,"y");j.w=j.width?g(j.width,"x")-ha-ea:j.innerWidth&&g(j.innerWidth,"x");j.mw=j.w;j.mh=j.h;j.maxWidth&&(j.mw=g(j.maxWidth,"x")-ha-ea,j.mw=j.w&&j.w<j.mw?j.w:j.mw);j.maxHeight&&(j.mh=g(j.maxHeight,"y")-ja-L,j.mh=j.h&&j.h<j.mh?j.h:j.mh);c=j.href;ma=setTimeout(function(){x.show()},100);j.inline?(e("div").hide().insertBefore(a(c)[0]).one(fa,function(){a(this).replaceWith(q.children())}),f(a(c))):j.iframe?f(" "):
j.html?f(j.html):l(c)?(a(R=new Image).addClass(w+"Photo").error(function(){j.title=!1;f(e("div","Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null;j.scalePhotos&&(d=function(){R.height-=R.height*a;R.width-=R.width*a},j.mw&&R.width>j.mw&&(a=(R.width-j.mw)/R.width,d()),j.mh&&R.height>j.mh&&(a=(R.height-j.mh)/R.height,d()));j.h&&(R.style.marginTop=Math.max(j.h-R.height,0)/2+"px");N[1]&&(da<N.length-1||j.loop)&&(R.style.cursor="pointer",R.onclick=function(){G.next()});
K&&(R.style.msInterpolationMode="bicubic");setTimeout(function(){f(R)},1)}),setTimeout(function(){R.src=c},1)):c&&E.load(c,j.data,function(b,c,d){f(c==="error"?e("div","Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})};G.next=function(){!ga&&N[1]&&(da<N.length-1||j.loop)&&(da=f(1),G.load())};G.prev=function(){!ga&&N[1]&&(da||j.loop)&&(da=f(-1),G.load())};G.close=function(){ia&&!Q&&(Q=!0,ia=!1,t(Z,j.onCleanup),B.unbind("."+w+" ."+X),aa.fadeTo(200,0),A.stop().fadeTo(300,0,function(){A.add(aa).css({opacity:1,
cursor:"auto"}).hide();t(fa);q.remove();setTimeout(function(){Q=!1;t(U,j.onClosed)},1)}))};G.element=function(){return a(ca)};G.settings=u;a("."+v,b).live("click",function(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),y(this))});G.init()})(jQuery,document,this);/*
 Cookie plugin

 Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 Dual licensed under the MIT and GPL licenses:
 http://www.opensource.org/licenses/mit-license.php
 http://www.gnu.org/licenses/gpl.html

*/
jQuery.cookie=function(a,b,c){if(typeof b!="undefined"){c=c||{};if(b===null)b="",c.expires=-1;var e="";if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString))typeof c.expires=="number"?(e=new Date,e.setTime(e.getTime()+c.expires*864E5)):e=c.expires,e="; expires="+e.toUTCString();var f=c.path?"; path="+c.path:"",g=c.domain?"; domain="+c.domain:"",c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),e,f,g,c].join("")}else{b=null;if(document.cookie&&document.cookie!=""){c=
document.cookie.split(";");for(e=0;e<c.length;e++)if(f=jQuery.trim(c[e]),f.substring(0,a.length+1)==a+"="){b=decodeURIComponent(f.substring(a.length+1));break}}return b}};/*
 Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.

 Version: 3.0.2

 Requires: 1.2.2+
*/
(function(a){function b(b){var c=[].slice.call(arguments,1),g=0,b=a.event.fix(b||window.event);b.type="mousewheel";b.wheelDelta&&(g=b.wheelDelta/120);b.detail&&(g=-b.detail/3);c.unshift(b,g);return a.event.handle.apply(this,c)}var c=["DOMMouseScroll","mousewheel"];a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],b,!1);else this.onmousewheel=b},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],
b,!1);else this.onmousewheel=null}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);if(isHTML5Browser==!1)$.address.change.listeners=[],$.address.change.enabled=!0;
var addressChangeCallback=function(a){if($.address.change.enabled||isHTML5Browser!=!1)if(typeof myAlbumURL!="undefined"&&registry.lastUrl==!1&&document.location.href.search(/!/)==-1&&document.location.href.search(RegExp(myAlbumURL,"g"))!=-1)registry.lastUrl=document.location.href;else{$.fn.colorbox.element().length>0&&$("#cboxTitle .login").length==0&&$.fn.colorbox.close();registry.lastUrl=document.location.href;var b=$('div[rel="address:/'+a.value+'"]'),c=$.address.path();if(isHTML5Browser==!0)c=
a.value;b.attr("href")!=null&&(c=b.attr("href"),rel=!0);c=="/"||c=="/#"||c=="#"||(testURL=isHTML5Browser==!1?c:getHTML5lastURL(),document.location.pathname.search(/^(\/album)/)!=-1&&isHTML5Browser==!1&&(c="/album"+c),toggleLoader(!0,!0),getAllFlash().each(function(){typeof this.stopPlayback=="function"&&this.stopPlayback()}),$.getJSON(c,{view:"json"},function(a){hideFolderSidebar=!1;closeSidebar($(".box_omasidebar"));$('head link[rel="image_src"]').remove();$('head meta[property*="og"]').remove();
window.scrollTo(0,0);if(typeof a.html!="undefined"&&a.html!=null){for(var c in a.html)if($(c).html(),c=="title")document.title=a.html[c];else{var g=a.html[c];$(c).html(g)}for(c in $.address.change.listeners.afterRequest)typeof $.address.change.listeners.afterRequest[c].afterChange=="function"&&$.address.change.listeners.afterRequest[c].afterChange(b)}toggleLoader(!1,!0)}))}};$.address.change(addressChangeCallback);function disableAddressPlugin(){$.address.change.enabled=!1}
function enableAddressPlugin(){$.address.change.enabled=!0}isHTML5Browser==!1&&enableAddressPlugin();$(document).ready(function(){$.address.value($.address.path());$.address.change.listeners={afterRequest:{},beforeRequest:{}};$.address.change.listeners.afterRequest[$.address.change.listeners.length]=addressChangeMainmenuListener;$.address.change.listeners.afterRequest[$.address.change.listeners.length]=addressChangeMainmenuRefreshListener});(function(a,b){function c(b,c){var l=b.nodeName.toLowerCase();if("area"===l){c=b.parentNode;l=c.name;if(!b.href||!l||c.nodeName.toLowerCase()!=="map")return!1;b=a("img[usemap=#"+l+"]")[0];return!!b&&e(b)}return(/input|select|textarea|button|object/.test(l)?!b.disabled:"a"==l?b.href||c:c)&&e(b)}function e(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.14",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var e=this;setTimeout(function(){a(e).focus();
c&&c.call(e)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,
"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var c=a(this[0]),e;c.length&&c[0]!==document;){e=c.css("position");if(e==="absolute"||e==="relative"||e==="fixed")if(e=parseInt(c.css("zIndex"),10),!isNaN(e)&&e!==0)return e;c=c.parent()}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,e){function l(b,c,e,f){a.each(m,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0;e&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0);f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return c}var m=e==="Width"?["Left","Right"]:["Top","Bottom"],t=e.toLowerCase(),s={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,
outerHeight:a.fn.outerHeight};a.fn["inner"+e]=function(c){return c===b?s["inner"+e].call(this):this.each(function(){a(this).css(t,l(this,c)+"px")})};a.fn["outer"+e]=function(b,c){return typeof b!=="number"?s["outer"+e].call(this,b):this.each(function(){a(this).css(t,l(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,e){return!!a.data(b,e[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var e=a.attr(b,"tabindex"),l=isNaN(e);return(l||e>=0)&&c(b,
!l)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=c.offsetHeight===100;a.support.selectstart="onselectstart"in c;b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,e){var b=a.ui[b].prototype,m;for(m in e)b.plugins[m]=b.plugins[m]||[],b.plugins[m].push([c,e[m]])},call:function(a,b,c){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=
0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;var c=c&&c==="left"?"scrollLeft":"scrollTop",e=!1;if(b[c]>0)return!0;b[c]=1;e=b[c]>0;b[c]=0;return e},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,e,m,t,s){return a.ui.isOverAxis(b,e,t)&&a.ui.isOverAxis(c,m,s)}}))})(jQuery);
(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var e=0,l;(l=b[e])!=null;e++)a(l).triggerHandler("remove");c(b)}}else{var e=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return e.call(a(this),b,c)})}}a.widget=function(b,c,e){var m=b.split(".")[0],t,b=b.split(".")[1];t=m+"-"+b;if(!e)e=c,c=a.Widget;a.expr[":"][t]=function(c){return!!a.data(c,
b)};a[m]=a[m]||{};a[m][b]=function(a,b){arguments.length&&this._createWidget(a,b)};c=new c;c.options=a.extend(!0,{},c.options);a[m][b].prototype=a.extend(!0,c,{namespace:m,widgetName:b,widgetEventPrefix:a[m][b].prototype.widgetEventPrefix||b,widgetBaseClass:t},e);a.widget.bridge(b,a[m][b])};a.widget.bridge=function(c,e){a.fn[c]=function(l){var m=typeof l==="string",t=Array.prototype.slice.call(arguments,1),s=this,l=!m&&t.length?a.extend.apply(null,[!0,l].concat(t)):l;if(m&&l.charAt(0)==="_")return s;
m?this.each(function(){var e=a.data(this,c),g=e&&a.isFunction(e[l])?e[l].apply(e,t):e;if(g!==e&&g!==b)return s=g,!1}):this.each(function(){var b=a.data(this,c);b?b.option(l||{})._init():a.data(this,c,new e(l,this))});return s}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this);this.element=a(c);this.options=a.extend(!0,{},this.options,this._getCreateOptions(),
b);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},
option:function(c,e){var l=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c==="string"){if(e===b)return this.options[c];l={};l[c]=e}this._setOptions(l);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",
!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,e){var m=this.options[b],c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();e=e||{};if(c.originalEvent)for(var b=a.event.props.length,t;b;)t=a.event.props[--b],c[t]=c.originalEvent[t];this.element.trigger(c,e);return!(a.isFunction(m)&&m.call(this.element[0],c,e)===!1||c.isDefaultPrevented())}}})(jQuery);
(function(a){var b=!1;a(document).mousedown(function(){b=!1});a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(e){if(!0===a.data(e.target,b.widgetName+".preventClickEvent"))return a.removeData(e.target,b.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(c){if(!b){this._mouseStarted&&this._mouseUp(c);this._mouseDownEvent=c;var e=this,f=c.which==1,g=typeof this.options.cancel=="string"?a(c.target).closest(this.options.cancel).length:!1;if(!f||g||!this._mouseCapture(c))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=this._mouseStart(c)!==
!1,!this._mouseStarted))return c.preventDefault(),!0;!0===a.data(c.target,this.widgetName+".preventClickEvent")&&a.removeData(c.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return e._mouseMove(a)};this._mouseUpDelegate=function(a){return e._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.preventDefault();return b=!0}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=
9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted)return this._mouseDrag(b),b.preventDefault();if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1)?this._mouseDrag(b):this._mouseUp(b);return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&
a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b);return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position=
"relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(b);if(!this.handle)return!1;a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;
this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=
b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",b)===!1)return this._clear(),!1;this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,!0);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b);return!0},_mouseDrag:function(b,c){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");
if(!c){c=this._uiHash();if(this._trigger("drag",b,c)===!1)return this._mouseUp({}),!1;this.position=c.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return!1},_mouseStop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,b));if(this.dropped)c=this.dropped,this.dropped=
!1;if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var e=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",b)!==!1&&e._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseUp:function(b){this.options.iframeFix===
!0&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b);return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(c=!0)});return c},_createHelper:function(b){var c=
this.options,b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;b.parents("body").length||b.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" "));a.isArray(b)&&(b={left:+b[0],top:+b[1]||0});if("left"in b)this.offset.click.left=
b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=
this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),
10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-
this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){var b=a(b.containment),c=b[0];if(c){b.offset();var e=a(c).css("overflow")!="hidden";this.containment=[(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0),(parseInt(a(c).css("borderTopWidth"),
10)||0)+(parseInt(a(c).css("paddingTop"),10)||0),(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=b}}else if(b.containment.constructor==
Array)this.containment=b.containment},_convertPositionTo:function(b,c){if(!c)c=this.position;var b=b=="absolute"?1:-1,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
f?0:e.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*b)}},_generatePosition:function(b){var c=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName),g=b.pageX,l=b.pageY;
if(this.originalPosition){var m;if(this.containment)this.relative_container?(m=this.relative_container.offset(),m=[this.containment[0]+m.left,this.containment[1]+m.top,this.containment[2]+m.left,this.containment[3]+m.top]):m=this.containment,b.pageX-this.offset.click.left<m[0]&&(g=m[0]+this.offset.click.left),b.pageY-this.offset.click.top<m[1]&&(l=m[1]+this.offset.click.top),b.pageX-this.offset.click.left>m[2]&&(g=m[2]+this.offset.click.left),b.pageY-this.offset.click.top>m[3]&&(l=m[3]+this.offset.click.top);
c.grid&&(l=c.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY,l=m?!(l-this.offset.click.top<m[1]||l-this.offset.click.top>m[3])?l:!(l-this.offset.click.top<m[1])?l-c.grid[1]:l+c.grid[1]:l,g=c.grid[0]?this.originalPageX+Math.round((g-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX,g=m?!(g-this.offset.click.left<m[0]||g-this.offset.click.left>m[2])?g:!(g-this.offset.click.left<m[0])?g-c.grid[0]:g+c.grid[0]:g)}return{top:l-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(b,c,e){e=e||this._uiHash();a.ui.plugin.call(this,b,[c,e]);if(b=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,b,c,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.14"});a.ui.plugin.add("draggable",
"connectToSortable",{start:function(b,c){var e=a(this).data("draggable"),f=e.options,g=a.extend({},c,{item:e.element});e.sortables=[];a(f.connectToSortable).each(function(){var c=a.data(this,"sortable");c&&!c.options.disabled&&(e.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,g))})},stop:function(b,c){var e=a(this).data("draggable"),f=a.extend({},c,{item:e.element});a.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;e.cancelHelperRemoval=!0;this.instance.cancelHelperRemoval=!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,f)})},drag:function(b,c){var e=a(this).data("draggable"),f=this;a.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs;
this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver)this.instance.isOver=1,this.instance.currentItem=a(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,
!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=e.offset.click.top,this.instance.offset.click.left=e.offset.click.left,this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top,e._trigger("toSortable",b),e.dropped=this.instance.element,e.currentItem=e.element,this.instance.fromOutside=e;this.instance.currentItem&&this.instance._mouseDrag(b)}else if(this.instance.isOver)this.instance.isOver=
0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),e._trigger("fromSortable",b),e.dropped=!1})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("draggable").options;if(b.css("cursor"))c._cursor=
b.css("cursor");b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(b,c){b=a(c.helper);c=a(this).data("draggable").options;if(b.css("opacity"))c._opacity=b.css("opacity");b.css("opacity",c.opacity)},stop:function(b,c){b=a(this).data("draggable").options;b._opacity&&a(c.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");
if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(b){var c=a(this).data("draggable"),e=c.options,f=!1;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")if(c.overflowOffset.top+c.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity)c.scrollParent[0].scrollTop=f=c.scrollParent[0].scrollTop+e.scrollSpeed;else if(b.pageY-c.overflowOffset.top<e.scrollSensitivity)c.scrollParent[0].scrollTop=
f=c.scrollParent[0].scrollTop-e.scrollSpeed;if(!e.axis||e.axis!="y")if(c.overflowOffset.left+c.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity)c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft+e.scrollSpeed;else if(b.pageX-c.overflowOffset.left<e.scrollSensitivity)c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(!e.axis||e.axis!="x")b.pageY-a(document).scrollTop()<e.scrollSensitivity?f=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed):
a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity&&(f=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed));if(!e.axis||e.axis!="y")b.pageX-a(document).scrollLeft()<e.scrollSensitivity?f=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity&&(f=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed))}f!==!1&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,b)}});
a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),c=b.options;b.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var c=a(this),f=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(b,c){for(var e=a(this).data("draggable"),f=e.options,g=f.snapTolerance,l=c.offset.left,m=l+e.helperProportions.width,t=c.offset.top,s=t+e.helperProportions.height,
y=e.snapElements.length-1;y>=0;y--){var u=e.snapElements[y].left,H=u+e.snapElements[y].width,w=e.snapElements[y].top,v=w+e.snapElements[y].height;if(u-g<l&&l<H+g&&w-g<t&&t<v+g||u-g<l&&l<H+g&&w-g<s&&s<v+g||u-g<m&&m<H+g&&w-g<t&&t<v+g||u-g<m&&m<H+g&&w-g<s&&s<v+g){if(f.snapMode!="inner"){var ba=Math.abs(w-s)<=g,J=Math.abs(v-t)<=g,O=Math.abs(u-m)<=g,Z=Math.abs(H-l)<=g;if(ba)c.position.top=e._convertPositionTo("relative",{top:w-e.helperProportions.height,left:0}).top-e.margins.top;if(J)c.position.top=e._convertPositionTo("relative",
{top:v,left:0}).top-e.margins.top;if(O)c.position.left=e._convertPositionTo("relative",{top:0,left:u-e.helperProportions.width}).left-e.margins.left;if(Z)c.position.left=e._convertPositionTo("relative",{top:0,left:H}).left-e.margins.left}var U=ba||J||O||Z;if(f.snapMode!="outer"){ba=Math.abs(w-t)<=g;J=Math.abs(v-s)<=g;O=Math.abs(u-l)<=g;Z=Math.abs(H-m)<=g;if(ba)c.position.top=e._convertPositionTo("relative",{top:w,left:0}).top-e.margins.top;if(J)c.position.top=e._convertPositionTo("relative",{top:v-
e.helperProportions.height,left:0}).top-e.margins.top;if(O)c.position.left=e._convertPositionTo("relative",{top:0,left:u}).left-e.margins.left;if(Z)c.position.left=e._convertPositionTo("relative",{top:0,left:H-e.helperProportions.width}).left-e.margins.left}!e.snapElements[y].snapping&&(ba||J||O||Z||U)&&e.options.snap.snap&&e.options.snap.snap.call(e.element,b,a.extend(e._uiHash(),{snapItem:e.snapElements[y].item}));e.snapElements[y].snapping=ba||J||O||Z||U}else e.snapElements[y].snapping&&e.options.snap.release&&
e.options.snap.release.call(e.element,b,a.extend(e._uiHash(),{snapItem:e.snapElements[y].item})),e.snapElements[y].snapping=!1}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options,b=a.makeArray(a(b.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(b.length){var c=parseInt(b[0].style.zIndex)||0;a(b).each(function(a){this.style.zIndex=c+a});this[0].style.zIndex=c+b.length}}});a.ui.plugin.add("draggable",
"zIndex",{start:function(b,c){b=a(c.helper);c=a(this).data("draggable").options;if(b.css("zIndex"))c._zIndex=b.css("zIndex");b.css("zIndex",c.zIndex)},stop:function(b,c){b=a(this).data("draggable").options;b._zIndex&&a(c.helper).css("zIndex",b._zIndex)}})})(jQuery);(function(a){function b(a){return typeof a=="object"?a:{top:a,left:a}}var c=a.scrollTo=function(b,c,g){a(window).scrollTo(b,c,g)};c.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1};c.window=function(){return a(window)._scrollable()};a.fn._scrollable=function(){return this.map(function(){if(this.nodeName&&a.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])==-1)return this;var b=(this.contentWindow||this).document||this.ownerDocument||this;return a.browser.safari||
b.compatMode=="BackCompat"?b.body:b.documentElement})};a.fn.scrollTo=function(e,f,g){typeof f=="object"&&(g=f,f=0);typeof g=="function"&&(g={onAfter:g});e=="max"&&(e=9E9);g=a.extend({},c.defaults,g);f=f||g.speed||g.duration;g.queue=g.queue&&g.axis.length>1;g.queue&&(f/=2);g.offset=b(g.offset);g.over=b(g.over);return this._scrollable().each(function(){function l(a){t.animate(u,f,g.easing,a&&function(){a.call(this,e,g)})}var m=this,t=a(m),s=e,y,u={},H=t.is("html,body");switch(typeof s){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(s)){s=
b(s);break}s=a(s,this);case "object":if(s.is||s.style)y=(s=a(s)).offset()}a.each(g.axis.split(""),function(a,b){var e=b=="x"?"Left":"Top",f=e.toLowerCase(),O="scroll"+e,Z=m[O],U=c.max(m,b);y?(u[O]=y[f]+(H?0:Z-t.offset()[f]),g.margin&&(u[O]-=parseInt(s.css("margin"+e))||0,u[O]-=parseInt(s.css("border"+e+"Width"))||0),u[O]+=g.offset[f]||0,g.over[f]&&(u[O]+=s[b=="x"?"width":"height"]()*g.over[f])):(e=s[f],u[O]=e.slice&&e.slice(-1)=="%"?parseFloat(e)/100*U:e);/^\d+$/.test(u[O])&&(u[O]=u[O]<=0?0:Math.min(u[O],
U));!a&&g.queue&&(Z!=u[O]&&l(g.onAfterFirst),delete u[O])});l(g.onAfter)}).end()};c.max=function(b,c){var g=c=="x"?"Width":"Height",l="scroll"+g;if(!a(b).is("html,body"))return b[l]-a(b)[g.toLowerCase()]();var g="client"+g,m=b.ownerDocument.documentElement,t=b.ownerDocument.body;return Math.max(m[l],t[l])-Math.min(m[g],t[g])}})(jQuery);(function(a){a.fn.scrollbar=function(b){b=a.extend({debug:!1,targetId:null,scrollSpeed:50,asset_path:null,scrollerOffset:!1},b);return this.each(function(){function c(){b.debug&&a("#scrollbar_debug_console").length==0&&(u.before('<div id="scrollbar_debug_console">&nbsp;<b>Debug-Konsole:</b><div id="scrollbar_debug_line" style="background:#000; color:#fff; padding:3px;"></div></div>'),a("#scrollbar_debug_console").css(O));e();f();g();a(window).resize(function(){g()})}function e(){var b='<div class="scrollbar_bar">';
b+='<div class="scrollbar_track"><div class="scrollbar_track_top"></div><div class="scrollbar_track_center"></div><div class="scrollbar_track_bottom"></div></div>';b+="</div>";m.html(b);m[0].id!=""&&(t=a("#"+m[0].id+" .scrollbar_bar"),s=a("#"+m[0].id+" .scrollbar_track"),t.css(H),s.css(w),a("#"+m[0].id+" .scrollbar_track_top").css(v),a("#"+m[0].id+" .scrollbar_track_center").css(ba),a("#"+m[0].id+" .scrollbar_track_bottom").css(J),s.draggable({axis:"y",containment:"parent",drag:function(){a("#"+m[0].id+
" .scrollbar_track div");u.scrollTop(l(!0),!0)},stop:function(){a("#"+m[0].id+" .scrollbar_track div")}}))}function f(){var c=0;u.bind({touchstart:function(a){a.preventDefault();c=(a.originalEvent.touches[0]||a.originalEvent.changedTouches[0]).pageY},touchmove:function(a){a.preventDefault();g(c-(a.originalEvent.touches[0]||a.originalEvent.changedTouches[0]).pageY,!1)}});a("#"+u[0].id+" a").die().live("click",function(){u.bind("scroll.refreshScrollbarAfterLinkClick",function(){g(l(!1),!0)});setTimeout(function(){u.unbind("scroll.refreshScrollbarAfterLinkClick");
g(l(!1),!0)},1E3)});u.unbind("mousewheel").mousewheel(function(a,c){g(-1*c*b.scrollSpeed)})}function g(c,e){var c=!isNaN(c)?c:0,f=u.scrollTop()+c,g=u[0].scrollHeight;if(!isNaN(f)&&!isNaN(g)){u.data("height",u.height()-a("#"+m[0].id+" .scrollbar_track_dummy_top").height()+5);f=f<0?0:f;g-u.data("height")<10?t.css("display","none"):t.css("display","block");var l=0,v=0;e||u.scrollTop(f);l=Math.round(u.scrollTop()*u.data("height")/g);v=Math.round(u.data("height")*u.data("height")/g)-b.scrollerOffset;v=
v<10?10:v;isNaN(l)||(s.css("top",l+b.scrollerOffset),s.height(v),a("#"+m[0].id+" .scrollbar_track_center").height(v-a("#"+m[0].id+" .scrollbar_track_top").outerHeight(!0)-a("#"+m[0].id+" .scrollbar_track_bottom").outerHeight(!0)),b.debug&&(f="ScrollPos: "+f+"<br>",f+="maxScroll: "+g+"<br>",f+="contentHeight: "+u.data("height")+"<br>",f+="content.scrollTop: "+u.scrollTop()+"<br>",f+="trackTop: "+l+"<br>",f+="trackHeight: "+v,a("#scrollbar_debug_line").html(f)))}}function l(c){var e=c?s.position().top:
u.scrollTop();u.data("height",u.height()-a("#"+m[0].id+" .scrollbar_track_dummy_top").height());e>u.data("height")&&(e=u.data("height"));var c=u[0].scrollHeight,f=e*c/u.data("height"),f=Math.round(f);b.debug&&(e="currentTrackPos: "+e+"<br>",e+="maxScroll: "+c+"<br>",e+="newScrollPos: "+f,e+="contentHeight: "+u.data("height")+"<br>",a("#scrollbar_debug_line").html(e));return f}var m=a(this),t=null,s=null,y=!1;if(b.targetId!=null){var u=a(b.targetId),H={position:"relative",height:"100%",width:"12px",
marginRight:"2px",marginBottom:"5px"},w={background:"",height:"50px",width:"10px",position:"relative",top:"0px",marginLeft:"3px"},v={height:"5px",width:"10px",background:b.asset_path==null?"#fff":'url("'+b.asset_path+'/img/scrollbar_sprite.png") no-repeat 0px 0px'},ba={width:"10px",background:b.asset_path==null?"#fff":'url("'+b.asset_path+'/img/scrollbar_sprite.png") repeat-y -12px 0px'},J={height:"5px",width:"10px",background:b.asset_path==null?"#fff":'url("'+b.asset_path+'/img/scrollbar_sprite.png") no-repeat 0px -6px'},
O={"font-family":"Courier New",left:"0",top:"0",color:"#fff",position:"fixed",zIndex:"999",background:"lightgray",border:"3px ridge gray",color:"#000",opacity:".9",width:"200px"};m.scrollbar.update=function(a){y=!0;a=parseInt(a);a=isNaN(a)?l(!1):a;g(a,!0)};y||c()}})}})(jQuery);/*
 easy website scripts 
*/
registry={client:{},player:{},lastUrl:""};registry.player.position={};registry.addressEnabled=!0;var hideFolderSidebar=registry.detailLoading=!1;HTML5lastURL="";registry.listener={};registry.commentLoader={};addressChangeMainmenuListener={afterChange:function(a){typeof a.attr("updatemm")!="undefined"&&($("#box_menu .menuShift .menuList .active").removeClass("active"),$('#box_menu .menuShift .menuList a[updatemm="'+a.attr("updatemm")+'"]').addClass("active").parent().addClass("active"))}};
addressChangeMainmenuRefreshListener={afterChange:function(){var a=self.document.location.hash.substring(1);a==""&&(a=null);if(a){var b=a.indexOf("!");b>-1&&(a=a.substr(0,b));a[0]=="/"&&(a=a.substr(1));a[a.length-1]=="/"&&(a=a.substr(0,a.length-1));a=$('#box_menu .menuShift .menuList a[updatemm="'+a+'"]');a.length>0&&($("#box_menu .menuShift .menuList .active").removeClass("active"),a.addClass("active").parent().addClass("active"))}}};
savePush=function(a){if(!(typeof this=="undefined"||typeof this!="object")){var b=!0;$.each(this,function(c,e){if(e==a||e[0]==a[0])return b=!1,!0});b&&this.push(a)}};function html2Plain(a,b){typeof a=="undefined"&&(a="");typeof b!="number"&&(b=3);var b=Math.max(0,Math.min(3,parseInt(b))),c=[/&/g,/</g,/>/g],e=["&amp;","&lt;","&gt;"];if(b==1||b==3)c.push(/'/g),e.push("&#039;");if(b==2||b==3)c.push(/'/g),e.push("&quot;");for(var f in c)a=a.replace(c[f],e[f]);return a}
function isMSIE(a){return typeof a=="undefined"?$.browser.msie:$.browser.msie&&$.browser.version.slice(0,1)==a}function toggleLoader(a,b){a?($("#ajax_loader").css("display","block"),b&&showOverlay()):($("#ajax_loader").css("display","none"),b&&hideOverlay())}function showOverlay(){$("#cboxOverlay").css({display:"block",opacity:0.5,"margin-top":$(window).scrollTop()})}function hideOverlay(){$("#cboxOverlay").css({display:"none","margin-top":0})}
function getFlashPlayer(){return navigator.appName.indexOf("Microsoft")!=-1?window.flPlayer:document.flPlayer}function getAllFlash(){return $.browser.msie?$("object"):$("embed")}$(window).bind("cbox_open",function(){$(".contextMenu").hide();$("#cboxOverlay").height($("#page").outerHeight(!0));getAllFlash().each(function(){typeof this.stopPlayback=="function"&&this.pausePlayback()})}).bind("cbox_closed",function(){getAllFlash().each(function(){typeof this.startPlayback=="function"&&this.startPlayback()})});
function detectFlash(){if($.browser.msie)try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash.1"),!0}catch(a){}else for(var b in navigator.mimeTypes)if(typeof navigator.mimeTypes[b]!="undefined"&&typeof navigator.mimeTypes[b].type!="undefined"&&navigator.mimeTypes[b].type.search(/flash/i)!=-1)return!0;return!1}
function scrollMenu2Right(){var a=$("#box_menu .menu2 .container .container_inner"),b=$("#box_menu .menu2 .container"),c=parseInt(a.css("margin-left")),c=parseInt(a.outerWidth()+c);c<=b.width()||a.animate({"margin-left":b.width()-c})}function scrollMenu2Left(){var a=$("#box_menu .menu2 .container .container_inner");parseInt(a.css("margin-left"))>=0||a.animate({"margin-left":0})}function checkSubmenu2containerHeight(){}
function resetSubmenu2containerHeight(){$(".contextMenuContainer").filter(":visible").length==0?$("#box_menu .menu2 .container").height(0):$("#box_menu .menu2 .container").height(registry.containerHeight)}
var positionSidebar=function(){var a=0;a+=$(this).scrollTop()-$("#top").outerHeight(!0)+10;a<0&&(a=0);var b=$(window).height();b-=$("#page #top").height()-$(window).scrollTop()>0?$("#page #top").height()-$(window).scrollTop():0;b-=$("#box_footer").height();b-=$(".box_omasidebar .slideUp").outerHeight(!0);b-=$(".box_omasidebar .slideDown").outerHeight(!0);$(".box_omasidebar .box_folder").height(b);$(".box_omasidebar .box_folder #bar").height(b);maxScroll=$(".box_omasidebar .box_folder").height()-$(".box_omasidebar .folderList").height();
$(".box_omasidebar #scroller").css("margin-top",a)};
function calcScrollbar(){hideFolderSidebar==!0?$(".box_omasidebar").hide():$(".box_omasidebar").show();$.cookie("viewport_width",$(window).width(),{expires:0});$.cookie("viewport_height",$(window).height(),{expires:0});$(".box_omasidebar").width($("#scroller").width());sidebarLeft=$(".box_omasidebar").outerWidth(!0)*-1+5;if(typeof sidebarLeft!="undefined"){$(".box_omasidebar").css("left",sidebarLeft);$(".box_omasidebar").css("top",$("#page #top").height());$(".box_omasidebar").height($("#page").height()-
$("#page #top").height()-$("#box_footer").height()-1);$(".box_omasidebar #scroller").css("left",sidebarLeft);var a=window.innerHeight?window.innerHeight:$(window).height();a-=$("#page #top").height()-$(window).scrollTop()>0?$("#page #top").height()-$(window).scrollTop():0;a-=$("#box_footer").height();a-=$(".box_omasidebar .slideUp").outerHeight(!0);a-=$(".box_omasidebar .slideDown").outerHeight(!0);$(".box_omasidebar .box_folder").height(a);$(".box_omasidebar .box_folder #bar").height(a);$(".box_omasidebar .slideUp").css("left",
$("#scroller").width()/2-$(".box_omasidebar .slideUp").width()/2);$(".box_omasidebar .slideDown").css("left",$("#scroller").width()/2-$(".box_omasidebar .slideDown").width()/2);maxScroll=$(".box_omasidebar .box_folder").height()-$(".box_omasidebar .folderList").height();maxScroll>=0?($(".box_omasidebar .slideUp").css("visibility","hidden"),$(".box_omasidebar .slideDown").css("visibility","hidden"),maxScroll=0):($(".box_omasidebar .slideUp").css("visibility","visible"),$(".box_omasidebar .slideDown").css("visibility",
"visible"));var a=$(".box_omasidebar .box_folder").height(),b=a*a/(maxScroll*-1+a);b>=a?(b=a,$(".box_folder #bar").hide()):b<10&&(b=10);isNaN(b)||$(".box_omasidebar #barPos").height(b)}}function openSidebar(a){positionSidebar(a);a.stop();a.animate({left:0},500);$(".box_omasidebar #lasche").stop();$(".box_omasidebar #lasche").animate({left:$(".box_omasidebar").outerWidth(!0)-1},500);$(".box_omasidebar #scroller").stop();$(".box_omasidebar #scroller").animate({left:0},500)}
function closeSidebar(a){typeof sidebarLeft!="undefined"&&(a.stop(),a.animate({left:sidebarLeft},250),$(".box_omasidebar #lasche").stop(),$(".box_omasidebar #lasche").animate({left:$(".box_omasidebar").outerWidth(!0)+sidebarLeft-1},250),$(".box_omasidebar #scroller").stop(),$(".box_omasidebar #scroller").animate({left:sidebarLeft},250))}
function scrollSidebar(){$(".box_omasidebar #scroller").height()>$(".box_omasidebar .folderList").height()||(targetMargin>0?targetMargin=0:targetMargin<maxScroll&&(targetMargin=maxScroll),$(".box_omasidebar #barPos").stop(),$(".box_omasidebar #barPos").animate({top:($(".box_omasidebar #bar").height()-$(".box_omasidebar #barPos").height())*targetMargin/(maxScroll>0?maxScroll:1)},250),$(".box_omasidebar .folderList").stop(),$(".box_omasidebar .folderList").animate({marginTop:targetMargin},250))}
function setActiveAlbum(){$(".folderList").find(".active").removeClass("active");var a=getHashFromURL().match(/\/([0-9]{2,})/),b=0;a!=null&&a.length>1&&(b=a[1],$("#folder_album_"+b).addClass("active"))}
var positionDetailFullscreen=function(){$("html").css({height:$(window).height(),overflow:"hidden"});$("#detailOverlay, #detailOverlay tr.second td").css("height",$(window).height());$("#detailOverlay, #detailOverlay tr.second td.navLeft").css("width",$("#detailNavLeft").outerWidth(!0));$("#detailOverlay, #detailOverlay tr.second td.navRight").css("width",$("#detailNavRight").outerWidth(!0));$("#detailOverlay").css("width",$(window).width());$("#detailOverlay tr.second td.content").css({width:$(window).width()-
$("#detailNavLeft").outerWidth(!0)-$("#detailNavRight").outerWidth(!0)});arguments.length==0&&calcMediaSize()};
function showJournalFullscreen_old(a){if(typeof imgList[a]!="undefined"&&imgList[a]!=null)var b=imgList[a];else return!1;var c=0,e=!1,f=b[5],g=b[6];if(f==!1&&f==""&&(g==!1||typeof g=="undefined"))return!1;var l={overlayShow:!0,transitionIn:"elastic",transitionOut:"elastic",orig:$("#"+a),onStart:function(){c=$("html")[0].scrollTop;e=$("html").css("overflow-y");$("html").css("overflow-y","hidden");$("html").scrollTop(c)},onComplete:function(){getAllFlash().each(function(){typeof this.stopPlayback==
"function"&&this.pausePlayback()});g||$("#fancybox-content").click(function(){$.fancybox.close()});$("#journalfullimage").length>=1&&preloadImage(f,$("#journalfullimage img"))},onClosed:function(){if(g!=""&&typeof g!="undefined"){var b=$("#"+a+" #mediaContainer").width(),f=$("#"+a+" #mediaContainer").height(),b=getJournalFlashElement(a,g,b,f);$("#"+a+" .flPlayer").addClass("hidden");$("#"+a+" .playbutton").addClass("hidden");$("#"+a).find("#mediaContainer").append(b.html())}$("html").css("overflow-y",
e);$(window).resize();$("html").scrollTop(c)}};if(g){$(".media #flPlayer").remove();var m=$(window).height(),t=$(window).width(),m=getJournalFlashElement(a,g,t,m);m.html('<div style="width:'+($(window).width()-200)+"px;height:"+($(window).height()-200)+'px;overflow:hidden">'+m.html()+"</div>");l.content=m.html();l.autoscale=!0;getAllFlash().each(function(){typeof this.stopPlayback=="function"&&this.pausePlayback()})}else{m=b[3];t=b[4];if(m==0||t==0)return;m+100>$(window).width()&&(m=$(window).width()-
100);t+100>$(window).height()&&(t=$(window).height()-100);var s=b[3],y=b[4],b=b[2];typeof b=="undefined"&&(b=s/y);s>m&&(s=m,y=s/b);y>t&&(y=t,s=y*b);l.content='<div id="journalfullimage" style="width:'+s+"px;height:"+y+'px;overflow:hidden"><img style="width:100%;height:100%" src="'+$("#"+a+" .flPlayer").attr("src")+'"/></div>';l.autoDimensions=!0;l.width=s;l.height=y}$.fancybox(l)}var currScrollTop=0;
function showJournalFullscreen(a){var b=null;if(typeof imgList[a]!="undefined"&&imgList[a]!=null)b=imgList[a];else return!1;currentMediaId=$("#"+a).attr("mediaid");var c=b[3],e=b[4],f=b[5],b=b[6];if(f==!1&&f==""&&(b==!1||typeof b=="undefined"))return!1;currScrollTop=$("html").scrollTop();showFullscreen();$(".detailNav").remove();$(".bigArrows").remove();b?($("#flPlayer").each(function(){typeof this.stopPlayback=="function"&&this.stopPlayback();!isMSIE()&&typeof $(this).find("embed")[0].stopPlayback==
"function"&&$(this).find("embed")[0].stopPlayback()}),a=getJournalFlashElement(a,b,c,e),$("#detailOverlay .second .content").css({padding:"15px 30px 10px 30px",width:"100%"}).append(a.html()),resizeMediaFullscreen()):($("#loadingWheelPngContainer").loadingwheel.start(),contextMenuFilter.push("closeFullscreen","fullscreen"),a=new Image,a.onload=function(){$("#loadingWheelPngContainer").loadingwheel.stop();$("#detailOverlay .second .content").append($("<img/>",{width:c,height:e,src:f}).css({cursor:"pointer",
display:"none"}).fadeIn(1).click(function(){closeFullscreen()}).contextMenu(contextMenuFilter));resizeMediaFullscreen()},a.onerror=function(){$("#loadingWheelPngContainer").loadingwheel.stop()},a.src=f)}
function showFullscreen(){var a=typeof currentMediaId!="undefined"?currentMediaId:!1;if(!(a!=!1&&isNaN(parseInt(a)))){isFullscreen=!0;$("html").css("overflow","hidden");var b=$("#mediaPosition");$(document.body).prepend('<table id="detailOverlay"><tr><td id="mediaPosition" colspan="2"></td><td id="controlFSClose"></td></tr><tr class="second"><td class="navLeft bigArrows"><div class="detailNav" id="detailNavLeft"></div></td><td class="content"></td><td class="loadingwheel"></td><td class="navRight bigArrows"><div class="detailNav" id="detailNavRight"></div></td></tr></table>');$("#loadingWheelPngContainer").length!=
0&&($("#detailOverlay .loadingwheel").prepend($("#loadingWheelPngContainer").clone(!0)),$("#detailOverlay  #loadingWheelPngContainer").attr("class","fullscreenLoadingWheelPngContainer").css("top",0),$("#detailOverlay .fullscreenLoadingWheelPngContainer").loadingwheel());$("#detailOverlay .content img").unbind("click");$("#detailOverlay .content img").die("click");$("#detailOverlay .content img").live("click",function(){closeFullscreen()});typeof widthSubtrahends!="undefined"&&(widthSubtrahends.savePush($("#detailNavLeft").width()),
widthSubtrahends.savePush($("#detailNavRight").width()));$("html").css("overflow-y","hidden");$("#detailOverlay td#mediaPosition").html(b.html());$("#detailOverlay tr.second td").css({"vertical-align":"middle"});$("#detailOverlay #detailNavRight").css("margin-right","15px");$("#detailOverlay td#controlFSClose").append('<div class="mediaControls"><a href="javascript:closeFullscreen()" id="fullscreenclosetrigger" class="icon fullscreenclose" title="'+L_CLOSE_FULLSCREEN+'"></a></div>');$("#journalMode").length==
0&&goToMedium(!1,a);$(window).bind("resize.combiFullscreen",resizeMediaFullscreen);$(document).bind("keyup.fullscreen",function(a){a.keyCode==27&&(closeFullscreen(),$(window).unbind("keyup.fullscreen"),$(this).unbind(a))});$(window).bind("keyup.fullscreen",function(a){a.keyCode==27&&(closeFullscreen(),$(document).unbind("keyup.fullscreen"),$(this).unbind(a))})}}
function closeFullscreen(){var a=typeof currentMediaId!="undefined"?currentMediaId:!1;a!=!1&&isNaN(parseInt(a))||(isFullscreen=!1,$("#detailOverlay").remove(),a!=!1&&$("#journalMode").length==0&&$(".icon.fullscreen").attr("href","javascript:showFullscreen()"),$("html").css({"overflow-x":"hidden","overflow-y":"scroll"}),$("#commentsPnl").show(),$("#loadingWheelPngContainer").loadingwheel(),$(window).unbind("resize.combiFullscreen",resizeMediaFullscreen),$("#journalMode").length==0&&goToMedium(!1,a,
null,!0),$(window).resize(),typeof calcMediaSize=="function"&&calcMediaSize(),currScrollTop!=0&&$("html").scrollTop(currScrollTop),journalId=0)}
function resizeMediaFullscreen(){var a=null,b=0,c=0;if($("#detailOverlay .content img").length!=0)a=$("#detailOverlay .content img"),b=parseInt(a.attr("naturalWidth")),c=parseInt(a.attr("naturalHeight")),b=isNaN(b)||b==0?a.width():b,c=isNaN(c)||c==0?a.height():c;else if(a=$("#detailOverlay .content object"),isFullscreen){a.height("100%");a.width("100%");a.find("embed").height("100%");a.find("embed").width("100%");return}if(!(b==null||c==null)){var e=$(window).width()-100-$("#detailNavLeft").width()-
$("#detailNavRight").width(),f=$(window).height()-30,e=b>e?b/e:1,f=c>f?c/f:1,f=e>f?e:f;c/=f;a.width(b/f);a.height(c)}}
function gotoMediumHTML5ChangeURL(a,b,c){var e=getHashFromURL().replace(/((\d){2,}-(\d){2,})/,a+"-"+b);e.search(/((\d){2,}-(\d){2,})/)==-1&&(e=getHashFromURL().replace(/((\d){2,}\/)/,a+"-"+b));isFullscreen&&e.search(/fullscreen/)==-1?e+=e.substr(e.length-1,1)=="/"?"fullscreen":"/fullscreen":!isFullscreen&&e.search(/fullscreen/>-1)&&(e=e.replace(/fullscreen/,""));c==null||typeof c=="undefined"?window.history.pushState({url:e,type:"medium",mediaid:b,fullscreen:isFullscreen,pageTitle:document.title},
"",e):window.history.replaceState({url:e,type:"medium",mediaid:b,fullscreen:isFullscreen,pageTitle:document.title},"",e)}function changeURLHTML5(a,b){var c={};c.value=typeof a=="undefined"?getHashFromURL():a;typeof b=="undefined"&&window.history.pushState({url:a,type:"page",pageTitle:document.title},"",a);addressChangeCallback(c)}
window.onpopstate=function(a){a.state!=null?a.state.type=="medium"?(a.state.fullscreen==!1&&isFullscreen==!0&&closeFullscreen(),goToMedium(null,a.state.mediaid,!0)):changeURLHTML5(a.state.url,!0):changeURLHTML5("/",!0)};$(document).ready(function(){isHTML5Browser==!0&&window.setTimeout("$(window).resize()",1)});function getHashFromURL(){return isHTML5Browser==!0?fullySupportsPushState==!0?document.location.pathname:document.URL:document.location.hash}function setHTML5lastURL(a){HTML5lastURL=a}
function getHTML5lastURL(){return HTML5lastURL}function setHashForURL(a,b){isHTML5Browser==!0?typeof b=="undefined"?window.history.pushState({url:a,type:"page",pageTitle:""},"",a):window.history.pushState({url:a,type:"page",fullscreen:!0,pageTitle:""},"",a):document.location.hash=a}
function loadAlbumStripes(a){a==!1&&(a=$(window).scrollTop());var b=[];if($(".placeholder:visible").length==0)return!1;var c=parseInt(a-$(window).height()/4),e=parseInt(a+$(window).height()+$(window).height()/4);$(".placeholder:visible").each(function(a,g){if($(g).offset().top>c&&$(g).offset().top<=e){$(g).removeClass("placeholder");if($(g).attr("name")==$(g).attr("src"))return!0;$(g).parent().parent().append('<div class="loadingWheelContainer"><div class="loadingWheel"></div></div>');b[a]=new Image;
b[a].onload=function(){$(g).parent().parent().find(".loadingWheel").remove();$(g).attr("src",b[a].src);$(g).removeAttr("name");$(g).addClass("stripeimage")};b[a].onerror=function(){$(g).parent().parent().find(".loadingWheel").remove();$(g).removeAttr("name")};b[a].src=$(g).attr("name")}});return!0}
function newCycle(a){var b=$(a).attr("previewCount");if(!(b<2)){b*=-140;var c=$(a).find(".preview.a"),e=$(a).find(".preview.b"),a=$(a).find(".stripeimage");a.attr("src")!=null&&(c.css("background","url("+a.attr("src")+") 0px 0px no-repeat"),c.css("background-position","0px 0px"),e.css("background","url("+a.attr("src")+") 0px 0px no-repeat"),e.css("background-position","0px 0px"),a.remove());var a="",f=0,a=$.browser.msie?e.css("background-position-x")+" "+e.css("background-position-y"):e.css("background-position"),
f=new Number(a.split(" ",2)[1].replace("px",""))-140;isNaN(f)&&(f=new Number(a.split(" ",2)[1].replace("px","").replace("%",""))-140);f<=b&&(f=0);c.css("background-position","0px "+f+"px");e.fadeOut(1500,function(){e.css("background-position","0px "+f+"px").fadeIn()})}}function runListener(a,b,c,e){return $("#"+a).length==0?(registry.listener[b][c]=null,!1):(registry.listener[b][c](e),!0)}
function trimTitle(a,b){var c=a.attr("title");if(c!=null){var e=c.length,f=b,g=a.next("div");g&&(isMSIE("7")||g.css("min-width",g.width()),f=b-g.find(".mediaControls").width()+g.find("#mediaPosition").width());f=Math.floor(f/10);f<e&&(c=c.slice(0,f)+"...");a.text("");a.append(c)}}
function displayShareBox(a,b){var c=document.location.protocol+"//"+document.location.host+"/"+SHARE_URL.replace("##albumid##",a).replace("##mediaid##",b),e='<a class="btn share facebook" href="http://www.facebook.com/sharer.php?u='+c+'" target="_blank"><span><span class="img"></span><em>Facebook</em></span></a>';e+='<a class="btn share twitter" href="http://twitter.com/share?url='+c+'" target="_blank"><span><span class="img"></span><em>Twitter</em></span></a>';e+='<a class="btn close" href="javascript:$.fn.colorbox.close();"><span><em>'+
L_CLOSE+"</em></span></a>";$.fn.colorbox({title:'<span class="sendLink"><img src="'+THEME_URL+'img/pixel.gif"/>'+L_SHARE+"</span>",transition:"none",opacity:"0.65",width:"407px",height:"280px",html:'<div id="sharebox">'+e+"</div>"})}$("#sharebox .btn.share").live("click",function(){$.fn.colorbox.close()});var downloadWindow=null;
function initAlbumDownload(a){$(".contextMenu").hide();$.get(AJAX_URL,{request:"Album.Download",albumId:a},function(a){a.success?(downloadWindow.location.href=a.content.url,downloadWindow.width=a.content.window.width,downloadWindow.height=a.content.window.height):(downloadWindow.close(),alert(a.errors))},"json")}
function setListenerLogin(){$("#loginAsGuest, #loginAsGuestLbl, #loginAsUser, #loginAsUserLbl").click(function(){var a=this.id=="loginAsGuest"||this.id=="loginAsGuestLbl";a&&$("#loginAsGuest").hasClass("active")||!a&&$("#loginAsUser").hasClass("active")||($("#loginAsUser, #loginAsGuest").toggleClass("active"),$("#loginForm #selValue").val(a?"guest":"user"),$("#loginForm .error").hide(),$(".guestLogin").toggle(),$(".userLogin").toggle(),$.fn.colorbox.resize())})}
function submitLoginForm(){$("#loginForm .error").hide();toggleLoader(!0,!1);$.post(AJAX_URL_AUTH_LOGIN,$("#loginForm").serialize(),function(a){if(a.success!=1){toggleLoader(!1,!1);if(a.errors){var b="",c;for(c in a.errors)b+=a.errors[c]+"<br />";$("#loginForm .error").html(b)}$("#loginForm .error").show();$.fn.colorbox.resize()}else $("#loginForm .text").attr("value",""),location.reload()},"json")}
function checkLoginForm(){$("#loginForm #loginAsGuest.active").length==1?$("#loginForm #selValue").val("guest"):$("#loginForm #selValue").val("user")}function submitLogout(){toggleLoader(!0,!0);$.post(AJAX_URL_AUTH_LOGOUT,function(){location.reload();toggleLoader(!1,!0)},"json")}
function toggleSocialBookmarks(a){if($("#socialBookmarks").css("display")=="block")closeSocialBookmarks();else if(a=$(a),a.offset){var a=a.offset(),b='<div id="socialBookmarks">';b+='<div class="title">'+L_BOOKMARK_SUGGEST+"</div>";b+="<a style=\"background-image: url(http://static.mister-wong.de/buttons/logo16.gif);\" href=\"javascript:void(window.open('http://www.mister-wong.de/index.php?action=addurl&amp;bm_url=' + encodeURIComponent(location.href) + '&amp;bm_description=' + encodeURIComponent(document.title)))\">Mister Wong</a>";
b+='<a style="background-image: url(http://www.reddit.com/static/spreddit1.gif);" href="javascript:void(window.open(\'http://www.reddit.com/submit?url=\' + encodeURIComponent(window.location)))">Reddit</a>';b+='<a style="background-image: url(http://www.myspace.com/favicon.ico);" href="javascript:void(window.open(\'http://www.myspace.com/Modules/PostTo/Pages/?u=\' + encodeURIComponent(document.location.href)))">MySpace</a>';b+="<a style=\"background-image: url(http://www.delicious.com/static/img/delicious.small.gif);\" href=\"javascript:void(window.open('http://delicious.com/save?v=5&noui&jump=close&url=' + encodeURIComponent(location.href)+ '&title=' + encodeURIComponent(document.title)))\">Del.icio.us</a>";
b+='<a style="background-image: url(http://www.facebook.com/favicon.ico);" href="javascript:void(window.open(\'http://www.facebook.com/sharer.php?u=\' + encodeURIComponent(location.href)))">Facebook</a>';b+="<a style=\"background-image: url(http://www.diigo.com/images/ii_blue.gif);\" href=\"javascript:void(window.open('http://www.diigo.com/post?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title)))\">Diigo</a>";b+="<a style=\"background-image: url(http://www.newsvine.com/favicon.ico);\" href=\"javascript:void(window.open('http://www.newsvine.com/_wine/save?popoff=1&u=' + encodeURIComponent(location.href) + '&tags=&blurb=' + encodeURIComponent(document.title)))\">Newsvine</a>";
b+="<a style=\"background-image: url(http://technorati.com/favicon.ico);\" href=\"javascript:void(window.open('http://technorati.com/faves/seoportal?add=' + encodeURIComponent(location.href) + '&tag='))\">Technorati</a>";b+="<a style=\"background-image: url(http://slashdot.org/favicon.ico);\" href=\"javascript:void(window.open('http://slashdot.org/bookmark.pl?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title)))\">Slashdot</a>";b+='<a style="background-image: url(http://www.socialbookmark.eu/buttons/twitter.png);" href="javascript:void(window.open(\'http://twitter.com/home?status=\' + encodeURIComponent(location.href)))">Twitter</a>';
b+='<a style="background-image: url('+THEME_URL+'img/icon/printer.png" href="javascript:void(window.print())">'+L_PRINT+"</a>";b+=$.browser.msie?'<a style="background-image: url('+THEME_URL+'img/icon/world_add.png);" href="javascript:void(window.external.AddFavorite(document.location.href, document.title))">'+L_FAVORITES+"</a>":'<a style="background-image: url('+THEME_URL+'img/icon/world_add.png);" href="javascript:void(window.external.addPanel(document.title, document.location.href, \'\'))">'+L_FAVORITES+
"</a>";b+="</div>";$("body").append(b);$("#socialBookmarks").css({display:"block",left:a.left,top:a.top-$("#socialBookmarks").outerHeight()});$(document).click(socialClose);$("#socialBookmarks").bind("mouseleave",function(){closeSocialBookmarks()});return!1}}var socialClose=function(a){$(a.originalTarget).get(0);$(".socialBookmarks #openLink").get(0)};function closeSocialBookmarks(){$("#socialBookmarks").css("display","none").remove();$(document).unbind("click",socialClose)}
function showMediaInfoBox(a,b,c,e,f){toggleLoader(!0,!0);var g=!1,l=!1,m=[];switch(a){case "mediaInfo":g=L_MEDIA_INFO;l=loadExifData;m[0]=b;m[1]=c;break;case "geoInfo":g=L_GEO_DATA;l=loadGeoMapPopUp;m[0]=b;m[1]=c;break;case "commentInfo":g=L_COMMENT;l=loadCommentPopUp;m[0]=b;m[1]=c;m[2]=e;m[3]=f;break;default:return!1}$.get(SITE_URL+"mediainfo/!/alb/"+b+"/media/"+c,{view:"json"},function(b){toggleLoader(!1,!0);$.fn.colorbox({title:'<span class="'+a+'"><img src="'+THEME_URL+'img/pixel.gif" />'+g+"</span>",
transition:"none",opacity:"0.65",width:"850px",height:"650px",html:b.html["#box_content"]});l(m)},"json")}
function loadExifData(a){var b=a[0],a=a[1];$("#box_mediaInfo_content").html("");$.post(AJAX_URL,{request:"Media.Exif",albumId:b,mediaId:a},function(a){if(a.success==0||!a.content||a.content.length<1)a.errors&&a.errors.length?alert(a.errors):alert("L_ERR_ERROR_OCCURED");else{var b="<h1>"+L_MEDIA_INFO+"</h1>";$.each(a.content,function(a,c){a!="exifData"&&(b+='<div class="item"><div class="name">'+c.name+':</div><div class="value">'+c.value+"</div></div>")});typeof a.content.exifData!="undefined"&&(b+=
'<div class="exif">',$.each(a.content.exifData,function(a,c){b+='<div class="item"><div class="name">'+a+':</div><div class="value">'+c+"</div></div>"}),b+="</div>");$("#box_mediaInfo_content").html(b)}},"json")}
function loadGeoMapPopUp(a){var b=a[0],c=a[1],a=[];a[0]=c;$.post(AJAX_URL,{request:"Media.Details",albumId:b,toLoad:a},function(a){a.success==0||!a.content||a.content.length<1?a.errors&&a.errors.length?alert(a.errors):alert("L_ERR_ERROR_OCCURED"):(a=a.content[b][c],$("#box_mediaInfo #box_mediaInfo_scrollbar").remove(),$("#box_mediaInfo #box_mediaInfo_content").html('<div id="geomap"></div>'),typeof a.lat!="undefined"&&typeof a.lng!="undefined"&&$("#geomap").geomap(!1,{type:"simple",lat:a.lat,lng:a.lng}))},
"json")}function preloadImage(a,b){var c=new Image;c.onload=function(){b.attr("src",c.src)};c.src=a}function getJournalFlashElement(a,b,c,e){a=$("#flashCode #mediaContainer").clone();a.attr("id","flPlayer");a.html(a.html().replace(/\%class_id\%/g,b));a.html(a.html().replace(/\%width\%/g,c));a.html(a.html().replace(/\%height\%/g,e));a.html(a.html().replace(/\%wrapperID\%/g,""));return a}
function setListenerJournal(){registry.listener.Journal={};registry.listener.Journal.onscroll=function(){if(finished!=!0){yWithScroll=window.innerHeight&&window.scrollMaxY?window.scrollMaxY:document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight-document.body.offsetHeight:document.body.offsetHeight;var a=!1,b=!1;$(window).scrollTop()>=yWithScroll*0.9?(a=parseInt($(".contentOma_AlbumJournal .media:last").attr("id"))+1,a<maxId&&getFurtherImages(a,a+countDynLoad-1<=maxId?countDynLoad:
maxId-a,!1)):$(window).scrollTop()<=yWithScroll*0.1&&(a=parseInt($(".contentOma_AlbumJournal .media:first").attr("id"))-1-countDynLoad,a<minId?(a=minId,b=parseInt($(".contentOma_AlbumJournal .media:first").attr("id"))-1-minId):b=countDynLoad,getFurtherImages(a,b,!0))}};window.onscroll=function(){runListener("journalMode","Journal","onscroll",!1)}}
function setListenerCombi(){registry.listener.Combi={};registry.listener.Combi.resize=function(){setDimensionsForContentBoxes();placeElementToCenter($("#loadingWheelPngContainer"));scrollLeftBoxToChoosenMedium(currentMediaId);$("#scrollbar").scrollbar.update()};window.onresize=function(){runListener("combiMode","Combi","resize",!1)}}journalId=0;
function loadCommentPopUp(a){var b=a[0],c=a[1];journalId=a[2];a=a[3];COMMENT_OPTIONS.boxed=!1;COMMENT_OPTIONS.infoWindow=!0;$("#box_mediaInfo_content").comments(b,c,a,function(){$("#box_mediaInfo_content").css("padding-bottom","20px");$("#box_mediaInfo_scrollbar").scrollbar({asset_path:THEME_URL,targetId:"#box_mediaInfo_content"});$(".mediaBox ."+journalId+" #commentsPnl h3 a span#commentsCount").text($("#box_mediaInfo_content").comments.getCommentCount())},COMMENT_OPTIONS)}
function canShowNextMedia(a,b){if(a.keyCode==(typeof b!="undefined"&&!b?37:39)&&!$("#cboxOverlay").is(":visible")){if(isMSIE()&&(a.srcElement.nodeName=="TEXTAREA"||a.srcElement.nodeName=="INPUT"))return!1;else if(a.target.type=="textarea"||a.target.type=="text")return!1;return!0}return!1}
function toggleOptionsMenu(a){var b=$(a).parent().find(".commentOptionsPnl");b.css("left",parseInt($(a).position().left)-115+"px");$.browser.msie&&b.css("top",parseInt($(a).position().top)+20+"px");b.slideDown(250,function(){$(document).one("click",function(){$("#comments .com_body .commentOptionsPnl:visible").hide()});$(document).one("keyup",function(a){a.keyCode==27&&$("#comments .com_body .commentOptionsPnl:visible").hide()})})}
function placeElementToCenter(a,b){typeof b=="undefined"&&(b=$("#box_content"));if(!isFullscreen){var c=Math.round(b.height()/2-19);c-=b.find("#albumNameHeader").length>0?b.find("#albumNameHeader").outerHeight():0;a.each(function(){$(this).css("top",c-$(this).height()/2)})}}
function downloadMedia(a,b){if(a)a.stopPropagation?a.stopPropagation():window.event.cancelBubble=!0;$(".contextMenu").hide();$("#downloadIFrame").unbind();$("#downloadIFrame").attr("src",b);$("#downloadIFrame").load(function(){if($("#downloadIFrame").attr("src")!=""){var a=$("#downloadIFrame").contents().find("body");try{if(a.html()=="")return;var b=$.parseJSON(a.html());b!=null&&typeof b=="object"&&b.success==0&&$.fn.colorbox({title:"<span>Fehler</span>",transition:"none",opacity:"0.65",html:'<div style="padding: 20px;">'+
b.error+"</div>"})}catch(f){alert(f)}$("#downloadIFrame").attr("src","");a.html("")}})}function highlightMainMenuItem(a){$(".menuList .type"+a).length!=0&&($(".menuList .active").removeClass("active"),$(".menuList .type"+a).addClass("active"))}
$(document).ready(function(){$(window).bind("resize",function(){$("#colorbox:visible").length!=1&&($(".viewmode").is("#combiMode,#geoMode")||$("#detailOverlay:visible").length>0?isMSIE()?$("html").css("overflow-y","hidden"):$("html").css("overflow","hidden"):(isMSIE(),$("html").css("overflow-y","scroll")))})});(function(a){var b=null,c={debug:!1,enabled:!0,boxed:!0,theme_url:null,ajax_url:null,user:null,lng:null,infoWindow:!1};a.fn.comments=function(e,f,g,l,m){return this.each(function(){function t(){if(U()){var c=V("g");c&&(b!=null&&(b.abort(),b=null),b=a.ajax({url:c,success:function(c){if(c.success==0){var e="",e=typeof c.errors!="string"?c.errors.join("\r\n"):c.errors;S.html("");a(window).resize();return A("Es ist ein Fehler aufgetreten:\r\n\r\n"+e)}d=c.comments;N=c.commentOptions;v();b=null},error:function(){},
dataType:"json"}))}}function s(){if(U()){var b=V("g");a.get(b,function(b){if(b.success==0)return b=typeof b.errors!="string"?b.errors.join("\r\n"):b.errors,S.html(""),A("Es ist ein Fehler aufgetreten:\r\n\r\n"+b);d=b.comments;N=b.commentOptions;b=a("#showAllComments").length>0?a("#showAllComments"):a(".com_add");a("#commentEntries").remove();a("#commentsCount").html(" ("+T+")");b.before(ba());(z||T/d.length<=1)&&a("#showAllComments").remove();a(window).resize()},"json")}}function y(){var b=a("#commentsForm textarea").val().length;
b>MAX_COMMENT_TEXT_LENGTH?a("#commentsForm_error_text").html(a("#commentsForm_error_text").html().replace(/###ZEICHEN###/,b-MAX_COMMENT_TEXT_LENGTH)).show():a.post(V("c"),a("#commentsForm").serialize()+"&aid="+M+"&mid="+o,function(b){if(b.success!=1){if(b.errors.length==1)alert("Fehler: "+b.errors[0]);else{a(".error").hide();for(var d in b.errors)d=="release_info"?(a("#commentsForm_error_"+d).html("").append(a("<div/>",{"class":"releaseInfoImg"}),a("<div/>",{"class":"releaseInfoText",html:b.errors[d]}),
a("<div/>").css("clear","left")),a("#commentsForm_error_release_info").fadeIn("slow"),a(".com_add").hide()):(a("#commentsForm_error_"+d).text(b.errors[d]),a("#commentsForm_error_"+d).slideDown("fast"))}a(window).resize()}else z=!0,S.css("height",S.height()),S.find("#comments").slideUp(),B=function(){u(M,o,b.content.comment_count);a("#box_mediaInfo_content #comments").length>0?a("#box_mediaInfo_content").scrollTo("div.com_body:last","fast",function(){a("#box_mediaInfo_scrollbar").length>0&&a("#box_mediaInfo_scrollbar").scrollbar({asset_path:c.theme_url,
targetId:"#box_mediaInfo_content"})}):a.scrollTo("div.com_body:last","fast",function(){a("#box_mediaInfo_scrollbar").length>0&&a("#box_mediaInfo_scrollbar").scrollbar({asset_path:c.theme_url,targetId:"#box_mediaInfo_content"})});typeof l=="function"&&l.call()},t()},"json")}function u(b,c,d){typeof media!="undefined"&&media==null&&(media={},typeof media[b]=="undefined"&&(media[b]={}));typeof media[b][c]=="undefined"&&(media[b][c]={});typeof media!="undefined"&&typeof media[b][c].comment_count!="undefined"&&
(media[b][c].comment_count=d);a("#box_mediaInfo_content").length>0?a("#box_mediaInfo_content #commentsCount").text(" ("+d+")"):a("#commentsBox .counter").text(d);typeof journalId!="undefined"&&journalId!=0&&(b=a("#"+journalId+" #commentsBox .counter"),b.length!=0&&b.text(d));a("#combiMode #commentsBox .counter").length>0&&a("#combiMode #commentsBox .counter").text(d)}function H(b){var d=a("#"+b),e=function(){d.find("textarea").remove();d.find(".commentText").show();d.find(".saveCancelLinks").remove();
a(document).unbind("keyup.changeComment");d.find(".commentNotReleasedInfo").length>0&&d.find(".commentNotReleasedInfo").show()};d.find(".commentNotReleasedInfo").length>0&&d.find(".commentNotReleasedInfo").hide();var f=isMSIE("7")||isMSIE("8")?d.find(".commentText").html().replace(/(<br\s*\/?>)/gi,"\r\n"):d.find(".commentText").text(),g=d.height()<40?40:d.height()+25,l=d.width()-15;d.find(".commentText").hide().before(a("<textarea/>").val(f).css({width:l,height:g,resize:"vertical","background-color":d.css("background-color"),
overflow:"hidden"}).keyup(function(){a(this)[0].scrollHeight>a(this).height()&&a(this).height(a(this)[0].scrollHeight+3)}).focus(),a("<div/>",{"class":"saveCancelLinks"}).append(a("<a/>",{href:"#",id:"saveComment",html:'<span id="saveCommentImg"></span>'+c.lng.L_SAVE}).click(function(){var d=a("#"+b+" textarea").val();a.trim(d)==a.trim(f)?a("#cancelEditComment").click():a.post(V("o"),{update:b,text:d},function(a){a.success==0&&typeof a.errors.code!="undefined"&&a.errors.code==10041?(c.user={type:"",
name:"",mail:""},v()):s()},"json");return!1}),a("<a/>",{href:"#",id:"cancelEditComment",html:'<span id="cancelEditCommentImg"></span>'+c.lng.L_ABORT}).click(function(){e();return!1})));a(document).bind("keyup.changeComment",function(a){a.keyCode==27&&e()})}function w(b,d){S.find(".deleteOptions").fadeOut(150,function(){a(this).remove()});var e=a("<div/>",{"class":"deleteOptions"}).append(a("<div/>",{html:c.lng.L_COMMENT_CONFIRM_DELETE}).css("border-bottom","1px solid #777").click(function(){a.post(V("o"),
{"delete":b},function(a){a.success==0&&typeof a.errors.code!="undefined"&&a.errors.code==10041?(c.user={type:"",name:"",mail:""},v()):(T--,s(),u(M,o,T))},"json");return!1}),a("<div/>",{html:c.lng.L_COMMENT_ABORT_DELETE})),f=a(d).parent().parent();f.prepend(e);e=f.find(".deleteOptions");e.css({left:f.position().left+f.width()-e.width()+"px"}).fadeIn(250,function(){a(document).one("click",function(){e.fadeOut(150,function(){a(this).remove()})});a(document).one("keyup",function(b){b.keyCode=="27"&&e.fadeOut(150,
function(){a(this).remove()})})})}function v(){if(U()){var b=c.lng;if(c.infoWindow==!0)var e=a("<div/>",{id:"comments"}).css("display","none").append(a("<h3/>",{id:"commentsTitle",html:b.L_COMMENT}).append(a("<span/>",{id:"commentsCount",html:" ("+T+")"})));else e=a("<div/>",{id:"comments"}),e.append(a("<h3/>",{id:"commentsTitle",html:b.L_COMMENT}));N.only_friends=="off"||N.only_friends=="on"&&(c.user.type=="guest"||c.user.type=="owner")?c.infoWindow==!0?e.append(a("<h4/>").append(a("<a/>",{id:"addComment",
href:"#",html:b.L_COMMENT_ADD_NEW}).prepend(a("<span/>")).click(function(){a("#commentsForm:hidden").length==1&&v();a("#comments").offsetParent().scrollTo("max",250,{onAfter:function(){a("#box_mediaInfo_scrollbar").length>0&&a("#box_mediaInfo_scrollbar").scrollbar({asset_path:c.theme_url,targetId:"#box_mediaInfo_content"});c.user.type==""?a("#commentsInputNickname").focus():a(".com_add").find("textarea").focus()}});return!1}))):a("#commentsBox").click(function(){a("#commentsForm:hidden").length==
1&&v();a("#comments").offsetParent().scrollTo("max",250,{onAfter:function(){a("#box_mediaInfo_scrollbar").length>0&&a("#box_mediaInfo_scrollbar").scrollbar({asset_path:c.theme_url,targetId:"#box_mediaInfo_content"});c.user.type==""?a("#commentsInputNickname").focus():a(".com_add").find("textarea").focus()}});return!1}):N.only_friends=="on"&&c.user.type==""&&(e.append(a("<div/>",{"class":"error",id:"addComment",html:b.L_COMMENT_LOGIN_NOTE}).css({display:"block","line-height":"12px","padding-left":"0px"})),
a("#commentsBox").attr("title",L_COMMENT),d.length==0&&a("#commentsBox .counter").html(""));e.append(ba());!z&&d.length>0&&!isNaN(T)&&T/d.length>1&&e.append(a("<div/>").append(a("<a/>",{href:"#",id:"showAllComments",html:b.L_COMMENT_SHOW_ALL}).click(function(){z=!0;s();return!1})).css("margin","0 0 20px 0"));e.append(a("<div/>",{"class":"releaseInfo",id:"commentsForm_error_release_info"}));b=null;if(N.only_friends=="off"||N.only_friends=="on"&&(c.user.type=="guest"||c.user.type=="owner"))b=J();S.html(e.append(b));
typeof B=="function"&&B.call(B.arguments);e.slideDown("fast",function(){S.css("height","");setTimeout(function(){refreshCaptcha("commentsFormCaptchaImg")},100)});a(window).resize()}}function ba(){for(var b=a("<div/>",{id:"commentEntries"}),e=0;e<d.length;e++){var f=d[e];f.creation_date=aa(f.creation_date);f.change_date=f.change_date?aa(f.change_date):!1;var g=a("<div/>",{"class":"com_body",class_id:f.class_id});f.isNew&&g.css("background-color","#2e2e2e");var l=Z(a("<div/>",{"class":"commentOptions"}).append(a("<span/>",
{html:"#"+(e+1)})),f),m;m=f;var o=a("<div/>",{"class":"commentHeader",html:" "+c.lng.L_COMMENTS_WROTE_AT+" <i>"+m.creation_date+"</i>"});m.homepage?o.prepend(a("<a/>",{href:m.homepage,target:"_blank","class":"nickname",html:m.nickname})):o.prepend(a("<span/>",{"class":"nickname",html:m.nickname}));m=o;var o=O(f),s=null;f.change_date&&(s=a("<div/>",{"class":"commentChangedInfo",html:c.lng.L_COMMENT_CHANGED_INFO.replace(/###DATE###/,f.change_date)}),f.isNew&&s.css("margin-top","0px"));g.append(l,m,
o,s);b.append(g)}return b}function J(){var b=c.lng,d=a("<form/>",{method:"post",action:"",id:"commentsForm"}).submit(function(){(!this.checkValidity||this.checkValidity())&&y();return!1}).append(a("<div/>",{"class":"title"}).text(c.lng.L_COMMENT_ADD_NEW+":"),a("<div/>").append(a("<textarea/>",{name:"comment[text]","class":"text",required:"required",placeholder:b.L_COMMENTS_YOUR_COMMENT}).keyup(function(){a(this)[0].scrollHeight-8>a(this).height()&&a(this).height(a(this)[0].scrollHeight+3)}).css("overflow",
"hidden"),a("<div/>",{"class":"error",id:"commentsForm_error_general"}),a("<div/>",{"class":"error",id:"commentsForm_error_text",html:b.L_ERR_COMMENT_TEXT_TOO_BIG})),a("<div/>",{"class":"line"}).append(a("<input/>",{type:"text",spellcheck:!1,"class":"text",name:"comment[name]",id:"commentsInputNickname",value:c.user.name!=""?X(c.user.name):"",required:"required"}),a("<div/>",{"class":"subtitle",html:b.L_COMMENTS_NICKNAME+"*"}),a("<div/>",{"class":"error",id:"commentsForm_error_nickname",html:b.L_ERR_MISSING_NICKNAME})),
a("<div/>",{"class":"line"}).append(a("<input/>",{type:"url",spellcheck:!1,"class":"text",name:"comment[www]",placeholder:"http://",value:""}),a("<div/>",{"class":"subtitle",html:b.L_COMMENTS_HOMEPAGE}),a("<div/>",{"class":"error",id:"commentsForm_error_www"})),a("<div/>",{"class":"line"}).append(a("<input/>",{type:"email","class":"text",name:"comment[email]",spellcheck:!1,placeholder:"name@domain.com",id:"commentsInputMail",value:c.user.mail!=""?X(c.user.mail):""}).keyup(function(b){fa(b,a("#commentInputSubscription")[0])}),
a("<div/>",{"class":"subtitle",html:b.L_COMMENTS_MAIL}),a("<div/>",{"class":"error",id:"commentsForm_error_email"})),a("<div/>",{"class":"line"}).css("display",c.user.mail!=""?"block":"none").append(a("<div/>",{id:"subscriptionPnl"}).append(a("<div/>",{"class":"commentsForm_error_subscription"}),a("<div/>").append(a("<label/>",{"class":"lblCheckBox",id:"commentsInputSubscription"}).click(function(a){fa(a,this);return!1}).append(a("<div/>",{"class":"checkbox"}),a("<div/>",{html:b.L_COMMENTS_SUBSCRIPTION_LABEL}).css({margin:"3px 0px 0px 5px",
"float":"left"})),a("<input/>",{type:"hidden",name:"comment[subscription]",value:!1}),a("<div/>").css("clear","both")))),a("<div/>",{"class":"line"}).append(a("<input/>",{"class":"text",type:"text",name:"comment[captcha]",spellcheck:!1,autocomplete:"off",value:"",required:"required",pattern:"[a-zA-Z1-9]{5}",maxlength:5}).keyup(function(b){b.keyCode==13&&isMSIE()&&a(".submitComment input[type=submit]").submit()}),a("<div/>",{"class":"subtitle",html:b.L_ENTER_SECURITY_CODE_HERE}),a("<div/>",{"class":"error",
id:"commentsForm_error_captcha",html:b.L_ERR_WRONG_CAPTCHA_TEXT})),a("<div/>",{"class":"line"}).append(a("<div/>",{"class":"picture"}).append(a("<img/>",{src:c.theme_url+"img/pixel.gif",id:"commentsFormCaptchaImg"}),a("<a/>",{href:"#",html:b.L_RELOAD_CAPTCHA}).click(function(){refreshCaptcha("commentsFormCaptchaImg");return!1}))),a("<div/>",{"class":"line"}).append(a("<div/>",{"class":"submitComment"}).append(a("<button/>",{"class":"btn",html:"<span>"+b.L_COMMENTS_SUBMIT+"</span>"}).click(function(){isMSIE("7")&&
a(this).parent().find("input[type=submit]").submit()}),a("<input/>",{type:"submit"}).css("display","none")),a("<div/>").css("clear","both")));c.user.type=="owner"&&N.release!="on"&&d.find("#subscriptionPnl").after(a("<div/>").css("margin-top","10px").append(a("<label/>",{"class":"lblCheckBox"}).click(function(){K(this);return!1}).append(a("<div/>",{"class":"checkbox"}),a("<div/>",{html:b.L_COMMENT_RELEASE_IMMEDIATELY}).css({margin:"3px 0px 0px 5px","float":"left"})),a("<input/>",{type:"hidden",name:"comment[release]",
value:!1}),a("<div/>").css("clear","both")));return a("<div/>",{"class":"com_add"+(c.boxed?" boxed":"")}).append(d)}function O(b){var d=c.lng,e=a("<div/>",{id:b.class_id,"class":"commentTextPnl"}).append(a("<div/>",{"class":"commentText",html:b.text}));b.isNew&&e.append(a("<div/>",{"class":"commentNotReleasedInfo"}).append(a("<div/>").append(a("<img/>",{src:c.theme_url+"img/contact/icon_error.gif",width:"30px",height:"28px"})).css({"float":"left",margin:"5px 10px 0 0"}),a("<div/>").append(a("<div/>",
{html:d.L_COMMENT_NOT_RELEASED}),a("<a/>",{href:"#",html:d.L_COMMENT_RELEASE}).click(function(){a.post(V("o"),{release:b.class_id},function(a){a.success==0&&typeof a.errors.code!="undefined"&&a.errors.code==10041?(c.user={type:"",name:"",mail:""},v()):s()});return!1}))));return e.append(a("<div/>").css("clear","both"))}function Z(b,d){var e=c.lng;c.user.type=="owner"&&b.append(a("<a/>",{href:"#",title:X(e.L_COMMENT_CHANGE),"class":"editCommentLink"}).click(function(){H(d.class_id);return!1}),a("<a/>",
{href:"#",title:X(e.L_COMMENT_DELETE),"class":"showDeleteOptionsLink"}).click(function(){w(d.class_id,this);return!1}));return b}function U(){return!c.enabled?(S.html(""),!1):c.lng==null||typeof c.lng!="object"?A("Keine Sprachen f\u00fcr die Kommentare in den Optionen definiert."):c.user==null||typeof c.user!="object"?A("Es wurde kein Username, -type und mail definiert."):c.theme_url==null||typeof c.theme_url!="string"?A("Die Theme-Url wurde nicht definiert."):typeof T=="undefined"&&T==null?A("Es wurde keine gegenw\u00e4rtige Kommentaranzahl angegeben."):
!0}function fa(b,c){if(!(b.keyCode==9||b.keyCode==13||b.keyCode==27)){var d=a("#commentsInputMail"),e=a("#subscriptionPnl").parent(".line");d.val()==""||b.type=="click"&&e.find(".checkbox").hasClass("checked")?(d.val()==""&&e.slideUp("fast"),K(c,!1)):(K(c,!0),e.slideDown("fast"))}}function K(b,c){var d=a(b);d.length!=0&&(typeof c=="undefined"&&(c=!d.find(".checkbox").hasClass("checked")),d.parent().find("input:hidden").val(c),c?d.find(".checkbox").addClass("checked"):d.find(".checkbox").removeClass("checked"))}
function V(a){if(c.ajax_url==null||c.ajax_url==""||!c.ajax_url.match(/Media\.Comments/))return A("Die Ajax-Url ist nicht definiert oder endet nicht auf Media.Comments");var b=c.ajax_url;switch(a){case "g":if(isNaN(M)||isNaN(o))return A("Keine AlbumId bzw. MediaId definiert.");b+=".Get&aid="+M+"&mid="+o+(z?"&all=1":"");break;case "c":b+=".Create";break;case "o":b+=".Options";break;default:return A("Kein Ajax-Url-Type definiert.")}return b}function X(b){var b=a("<textarea/>").html(b),c=b.val();b.remove();
return c}function aa(a){var b=new Date;b.setTime(a);a=c.lng.L_DATETIME_LONG;a=a.replace(/%%%DAY%%%/,b.getDate()<10?"0"+b.getDate():b.getDate());a=a.replace(/%%%MONTH%%%/,b.getMonth()<10?"0"+b.getMonth():b.getMonth());a=a.replace(/%%%YEAR%%%/,b.getFullYear());a=a.replace(/%%%HOUR%%%/,b.getHours()<10?"0"+b.getHours():b.getHours());return a=a.replace(/%%%MIN%%%/,b.getMinutes()<10?"0"+b.getMinutes():b.getMinutes())}function A(a){c.debug?alert(a):console.log("Kommentar-Funktionsfehler: "+a);return!1}m&&
a.extend(c,m);var S=a(this),M=e,o=f,z=!1,T=parseInt(typeof g=="undefined"?T:g),d=null,N=null,B=l;S.comments.getCommentCount=function(){return T};t()})}})(jQuery);/*
 http://phpjs.org/functions/strrpos:549

 @param haystack
 @param needle
 @param offset
 @return
*/
function strrpos(a,b,c){var e=-1;c?(e=(a+"").slice(c).lastIndexOf(b),e!==-1&&(e+=c)):e=(a+"").lastIndexOf(b);return e>=0?e:!1};var easyWeb={request:{}};easyWeb.request.currentAnchor="";easyWeb.request.goManually=!1;easyWeb.request.callback={};easyWeb.request.callback.oa={};easyWeb.request.entryTimeout=null;easyWeb.request.init=function(){};easyWeb.request.go=function(a){easyWeb.request.goManually=!0;easyWeb.request.doRequest(a)};
easyWeb.request.doRequest=function(a){a.uri&&a.uri.length>1&&a.uri.lastIndexOf("#")!=a.uri.length-1?document.location.hash="#"+a.uri:(document.location.hash="",a.uri="/");var b=null,b=a.method=="post"?$.post:$.get;if(!a.fields)a.fields={};toggleLoader(!0,!0);b(a.uri,a.fields,function(b,e,f){toggleLoader(!1,!0);a.callback&&eval("easyWeb.request.callback."+a.callback)=="function"?eval(a.callback).apply(null,b,e,f):b.callback&&eval("easyWeb.request.callback."+b.callback)=="function"?eval(b.callback).apply(null,
b,e,f):easyWeb.request.callback.defaultCallback(b,e,f)},"json")};easyWeb.request.callback.defaultCallback=function(a){facebookInit();window.scrollTo(0,0);if(typeof a.html!="undefined"&&a.html!=null)for(var b in a.html)$(b).html(),b=="title"?document.title=a.html[b]:$(b).html(""+a.html[b])};$(document).ready(function(){easyWeb.request.init()});(function(a){var b=null,c=null,e=null,f=null,g=null,l=null,m=null,t=null,s=null,y=null,u=null,H=null,w=null,v={showThumbnails:!0,showOwnPosition:!1,showNavBtns:!0,showMediaToolbar:!0,albumId:0,shareHtml:"",thumbnailCols:a(window).width()<=1024?1:2,zoom:8,mapTypeId:"HYBRID",streetViewControl:!1,type:!1,viewmode:"ratio"};a.fn.geomap=function(ba,J){function O(b){typeof google=="undefined"?(window.googleCallback=function(){v.mapTypeId=google.maps.MapTypeId[v.mapTypeId];a.getScript(ASSET_PATH+"/js/min/marker.min.js",
function(){b()})},a.getScript("http://maps.google.com/maps/api/js?sensor=false&async=2&v=3.5&callback=googleCallback")):b()}function Z(){B.append(a("<div/>",{"class":"shadow",id:"geo_shadow"}).append(a("<div/>",{"class":"upper"}).append(a("<div/>",{"class":"right"}).after(a("<div/>",{"class":"left"})).after(a("<div/>",{id:"geo_content"}))).after(a("<div/>",{"class":"bottom"}).append(a("<div/>",{"class":"right"}).after(a("<div/>",{"class":"left"})).after(a("<div/>",{"class":"center"}))))));c=a("#geo_content");
e=a("#geo_shadow");H=[];H.savePush=savePush;v.showThumbnails&&M();v.showMediaToolbar&&d();v.showNavBtns&&T();K();g=new google.maps.Map(c[0],{zoom:v.zoom,mapTypeId:v.mapTypeId,streetViewControl:v.streetViewControl});a(window).bind("resize.geomap",function(){K();a("#scrollbar").scrollbar.update()});fa(s);b=B;a("#geo_scroller #scrollbar").scrollbar.update()}function U(){if(!isNaN(J.lat)&&!isNaN(J.lng)){B.width("100%");B.height("100%");B.css({position:"absolute"});B.append('<div id="geo_simple_shadow"></div><div id="geo_simple_content"></div>');
c=a("#geo_simple_content");e=a("#geo_simple_shadow");a.browser.msie&&a.browser.version.slice(0,1)!="9"&&(e.css({position:"absolute",width:B.width()-8,height:B.height()-8,background:"#000",top:"3px",left:"3px",display:"block"}),c.css({position:"absolute",background:"#444",border:"2px solid #444",zIndex:"10",margin:"0",width:B.width()-12,height:B.height()-12}));var b=new google.maps.LatLng(J.lat,J.lng);g=new google.maps.Map(c[0],{zoom:14,mapTypeId:google.maps.MapTypeId.HYBRID,center:b,streetViewControl:!1});
new google.maps.Marker({position:b,map:g})}}function fa(b){var c=[];l=new google.maps.LatLngBounds;a.each(b,function(a,d){v.showThumbnails&&a<E&&u.append(o(a));b[a].newLatLng=new google.maps.LatLng(d.lat,d.lng);b[a].Marker=new SimpleMarker(g,d.newLatLng,{id:a,className:"marker",icon:new google.maps.MarkerImage(d.thumbnail.value,new google.maps.Size(d.thumbnail.width,d.thumbnail.height),new google.maps.Point(0,0),new google.maps.Point(0,32)),image:d.thumbnail.value,dimension:new google.maps.Size(d.thumbnail.width,
d.thumbnail.height)});c.push(b[a].Marker);l.extend(b[a].newLatLng)});m=new MarkerClusterer(g,c);c.length==1?(g.setCenter(b[0].newLatLng),g.setZoom(12)):g.fitBounds(l);v.showOwnPosition&&navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(a){a=new google.maps.LatLng(a.coords.latitude,a.coords.longitude);new google.maps.Marker({position:a,map:g,title:"Your Position"})},null)}function K(){var b=f!=null?90:55;a.browser.msie&&(b=f!=null?90:55);var d=a(window).height()-a("#box_footer").height()-
a("#top").height()-a("#mediaContainerInfo").height()-50;if(v.showThumbnails){v.thumbnailCols=a(window).width()<=1024?1:2;M(!0);var e=a(window).height()-a("#box_footer").height()-a("#top").height()-1;y.height(e);u.height(e)}c.height(d+19);var g=a(window).width();g-=b;a.each(H,function(a,b){g-=b.outerWidth(!0)});c.width(g-3);a("#geo_shadow .bottom").width(g-3);a("#geo_shadow").css({width:g+1,height:d+19});f!=null&&f.width(g)}function V(b,d,e){typeof e=="undefined"&&(e=!1);currentMediaId=s[b].id;media=
{};media[albumId]={};media[albumId][currentMediaId]={};media[albumId][currentMediaId].comment_count=s[b].comment_count;var f=s[b].web.height,g=s[b].web.width,l=c.width()>914?640:c.width()*0.7<199?199:c.width()*0.7,j=c.height()*0.75<150?150:c.height()*0.75;g>=f&&g>l&&(f=f*l/g,g=l);if(f>g||f>j)g=g*j/f,f=j;A('<div class="infowindow_detail"><div class="image"><img src="'+s[b].web.value+'" width="'+g+'px" height="'+f+'px" /></div>'+(s[b].name!=""?'<div class="title" style="overflow: hidden; width:'+g+
'px;">'+s[b].name+"</div>":"")+(s[b].description!=""?'<div class="description" style="width:'+g+'px;">'+s[b].description+"</div>":"")+(d===!1?'<a href="#" class="navilink" onclick="return false;">'+L_BACK+"</a>":"")+"</div>",e,b);google.maps.event.addDomListener(t,"domready",function(){a(".infowindow_detail").parent().css("overflow","hidden");a(".infowindow_detail .image img").bind("contextmenu",function(){return!1}).contextMenu();a(".infowindow_detail a.navilink").click(function(){S(e);return!1})});
v.showThumbnails&&z(b);v.showMediaToolbar&&(N(b),a(".infowindow_detail .image img").die().live("dblclick",function(a){a.button==0&&showFullscreen()}));d===!1&&(d=m.clusters_[e].markers_[0])}function X(){w!=null&&(isNaN(parseInt(w.prevMarkerId))||m.markers_[w.prevMarkerId].setVisible(!0),w.setVisible(!1),w=null)}function aa(a,b){w=new google.maps.Marker({position:new google.maps.LatLng(0,0),visible:!1,map:g,draggable:!1,icon:new google.maps.MarkerImage(THEME_URL+"img/window_cross.png",new google.maps.Size(16,
16),new google.maps.Point(0,0),new google.maps.Point(8,8),new google.maps.Size(16,16))});w.prevMarkerId=a;b.setVisible(!1);w.setPosition(b.getPosition());w.setVisible(!0)}function A(b,c,d){X();c=d!==!1?m.markers_[d]:m.clusters_[c].markers_[0];c.map=g;t!=null&&(t.close(),t.marker.setVisible(!0),t=null);t=new google.maps.InfoWindow({content:b});t.marker=c;t.open(g,c);aa(d,c);google.maps.event.addDomListener(t,"closeclick",function(){X();t!=null&&t.close()});a(document).keyup(function(b){b.keyCode==
27&&(X(),t!=null&&t.close(),a(document).unbind(b))});a(window).bind("resize.geomapInfoWindowClose",function(){X();t!=null&&t.close();a(window).unbind("resize.geomapInfoWindowClose")});t.anchor.position_.Ja!=c.getPosition().Ja&&t.anchor.position_.Ka!=c.getPosition().Ka&&g.panTo(c.getPosition())}function S(b){X();var c=m.clusters_[b].markers_,d=a("<div/>",{"class":"geomap_infowindow_list"}),e=L_ZOOM_IN,f="arrow";g.zoom>=8&&(e=L_ZOOM_OUT,f="arrow back");d.append(a("<div/>",{"class":"zoom"}).append(a("<a/>",
{href:"#",onclick:"$.geomapClick({zoom : true, clusterID : "+b+"});return false;"}).append(a("<div/>",{"class":f}),a("<h1/>",{html:e}))));a.each(c,function(c,e){var f=s[e.ID_].description.length>80?s[e.ID_].description.substr(0,80)+"...":s[e.ID_].description,g=s[e.ID_].name.length>30?s[e.ID_].name.substr(0,30)+"...":s[e.ID_].name;d.append(a("<div/>",{"class":"pic",onclick:"$.geomapClick({clusterID : "+b+", itemID : "+e.ID_+"}); return false;"}).append(a("<div/>",{"class":"text"}).append(a("<div/>",
{"class":"img"}).css({height:"52px",overflow:"hidden",marginRight:"10px"}).append(a("<img/>",{src:s[e.ID_].thumbnail.value,oncontextmenu:"return false;"})),a("<h3/>",{html:g}),a("<div/>",{"class":"description",html:f}),a("<div/>",{"class":"button"}))))});A('<div class="geomap_infowindow_list">'+d.html()+"</div>",b,!1)}function M(b){var c=v.thumbnailCols*164+16,d=a("<div/>",{id:"albumNameHeader"}).append(a("<h3/>",{text:a("#albumNameHeaderOriginal").text()}));a("#albumNameHeaderOriginal").hide();if(!b){e.before(a("<div/>",
{"class":"leftBox"}).append(a("<div/>",{"class":"thumbnailContainer",id:"geo_scroller"}).css("margin-right","0px").append(a("<div/>",{"class":"thumbnails",id:"thumbBox"}).append(d),a("<div/>",{"class":"scrollbar",id:"scrollbar"}))));y=a("#geo_scroller");H.savePush(y);u=a("#thumbBox");y.css("float","left");a("#geo_scroller #scrollbar").scrollbar({targetId:"#thumbBox",scrollSpeed:100,asset_path:THEME_URL,scrollerOffset:d.outerHeight(!0)});a(".thumbnail .image").die();a("#geo_scroller .thumbnail .image").live("click",
function(){a("#geo_scroller .thumbnail.choosen").removeClass("choosen");a(this).parent().addClass("choosen");var b=a(this)[0].id.substr(6);V(b,s[b].Marker.ID_)});var f=0,g=E;u.scroll(function(){var b=this,c=this.scrollTop>f,d=parseInt(a(b).find(".thumbnail"+(c?":last":":first")).find(".image")[0].id.slice(6));f=this.scrollTop;var e=a("<div/>",{id:"thumbnailLoader"}).append(a("<img/>",{width:"43px",height:"11px",src:THEME_URL+"img/horizontal-loader.gif"}));if(a("#thumbnailLoader").length==0&&d!=s.length-
1&&d!=0&&(b.scrollHeight<=b.scrollTop+a(b).height()&&c||b.scrollTop==0&&!c))c?a(b).after(e):a(b).before(e),e.css({top:a(b).position().top+(c?a(b).outerHeight(!0)-e.outerHeight(!0)-10:a("#albumNameHeader").outerHeight(!0)),left:a(b).position().left,width:a(b).width()-30}).fadeIn("fast",function(){g=a(b).find(".thumbnail").length;if(c)for(var f=d+1;f<=d+x;f++){if(f>=s.length)break;a(b).append(o(f,!0));g>=I?a(".thumbnail:first").hide().remove():g++}else for(f=d-1;f>=d-x;f--){if(f<0)break;a(b).find(".thumbnail:first").before(o(f,
!0));g>=I?a(".thumbnail:last").remove():g++}a(this).remove();a(".thumbnail:hidden").show();a(b).scrollTo(c?a("#"+d)[0].offsetTop-a(b).height()+a("#"+d).height():a("#"+d)[0].offsetTop-e.outerHeight(!0)-a("#albumNameHeader").outerHeight(!0));a("#geo_scroller #scrollbar").scrollbar.update()})})}u.width(c);y.width(c+15)}function o(b,c){var d=s[b],e=v.viewmode=="ratio",c=typeof c!="undefined"&&c?!0:!1;d.thumbnail_big.width=parseInt(d.thumbnail_big.width);d.thumbnail_big.height=parseInt(d.thumbnail_big.height);
var f=e||d.thumbnail_big.width<150?Math.floor(75-d.thumbnail_big.width/2):-(d.thumbnail_big.width/2-75),g=e||d.thumbnail_big.height<150?Math.floor(75-d.thumbnail_big.height/2):-(d.thumbnail_big.height/2-75),j={},l={},m={},o={};e?(j={height:d.thumbnail_big.height+"px",width:d.thumbnail_big.width+8+"px",top:g,left:f},m={width:d.thumbnail_big.width+"px"},o={height:d.thumbnail_big.height+"px",width:d.thumbnail_big.width+"px"}):l={"margin-top":g+"px","margin-left":f+"px"};return a("<div/>",{"class":"thumbnail shadow "+
(e?"ratio":"tile")+(t!=null&&t.marker.ID_==b?"choosen":""),id:b}).css("display",c?"none":"block").addClass(!e?"tile":"").css("display",c?"none":"block").append(a("<div/>",{"class":"wrapper"}).css(j).append(a("<div/>",{"class":"upper"}).append(a("<div/>",{"class":"right"}).after(a("<div/>",{"class":"left"})).after(a("<div/>",{"class":"thumbwrapper"}).css(o).append(a("<div/>",{"class":"image",id:"thumb_"+b}).append(a("<img/>",{src:d.thumbnail_big.value,height:d.thumbnail_big.height+"px",width:d.thumbnail_big.width+
"px",title:d.name,alt:d.name}).css(l)))))).append(a("<div/>",{"class":"bottom"}).css(m).append(a("<div/>",{"class":"right"}).after(a("<div/>",{"class":"left"})).after(a("<div/>",{"class":"center"})))))}function z(b){if(v.showThumbnails){var c=u,d=a("#thumb_"+b),e=c.scrollTop(),f=c.find(".thumbnail.choosen");f.hasClass("scroll")&&f.removeClass("scroll");f.removeClass("choosen");b=parseInt(b);if(d.length==0){c.html("");d=b+x>s.length?s.length:b+x;for(b=b-x<0?0:b-x;b<d;b++)c.append(o(b,!0)),loadedThumbnails=
b;c.find(".thumbnail:hidden").show();c.find(".thumbnail.choosen").addClass("scroll");b=c.find(".thumbnail.choosen").position().top;e=e<0?b:b-c.height()/2+77}else b=d.parents(".thumbnail"),b.addClass("choosen"),b=b.position().top,c.height()-b<a(".thumbnail").height()?e=c.scrollTop()+(a(".thumbnail").height()+a(".thumbnail").height()-(c.height()-b)):c.height()-b>c.height()?e=c.scrollTop()+b:a(".thumbnail").height()+b+a("#albumNameHeader").height()>=c.height()&&(e=c.scrollTop()+(a(".thumbnail").height()+
a(".thumbnail").height()-(c.height()-b)));c.scrollTo(e<0?0:e,300,function(){a("#geo_scroller #scrollbar").scrollbar.update()})}}function T(){a("#geo_map_container").prepend(a("<div/>",{"class":"smallArrows"}).append(a("<a/>",{"class":"detailNav",id:"detailNavLeft",href:"#"}),a("<a/>",{"class":"detailNav",id:"detailNavRight",href:"#"})));a("#detailNavLeft");a("#detailNavRight");e.css("margin-right","0px");a(document).unbind("keyup");a(document).unbind("keydown");a(document).keydown(function(b){b.keyCode==
37&&(q==null?(q=!1,a("#detailNavLeft").addClass("hover")):q==!1&&(q=!0,a("#detailNavLeft").removeClass("hover")));b.keyCode==39&&(q==null?(q=!1,a("#detailNavRight").addClass("hover")):q==!1&&(q=!0,a("#detailNavRight").removeClass("hover")))});a(document).keyup(function(b){!q&&b.keyCode==37&&a("#detailNavLeft").removeClass("hover").click();!q&&b.keyCode==39&&a("#detailNavRight").removeClass("hover").click();q=null});a(".detailNav").die();a(".detailNav").live("click.geoMapNav",function(b){b.preventDefault();
var b=b.currentTarget.id=="detailNavLeft",c=a("#geo_scroller .thumbnail.choosen .image"),d=b?s.length-1:0;c.length!=0?(d=!b&&c[0].id==a("#geo_scroller .thumbnail:last .image")[0].id?0:b&&c[0].id==a("#geo_scroller .thumbnail:first .image")[0].id?a("#geo_scroller .thumbnail").length-1:parseInt(c[0].id.substr(6))+(b?-1:1),isNaN(d)&&a(this).hide(),a("#geo_scroller .thumbnail.choosen").removeClass("choosen"),a("#thumb_"+d).parent().addClass("choosen")):a("#mediaContainerInfo #mediaPosition span").length>
0&&a("#mediaContainerInfo #mediaPosition").text()!=""&&(d=parseInt(a("#mediaContainerInfo #mediaPosition span").text().split("/")[0]),isNaN(d)&&a(this).hide(),b?(d-=2,d=d<0?s.length-1:d):d=d==s.length?0:d);v.showMediaToolbar&&N(d);isFullscreen?goToMedium(!1,s[d].id):V(d,d)})}function d(){var b='<div id="mediaContainerInfo" style="width: 100%; visibility: hidden;"><div class="title" title=""></div><div class="mediaBar" style="width: 175px;"><div class="mediaControls">'+v.shareHtml+'<a href="" class="icon info"></a><a href="javascript:showFullscreen()" class="icon fullscreen" title=""></a></div><div id="mediaPosition"><span></span></div></div></div> <\!-- mediaContainerInfo --\>',
d=e.html();a("#geo_map_container").length==0&&e.attr({id:"geo_map_container","class":"rightBox"});f=a("#geo_map_container");f.html(b).css({"margin-right":"15px"});f.append('<div id="geo_shadow" class="shadow">'+d+"</div>");e=a("#geo_shadow");c=a("#geo_content")}function N(b){var b=parseInt(b),c=a("#geo_map_container #mediaContainerInfo");currentMediaId=s[b].id;(s[b].name!=null||s[b].name!="undefined"||s[b].name!="")&&c.children(".title").text(s[b].name);a("#mediaPosition span").html(b+1+"/"+s.length);
c.find(".icon.info").attr("href","javascript:showMediaInfoBox('mediaInfo',"+v.albumId+","+s[b].id+")");c.find(".icon.share").length>0&&c.find(".icon.share").attr("href","javascript:displayShareBox("+v.albumId+","+s[b].id+")");c.css("visibility")!="visible"&&c.css({opacity:0,width:"100%",visibility:"visible"}).animate({opacity:1},500)}var B=a(this),q=null,E=30,x=20,I=50;if(ba=="click"){clusterID=J.clusterID;itemID=J.itemID;source=J.source;zoom=J.zoom==!0?!0:!1;if(!isNaN(itemID)&&typeof source=="object")return this.each(function(){V(itemID,
source)});else if(!isNaN(itemID)&&!isNaN(clusterID))return this.each(function(){V(itemID,!1,clusterID)});else if(!isNaN(clusterID)&&zoom)return this.each(function(){var a=clusterID;g.zoom>=8?g.fitBounds(l):(g.panTo(m.clusters_[a].markers_[0].getPosition()),g.setZoom(15))});return this.each(function(){S(clusterID)})}return this.each(function(){J&&a.extend(v,J);if(v.type=="simple")v.type=!1,O(U);else{s=ba;var b=!1;a.each(s,function(a,c){typeof c.lat!="undefined"&&typeof c.lng!="undefined"&&c.lng!=""&&
c.lat!=""&&(b=!0)});b?O(Z):a("#"+B[0].id+" #error_no_geo_items").show()}})};a.geomapClick=function(a){b.geomap("click",a)}})(jQuery);(function(a){a.fn.loadingwheel=function(b){b=a.extend({speed:0.2},b);return this.each(function(){function c(){var a=setInterval(function(){if(b.speed*100==s){var a=parseInt(m.css("margin-top"))-l;(g+1)*l>=t?a=g=0:g++;m.css("margin-top",a+"px");s=0}else s++},0);f.data("interval",a)}function e(){clearInterval(f.data("interval"));f.hide();s=g=0;m.css("margin-top","0px")}var f=a(this),g=0,l=f.height(),m=f.find("img"),t=parseInt(m.css("height")),s=0;f.loadingwheel.start=function(){e();f.show();c()};f.loadingwheel.stop=
function(){e()}})}})(jQuery);
