(function(i,l){function t(a,b,d){if(d===l&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Q.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=l}return d}function A(){return false}function y(){return true}function D(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function R(a){var b,d,e,f,h,n,m,q,G,z,M,U=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)M=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var ja=h.live.slice(0);for(m=0;m<ja.length;m++){h=ja[m];h.origType.replace(Fa,"")===a.type?f.push(h.selector):ja.splice(m--,1)}f=c(a.target).closest(f,a.currentTarget);q=0;for(G=f.length;q<G;q++){z=f[q];for(m=0;m<ja.length;m++){h=ja[m];if(z.selector===h.selector&&(!M||M.test(h.namespace))){n=z.elem;e=null;if(h.preType===
"mouseenter"||h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==n)U.push({elem:n,handleObj:h,level:z.level})}}}q=0;for(G=U.length;q<G;q++){f=U[q];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;M=f.handleObj.origHandler.apply(f.elem,arguments);if(M===false||a.isPropagationStopped()){d=f.level;if(M===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function ca(a,b){return(a&&a!=="*"?a+".":
"")+b.replace(Ma,"`").replace(Ha,"&")}function X(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function na(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(E.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function Ga(a){return c.nodeName(a,"table")?
a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function sa(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var n in e[h])c.event.add(this,h,e[h][n],e[h][n].data)}}})}function B(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}
function C(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?gb:hb,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function K(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||ib.test(a)?e(a,h):K(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?
e(a,""):c.each(b,function(f,h){K(a+"["+f+"]",h,d,e)});else e(a,b)}function I(a,b){var d={};c.each(ab.concat.apply([],ab.slice(0,b)),function(){d[this]=a});return d}function W(a){if(!Ya[a]){var b=c("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";Ya[a]=d}return Ya[a]}function ga(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var u=i.document,c=function(){function a(){if(!b.isReady){try{u.documentElement.doScroll("left")}catch(k){setTimeout(a,
1);return}b.ready()}}var b=function(k,w){return new b.fn.init(k,w)},d=i.jQuery,e=i.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,n=/\S/,m=/^\s+/,q=/\s+$/,G=/\W/,z=/\d/,M=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,U=/^[\],:{}\s]*$/,ja=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,H=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ha=/(?:^|:|,)(?:\s*\[)+/g,ta=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,j=/(msie) ([\w.]+)/,o=/(mozilla)(?:.*? rv:([\w.]+))?/,r=navigator.userAgent,v=false,
x=[],J,N=Object.prototype.toString,da=Object.prototype.hasOwnProperty,ra=Array.prototype.push,ua=Array.prototype.slice,va=String.prototype.trim,ba=Array.prototype.indexOf,Ja={};b.fn=b.prototype={init:function(k,w){var F,S;if(!k)return this;if(k.nodeType){this.context=this[0]=k;this.length=1;return this}if(k==="body"&&!w&&u.body){this.context=u;this[0]=u.body;this.selector="body";this.length=1;return this}if(typeof k==="string")if((F=h.exec(k))&&(F[1]||!w))if(F[1]){S=w?w.ownerDocument||w:u;if(k=M.exec(k))if(b.isPlainObject(w)){k=
[u.createElement(k[1])];b.fn.attr.call(k,w,true)}else k=[S.createElement(k[1])];else{k=b.buildFragment([F[1]],[S]);k=(k.cacheable?k.fragment.cloneNode(true):k.fragment).childNodes}return b.merge(this,k)}else{if((w=u.getElementById(F[2]))&&w.parentNode){if(w.id!==F[2])return f.find(k);this.length=1;this[0]=w}this.context=u;this.selector=k;return this}else if(!w&&!G.test(k)){this.selector=k;this.context=u;k=u.getElementsByTagName(k);return b.merge(this,k)}else return!w||w.jquery?(w||f).find(k):b(w).find(k);
else if(b.isFunction(k))return f.ready(k);if(k.selector!==l){this.selector=k.selector;this.context=k.context}return b.makeArray(k,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return ua.call(this,0)},get:function(k){return k==null?this.toArray():k<0?this.slice(k)[0]:this[k]},pushStack:function(k,w,F){var S=b();b.isArray(k)?ra.apply(S,k):b.merge(S,k);S.prevObject=this;S.context=this.context;if(w==="find")S.selector=this.selector+(this.selector?" ":
"")+F;else if(w)S.selector=this.selector+"."+w+"("+F+")";return S},each:function(k,w){return b.each(this,k,w)},ready:function(k){b.bindReady();if(b.isReady)k.call(u,b);else x&&x.push(k);return this},eq:function(k){return k===-1?this.slice(k):this.slice(k,+k+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ua.apply(this,arguments),"slice",ua.call(arguments).join(","))},map:function(k){return this.pushStack(b.map(this,function(w,F){return k.call(w,
F,w)}))},end:function(){return this.prevObject||b(null)},push:ra,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var k,w,F,S,ka,ea=arguments[0]||{},pa=1,wa=arguments.length,Za=false;if(typeof ea==="boolean"){Za=ea;ea=arguments[1]||{};pa=2}if(typeof ea!=="object"&&!b.isFunction(ea))ea={};if(wa===pa){ea=this;--pa}for(;pa<wa;pa++)if((k=arguments[pa])!=null)for(w in k){F=ea[w];S=k[w];if(ea!==S)if(Za&&S&&(b.isPlainObject(S)||(ka=b.isArray(S)))){if(ka){ka=false;F=
F&&b.isArray(F)?F:[]}else F=F&&b.isPlainObject(F)?F:{};ea[w]=b.extend(Za,F,S)}else if(S!==l)ea[w]=S}return ea};b.extend({noConflict:function(k){i.$=e;if(k)i.jQuery=d;return b},isReady:false,readyWait:1,ready:function(k){k===true&&b.readyWait--;if(!b.readyWait||k!==true&&!b.isReady){if(!u.body)return setTimeout(b.ready,1);b.isReady=true;if(!(k!==true&&--b.readyWait>0))if(x){var w=0,F=x;for(x=null;k=F[w++];)k.call(u,b);b.fn.trigger&&b(u).trigger("ready").unbind("ready")}}},bindReady:function(){if(!v){v=
true;if(u.readyState==="complete")return setTimeout(b.ready,1);if(u.addEventListener){u.addEventListener("DOMContentLoaded",J,false);i.addEventListener("load",b.ready,false)}else if(u.attachEvent){u.attachEvent("onreadystatechange",J);i.attachEvent("onload",b.ready);var k=false;try{k=i.frameElement==null}catch(w){}u.documentElement.doScroll&&k&&a()}}},isFunction:function(k){return b.type(k)==="function"},isArray:Array.isArray||function(k){return b.type(k)==="array"},isWindow:function(k){return k&&
typeof k==="object"&&"setInterval"in k},isNaN:function(k){return k==null||!z.test(k)||isNaN(k)},type:function(k){return k==null?String(k):Ja[N.call(k)]||"object"},isPlainObject:function(k){if(!k||b.type(k)!=="object"||k.nodeType||b.isWindow(k))return false;if(k.constructor&&!da.call(k,"constructor")&&!da.call(k.constructor.prototype,"isPrototypeOf"))return false;var w;for(w in k);return w===l||da.call(k,w)},isEmptyObject:function(k){for(var w in k)return false;return true},error:function(k){throw k;
},parseJSON:function(k){if(typeof k!=="string"||!k)return null;k=b.trim(k);if(U.test(k.replace(ja,"@").replace(H,"]").replace(ha,"")))return i.JSON&&i.JSON.parse?i.JSON.parse(k):(new Function("return "+k))();else b.error("Invalid JSON: "+k)},noop:function(){},globalEval:function(k){if(k&&n.test(k)){var w=u.getElementsByTagName("head")[0]||u.documentElement,F=u.createElement("script");F.type="text/javascript";if(b.support.scriptEval)F.appendChild(u.createTextNode(k));else F.text=k;w.insertBefore(F,
w.firstChild);w.removeChild(F)}},nodeName:function(k,w){return k.nodeName&&k.nodeName.toUpperCase()===w.toUpperCase()},each:function(k,w,F){var S,ka=0,ea=k.length,pa=ea===l||b.isFunction(k);if(F)if(pa)for(S in k){if(w.apply(k[S],F)===false)break}else for(;ka<ea;){if(w.apply(k[ka++],F)===false)break}else if(pa)for(S in k){if(w.call(k[S],S,k[S])===false)break}else for(F=k[0];ka<ea&&w.call(F,ka,F)!==false;F=k[++ka]);return k},trim:va?function(k){return k==null?"":va.call(k)}:function(k){return k==null?
"":k.toString().replace(m,"").replace(q,"")},makeArray:function(k,w){w=w||[];if(k!=null){var F=b.type(k);k.length==null||F==="string"||F==="function"||F==="regexp"||b.isWindow(k)?ra.call(w,k):b.merge(w,k)}return w},inArray:function(k,w){if(w.indexOf)return w.indexOf(k);for(var F=0,S=w.length;F<S;F++)if(w[F]===k)return F;return-1},merge:function(k,w){var F=k.length,S=0;if(typeof w.length==="number")for(var ka=w.length;S<ka;S++)k[F++]=w[S];else for(;w[S]!==l;)k[F++]=w[S++];k.length=F;return k},grep:function(k,
w,F){var S=[],ka;F=!!F;for(var ea=0,pa=k.length;ea<pa;ea++){ka=!!w(k[ea],ea);F!==ka&&S.push(k[ea])}return S},map:function(k,w,F){for(var S=[],ka,ea=0,pa=k.length;ea<pa;ea++){ka=w(k[ea],ea,F);if(ka!=null)S[S.length]=ka}return S.concat.apply([],S)},guid:1,proxy:function(k,w,F){if(arguments.length===2)if(typeof w==="string"){F=k;k=F[w];w=l}else if(w&&!b.isFunction(w)){F=w;w=l}if(!w&&k)w=function(){return k.apply(F||this,arguments)};if(k)w.guid=k.guid=k.guid||w.guid||b.guid++;return w},access:function(k,
w,F,S,ka,ea){var pa=k.length;if(typeof w==="object"){for(var wa in w)b.access(k,wa,w[wa],S,ka,F);return k}if(F!==l){S=!ea&&S&&b.isFunction(F);for(wa=0;wa<pa;wa++)ka(k[wa],w,S?F.call(k[wa],wa,ka(k[wa],w)):F,ea);return k}return pa?ka(k[0],w):l},now:function(){return(new Date).getTime()},uaMatch:function(k){k=k.toLowerCase();k=ta.exec(k)||g.exec(k)||j.exec(k)||k.indexOf("compatible")<0&&o.exec(k)||[];return{browser:k[1]||"",version:k[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),
function(k,w){Ja["[object "+w+"]"]=w.toLowerCase()});r=b.uaMatch(r);if(r.browser){b.browser[r.browser]=true;b.browser.version=r.version}if(b.browser.webkit)b.browser.safari=true;if(ba)b.inArray=function(k,w){return ba.call(w,k)};if(!/\s/.test("\u00a0")){m=/^[\s\xA0]+/;q=/[\s\xA0]+$/}f=b(u);if(u.addEventListener)J=function(){u.removeEventListener("DOMContentLoaded",J,false);b.ready()};else if(u.attachEvent)J=function(){if(u.readyState==="complete"){u.detachEvent("onreadystatechange",J);b.ready()}};
return i.jQuery=i.$=b}();(function(){c.support={};var a=u.documentElement,b=u.createElement("script"),d=u.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],n=u.createElement("select"),m=n.appendChild(u.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===
3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:m.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};
n.disabled=true;c.support.optDisabled=!m.disabled;b.type="text/javascript";try{b.appendChild(u.createTextNode("window."+e+"=1;"))}catch(q){}a.insertBefore(b,a.firstChild);if(i[e]){c.support.scriptEval=true;delete i[e]}try{delete b.test}catch(G){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function z(){c.support.noCloneEvent=false;d.detachEvent("onclick",z)});d.cloneNode(true).fireEvent("onclick")}d=u.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";
a=u.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var z=u.createElement("div");z.style.width=z.style.paddingLeft="1px";u.body.appendChild(z);c.boxModel=c.support.boxModel=z.offsetWidth===2;if("zoom"in z.style){z.style.display="inline";z.style.zoom=1;c.support.inlineBlockNeedsLayout=z.offsetWidth===2;z.style.display="";z.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=z.offsetWidth!==
2}z.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var M=z.getElementsByTagName("td");c.support.reliableHiddenOffsets=M[0].offsetHeight===0;M[0].style.display="";M[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&M[0].offsetHeight===0;z.innerHTML="";u.body.removeChild(z).style.display="none"});a=function(z){var M=u.createElement("div");z="on"+z;var U=z in M;if(!U){M.setAttribute(z,"return;");U=typeof M[z]==="function"}return U};
c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var T={},Q=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==i?T:a;var e=a.nodeType,f=e?a[c.expando]:null,h=c.cache;if(!(e&&!f&&typeof b==="string"&&d===l)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,
b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==l)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==i?T:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);else if(d)delete f[e];else for(var n in a)delete a[n]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];
if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,n=e.length;h<n;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);t(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,a)});var m=a.split(".");m[1]=m[1]?"."+m[1]:"";if(b===l){d=this.triggerHandler("getData"+m[1]+"!",[m[0]]);if(d===l&&this.length){d=
c.data(this[0],a);d=t(this[0],a,d)}return d===l&&m[1]?this.data(m[0]):d}else return this.each(function(){var q=c(this),G=[m[0],b];q.triggerHandler("setData"+m[1]+"!",G);c.data(this,a,b);q.triggerHandler("changeData"+m[1]+"!",G)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=
b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===l)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,
function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var V=/[\n\t]/g,la=/\s+/,xa=/\r/g,qa=/^(?:href|src|style)$/,fa=/^(?:button|input)$/i,Z=/^(?:button|input|object|select|textarea)$/i,Ca=/^a(?:rea)?$/i,Sa=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};
c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(G){var z=c(this);z.addClass(a.call(this,G,z.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(la),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1)if(f.className){for(var h=" "+f.className+" ",n=f.className,m=0,q=b.length;m<
q;m++)if(h.indexOf(" "+b[m]+" ")<0)n+=" "+b[m];f.className=c.trim(n)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(q){var G=c(this);G.removeClass(a.call(this,q,G.attr("class")))});if(a&&typeof a==="string"||a===l)for(var b=(a||"").split(la),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(V," "),n=0,m=b.length;n<m;n++)h=h.replace(" "+b[n]+" "," ");f.className=c.trim(h)}else f.className=
""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,n=c(this),m=b,q=a.split(la);f=q[h++];){m=e?m:!n.hasClass(f);n[m?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,
"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(V," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var n=f[h];if(n.selected&&
(c.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!c.nodeName(n.parentNode,"optgroup"))){a=c(n).val();if(b)return a;d.push(a)}}return d}if(Sa.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(xa,"")}return l}var m=c.isFunction(a);return this.each(function(q){var G=c(this),z=a;if(this.nodeType===1){if(m)z=a.call(this,q,G.val());if(z==null)z="";else if(typeof z==="number")z+="";else if(c.isArray(z))z=
c.map(z,function(U){return U==null?"":U+""});if(c.isArray(z)&&Sa.test(this.type))this.checked=c.inArray(G.val(),z)>=0;else if(c.nodeName(this,"select")){var M=c.makeArray(z);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),M)>=0});if(!M.length)this.selectedIndex=-1}else this.value=z}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return l;if(e&&b in c.attrFn)return c(a)[b](d);
e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==l;b=e&&c.props[b]||b;var h=qa.test(b);if((b in a||a[b]!==l)&&e&&!h){if(f){b==="type"&&fa.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Z.test(a.nodeName)||Ca.test(a.nodeName)&&a.href?0:l;return a[b]}if(!c.support.style&&
e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return l;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?l:a}});var Fa=/\.(.*)$/,ya=/^(?:textarea|input|select)$/i,Ma=/\./g,Ha=/ /g,Ka=/[^\w\s.|`]/g,Na=function(a){return a.replace(Ka,"\\$&")},Oa={focusin:0,focusout:0};c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==i&&!a.frameElement)a=
i;if(d===false)d=A;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var n=a.nodeType?"events":"__events__",m=h[n],q=h.handle;if(typeof m==="function"){q=m.handle;m=m.events}else if(!m){a.nodeType||(h[n]=h=function(){});h.events=m={}}if(!q)h.handle=q=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(q.elem,arguments):l};q.elem=a;b=b.split(" ");for(var G=0,z;n=b[G++];){h=f?c.extend({},f):{handler:d,data:e};if(n.indexOf(".")>
-1){z=n.split(".");n=z.shift();h.namespace=z.slice(0).sort().join(".")}else{z=[];h.namespace=""}h.type=n;if(!h.guid)h.guid=d.guid;var M=m[n],U=c.event.special[n]||{};if(!M){M=m[n]=[];if(!U.setup||U.setup.call(a,e,z,q)===false)if(a.addEventListener)a.addEventListener(n,q,false);else a.attachEvent&&a.attachEvent("on"+n,q)}if(U.add){U.add.call(a,h);if(!h.handler.guid)h.handler.guid=d.guid}M.push(h);c.event.global[n]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===
8)){if(d===false)d=A;var f,h,n=0,m,q,G,z,M,U,ja=a.nodeType?"events":"__events__",H=c.data(a),ha=H&&H[ja];if(H&&ha){if(typeof ha==="function"){H=ha;ha=ha.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in ha)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[n++];){z=f;m=f.indexOf(".")<0;q=[];if(!m){q=f.split(".");f=q.shift();G=new RegExp("(^|\\.)"+c.map(q.slice(0).sort(),Na).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(M=ha[f])if(d){z=c.event.special[f]||
{};for(h=e||0;h<M.length;h++){U=M[h];if(d.guid===U.guid){if(m||G.test(U.namespace)){e==null&&M.splice(h--,1);z.remove&&z.remove.call(a,U)}if(e!=null)break}}if(M.length===0||e!=null&&M.length===1){if(!z.teardown||z.teardown.call(a,q)===false)c.removeEvent(a,f,H.handle);delete ha[f]}}else for(h=0;h<M.length;h++){U=M[h];if(m||G.test(U.namespace)){c.event.remove(a,z,U.handler,h);M.splice(h--,1)}}}if(c.isEmptyObject(ha)){if(b=H.handle)b.elem=null;delete H.events;delete H.handle;if(typeof H==="function")c.removeData(a,
ja);else c.isEmptyObject(H)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return l;a.result=l;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?
c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var n;e=a.target;var m=f.replace(Fa,""),q=c.nodeName(e,"a")&&m==="click",G=c.event.special[m]||{};if((!G._default||G._default.call(d,a)===false)&&!q&&!(e&&e.nodeName&&
c.noData[e.nodeName.toLowerCase()])){try{if(e[m]){if(n=e["on"+m])e["on"+m]=null;c.event.triggered=true;e[m]()}}catch(z){}if(n)e["on"+m]=n;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||i.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?
"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var n=d.length;f<n;f++){var m=d[f];if(b||e.test(m.namespace)){a.handler=m.handler;a.data=m.data;a.handleObj=m;m=m.handler.apply(this,h);if(m!==l){a.result=m;if(m===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||u;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=u.documentElement;d=u.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==l)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,ca(a.origType,a.selector),c.extend({},a,{handler:R,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
ca(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=u.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=y;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:A,isPropagationStopped:A,isImmediatePropagationStopped:A};
var Ta=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Da=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Da:Ta,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Da:Ta)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
"form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=l;return D("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=l;return D("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var Ea,
za=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Ia=function(a,b){var d=a.target,e,f;if(!(!ya.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=za(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===l||f===e))if(e!=null||f){a.type="change";a.liveFired=
l;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Ia,beforedeactivate:Ia,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Ia.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Ia.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",za(a))}},setup:function(){if(this.type===
"file")return false;for(var a in Ea)c.event.add(this,a+".specialChange",Ea[a]);return ya.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ya.test(this.nodeName)}};Ea=c.event.special.change.filters;Ea.focus=Ea.beforeactivate}u.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){Oa[b]++===0&&u.addEventListener(a,d,true)},teardown:function(){--Oa[b]===
0&&u.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=l}var n=b==="one"?c.proxy(f,function(q){c(this).unbind(q,n);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var m=this.length;h<m;h++)c.event.add(this[h],d,n,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d<
b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ua={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var n,m=0,q,G,z=h||this.selector;h=h?this:c(this.context);if(typeof d===
"object"&&!d.preventDefault){for(n in d)h[b](n,e,d[n],z);return this}if(c.isFunction(e)){f=e;e=l}for(d=(d||"").split(" ");(n=d[m++])!=null;){q=Fa.exec(n);G="";if(q){G=q[0];n=n.replace(Fa,"")}if(n==="hover")d.push("mouseenter"+G,"mouseleave"+G);else{q=n;if(n==="focus"||n==="blur"){d.push(Ua[n]+G);n+=G}else n=(Ua[n]||n)+G;if(b==="live"){G=0;for(var M=h.length;G<M;G++)c.event.add(h[G],"live."+ca(n,z),{data:e,selector:z,handler:f,origType:n,origHandler:f,preType:q})}else h.unbind("live."+ca(n,z),f)}}return this}});
c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});i.attachEvent&&!i.addEventListener&&c(i).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
(function(){function a(g,j,o,r,v,x){v=0;for(var J=r.length;v<J;v++){var N=r[v];if(N){var da=false;for(N=N[g];N;){if(N.sizcache===o){da=r[N.sizset];break}if(N.nodeType===1&&!x){N.sizcache=o;N.sizset=v}if(N.nodeName.toLowerCase()===j){da=N;break}N=N[g]}r[v]=da}}}function b(g,j,o,r,v,x){v=0;for(var J=r.length;v<J;v++){var N=r[v];if(N){var da=false;for(N=N[g];N;){if(N.sizcache===o){da=r[N.sizset];break}if(N.nodeType===1){if(!x){N.sizcache=o;N.sizset=v}if(typeof j!=="string"){if(N===j){da=true;break}}else if(m.filter(j,
[N]).length>0){da=N;break}}N=N[g]}r[v]=da}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,n=true;[0,0].sort(function(){n=false;return 0});var m=function(g,j,o,r){o=o||[];var v=j=j||u;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!g||typeof g!=="string")return o;var x,J,N,da,ra,ua=true,va=m.isXML(j),ba=[],Ja=g;do{d.exec("");if(x=d.exec(Ja)){Ja=x[3];ba.push(x[1]);if(x[2]){da=
x[3];break}}}while(x);if(ba.length>1&&G.exec(g))if(ba.length===2&&q.relative[ba[0]])J=ta(ba[0]+ba[1],j);else for(J=q.relative[ba[0]]?[j]:m(ba.shift(),j);ba.length;){g=ba.shift();if(q.relative[g])g+=ba.shift();J=ta(g,J)}else{if(!r&&ba.length>1&&j.nodeType===9&&!va&&q.match.ID.test(ba[0])&&!q.match.ID.test(ba[ba.length-1])){x=m.find(ba.shift(),j,va);j=x.expr?m.filter(x.expr,x.set)[0]:x.set[0]}if(j){x=r?{expr:ba.pop(),set:U(r)}:m.find(ba.pop(),ba.length===1&&(ba[0]==="~"||ba[0]==="+")&&j.parentNode?
j.parentNode:j,va);J=x.expr?m.filter(x.expr,x.set):x.set;if(ba.length>0)N=U(J);else ua=false;for(;ba.length;){x=ra=ba.pop();if(q.relative[ra])x=ba.pop();else ra="";if(x==null)x=j;q.relative[ra](N,x,va)}}else N=[]}N||(N=J);N||m.error(ra||g);if(f.call(N)==="[object Array]")if(ua)if(j&&j.nodeType===1)for(g=0;N[g]!=null;g++){if(N[g]&&(N[g]===true||N[g].nodeType===1&&m.contains(j,N[g])))o.push(J[g])}else for(g=0;N[g]!=null;g++)N[g]&&N[g].nodeType===1&&o.push(J[g]);else o.push.apply(o,N);else U(N,o);if(da){m(da,
v,o,r);m.uniqueSort(o)}return o};m.uniqueSort=function(g){if(H){h=n;g.sort(H);if(h)for(var j=1;j<g.length;j++)g[j]===g[j-1]&&g.splice(j--,1)}return g};m.matches=function(g,j){return m(g,null,null,j)};m.matchesSelector=function(g,j){return m(j,null,null,[g]).length>0};m.find=function(g,j,o){var r;if(!g)return[];for(var v=0,x=q.order.length;v<x;v++){var J,N=q.order[v];if(J=q.leftMatch[N].exec(g)){var da=J[1];J.splice(1,1);if(da.substr(da.length-1)!=="\\"){J[1]=(J[1]||"").replace(/\\/g,"");r=q.find[N](J,
j,o);if(r!=null){g=g.replace(q.match[N],"");break}}}}r||(r=j.getElementsByTagName("*"));return{set:r,expr:g}};m.filter=function(g,j,o,r){for(var v,x,J=g,N=[],da=j,ra=j&&j[0]&&m.isXML(j[0]);g&&j.length;){for(var ua in q.filter)if((v=q.leftMatch[ua].exec(g))!=null&&v[2]){var va,ba,Ja=q.filter[ua];ba=v[1];x=false;v.splice(1,1);if(ba.substr(ba.length-1)!=="\\"){if(da===N)N=[];if(q.preFilter[ua])if(v=q.preFilter[ua](v,da,o,N,r,ra)){if(v===true)continue}else x=va=true;if(v)for(var k=0;(ba=da[k])!=null;k++)if(ba){va=
Ja(ba,v,k,da);var w=r^!!va;if(o&&va!=null)if(w)x=true;else da[k]=false;else if(w){N.push(ba);x=true}}if(va!==l){o||(da=N);g=g.replace(q.match[ua],"");if(!x)return[];break}}}if(g===J)if(x==null)m.error(g);else break;J=g}return da};m.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var q=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,j){var o=typeof j==="string",r=o&&!/\W/.test(j);o=o&&!r;if(r)j=j.toLowerCase();r=0;for(var v=g.length,
x;r<v;r++)if(x=g[r]){for(;(x=x.previousSibling)&&x.nodeType!==1;);g[r]=o||x&&x.nodeName.toLowerCase()===j?x||false:x===j}o&&m.filter(j,g,true)},">":function(g,j){var o,r=typeof j==="string",v=0,x=g.length;if(r&&!/\W/.test(j))for(j=j.toLowerCase();v<x;v++){if(o=g[v]){o=o.parentNode;g[v]=o.nodeName.toLowerCase()===j?o:false}}else{for(;v<x;v++)if(o=g[v])g[v]=r?o.parentNode:o.parentNode===j;r&&m.filter(j,g,true)}},"":function(g,j,o){var r,v=e++,x=b;if(typeof j==="string"&&!/\W/.test(j)){r=j=j.toLowerCase();
x=a}x("parentNode",j,v,g,r,o)},"~":function(g,j,o){var r,v=e++,x=b;if(typeof j==="string"&&!/\W/.test(j)){r=j=j.toLowerCase();x=a}x("previousSibling",j,v,g,r,o)}},find:{ID:function(g,j,o){if(typeof j.getElementById!=="undefined"&&!o)return(g=j.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,j){if(typeof j.getElementsByName!=="undefined"){var o=[];j=j.getElementsByName(g[1]);for(var r=0,v=j.length;r<v;r++)j[r].getAttribute("name")===g[1]&&o.push(j[r]);return o.length===0?null:o}},TAG:function(g,
j){return j.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,j,o,r,v,x){g=" "+g[1].replace(/\\/g,"")+" ";if(x)return g;x=0;for(var J;(J=j[x])!=null;x++)if(J)if(v^(J.className&&(" "+J.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))o||r.push(J);else if(o)j[x]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var j=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&
"0n+"+g[2]||g[2]);g[2]=j[1]+(j[2]||1)-0;g[3]=j[3]-0}g[0]=e++;return g},ATTR:function(g,j,o,r,v,x){j=g[1].replace(/\\/g,"");if(!x&&q.attrMap[j])g[1]=q.attrMap[j];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,j,o,r,v){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=m(g[3],null,null,j);else{g=m.filter(g[3],j,o,true^v);o||r.push.apply(r,g);return false}else if(q.match.POS.test(g[0])||q.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},
filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,j,o){return!!m(o[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===
g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,j){return j===0},last:function(g,j,o,r){return j===r.length-1},even:function(g,j){return j%2===
0},odd:function(g,j){return j%2===1},lt:function(g,j,o){return j<o[3]-0},gt:function(g,j,o){return j>o[3]-0},nth:function(g,j,o){return o[3]-0===j},eq:function(g,j,o){return o[3]-0===j}},filter:{PSEUDO:function(g,j,o,r){var v=j[1],x=q.filters[v];if(x)return x(g,o,j,r);else if(v==="contains")return(g.textContent||g.innerText||m.getText([g])||"").indexOf(j[3])>=0;else if(v==="not"){j=j[3];o=0;for(r=j.length;o<r;o++)if(j[o]===g)return false;return true}else m.error("Syntax error, unrecognized expression: "+
v)},CHILD:function(g,j){var o=j[1],r=g;switch(o){case "only":case "first":for(;r=r.previousSibling;)if(r.nodeType===1)return false;if(o==="first")return true;r=g;case "last":for(;r=r.nextSibling;)if(r.nodeType===1)return false;return true;case "nth":o=j[2];var v=j[3];if(o===1&&v===0)return true;j=j[0];var x=g.parentNode;if(x&&(x.sizcache!==j||!g.nodeIndex)){var J=0;for(r=x.firstChild;r;r=r.nextSibling)if(r.nodeType===1)r.nodeIndex=++J;x.sizcache=j}g=g.nodeIndex-v;return o===0?g===0:g%o===0&&g/o>=
0}},ID:function(g,j){return g.nodeType===1&&g.getAttribute("id")===j},TAG:function(g,j){return j==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===j},CLASS:function(g,j){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(g,j){var o=j[1];g=q.attrHandle[o]?q.attrHandle[o](g):g[o]!=null?g[o]:g.getAttribute(o);o=g+"";var r=j[2];j=j[4];return g==null?r==="!=":r==="="?o===j:r==="*="?o.indexOf(j)>=0:r==="~="?(" "+o+" ").indexOf(j)>=0:!j?o&&g!==false:r==="!="?o!==j:r==="^="?
o.indexOf(j)===0:r==="$="?o.substr(o.length-j.length)===j:r==="|="?o===j||o.substr(0,j.length+1)===j+"-":false},POS:function(g,j,o,r){var v=q.setFilters[j[2]];if(v)return v(g,o,j,r)}}},G=q.match.POS,z=function(g,j){return"\\"+(j-0+1)};for(var M in q.match){q.match[M]=new RegExp(q.match[M].source+/(?![^\[]*\])(?![^\(]*\))/.source);q.leftMatch[M]=new RegExp(/(^(?:.|\r|\n)*?)/.source+q.match[M].source.replace(/\\(\d+)/g,z))}var U=function(g,j){g=Array.prototype.slice.call(g,0);if(j){j.push.apply(j,g);
return j}return g};try{Array.prototype.slice.call(u.documentElement.childNodes,0)}catch(ja){U=function(g,j){var o=0;j=j||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(j,g);else if(typeof g.length==="number")for(var r=g.length;o<r;o++)j.push(g[o]);else for(;g[o];o++)j.push(g[o]);return j}}var H,ha;if(u.documentElement.compareDocumentPosition)H=function(g,j){if(g===j){h=true;return 0}if(!g.compareDocumentPosition||!j.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(j)&
4?-1:1};else{H=function(g,j){var o,r,v=[],x=[];o=g.parentNode;r=j.parentNode;var J=o;if(g===j){h=true;return 0}else if(o===r)return ha(g,j);else if(o){if(!r)return 1}else return-1;for(;J;){v.unshift(J);J=J.parentNode}for(J=r;J;){x.unshift(J);J=J.parentNode}o=v.length;r=x.length;for(J=0;J<o&&J<r;J++)if(v[J]!==x[J])return ha(v[J],x[J]);return J===o?ha(g,x[J],-1):ha(v[J],j,1)};ha=function(g,j,o){if(g===j)return o;for(g=g.nextSibling;g;){if(g===j)return-1;g=g.nextSibling}return 1}}m.getText=function(g){for(var j=
"",o,r=0;g[r];r++){o=g[r];if(o.nodeType===3||o.nodeType===4)j+=o.nodeValue;else if(o.nodeType!==8)j+=m.getText(o.childNodes)}return j};(function(){var g=u.createElement("div"),j="script"+(new Date).getTime(),o=u.documentElement;g.innerHTML="<a name='"+j+"'/>";o.insertBefore(g,o.firstChild);if(u.getElementById(j)){q.find.ID=function(r,v,x){if(typeof v.getElementById!=="undefined"&&!x)return(v=v.getElementById(r[1]))?v.id===r[1]||typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id").nodeValue===
r[1]?[v]:l:[]};q.filter.ID=function(r,v){var x=typeof r.getAttributeNode!=="undefined"&&r.getAttributeNode("id");return r.nodeType===1&&x&&x.nodeValue===v}}o.removeChild(g);o=g=null})();(function(){var g=u.createElement("div");g.appendChild(u.createComment(""));if(g.getElementsByTagName("*").length>0)q.find.TAG=function(j,o){o=o.getElementsByTagName(j[1]);if(j[1]==="*"){j=[];for(var r=0;o[r];r++)o[r].nodeType===1&&j.push(o[r]);o=j}return o};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!==
"undefined"&&g.firstChild.getAttribute("href")!=="#")q.attrHandle.href=function(j){return j.getAttribute("href",2)};g=null})();u.querySelectorAll&&function(){var g=m,j=u.createElement("div");j.innerHTML="<p class='TEST'></p>";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){m=function(r,v,x,J){v=v||u;r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!J&&!m.isXML(v))if(v.nodeType===9)try{return U(v.querySelectorAll(r),x)}catch(N){}else if(v.nodeType===1&&v.nodeName.toLowerCase()!==
"object"){var da=v.getAttribute("id"),ra=da||"__sizzle__";da||v.setAttribute("id",ra);try{return U(v.querySelectorAll("#"+ra+" "+r),x)}catch(ua){}finally{da||v.removeAttribute("id")}}return g(r,v,x,J)};for(var o in g)m[o]=g[o];j=null}}();(function(){var g=u.documentElement,j=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,o=false;try{j.call(u.documentElement,"[test!='']:sizzle")}catch(r){o=true}if(j)m.matchesSelector=function(v,x){x=x.replace(/\=\s*([^'"\]]*)\s*\]/g,
"='$1']");if(!m.isXML(v))try{if(o||!q.match.PSEUDO.test(x)&&!/!=/.test(x))return j.call(v,x)}catch(J){}return m(x,null,null,[v]).length>0}})();(function(){var g=u.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){q.order.splice(1,0,"CLASS");q.find.CLASS=function(j,o,r){if(typeof o.getElementsByClassName!=="undefined"&&
!r)return o.getElementsByClassName(j[1])};g=null}}})();m.contains=u.documentElement.contains?function(g,j){return g!==j&&(g.contains?g.contains(j):true)}:u.documentElement.compareDocumentPosition?function(g,j){return!!(g.compareDocumentPosition(j)&16)}:function(){return false};m.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var ta=function(g,j){var o,r=[],v="";for(j=j.nodeType?[j]:j;o=q.match.PSEUDO.exec(g);){v+=o[0];g=g.replace(q.match.PSEUDO,"")}g=
q.relative[g]?g+"*":g;o=0;for(var x=j.length;o<x;o++)m(g,j[o],r);return m.filter(v,r)};c.find=m;c.expr=m.selectors;c.expr[":"]=c.expr.filters;c.unique=m.uniqueSort;c.text=m.getText;c.isXMLDoc=m.isXML;c.contains=m.contains})();var P=/Until$/,p=/^(?:parents|prevUntil|prevAll)/,s=/,/,E=/^.[^:#\[\.,]*$/,L=Array.prototype.slice,O=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var n=
0;n<d;n++)if(b[n]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(na(this,a,false),"not",a)},filter:function(a){return this.pushStack(na(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var n,m={},q=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){n=a[e];
m[n]||(m[n]=c.expr.match.POS.test(n)?c(n,b||this.context):n)}for(;h&&h.ownerDocument&&h!==b;){for(n in m){a=m[n];if(a.jquery?a.index(h)>-1:c(h).is(a))d.push({selector:n,elem:h,level:q})}h=h.parentNode;q++}}return d}n=O.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(n?n.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||
typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(X(a[0])||X(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);P.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||s.test(e))&&p.test(a))f=f.reverse();return this.pushStack(f,a,L.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=
a[b];a&&a.nodeType!==9&&(d===l||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var aa=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ma=/<([\w:]+)/,La=/<tbody/i,Pa=/<|&#?\w+;/,Ba=/<(?:script|object|embed|option|style)/i,
Aa=/checked\s*(?:[^=]|=\s*.checked.)/i,Qa=/\=([^="'>\s]+\/)>/g,oa={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,"",""]};oa.optgroup=oa.option;oa.tbody=oa.tfoot=oa.colgroup=oa.caption=oa.thead;oa.th=oa.td;if(!c.support.htmlSerialize)oa._default=
[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==l)return this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=
this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(aa,"").replace(Qa,'="$1">').replace(Y,"")],e)[0]}else return this.cloneNode(true)});if(a===true){sa(this,b);sa(this.find("*"),b.find("*"))}return b},html:function(a){if(a===l)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aa,""):null;
else if(typeof a==="string"&&!Ba.test(a)&&(c.support.leadingWhitespace||!Y.test(a))&&!oa[(ma.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ia,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,n=a[0],m=[];if(!c.support.checkClone&&arguments.length===3&&typeof n==="string"&&Aa.test(n))return this.each(function(){c(this).domManip(a,
b,d,true)});if(c.isFunction(n))return this.each(function(z){var M=c(this);a[0]=n.call(this,z,b?M.html():l);M.domManip(a,b,d)});if(this[0]){e=n&&n.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,m);h=e.fragment;if(f=h.childNodes.length===1?(h=h.firstChild):h.firstChild){b=b&&c.nodeName(f,"tr");for(var q=0,G=this.length;q<G;q++)d.call(b?Ga(this[q],f):this[q],q>0||e.cacheable||this.length>1?h.cloneNode(true):h)}m.length&&c.each(m,
B)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:u;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===u&&!Ba.test(a[0])&&(c.support.checkClone||!Aa.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var n=(f>0?this.clone(true):this).get();c(d[f])[b](n);e=e.concat(n)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||u;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||u;for(var f=[],h=0,n;(n=a[h])!=null;h++){if(typeof n===
"number")n+="";if(n){if(typeof n==="string"&&!Pa.test(n))n=b.createTextNode(n);else if(typeof n==="string"){n=n.replace(ia,"<$1></$2>");var m=(ma.exec(n)||["",""])[1].toLowerCase(),q=oa[m]||oa._default,G=q[0],z=b.createElement("div");for(z.innerHTML=q[1]+n+q[2];G--;)z=z.lastChild;if(!c.support.tbody){G=La.test(n);m=m==="table"&&!G?z.firstChild&&z.firstChild.childNodes:q[1]==="<table>"&&!G?z.childNodes:[];for(q=m.length-1;q>=0;--q)c.nodeName(m[q],"tbody")&&!m[q].childNodes.length&&m[q].parentNode.removeChild(m[q])}!c.support.leadingWhitespace&&
Y.test(n)&&z.insertBefore(b.createTextNode(Y.exec(n)[0]),z.firstChild);n=z.childNodes}if(n.nodeType)f.push(n);else f=c.merge(f,n)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,
h=c.support.deleteExpando,n=0,m;(m=a[n])!=null;n++)if(!(m.nodeName&&c.noData[m.nodeName.toLowerCase()]))if(d=m[c.expando]){if((b=e[d])&&b.events)for(var q in b.events)f[q]?c.event.remove(m,q):c.removeEvent(m,q,b.handle);if(h)delete m[c.expando];else m.removeAttribute&&m.removeAttribute(c.expando);delete e[d]}}});var bb=/alpha\([^)]*\)/i,jb=/opacity=([^)]*)/,kb=/-([a-z])/ig,lb=/([A-Z])/g,cb=/^-?\d+(?:px)?$/i,mb=/^-?\d/,nb={position:"absolute",visibility:"hidden",display:"block"},gb=["Left","Right"],
hb=["Top","Bottom"],Va,db,Wa,ob=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===l)return this;return c.access(this,a,b,true,function(d,e,f){return f!==l?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){a=Va(a,"opacity","opacity");return a===""?"1":a}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,
b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),n=a.style,m=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==l){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!m||!("set"in m)||(d=m.set(a,d))!==l)try{n[b]=d}catch(q){}}}else{if(m&&"get"in m&&(f=m.get(a,false,e))!==l)return f;return n[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==l)return e;else if(Va)return Va(a,
b,f)},swap:function(a,b,d){var e={};for(var f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(kb,ob)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=C(d,b,f);else c.swap(d,nb,function(){h=C(d,b,f)});if(h<=0){h=Va(d,b,b);if(h==="0px"&&Wa)h=Wa(d,b,b);if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":
h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(cb.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return jb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){a=a.style;a.zoom=1;b=c.isNaN(b)?"":"alpha(opacity="+b*100+")";var d=a.filter||"";a.filter=bb.test(d)?d.replace(bb,b):a.filter+" "+b}};if(u.defaultView&&u.defaultView.getComputedStyle)db=
function(a,b,d){var e;d=d.replace(lb,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return l;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(u.documentElement.currentStyle)Wa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!cb.test(f)&&mb.test(f)){d=h.left;e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=
d;a.runtimeStyle.left=e}return f===""?"auto":f};Va=db||Wa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var pb=c.now(),qb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,rb=/^(?:select|textarea)/i,sb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
tb=/^(?:GET|HEAD)$/,ib=/\[\]$/,Ra=/\=\?(&|$)/,$a=/\?/,ub=/([?&])_=[^&]*/,vb=/^(\w+:)?\/\/([^\/?#]+)/,wb=/%20/g,xb=/#.*$/,eb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&eb)return eb.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",
data:b,complete:function(n,m){if(m==="success"||m==="notmodified")h.html(f?c("<div>").append(n.responseText.replace(qb,"")).find(f):n.responseText);d&&h.each(d,[n.responseText,m,n])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||rb.test(this.nodeName)||sb.test(this.type))}).map(function(a,b){a=c(this).val();
return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,
b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new i.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},
ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),n=tb.test(h);b.url=b.url.replace(xb,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")Ra.test(b.url)||(b.url+=($a.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!Ra.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&
(b.data&&Ra.test(b.data)||Ra.test(b.url))){d=b.jsonpCallback||"jsonp"+pb++;if(b.data)b.data=(b.data+"").replace(Ra,"="+d+"$1");b.url=b.url.replace(Ra,"="+d+"$1");b.dataType="script";var m=i[d];i[d]=function(r){if(c.isFunction(m))m(r);else{i[d]=l;try{delete i[d]}catch(v){}}f=r;c.handleSuccess(b,H,e,f);c.handleComplete(b,H,e,f);z&&z.removeChild(M)}}if(b.dataType==="script"&&b.cache===null)b.cache=false;if(b.cache===false&&n){var q=c.now(),G=b.url.replace(ub,"$1_="+q);b.url=G+(G===b.url?($a.test(b.url)?
"&":"?")+"_="+q:"")}if(b.data&&n)b.url+=($a.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");q=(q=vb.exec(b.url))&&(q[1]&&q[1].toLowerCase()!==location.protocol||q[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&q){var z=u.getElementsByTagName("head")[0]||u.documentElement,M=u.createElement("script");if(b.scriptCharset)M.charset=b.scriptCharset;M.src=b.url;if(!d){var U=false;M.onload=M.onreadystatechange=function(){if(!U&&(!this.readyState||
this.readyState==="loaded"||this.readyState==="complete")){U=true;c.handleSuccess(b,H,e,f);c.handleComplete(b,H,e,f);M.onload=M.onreadystatechange=null;z&&M.parentNode&&z.removeChild(M)}}}z.insertBefore(M,z.firstChild);return l}var ja=false,H=b.xhr();if(H){b.username?H.open(h,b.url,b.async,b.username,b.password):H.open(h,b.url,b.async);try{if(b.data!=null&&!n||a&&a.contentType)H.setRequestHeader("Content-Type",b.contentType);if(b.ifModified){c.lastModified[b.url]&&H.setRequestHeader("If-Modified-Since",
c.lastModified[b.url]);c.etag[b.url]&&H.setRequestHeader("If-None-Match",c.etag[b.url])}q||H.setRequestHeader("X-Requested-With","XMLHttpRequest");H.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(ha){}if(b.beforeSend&&b.beforeSend.call(b.context,H,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");H.abort();return false}b.global&&c.triggerGlobal(b,"ajaxSend",[H,b]);var ta=H.onreadystatechange=function(r){if(!H||
H.readyState===0||r==="abort"){ja||c.handleComplete(b,H,e,f);ja=true;if(H)H.onreadystatechange=c.noop}else if(!ja&&H&&(H.readyState===4||r==="timeout")){ja=true;H.onreadystatechange=c.noop;e=r==="timeout"?"timeout":!c.httpSuccess(H)?"error":b.ifModified&&c.httpNotModified(H,b.url)?"notmodified":"success";var v;if(e==="success")try{f=c.httpData(H,b.dataType,b)}catch(x){e="parsererror";v=x}if(e==="success"||e==="notmodified")d||c.handleSuccess(b,H,e,f);else c.handleError(b,H,e,v);d||c.handleComplete(b,
H,e,f);r==="timeout"&&H.abort();if(b.async)H=null}};try{var g=H.abort;H.abort=function(){H&&Function.prototype.call.call(g,H);ta("abort")}}catch(j){}b.async&&b.timeout>0&&setTimeout(function(){H&&!ja&&ta("timeout")},b.timeout);try{H.send(n||b.data==null?null:b.data)}catch(o){c.handleError(b,H,null,o);c.handleComplete(b,H,e,f)}b.async||ta();return H}},param:function(a,b){var d=[],e=function(h,n){n=c.isFunction(n)?n():n;d[d.length]=encodeURIComponent(h)+"="+encodeURIComponent(n)};if(b===l)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)K(f,a[f],b,e);return d.join("&").replace(wb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,
d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=
e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});if(i.ActiveXObject)c.ajaxSettings.xhr=function(){if(i.location.protocol!==
"file:")try{return new i.XMLHttpRequest}catch(a){}try{return new i.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var Ya={},yb=/^(?:toggle|show|hide)$/,zb=/^([+\-]=)?([\d+.\-]+)(.*)$/,Xa,ab=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(I("show",3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=
this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",W(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(I("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",d)}for(a=0;a<b;a++)this[a].style.display="none";
return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(I("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete);
return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),n,m=this.nodeType===1,q=m&&c(this).is(":hidden"),G=this;for(n in a){var z=c.camelCase(n);if(n!==z){a[z]=a[n];delete a[n];n=z}if(a[n]==="hide"&&q||a[n]==="show"&&!q)return h.complete.call(this);if(m&&(n==="height"||n==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(W(this.nodeName)===
"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[n])){(h.specialEasing=h.specialEasing||{})[n]=a[n][1];a[n]=a[n][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(M,U){var ja=new c.fx(G,h,M);if(yb.test(U))ja[U==="toggle"?q?"show":"hide":U](a);else{var H=zb.exec(U),ha=ja.cur()||0;if(H){U=parseFloat(H[2]);var ta=H[3]||"px";if(ta!=="px"){c.style(G,M,(U||1)+
ta);ha=(U||1)/ja.cur()*ha;c.style(G,M,ha+ta)}if(H[1])U=(H[1]==="-="?-1:1)*U+ha;ja.custom(ha,U,ta)}else ja.custom(ha,U,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:I("show",1),slideUp:I("hide",1),slideToggle:I("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=
function(d,e,f){return this.animate(b,d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+
e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-10000?
a:0},custom:function(a,b,d){function e(n){return f.step(n)}var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!Xa)Xa=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=
c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(m,q){f.style["overflow"+q]=h.overflow[m]})}this.options.hide&&
c(this.elem).hide();if(this.options.hide||this.options.show)for(var n in this.options.curAnim)c.style(this.elem,n,this.options.orig[n]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};
c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(Xa);Xa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=
function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};var Ab=/^t(?:able|d|h)$/i,fb=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in u.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(n){c.offset.setOffset(this,a,n)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=
f.body;f=ga(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(z){c.offset.setOffset(this,a,z)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b,h=b.ownerDocument,n=h.documentElement,
m=h.body;d=(h=h.defaultView)?h.getComputedStyle(b,null):b.currentStyle;for(var q=b.offsetTop,G=b.offsetLeft;(b=b.parentNode)&&b!==m&&b!==n;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=h?h.getComputedStyle(b,null):b.currentStyle;q-=b.scrollTop;G-=b.scrollLeft;if(b===e){q+=b.offsetTop;G+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&Ab.test(b.nodeName))){q+=parseFloat(d.borderTopWidth)||0;G+=parseFloat(d.borderLeftWidth)||0}f=e;e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&
d.overflow!=="visible"){q+=parseFloat(d.borderTopWidth)||0;G+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){q+=m.offsetTop;G+=m.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){q+=Math.max(n.scrollTop,m.scrollTop);G+=Math.max(n.scrollLeft,m.scrollLeft)}return{top:q,left:G}};c.offset={initialize:function(){var a=u.body,b=u.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,
margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==
5;this.doesAddBorderForTableAndCells=f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=
parseFloat(c.css(a,"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),n=c.css(a,"top"),m=c.css(a,"left"),q=e==="absolute"&&c.inArray("auto",[n,m])>-1;e={};var G={};if(q)G=f.position();n=q?G.top:parseInt(n,10)||0;m=q?G.left:parseInt(m,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+n;if(b.left!=null)e.left=b.left-h.left+m;"using"in
b?b.using.call(a,e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=fb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||
u.body;a&&!fb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==l)return this.each(function(){if(h=ga(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=ga(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],
function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(n){var m=c(this);m[d](e.call(this,n,m[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+
b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===l){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);(function(i){var l=i.fn.remove;i.fn.remove=function(t,A){return this.each(function(){if(!A)if(!t||i.filter(t,[this]).length)i("*",this).add(this).each(function(){i(this).triggerHandler("remove")});return l.call(i(this),t,A)})};i.widget=function(t,A,y){var D=t.split(".")[0],R;t=t.split(".")[1];R=D+"-"+t;if(!y){y=A;A=i.Widget}i.expr[":"][R]=function(ca){return!!i.data(ca,t)};i[D]=i[D]||{};i[D][t]=function(ca,X){arguments.length&&this._createWidget(ca,X)};A=new A;A.options=i.extend({},A.options);i[D][t].prototype=
i.extend(true,A,{namespace:D,widgetName:t,widgetEventPrefix:i[D][t].prototype.widgetEventPrefix||t,widgetBaseClass:R},y);i.widget.bridge(t,i[D][t])};i.widget.bridge=function(t,A){i.fn[t]=function(y){var D=typeof y==="string",R=Array.prototype.slice.call(arguments,1),ca=this;y=!D&&R.length?i.extend.apply(null,[true,y].concat(R)):y;if(D&&y.substring(0,1)==="_")return ca;D?this.each(function(){var X=i.data(this,t),na=X&&i.isFunction(X[y])?X[y].apply(X,R):X;if(na!==X&&na!==undefined){ca=na;return false}}):
this.each(function(){var X=i.data(this,t);if(X){y&&X.option(y);X._init()}else i.data(this,t,new A(y,this))});return ca}};i.Widget=function(t,A){arguments.length&&this._createWidget(t,A)};i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(t,A){this.element=i(A).data(this.widgetName,this);this.options=i.extend(true,{},this.options,i.metadata&&i.metadata.get(A)[this.widgetName],t);var y=this;this.element.bind("remove."+this.widgetName,function(){y.destroy()});
this._create();this._init()},_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 "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(t,A){var y=t,D=this;if(arguments.length===0)return i.extend({},D.options);if(typeof t==="string"){if(A===undefined)return this.options[t];
y={};y[t]=A}i.each(y,function(R,ca){D._setOption(R,ca)});return D},_setOption:function(t,A){this.options[t]=A;if(t==="disabled")this.widget()[A?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",A);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(t,A,y){var D=this.options[t];A=i.Event(A);A.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+
t).toLowerCase();y=y||{};if(A.originalEvent){t=i.event.props.length;for(var R;t;){R=i.event.props[--t];A[R]=A.originalEvent[R]}}this.element.trigger(A,y);return!(i.isFunction(D)&&D.call(this.element[0],A,y)===false||A.isDefaultPrevented())}}})(jQuery);(function(i){i.userMode=function(){function l(){R=R||i("<div></div>").css({position:"absolute",left:"-999em",top:"-999px",width:"0px",height:"0px"}).appendTo("body");var X=i.curCSS(R.css({backgroundColor:"#000000"})[0],"backgroundColor",true),na=i.curCSS(R.css({backgroundColor:"#ffffff"})[0],"backgroundColor",true);X=X===na||na==="transparent";if(X!=y){y=X;i.event.trigger("_internalusermode")}return y}function t(){l();D=setInterval(l,3E3)}function A(){clearInterval(D);R.remove();R=null}var y,D,R,
ca=0;i.event.special.usermode={setup:function(){!ca&&t();ca++;var X=i(this).bind("_internalusermode",i.event.special.usermode.handler);setTimeout(function(){X.triggerHandler("_internalusermode")},1);return true},teardown:function(){ca--;!ca&&A();i(this).unbind("_internalusermode",i.event.special.usermode.handler);return true},handler:function(X){X.type="usermode";X.disabled=!y;X.enabled=y;return jQuery.event.handle.apply(this,arguments)}};return{get:l}}();i.fn.userMode=function(l){return this[l?"bind":
"trigger"]("usermode",l)};i(function(){i("html").userMode(function(l){i("html")[l.enabled?"addClass":"removeClass"]("hcm")})})})(jQuery);/*
 CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
*/
(function(i){i.fn.lightBox=function(l){function t(){A(this,u);return false}function A(c,T){i("embed, object, select").css({visibility:"hidden"});y();l.imageArray.length=0;l.activeImage=0;if(T.length==1)l.imageArray.push(new Array(c.getAttribute("href"),c.getAttribute("title")));else for(var Q=0;Q<T.length;Q++)T[Q].getAttribute("rel")==c.getAttribute("rel")&&l.imageArray.push(new Array(T[Q].getAttribute("href"),T[Q].getAttribute("title")));for(;l.imageArray[l.activeImage][0]!=c.getAttribute("href");)l.activeImage++;
D()}function y(){i("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+l.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+
l.imageBtnClose+'"></a></div></div></div></div>');var c=I();i("#jquery-overlay").css({backgroundColor:l.overlayBgColor,opacity:l.overlayOpacity,width:c[0],height:c[1]}).fadeIn();var T=W();i("#jquery-lightbox").css({top:T[1]+c[3]/10,left:T[0]}).show();i("#jquery-overlay,#jquery-lightbox").click(function(){K()});i("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){K();return false});i(window).resize(function(){var Q=I();i("#jquery-overlay").css({width:Q[0],height:Q[1]});var V=W();
i("#jquery-lightbox").css({top:V[1]+Q[3]/10,left:V[0]})})}function D(){i("#lightbox-loading").show();l.fixedNavigation?i("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide():i("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();var c=new Image;c.onload=function(){i("#lightbox-image").attr("src",l.imageArray[l.activeImage][0]);R(c.width,c.height);c.onload=
function(){}};c.src=l.imageArray[l.activeImage][0]}function R(c,T){var Q=i("#lightbox-container-image-box").width(),V=i("#lightbox-container-image-box").height(),la=c+l.containerBorderSize*2,xa=T+l.containerBorderSize*2;Q=Q-la;V=V-xa;i("#lightbox-container-image-box").animate({width:la,height:xa},l.containerResizeSpeed,function(){ca()});if(Q==0&&V==0)i.browser.msie?ga(250):ga(100);i("#lightbox-container-image-data-box").css({width:c});i("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:T+
l.containerBorderSize*2})}function ca(){i("#lightbox-loading").hide();i("#lightbox-image").fadeIn(function(){X();na()});C()}function X(){i("#lightbox-container-image-data-box").slideDown("fast");i("#lightbox-image-details-caption").hide();l.imageArray[l.activeImage][1]&&i("#lightbox-image-details-caption").html(l.imageArray[l.activeImage][1]).show();l.imageArray.length>1&&i("#lightbox-image-details-currentNumber").html(l.txtImage+" "+(l.activeImage+1)+" "+l.txtOf+" "+l.imageArray.length).show()}function na(){i("#lightbox-nav").show();
i("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+l.imageBlank+") no-repeat"});if(l.activeImage!=0)l.fixedNavigation?i("#lightbox-nav-btnPrev").css({background:"url("+l.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){l.activeImage-=1;D();return false}):i("#lightbox-nav-btnPrev").unbind().hover(function(){i(this).css({background:"url("+l.imageBtnPrev+") left 15% no-repeat"})},function(){i(this).css({background:"transparent url("+l.imageBlank+
") no-repeat"})}).show().bind("click",function(){l.activeImage-=1;D();return false});if(l.activeImage!=l.imageArray.length-1)l.fixedNavigation?i("#lightbox-nav-btnNext").css({background:"url("+l.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){l.activeImage+=1;D();return false}):i("#lightbox-nav-btnNext").unbind().hover(function(){i(this).css({background:"url("+l.imageBtnNext+") right 15% no-repeat"})},function(){i(this).css({background:"transparent url("+l.imageBlank+") no-repeat"})}).show().bind("click",
function(){l.activeImage+=1;D();return false});Ga()}function Ga(){i(document).keydown(function(c){B(c)})}function sa(){i(document).unbind()}function B(c){if(c==null){keycode=event.keyCode;escapeKey=27}else{keycode=c.keyCode;escapeKey=c.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if(key==l.keyToClose||key=="x"||keycode==escapeKey)K();if(key==l.keyToPrev||keycode==37)if(l.activeImage!=0){l.activeImage-=1;D();sa()}if(key==l.keyToNext||keycode==39)if(l.activeImage!=l.imageArray.length-
1){l.activeImage+=1;D();sa()}}function C(){if(l.imageArray.length-1>l.activeImage){objNext=new Image;objNext.src=l.imageArray[l.activeImage+1][0]}if(l.activeImage>0){objPrev=new Image;objPrev.src=l.imageArray[l.activeImage-1][0]}}function K(){i("#jquery-lightbox").remove();i("#jquery-overlay").fadeOut(function(){i("#jquery-overlay").remove()});i("embed, object, select").css({visibility:"visible"})}function I(){var c,T;if(window.innerHeight&&window.scrollMaxY){c=window.innerWidth+window.scrollMaxX;
T=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;T=document.body.scrollHeight}else{c=document.body.offsetWidth;T=document.body.offsetHeight}var Q,V;if(self.innerHeight){Q=document.documentElement.clientWidth?document.documentElement.clientWidth:self.innerWidth;V=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){Q=document.documentElement.clientWidth;V=document.documentElement.clientHeight}else if(document.body){Q=
document.body.clientWidth;V=document.body.clientHeight}pageHeight=T<V?V:T;pageWidth=c<Q?c:Q;return arrayPageSize=new Array(pageWidth,pageHeight,Q,V)}function W(){var c,T;if(self.pageYOffset){T=self.pageYOffset;c=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){T=document.documentElement.scrollTop;c=document.documentElement.scrollLeft}else if(document.body){T=document.body.scrollTop;c=document.body.scrollLeft}return arrayPageScroll=new Array(c,T)}function ga(c){var T=
new Date;do var Q=new Date;while(Q-T<c)}l=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"images/lightbox-ico-loading.gif",imageBtnPrev:"images/lightbox-btn-prev.gif",imageBtnNext:"images/lightbox-btn-next.gif",imageBtnClose:"images/lightbox-btn-close.gif",imageBlank:"images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},l);var u=this;
return this.unbind("click").click(t)}})(jQuery);(function(i){var l=/ui-checkbox|ui-radio/;i.widget("ui.checkBox",{options:{hideInput:true,addVisualElement:true,addLabel:true,_delegated:false},_create:function(){var t=this.options;if(!this.element.is(":radio,:checkbox")){if(i.nodeName(this.element[0],"input"))return false;this._addDelegate();this.updateContainer();return false}this.labels=i([]);this.hoverStatus=this.disabledStatus=this.checkedStatus=false;this.radio=this.element.is(":radio");this.visualElement=i([]);if(t.hideInput){this.element.addClass("ui-helper-hidden-accessible");
if(t.addVisualElement){this.visualElement=i("<span />").addClass(this.radio?"ui-radio":"ui-checkbox");this.element.after(this.visualElement[0])}}if(t.addLabel)this.labels=i("label[for="+this.element.attr("id")+"]").addClass(this.radio?"ui-radio":"ui-checkbox");t._delegated||this._addEvents();this.initialized=true;this.reflectUI({type:"initialReflect"})},updateContainer:function(){!this.element.is(":radio,:checkbox")&&!i.nodeName(this.element[0],"input")&&i("input",this.element[0]).filter(function(){return!i.data(this,
"checkBox")}).checkBox(i.extend({},this.options,{_delegated:true}))},_addDelegate:function(){var t=this.options,A=function(y,D){if(D){D.hover=!!(y.type=="focus"||y.type=="mouseenter"||y.type=="focusin"||y.type=="mouseover");D._changeStateClassChain.call(D)}};this.element.bind("click",function(y){if(i.nodeName(y.target,"input")){var D=(i.data(y.target)||{}).checkBox;D&&D.reflectUI.call(D,y.target,y)}}).bind("focusin.checkBox focusout.checkBox",function(y){if(i.nodeName(y.target,"input")){var D=(i.data(y.target)||
{}).checkBox;A(y,D)}});t.hideInput&&this.element.bind("usermode",function(y){y.enabled&&i("input",this).each(function(){var D=(i.data(this)||{}).checkBox;D&&D.destroy.call(D,true)})});t.addVisualElement&&this.element.bind("mouseover.checkBox mouseout.checkBox",function(y){if(i.nodeName(y.target,"span")){var D=(i.data(i(y.target).prev()[0])||{}).checkBox;A(y,D)}}).bind("click.checkBox",function(y){if(i.nodeName(y.target,"span")&&l.test(y.target.className||"")){i(y.target).prev()[0].click();return false}});
t.addLabel&&this.element.delegate("label.ui-radio, label.ui-checkbox","mouseenter.checkBox mouseleave.checkBox",function(y){var D=(i.data(document.getElementById(i(this).attr("for")))||{}).checkBox;A(y,D)})},_addEvents:function(){var t=this,A=this.options,y=function(D){if(t.disabledStatus)return false;t.hover=D.type=="focus"||D.type=="mouseenter";t._changeStateClassChain()};this.element.bind("click.checkBox",i.proxy(this,"reflectUI")).bind("focus.checkBox blur.checkBox",y);A.hideInput&&this.element.bind("usermode",
function(D){D.enabled&&t.destroy.call(t,true)});A.addVisualElement&&this.visualElement.bind("mouseenter.checkBox mouseleave.checkBox",y).bind("click.checkBox",function(){t.element[0].click();return false});A.addLabel&&this.labels.bind("mouseenter.checkBox mouseleave.checkBox",y)},_changeStateClassChain:function(){function t(){var R=this.className.split(" "),ca=false;i.each(R,function(X,na){if(na.indexOf(D)===0){ca=true;R[X]=y;return false}});ca||R.push(y);this.className=R.join(" ")}var A=this.labels.add(this.visualElement),
y="",D="ui-"+(this.radio?"radio":"checkbox");if(this.checkedStatus){y+="-checked";A.addClass(D+"-checked")}else A.removeClass(D+"-checked");if(this.disabledStatus){y+="-disabled";A.addClass(D+"-disabled")}else A.removeClass(D+"-disabled");if(this.hover){y+="-hover";A.addClass(D+"-hover")}else A.removeClass(D+"-hover");D+="-state";if(y)y=D+y;this.labels.each(t);this.visualElement.each(t)},destroy:function(t){this.element.removeClass("ui-helper-hidden-accessible");this.visualElement.addClass("ui-helper-hidden");
if(!t){this.element.unbind(".checkBox");this.visualElement.remove();this.labels.unbind(".checkBox").removeClass("ui-state-hover ui-state-checked ui-state-disabled")}},disable:function(){this.element[0].disabled=true;this.reflectUI({type:"manuallyDisabled"})},enable:function(){this.element[0].disabled=false;this.reflectUI({type:"manuallyenabled"})},toggle:function(t){this.changeCheckStatus(this.element.is(":checked")?false:true,t)},changeCheckStatus:function(t,A){if(A&&A.type=="click"&&this.element[0].disabled)return false;
this.element.attr({checked:t});this.reflectUI(A||{type:"changeCheckStatus"})},propagate:function(t,A,y){if(!A||A.type!="initialReflect"){this.radio&&!y&&i(document.getElementsByName(this.element.attr("name"))).checkBox("reflectUI",A,true);return this._trigger(t,A,{options:this.options,checked:this.checkedStatus,labels:this.labels,disabled:this.disabledStatus})}},reflectUI:function(t){var A=this.checkedStatus,y=this.disabledStatus;this.disabledStatus=this.element.is(":disabled");this.checkedStatus=
this.element.is(":checked");if(this.disabledStatus!=y||this.checkedStatus!==A){this._changeStateClassChain();this.disabledStatus!=y&&this.propagate("disabledChange",t);this.checkedStatus!==A&&this.propagate("change",t)}}})})(jQuery);var swfobject=function(){function i(){if(!Da){try{var p=Z.getElementsByTagName("body")[0].appendChild(W("span"));p.parentNode.removeChild(p)}catch(s){return}Da=true;p=Fa.length;for(var E=0;E<p;E++)Fa[E]()}}function l(p){if(Da)p();else Fa[Fa.length]=p}function t(p){if(typeof fa.addEventListener!=V)fa.addEventListener("load",p,false);else if(typeof Z.addEventListener!=V)Z.addEventListener("load",p,false);else if(typeof fa.attachEvent!=V)ga(fa,"onload",p);else if(typeof fa.onload=="function"){var s=
fa.onload;fa.onload=function(){s();p()}}else fa.onload=p}function A(){Sa?y():D()}function y(){var p=Z.getElementsByTagName("body")[0],s=W(la);s.setAttribute("type",xa);var E=p.appendChild(s);if(E){var L=0;(function(){if(typeof E.GetVariable!=V){var O=E.GetVariable("$version");if(O){O=O.split(" ")[1].split(",");P.pv=[parseInt(O[0],10),parseInt(O[1],10),parseInt(O[2],10)]}}else if(L<10){L++;setTimeout(arguments.callee,10);return}p.removeChild(s);E=null;D()})()}else D()}function D(){var p=ya.length;
if(p>0)for(var s=0;s<p;s++){var E=ya[s].id,L=ya[s].callbackFn,O={success:false,id:E};if(P.pv[0]>0){var aa=I(E);if(aa)if(u(ya[s].swfVersion)&&!(P.wk&&P.wk<312)){T(E,true);if(L){O.success=true;O.ref=R(E);L(O)}}else if(ya[s].expressInstall&&ca()){O={};O.data=ya[s].expressInstall;O.width=aa.getAttribute("width")||"0";O.height=aa.getAttribute("height")||"0";if(aa.getAttribute("class"))O.styleclass=aa.getAttribute("class");if(aa.getAttribute("align"))O.align=aa.getAttribute("align");var Y={};aa=aa.getElementsByTagName("param");
for(var ia=aa.length,ma=0;ma<ia;ma++)if(aa[ma].getAttribute("name").toLowerCase()!="movie")Y[aa[ma].getAttribute("name")]=aa[ma].getAttribute("value");X(O,Y,E,L)}else{na(aa);L&&L(O)}}else{T(E,true);if(L){if((E=R(E))&&typeof E.SetVariable!=V){O.success=true;O.ref=E}L(O)}}}}function R(p){var s=null;if((p=I(p))&&p.nodeName=="OBJECT")if(typeof p.SetVariable!=V)s=p;else if(p=p.getElementsByTagName(la)[0])s=p;return s}function ca(){return!Ea&&u("6.0.65")&&(P.win||P.mac)&&!(P.wk&&P.wk<312)}function X(p,
s,E,L){Ea=true;Oa=L||null;Ta={success:false,id:E};var O=I(E);if(O){if(O.nodeName=="OBJECT"){Ka=Ga(O);Na=null}else{Ka=O;Na=E}p.id=qa;if(typeof p.width==V||!/%$/.test(p.width)&&parseInt(p.width,10)<310)p.width="310";if(typeof p.height==V||!/%$/.test(p.height)&&parseInt(p.height,10)<137)p.height="137";Z.title=Z.title.slice(0,47)+" - Flash Player Installation";L=P.ie&&P.win?"ActiveX":"PlugIn";L="MMredirectURL="+fa.location.toString().replace(/&/g,"%26")+"&MMplayerType="+L+"&MMdoctitle="+Z.title;if(typeof s.flashvars!=
V)s.flashvars+="&"+L;else s.flashvars=L;if(P.ie&&P.win&&O.readyState!=4){L=W("div");E+="SWFObjectNew";L.setAttribute("id",E);O.parentNode.insertBefore(L,O);O.style.display="none";(function(){O.readyState==4?O.parentNode.removeChild(O):setTimeout(arguments.callee,10)})()}sa(p,s,E)}}function na(p){if(P.ie&&P.win&&p.readyState!=4){var s=W("div");p.parentNode.insertBefore(s,p);s.parentNode.replaceChild(Ga(p),s);p.style.display="none";(function(){p.readyState==4?p.parentNode.removeChild(p):setTimeout(arguments.callee,
10)})()}else p.parentNode.replaceChild(Ga(p),p)}function Ga(p){var s=W("div");if(P.win&&P.ie)s.innerHTML=p.innerHTML;else if(p=p.getElementsByTagName(la)[0])if(p=p.childNodes)for(var E=p.length,L=0;L<E;L++)!(p[L].nodeType==1&&p[L].nodeName=="PARAM")&&p[L].nodeType!=8&&s.appendChild(p[L].cloneNode(true));return s}function sa(p,s,E){var L,O=I(E);if(P.wk&&P.wk<312)return L;if(O){if(typeof p.id==V)p.id=E;if(P.ie&&P.win){var aa="";for(var Y in p)if(p[Y]!=Object.prototype[Y])if(Y.toLowerCase()=="data")s.movie=
p[Y];else if(Y.toLowerCase()=="styleclass")aa+=' class="'+p[Y]+'"';else if(Y.toLowerCase()!="classid")aa+=" "+Y+'="'+p[Y]+'"';Y="";for(var ia in s)if(s[ia]!=Object.prototype[ia])Y+='<param name="'+ia+'" value="'+s[ia]+'" />';O.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+aa+">"+Y+"</object>";Ma[Ma.length]=p.id;L=I(p.id)}else{ia=W(la);ia.setAttribute("type",xa);for(aa in p)if(p[aa]!=Object.prototype[aa])if(aa.toLowerCase()=="styleclass")ia.setAttribute("class",p[aa]);else aa.toLowerCase()!=
"classid"&&ia.setAttribute(aa,p[aa]);for(var ma in s)s[ma]!=Object.prototype[ma]&&ma.toLowerCase()!="movie"&&B(ia,ma,s[ma]);O.parentNode.replaceChild(ia,O);L=ia}}return L}function B(p,s,E){var L=W("param");L.setAttribute("name",s);L.setAttribute("value",E);p.appendChild(L)}function C(p){var s=I(p);if(s&&s.nodeName=="OBJECT")if(P.ie&&P.win){s.style.display="none";(function(){s.readyState==4?K(p):setTimeout(arguments.callee,10)})()}else s.parentNode.removeChild(s)}function K(p){if(p=I(p)){for(var s in p)if(typeof p[s]==
"function")p[s]=null;p.parentNode.removeChild(p)}}function I(p){var s=null;try{s=Z.getElementById(p)}catch(E){}return s}function W(p){return Z.createElement(p)}function ga(p,s,E){p.attachEvent(s,E);Ha[Ha.length]=[p,s,E]}function u(p){var s=P.pv;p=p.split(".");p[0]=parseInt(p[0],10);p[1]=parseInt(p[1],10)||0;p[2]=parseInt(p[2],10)||0;return s[0]>p[0]||s[0]==p[0]&&s[1]>p[1]||s[0]==p[0]&&s[1]==p[1]&&s[2]>=p[2]?true:false}function c(p,s,E,L){if(!(P.ie&&P.mac)){var O=Z.getElementsByTagName("head")[0];
if(O){E=E&&typeof E=="string"?E:"screen";if(L)Ia=za=null;if(!za||Ia!=E){L=W("style");L.setAttribute("type","text/css");L.setAttribute("media",E);za=O.appendChild(L);if(P.ie&&P.win&&typeof Z.styleSheets!=V&&Z.styleSheets.length>0)za=Z.styleSheets[Z.styleSheets.length-1];Ia=E}if(P.ie&&P.win)za&&typeof za.addRule==la&&za.addRule(p,s);else za&&typeof Z.createTextNode!=V&&za.appendChild(Z.createTextNode(p+" {"+s+"}"))}}}function T(p,s){if(Ua){s=s?"visible":"hidden";if(Da&&I(p))I(p).style.visibility=s;
else c("#"+p,"visibility:"+s)}}function Q(p){return/[\\\"<>\.;]/.exec(p)!=null&&typeof encodeURIComponent!=V?encodeURIComponent(p):p}var V="undefined",la="object",xa="application/x-shockwave-flash",qa="SWFObjectExprInst",fa=window,Z=document,Ca=navigator,Sa=false,Fa=[A],ya=[],Ma=[],Ha=[],Ka,Na,Oa,Ta,Da=false,Ea=false,za,Ia,Ua=true,P=function(){var p=typeof Z.getElementById!=V&&typeof Z.getElementsByTagName!=V&&typeof Z.createElement!=V,s=Ca.userAgent.toLowerCase(),E=Ca.platform.toLowerCase(),L=E?
/win/.test(E):/win/.test(s);E=E?/mac/.test(E):/mac/.test(s);s=/webkit/.test(s)?parseFloat(s.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var O=!+"\u000b1",aa=[0,0,0],Y=null;if(typeof Ca.plugins!=V&&typeof Ca.plugins["Shockwave Flash"]==la){if((Y=Ca.plugins["Shockwave Flash"].description)&&!(typeof Ca.mimeTypes!=V&&Ca.mimeTypes[xa]&&!Ca.mimeTypes[xa].enabledPlugin)){Sa=true;O=false;Y=Y.replace(/^.*\s+(\S+\s+\S+$)/,"$1");aa[0]=parseInt(Y.replace(/^(.*)\..*$/,"$1"),10);aa[1]=parseInt(Y.replace(/^.*\.(.*)\s.*$/,
"$1"),10);aa[2]=/[a-zA-Z]/.test(Y)?parseInt(Y.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof fa.ActiveXObject!=V)try{var ia=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(ia)if(Y=ia.GetVariable("$version")){O=true;Y=Y.split(" ")[1].split(",");aa=[parseInt(Y[0],10),parseInt(Y[1],10),parseInt(Y[2],10)]}}catch(ma){}return{w3:p,pv:aa,wk:s,ie:O,win:L,mac:E}}();(function(){if(P.w3){if(typeof Z.readyState!=V&&Z.readyState=="complete"||typeof Z.readyState==V&&(Z.getElementsByTagName("body")[0]||
Z.body))i();if(!Da){typeof Z.addEventListener!=V&&Z.addEventListener("DOMContentLoaded",i,false);if(P.ie&&P.win){Z.attachEvent("onreadystatechange",function(){if(Z.readyState=="complete"){Z.detachEvent("onreadystatechange",arguments.callee);i()}});fa==top&&function(){if(!Da){try{Z.documentElement.doScroll("left")}catch(p){setTimeout(arguments.callee,0);return}i()}}()}P.wk&&function(){Da||(/loaded|complete/.test(Z.readyState)?i():setTimeout(arguments.callee,0))}();t(i)}}})();(function(){P.ie&&P.win&&
window.attachEvent("onunload",function(){for(var p=Ha.length,s=0;s<p;s++)Ha[s][0].detachEvent(Ha[s][1],Ha[s][2]);p=Ma.length;for(s=0;s<p;s++)C(Ma[s]);for(var E in P)P[E]=null;P=null;for(var L in swfobject)swfobject[L]=null;swfobject=null})})();return{registerObject:function(p,s,E,L){if(P.w3&&p&&s){var O={};O.id=p;O.swfVersion=s;O.expressInstall=E;O.callbackFn=L;ya[ya.length]=O;T(p,false)}else L&&L({success:false,id:p})},getObjectById:function(p){if(P.w3)return R(p)},embedSWF:function(p,s,E,L,O,aa,
Y,ia,ma,La){var Pa={success:false,id:s};if(P.w3&&!(P.wk&&P.wk<312)&&p&&s&&E&&L&&O){T(s,false);l(function(){E+="";L+="";var Ba={};if(ma&&typeof ma===la)for(var Aa in ma)Ba[Aa]=ma[Aa];Ba.data=p;Ba.width=E;Ba.height=L;Aa={};if(ia&&typeof ia===la)for(var Qa in ia)Aa[Qa]=ia[Qa];if(Y&&typeof Y===la)for(var oa in Y)if(typeof Aa.flashvars!=V)Aa.flashvars+="&"+oa+"="+Y[oa];else Aa.flashvars=oa+"="+Y[oa];if(u(O)){Qa=sa(Ba,Aa,s);Ba.id==s&&T(s,true);Pa.success=true;Pa.ref=Qa}else if(aa&&ca()){Ba.data=aa;X(Ba,
Aa,s,La);return}else T(s,true);La&&La(Pa)})}else La&&La(Pa)},switchOffAutoHideShow:function(){Ua=false},ua:P,getFlashPlayerVersion:function(){return{major:P.pv[0],minor:P.pv[1],release:P.pv[2]}},hasFlashPlayerVersion:u,createSWF:function(p,s,E){if(P.w3)return sa(p,s,E)},showExpressInstall:function(p,s,E,L){P.w3&&ca()&&X(p,s,E,L)},removeSWF:function(p){P.w3&&C(p)},createCSS:function(p,s,E,L){P.w3&&c(p,s,E,L)},addDomLoadEvent:l,addLoadEvent:t,getQueryParamValue:function(p){var s=Z.location.search||
Z.location.hash;if(s){if(/\?/.test(s))s=s.split("?")[1];if(p==null)return Q(s);s=s.split("&");for(var E=0;E<s.length;E++)if(s[E].substring(0,s[E].indexOf("="))==p)return Q(s[E].substring(s[E].indexOf("=")+1))}return""},expressInstallCallback:function(){if(Ea){var p=I(qa);if(p&&Ka){p.parentNode.replaceChild(Ka,p);if(Na){T(Na,true);if(P.ie&&P.win)Ka.style.display="block"}Oa&&Oa(Ta)}Ea=false}}}}();function Peregrine(){};Peregrine.price=function(i,l){var t=Math.abs(parseFloat(i));i=i<0?"-":"";var A=parseInt(t).toString();t=Math.round((t-A)*100).toString();var y,D,R;l||(l=",");t=t.length==0?"00":t.length==1?"0"+t:t.substr(0,2);R="";y=A.length-1;for(D=0;y>=0;--y,++D)R=D%3==0&&D!=0?A.charAt(y)+" "+R:A.charAt(y)+R;return i+R+l+t};Peregrine.preload=function(i){var l=Peregrine.preload.images;l[i]=new Image;l[i].src=i};Peregrine.preload.images=[];Peregrine.stripHtml=function(i){return i.replace(/<[^>]*>?/g,"")};jQuery.fn.preload=function(){return this.each(function(){$(this).add($(this).find("*")).each(function(){var i=$(this).css("background-image");(i=i.match(/(http(s?):)|([/|.|\w|\s])*\.(?:jpg|gif|png|jpeg)/gi))&&Peregrine.preload(i[0]+i[1]);(i=$(this).attr("src"))&&Peregrine.preload(i)})})};jQuery.fn.autoHover=function(){return this.each(function(){$(this).add($(this).find("*")).each(function(){var i=this.src,l=new Image;l.src=i;$(this).data("orgImage",l);Peregrine.preload(i);i=i.substr(0,i.length-4)+"_ov"+i.substring(i.length-4,i.length);l=new Image;l.src=i;Peregrine.preload(i);$(this).data("ovImage",l);$(this).hover(function(){if($(this).hasClass("rollover"))this.src=$(this).data("ovImage").src},function(){if($(this).hasClass("rollover"))this.src=$(this).data("orgImage").src})})})};jQuery.fn.autoRemoveText=function(){return this.each(function(){$(this).data("orgVal",$(this).val());$(this).focus(function(){$(this).val()==$(this).data("orgVal")&&$(this).val("")});$(this).blur(function(){$(this).val()==""&&$(this).val($(this).data("orgVal"))})})};$(document).ready(function(){var i=i,l=function(){};l.current_id=i;var t=function(B){var C=$("a.galleryUrl_"+B+" img.thumb"),K=$("#galleryLoader"),I=galleryData[B],W=$("#galleryToplayer"),ga=C.width(),u=C.height(),c=C.offset(),T=parseInt(C.css("padding-left"));C=parseInt(C.css("padding-top"));l.current_id=B;K.css({left:c.left+T+ga/2-K.width()/2,top:c.top+C+u/2-K.height()/2}).show();$("#galleryToplayer img.photo").stop(true).attr("src",I.Image.url).css({width:ga,height:u});W.css({left:c.left+T-parseInt(W.css("border-left-width")),
top:c.top+C-parseInt(W.css("border-top-width"))})},A=function(){var B=galleryData[l.current_id],C=$("#galleryToplayer"),K=$("#galleryToplayer img.close"),I=$("#galleryToplayer img.prev"),W=$("#galleryToplayer img.next"),ga=$("#galleryToplayer img.photo"),u,c="";if(l.current_id!=i){$("#galleryLoader").hide();C.show();$("#galleryShadow").fadeTo(0,0.5);$("#galleryToplayer span.size").text(B.height+"x"+B.width+"cm");$("#galleryToplayer span.type").text(B.mosaic_type);$("#galleryToplayer span.occasion").text(B.Occasion.name);
$("#galleryToplayer span.text").text(Peregrine.stripHtml(B.opinion));$("#galleryToplayer span.sign").text(B.sign);for(u=0;u<B.stars;++u)c+='<img src="/graph/gallery/gr_star_color.gif" />';for(u=B.stars;u<10;++u)c+='<img src="/graph/gallery/gr_star.gif" />';$("span.stars").empty().html(c);ga.stop(true).animate({width:B.Image.width,height:B.Image.height},500).fadeTo(500,1);C.stop(true).animate({left:$(window).width()/2-B.Image.width/2-parseInt(C.css("border-left-width")),top:$(window).height()/2-B.Image.height/
2-parseInt(C.css("border-top-width"))+$(document).scrollTop()},500);setTimeout(function(){if(C.width()>C.height()){C.stop(true).animate({top:C.offset().top-50},500);$("#galleryToplayer div.bottomInfo").show().css("width",ga.width()).stop(true).animate({height:100},500)}else{C.stop(true).animate({left:C.offset().left-130},500);$("#galleryToplayer div.rightInfo, #galleryToplayer td.rightInfo").show().css("height",ga.height()).stop(true).animate({width:260},500)}setTimeout(function(){var T=C.width();
K.stop(true).css({"margin-left":T-6-K.width(),"margin-top":6});I.stop(true).css({"margin-left":-1*I.width()/2-2,"margin-top":B.Image.height/2-I.height()/2});W.stop(true).css({"margin-left":T-W.width()/2+2,"margin-top":B.Image.height/2-I.height()/2});K.fadeIn();I.fadeIn();W.fadeIn()},600)},600)}},y=function(){$("#galleryShadow, #galleryToplayer, #galleryToplayer img.close, #galleryToplayer img.next, #galleryToplayer img.prev").hide();$("#galleryToplayer div.bottomInfo").css({height:0,display:"none"});
$("#galleryToplayer div.rightInfo, #galleryToplayer td.rightInfo").css({width:0,display:"none"});l.current_id=i;$("#galleryToplayer img.photo").attr("src","/graph/loader.gif")},D=function(B){var C=ca(l.current_id);B=="prev"?R(C.prev):R(C.next)},R=function(B){var C=galleryData[l.current_id],K=$("#galleryToplayer"),I=$("#galleryToplayer img.close"),W=$("#galleryToplayer img.prev"),ga=$("#galleryToplayer img.next"),u=$("#galleryToplayer img.photo");l.current_id=B;I.fadeOut(200);W.fadeOut(200);ga.fadeOut(200);
setTimeout(function(){u.width()>u.height()?$("#galleryToplayer div.bottomInfo").stop(true).animate({height:0},500):$("#galleryToplayer div.rightInfo, #galleryToplayer td.rightInfo").stop(true).animate({width:0},500);K.stop(true).animate({left:$(window).width()/2-C.Image.width/2-parseInt(K.css("border-left-width")),top:$(window).height()/2-C.Image.height/2-parseInt(K.css("border-top-width"))+$(document).scrollTop()},500);u.fadeTo(500,0);setTimeout(function(){C=galleryData[l.current_id];$("#galleryToplayer div.bottomInfo").css({height:0,
width:C.Image.width,display:"none"});$("#galleryToplayer div.rightInfo, #galleryToplayer td.rightInfo").css({width:0,height:C.Image.height,display:"none"});K.stop(true).animate({left:$(window).width()/2-C.Image.width/2-parseInt(K.css("border-left-width")),top:$(window).height()/2-C.Image.height/2-parseInt(K.css("border-top-width"))+$(document).scrollTop()},500);u.stop(true).animate({width:C.Image.width,height:C.Image.height},500);setTimeout(function(){u.attr("src",C.Image.url)},500)},500)},200)},
ca=function(B){var C={next:i,prev:i},K=false,I;for(I in galleryData){if(K){C.next=I;break}if(B==I)K=true;else C.prev=I}if(C.next==i)for(I in galleryData){C.next=I;break}if(C.prev==i)for(I in galleryData)C.prev=I;return C},X=function(){var B=parseInt($('input[name="mlm_info_direct_recommended"]').val()),C=parseInt($('input[name="mlm_info_recommended"]').val()),K,I,W,ga;if(isNaN(B)||B<0)B=0;if(isNaN(C)||C<0)C=0;I=K=0;$.each(mlm_levels,function(u,c){W=B*Math.pow(C,c.mlm_level-1);ga=W*(parseFloat(c.commission)+
mlm_default_order_price*c.percent_commission/100);$("table.mlmInfoCounterTable tr.level"+c.mlm_level+" td.partners").text(W);$("table.mlmInfoCounterTable tr.level"+c.mlm_level+" td.sum").text(Peregrine.price(ga)+" z\u0142");K+=W;I+=ga});$("table.mlmInfoCounterTable td.sumPartners").text(K);$("table.mlmInfoCounterTable td.sumCommission, span.mlmInfoCounterSum").text(Peregrine.price(I)+" z\u0142");$("span.mlmInfoCounterCharity").text(Peregrine.price(K*charity_amount)+" z\u0142")},na=function(){var B=
parseFloat($('input[name="mlm_money"]').val().replace(",",".")),C=parseInt($('input[name="shipment_id"]:checked').val()),K=0,I;for(I=0;I<shipments.length;++I)if(shipments[I].shipment_id==C){K=parseFloat(shipments[I].price);break}C=K+mosaicsRawPrice-discount-B;B>0?$("tr.mlmAmountRow").slideDown():$("tr.mlmAmountRow").slideUp();$("td.tableFullPrice, div.fullPrice").text(Peregrine.price(C)+" z\u0142");$("td.mlmAmount").text("-"+Peregrine.price(B)+" z\u0142");$("td.shipmentPrice").text(Peregrine.price(K)+
" z\u0142")},Ga=function(B,C){$("div.projects div.version span.label").show();$("div.projects div.version input.button").hide();$("div.projects div.version span.label_"+B+"_"+C).hide();$("div.projects div.version input.button_"+B+"_"+C).show()},sa=function(){var B=parseInt($(".pricesRightBox select[name='price_check_mosaic_size_id']").val()),C=parseInt($(".pricesRightBox select[name='price_check_mosaic_type_id']").val()),K=$(".pricesRightBox select[name='price_check_mosaic_type_id']")[0],I=parseInt($(".pricesRightBox select[name='price_check_frame_id']").val()),
W=$(".pricesRightBox select[name='price_check_frame_id']")[0],ga=parseInt($(".pricesRightBox select[name='price_check_shipment_id']").val()),u=$(".pricesRightBox select[name='price_check_shipment_id']")[0],c=$(".pricesRightBox input[name='price_check_is_own_photos']").attr("checked"),T=0,Q=pricesRightBox,V=false,la=false,xa=false,qa,fa;if(c)T+=Q.own_photos_price;if(B!=Q.mosaic_size_id)V=true;for(c=0;c<Q.sizes.length;++c)if(B==Q.sizes[c].mosaic_size_id){T+=Q.sizes[c].price;break}if(V){var Z=false;
for(c=K.options.length=0;c<Q.printings.length;++c){qa=Q.printings[c];if(qa.mosaic_size_id==B){fa=new Option;fa.value=qa.mosaic_type_id;fa.text=qa.name+": "+Peregrine.price(qa.price)+"z\u0142";if(C==qa.mosaic_type_id)Z=fa.selected=true;K.options[K.options.length]=fa}}Z||(C=parseInt($(".pricesRightBox select[name='price_check_mosaic_type_id']").val()))}if(C!=Q.mosaic_type_id)la=true;for(c=0;c<Q.printings.length;++c){qa=Q.printings[c];if(B==qa.mosaic_size_id&&C==qa.mosaic_type_id){T+=qa.price;break}}if(V||
la){V=false;for(c=W.options.length=0;c<Q.frames.length;++c){K=Q.frames[c];if(K.mosaic_size_id==B&&K.mosaic_type_id==C){fa=new Option;fa.value=K.frame_id;fa.text=K.name+": "+Peregrine.price(K.price)+"z\u0142";if(I==K.frame_id)V=fa.selected=true;W.options[W.options.length]=fa}}V||(I=parseInt($(".pricesRightBox select[name='price_check_frame_id']").val()))}if(I!=Q.frame_id)xa=true;for(c=0;c<Q.frames.length;++c){K=Q.frames[c];if(I==K.frame_id&&B==K.mosaic_size_id&&C==K.mosaic_type_id){T+=K.price;break}}if(la||
xa){la=false;for(c=u.options.length=0;c<Q.shipments.length;++c){W=Q.shipments[c];if(W.mosaic_type_id==C&&W.frame_id==I){fa=new Option;fa.value=W.shipment_id;fa.text=W.name+": "+Peregrine.price(W.price)+"z\u0142";if(ga==W.shipment_id)la=fa.selected=true;u.options[u.options.length]=fa}}la||(ga=parseInt($(".pricesRightBox select[name='price_check_shipment_id']").val()))}for(c=0;c<Q.shipments.length;++c){W=Q.shipments[c];if(ga==W.shipment_id&&I==W.frame_id&&C==W.mosaic_type_id){T+=W.price;break}}$(".pricesRightBox .sumPrice").text(Peregrine.price(T));
Q.mosaic_size_id=B;Q.mosaic_type_id=C;Q.frame_id=I;Q.shipment_id=ga};$(".pricesRightBox select").change(function(){sa()});$(".pricesRightBox input").click(function(){sa()});$(".pricesRightBox").length>0&&sa();$("img.rollover, input[type='image'].rollover").autoHover();$("input.autoremove").autoRemoveText();$("input.text215").focus(function(){$(this).addClass("text215focus")}).blur(function(){$(this).removeClass("text215focus")});$("input.text318").focus(function(){$(this).addClass("text318focus")}).blur(function(){$(this).removeClass("text318focus")});
$("input.text53").focus(function(){$(this).addClass("text53focus")}).blur(function(){$(this).removeClass("text53focus")});$("textarea.textarea613").focus(function(){$(this).addClass("textarea613focus")}).blur(function(){$(this).removeClass("textarea613focus")});$("textarea.textarea318").focus(function(){$(this).addClass("textarea318focus")}).blur(function(){$(this).removeClass("textarea318focus")});Peregrine.preload("/graph/frm_text_215_active.png");Peregrine.preload("/graph/frm_text_318_active.png");
Peregrine.preload("/graph/frm_textarea613_active.png");Peregrine.preload("/graph/frm_textarea318_active.png");Peregrine.preload("/graph/frm_text_53_active.png");$("form.mosaicSize").submit(function(){var B=parseInt($("input[name=mosaic_size_id]").val());if(isNaN(B)||B==0){alert("Prosz\u0119 wybra\u0107 rozmiar mozaiki!");return false}else return true});$('input[name="referrer_id"]').click(function(){$(this).hasClass("referrer_other")?$(".referrer_text_row").slideDown():$(".referrer_text_row").slideUp();
$(this).hasClass("referrer_recomendation")?$(".recommender_email_row").slideDown():$(".recommender_email_row").slideUp()});if($("div.mlmMenu").hasClass("anim")){$("#mlmMenuItem img, div.mlmMenu").mouseover(function(){$("div.mlmMenu").show();$("#mlmMenuItem img").trigger("mouseenter")});$("#mlmMenuItem img, div.mlmMenu").mouseout(function(){$("div.mlmMenu").hide();$("#mlmMenuItem img").trigger("mouseleave")})}$("div.projects div.version").preload();$('div.projects div.version input[name^="version_"]').click(function(){var B=
$(this).attr("name").substr(8);$('div.projects div.version input[name="version_'+B+'"]').attr("checked",false);$(this).attr("checked",true);Ga(B,$(this).val())});$("form.framePrint").submit(function(){var B=true,C=parseInt($("input[name=mosaic_type_id]").val()),K=parseInt($("input[name=frame_id]").val()),I=parseInt($("input[name=mosaic_option_"+ownPhotosOptionId+"]").val());if(isNaN(C)||C==0){alert("Prosz\u0119 wybra\u0107 form\u0119 mozaiki!");B=false}if(B&&(isNaN(K)||K==0)){alert("Prosz\u0119 wybra\u0107 obramowanie!");
B=false}if(B&&!I)B=confirm(ownPhotosOptionReminder);return B});$("input.detailHasInvoice").click(function(){$(this).attr("checked")?$("div.detailInvoiceContainer").stop(true).slideDown():$("div.detailInvoiceContainer").stop(true).slideUp()});$('input[name="invoice_same_as_shipping"]').click(function(){$(this).attr("checked")&&$.each(["company_name","street","street_nr","home_nr","phone","city","postal_code"],function(B,C){$('input[name="invoice_'+C+'"]').val($('input[name="shipping_'+C+'"]').val())})});
$("form.orderDetail").submit(function(){$("input.detailHasInvoice").attr("checked")||$('input[name^="invoice_"]').val("");return true});$('.finalizeForm input[name="mlm_money"]').change(function(){var B=parseFloat($(this).val());if(isNaN(B)||B<0)B=0;if(B>userBalance){alert("Podana kwota "+Peregrine.price(B)+"z\u0142 jest wy\u017csza od kwoty zgromadzonej na twoim koncie. Maksymalna kwota jak\u0105 mo\u017cesz wykorzysta\u0107 to "+Peregrine.price(userBalance)+"z\u0142.");B=userBalance}$(this).val(B);
na()});$('.finalizeForm input[name="shipment_id"]').click(function(){na()});$("form.finalizeForm").submit(function(){var B=true,C=parseInt($("input[name=shipment_id]:checked").val()),K=parseInt($("input[name=payment_id]:checked").val()),I=parseFloat($('input[name="mlm_money"]').val());if(isNaN(C)||C==0){alert("Prosz\u0119 wybra\u0107 rodzaj wysy\u0142ki!");B=false}if(B&&(isNaN(K)||K==0)){alert("Prosz\u0119 wybra\u0107 rodzaj p\u0142atno\u015bci!");B=false}if(B&&(isNaN(I)||I>userBalance||I<0)){alert("Prosz\u0119 poda\u0107 prawid\u0142ow\u0105 kwot\u0119 w polu zmniejszania warto\u015bci zam\u00f3wienia!");
B=false}return B});$("div.faqList > div").click(function(){$(this).parent().children().removeClass("active").removeClass("hover");$(this).addClass("active")}).hover(function(){$(this).hasClass("active")||$(this).addClass("hover")},function(){$(this).removeClass("hover")}).removeClass("active");$("div.pager").length>0&&setInterval(function(){var B=$("div.pager a.active").offset().left,C=$("div.pager a.active").width(),K=$("div.pager img.arrow").width();$("div.pager img.arrow").css("left",Math.round(B+
C/2-K/2)+1)},250);$('input[name="mlm_info_direct_recommended"], input[name="mlm_info_recommended"]').keyup(function(){X()});$("div.mlmInfoCounter form").length>0&&X();$("#galleryShadow, #galleryToplayer img.close").click(function(){y()});$("#galleryToplayer img.next").click(function(){D("next")});$("#galleryToplayer img.prev").click(function(){D("prev")});$('a[class^="galleryUrl_"]').click(function(){var B=parseInt($(this).attr("class").substring(11));t(B);return false});$("#galleryToplayer img.photo").bind("load",
function(){A()});Peregrine.preload("/graph/loader.gif");Peregrine.preload("/graph/gallery/btn_gallery_arrow_left.png");Peregrine.preload("/graph/gallery/btn_gallery_arrow_right.png");Peregrine.preload("/graph/gallery/btn_gallery_close.png");$("img.tooltip").tooltip();$('form.mlmPayment input[name="payment_type"]').click(function(){var B=$(this).val();$("form.mlmPayment div.deal_finance_data, form.mlmPayment div.deal_data, form.mlmPayment div.invoice_data").hide();if(B=="company")$("form.mlmPayment div.invoice_data").show();
else B=="individual"&&$("form.mlmPayment div.deal_finance_data, form.mlmPayment div.deal_data").show()});$('form.mlmPayment input[name="deal_deal_option_id"]').change(function(){var B=$(this).val();$('form.mlmPayment div[class^="deal_suboption_block_"]').filter(":not(.deal_suboption_block_"+B+")").slideUp(200);$("form.mlmPayment div.deal_suboption_block_"+B).slideDown(200)});$('form.mlmPayment input[name="deal_suboption_nr"]').change(function(){var B=$(this).val(),C=$('form.mlmPayment input[name="deal_deal_option_id"]:checked').val();
$('form.mlmPayment div[class^="deal_suboption_text_"]').filter(":not(.deal_suboption_text_"+C+"_"+B+")").slideUp(200);$("form.mlmPayment div.deal_suboption_text_"+C+"_"+B).slideDown(200)});$("a[href$='jpg'], a[href$='gif'], a[href$='png'], a[href$='jpeg'], a[href$='JPG'], a[href$='GIF'], a[href$='PNG'], a[href$='JPEG']").filter(':not([class~="gallery"])').filter(':not([class~="download"])').lightBox({imageLoading:"/graph/lightbox-ico-loading.gif",imageBtnClose:"/graph/lightbox-btn-close.gif",imageBtnPrev:"/graph/lightbox-btn-prev.gif",
imageBtnNext:"/graph/lightbox-btn-next.gif",imageBlank:"/graph/lightbox-blank.gif",txtImage:"Obrazek:",txtOf:"z"});$("a.beginOrderUrl").click(function(){if($('input[name="beginOrderCheck"]').attr("checked"))return true;else{alert("Musisz zapozna\u0107 si\u0119 i zaakceptowa\u0107 postanowienia regulaminu!");return false}});$("input").checkBox();Peregrine.preload("/graph/gr_checkbox_active.png");Peregrine.preload("/graph/gr_radio_checked.png");$("div.facebookWidget").css("left",$(window).width()-32).show().hover(function(){$(this).stop(true).animate({left:$(window).width()-
347,width:347},300)},function(){$(this).stop(true).animate({left:$(window).width()-32,width:32},300)});$(window).resize(function(){$("div.facebookWidget").css("left",$(window).width()-32)})});function chooseSize(i){$('input[name="mosaic_size_id"]').val(i);$(".mosaicSizes a").removeClass("active");$(".mosaicSizes a.size"+i).addClass("active")}function chooseType(i){$('input[name="mosaic_type_id"]').val(i);updateOptions()}function chooseFrame(i){$('input[name="frame_id"]').val(i);updateOptions()}
function clickOption(i){i='input[name="mosaic_option_'+i+'"]';var l=parseInt($(i).val());$(i).val(1-l);updateOptions()}
function updateOptions(){var i,l,t,A=parseInt($('input[name="mosaic_type_id"]').val()),y=parseInt($('input[name="frame_id"]').val()),D=[],R=0;for(i=0;i<availableFrames.length;++i){l=availableFrames[i].frame_id;t=availableFrames[i].mosaic_type_id;if(t==A){$.inArray(l,D)==-1&&D.push(l);$(".optionButtons a.frame_"+l+" .price").text(availableFrames[i].price)}}if(A>0)for(i=0;i<frameIds.length;++i)$.inArray(frameIds[i],D)!=-1?$(".optionButtons a.frame_"+frameIds[i]).show():$(".optionButtons a.frame_"+frameIds[i]).hide();
if($.inArray(y,D)==-1&&A>0){y=0;$('input[name="frame_id"]').val(0)}for(i=0;i<mosaicOptions.length;++i){l=mosaicOptions[i].mosaic_option_id;if($.inArray(l,availableMosaicOptions[A])!=-1)$(".optionButtons a.mosaic_option_"+mosaicOptions[i].mosaic_option_id).show();else if(A>0){$(".optionButtons a.mosaic_option_"+l).hide();mosaicOptions[i].is_chooseable&&$('input[name="mosaic_option_'+l+'"]').val(0)}}$('.optionButtons a[class*="mosaic_type_"]').removeClass("active");$(".optionButtons a.mosaic_type_"+
A).addClass("active");$('.optionButtons a[class*="frame_"]').removeClass("active");$(".optionButtons a.frame_"+y).addClass("active");for(i=0;i<mosaicOptions.length;++i){l=mosaicOptions[i].mosaic_option_id;parseInt($('input[name="mosaic_option_'+l+'"]').val())==1?$(".optionButtons a.mosaic_option_"+l).addClass("active"):$(".optionButtons a.mosaic_option_"+l).removeClass("active")}$("table.optionsTable").empty();t=parseFloat(projectPrice);R+=t;l="Projekt "+mosaicHeight+"x"+mosaicWidth;addOptionRow(l,
t);if(A>0){t=parseFloat(mosaicTypes[A].price);R+=t;l="Druk "+mosaicTypes[A].name.toLowerCase();addOptionRow(l,t)}if(A>0&&y>0){l=t=undefined;for(i=0;i<availableFrames.length;++i)if(availableFrames[i].mosaic_type_id==A&&availableFrames[i].frame_id==y){t=parseFloat(availableFrames[i].price);break}for(i=0;i<allFrames.length;++i)if(allFrames[i].frame_id==y){l=allFrames[i].name;break}if(t!=undefined&&l!=undefined){R+=t;addOptionRow(l,t)}}for(i=0;i<mosaicOptions.length;++i){l=mosaicOptions[i].mosaic_option_id;
if(parseInt($('input[name="mosaic_option_'+l+'"]').val())==1){l=mosaicOptions[i].name;t=parseFloat(mosaicOptions[i].price);R+=t;addOptionRow(l,t)}}$("span.optionsFullPrice").text(Peregrine.price(R));$(".optionButtons a.const").each(function(ca,X){$(X).hasClass("active")?$(X).css("color","#696969"):$(X).css("color","#999999")})}function addOptionRow(i,l){$("<tr><th>"+i+"</th><td>"+Peregrine.price(l)+"z\u0142</td></tr>").appendTo("table.optionsTable")}
jQuery.fn.tooltip=function(){Peregrine.preload("/graph/bg_tooltip_top.png");Peregrine.preload("/graph/bg_tooltip_bottom.png");Peregrine.preload("/graph/bg_tooltip.png");return this.each(function(){var i=$(this).attr("title"),l="",t;l+='<div class="tooltip">';l+='    <div class="top"><!----\></div>';l+='    <div class="content">'+i+"</div>";l+='    <div class="bottom"><!----\></div>';l+="</div>";t=$(l).appendTo($("body"));$(this).hover(function(){t.show();t.css({top:$(this).offset().top-t.height()+
1,left:$(this).offset().left-12})},function(){t.hide()}).removeAttr("title")})};

