/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aR,U){function a3(){if(!ak.isReady){try{ac.documentElement.doScroll("left")}catch(c){setTimeout(a3,1);return}ak.ready()}}function M(s,c){c.src?ak.ajax({url:c.src,async:false,dataType:"script"}):ak.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function at(s,c,K,F,G,w){var A=s.length;if(typeof c==="object"){for(var J in c){at(s,J,c[J],F,G,K)}return s}if(K!==U){F=!w&&F&&ak.isFunction(K);for(J=0;J<A;J++){G(s[J],c,F?K.call(s[J],J,G(s[J],c)):K,w)}return s}return A?G(s[0],c):U}function aI(){return(new Date).getTime()}function ar(){return false}function ap(){return true}function aN(s,c,w){w[0].type=s;return ak.event.handle.apply(c,w)}function aj(O){var N,L=[],J=[],K=arguments,F,G,s,A,w,c;G=ak.data(this,"events");if(!(O.liveFired===this||!G||!G.live||O.button&&O.type==="click")){O.liveFired=this;var P=G.live.slice(0);for(A=0;A<P.length;A++){G=P[A];G.origType.replace(aC,"")===O.type?J.push(G.selector):P.splice(A--,1)}F=ak(O.target).closest(J,O.currentTarget);w=0;for(c=F.length;w<c;w++){for(A=0;A<P.length;A++){G=P[A];if(F[w].selector===G.selector){s=F[w].elem;J=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){J=ak(O.relatedTarget).closest(G.selector)[0]}if(!J||J!==s){L.push({elem:s,handleObj:G})}}}}w=0;for(c=L.length;w<c;w++){F=L[w];O.currentTarget=F.elem;O.data=F.handleObj.data;O.handleObj=F.handleObj;if(F.handleObj.origHandler.apply(F.elem,K)===false){N=false;break}}return N}}function D(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function n(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function bm(s,c){var w=0;c.each(function(){if(this.nodeName===(s[w]&&s[w].nodeName)){var G=ak.data(s[w++]),J=ak.data(this,G);if(G=G&&G.events){delete J.handle;J.events={};for(var A in G){for(var F in G[A]){ak.event.add(this,A,G[A][F],G[A][F].data)}}}}})}function a6(s,c,G){var A,F,w;c=c&&c[0]?c[0].ownerDocument||c[0]:ac;if(s.length===1&&typeof s[0]==="string"&&s[0].length<512&&c===ac&&!aS.test(s[0])&&(ak.support.checkClone||!an.test(s[0]))){F=true;if(w=ak.fragments[s[0]]){if(w!==1){A=w}}}if(!A){A=c.createDocumentFragment();ak.clean(s,c,A,G)}if(F){ak.fragments[s[0]]=w?A:1}return{fragment:A,cacheable:F}}function aF(s,c){var w={};ak.each(I.concat.apply([],I.slice(0,c)),function(){w[this]=s});return w}function q(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ak=function(s,c){return new ak.fn.init(s,c)},r=aR.jQuery,d=aR.$,ac=aR.document,aw,bc=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aW=/^.[^:#\[\.,]*$/,aq=/\S/,S=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,u=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aA=navigator.userAgent,b=false,ay=[],aE,a4=Object.prototype.toString,aY=Object.prototype.hasOwnProperty,aB=Array.prototype.push,ax=Array.prototype.slice,a9=Array.prototype.indexOf;ak.fn=ak.prototype={init:function(s,c){var A,w;if(!s){return this}if(s.nodeType){this.context=this[0]=s;this.length=1;return this}if(s==="body"&&!c){this.context=ac;this[0]=ac.body;this.selector="body";this.length=1;return this}if(typeof s==="string"){if((A=bc.exec(s))&&(A[1]||!c)){if(A[1]){w=c?c.ownerDocument||c:ac;if(s=u.exec(s)){if(ak.isPlainObject(c)){s=[ac.createElement(s[1])];ak.fn.attr.call(s,c,true)}else{s=[w.createElement(s[1])]}}else{s=a6([A[1]],[w]);s=(s.cacheable?s.fragment.cloneNode(true):s.fragment).childNodes}return ak.merge(this,s)}else{if(c=ac.getElementById(A[2])){if(c.id!==A[2]){return aw.find(s)}this.length=1;this[0]=c}this.context=ac;this.selector=s;return this}}else{if(!c&&/^\w+$/.test(s)){this.selector=s;this.context=ac;s=ac.getElementsByTagName(s);return ak.merge(this,s)}else{return !c||c.jquery?(c||aw).find(s):ak(c).find(s)}}}else{if(ak.isFunction(s)){return aw.ready(s)}}if(s.selector!==U){this.selector=s.selector;this.context=s.context}return ak.makeArray(s,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ax.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(s,c,A){var w=ak();ak.isArray(s)?aB.apply(w,s):ak.merge(w,s);w.prevObject=this;w.context=this.context;if(c==="find"){w.selector=this.selector+(this.selector?" ":"")+A}else{if(c){w.selector=this.selector+"."+c+"("+A+")"}}return w},each:function(s,c){return ak.each(this,s,c)},ready:function(c){ak.bindReady();if(ak.isReady){c.call(ac,ak)}else{ay&&ay.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ax.apply(this,arguments),"slice",ax.call(arguments).join(","))},map:function(c){return this.pushStack(ak.map(this,function(s,w){return c.call(s,w,s)}))},end:function(){return this.prevObject||ak(null)},push:aB,sort:[].sort,splice:[].splice};ak.fn.init.prototype=ak.fn;ak.extend=ak.fn.extend=function(){var s=arguments[0]||{},c=1,K=arguments.length,F=false,G,w,A,J;if(typeof s==="boolean"){F=s;s=arguments[1]||{};c=2}if(typeof s!=="object"&&!ak.isFunction(s)){s={}}if(K===c){s=this;--c}for(;c<K;c++){if((G=arguments[c])!=null){for(w in G){A=s[w];J=G[w];if(s!==J){if(F&&J&&(ak.isPlainObject(J)||ak.isArray(J))){A=A&&(ak.isPlainObject(A)||ak.isArray(A))?A:ak.isArray(J)?[]:{};s[w]=ak.extend(F,A,J)}else{if(J!==U){s[w]=J}}}}}}return s};ak.extend({noConflict:function(c){aR.$=d;if(c){aR.jQuery=r}return ak},isReady:false,ready:function(){if(!ak.isReady){if(!ac.body){return setTimeout(ak.ready,13)}ak.isReady=true;if(ay){for(var s,c=0;s=ay[c++];){s.call(ac,ak)}ay=null}ak.fn.triggerHandler&&ak(ac).triggerHandler("ready")}},bindReady:function(){if(!b){b=true;if(ac.readyState==="complete"){return ak.ready()}if(ac.addEventListener){ac.addEventListener("DOMContentLoaded",aE,false);aR.addEventListener("load",ak.ready,false)}else{if(ac.attachEvent){ac.attachEvent("onreadystatechange",aE);aR.attachEvent("onload",ak.ready);var s=false;try{s=aR.frameElement==null}catch(c){}ac.documentElement.doScroll&&s&&a3()}}}},isFunction:function(c){return a4.call(c)==="[object Function]"},isArray:function(c){return a4.call(c)==="[object Array]"},isPlainObject:function(s){if(!s||a4.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false}if(s.constructor&&!aY.call(s,"constructor")&&!aY.call(s.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in s){}return c===U||aY.call(s,c)},isEmptyObject:function(s){for(var c in s){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=ak.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aR.JSON&&aR.JSON.parse?aR.JSON.parse(c):(new Function("return "+c))()}else{ak.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(s){if(s&&aq.test(s)){var c=ac.getElementsByTagName("head")[0]||ac.documentElement,w=ac.createElement("script");w.type="text/javascript";if(ak.support.scriptEval){w.appendChild(ac.createTextNode(s))}else{w.text=s}c.insertBefore(w,c.firstChild);c.removeChild(w)}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()},each:function(s,c,J){var F,G=0,w=s.length,A=w===U||ak.isFunction(s);if(J){if(A){for(F in s){if(c.apply(s[F],J)===false){break}}}else{for(;G<w;){if(c.apply(s[G++],J)===false){break}}}}else{if(A){for(F in s){if(c.call(s[F],F,s[F])===false){break}}}else{for(J=s[0];G<w&&c.call(J,G,J)!==false;J=s[++G]){}}}return s},trim:function(c){return(c||"").replace(S,"")},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||ak.isFunction(s)||typeof s!=="function"&&s.setInterval?aB.call(c,s):ak.merge(c,s)}return c},inArray:function(s,c){if(c.indexOf){return c.indexOf(s)}for(var A=0,w=c.length;A<w;A++){if(c[A]===s){return A}}return -1},merge:function(s,c){var F=s.length,w=0;if(typeof c.length==="number"){for(var A=c.length;w<A;w++){s[F++]=c[w]}}else{for(;c[w]!==U;){s[F++]=c[w++]}}s.length=F;return s},grep:function(s,c,G){for(var A=[],F=0,w=s.length;F<w;F++){!G!==!c(s[F],F)&&A.push(s[F])}return A},map:function(s,c,J){for(var F=[],G,w=0,A=s.length;w<A;w++){G=c(s[w],w,J);if(G!=null){F[F.length]=G}}return F.concat.apply([],F)},guid:1,proxy:function(s,c,w){if(arguments.length===2){if(typeof c==="string"){w=s;s=w[c];c=U}else{if(c&&!ak.isFunction(c)){w=c;c=U}}}if(!c&&s){c=function(){return s.apply(w||this,arguments)}}if(s){c.guid=s.guid=s.guid||c.guid||ak.guid++}return c},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});aA=ak.uaMatch(aA);if(aA.browser){ak.browser[aA.browser]=true;ak.browser.version=aA.version}if(ak.browser.webkit){ak.browser.safari=true}if(a9){ak.inArray=function(s,c){return a9.call(c,s)}}aw=ak(ac);if(ac.addEventListener){aE=function(){ac.removeEventListener("DOMContentLoaded",aE,false);ak.ready()}}else{if(ac.attachEvent){aE=function(){if(ac.readyState==="complete"){ac.detachEvent("onreadystatechange",aE);ak.ready()}}}}(function(){ak.support={};var L=ac.documentElement,K=ac.createElement("script"),J=ac.createElement("div"),F="script"+aI();J.style.display="none";J.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var G=J.getElementsByTagName("*"),w=J.getElementsByTagName("a")[0];if(!(!G||!G.length||!w)){ak.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(w.getAttribute("style")),hrefNormalized:w.getAttribute("href")==="/a",opacity:/^0.55$/.test(w.style.opacity),cssFloat:!!w.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:ac.createElement("select").appendChild(ac.createElement("option")).selected,parentNode:J.removeChild(J.appendChild(ac.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};K.type="text/javascript";try{K.appendChild(ac.createTextNode("window."+F+"=1;"))}catch(A){}L.insertBefore(K,L.firstChild);if(aR[F]){ak.support.scriptEval=true;delete aR[F]}try{delete K.test}catch(c){ak.support.deleteExpando=false}L.removeChild(K);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function s(){ak.support.noCloneEvent=false;J.detachEvent("onclick",s)});J.cloneNode(true).fireEvent("onclick")}J=ac.createElement("div");J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";L=ac.createDocumentFragment();L.appendChild(J.firstChild);ak.support.checkClone=L.cloneNode(true).cloneNode(true).lastChild.checked;ak(function(){var N=ac.createElement("div");N.style.width=N.style.paddingLeft="1px";ac.body.appendChild(N);ak.boxModel=ak.support.boxModel=N.offsetWidth===2;ac.body.removeChild(N).style.display="none"});L=function(N){var P=ac.createElement("div");N="on"+N;var O=N in P;if(!O){P.setAttribute(N,"return;");O=typeof P[N]==="function"}return O};ak.support.submitBubbles=L("submit");ak.support.changeBubbles=L("change");L=K=J=G=w=null}})();ak.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aK="jQuery"+aI(),e=0,aV={};ak.extend({cache:{},expando:aK,noData:{embed:true,object:true,applet:true},data:function(s,c,F){if(!(s.nodeName&&ak.noData[s.nodeName.toLowerCase()])){s=s==aR?aV:s;var w=s[aK],A=ak.cache;if(!w&&typeof c==="string"&&F===U){return null}w||(w=++e);if(typeof c==="object"){s[aK]=w;A[w]=ak.extend(true,{},c)}else{if(!A[w]){s[aK]=w;A[w]={}}}s=A[w];if(F!==U){s[c]=F}return typeof c==="string"?s[c]:s}},removeData:function(s,c){if(!(s.nodeName&&ak.noData[s.nodeName.toLowerCase()])){s=s==aR?aV:s;var F=s[aK],w=ak.cache,A=w[F];if(c){if(A){delete A[c];ak.isEmptyObject(A)&&ak.removeData(s)}}else{if(ak.support.deleteExpando){delete s[ak.expando]}else{s.removeAttribute&&s.removeAttribute(ak.expando)}delete w[F]}}}});ak.fn.extend({data:function(s,c){if(typeof s==="undefined"&&this.length){return ak.data(this[0])}else{if(typeof s==="object"){return this.each(function(){ak.data(this,s)})}}var A=s.split(".");A[1]=A[1]?"."+A[1]:"";if(c===U){var w=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(w===U&&this.length){w=ak.data(this[0],s)}return w===U&&A[1]?this.data(A[0]):w}else{return this.trigger("setData"+A[1]+"!",[A[0],c]).each(function(){ak.data(this,s,c)})}},removeData:function(c){return this.each(function(){ak.removeData(this,c)})}});ak.extend({queue:function(s,c,A){if(s){c=(c||"fx")+"queue";var w=ak.data(s,c);if(!A){return w||[]}if(!w||ak.isArray(A)){w=ak.data(s,c,ak.makeArray(A))}else{w.push(A)}return w}},dequeue:function(s,c){c=c||"fx";var A=ak.queue(s,c),w=A.shift();if(w==="inprogress"){w=A.shift()}if(w){c==="fx"&&A.unshift("inprogress");w.call(s,function(){ak.dequeue(s,c)})}}});ak.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx"}if(c===U){return ak.queue(this[0],s)}return this.each(function(){var w=ak.queue(this,s,c);s==="fx"&&w[0]!=="inprogress"&&ak.dequeue(this,s)})},dequeue:function(c){return this.each(function(){ak.dequeue(this,c)})},delay:function(s,c){s=ak.fx?ak.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var w=this;setTimeout(function(){ak.dequeue(w,c)},s)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var bh=/[\n\t]/g,ae=/\s+/,bd=/\r/g,aP=/href|src|style/,aX=/(button|input)/i,az=/(button|input|object|select|textarea)/i,ad=/^(a|area)$/i,a1=/radio|checkbox/;ak.fn.extend({attr:function(s,c){return at(this,s,c,true,ak.attr)},removeAttr:function(c){return this.each(function(){ak.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(L){if(ak.isFunction(L)){return this.each(function(O){var N=ak(this);N.addClass(L.call(this,O,N.attr("class")))})}if(L&&typeof L==="string"){for(var K=(L||"").split(ae),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1){if(G.className){for(var w=" "+G.className+" ",A=G.className,c=0,s=K.length;c<s;c++){if(w.indexOf(" "+K[c]+" ")<0){A+=" "+K[c]}}G.className=ak.trim(A)}else{G.className=L}}}}return this},removeClass:function(s){if(ak.isFunction(s)){return this.each(function(L){var N=ak(this);N.removeClass(s.call(this,L,N.attr("class")))})}if(s&&typeof s==="string"||s===U){for(var c=(s||"").split(ae),K=0,F=this.length;K<F;K++){var G=this[K];if(G.nodeType===1&&G.className){if(s){for(var w=(" "+G.className+" ").replace(bh," "),A=0,J=c.length;A<J;A++){w=w.replace(" "+c[A]+" "," ")}G.className=ak.trim(w)}else{G.className=""}}}}return this},toggleClass:function(s,c){var A=typeof s,w=typeof c==="boolean";if(ak.isFunction(s)){return this.each(function(G){var F=ak(this);F.toggleClass(s.call(this,G,F.attr("class"),c),c)})}return this.each(function(){if(A==="string"){for(var K,G=0,J=ak(this),L=c,F=s.split(ae);K=F[G++];){L=w?L:!J.hasClass(K);J[L?"addClass":"removeClass"](K)}}else{if(A==="undefined"||A==="boolean"){this.className&&ak.data(this,"__className__",this.className);this.className=this.className||s===false?"":ak.data(this,"__className__")||""}}})},hasClass:function(s){s=" "+s+" ";for(var c=0,w=this.length;c<w;c++){if((" "+this[c].className+" ").replace(bh," ").indexOf(s)>-1){return true}}return false},val:function(s){if(s===U){var c=this[0];if(c){if(ak.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(ak.nodeName(c,"select")){var K=c.selectedIndex,F=[],G=c.options;c=c.type==="select-one";if(K<0){return null}var w=c?K:0;for(K=c?K+1:G.length;w<K;w++){var A=G[w];if(A.selected){s=ak(A).val();if(c){return s}F.push(s)}}return F}if(a1.test(c.type)&&!ak.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(bd,"")}return U}var J=ak.isFunction(s);return this.each(function(L){var P=ak(this),O=s;if(this.nodeType===1){if(J){O=s.call(this,L,P.val())}if(typeof O==="number"){O+=""}if(ak.isArray(O)&&a1.test(this.type)){this.checked=ak.inArray(P.val(),O)>=0}else{if(ak.nodeName(this,"select")){var N=ak.makeArray(O);ak("option",this).each(function(){this.selected=ak.inArray(ak(this).val(),N)>=0});if(!N.length){this.selectedIndex=-1}}else{this.value=O}}}})}});ak.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(s,c,G,A){if(!s||s.nodeType===3||s.nodeType===8){return U}if(A&&c in ak.attrFn){return ak(s)[c](G)}A=s.nodeType!==1||!ak.isXMLDoc(s);var F=G!==U;c=A&&ak.props[c]||c;if(s.nodeType===1){var w=aP.test(c);if(c in s&&A&&!w){if(F){c==="type"&&aX.test(s.nodeName)&&s.parentNode&&ak.error("type property can't be changed");s[c]=G}if(ak.nodeName(s,"form")&&s.getAttributeNode(c)){return s.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=s.getAttributeNode("tabIndex"))&&c.specified?c.value:az.test(s.nodeName)||ad.test(s.nodeName)&&s.href?0:U}return s[c]}if(!ak.support.style&&A&&c==="style"){if(F){s.style.cssText=""+G}return s.style.cssText}F&&s.setAttribute(c,""+G);s=!ak.support.hrefNormalized&&A&&w?s.getAttribute(c,2):s.getAttribute(c);return s===null?U:s}return ak.style(s,c,G)}});var aC=/\.(.*)$/,v=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};ak.event={add:function(P,O,L,J){if(!(P.nodeType===3||P.nodeType===8)){if(P.setInterval&&P!==aR&&!P.frameElement){P=aR}var K,F;if(L.handler){K=L;L=K.handler}if(!L.guid){L.guid=ak.guid++}if(F=ak.data(P)){var G=F.events=F.events||{},s=F.handle;if(!s){F.handle=s=function(){return typeof ak!=="undefined"&&!ak.event.triggered?ak.event.handle.apply(s.elem,arguments):U}}s.elem=P;O=O.split(" ");for(var A,w=0,c;A=O[w++];){F=K?ak.extend({},K):{handler:L,data:J};if(A.indexOf(".")>-1){c=A.split(".");A=c.shift();F.namespace=c.slice(0).sort().join(".")}else{c=[];F.namespace=""}F.type=A;F.guid=L.guid;var Q=G[A],N=ak.event.special[A]||{};if(!Q){Q=G[A]=[];if(!N.setup||N.setup.call(P,J,c,s)===false){if(P.addEventListener){P.addEventListener(A,s,false)}else{P.attachEvent&&P.attachEvent("on"+A,s)}}}if(N.add){N.add.call(P,F);if(!F.handler.guid){F.handler.guid=L.guid}}Q.push(F);ak.event.global[A]=true}P=null}}},global:{},remove:function(R,Q,O,L){if(!(R.nodeType===3||R.nodeType===8)){var N,J=0,K,A,G,F,c,T,P=ak.data(R),s=P&&P.events;if(P&&s){if(Q&&Q.type){O=Q.handler;Q=Q.type}if(!Q||typeof Q==="string"&&Q.charAt(0)==="."){Q=Q||"";for(N in s){ak.event.remove(R,N+Q)}}else{for(Q=Q.split(" ");N=Q[J++];){F=N;K=N.indexOf(".")<0;A=[];if(!K){A=N.split(".");N=A.shift();G=new RegExp("(^|\\.)"+ak.map(A.slice(0).sort(),v).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(c=s[N]){if(O){F=ak.event.special[N]||{};for(w=L||0;w<c.length;w++){T=c[w];if(O.guid===T.guid){if(K||G.test(T.namespace)){L==null&&c.splice(w--,1);F.remove&&F.remove.call(R,T)}if(L!=null){break}}}if(c.length===0||L!=null&&c.length===1){if(!F.teardown||F.teardown.call(R,A)===false){aJ(R,N,P.handle)}delete s[N]}}else{for(var w=0;w<c.length;w++){T=c[w];if(K||G.test(T.namespace)){ak.event.remove(R,F,T.handler,w);c.splice(w--,1)}}}}}if(ak.isEmptyObject(s)){if(Q=P.handle){Q.elem=null}delete P.events;delete P.handle;ak.isEmptyObject(P)&&ak.removeData(R)}}}}},trigger:function(N,L,K,G){var J=N.type||N;if(!G){N=typeof N==="object"?N[aK]?N:ak.extend(ak.Event(J),N):ak.Event(J);if(J.indexOf("!")>=0){N.type=J=J.slice(0,-1);N.exclusive=true}if(!K){N.stopPropagation();ak.event.global[J]&&ak.each(ak.cache,function(){this.events&&this.events[J]&&ak.event.trigger(N,L,this.handle.elem)})}if(!K||K.nodeType===3||K.nodeType===8){return U}N.result=U;N.target=K;L=ak.makeArray(L);L.unshift(N)}N.currentTarget=K;(G=ak.data(K,"handle"))&&G.apply(K,L);G=K.parentNode||K.ownerDocument;try{if(!(K&&K.nodeName&&ak.noData[K.nodeName.toLowerCase()])){if(K["on"+J]&&K["on"+J].apply(K,L)===false){N.result=false}}}catch(A){}if(!N.isPropagationStopped()&&G){ak.event.trigger(N,L,G,true)}else{if(!N.isDefaultPrevented()){G=N.target;var F,c=ak.nodeName(G,"a")&&J==="click",w=ak.event.special[J]||{};if((!w._default||w._default.call(K,N)===false)&&!c&&!(G&&G.nodeName&&ak.noData[G.nodeName.toLowerCase()])){try{if(G[J]){if(F=G["on"+J]){G["on"+J]=null}ak.event.triggered=true;G[J]()}}catch(s){}if(F){G["on"+J]=F}ak.event.triggered=false}}}},handle:function(s){var c,J,F,G;s=arguments[0]=ak.event.fix(s||aR.event);s.currentTarget=this;c=s.type.indexOf(".")<0&&!s.exclusive;if(!c){J=s.type.split(".");s.type=J.shift();F=new RegExp("(^|\\.)"+J.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}G=ak.data(this,"events");J=G[s.type];if(G&&J){J=J.slice(0);G=0;for(var w=J.length;G<w;G++){var A=J[G];if(c||F.test(A.namespace)){s.handler=A.handler;s.data=A.data;s.handleObj=A;A=A.handler.apply(this,arguments);if(A!==U){s.result=A;if(A===false){s.preventDefault();s.stopPropagation()}}if(s.isImmediatePropagationStopped()){break}}}}return s.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(s){if(s[aK]){return s}var c=s;s=ak.Event(c);for(var A=this.props.length,w;A;){w=this.props[--A];s[w]=c[w]}if(!s.target){s.target=s.srcElement||ac}if(s.target.nodeType===3){s.target=s.target.parentNode}if(!s.relatedTarget&&s.fromElement){s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement}if(s.pageX==null&&s.clientX!=null){c=ac.documentElement;A=ac.body;s.pageX=s.clientX+(c&&c.scrollLeft||A&&A.scrollLeft||0)-(c&&c.clientLeft||A&&A.clientLeft||0);s.pageY=s.clientY+(c&&c.scrollTop||A&&A.scrollTop||0)-(c&&c.clientTop||A&&A.clientTop||0)}if(!s.which&&(s.charCode||s.charCode===0?s.charCode:s.keyCode)){s.which=s.charCode||s.keyCode}if(!s.metaKey&&s.ctrlKey){s.metaKey=s.ctrlKey}if(!s.which&&s.button!==U){s.which=s.button&1?1:s.button&2?3:s.button&4?2:0}return s},guid:100000000,proxy:ak.proxy,special:{ready:{setup:ak.bindReady,teardown:ak.noop},live:{add:function(c){ak.event.add(this,c.origType,ak.extend({},c,{handler:aj}))},remove:function(s){var c=true,w=s.origType.replace(aC,"");ak.each(ak.data(this,"events").live||[],function(){if(w===this.origType.replace(aC,"")){return c=false}});c&&ak.event.remove(this,s.origType,aj)}},beforeunload:{setup:function(s,c,w){if(this.setInterval){this.onbeforeunload=w}return false},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aJ=ac.removeEventListener?function(s,c,w){s.removeEventListener(c,w,false)}:function(s,c,w){s.detachEvent("on"+c,w)};ak.Event=function(c){if(!this.preventDefault){return new ak.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aI();this[aK]=true};ak.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ap;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=ap;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ap;this.stopPropagation()},isDefaultPrevented:ar,isPropagationStopped:ar,isImmediatePropagationStopped:ar};var ah=function(s){var c=s.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){s.type=s.data;ak.event.handle.apply(this,arguments)}}catch(w){}},B=function(c){c.type=c.data;ak.event.handle.apply(this,arguments)};ak.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ak.event.special[s]={setup:function(w){ak.event.add(this,c,w&&w.selector?B:ah,s)},teardown:function(w){ak.event.remove(this,c,w&&w.selector?B:ah)}}});if(!ak.support.submitBubbles){ak.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ak.event.add(this,"click.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="submit"||w==="image")&&ak(c).closest("form").length){return aN("submit",this,arguments)}});ak.event.add(this,"keypress.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="text"||w==="password")&&ak(c).closest("form").length&&s.keyCode===13){return aN("submit",this,arguments)}})}else{return false}},teardown:function(){ak.event.remove(this,".specialSubmit")}}}if(!ak.support.changeBubbles){var x=/textarea|input|select/i,g,l=function(s){var c=s.type,w=s.value;if(c==="radio"||c==="checkbox"){w=s.checked}else{if(c==="select-multiple"){w=s.selectedIndex>-1?ak.map(s.options,function(A){return A.selected}).join("-"):""}else{if(s.nodeName.toLowerCase()==="select"){w=s.selectedIndex}}}return w},bg=function(s,c){var F=s.target,w,A;if(!(!x.test(F.nodeName)||F.readOnly)){w=ak.data(F,"_change_data");A=l(F);if(s.type!=="focusout"||F.type!=="radio"){ak.data(F,"_change_data",A)}if(!(w===U||A===w)){if(w!=null||A){s.type="change";return ak.event.trigger(s,c,F)}}}};ak.event.special.change={filters:{focusout:bg,click:function(s){var c=s.target,w=c.type;if(w==="radio"||w==="checkbox"||c.nodeName.toLowerCase()==="select"){return bg.call(this,s)}},keydown:function(s){var c=s.target,w=c.type;if(s.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||s.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return bg.call(this,s)}},beforeactivate:function(c){c=c.target;ak.data(c,"_change_data",l(c))}},setup:function(){if(this.type==="file"){return false}for(var c in g){ak.event.add(this,c+".specialChange",g[c])}return x.test(this.nodeName)},teardown:function(){ak.event.remove(this,".specialChange");return x.test(this.nodeName)}};g=ak.event.special.change.filters}ac.addEventListener&&ak.each({focus:"focusin",blur:"focusout"},function(s,c){function w(A){A=ak.event.fix(A);A.type=c;return ak.event.handle.call(this,A)}ak.event.special[c]={setup:function(){this.addEventListener(s,w,true)},teardown:function(){this.removeEventListener(s,w,true)}}});ak.each(["bind","one"],function(s,c){ak.fn[c]=function(K,F,G){if(typeof K==="object"){for(var w in K){this[c](w,F,K[w],G)}return this}if(ak.isFunction(F)){G=F;F=U}var A=c==="one"?ak.proxy(G,function(L){ak(this).unbind(L,A);return G.apply(this,arguments)}):G;if(K==="unload"&&c!=="one"){this.one(K,F,G)}else{w=0;for(var J=this.length;w<J;w++){ak.event.add(this[w],K,A,F)}}return this}});ak.fn.extend({unbind:function(s,c){if(typeof s==="object"&&!s.preventDefault){for(var A in s){this.unbind(A,s[A])}}else{A=0;for(var w=this.length;A<w;A++){ak.event.remove(this[A],s,c)}}return this},delegate:function(s,c,A,w){return this.live(c,A,w,s)},undelegate:function(s,c,w){return arguments.length===0?this.unbind("live"):this.die(c,null,w,s)},trigger:function(s,c){return this.each(function(){ak.event.trigger(s,c,this)})},triggerHandler:function(s,c){if(this[0]){s=ak.Event(s);s.preventDefault();s.stopPropagation();ak.event.trigger(s,c,this[0]);return s.result}},toggle:function(s){for(var c=arguments,w=1;w<c.length;){ak.proxy(s,c[w++])}return this.click(ak.proxy(s,function(A){var F=(ak.data(this,"lastToggle"+s.guid)||0)%w;ak.data(this,"lastToggle"+s.guid,F+1);A.preventDefault();return c[F].apply(this,arguments)||false}))},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)}});var bk={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ak.each(["live","die"],function(s,c){ak.fn[c]=function(O,L,N,J){var K,A=0,G,F,w=J||this.selector,P=J?this:ak(this.context);if(ak.isFunction(L)){N=L;L=U}for(O=(O||"").split(" ");(K=O[A++])!=null;){J=aC.exec(K);G="";if(J){G=J[0];K=K.replace(aC,"")}if(K==="hover"){O.push("mouseenter"+G,"mouseleave"+G)}else{F=K;if(K==="focus"||K==="blur"){O.push(bk[K]+G);K+=G}else{K=(bk[K]||K)+G}c==="live"?P.each(function(){ak.event.add(this,D(K,w),{data:L,selector:w,handler:N,origType:K,origHandler:N,preType:F})}):P.unbind(D(K,w),N)}}return this}});ak.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(s,c){ak.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)};if(ak.attrFn){ak.attrFn[c]=true}});aR.attachEvent&&!aR.addEventListener&&aR.attachEvent("onunload",function(){for(var s in ak.cache){if(ak.cache[s].handle){try{ak.event.remove(ak.cache[s].handle.elem)}catch(c){}}}});(function(){function W(ab){for(var aa="",Z,Y=0;ab[Y];Y++){Z=ab[Y];if(Z.nodeType===3||Z.nodeType===4){aa+=Z.nodeValue}else{if(Z.nodeType!==8){aa+=W(Z.childNodes)}}}return aa}function V(bb,ba,ab,aa,Y,Z){Y=0;for(var bp=aa.length;Y<bp;Y++){var bq=aa[Y];if(bq){bq=bq[bb];for(var bo=false;bq;){if(bq.sizcache===ab){bo=aa[bq.sizset];break}if(bq.nodeType===1&&!Z){bq.sizcache=ab;bq.sizset=Y}if(bq.nodeName.toLowerCase()===ba){bo=bq;break}bq=bq[bb]}aa[Y]=bo}}}function T(bb,ba,ab,aa,Y,Z){Y=0;for(var bp=aa.length;Y<bp;Y++){var bq=aa[Y];if(bq){bq=bq[bb];for(var bo=false;bq;){if(bq.sizcache===ab){bo=aa[bq.sizset];break}if(bq.nodeType===1){if(!Z){bq.sizcache=ab;bq.sizset=Y}if(typeof ba!=="string"){if(bq===ba){bo=true;break}}else{if(N.filter(ba,[bq]).length>0){bo=bq;break}}}bq=bq[bb]}aa[Y]=bo}}}var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,R=0,O=Object.prototype.toString,P=false,K=true;[0,0].sort(function(){K=false;return 0});var N=function(bp,bo,ba,ab){ba=ba||[];var Z=bo=bo||ac;if(bo.nodeType!==1&&bo.nodeType!==9){return[]}if(!bp||typeof bp!=="string"){return ba}for(var aa=[],bu,bv,br,bb,bt=true,bq=s(bo),bs=bp;(Q.exec(""),bu=Q.exec(bs))!==null;){bs=bu[3];aa.push(bu[1]);if(bu[2]){bb=bu[3];break}}if(aa.length>1&&G.exec(bp)){if(aa.length===2&&L.relative[aa[0]]){bv=X(aa[0]+aa[1],bo)}else{for(bv=L.relative[aa[0]]?[bo]:N(aa.shift(),bo);aa.length;){bp=aa.shift();if(L.relative[bp]){bp+=aa.shift()}bv=X(bp,bv)}}}else{if(!ab&&aa.length>1&&bo.nodeType===9&&!bq&&L.match.ID.test(aa[0])&&!L.match.ID.test(aa[aa.length-1])){bu=N.find(aa.shift(),bo,bq);bo=bu.expr?N.filter(bu.expr,bu.set)[0]:bu.set[0]}if(bo){bu=ab?{expr:aa.pop(),set:c(ab)}:N.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bo.parentNode?bo.parentNode:bo,bq);bv=bu.expr?N.filter(bu.expr,bu.set):bu.set;if(aa.length>0){br=c(bv)}else{bt=false}for(;aa.length;){var Y=aa.pop();bu=Y;if(L.relative[Y]){bu=aa.pop()}else{Y=""}if(bu==null){bu=bo}L.relative[Y](br,bu,bq)}}else{br=[]}}br||(br=bv);br||N.error(Y||bp);if(O.call(br)==="[object Array]"){if(bt){if(bo&&bo.nodeType===1){for(bp=0;br[bp]!=null;bp++){if(br[bp]&&(br[bp]===true||br[bp].nodeType===1&&A(bo,br[bp]))){ba.push(bv[bp])}}}else{for(bp=0;br[bp]!=null;bp++){br[bp]&&br[bp].nodeType===1&&ba.push(bv[bp])}}}else{ba.push.apply(ba,br)}}else{c(br,ba)}if(bb){N(bb,Z,ba,ab);N.uniqueSort(ba)}return ba};N.uniqueSort=function(Z){if(J){P=K;Z.sort(J);if(P){for(var Y=1;Y<Z.length;Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)}}}return Z};N.matches=function(Z,Y){return N(Z,null,null,Y)};N.find=function(bb,ba,ab){var aa,Y;if(!bb){return[]}for(var Z=0,bp=L.order.length;Z<bp;Z++){var bq=L.order[Z];if(Y=L.leftMatch[bq].exec(bb)){var bo=Y[1];Y.splice(1,1);if(bo.substr(bo.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=L.find[bq](Y,ba,ab);if(aa!=null){bb=bb.replace(L.match[bq],"");break}}}}aa||(aa=ba.getElementsByTagName("*"));return{set:aa,expr:bb}};N.filter=function(bq,bp,bb,ab){for(var Z=bq,aa=[],bw=bp,bx,bt,bo=bp&&bp[0]&&s(bp[0]);bq&&bp.length;){for(var bv in L.filter){if((bx=L.leftMatch[bv].exec(bq))!=null&&bx[2]){var br=L.filter[bv],bu,Y;Y=bx[1];bt=false;bx.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bw===aa){aa=[]}if(L.preFilter[bv]){if(bx=L.preFilter[bv](bx,bw,bb,aa,ab,bo)){if(bx===true){continue}}else{bt=bu=true}}if(bx){for(var ba=0;(Y=bw[ba])!=null;ba++){if(Y){bu=br(Y,bx,ba,bw);var bs=ab^!!bu;if(bb&&bu!=null){if(bs){bt=true}else{bw[ba]=false}}else{if(bs){aa.push(Y);bt=true}}}}}if(bu!==U){bb||(bw=aa);bq=bq.replace(L.match[bv],"");if(!bt){return[]}break}}}}if(bq===Z){if(bt==null){N.error(bq)}else{break}}Z=bq}return bw};N.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var L=N.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(Y){return Y.getAttribute("href")}},relative:{"+":function(ab,aa){var Z=typeof aa==="string",Y=Z&&!/\W/.test(aa);Z=Z&&!Y;if(Y){aa=aa.toLowerCase()}Y=0;for(var ba=ab.length,bb;Y<ba;Y++){if(bb=ab[Y]){for(;(bb=bb.previousSibling)&&bb.nodeType!==1;){}ab[Y]=Z||bb&&bb.nodeName.toLowerCase()===aa?bb||false:bb===aa}}Z&&N.filter(aa,ab,true)},">":function(ab,aa){var Z=typeof aa==="string";if(Z&&!/\W/.test(aa)){aa=aa.toLowerCase();for(var Y=0,ba=ab.length;Y<ba;Y++){var bb=ab[Y];if(bb){Z=bb.parentNode;ab[Y]=Z.nodeName.toLowerCase()===aa?Z:false}}}else{Y=0;for(ba=ab.length;Y<ba;Y++){if(bb=ab[Y]){ab[Y]=Z?bb.parentNode:bb.parentNode===aa}}Z&&N.filter(aa,ab,true)}},"":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("parentNode",aa,Y,ab,bb,Z)},"~":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("previousSibling",aa,Y,ab,bb,Z)}},find:{ID:function(aa,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y){return(aa=Z.getElementById(aa[1]))?[aa]:[]}},NAME:function(ab,aa){if(typeof aa.getElementsByName!=="undefined"){var Z=[];aa=aa.getElementsByName(ab[1]);for(var Y=0,ba=aa.length;Y<ba;Y++){aa[Y].getAttribute("name")===ab[1]&&Z.push(aa[Y])}return Z.length===0?null:Z}},TAG:function(Z,Y){return Y.getElementsByTagName(Z[1])}},preFilter:{CLASS:function(ba,ab,Z,Y,bb,bo){ba=" "+ba[1].replace(/\\/g,"")+" ";if(bo){return ba}bo=0;for(var aa;(aa=ab[bo])!=null;bo++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)}else{if(Z){ab[bo]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Z){if(Z[1]==="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2]==="even"&&"2n"||Z[2]==="odd"&&"2n+1"||!/\D/.test(Z[2])&&"0n+"+Z[2]||Z[2]);Z[2]=Y[1]+(Y[2]||1)-0;Z[3]=Y[3]-0}Z[0]=R++;return Z},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");if(!bb&&L.attrMap[aa]){ab[1]=L.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((Q.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=N(ab[3],null,null,aa)}else{ab=N.filter(ab[3],aa,Z,true^ba);Z||Y.push.apply(Y,ab);return false}}else{if(L.match.POS.test(ab[0])||L.match.CHILD.test(ab[0])){return true}}return ab},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!N(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(ab,aa,Z,Y){return aa===Y.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0},nth:function(aa,Z,Y){return Y[3]-0===Z},eq:function(aa,Z,Y){return Y[3]-0===Z}},filter:{PSEUDO:function(ab,aa,Z,Y){var ba=aa[1],bb=L.filters[ba];if(bb){return bb(ab,Z,aa,Y)}else{if(ba==="contains"){return(ab.textContent||ab.innerText||W([ab])||"").indexOf(aa[3])>=0}else{if(ba==="not"){aa=aa[3];Z=0;for(Y=aa.length;Z<Y;Z++){if(aa[Z]===ab){return false}}return true}else{N.error("Syntax error, unrecognized expression: "+ba)}}}},CHILD:function(ba,ab){var Z=ab[1],Y=ba;switch(Z){case"only":case"first":for(;Y=Y.previousSibling;){if(Y.nodeType===1){return false}}if(Z==="first"){return true}Y=ba;case"last":for(;Y=Y.nextSibling;){if(Y.nodeType===1){return false}}return true;case"nth":Z=ab[2];var bb=ab[3];if(Z===1&&bb===0){return true}ab=ab[0];var bo=ba.parentNode;if(bo&&(bo.sizcache!==ab||!ba.nodeIndex)){var aa=0;for(Y=bo.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa}}bo.sizcache=ab}ba=ba.nodeIndex-bb;return Z===0?ba===0:ba%Z===0&&ba/Z>=0}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y},TAG:function(Z,Y){return Y==="*"&&Z.nodeType===1||Z.nodeName.toLowerCase()===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ab,aa){var Z=aa[1];ab=L.attrHandle[Z]?L.attrHandle[Z](ab):ab[Z]!=null?ab[Z]:ab.getAttribute(Z);Z=ab+"";var Y=aa[2];aa=aa[4];return ab==null?Y==="!=":Y==="="?Z===aa:Y==="*="?Z.indexOf(aa)>=0:Y==="~="?(" "+Z+" ").indexOf(aa)>=0:!aa?Z&&ab!==false:Y==="!="?Z!==aa:Y==="^="?Z.indexOf(aa)===0:Y==="$="?Z.substr(Z.length-aa.length)===aa:Y==="|="?Z===aa||Z.substr(0,aa.length+1)===aa+"-":false},POS:function(ab,aa,Z,Y){var ba=L.setFilters[aa[2]];if(ba){return ba(ab,Z,aa,Y)}}}},G=L.match.POS;for(var w in L.match){L.match[w]=new RegExp(L.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);L.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+L.match[w].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)}))}var c=function(Z,Y){Z=Array.prototype.slice.call(Z,0);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(ac.documentElement.childNodes,0)}catch(F){c=function(ab,aa){aa=aa||[];if(O.call(ab)==="[object Array]"){Array.prototype.push.apply(aa,ab)}else{if(typeof ab.length==="number"){for(var Z=0,Y=ab.length;Z<Y;Z++){aa.push(ab[Z])}}else{for(Z=0;ab[Z];Z++){aa.push(ab[Z])}}}return aa}}var J;if(ac.documentElement.compareDocumentPosition){J=function(Z,Y){if(!Z.compareDocumentPosition||!Y.compareDocumentPosition){if(Z==Y){P=true}return Z.compareDocumentPosition?-1:1}Z=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;if(Z===0){P=true}return Z}}else{if("sourceIndex" in ac.documentElement){J=function(Z,Y){if(!Z.sourceIndex||!Y.sourceIndex){if(Z==Y){P=true}return Z.sourceIndex?-1:1}Z=Z.sourceIndex-Y.sourceIndex;if(Z===0){P=true}return Z}}else{if(ac.createRange){J=function(ab,aa){if(!ab.ownerDocument||!aa.ownerDocument){if(ab==aa){P=true}return ab.ownerDocument?-1:1}var Z=ab.ownerDocument.createRange(),Y=aa.ownerDocument.createRange();Z.setStart(ab,0);Z.setEnd(ab,0);Y.setStart(aa,0);Y.setEnd(aa,0);ab=Z.compareBoundaryPoints(Range.START_TO_END,Y);if(ab===0){P=true}return ab}}}}(function(){var aa=ac.createElement("div"),Z="script"+(new Date).getTime();aa.innerHTML="<a name='"+Z+"'/>";var Y=ac.documentElement;Y.insertBefore(aa,Y.firstChild);if(ac.getElementById(Z)){L.find.ID=function(ab,ba,bb){if(typeof ba.getElementById!=="undefined"&&!bb){return(ba=ba.getElementById(ab[1]))?ba.id===ab[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===ab[1]?[ba]:U:[]}};L.filter.ID=function(ab,ba){var bb=typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id");return ab.nodeType===1&&bb&&bb.nodeValue===ba}}Y.removeChild(aa);Y=aa=null})();(function(){var Y=ac.createElement("div");Y.appendChild(ac.createComment(""));if(Y.getElementsByTagName("*").length>0){L.find.TAG=function(ab,aa){aa=aa.getElementsByTagName(ab[1]);if(ab[1]==="*"){ab=[];for(var Z=0;aa[Z];Z++){aa[Z].nodeType===1&&ab.push(aa[Z])}aa=ab}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){L.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();ac.querySelectorAll&&function(){var aa=N,Z=ac.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){N=function(ab,bo,bp,ba){bo=bo||ac;if(!ba&&bo.nodeType===9&&!s(bo)){try{return c(bo.querySelectorAll(ab),bp)}catch(bb){}}return aa(ab,bo,bp,ba)};for(var Y in aa){N[Y]=aa[Y]}Z=null}}();(function(){var Y=ac.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){L.order.splice(1,0,"CLASS");L.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])}};Y=null}}})();var A=ac.compareDocumentPosition?function(Z,Y){return !!(Z.compareDocumentPosition(Y)&16)}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)},s=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},X=function(ab,aa){var Z=[],Y="",ba;for(aa=aa.nodeType?[aa]:aa;ba=L.match.PSEUDO.exec(ab);){Y+=ba[0];ab=ab.replace(L.match.PSEUDO,"")}ab=L.relative[ab]?ab+"*":ab;ba=0;for(var bb=aa.length;ba<bb;ba++){N(ab,aa[ba],Z)}return N.filter(Y,Z)};ak.find=N;ak.expr=N.selectors;ak.expr[":"]=ak.expr.filters;ak.unique=N.uniqueSort;ak.text=W;ak.isXMLDoc=s;ak.contains=A})();var f=/Until$/,be=/^(?:parents|prevUntil|prevAll)/,aZ=/,/;ax=Array.prototype.slice;var aO=function(s,c,A){if(ak.isFunction(c)){return ak.grep(s,function(G,F){return !!c.call(G,F,G)===A})}else{if(c.nodeType){return ak.grep(s,function(F){return F===c===A})}else{if(typeof c==="string"){var w=ak.grep(s,function(F){return F.nodeType===1});if(aW.test(c)){return ak.filter(c,w,!A)}else{c=ak.filter(c,w)}}}}return ak.grep(s,function(F){return ak.inArray(F,c)>=0===A})};ak.fn.extend({find:function(s){for(var c=this.pushStack("","find",s),J=0,F=0,G=this.length;F<G;F++){J=c.length;ak.find(s,this[F],c);if(F>0){for(var w=J;w<c.length;w++){for(var A=0;A<J;A++){if(c[A]===c[w]){c.splice(w--,1);break}}}}}return c},has:function(s){var c=ak(s);return this.filter(function(){for(var A=0,w=c.length;A<w;A++){if(ak.contains(this,c[A])){return true}}})},not:function(c){return this.pushStack(aO(this,c,false),"not",c)},filter:function(c){return this.pushStack(aO(this,c,true),"filter",c)},is:function(c){return !!c&&ak.filter(c,this).length>0},closest:function(L,K){if(ak.isArray(L)){var J=[],F=this[0],G,w={},A;if(F&&L.length){G=0;for(var c=L.length;G<c;G++){A=L[G];w[A]||(w[A]=ak.expr.match.POS.test(A)?ak(A,K||this.context):A)}for(;F&&F.ownerDocument&&F!==K;){for(A in w){G=w[A];if(G.jquery?G.index(F)>-1:ak(F).is(G)){J.push({selector:A,elem:F});delete w[A]}}F=F.parentNode}}return J}var s=ak.expr.match.POS.test(L)?ak(L,K||this.context):null;return this.map(function(O,N){for(;N&&N.ownerDocument&&N!==K;){if(s?s.index(N)>-1:ak(N).is(L)){return N}N=N.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ak.inArray(this[0],c?ak(c):this.parent().children())}return ak.inArray(c.jquery?c[0]:c,this)},add:function(s,c){s=typeof s==="string"?ak(s,c||this.context):ak.makeArray(s);c=ak.merge(this.get(),s);return this.pushStack(n(s[0])||n(c[0])?c:ak.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ak.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ak.dir(c,"parentNode")},parentsUntil:function(s,c,w){return ak.dir(s,"parentNode",w)},next:function(c){return ak.nth(c,2,"nextSibling")},prev:function(c){return ak.nth(c,2,"previousSibling")},nextAll:function(c){return ak.dir(c,"nextSibling")},prevAll:function(c){return ak.dir(c,"previousSibling")},nextUntil:function(s,c,w){return ak.dir(s,"nextSibling",w)},prevUntil:function(s,c,w){return ak.dir(s,"previousSibling",w)},siblings:function(c){return ak.sibling(c.parentNode.firstChild,c)},children:function(c){return ak.sibling(c.firstChild)},contents:function(c){return ak.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ak.makeArray(c.childNodes)}},function(s,c){ak.fn[s]=function(F,w){var A=ak.map(this,c,F);f.test(s)||(w=F);if(w&&typeof w==="string"){A=ak.filter(w,A)}A=this.length>1?ak.unique(A):A;if((this.length>1||aZ.test(w))&&be.test(s)){A=A.reverse()}return this.pushStack(A,s,ax.call(arguments).join(","))}});ak.extend({filter:function(s,c,w){if(w){s=":not("+s+")"}return ak.find.matches(s,c)},dir:function(s,c,A){var w=[];for(s=s[c];s&&s.nodeType!==9&&(A===U||s.nodeType!==1||!ak(s).is(A));){s.nodeType===1&&w.push(s);s=s[c]}return w},nth:function(s,c,A){c=c||1;for(var w=0;s;s=s[A]){if(s.nodeType===1&&++w===c){break}}return s},sibling:function(s,c){for(var w=[];s;s=s.nextSibling){s.nodeType===1&&s!==c&&w.push(s)}return w}});var al=/ jQuery\d+="(?:\d+|null)"/g,av=/^\s+/,E=/(<([\w:]+)[^>]*?)\/>/g,aG=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,o=/<([\w:]+)/,af=/<tbody/i,y=/<|&#?\w+;/,aS=/<script|<object|<embed|<option|<style/i,an=/checked\s*(?:[^=]|=\s*.checked.)/i,bn=function(s,c,w){return aG.test(w)?s:c+"></"+w+">"},aM={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,"",""]};aM.optgroup=aM.option;aM.tbody=aM.tfoot=aM.colgroup=aM.caption=aM.thead;aM.th=aM.td;if(!ak.support.htmlSerialize){aM._default=[1,"div<div>","</div>"]}ak.fn.extend({text:function(c){if(ak.isFunction(c)){return this.each(function(s){var w=ak(this);w.text(c.call(this,s,w.text()))})}if(typeof c!=="object"&&c!==U){return this.empty().append((this[0]&&this[0].ownerDocument||ac).createTextNode(c))}return ak.text(this)},wrapAll:function(s){if(ak.isFunction(s)){return this.each(function(w){ak(this).wrapAll(s.call(this,w))})}if(this[0]){var c=ak(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(ak.isFunction(c)){return this.each(function(s){ak(this).wrapInner(c.call(this,s))})}return this.each(function(){var s=ak(this),w=s.contents();w.length?w.wrapAll(c):s.append(c)})},wrap:function(c){return this.each(function(){ak(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ak.nodeName(this,"body")||ak(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=ak(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ak(arguments[0]).toArray());return c}}},remove:function(s,c){for(var A=0,w;(w=this[A])!=null;A++){if(!s||ak.filter(s,[w]).length){if(!c&&w.nodeType===1){ak.cleanData(w.getElementsByTagName("*"));ak.cleanData([w])}w.parentNode&&w.parentNode.removeChild(w)}}return this},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&ak.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(s){var c=this.map(function(){if(!ak.support.noCloneEvent&&!ak.isXMLDoc(this)){var A=this.outerHTML,w=this.ownerDocument;if(!A){A=w.createElement("div");A.appendChild(this.cloneNode(true));A=A.innerHTML}return ak.clean([A.replace(al,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(av,"")],w)[0]}else{return this.cloneNode(true)}});if(s===true){bm(this,c);bm(this.find("*"),c.find("*"))}return c},html:function(s){if(s===U){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(al,""):null}else{if(typeof s==="string"&&!aS.test(s)&&(ak.support.leadingWhitespace||!av.test(s))&&!aM[(o.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(E,bn);try{for(var c=0,A=this.length;c<A;c++){if(this[c].nodeType===1){ak.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=s}}}catch(w){this.empty().append(s)}}else{ak.isFunction(s)?this.each(function(J){var F=ak(this),G=F.html();F.empty().append(function(){return s.call(this,J,G)})}):this.empty().append(s)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ak.isFunction(c)){return this.each(function(s){var A=ak(this),w=A.html();A.replaceWith(c.call(this,s,w))})}if(typeof c!=="string"){c=ak(c).detach()}return this.each(function(){var s=this.nextSibling,w=this.parentNode;ak(this).remove();s?ak(s).before(c):ak(w).append(c)})}else{return this.pushStack(ak(ak.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(O,N,L){function J(P){return ak.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var K,F,G=O[0],s=[],A;if(!ak.support.checkClone&&arguments.length===3&&typeof G==="string"&&an.test(G)){return this.each(function(){ak(this).domManip(O,N,L,true)})}if(ak.isFunction(G)){return this.each(function(P){var Q=ak(this);O[0]=G.call(this,P,N?Q.html():U);Q.domManip(O,N,L)})}if(this[0]){K=G&&G.parentNode;K=ak.support.parentNode&&K&&K.nodeType===11&&K.childNodes.length===this.length?{fragment:K}:a6(O,this,s);A=K.fragment;if(F=A.childNodes.length===1?(A=A.firstChild):A.firstChild){N=N&&ak.nodeName(F,"tr");for(var w=0,c=this.length;w<c;w++){L.call(N?J(this[w],F):this[w],w>0||K.cacheable||this.length>1?A.cloneNode(true):A)}}s.length&&ak.each(s,M)}return this}});ak.fragments={};ak.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ak.fn[s]=function(J){var F=[];J=ak(J);var G=this.length===1&&this[0].parentNode;if(G&&G.nodeType===11&&G.childNodes.length===1&&J.length===1){J[c](this[0]);return this}else{G=0;for(var w=J.length;G<w;G++){var A=(G>0?this.clone(true):this).get();ak.fn[c].apply(ak(J[G]),A);F=F.concat(A)}return this.pushStack(F,s,J.selector)}}});ak.extend({clean:function(O,N,L,J){N=N||ac;if(typeof N.createElement==="undefined"){N=N.ownerDocument||N[0]&&N[0].ownerDocument||ac}for(var K=[],F=0,G;(G=O[F])!=null;F++){if(typeof G==="number"){G+=""}if(G){if(typeof G==="string"&&!y.test(G)){G=N.createTextNode(G)}else{if(typeof G==="string"){G=G.replace(E,bn);var s=(o.exec(G)||["",""])[1].toLowerCase(),A=aM[s]||aM._default,w=A[0],c=N.createElement("div");for(c.innerHTML=A[1]+G+A[2];w--;){c=c.lastChild}if(!ak.support.tbody){w=af.test(G);s=s==="table"&&!w?c.firstChild&&c.firstChild.childNodes:A[1]==="<table>"&&!w?c.childNodes:[];for(A=s.length-1;A>=0;--A){ak.nodeName(s[A],"tbody")&&!s[A].childNodes.length&&s[A].parentNode.removeChild(s[A])}}!ak.support.leadingWhitespace&&av.test(G)&&c.insertBefore(N.createTextNode(av.exec(G)[0]),c.firstChild);G=c.childNodes}}if(G.nodeType){K.push(G)}else{K=ak.merge(K,G)}}}if(L){for(F=0;K[F];F++){if(J&&ak.nodeName(K[F],"script")&&(!K[F].type||K[F].type.toLowerCase()==="text/javascript")){J.push(K[F].parentNode?K[F].parentNode.removeChild(K[F]):K[F])}else{K[F].nodeType===1&&K.splice.apply(K,[F+1,0].concat(ak.makeArray(K[F].getElementsByTagName("script"))));L.appendChild(K[F])}}}return K},cleanData:function(L){for(var K,J,F=ak.cache,G=ak.event.special,w=ak.support.deleteExpando,A=0,c;(c=L[A])!=null;A++){if(J=c[ak.expando]){K=F[J];if(K.events){for(var s in K.events){G[s]?ak.event.remove(c,s):aJ(c,s,K.handle)}}if(w){delete c[ak.expando]}else{c.removeAttribute&&c.removeAttribute(ak.expando)}delete F[J]}}}});var h=/z-?index|font-?weight|opacity|zoom|line-?height/i,a7=/alpha\([^)]*\)/,aT=/opacity=([^)]*)/,aH=/float/i,ag=/-([a-z])/ig,bi=/([A-Z])/g,a2=/^-?\d+(?:px)?$/i,aL=/^-?\d/,ai={position:"absolute",visibility:"hidden",display:"block"},C=["Left","Right"],m=["Top","Bottom"],bl=ac.defaultView&&ac.defaultView.getComputedStyle,ao=ak.support.cssFloat?"cssFloat":"styleFloat",z=function(s,c){return c.toUpperCase()};ak.fn.css=function(s,c){return at(this,s,c,true,function(F,w,A){if(A===U){return ak.curCSS(F,w)}if(typeof A==="number"&&!h.test(w)){A+="px"}ak.style(F,w,A)})};ak.extend({style:function(s,c,F){if(!s||s.nodeType===3||s.nodeType===8){return U}if((c==="width"||c==="height")&&parseFloat(F)<0){F=U}var w=s.style||s,A=F!==U;if(!ak.support.opacity&&c==="opacity"){if(A){w.zoom=1;c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";s=w.filter||ak.curCSS(s,"filter")||"";w.filter=a7.test(s)?s.replace(a7,c):c}return w.filter&&w.filter.indexOf("opacity=")>=0?parseFloat(aT.exec(w.filter)[1])/100+"":""}if(aH.test(c)){c=ao}c=c.replace(ag,z);if(A){w[c]=F}return w[c]},css:function(s,c,J,F){if(c==="width"||c==="height"){var G,w=c==="width"?C:m;function A(){G=c==="width"?s.offsetWidth:s.offsetHeight;F!=="border"&&ak.each(w,function(){F||(G-=parseFloat(ak.curCSS(s,"padding"+this,true))||0);if(F==="margin"){G+=parseFloat(ak.curCSS(s,"margin"+this,true))||0}else{G-=parseFloat(ak.curCSS(s,"border"+this+"Width",true))||0}})}s.offsetWidth!==0?A():ak.swap(s,ai,A);return Math.max(0,Math.round(G))}return ak.curCSS(s,c,J)},curCSS:function(s,c,G){var A,F=s.style;if(!ak.support.opacity&&c==="opacity"&&s.currentStyle){A=aT.test(s.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return A===""?"1":A}if(aH.test(c)){c=ao}if(!G&&F&&F[c]){A=F[c]}else{if(bl){if(aH.test(c)){c="float"}c=c.replace(bi,"-$1").toLowerCase();F=s.ownerDocument.defaultView;if(!F){return null}if(s=F.getComputedStyle(s,null)){A=s.getPropertyValue(c)}if(c==="opacity"&&A===""){A="1"}}else{if(s.currentStyle){G=c.replace(ag,z);A=s.currentStyle[c]||s.currentStyle[G];if(!a2.test(A)&&aL.test(A)){c=F.left;var w=s.runtimeStyle.left;s.runtimeStyle.left=s.currentStyle.left;F.left=G==="fontSize"?"1em":A||0;A=F.pixelLeft+"px";F.left=c;s.runtimeStyle.left=w}}}}return A},swap:function(s,c,F){var w={};for(var A in c){w[A]=s.style[A];s.style[A]=c[A]}F.call(s);for(A in c){s.style[A]=w[A]}}});if(ak.expr&&ak.expr.filters){ak.expr.filters.hidden=function(s){var c=s.offsetWidth,A=s.offsetHeight,w=s.nodeName.toLowerCase()==="tr";return c===0&&A===0&&!w?true:c>0&&A>0&&!w?false:ak.curCSS(s,"display")==="none"};ak.expr.filters.visible=function(c){return !ak.expr.filters.hidden(c)}}var a5=aI(),aQ=/<script(.|\s)*?\/script>/gi,am=/select|textarea/i,H=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aD=/=\?(&|$)/,k=/\?/,p=/(\?|&)_=.*?(&|$)/,a=/^(\w+:)?\/\/([^\/?#]+)/,a8=/%20/g,aU=ak.fn.load;ak.fn.extend({load:function(s,c,G){if(typeof s!=="string"){return aU.call(this,s)}else{if(!this.length){return this}}var A=s.indexOf(" ");if(A>=0){var F=s.slice(A,s.length);s=s.slice(0,A)}A="GET";if(c){if(ak.isFunction(c)){G=c;c=null}else{if(typeof c==="object"){c=ak.param(c,ak.ajaxSettings.traditional);A="POST"}}}var w=this;ak.ajax({url:s,type:A,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){w.html(F?ak("<div />").append(J.responseText.replace(aQ,"")).find(F):J.responseText)}G&&w.each(G,[J.responseText,K,J])}});return this},serialize:function(){return ak.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ak.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||am.test(this.nodeName)||H.test(this.type))}).map(function(s,c){s=ak(this).val();return s==null?null:ak.isArray(s)?ak.map(s,function(w){return{name:c.name,value:w}}):{name:c.name,value:s}}).get()}});ak.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ak.fn[c]=function(w){return this.bind(c,w)}});ak.extend({get:function(s,c,A,w){if(ak.isFunction(c)){w=w||A;A=c;c=null}return ak.ajax({type:"GET",url:s,data:c,success:A,dataType:w})},getScript:function(s,c){return ak.get(s,null,c,"script")},getJSON:function(s,c,w){return ak.get(s,c,w,"json")},post:function(s,c,A,w){if(ak.isFunction(c)){w=w||A;A=c;c={}}return ak.ajax({type:"POST",url:s,data:c,success:A,dataType:w})},ajaxSetup:function(c){ak.extend(ak.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aR.XMLHttpRequest&&(aR.location.protocol!=="file:"||!aR.ActiveXObject)?function(){return new aR.XMLHttpRequest}:function(){try{return new aR.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(aa){function Z(){X.success&&X.success.call(P,K,R,s);X.global&&W("ajaxSuccess",[s,X])}function Y(){X.complete&&X.complete.call(P,s,R);X.global&&W("ajaxComplete",[s,X]);X.global&&!--ak.active&&ak.event.trigger("ajaxStop")}function W(ba,bb){(X.context?ak(X.context):ak.event).trigger(ba,bb)}var X=ak.extend(true,{},ak.ajaxSettings,aa),Q,R,K,P=aa&&aa.context||X,L=X.type.toUpperCase();if(X.data&&X.processData&&typeof X.data!=="string"){X.data=ak.param(X.data,X.traditional)}if(X.dataType==="jsonp"){if(L==="GET"){aD.test(X.url)||(X.url+=(k.test(X.url)?"&":"?")+(X.jsonp||"callback")+"=?")}else{if(!X.data||!aD.test(X.data)){X.data=(X.data?X.data+"&":"")+(X.jsonp||"callback")+"=?"}}X.dataType="json"}if(X.dataType==="json"&&(X.data&&aD.test(X.data)||aD.test(X.url))){Q=X.jsonpCallback||"jsonp"+a5++;if(X.data){X.data=(X.data+"").replace(aD,"="+Q+"$1")}X.url=X.url.replace(aD,"="+Q+"$1");X.dataType="script";aR[Q]=aR[Q]||function(ba){K=ba;Z();Y();aR[Q]=U;try{delete aR[Q]}catch(bb){}c&&c.removeChild(F)}}if(X.dataType==="script"&&X.cache===null){X.cache=false}if(X.cache===false&&L==="GET"){var G=aI(),w=X.url.replace(p,"$1_="+G+"$2");X.url=w+(w===X.url?(k.test(X.url)?"&":"?")+"_="+G:"")}if(X.data&&L==="GET"){X.url+=(k.test(X.url)?"&":"?")+X.data}X.global&&!ak.active++&&ak.event.trigger("ajaxStart");G=(G=a.exec(X.url))&&(G[1]&&G[1]!==location.protocol||G[2]!==location.host);if(X.dataType==="script"&&L==="GET"&&G){var c=ac.getElementsByTagName("head")[0]||ac.documentElement,F=ac.createElement("script");F.src=X.url;if(X.scriptCharset){F.charset=X.scriptCharset}if(!Q){var J=false;F.onload=F.onreadystatechange=function(){if(!J&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){J=true;Z();Y();F.onload=F.onreadystatechange=null;c&&F.parentNode&&c.removeChild(F)}}}c.insertBefore(F,c.firstChild);return U}var A=false,s=X.xhr();if(s){X.username?s.open(L,X.url,X.async,X.username,X.password):s.open(L,X.url,X.async);try{if(X.data||aa&&aa.contentType){s.setRequestHeader("Content-Type",X.contentType)}if(X.ifModified){ak.lastModified[X.url]&&s.setRequestHeader("If-Modified-Since",ak.lastModified[X.url]);ak.etag[X.url]&&s.setRequestHeader("If-None-Match",ak.etag[X.url])}G||s.setRequestHeader("X-Requested-With","XMLHttpRequest");s.setRequestHeader("Accept",X.dataType&&X.accepts[X.dataType]?X.accepts[X.dataType]+", */*":X.accepts._default)}catch(ab){}if(X.beforeSend&&X.beforeSend.call(P,s,X)===false){X.global&&!--ak.active&&ak.event.trigger("ajaxStop");s.abort();return false}X.global&&W("ajaxSend",[s,X]);var V=s.onreadystatechange=function(bb){if(!s||s.readyState===0||bb==="abort"){A||Y();A=true;if(s){s.onreadystatechange=ak.noop}}else{if(!A&&s&&(s.readyState===4||bb==="timeout")){A=true;s.onreadystatechange=ak.noop;R=bb==="timeout"?"timeout":!ak.httpSuccess(s)?"error":X.ifModified&&ak.httpNotModified(s,X.url)?"notmodified":"success";var bo;if(R==="success"){try{K=ak.httpData(s,X.dataType,X)}catch(ba){R="parsererror";bo=ba}}if(R==="success"||R==="notmodified"){Q||Z()}else{ak.handleError(X,s,R,bo)}Y();bb==="timeout"&&s.abort();if(X.async){s=null}}}};try{var T=s.abort;s.abort=function(){s&&T.call(s);V("abort")}}catch(O){}X.async&&X.timeout>0&&setTimeout(function(){s&&!A&&V("timeout")},X.timeout);try{s.send(L==="POST"||L==="PUT"||L==="DELETE"?X.data:null)}catch(N){ak.handleError(X,s,null,N);Y()}X.async||V();return s}},handleError:function(s,c,A,w){if(s.error){s.error.call(s.context||s,c,A,w)}if(s.global){(s.context?ak(s.context):ak.event).trigger("ajaxError",[c,s,w])}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0}catch(c){}return false},httpNotModified:function(s,c){var A=s.getResponseHeader("Last-Modified"),w=s.getResponseHeader("Etag");if(A){ak.lastModified[c]=A}if(w){ak.etag[c]=w}return s.status===304||s.status===0},httpData:function(s,c,F){var w=s.getResponseHeader("content-type")||"",A=c==="xml"||!c&&w.indexOf("xml")>=0;s=A?s.responseXML:s.responseText;A&&s.documentElement.nodeName==="parsererror"&&ak.error("parsererror");if(F&&F.dataFilter){s=F.dataFilter(s,c)}if(typeof s==="string"){if(c==="json"||!c&&w.indexOf("json")>=0){s=ak.parseJSON(s)}else{if(c==="script"||!c&&w.indexOf("javascript")>=0){ak.globalEval(s)}}}return s},param:function(s,c){function G(J,K){if(ak.isArray(K)){ak.each(K,function(L,N){c||/\[\]$/.test(J)?A(J,N):G(J+"["+(typeof N==="object"||ak.isArray(N)?L:"")+"]",N)})}else{!c&&K!=null&&typeof K==="object"?ak.each(K,function(L,N){G(J+"["+L+"]",N)}):A(J,K)}}function A(J,K){K=ak.isFunction(K)?K():K;F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var F=[];if(c===U){c=ak.ajaxSettings.traditional}if(ak.isArray(s)||s.jquery){ak.each(s,function(){A(this.name,this.value)})}else{for(var w in s){G(w,s[w])}}return F.join("&").replace(a8,"+")}});var bj={},bf=/toggle|show|hide/,a0=/^([+-]=)?([\d+-.]+)(.*)$/,au,I=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ak.fn.extend({show:function(s,c){if(s||s===0){return this.animate(aF("show",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var F=ak.data(this[s],"olddisplay");this[s].style.display=F||"";if(ak.css(this[s],"display")==="none"){F=this[s].nodeName;var w;if(bj[F]){w=bj[F]}else{var A=ak("<"+F+" />").appendTo("body");w=A.css("display");if(w==="none"){w="block"}A.remove();bj[F]=w}ak.data(this[s],"olddisplay",w)}}s=0;for(c=this.length;s<c;s++){this[s].style.display=ak.data(this[s],"olddisplay")||""}return this}},hide:function(s,c){if(s||s===0){return this.animate(aF("hide",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var w=ak.data(this[s],"olddisplay");!w&&w!=="none"&&ak.data(this[s],"olddisplay",ak.css(this[s],"display"))}s=0;for(c=this.length;s<c;s++){this[s].style.display="none"}return this}},_toggle:ak.fn.toggle,toggle:function(s,c){var w=typeof s==="boolean";if(ak.isFunction(s)&&ak.isFunction(c)){this._toggle.apply(this,arguments)}else{s==null||w?this.each(function(){var A=w?s:ak(this).is(":hidden");ak(this)[A?"show":"hide"]()}):this.animate(aF("toggle",3),s,c)}return this},fadeTo:function(s,c,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},s,w)},animate:function(s,c,F,w){var A=ak.speed(c,F,w);if(ak.isEmptyObject(s)){return this.each(A.complete)}return this[A.queue===false?"each":"queue"](function(){var J=ak.extend({},A),K,L=this.nodeType===1&&ak(this).is(":hidden"),G=this;for(K in s){var N=K.replace(ag,z);if(K!==N){s[N]=s[K];delete s[K];K=N}if(s[K]==="hide"&&L||s[K]==="show"&&!L){return J.complete.call(this)}if((K==="height"||K==="width")&&this.style){J.display=ak.css(this,"display");J.overflow=this.style.overflow}if(ak.isArray(s[K])){(J.specialEasing=J.specialEasing||{})[K]=s[K][1];s[K]=s[K][0]}}if(J.overflow!=null){this.style.overflow="hidden"}J.curAnim=ak.extend({},s);ak.each(s,function(P,O){var T=new ak.fx(G,J,P);if(bf.test(O)){T[O==="toggle"?L?"show":"hide":O](s)}else{var R=a0.exec(O),V=T.cur(true)||0;if(R){O=parseFloat(R[2]);var Q=R[3]||"px";if(Q!=="px"){G.style[P]=(O||1)+Q;V=(O||1)/T.cur(true)*V;G.style[P]=V+Q}if(R[1]){O=(R[1]==="-="?-1:1)*O+V}T.custom(V,O,Q)}else{T.custom(V,O,"")}}});return true})},stop:function(s,c){var w=ak.timers;s&&this.queue([]);this.each(function(){for(var A=w.length-1;A>=0;A--){if(w[A].elem===this){c&&w[A](true);w.splice(A,1)}}});c||this.dequeue();return this}});ak.each({slideDown:aF("show",1),slideUp:aF("hide",1),slideToggle:aF("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ak.fn[s]=function(A,w){return this.animate(c,A,w)}});ak.extend({speed:function(s,c,A){var w=s&&typeof s==="object"?s:{complete:A||!A&&c||ak.isFunction(s)&&s,duration:s,easing:A&&c||c&&!ak.isFunction(c)&&c};w.duration=ak.fx.off?0:typeof w.duration==="number"?w.duration:ak.fx.speeds[w.duration]||ak.fx.speeds._default;w.old=w.complete;w.complete=function(){w.queue!==false&&ak(this).dequeue();ak.isFunction(w.old)&&w.old.call(this)};return w},easing:{linear:function(s,c,A,w){return A+w*s},swing:function(s,c,A,w){return(-Math.cos(s*Math.PI)/2+0.5)*w+A}},timers:[],fx:function(s,c,w){this.options=c;this.elem=s;this.prop=w;if(!c.orig){c.orig={}}}});ak.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ak.fx.step[this.prop]||ak.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(ak.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ak.curCSS(this.elem,this.prop))||0},custom:function(s,c,F){function w(G){return A.step(G)}this.startTime=aI();this.start=s;this.end=c;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var A=this;w.elem=this.elem;if(w()&&ak.timers.push(w)&&!au){au=setInterval(ak.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ak.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ak(this.elem).show()},hide:function(){this.options.orig[this.prop]=ak.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(s){var c=aI(),F=true;if(s||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var w in this.options.curAnim){if(this.options.curAnim[w]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;s=ak.data(this.elem,"olddisplay");this.elem.style.display=s?s:this.options.display;if(ak.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ak(this.elem).hide();if(this.options.hide||this.options.show){for(var A in this.options.curAnim){ak.style(this.elem,A,this.options.orig[A])}}this.options.complete.call(this.elem)}return false}else{A=c-this.startTime;this.state=A/this.options.duration;s=this.options.easing||(ak.easing.swing?"swing":"linear");this.pos=ak.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||s](this.state,A,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ak.extend(ak.fx,{tick:function(){for(var s=ak.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1)}s.length||ak.fx.stop()},stop:function(){clearInterval(au);au=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ak.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(ak.expr&&ak.expr.filters){ak.expr.filters.animated=function(c){return ak.grep(ak.timers,function(s){return c===s.elem}).length}}ak.fn.offset="getBoundingClientRect" in ac.documentElement?function(s){var c=this[0];if(s){return this.each(function(F){ak.offset.setOffset(this,s,F)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ak.offset.bodyOffset(c)}var A=c.getBoundingClientRect(),w=c.ownerDocument;c=w.body;w=w.documentElement;return{top:A.top+(self.pageYOffset||ak.support.boxModel&&w.scrollTop||c.scrollTop)-(w.clientTop||c.clientTop||0),left:A.left+(self.pageXOffset||ak.support.boxModel&&w.scrollLeft||c.scrollLeft)-(w.clientLeft||c.clientLeft||0)}}:function(N){var L=this[0];if(N){return this.each(function(O){ak.offset.setOffset(this,N,O)})}if(!L||!L.ownerDocument){return null}if(L===L.ownerDocument.body){return ak.offset.bodyOffset(L)}ak.offset.initialize();var K=L.offsetParent,G=L,J=L.ownerDocument,A,F=J.documentElement,c=J.body;G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;for(var w=L.offsetTop,s=L.offsetLeft;(L=L.parentNode)&&L!==c&&L!==F;){if(ak.offset.supportsFixedPosition&&G.position==="fixed"){break}A=J?J.getComputedStyle(L,null):L.currentStyle;w-=L.scrollTop;s-=L.scrollLeft;if(L===K){w+=L.offsetTop;s+=L.offsetLeft;if(ak.offset.doesNotAddBorder&&!(ak.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=K;K=L.offsetParent}if(ak.offset.subtractsBorderForOverflowNotVisible&&A.overflow!=="visible"){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=A}if(G.position==="relative"||G.position==="static"){w+=c.offsetTop;s+=c.offsetLeft}if(ak.offset.supportsFixedPosition&&G.position==="fixed"){w+=Math.max(F.scrollTop,c.scrollTop);s+=Math.max(F.scrollLeft,c.scrollLeft)}return{top:w,left:s}};ak.offset={initialize:function(){var s=ac.body,c=ac.createElement("div"),G,A,F,w=parseFloat(ak.curCSS(s,"marginTop",true))||0;ak.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.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>";s.insertBefore(c,s.firstChild);G=c.firstChild;A=G.firstChild;F=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=A.offsetTop!==5;this.doesAddBorderForTableAndCells=F.offsetTop===5;A.style.position="fixed";A.style.top="20px";this.supportsFixedPosition=A.offsetTop===20||A.offsetTop===15;A.style.position=A.style.top="";G.style.overflow="hidden";G.style.position="relative";this.subtractsBorderForOverflowNotVisible=A.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==w;s.removeChild(c);ak.offset.initialize=ak.noop},bodyOffset:function(s){var c=s.offsetTop,w=s.offsetLeft;ak.offset.initialize();if(ak.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ak.curCSS(s,"marginTop",true))||0;w+=parseFloat(ak.curCSS(s,"marginLeft",true))||0}return{top:c,left:w}},setOffset:function(s,c,J){if(/static/.test(ak.curCSS(s,"position"))){s.style.position="relative"}var F=ak(s),G=F.offset(),w=parseInt(ak.curCSS(s,"top",true),10)||0,A=parseInt(ak.curCSS(s,"left",true),10)||0;if(ak.isFunction(c)){c=c.call(s,J,G)}J={top:c.top-G.top+w,left:c.left-G.left+A};"using" in c?c.using.call(s,J):F.css(J)}};ak.fn.extend({position:function(){if(!this[0]){return null}var s=this[0],c=this.offsetParent(),A=this.offset(),w=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();A.top-=parseFloat(ak.curCSS(s,"marginTop",true))||0;A.left-=parseFloat(ak.curCSS(s,"marginLeft",true))||0;w.top+=parseFloat(ak.curCSS(c[0],"borderTopWidth",true))||0;w.left+=parseFloat(ak.curCSS(c[0],"borderLeftWidth",true))||0;return{top:A.top-w.top,left:A.left-w.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||ac.body;c&&!/^body|html$/i.test(c.nodeName)&&ak.css(c,"position")==="static";){c=c.offsetParent}return c})}});ak.each(["Left","Top"],function(s,c){var w="scroll"+c;ak.fn[w]=function(F){var G=this[0],A;if(!G){return null}if(F!==U){return this.each(function(){if(A=q(this)){A.scrollTo(!s?F:ak(A).scrollLeft(),s?F:ak(A).scrollTop())}else{this[w]=F}})}else{return(A=q(G))?"pageXOffset" in A?A[s?"pageYOffset":"pageXOffset"]:ak.support.boxModel&&A.document.documentElement[w]||A.document.body[w]:G[w]}}});ak.each(["Height","Width"],function(s,c){var w=c.toLowerCase();ak.fn["inner"+c]=function(){return this[0]?ak.css(this[0],w,false,"padding"):null};ak.fn["outer"+c]=function(A){return this[0]?ak.css(this[0],w,false,A?"margin":"border"):null};ak.fn[w]=function(A){var F=this[0];if(!F){return A==null?null:this}if(ak.isFunction(A)){return this.each(function(G){var J=ak(this);J[w](A.call(this,G,J[w]()))})}return"scrollTo" in F&&F.document?F.document.compatMode==="CSS1Compat"&&F.document.documentElement["client"+c]||F.document.body["client"+c]:F.nodeType===9?Math.max(F.documentElement["client"+c],F.body["scroll"+c],F.documentElement["scroll"+c],F.body["offset"+c],F.documentElement["offset"+c]):A===U?ak.css(F,w):this.css(w,typeof A==="string"?A:A+"px")}});aR.jQuery=aR.$=ak})(window);var ddsmoothmenu={arrowimages:{down:["downarrowclass","/css/images/down2.gif",23],right:["rightarrowclass","/css/images/right.gif"]},transition:{overtime:300,outtime:300},shadow:{enable:false,offsetx:3,offsety:3},showhidedelay:{showdelay:100,hidedelay:200},detectwebkit:navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1,detectie6:document.all&&!window.XMLHttpRequest,getajaxmenu:function(c,b){var a=c("#"+b.contentsource[0]);a.html("Loading Menu...");c.ajax({url:b.contentsource[1],async:true,error:function(d){a.html("Error fetching content. Server Response: "+d.responseText)},success:function(d){a.html(d);ddsmoothmenu.buildmenu(c,b)}})},buildmenu:function(d,b){var e=ddsmoothmenu;var a=d("#"+b.mainmenuid+">ul");a.parent().get(0).className=b.classname||"ddsmoothmenu";var c=a.find("ul").parent();c.hover(function(f){d(this).children("a:eq(0)").addClass("selected")},function(f){d(this).children("a:eq(0)").removeClass("selected")});c.each(function(g){var k=d(this).css({zIndex:100-g});var f=d(this).find("ul:eq(0)").css({display:"block"});f.data("timers",{});this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:f.outerWidth(),subulh:f.outerHeight()};this.istopheader=k.parents("ul").length==1?true:false;f.css({top:this.istopheader&&b.orientation!="v"?this._dimensions.h+"px":0});k.children("a:eq(0)").css(this.istopheader?{paddingRight:e.arrowimages.down[2]}:{}).append('<img src="'+(this.istopheader&&b.orientation!="v"?e.arrowimages.down[1]:e.arrowimages.right[1])+'" class="'+(this.istopheader&&b.orientation!="v"?e.arrowimages.down[0]:e.arrowimages.right[0])+'" style="border:0;" />');if(e.shadow.enable){this._shadowoffset={x:(this.istopheader?f.offset().left+e.shadow.offsetx:this._dimensions.w),y:(this.istopheader?f.offset().top+e.shadow.offsety:k.position().top)};if(this.istopheader){$parentshadow=d(document.body)}else{var h=k.parents("li:eq(0)");$parentshadow=h.get(0).$shadow}this.$shadow=d('<div class="ddshadow'+(this.istopheader?" toplevelshadow":"")+'"></div>').prependTo($parentshadow).css({left:this._shadowoffset.x+"px",top:this._shadowoffset.y+"px"})}k.hover(function(m){var l=f;var n=k.get(0);clearTimeout(l.data("timers").hidetimer);l.data("timers").showtimer=setTimeout(function(){n._offsets={left:k.offset().left,top:k.offset().top};var q=n.istopheader&&b.orientation!="v"?0:(n._dimensions.w-20);q=(n._offsets.left+q+n._dimensions.subulw>d(window).width())?(n.istopheader&&b.orientation!="v"?-n._dimensions.subulw+n._dimensions.w:-n._dimensions.w):q;if(l.queue().length<=1){l.css({left:q+"px",width:n._dimensions.subulw+"px"}).animate({height:"show",opacity:"show"},ddsmoothmenu.transition.overtime);if(e.shadow.enable){var p=n.istopheader?l.offset().left+ddsmoothmenu.shadow.offsetx:q;var o=n.istopheader?l.offset().top+e.shadow.offsety:n._shadowoffset.y;if(!n.istopheader&&ddsmoothmenu.detectwebkit){n.$shadow.css({opacity:1})}n.$shadow.css({overflow:"",width:n._dimensions.subulw+"px",left:p+"px",top:o+"px"}).animate({height:n._dimensions.subulh+"px"},ddsmoothmenu.transition.overtime)}}},ddsmoothmenu.showhidedelay.showdelay)},function(m){var l=f;var n=k.get(0);if(!l.hasClass("level1Menu")){clearTimeout(l.data("timers").showtimer);l.data("timers").hidetimer=setTimeout(function(){l.animate({height:"hide",opacity:"hide"},ddsmoothmenu.transition.outtime);if(e.shadow.enable){if(ddsmoothmenu.detectwebkit){n.$shadow.children("div:eq(0)").css({opacity:0})}n.$shadow.css({overflow:"hidden"}).animate({height:0},ddsmoothmenu.transition.outtime)}},ddsmoothmenu.showhidedelay.hidedelay)}})});a.find("ul").css({display:"none",visibility:"visible"})},init:function(c){if(typeof c.customtheme=="object"&&c.customtheme.length==2){var b="#"+c.mainmenuid;var a=(c.orientation=="v")?b:b+", "+b;document.write('<style type="text/css">\n'+a+" ul li a {background:"+c.customtheme[0]+";}\n"+b+" ul li a:hover {background:"+c.customtheme[1]+";}\n</style>")}this.shadow.enable=(document.all&&!window.XMLHttpRequest)?false:this.shadow.enable;jQuery(document).ready(function(d){if(typeof c.contentsource=="object"){ddsmoothmenu.getajaxmenu(d,c)}else{ddsmoothmenu.buildmenu(d,c)}})}};(function(c){function d(g,h){var e=c(h);return e.length<2?e:g.parent().find(h)}function b(x,y){var z=this,u=x.add(z),w=x.children(),v=0,q=y.vertical;a||(a=z);if(w.length>1){w=c(y.items,x)}c.extend(z,{getConf:function(){return y},getIndex:function(){return v},getSize:function(){return z.getItems().size()},getNaviButtons:function(){return n.add(h)},getRoot:function(){return x},getItemWrap:function(){return w},getItems:function(){return w.children(y.item).not("."+y.clonedClass)},move:function(f,g){return z.seekTo(v+f,g)},next:function(f){return z.move(1,f)},prev:function(f){return z.move(-1,f)},begin:function(f){return z.seekTo(0,f)},end:function(f){return z.seekTo(z.getSize()-1,f)},focus:function(){return a=z},addItem:function(f){f=c(f);if(y.circular){c(".cloned:last").before(f);c(".cloned:first").replaceWith(f.clone().addClass(y.clonedClass))}else{w.append(f)}u.trigger("onAddItem",[f]);return z},seekTo:function(f,m,k){if(y.circular&&f===0&&v==-1&&m!==0){return z}if(!y.circular&&f<0||f>z.getSize()||f<-1){return z}var g=f;if(f.jquery){f=z.getItems().index(f)}else{g=z.getItems().eq(f)}var l=c.Event("onBeforeSeek");if(!k){u.trigger(l,[f,m]);if(l.isDefaultPrevented()||!g.length){return z}}g=q?{top:-g.position().top}:{left:-g.position().left};v=f;a=z;if(m===undefined){m=y.speed}w.animate(g,m,y.easing,k||function(){u.trigger("onSeek",[f])});return z}});c.each(["onBeforeSeek","onSeek","onAddItem"],function(f,g){c.isFunction(y[g])&&c(z).bind(g,y[g]);z[g]=function(k){c(z).bind(g,k);return z}});if(y.circular){var e=z.getItems().slice(-1).clone().prependTo(w),A=z.getItems().eq(1).clone().appendTo(w);e.add(A).addClass(y.clonedClass);z.onBeforeSeek(function(f,k,g){if(!f.isDefaultPrevented()){if(k==-1){z.seekTo(e,g,function(){z.end(0)});return f.preventDefault()}else{k==z.getSize()&&z.seekTo(A,g,function(){z.begin(0)})}}});z.seekTo(0,0)}var n=d(x,y.prev).click(function(){z.prev()}),h=d(x,y.next).click(function(){z.next()});!y.circular&&z.getSize()>1&&z.onBeforeSeek(function(f,g){setTimeout(function(){if(!f.isDefaultPrevented()){n.toggleClass(y.disabledClass,g<=0);h.toggleClass(y.disabledClass,g>=z.getSize()-1)}},1)});y.mousewheel&&c.fn.mousewheel&&x.mousewheel(function(f,g){if(y.mousewheel){z.move(g<0?1:-1,y.wheelSpeed||50);return false}});y.keyboard&&c(document).bind("keydown.scrollable",function(f){if(!(!y.keyboard||f.altKey||f.ctrlKey||c(f.target).is(":input"))){if(!(y.keyboard!="static"&&a!=z)){var g=f.keyCode;if(q&&(g==38||g==40)){z.move(g==38?-1:1);return f.preventDefault()}if(!q&&(g==37||g==39)){z.move(g==37?-1:1);return f.preventDefault()}}}});c(z).trigger("onBeforeSeek",[y.initialIndex])}c.tools=c.tools||{version:"1.2.3"};c.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,wheelSpeed:0}};var a;c.fn.scrollable=function(e){var g=this.data("scrollable");if(g){return g}e=c.extend({},c.tools.scrollable.conf,e);this.each(function(){g=new b(c(this),e);c(this).data("scrollable",g)});return e.api?g:this}})(jQuery);(function(b){function c(w,y){var x=this,s=w.add(x),h=b(window),r,v,q,u=b.tools.expose&&(y.mask||y.expose),l=Math.random().toString().slice(10);if(u){if(typeof u=="string"){u={color:u}}u.closeOnClick=u.closeOnEsc=false}var a=y.target||w.attr("rel");v=a?b(a):w;if(!v.length){throw"Could not find Overlay: "+a}w&&w.index(v)==-1&&w.click(function(f){x.load(f);return f.preventDefault()});b.extend(x,{load:function(o){if(x.isOpened()){return x}var m=e[y.effect];if(!m){throw'Overlay: cannot find effect : "'+y.effect+'"'}y.oneInstance&&b.each(d,function(){this.close(o)});o=o||b.Event();o.type="onBeforeLoad";s.trigger(o);if(o.isDefaultPrevented()){return x}q=true;u&&b(v).expose(u);var k=y.top,n=y.left,g=v.outerWidth({margin:true}),f=v.outerHeight({margin:true});if(typeof k=="string"){k=k=="center"?Math.max((h.height()-f)/2,0):parseInt(k,10)/100*h.height()}if(n=="center"){n=Math.max((h.width()-g)/2,0)}m[0].call(x,{top:k,left:n},function(){if(q){o.type="onLoad";s.trigger(o)}});u&&y.closeOnClick&&b.mask.getMask().one("click",x.close);y.closeOnClick&&b(document).bind("click."+l,function(p){b(p.target).parents(v).length||x.close(p)});y.closeOnEsc&&b(document).bind("keydown."+l,function(p){p.keyCode==27&&x.close(p)});return x},close:function(f){if(!x.isOpened()){return x}f=f||b.Event();f.type="onBeforeClose";s.trigger(f);if(!f.isDefaultPrevented()){q=false;e[y.effect][1].call(x,function(){f.type="onClose";s.trigger(f)});b(document).unbind("click."+l).unbind("keydown."+l);u&&b.mask.close();return x}},getOverlay:function(){return v},getTrigger:function(){return w},getClosers:function(){return r},isOpened:function(){return q},getConf:function(){return y}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(g,f){b.isFunction(y[f])&&b(x).bind(f,y[f]);x[f]=function(k){b(x).bind(f,k);return x}});r=v.find(y.close||".close");if(!r.length&&!y.close){r=b('<a class="close"></a>');v.prepend(r)}r.click(function(f){x.close(f)});y.load&&x.load()}b.tools=b.tools||{version:"1.2.4"};b.tools.overlay={addEffect:function(f,a,g){e[f]=[a,g]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!b.browser.msie||b.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var d=[],e={};b.tools.overlay.addEffect("default",function(g,a){var h=this.getConf(),f=b(window);if(!h.fixed){g.top+=f.scrollTop();g.left+=f.scrollLeft()}g.position=h.fixed?"fixed":"absolute";this.getOverlay().css(g).fadeIn(h.speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});b.fn.overlay=function(f){var a=this.data("overlay");if(a){return a}if(b.isFunction(f)){f={onBeforeLoad:f}}f=b.extend(true,{},b.tools.overlay.conf,f);this.each(function(){a=new c(b(this),f);d.push(a);b(this).data("overlay",a)});return f.api?a:this}})(jQuery);(function(r){function d(){if(r.browser.msie){var b=r(document).height(),c=r(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b-c<20?c:b]}return[r(document).width(),r(document).height()]}function n(b){if(b){return b.call(r.mask)}}r.tools=r.tools||{version:"1.2.4"};var a;a=r.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};var q,m,p,o,f;r.mask={load:function(c,e){if(p){return this}if(typeof c=="string"){c={color:c}}c=c||o;o=c=r.extend(r.extend({},a.conf),c);q=r("#"+c.maskId);if(!q.length){q=r("<div/>").attr("id",c.maskId);r("body").append(q)}var b=d();q.css({position:"absolute",top:0,left:0,width:b[0],height:b[1],display:"none",opacity:c.startOpacity,zIndex:c.zIndex});c.color&&q.css("backgroundColor",c.color);if(n(c.onBeforeLoad)===false){return this}c.closeOnEsc&&r(document).bind("keydown.mask",function(g){g.keyCode==27&&r.mask.close(g)});c.closeOnClick&&q.bind("click.mask",function(g){r.mask.close(g)});r(window).bind("resize.mask",function(){r.mask.fit()});if(e&&e.length){f=e.eq(0).css("zIndex");r.each(e,function(){var g=r(this);/relative|absolute|fixed/i.test(g.css("position"))||g.css("position","relative")});m=e.css({zIndex:Math.max(c.zIndex+1,f=="auto"?0:f)})}q.css({display:"block"}).fadeTo(c.loadSpeed,c.opacity,function(){r.mask.fit();n(c.onLoad);p="full"});p=true;return this},close:function(){if(p){if(n(o.onBeforeClose)===false){return this}q.fadeOut(o.closeSpeed,function(){n(o.onClose);m&&m.css({zIndex:f});p=false});r(document).unbind("keydown.mask");q.unbind("click.mask");r(window).unbind("resize.mask")}return this},fit:function(){if(p){var b=d();q.css({width:b[0],height:b[1]})}},getMask:function(){return q},isLoaded:function(b){return b?p=="full":p},getConf:function(){return o},getExposed:function(){return m}};r.fn.mask=function(b){r.mask.load(b);return this};r.fn.expose=function(b){r.mask.load(b,this);return this}})(jQuery);
/*
 * jQuery Tools v1.2.6 - The missing UI library for the Web
 * 
 * tooltip/tooltip.js
 * tooltip/tooltip.dynamic.js
 * tooltip/tooltip.slide.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
(function(f){f.tools=f.tools||{version:"v1.2.6"},f.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(b,l,k){e[b]=[l,k]}};var e={toggle:[function(l){var k=this.getConf(),n=this.getTip(),m=k.opacity;m<1&&n.css({opacity:m}),n.show(),l.call()},function(b){this.getTip().hide(),b.call()}],fade:[function(a){var d=this.getConf();!f.browser.msie||d.fadeIE?this.getTip().fadeTo(d.fadeInSpeed,d.opacity,a):(this.getTip().show(),a())},function(a){var d=this.getConf();!f.browser.msie||d.fadeIE?this.getTip().fadeOut(d.fadeOutSpeed,a):(this.getTip().hide(),a())}]};function h(a,q,p){var o=p.relative?a.position().top:a.offset().top,n=p.relative?a.position().left:a.offset().left,m=p.position[0];o-=q.outerHeight()-p.offset[0],n+=a.outerWidth()+p.offset[1],/iPad/i.test(navigator.userAgent)&&(o-=f(window).scrollTop());var l=q.outerHeight()+a.outerHeight();m=="center"&&(o+=l/2),m=="bottom"&&(o+=l),m=p.position[1];var k=q.outerWidth()+a.outerWidth();m=="center"&&(n-=k/2),m=="left"&&(n-=k);return{top:o,left:n}}function g(E,D){var C=this,B=E.add(C),A,z=0,y=0,x=E.attr("title"),w=E.attr("data-tooltip"),v=e[D.effect],u,s=E.is(":input"),c=s&&E.is(":checkbox, :radio, select, :button, :submit"),b=E.attr("type"),a=D.events[b]||D.events[s?c?"widget":"input":"def"];if(!v){throw'Nonexistent effect "'+D.effect+'"'}a=a.split(/,\s*/);if(a.length!=2){throw"Tooltip: bad events configuration for "+b}E.bind(a[0],function(d){clearTimeout(z),D.predelay?y=setTimeout(function(){C.show(d)},D.predelay):C.show(d)}).bind(a[1],function(d){clearTimeout(y),D.delay?z=setTimeout(function(){C.hide(d)},D.delay):C.hide(d)}),x&&D.cancelDefault&&(E.removeAttr("title"),E.data("title",x)),f.extend(C,{show:function(d){if(!A){w?A=f(w):D.tip?A=f(D.tip).eq(0):x?A=f(D.layout).addClass(D.tipClass).appendTo(document.body).hide().append(x):(A=E.next(),A.length||(A=E.parent().next()));if(!A.length){throw"Cannot find tooltip for "+E}}if(C.isShown()){return C}A.stop(!0,!0);var l=h(E,A,D);D.tip&&A.html(E.data("title")),d=f.Event(),d.type="onBeforeShow",B.trigger(d,[l]);if(d.isDefaultPrevented()){return C}l=h(E,A,D),A.css({position:"absolute",top:l.top,left:l.left}),u=!0,v[0].call(C,function(){d.type="onShow",u="full",B.trigger(d)});var k=D.events.tooltip.split(/,\s*/);A.data("__set")||(A.unbind(k[0]).bind(k[0],function(){clearTimeout(z),clearTimeout(y)}),k[1]&&!E.is("input:not(:checkbox, :radio), textarea")&&A.unbind(k[1]).bind(k[1],function(m){m.relatedTarget!=E[0]&&E.trigger(a[1].split(" ")[0])}),D.tip||A.data("__set",!0));return C},hide:function(d){if(!A||!C.isShown()){return C}d=f.Event(),d.type="onBeforeHide",B.trigger(d);if(!d.isDefaultPrevented()){u=!1,e[D.effect][1].call(C,function(){d.type="onHide",B.trigger(d)});return C}},isShown:function(d){return d?u=="full":u},getConf:function(){return D},getTip:function(){return A},getTrigger:function(){return E}}),f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(d,k){f.isFunction(D[k])&&f(C).bind(k,D[k]),C[k]=function(l){l&&f(C).bind(k,l);return C}})}f.fn.tooltip=function(a){var d=this.data("tooltip");if(d){return d}a=f.extend(!0,{},f.tools.tooltip.conf,a),typeof a.position=="string"&&(a.position=a.position.split(/,?\s/)),this.each(function(){d=new g(f(this),a),f(this).data("tooltip",d)});return a.api?d:this}})(jQuery);(function(f){var e=f.tools.tooltip;e.dynamic={conf:{classNames:"top right bottom left"}};function h(a){var m=f(window),l=m.width()+m.scrollLeft(),k=m.height()+m.scrollTop();return[a.offset().top<=m.scrollTop(),l<=a.offset().left+a.width(),k<=a.offset().top+a.height(),m.scrollLeft()>=a.offset().left]}function g(d){var c=d.length;while(c--){if(d[c]){return !1}}return !0}f.fn.dynamic=function(d){typeof d=="number"&&(d={speed:d}),d=f.extend({},e.dynamic.conf,d);var c=f.extend(!0,{},d),b=d.classNames.split(/\s/),a;this.each(function(){var k=f(this).tooltip().onBeforeShow(function(m,r){var q=this.getTip(),p=this.getConf();a||(a=[p.position[0],p.position[1],p.offset[0],p.offset[1],f.extend({},p)]),f.extend(p,a[4]),p.position=[a[0],a[1]],p.offset=[a[2],a[3]],q.css({visibility:"hidden",position:"absolute",top:r.top,left:r.left}).show();var o=f.extend(!0,{},c),n=h(q);if(!g(n)){n[2]&&(f.extend(p,o.top),p.position[0]="top",q.addClass(b[0])),n[3]&&(f.extend(p,o.right),p.position[1]="right",q.addClass(b[1])),n[0]&&(f.extend(p,o.bottom),p.position[0]="bottom",q.addClass(b[2])),n[1]&&(f.extend(p,o.left),p.position[1]="left",q.addClass(b[3]));if(n[0]||n[2]){p.offset[0]*=-1}if(n[1]||n[3]){p.offset[1]*=-1}}q.css({visibility:"visible"}).hide()});k.onBeforeShow(function(){var m=this.getConf(),l=this.getTip();setTimeout(function(){m.position=[a[0],a[1]],m.offset=[a[2],a[3]]},0)}),k.onHide(function(){var l=this.getTip();l.removeClass(d.classNames)}),ret=k});return d.api?ret:this}})(jQuery);(function(e){var d=e.tools.tooltip;e.extend(d.conf,{direction:"up",bounce:!1,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!e.browser.msie});var f={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};d.addEffect("slide",function(g){var c=this.getConf(),l=this.getTip(),k=c.slideFade?{opacity:c.opacity}:{},h=f[c.direction]||f.up;k[h[1]]=h[0]+"="+c.slideOffset,c.slideFade&&l.css({opacity:0}),l.show().animate(k,c.slideInSpeed,g)},function(a){var n=this.getConf(),m=n.slideOffset,l=n.slideFade?{opacity:0}:{},k=f[n.direction]||f.up,c=""+k[0];n.bounce&&(c=c=="+"?"-":"+"),l[k[1]]=c+"="+m,this.getTip().animate(l,n.slideOutSpeed,function(){e(this).hide(),a.call()})})})(jQuery);
/*
 * jQuery Form Plugin
 * version: 2.43 (12-MAR-2010)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.ajaxSubmit=function(u){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof u=="function"){u={success:u}}var e=b.trim(this.attr("action"));if(e){e=(e.match(/^([^#]+)/)||[])[1]}e=e||window.location.href||"";u=b.extend({url:e,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},u||{});var w={};this.trigger("form-pre-serialize",[this,u,w]);if(w.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(u.beforeSerialize&&u.beforeSerialize(this,u)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var o=this.formToArray(u.semantic);if(u.data){u.extraData=u.data;for(var f in u.data){if(u.data[f] instanceof Array){for(var g in u.data[f]){o.push({name:f,value:u.data[f][g]})}}else{o.push({name:f,value:u.data[f]})}}}if(u.beforeSubmit&&u.beforeSubmit(o,this,u)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[o,this,u,w]);if(w.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(o);if(u.type.toUpperCase()=="GET"){u.url+=(u.url.indexOf("?")>=0?"&":"?")+d;u.data=null}else{u.data=d}var v=this,m=[];if(u.resetForm){m.push(function(){v.resetForm()})}if(u.clearForm){m.push(function(){v.clearForm()})}if(!u.dataType&&u.target){var r=u.success||function(){};m.push(function(n){var k=u.replaceTarget?"replaceWith":"html";b(u.target)[k](n).each(r,arguments)})}else{if(u.success){m.push(u.success)}}u.success=function(x,n,y){for(var q=0,k=m.length;q<k;q++){m[q].apply(u,[x,n,y||v,v])}};var c=b("input:file",this).fieldValue();var s=false;for(var l=0;l<c.length;l++){if(c[l]){s=true}}var h=false;if((c.length&&u.iframe!==false)||u.iframe||s||h){if(u.closeKeepAlive){b.get(u.closeKeepAlive,p)}else{p()}}else{b.ajax(u)}this.trigger("form-submit-notify",[this,u]);return this;function p(){var z=v[0];if(b(":input[name=submit]",z).length){alert('Error: Form elements must not be named "submit".');return}var x=b.extend({},b.ajaxSettings,u);var K=b.extend(true,{},b.extend(true,{},b.ajaxSettings),x);var y="jqFormIO"+(new Date().getTime());var G=b('<iframe id="'+y+'" name="'+y+'" src="'+x.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />');var I=G[0];G.css({position:"absolute",top:"-1000px",left:"-1000px"});var J={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;G.attr("src",x.iframeSrc)}};var H=x.global;if(H&&!b.active++){b.event.trigger("ajaxStart")}if(H){b.event.trigger("ajaxSend",[J,x])}if(K.beforeSend&&K.beforeSend(J,K)===false){K.global&&b.active--;return}if(J.aborted){return}var q=false;var D=0;var k=z.clk;if(k){var B=k.name;if(B&&!k.disabled){x.extraData=x.extraData||{};x.extraData[B]=k.value;if(k.type=="image"){x.extraData[B+".x"]=z.clk_x;x.extraData[B+".y"]=z.clk_y}}}function A(){var N=v.attr("target"),L=v.attr("action");z.setAttribute("target",y);if(z.getAttribute("method")!="POST"){z.setAttribute("method","POST")}if(z.getAttribute("action")!=x.url){z.setAttribute("action",x.url)}if(!x.skipEncodingOverride){v.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(x.timeout){setTimeout(function(){D=true;E()},x.timeout)}var M=[];try{if(x.extraData){for(var O in x.extraData){M.push(b('<input type="hidden" name="'+O+'" value="'+x.extraData[O]+'" />').appendTo(z)[0])}}G.appendTo("body");G.data("form-plugin-onload",E);z.submit()}finally{z.setAttribute("action",L);N?z.setAttribute("target",N):v.removeAttr("target");b(M).remove()}}if(x.forceSync){A()}else{setTimeout(A,10)}var C=100;function E(){if(q){return}var L=true;try{if(D){throw"timeout"}var M,P;P=I.contentWindow?I.contentWindow.document:I.contentDocument?I.contentDocument:I.document;var Q=x.dataType=="xml"||P.XMLDocument||b.isXMLDoc(P);a("isXml="+Q);if(!Q&&(P.body==null||P.body.innerHTML=="")){if(--C){a("requeing onLoad callback, DOM not available");setTimeout(E,250);return}a("Could not access iframe DOM after 100 tries.");return}a("response detected");q=true;J.responseText=P.body?P.body.innerHTML:null;J.responseXML=P.XMLDocument?P.XMLDocument:P;J.getResponseHeader=function(S){var R={"content-type":x.dataType};return R[S]};if(x.dataType=="json"||x.dataType=="script"){var n=P.getElementsByTagName("textarea")[0];if(n){J.responseText=n.value}else{var O=P.getElementsByTagName("pre")[0];if(O){J.responseText=O.innerHTML}}}else{if(x.dataType=="xml"&&!J.responseXML&&J.responseText!=null){J.responseXML=F(J.responseText)}}M=b.httpData(J,x.dataType)}catch(N){a("error caught:",N);L=false;J.error=N;b.handleError(x,J,"error",N)}if(L){x.success(M,"success");if(H){b.event.trigger("ajaxSuccess",[J,x])}}if(H){b.event.trigger("ajaxComplete",[J,x])}if(H&&!--b.active){b.event.trigger("ajaxStop")}if(x.complete){x.complete(J,L?"success":"error")}setTimeout(function(){G.removeData("form-plugin-onload");G.remove();J.responseXML=null},100)}function F(n,L){if(window.ActiveXObject){L=new ActiveXObject("Microsoft.XMLDOM");L.async="false";L.loadXML(n)}else{L=(new DOMParser()).parseFromString(n,"text/xml")}return(L&&L.documentElement&&L.documentElement.tagName!="parsererror")?L:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(d){d.preventDefault();b(this).ajaxSubmit(c)}).bind("click.form-plugin",function(k){var h=k.target;var f=b(h);if(!(f.is(":submit,input:image"))){var d=f.closest(":submit");if(d.length==0){return}h=d[0]}var g=this;g.clk=h;if(h.type=="image"){if(k.offsetX!=undefined){g.clk_x=k.offsetX;g.clk_y=k.offsetY}else{if(typeof b.fn.offset=="function"){var l=f.offset();g.clk_x=k.pageX-l.left;g.clk_y=k.pageY-l.top}else{g.clk_x=k.pageX-h.offsetLeft;g.clk_y=k.pageY-h.offsetTop}}}setTimeout(function(){g.clk=g.clk_x=g.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(q){var p=[];if(this.length==0){return p}var d=this[0];var h=q?d.getElementsByTagName("*"):d.elements;if(!h){return p}for(var k=0,m=h.length;k<m;k++){var e=h[k];var f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(var g=0,c=r.length;g<c;g++){p.push({name:f,value:r[g]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=b(d.clk),o=l[0],f=o.name;if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,k){var e=c.name,q=c.type,r=c.tagName.toLowerCase();if(typeof k=="undefined"){k=true}if(k&&(!e||c.disabled||q=="reset"||q=="button"||(q=="checkbox"||q=="radio")&&!c.checked||(q=="submit"||q=="image")&&c.form&&c.form.clk!=c||r=="select"&&c.selectedIndex==-1)){return null}if(r=="select"){var l=c.selectedIndex;if(l<0){return null}var o=[],d=c.options;var g=(q=="select-one");var m=(g?l+1:d.length);for(var f=(g?l:0);f<m;f++){var h=d[f];if(h.selected){var p=h.value;if(!p){p=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return p}o.push(p)}}return o}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(c)}else{if(window.opera&&window.opera.postError){window.opera.postError(c)}}}}})(jQuery);(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this})}this.submit(function(d){if(c.settings.debug){d.preventDefault()}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm);if(c.submitButton){f.remove()}return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=true;var b=a(this[0].form).validate();this.each(function(){c&=b.element(this)});return c}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);c.removeAttr(f)});return b},rules:function(e,b){var g=this[0];if(e){var d=a.data(g.form,"validator").settings;var k=d.rules;var l=a.validator.staticRules(g);switch(e){case"add":a.extend(l,a.validator.normalizeRule(b));k[g.name]=l;if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)}break;case"remove":if(!b){delete k[g.name];return l}var h={};a.each(b.split(/\s/),function(m,n){h[n]=l[n];delete l[n]});return h}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(g),a.validator.classRules(g),a.validator.attributeRules(g),a.validator.staticRules(g)),g);if(f.required){var c=f.required;delete f.required;f=a.extend({required:c},f)}return f}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)},filled:function(b){return !!a.trim(""+b.value)},unchecked:function(b){return !b.checked}});a.validator=function(b,c){this.settings=a.extend(true,{},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.validator.format.apply(this,d)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),e)});return b};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);this.errorsFor(b).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}else{if(b.parentNode.name in this.submitted){this.element(b.parentNode)}}},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=(this.groups={});a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){b[g]=e})});var d=this.settings.rules;a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)});function c(g){var f=a.data(this[0].form,"validator"),e="on"+g.type.replace(/^validate/,"");f.settings[e]&&f.settings[e].call(f,this[0])}a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",c).validateDelegate(":radio, :checkbox, select, option","click",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var b=0,c=(this.currentElements=this.elements());c[b];b++){this.check(c[b])}return this.valid()},element:function(c){c=this.clean(c);this.lastElement=c;this.prepareElement(c);this.currentElements=a(c);var b=this.check(c);if(b){delete this.invalid[c.name]}else{this.invalid[c.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return b},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(d){var c=0;for(var b in d){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(c){c=this.clean(c);if(this.checkable(c)){c=this.findByName(c.name)[0]}var h=a(c).rules();var d=false;for(method in h){var g={method:method,parameters:h[method]};try{var b=a.validator.methods[method].call(this,c.value.replace(/\r/g,""),c,g.parameters);if(b=="dependency-mismatch"){d=true;continue}d=false;if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!b){this.formatAndAdd(c,g);return false}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method",f);throw f}}if(d){return}if(this.objectLength(h)){this.successList.push(c)}return true},customMetaMessage:function(b,d){if(!a.metadata){return}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return c&&c.messages&&c.messages[d]},customMessage:function(c,d){var b=this.settings.messages[c];return b&&(b.constructor==String?b:b[d])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(c,e){var d=this.defaultMessage(c,e.method),b=/\$?\{(\d+)\}/g;if(typeof d=="function"){d=d.call(this,e.parameters,c)}else{if(b.test(d)){d=jQuery.format(d.replace(b,"{$1}"),e.parameters)}}this.errorList.push({message:d,element:c});this.errorMap[c.name]=d;this.submitted[c.name]=d},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var b=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass().addClass(this.settings.errorClass);b.attr("generated")&&b.html(d)}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)}}if(!d&&this.settings.success){b.text("");typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)}this.toShow=this.toShow.add(b)},errorsFor:function(c){var b=this.idOrName(c);return this.errors().filter(function(){return a(this).attr("for")==b})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(c){var d={};var b=a(c).attr("class");b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])}});return d},attributeRules:function(c){var e={};var b=a(c);for(method in a.validator.methods){var d=b.attr(method);if(d){e[method]=d}}if(e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)){delete e.maxlength}return e},metadataRules:function(b){if(!a.metadata){return{}}var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(c){var d={};var b=a.data(c.form,"validator");if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}}return d},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];return}if(e.param||e.depends){var d=true;switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;break;case"function":d=e.depends.call(b,b);break}if(d){c[f]=e.param!==undefined?e.param:true}else{delete c[f]}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}if(c.messages){delete c.messages}return c},normalizeRule:function(c){if(typeof c=="string"){var b={};a.each(c.split(/\s/),function(){b[this]=true});c=b}return c},addMethod:function(b,d,c){a.validator.methods[b]=d;a.validator.messages[b]=c!=undefined?c:a.validator.messages[b];if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))}},methods:{required:function(c,b,e){if(!this.depend(e,b)){return"dependency-mismatch"}switch(b.nodeName.toLowerCase()){case"select":var d=a(b).val();return d&&d.length>0;case"input":if(this.checkable(b)){return this.getLength(c,b)>0}default:return a.trim(c).length>0}},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"}var d=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}d.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=d.message;g=typeof g=="string"&&{url:g}||g;if(d.old!==f){d.old=f;var b=this;this.startRequest(c);var e={};e[c.name]=f;a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(k){b.settings.messages[c.name].remote=d.originalMessage;var m=k===true;if(m){var h=b.formSubmitted;b.prepareElement(c);b.formSubmitted=h;b.successList.push(c);b.showErrors()}else{var n={};var l=(d.message=k||b.defaultMessage(c,"remote"));n[c.name]=a.isFunction(l)?l(f):l;b.showErrors(n)}d.valid=m;b.stopRequest(c,m)}},g));return"pending"}else{if(this.pending[c.name]){return"pending"}}return d.valid},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d},rangelength:function(d,b,e){var c=this.getLength(a.trim(d),b);return this.optional(b)||(c>=e[0]&&c<=e[1])},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(f)){return false}var g=0,e=0,b=false;f=f.replace(/\D/g,"");for(var h=f.length-1;h>=0;h--){var d=f.charAt(h);var e=parseInt(d,10);if(b){if((e*=2)>9){e-=9}}g+=e;b=!b}return(g%10)==0},accept:function(c,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))},equalTo:function(c,b,e){var d=a(e).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(b).valid()});return c==d.val()}}});a.format=a.validator.format})(jQuery);(function(c){var b=c.ajax;var a={};c.ajax=function(e){e=c.extend(e,c.extend({},c.ajaxSettings,e));var d=e.port;if(e.mode=="abort"){if(a[d]){a[d].abort()}return(a[d]=b.apply(this,arguments))}return b.apply(this,arguments)}})(jQuery);(function(a){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){this.addEventListener(c,d,true)},teardown:function(){this.removeEventListener(c,d,true)},handler:function(f){arguments[0]=a.event.fix(f);arguments[0].type=b;return a.event.handle.apply(this,arguments)}};function d(f){f=a.event.fix(f);f.type=b;return a.event.handle.call(this,f)}})}a.extend(a.fn,{validateDelegate:function(d,c,b){return this.bind(c,function(e){var f=a(e.target);if(f.is(d)){return b.apply(f,arguments)}})}})})(jQuery);ddsmoothmenu.init({mainmenuid:"productNavigator",orientation:"h",classname:"ddsmoothmenu",contentsource:"markup"});Array.prototype.inArray=function(b){var a;for(a=0;a<this.length;a++){if(this[a]==b){return true}}return false};$(function(){preloaded=0;$(".level1Menu").css("display","block");$("#homePageTitleTag").html("<h1>"+language.ARTICLE_OF_THE_MONTH+"</h1>");$("body").append('<div id="ajaxLoader"><img src="/siteimages/ajax-loading-blue.gif"></div>');$("#ajaxLoader").css({display:"none",margin:"0px",padding:"0px",position:"absolute","z-index":"10000"});$("#newsletterSubscribeFormEmail").focus(function(){if($(this).val()==language.SUBSCRIBE_TEXTBOX){$(this).val("")}subBoxPos=$("#pageHeadContentBottomSubscribe").offset();subBoxWidth=$("#pageHeadContentBottomSubscribe").outerWidth();subBoxHeight=$("#pageHeadContentBottomSubscribe").outerHeight();tooltipBoxWidth=$("#subscribeTooltip").outerWidth();tooltipBoxLeft=subBoxPos.left-parseInt((tooltipBoxWidth-subBoxWidth)/2);tooltipBoxTop=subBoxPos.top+subBoxHeight;$("#subscribeTooltip").css({left:String(tooltipBoxLeft)+"px",top:String(tooltipBoxTop)+"px"});$("#subscribeTooltip").show()});$("#newsletterSubscribeFormEmail").blur(function(){if($(this).val()==""){$(this).val(language.SUBSCRIBE_TEXTBOX)}$("#subscribeTooltip").fadeOut("slow")});$("#newsletterSubscribeForm").submit(function(){$(this).ajaxSubmit({dataType:"json",beforeSubmit:function(){buttonPos=$("#newsletterSubscribeFormSubmit").offset();buttonWidth=parseInt($("#newsletterSubscribeFormSubmit").outerWidth()/2);buttonHeight=parseInt($("#newsletterSubscribeFormSubmit").outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show()},success:function(r,s){$("#newsletterSubscribeStatus").html(r.msg);if(r.status==0){$("#newsletterSubscribeStatus").css({background:"#666666",color:"#ffffff","padding-top":"4px",height:"23px"});$("#newsletterSubscribeForm").fadeOut(300).delay(2600).fadeIn(300);$("#newsletterSubscribeStatus").delay(300).fadeIn(300).delay(2000).fadeOut(300).queue(function(){$("#newsletterSubscribeStatus").css({background:"none",color:"#555555","padding-top":"0px",height:"27px"});$(this).dequeue()})}else{$("#newsletterSubscribeFormEmail").val(language.SUBSCRIBE_TEXTBOX);$("#newsletterSubscribeStatus").css({background:"none",color:"#555555","padding-top":"0px",height:"27px"});$("#newsletterSubscribeForm").fadeOut(300).delay(19600).fadeIn(300);$("#newsletterSubscribeStatus").delay(300).fadeIn(300).delay(19000).fadeOut(300)}$("#ajaxLoader").hide()}});return false});if(jQuery.trim($("#specialBoxHeader").html())==""||jQuery.trim($("#specialBoxContent").html())==""){$("#specialBoxHeader").hide();$("#specialBoxContent").hide();$("#specialBoxSeparator").hide()}$(".specialEditLink").click(function(){$(this).siblings("form.specialBoxForm").slideToggle();return false});$(".specialBoxForm").hide();$("#specialBoxForm").submit(function(){$(this).ajaxSubmit({dataType:"json",beforeSubmit:function(){buttonPos=$("#specialBoxFormSubmit").offset();buttonWidth=parseInt($("#specialBoxFormSubmit").outerWidth()/2);buttonHeight=parseInt($("#specialBoxFormSubmit").outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show()},success:function(r,s){topPos=parseInt($(window).height()/2-20)+$(document).scrollTop();leftPos=parseInt($(window).width()/2-100)+$(document).scrollLeft();if(r.status==0){$("#itemAddedToCartDetails").html("Error in Submission");$("#itemAddedToCartDetails").html('<span style="color: #CCCCCC">'+r.error+":</span>")}else{if(r.status==1){$("#specialBoxHeader").html(r.specialfiletitle);$("#specialBoxContent").html(r.specialfilecontent);$("#specialBoxHeader").show();$("#specialBoxContent").show();$("#specialBoxSeparator").show();$("#itemAddedToCartDetails").html("Special content added")}else{$("#specialBoxHeader").html("");$("#specialBoxContent").html("");$("#specialBoxHeader").hide();$("#specialBoxContent").hide();$("#specialBoxSeparator").hide();$("#specialfiletitle").val("");$("#specialfilecontent").val("");$("#specialfiledelete").attr("checked",false);$("#itemAddedToCartDetails").html("Special content deleted")}}$("#cartAddedToolTip").css({left:String(leftPos)+"px",top:String(topPos)+"px"});$("#cartAddedToolTip").fadeIn(200).delay(2000).fadeOut(200);$("#ajaxLoader").hide()}});return false});$("#headerCartButton").click(function(){window.location="/shoppingcart.php3"});$("a[rel]").overlay({mask:"black",closeOnClick:false,closeOnEsc:true,onBeforeLoad:function(){var s=this.getOverlay().find(".overlayContentWrap");var r=this.getTrigger().attr("href");if(r.search(/(jpg|gif)$/)!=-1){s.html('<div style="padding: 20px"><img src="'+r+'" border="0"></div>')}else{s.load(r)}},onLoad:function(){var u=this.getTrigger().attr("href");var v=this.getOverlay().find(".overlayContentWrap");if(u.search(/(jpg|gif)$/)!=-1){this.getOverlay().css("top","10px");var w=$(window).width()-100;var r=$(window).height()-40;if(this.getTrigger().attr("size")){var x=this.getTrigger().attr("size").split("_");this.getOverlay().css("width",String(Math.min(w,(x[0]+40)))+"px");this.getOverlay().css("height",String(Math.min(r,(x[1]+40)))+"px")}else{var s=v.children("div").eq(0).children("img").eq(0);this.getOverlay().css("width",String(Math.min(w,(s.width()+40)))+"px");this.getOverlay().css("height",String(Math.min(r,(s.height()+40)))+"px")}v.css("height",String(this.getOverlay().height()-30)+"px");outerWidth=this.getOverlay().width();leftPx=String(Math.max(parseInt(($(window).width()-outerWidth)/2),50))+"px";this.getOverlay().css("left",leftPx);v.scrollTop(0);v.scrollLeft(0)}}});$("a[forgotuser]").live("click",function(){$("#loginFormOverlay").css({height:"440px"});$("#loginFormOverlay .overlayContentWrap").css({height:"431px"});$("#forgotUserForm").show();return false});$(".closeWin").live("click",function(){$(".close").trigger("click")});$("a[previewrel]").mouseenter(function(w){$("#preview").html('<a href="'+$(this).attr("href")+'"><img src="'+$(this).attr("previewrel")+'" title="'+$(this).attr("previewreltitle")+'" alt="'+$(this).attr("previewreltitle")+'" border="0"></a>');$("#preview").css({width:String(parseInt($(this).attr("previewrelwidth"))+4)+"px",height:String(parseInt($(this).attr("previewrelheight"))+4)+"px"});var C=$(this).parent();var B=parseInt(C.offset().left);var x=parseInt(C.offset().top);var y=parseInt(C.width());var z=parseInt(C.height());var r=Math.max(200,$(this).attr("previewrelwidth"));var v=Math.max(200,$(this).attr("previewrelheight"));var A=Math.max(1,(v-$(this).attr("previewrelheight")));var u=Math.max(5,B-Math.floor((r-y)/2));var s=x-Math.floor(v-z);if(A>0){$("#preview").css("padding-top",String(A)+"px");v=v-A}$("#preview").css({top:String(s)+"px",left:String(u)+"px"});$("#preview").css({width:String(r)+"px",height:String(v)+"px"});$("#preview").show()});$("#preview").live("mouseleave",function(){$("#preview").hide();$("#preview").html('<img src="/siteimages/spacer.gif" width="200" height="200" border="0">');$("#preview").css({width:"200px",height:"200px",padding:"1px"})});$("#preview").live("click",function(){if($("#preview").children().eq(0).is("a")){window.location=$("#preview").children().eq(0).attr("href")}});$("label").each(function(){inputId=$(this).attr("for");if($("#"+inputId).hasClass("required")){$(this).prepend('<span class="requiredElement">* </span>')}});$(".bookRibbon").each(function(){$(this).show()});if($("#pageSpecialCategoryBrowseActions").length>0){var f=$(".pageSpecialCatBrowser").height();var p=0;var o=0;var b=$(".scrollDragger").offset();$(".pageSpecialCatBrowser").scrollable({vertical:true,items:"pageSpecialCatBrowserItems"});scrollerApi=$(".pageSpecialCatBrowser").data("scrollable");scrollerApi.onBeforeSeek(function(){p=this.getIndex()});scrollerApi.onSeek(function(){o=this.getIndex();b=$(".scrollDragger").offset();if(o>p){$(".scrollDragger").offset({top:parseInt(b.top+f-50),left:b.left})}else{$(".scrollDragger").offset({top:parseInt(b.top-(f-50)),left:b.left})}p=o})}if($('div.browsePageBeadSelect select[name="beadsselector"]').length>0){$('div.browsePageBeadSelect select[name="beadsselector"]').change(function(){if($(this).val()!=""){location.href=$(this).val()}})}if($(".pageCategoryBrowser").length>0){var d=$(".pageCategoryBrowseritems").css("top");var c=false;$(".pageCategoryBrowser").scrollable({vertical:true,items:"pageCategoryBrowseritems"});scollLength=4;if($(".pageCategoryBrowser").hasClass("tiny")){scollLength=3}catOffset=($(".pageCategoryBrowseritem.thisCat").parent().index())*scollLength+$(".pageCategoryBrowseritem.thisCat").index();if(catOffset>(scollLength-1)){$(".pageCategoryBrowser").data("scrollable").move(Math.floor(catOffset/scollLength))}$(".pageCategoryBrowseritem").not(".thisCat").hover(function(){$(this).addClass("over")},function(){$(this).removeClass("over")});$(".pageCategoryBrowseritem").not(".thisCat").click(function(){window.location=$(this).children("a").eq(0).attr("href")});$(".expander").parent().mouseenter(function(r){d=$(".pageCategoryBrowseritems").css("top");$(".pageCategoryBrowseritems").css("top","0px");$(".pageCategoryBrowser").css("overflow","visible");c=true});$(".pageCategoryBrowseritems").mouseleave(function(r){if(c){$(".pageCategoryBrowseritems").css("top",d);$(".pageCategoryBrowser").css("overflow","hidden");c=false}})}$(".pageCategoryBrowser").scrollable({vertical:true,items:"pageCategoryBrowseritems"});var a=$("#hiddenGalleryItems").html().split("|");var e=a[0];var m=0;var h=1;var g=parseInt(a[1]);var k=Math.ceil(m/g);var l=new Array();function q(){lastnumShown=Math.min(((h-1)*g+g),m);if(m==0){$("#galleryBoxLandingText").show();$("#galleryBoxDeleteAdd").html(language.DELETE+" | "+language.ADD_TO_CART);$("#galleryBoxDisplayCount").html("");$("#galleryBoxShowAll").html("")}else{$("#galleryBoxLandingText").hide();$("#galleryBoxDeleteAdd").html('<a href="delete" id="galleryBoxDelete">'+language.DELETE+'</a> | <a href="addtocart" id="galleryBoxAddCart">'+language.ADD_TO_CART+"</a> ");$("#galleryBoxDisplayCount").html(language.DISPLAYING+String((h-1)*g+1)+" to "+String(lastnumShown)+" of "+String(m));$("#galleryBoxShowAll").html('<a href="/mygallery.php3">'+language.SHOW_ALL+"</a>")}if(m<=6){$("#galleryBoxPrevNext").html(language.PREV+" | "+language.NEXT)}else{if(h==1){$("#galleryBoxPrevNext").html(language.PREV+' | <a href="next" id="galleryBoxNext">'+language.NEXT+"</a> ")}else{if(h==k){$("#galleryBoxPrevNext").html('<a href="previous" id="galleryBoxPrev">'+language.PREV+"</a> | "+language.NEXT)}else{$("#galleryBoxPrevNext").html('<a href="previous" id="galleryBoxPrev">'+language.PREV+'</a> | <a href="next" id="galleryBoxNext">'+language.NEXT+"</a>")}}$("#galleryBoxDisplayCount").html(language.DISPLAYING+String((h-1)*g+1)+" to "+String(lastnumShown)+" of "+String(m))}}function n(){l=[];if(e.length>0){allGalleryItems=e.split(",");m=allGalleryItems.length}else{m=0}k=Math.ceil(m/g);$(".galleryBoxSetImg").html("");$(".galleryBoxSetChk").html("");$(".galleryBoxSet").hide();if(m>0){codeString="";for(i=((h-1)*g);i<Math.max(allGalleryItems.length,(h-1)*g+g);i++){if(codeString.length>0){codeString+="','"}codeString+=allGalleryItems[i]}codeString="'"+codeString+"'";$.getJSON("/getgalleryproductdetails.php3",{codelist:codeString},function(r){i=0;j=0;$.each(r,function(s,u){if(j==2){j=0;i++}if(u.maincategory=="book"){linktoshow="/book/details/"+u.code+"/"}else{linktoshow="/product/"+u.code+"/"}imgHTML="";imgHTML+='<input type="hidden" id="galleryBoxTableName_'+u.code+'" value="'+u.maincategory+'"><a href="'+linktoshow+'"><img src="/'+u.URL+'" width="'+u.imgsize[0]+'" height="'+u.imgsize[1]+'" alt="'+u.title+'" title="'+u.title+'" border="0"><br>'+u.shorttitle+"</a>";checkBoxString='<input type="checkbox" id="galleryBoxChkBox_'+u.code+'" value="1"';if(u.presentincart==1){l[l.length]=u.code}checkBoxString+=">";$("#galleryBoxSet_"+i+"_chk"+j).html(checkBoxString);$("#galleryBoxSet_"+i+"_img"+j).html(imgHTML);$("#galleryBoxSet_"+i+"_img"+j).removeClass("galleryBoxSetImgEmpty");$("#galleryBoxSet_"+i+"_img"+j).addClass("galleryBoxSetImg");j++});$(".galleryBoxSetImg:empty").removeClass("galleryBoxSetImg");$(".galleryBoxSetImg:empty").addClass("galleryBoxSetImgEmpty");$(".galleryBoxSet").show()})}q()}n();$("#galleryBoxPrev").live("click",function(){if(h>1){buttonPos=$(this).offset();buttonWidth=parseInt($(this).outerWidth()/2);buttonHeight=parseInt($(this).outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show();h--;n();$("#ajaxLoader").hide()}return false});$("#galleryBoxNext").live("click",function(){if(h<k){buttonPos=$(this).offset();buttonWidth=parseInt($(this).outerWidth()/2);buttonHeight=parseInt($(this).outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show();h++;n();$("#ajaxLoader").hide()}return false});$("#galleryBoxAddCart").live("click",function(){var r=new Array();if($("input[id^='galleryBoxChkBox']:checked").length>0){buttonPos=$(this).offset();buttonWidth=parseInt($(this).outerWidth()/2);buttonHeight=parseInt($(this).outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show();productCode="";tableCode="";$("input[id^='galleryBoxChkBox_']:checked").each(function(){thisprodCode=$(this).attr("id").replace("galleryBoxChkBox_","");if(!l.inArray(thisprodCode)){if(productCode!=""){productCode+=","}productCode+=thisprodCode;thistableCode=$("#galleryBoxTableName_"+thisprodCode).val();if(tableCode!=""){tableCode+=","}tableCode+=thistableCode}else{r[r.length]=thisprodCode}});$.getJSON("/addtocart.php3",{ajaxcall:"1",addtocart:"1",itemcodelist:productCode,itemtablelist:tableCode},function(s){$("#headerCartButton").val("Cart ("+s.shopcart_items+")");$("#headerCartButton").css("color","#ffffff").delay(5000).queue(function(){$(this).css("color","#000000");$(this).dequeue()});topPos=parseInt($(window).height()/2-20)+$(document).scrollTop();leftPos=parseInt($(window).width()/2-100)+$(document).scrollLeft();if(parseInt(s.added)>0){$("#itemAddedToCart").html(s.added+" "+language.ITEM_ADDED_TO_CART);if(s.added==1){if(s.item_title){$("#itemAddedToCartDetails").html('<span style="color: #CCCCCC">'+language.ITEM_NAME+":</span> "+s.item_title)}}}else{$("#itemAddedToCart").html(language.NO_ITEM_ADDED_TO_CART);$("#itemAddedToCartDetails").html("")}tooltipDelay=2000;if(r.length>0){alreadyPresentStr="";$.each(r,function(u,v){if(alreadyPresentStr.length>0){alreadyPresentStr+=", "}alreadyPresentStr+=v});$("#itemAddedToCartDetails").html('<span style="color: #CCCCCC">'+alreadyPresentStr+" "+language.ITEM_ALREADY_IN_CART+"</span>");tooltipDelay=3000}$("#cartAddedToolTip").css({left:String(leftPos)+"px",top:String(topPos)+"px"});$("#cartAddedToolTip").fadeIn(200).delay(tooltipDelay).fadeOut(200);$("#cartFormAdd_"+s.item_code).css({"background-color":"#666666","border-color":"#333333 #333333 #999999 #999999"});$("#cartFormAdd_"+s.item_code).val(language.ADDED_TO_CART);$("#cartFormAdd_"+s.item_code).attr("disabled",true);$("#ajaxLoader").hide()});$("input[id^='galleryBoxChkBox_']:checked").each(function(){$(this).attr("checked",false)})}return false});$("#galleryBoxDelete").live("click",function(){if($("input[id^='galleryBoxChkBox']:checked").length>0){buttonPos=$(this).offset();buttonWidth=parseInt($(this).outerWidth()/2);buttonHeight=parseInt($(this).outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show();productCode="";$("input[id^='galleryBoxChkBox_']:checked").each(function(){thisprodCode=$(this).attr("id").replace("galleryBoxChkBox_","");if(productCode!=""){productCode+=","}productCode+=thisprodCode});$.getJSON("/gallery_data.php3",{ajaxcall:"1",action:"deleteproduct",codelist:productCode,getCodeList:"1"},function(r){e=r.gallerycodelist;topPos=parseInt($(window).height()/2-20)+$(document).scrollTop();leftPos=parseInt($(window).width()/2-100)+$(document).scrollLeft();if(parseInt(r.deleted)>0){$("#itemAddedToCart").html(r.deleted+" "+language.ITEM_DELETED_FROM_GALLERY);if(r.deleted==1){$("#itemAddedToCartDetails").html('<span style="color: #CCCCCC">'+language.ITEM_NAME+":</span> "+r.nowdeleted[0])}else{$("#itemAddedToCartDetails").html('<span style="color: #CCCCCC">'+language.ITEM_NAME+":</span> Multiple Items")}}else{$("#itemAddedToCart").html(language.NO_ITEM_DELETED_FROM_GALLERY);$("#itemAddedToCartDetails").html("")}$("#cartAddedToolTip").css({left:String(leftPos)+"px",top:String(topPos)+"px"});$("#cartAddedToolTip").fadeIn(200).delay(2000).fadeOut(200);n();$("#ajaxLoader").hide()})}return false});$(".galleryAddButton").live("click",function(){productCode=$(this).attr("id").replace("galleryFormAdd_","");buttonPos=$(this).offset();buttonWidth=parseInt($(this).outerWidth()/2);buttonHeight=parseInt($(this).outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show();$.getJSON("/gallery_data.php3",{ajaxcall:"1",action:"addproduct",codelist:productCode,getCodeList:"1"},function(r){e=r.gallerycodelist;topPos=parseInt($(window).height()/2-20)+$(document).scrollTop();leftPos=parseInt($(window).width()/2-100)+$(document).scrollLeft();if(parseInt(r.added)>0){$("#itemAddedToCart").html(r.added+" "+language.ITEM_ADDED_TO_GALLERY);if(r.added==1){$("#itemAddedToCartDetails").html('<span style="color: #CCCCCC">'+language.ITEM_NAME+":</span> "+r.newlyadded[0])}else{$("#itemAddedToCartDetails").html('<span style="color: #CCCCCC">'+language.ITEM_NAME+":</span> Multiple Items")}$("#galleryFormAdd_"+r.newlyadded[0]).css({"background-color":"#666666","border-color":"#333333 #333333 #999999 #999999"});$("#galleryFormAdd_"+r.newlyadded[0]).val(language.ADDED_TO_GALLERY);$("#galleryFormAdd_"+r.newlyadded[0]).attr("disabled",true)}else{$("#itemAddedToCart").html(language.NO_ITEM_ADDED_TO_GALLERY);$("#itemAddedToCartDetails").html("")}$("#cartAddedToolTip").css({left:String(leftPos)+"px",top:String(topPos)+"px"});$("#cartAddedToolTip").fadeIn(200).delay(2000).fadeOut(200);n();$("#ajaxLoader").hide()})})});var pageElement=Array();var paginatorId="";var currentPage=1;var allItems=0;var lastPage=1;var startPage=1;var itemsPerPage=5;var firstPageSymbol="<<";var previousPageSymbol="<";var nextPageSymbol=">";var lastPageSymbol=">>";var separator=" | ";var paginatorPosition="bottom";var paginatorStyle=1;var enablePageOfOption=false;var enableGoToPage=false;var textGoToPage="Go to";var enableSelectNoItems=false;var textSelectNoItems="Items Per Page";var paginatorValues=Array(5,10,15,20,25,30);var anchorLink="javascript:void(0);";var showIfSinglePage=true;eval(function(h,b,l,d,g,f){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(l--){f[g(l)]=d[l]||g(l)}d=[function(a){return f[a]}];g=function(){return"\\w+"};l=1}while(l--){if(d[l]){h=h.replace(new RegExp("\\b"+g(l)+"\\b","g"),d[l])}}return h}("1c.1d.1e({1f:A(){j=M;R(1g){y'1h':{j.S('<m 7=\"u\"></m>');z}y'1i':{j.N('<m 7=\"u\"></m>');z}y'1j':{j.S('<m 7=\"u\"></m>');j.N('<m 7=\"u\"></m>');z}T:{j.N('<m 7=\"u\"></m>')}}O()},1k:A(){$('.u').1l();j.B().P()}});A O(){9(n<1)n=5;J=j.B().U;9(J%n==0)q=V(J/n);v q=V(J/n)+1;9((F<1)||(F>q))F=1;9(!1m){9(q>1)r(F,1)}v r(F,1)}A r(a,b){9(a<0){9(a==-1)a=w-1;v a=w+1}w=a;G=(w-1)*n;9(!b){j.1n(\"W\",A(){Q();j.B().X();j.B().Y(G,n+G).P();j.1o(\"W\")})}v{Q();j.B().X();j.B().Y(G,n+G).P()}}A Q(){$(\".u\").Z(\"\");t a='';t b='';t c='';t d='';t e=' 8 '+w+' 10 '+q+' 8(s) ';t f=' '+1p+' <K 11=\"r(M.C);\" >';t g=' '+1q+' <K 11=\"n=1r(M.C);O();\" >';12(t i=0;i<D.U;i++){9(n==D[i])g+='<x C=\"'+D[i]+'\" L=\"L\">'+D[i]+'</x>';v g+='<x C=\"'+D[i]+'\">'+D[i]+'</x>'}g+='</K>';9(w==1){6='<a k=\"'+l+'\" 7=\"o\" h=\"13 8\">'+14+'</a>'+p;a=b=6;6='<a k=\"'+l+'\" 7=\"o\" h=\"15 8\">'+16+'</a>'+p;a+=6;b+=6;c+=6;d+=6}v{6='<a k=\"'+l+'\" 7=\"H\" I=\"r(1);\" h=\"13 8\">'+14+'</a>'+p;a=b=6;6='<a k=\"'+l+'\" 7=\"H\" I=\"r(-1);\" h=\"15 8\">'+16+'</a>'+p;a+=6;b+=6;c+=6;d+=6}12(t i=1;i<=q;i++){9(i==w){a+='<a k=\"'+l+'\" 7=\"o\" h=\"8 '+i+'\">'+i+'</a>'+p;b+='<a k=\"'+l+'\" 7=\"o\" h=\"8 '+i+'\">'+i+'/'+q+'</a>'+p;c+='<a k=\"'+l+'\" 7=\"o\" h=\"8 '+i+'\">'+i+'</a>'+p;f+='<x C=\"'+i+'\" L=\"L\">'+i+'</x>'}v{6='<a k=\"'+l+'\" 7=\"H\" I=\"r('+i+');\" h=\"8 '+i+'\">'+i+'</a>'+p;a+=6;c+=6;f+='<x C=\"'+i+'\">'+i+'</x>'}}f+='</K>';9(w==q){6='<a k=\"'+l+'\" 7=\"o\" h=\"17 8\">'+18+'</a>';a+=6;b+=6;c+=6;d+=6;6=p+'<a k=\"'+l+'\" 7=\"o\" h=\"19 8\">'+1a+'</a>';a+=6;b+=6}v{6='<a k=\"'+l+'\" 7=\"H\" I=\"r(-2);\" h=\"17 8\">'+18+'</a>';a+=6;b+=6;c+=6;d+=6;6=p+'<a k=\"'+l+'\" 7=\"H\" I=\"r('+q+');\" h=\"19 8\">'+1a+'</a>';a+=6;b+=6}R(1s){y 1:6=a;z;y 2:6=b;z;y 3:6=c;z;y 4:6=d;z;T:6=a}9(1t)6+='<E 7=\"o\" h=\"8 1u\">'+e+'</E>';9(1v)6+='<E 7=\"o\" h=\"1b 8\">'+f+'</E>';9(1w)6+='<E 7=\"o\" h=\"1b 1x. 10 1y 1z 1A\">'+g+'</E>';$(\".u\").Z(6)}",62,99,"||||||style|class|Page|if||||||||title||paginatorId|href|anchorLink|div|itemsPerPage|inactive|separator|lastPage|appendContent||var|paginator|else|currentPage|option|case|break|function|children|value|paginatorValues|span|startPage|till|active|onclick|allItems|select|selected|this|after|initPaginator|show|createPaginator|switch|before|default|length|parseInt|medium|hide|slice|html|of|onchange|for|First|firstPageSymbol|Previous|previousPageSymbol|Next|nextPageSymbol|Last|lastPageSymbol|Select|jQuery|fn|extend|pagination|paginatorPosition|top|bottom|both|depagination|remove|showIfSinglePage|fadeOut|fadeIn|textGoToPage|textSelectNoItems|Number|paginatorStyle|enablePageOfOption|Information|enableGoToPage|enableSelectNoItems|no|items|per|page".split("|"),0,{}));$(function(){itemsPerPage=10;firstPageSymbol="First";lastPageSymbol="Last";previousPageSymbol="&laquo; Prev";nextPageSymbol="Next &raquo;";separator="&nbsp;";paginatorStyle=1;enablePageOfOption=true;paginatorPosition="bottom";showIfSinglePage=false;$("#reviewsPagingContent").pagination();if($("#reviewsPagingContent li").length==0){$("#reviewWrapper").hide()}$("#reviewCreateForm").validate({submitHandler:function(a){$(a).ajaxSubmit({dataType:"json",beforeSubmit:function(){buttonPos=$(".reviewPost img").offset();buttonWidth=parseInt($(".reviewPost img").outerWidth()/2);buttonHeight=parseInt($(".reviewPost img").outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show()},success:function(b,c){if(b.status==0){$(".reviewSubmitMessage").css("background","#cc0000")}else{$(".reviewSubmitMessage").css("background","#777777")}$(".reviewSubmitMessage").html(b.outputMsg);$(".reviewSubmitMessage").fadeIn(1000).delay(2000).fadeOut(2000);if(b.status==1){$("#reviewWrapper").show();$("#rfeedback").val("");prependContent='<li><div class="individualReview">'+b.comments.replace(/\r?\n/g,"<br>")+'</div><div class="individualReviewer">- <b><i>'+b.name+"</i></b>";if(b.showEmail==1){prependContent=prependContent+'&nbsp;(<a href="mailto:'+b.email+'">'+b.email+"</a>)"}prependContent=prependContent+"</div></li>";$("#reviewsPagingContent").prepend(prependContent);window.initPaginator()}$("#ajaxLoader").hide()}})}});$(".reviewPost").click(function(){$("#reviewCreateForm").submit();return false})});function showLargeImage(a){myWindow=window.open("http://exoticindiaart/showlargeimg.php3?img="+escape("artimages/"+a),"largeimage","width=650,height=500, resizable,scrollbars")}$(function(){alreadyShown=0;if($("#subscribeFormOverlay").length>0){$("#subscribeFormOverlay").overlay({load:false,mask:"black",closeOnClick:true,closeOnEsc:true});$(window).scroll(function(){if(alreadyShown==0){$("#subscribeFormOverlay").data("overlay").load();alreadyShown=1}});$("#OverlayNewsletterSubscribeFormEmail").focus(function(){if($(this).val()==language.SUBSCRIBE_TEXTBOX){$(this).val("")}});$("#OverlayNewsletterSubscribeFormEmail").blur(function(){if($(this).val()==""){$(this).val(language.SUBSCRIBE_TEXTBOX)}});$("#OverlayNewsletterSubscribeForm").submit(function(){$(this).ajaxSubmit({dataType:"json",beforeSubmit:function(){buttonPos=$("#OverlayNewsletterSubscribeFormSubmit").offset();buttonWidth=parseInt($("#OverlayNewsletterSubscribeFormSubmit").outerWidth()/2);buttonHeight=parseInt($("#OverlayNewsletterSubscribeFormSubmit").outerHeight()/2);buttonTopPos=parseInt(buttonPos.top+buttonHeight-$("#ajaxLoader").outerHeight()/2);buttonLeftPos=parseInt(buttonPos.left+buttonWidth-$("#ajaxLoader").outerWidth()/2);$("#ajaxLoader").css({left:String(buttonLeftPos)+"px",top:String(buttonTopPos)+"px"});$("#ajaxLoader").show()},success:function(a,b){$("#OverlayNewsletterSubscribeStatus").html(a.msg);if(a.status==0){$("#OverlayNewsletterSubscribeStatus").css({background:"#666666",color:"#ffffff","padding-top":"4px",height:"23px"});$("#OverlayNewsletterSubscribeForm").fadeOut(300).delay(2600).fadeIn(300);$("#OverlayNewsletterSubscribeStatus").delay(300).fadeIn(300).delay(2000).fadeOut(300).queue(function(){$("#OverlayNewsletterSubscribeStatus").css({background:"none",color:"#555555","padding-top":"0px",height:"27px"});$(this).dequeue()})}else{$("#OverlayNewsletterSubscribeFormEmail").val(language.SUBSCRIBE_TEXTBOX);$("#OverlayNewsletterSubscribeStatus").css({background:"none",color:"#555555","padding-top":"0px",height:"27px"});$("#OverlayNewsletterSubscribeForm").fadeOut(300).delay(19600).fadeIn(300);$("#OverlayNewsletterSubscribeStatus").delay(300).fadeIn(300).delay(19000).fadeOut(300);api=$("#subscribeFormOverlay").data("overlay");t=setTimeout("api.close()",3000)}$("#ajaxLoader").hide()}});return false})}});
