(function(af,ah){function bl(){if(!ap.isReady){try{ai.documentElement.doScroll("left")}catch(c){setTimeout(bl,1);return}ap.ready()}}function bp(v,c){c.src?ap.ajax({url:c.src,async:false,dataType:"script"}):ap.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function ay(v,c,K,G,J,F){var z=v.length;if(typeof c==="object"){for(var L in c){ay(v,L,c[L],G,J,K)}return v}if(K!==ah){G=!F&&G&&ap.isFunction(K);for(L=0;L<z;L++){J(v[L],c,G?K.call(v[L],L,J(v[L],c)):K,F)}return v}return z?J(v[0],c):null}function aN(){return(new Date).getTime()}function ax(){return false}function av(){return true}function a6(v,c,z){z[0].type=v;return ap.event.handle.apply(c,z)}function aS(P){var N,L=[],J=[],K=arguments,G,F,v,c,z,Q,O=ap.extend({},ap.data(this,"events").live);if(!(P.button&&P.type==="click")){for(c in O){F=O[c];if(F.live===P.type||F.altLive&&ap.inArray(P.type,F.altLive)>-1){G=F.data;G.beforeFilter&&G.beforeFilter[P.type]&&!G.beforeFilter[P.type](P)||J.push(F.selector)}else{delete O[c]}}G=ap(P.target).closest(J,P.currentTarget);z=0;for(Q=G.length;z<Q;z++){for(c in O){F=O[c];v=G[z].elem;J=null;if(G[z].selector===F.selector){if(F.live==="mouseenter"||F.live==="mouseleave"){J=ap(P.relatedTarget).closest(F.selector)[0]}if(!J||J!==v){L.push({elem:v,fn:F})}}}}z=0;for(Q=L.length;z<Q;z++){G=L[z];P.currentTarget=G.elem;P.data=G.fn.data;if(G.fn.apply(G.elem,K)===false){N=false;break}}return N}}function ao(v,c){return"live."+(v?v+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function M(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function p(v,c){var z=0;c.each(function(){if(this.nodeName===(v[z]&&v[z].nodeName)){var J=ap.data(v[z++]),K=ap.data(this,J);if(J=J&&J.events){delete K.handle;K.events={};for(var G in J){for(var F in J[G]){ap.event.add(this,G,J[G][F],J[G][F].data)}}}}})}function bo(v,c,J){var F,G,z;if(v.length===1&&typeof v[0]==="string"&&v[0].length<512&&v[0].indexOf("<option")<0&&(ap.support.checkClone||!bc.test(v[0]))){G=true;if(z=ap.fragments[v[0]]){if(z!==1){F=z}}}if(!F){c=c&&c[0]?c[0].ownerDocument||c[0]:ai;F=c.createDocumentFragment();ap.clean(v,c,F,J)}if(G){ap.fragments[v[0]]=z?F:1}return{fragment:F,cacheable:G}}function aK(v,c){var z={};ap.each(aW.concat.apply([],aW.slice(0,c)),function(){z[this]=v});return z}function at(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ap=function(v,c){return new ap.fn.init(v,c)},bd=af.jQuery,aX=af.$,ai=af.document,aC,au=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,ae=/^.[^:#\[\.,]*$/,w=/\S/,f=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,bf=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aH=navigator.userAgent,ad=false,aF=[],aJ,a8=Object.prototype.toString,a1=Object.prototype.hasOwnProperty,aG=Array.prototype.push,aD=Array.prototype.slice,u=Array.prototype.indexOf;ap.fn=ap.prototype={init:function(v,c){var F,z;if(!v){return this}if(v.nodeType){this.context=this[0]=v;this.length=1;return this}if(typeof v==="string"){if((F=au.exec(v))&&(F[1]||!c)){if(F[1]){z=c?c.ownerDocument||c:ai;if(v=bf.exec(v)){if(ap.isPlainObject(c)){v=[ai.createElement(v[1])];ap.fn.attr.call(v,c,true)}else{v=[z.createElement(v[1])]}}else{v=bo([F[1]],[z]);v=(v.cacheable?v.fragment.cloneNode(true):v.fragment).childNodes}}else{if(c=ai.getElementById(F[2])){if(c.id!==F[2]){return aC.find(v)}this.length=1;this[0]=c}this.context=ai;this.selector=v;return this}}else{if(!c&&/^\w+$/.test(v)){this.selector=v;this.context=ai;v=ai.getElementsByTagName(v)}else{return !c||c.jquery?(c||aC).find(v):ap(c).find(v)}}}else{if(ap.isFunction(v)){return aC.ready(v)}}if(v.selector!==ah){this.selector=v.selector;this.context=v.context}return ap.isArray(v)?this.setArray(v):ap.makeArray(v,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return aD.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(v,c,z){v=ap(v||null);v.prevObject=this;v.context=this.context;if(c==="find"){v.selector=this.selector+(this.selector?" ":"")+z}else{if(c){v.selector=this.selector+"."+c+"("+z+")"}}return v},setArray:function(c){this.length=0;aG.apply(this,c);return this},each:function(v,c){return ap.each(this,v,c)},ready:function(c){ap.bindReady();if(ap.isReady){c.call(ai,ap)}else{aF&&aF.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(aD.apply(this,arguments),"slice",aD.call(arguments).join(","))},map:function(c){return this.pushStack(ap.map(this,function(v,z){return c.call(v,z,v)}))},end:function(){return this.prevObject||ap(null)},push:aG,sort:[].sort,splice:[].splice};ap.fn.init.prototype=ap.fn;ap.extend=ap.fn.extend=function(){var v=arguments[0]||{},c=1,K=arguments.length,G=false,J,F,z,L;if(typeof v==="boolean"){G=v;v=arguments[1]||{};c=2}if(typeof v!=="object"&&!ap.isFunction(v)){v={}}if(K===c){v=this;--c}for(;c<K;c++){if((J=arguments[c])!=null){for(F in J){z=v[F];L=J[F];if(v!==L){if(G&&L&&(ap.isPlainObject(L)||ap.isArray(L))){z=z&&(ap.isPlainObject(z)||ap.isArray(z))?z:ap.isArray(L)?[]:{};v[F]=ap.extend(G,z,L)}else{if(L!==ah){v[F]=L}}}}}}return v};ap.extend({noConflict:function(c){af.$=aX;if(c){af.jQuery=bd}return ap},isReady:false,ready:function(){if(!ap.isReady){if(!ai.body){return setTimeout(ap.ready,13)}ap.isReady=true;if(aF){for(var v,c=0;v=aF[c++];){v.call(ai,ap)}aF=null}ap.fn.triggerHandler&&ap(ai).triggerHandler("ready")}},bindReady:function(){if(!ad){ad=true;if(ai.readyState==="complete"){return ap.ready()}if(ai.addEventListener){ai.addEventListener("DOMContentLoaded",aJ,false);af.addEventListener("load",ap.ready,false)}else{if(ai.attachEvent){ai.attachEvent("onreadystatechange",aJ);af.attachEvent("onload",ap.ready);var v=false;try{v=af.frameElement==null}catch(c){}ai.documentElement.doScroll&&v&&bl()}}}},isFunction:function(c){return a8.call(c)==="[object Function]"},isArray:function(c){return a8.call(c)==="[object Array]"},isPlainObject:function(v){if(!v||a8.call(v)!=="[object Object]"||v.nodeType||v.setInterval){return false}if(v.constructor&&!a1.call(v,"constructor")&&!a1.call(v.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in v){}return c===ah||a1.call(v,c)},isEmptyObject:function(v){for(var c in v){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}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 af.JSON&&af.JSON.parse?af.JSON.parse(c):(new Function("return "+c))()}else{ap.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(v){if(v&&w.test(v)){var c=ai.getElementsByTagName("head")[0]||ai.documentElement,z=ai.createElement("script");z.type="text/javascript";if(ap.support.scriptEval){z.appendChild(ai.createTextNode(v))}else{z.text=v}c.insertBefore(z,c.firstChild);c.removeChild(z)}},nodeName:function(v,c){return v.nodeName&&v.nodeName.toUpperCase()===c.toUpperCase()},each:function(v,c,K){var G,J=0,F=v.length,z=F===ah||ap.isFunction(v);if(K){if(z){for(G in v){if(c.apply(v[G],K)===false){break}}}else{for(;J<F;){if(c.apply(v[J++],K)===false){break}}}}else{if(z){for(G in v){if(c.call(v[G],G,v[G])===false){break}}}else{for(K=v[0];J<F&&c.call(K,J,K)!==false;K=v[++J]){}}}return v},trim:function(c){return(c||"").replace(f,"")},makeArray:function(v,c){c=c||[];if(v!=null){v.length==null||typeof v==="string"||ap.isFunction(v)||typeof v!=="function"&&v.setInterval?aG.call(c,v):ap.merge(c,v)}return c},inArray:function(v,c){if(c.indexOf){return c.indexOf(v)}for(var F=0,z=c.length;F<z;F++){if(c[F]===v){return F}}return -1},merge:function(v,c){var G=v.length,z=0;if(typeof c.length==="number"){for(var F=c.length;z<F;z++){v[G++]=c[z]}}else{for(;c[z]!==ah;){v[G++]=c[z++]}}v.length=G;return v},grep:function(v,c,J){for(var F=[],G=0,z=v.length;G<z;G++){!J!==!c(v[G],G)&&F.push(v[G])}return F},map:function(v,c,K){for(var G=[],J,F=0,z=v.length;F<z;F++){J=c(v[F],F,K);if(J!=null){G[G.length]=J}}return G.concat.apply([],G)},guid:1,proxy:function(v,c,z){if(arguments.length===2){if(typeof c==="string"){z=v;v=z[c];c=ah}else{if(c&&!ap.isFunction(c)){z=c;c=ah}}}if(!c&&v){c=function(){return v.apply(z||this,arguments)}}if(v){c.guid=v.guid=v.guid||c.guid||ap.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:{}});aH=ap.uaMatch(aH);if(aH.browser){ap.browser[aH.browser]=true;ap.browser.version=aH.version}if(ap.browser.webkit){ap.browser.safari=true}if(u){ap.inArray=function(v,c){return u.call(c,v)}}aC=ap(ai);if(ai.addEventListener){aJ=function(){ai.removeEventListener("DOMContentLoaded",aJ,false);ap.ready()}}else{if(ai.attachEvent){aJ=function(){if(ai.readyState==="complete"){ai.detachEvent("onreadystatechange",aJ);ap.ready()}}}}(function(){ap.support={};var v=ai.documentElement,c=ai.createElement("script"),K=ai.createElement("div"),G="script"+aN();K.style.display="none";K.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var J=K.getElementsByTagName("*"),F=K.getElementsByTagName("a")[0];if(!(!J||!J.length||!F)){ap.support={leadingWhitespace:K.firstChild.nodeType===3,tbody:!K.getElementsByTagName("tbody").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(F.getAttribute("style")),hrefNormalized:F.getAttribute("href")==="/a",opacity:/^0.55$/.test(F.style.opacity),cssFloat:!!F.style.cssFloat,checkOn:K.getElementsByTagName("input")[0].value==="on",optSelected:ai.createElement("select").appendChild(ai.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(ai.createTextNode("window."+G+"=1;"))}catch(z){}v.insertBefore(c,v.firstChild);if(af[G]){ap.support.scriptEval=true;delete af[G]}v.removeChild(c);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function L(){ap.support.noCloneEvent=false;K.detachEvent("onclick",L)});K.cloneNode(true).fireEvent("onclick")}K=ai.createElement("div");K.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";v=ai.createDocumentFragment();v.appendChild(K.firstChild);ap.support.checkClone=v.cloneNode(true).cloneNode(true).lastChild.checked;ap(function(){var N=ai.createElement("div");N.style.width=N.style.paddingLeft="1px";ai.body.appendChild(N);ap.boxModel=ap.support.boxModel=N.offsetWidth===2;ai.body.removeChild(N).style.display="none"});v=function(P){var O=ai.createElement("div");P="on"+P;var N=P in O;if(!N){O.setAttribute(P,"return;");N=typeof O[P]==="function"}return N};ap.support.submitBubbles=v("submit");ap.support.changeBubbles=v("change");v=c=K=J=F=null}})();ap.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aP="jQuery"+aN(),aZ=0,d={},aw={};ap.extend({cache:{},expando:aP,noData:{embed:true,object:true,applet:true},data:function(v,c,G){if(!(v.nodeName&&ap.noData[v.nodeName.toLowerCase()])){v=v==af?d:v;var z=v[aP],F=ap.cache;if(!c&&!z){return null}z||(z=++aZ);if(typeof c==="object"){v[aP]=z;F=F[z]=ap.extend(true,{},c)}else{F=F[z]?F[z]:typeof G==="undefined"?aw:(F[z]={})}if(G!==ah){v[aP]=z;F[c]=G}return typeof c==="string"?F[c]:F}},removeData:function(v,c){if(!(v.nodeName&&ap.noData[v.nodeName.toLowerCase()])){v=v==af?d:v;var J=v[aP],F=ap.cache,G=F[J];if(c){if(G){delete G[c];ap.isEmptyObject(G)&&ap.removeData(v)}}else{try{delete v[aP]}catch(z){v.removeAttribute&&v.removeAttribute(aP)}delete F[J]}}}});ap.fn.extend({data:function(v,c){if(typeof v==="undefined"&&this.length){return ap.data(this[0])}else{if(typeof v==="object"){return this.each(function(){ap.data(this,v)})}}var F=v.split(".");F[1]=F[1]?"."+F[1]:"";if(c===ah){var z=this.triggerHandler("getData"+F[1]+"!",[F[0]]);if(z===ah&&this.length){z=ap.data(this[0],v)}return z===ah&&F[1]?this.data(F[0]):z}else{return this.trigger("setData"+F[1]+"!",[F[0],c]).each(function(){ap.data(this,v,c)})}},removeData:function(c){return this.each(function(){ap.removeData(this,c)})}});ap.extend({queue:function(v,c,F){if(v){c=(c||"fx")+"queue";var z=ap.data(v,c);if(!F){return z||[]}if(!z||ap.isArray(F)){z=ap.data(v,c,ap.makeArray(F))}else{z.push(F)}return z}},dequeue:function(v,c){c=c||"fx";var F=ap.queue(v,c),z=F.shift();if(z==="inprogress"){z=F.shift()}if(z){c==="fx"&&F.unshift("inprogress");z.call(v,function(){ap.dequeue(v,c)})}}});ap.fn.extend({queue:function(v,c){if(typeof v!=="string"){c=v;v="fx"}if(c===ah){return ap.queue(this[0],v)}return this.each(function(){var z=ap.queue(this,v,c);v==="fx"&&z[0]!=="inprogress"&&ap.dequeue(this,v)})},dequeue:function(c){return this.each(function(){ap.dequeue(this,c)})},delay:function(v,c){v=ap.fx?ap.fx.speeds[v]||v:v;c=c||"fx";return this.queue(c,function(){var z=this;setTimeout(function(){ap.dequeue(z,c)},v)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var be=/[\n\t]/g,ak=/\s+/,ag=/\r/g,y=/href|src|style/,g=/(button|input)/i,bh=/(button|input|object|select|textarea)/i,aU=/^(a|area)$/i,aY=/radio|checkbox/;ap.fn.extend({attr:function(v,c){return ay(this,v,c,true,ap.attr)},removeAttr:function(c){return this.each(function(){ap.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(v){if(ap.isFunction(v)){return this.each(function(O){var N=ap(this);N.addClass(v.call(this,O,N.attr("class")))})}if(v&&typeof v==="string"){for(var c=(v||"").split(ak),K=0,G=this.length;K<G;K++){var J=this[K];if(J.nodeType===1){if(J.className){for(var F=" "+J.className+" ",z=0,L=c.length;z<L;z++){if(F.indexOf(" "+c[z]+" ")<0){J.className+=" "+c[z]}}}else{J.className=v}}}}return this},removeClass:function(v){if(ap.isFunction(v)){return this.each(function(O){var N=ap(this);N.removeClass(v.call(this,O,N.attr("class")))})}if(v&&typeof v==="string"||v===ah){for(var c=(v||"").split(ak),K=0,G=this.length;K<G;K++){var J=this[K];if(J.nodeType===1&&J.className){if(v){for(var F=(" "+J.className+" ").replace(be," "),z=0,L=c.length;z<L;z++){F=F.replace(" "+c[z]+" "," ")}J.className=F.substring(1,F.length-1)}else{J.className=""}}}}return this},toggleClass:function(v,c){var F=typeof v,z=typeof c==="boolean";if(ap.isFunction(v)){return this.each(function(J){var G=ap(this);G.toggleClass(v.call(this,J,G.attr("class"),c),c)})}return this.each(function(){if(F==="string"){for(var K,J=0,G=ap(this),N=c,L=v.split(ak);K=L[J++];){N=z?N:!G.hasClass(K);G[N?"addClass":"removeClass"](K)}}else{if(F==="undefined"||F==="boolean"){this.className&&ap.data(this,"__className__",this.className);this.className=this.className||v===false?"":ap.data(this,"__className__")||""}}})},hasClass:function(v){v=" "+v+" ";for(var c=0,z=this.length;c<z;c++){if((" "+this[c].className+" ").replace(be," ").indexOf(v)>-1){return true}}return false},val:function(v){if(v===ah){var c=this[0];if(c){if(ap.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(ap.nodeName(c,"select")){var K=c.selectedIndex,G=[],J=c.options;c=c.type==="select-one";if(K<0){return null}var F=c?K:0;for(K=c?K+1:J.length;F<K;F++){var z=J[F];if(z.selected){v=ap(z).val();if(c){return v}G.push(v)}}return G}if(aY.test(c.type)&&!ap.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(ag,"")}return ah}var L=ap.isFunction(v);return this.each(function(Q){var O=ap(this),P=v;if(this.nodeType===1){if(L){P=v.call(this,Q,O.val())}if(typeof P==="number"){P+=""}if(ap.isArray(P)&&aY.test(this.type)){this.checked=ap.inArray(O.val(),P)>=0}else{if(ap.nodeName(this,"select")){var N=ap.makeArray(P);ap("option",this).each(function(){this.selected=ap.inArray(ap(this).val(),N)>=0});if(!N.length){this.selectedIndex=-1}}else{this.value=P}}}})}});ap.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(v,c,J,F){if(!v||v.nodeType===3||v.nodeType===8){return ah}if(F&&c in ap.attrFn){return ap(v)[c](J)}F=v.nodeType!==1||!ap.isXMLDoc(v);var G=J!==ah;c=F&&ap.props[c]||c;if(v.nodeType===1){var z=y.test(c);if(c in v&&F&&!z){if(G){c==="type"&&g.test(v.nodeName)&&v.parentNode&&ap.error("type property can't be changed");v[c]=J}if(ap.nodeName(v,"form")&&v.getAttributeNode(c)){return v.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=v.getAttributeNode("tabIndex"))&&c.specified?c.value:bh.test(v.nodeName)||aU.test(v.nodeName)&&v.href?0:ah}return v[c]}if(!ap.support.style&&F&&c==="style"){if(G){v.style.cssText=""+J}return v.style.cssText}G&&v.setAttribute(c,""+J);v=!ap.support.hrefNormalized&&F&&z?v.getAttribute(c,2):v.getAttribute(c);return v===null?ah:v}return ap.style(v,c,J)}});var a0=function(c){return c.replace(/[^\w\s\.\|`]/g,function(v){return"\\"+v})};ap.event={add:function(P,N,L,J){if(!(P.nodeType===3||P.nodeType===8)){if(P.setInterval&&P!==af&&!P.frameElement){P=af}if(!L.guid){L.guid=ap.guid++}if(J!==ah){L=ap.proxy(L);L.data=J}var K=ap.data(P,"events")||ap.data(P,"events",{}),G=ap.data(P,"handle"),F;if(!G){F=function(){return typeof ap!=="undefined"&&!ap.event.triggered?ap.event.handle.apply(F.elem,arguments):ah};G=ap.data(P,"handle",F)}if(G){G.elem=P;N=N.split(/\s+/);for(var v,c=0;v=N[c++];){var z=v.split(".");v=z.shift();if(c>1){L=ap.proxy(L);if(J!==ah){L.data=J}}L.type=z.slice(0).sort().join(".");var Q=K[v],O=this.special[v]||{};if(!Q){Q=K[v]={};if(!O.setup||O.setup.call(P,J,z,L)===false){if(P.addEventListener){P.addEventListener(v,G,false)}else{P.attachEvent&&P.attachEvent("on"+v,G)}}}if(O.add){if((z=O.add.call(P,L,J,z,Q))&&ap.isFunction(z)){z.guid=z.guid||L.guid;z.data=z.data||L.data;z.type=z.type||L.type;L=z}}Q[L.guid]=L;this.global[v]=true}P=null}}},global:{},remove:function(Q,O,N){if(!(Q.nodeType===3||Q.nodeType===8)){var K=ap.data(Q,"events"),L,J,G;if(K){if(O===ah||typeof O==="string"&&O.charAt(0)==="."){for(J in K){this.remove(Q,J+(O||""))}}else{if(O.type){N=O.handler;O=O.type}O=O.split(/\s+/);for(var z=0;J=O[z++];){var v=J.split(".");J=v.shift();var F=!v.length,Y=ap.map(v.slice(0).sort(),a0);Y=new RegExp("(^|\\.)"+Y.join("\\.(?:.*\\.)?")+"(\\.|$)");var P=this.special[J]||{};if(K[J]){if(N){G=K[J][N.guid];delete K[J][N.guid]}else{for(var c in K[J]){if(F||Y.test(K[J][c].type)){delete K[J][c]}}}P.remove&&P.remove.call(Q,v,G);for(L in K[J]){break}if(!L){if(!P.teardown||P.teardown.call(Q,v)===false){if(Q.removeEventListener){Q.removeEventListener(J,ap.data(Q,"handle"),false)}else{Q.detachEvent&&Q.detachEvent("on"+J,ap.data(Q,"handle"))}}L=null;delete K[J]}}}}for(L in K){break}if(!L){if(c=ap.data(Q,"handle")){c.elem=null}ap.removeData(Q,"events");ap.removeData(Q,"handle")}}}},trigger:function(v,c,K,G){var J=v.type||v;if(!G){v=typeof v==="object"?v[aP]?v:ap.extend(ap.Event(J),v):ap.Event(J);if(J.indexOf("!")>=0){v.type=J=J.slice(0,-1);v.exclusive=true}if(!K){v.stopPropagation();this.global[J]&&ap.each(ap.cache,function(){this.events&&this.events[J]&&ap.event.trigger(v,c,this.handle.elem)})}if(!K||K.nodeType===3||K.nodeType===8){return ah}v.result=ah;v.target=K;c=ap.makeArray(c);c.unshift(v)}v.currentTarget=K;(G=ap.data(K,"handle"))&&G.apply(K,c);G=K.parentNode||K.ownerDocument;try{if(!(K&&K.nodeName&&ap.noData[K.nodeName.toLowerCase()])){if(K["on"+J]&&K["on"+J].apply(K,c)===false){v.result=false}}}catch(F){}if(!v.isPropagationStopped()&&G){ap.event.trigger(v,c,G,true)}else{if(!v.isDefaultPrevented()){K=v.target;var z;if(!(ap.nodeName(K,"a")&&J==="click")&&!(K&&K.nodeName&&ap.noData[K.nodeName.toLowerCase()])){try{if(K[J]){if(z=K["on"+J]){K["on"+J]=null}this.triggered=true;K[J]()}}catch(L){}if(z){K["on"+J]=z}this.triggered=false}}}},handle:function(v){var c,J;v=arguments[0]=ap.event.fix(v||af.event);v.currentTarget=this;J=v.type.split(".");v.type=J.shift();c=!J.length&&!v.exclusive;var F=new RegExp("(^|\\.)"+J.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");J=(ap.data(this,"events")||{})[v.type];for(var G in J){var z=J[G];if(c||F.test(z.type)){v.handler=z;v.data=z.data;z=z.apply(this,arguments);if(z!==ah){v.result=z;if(z===false){v.preventDefault();v.stopPropagation()}}if(v.isImmediatePropagationStopped()){break}}}return v.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(v){if(v[aP]){return v}var c=v;v=ap.Event(c);for(var F=this.props.length,z;F;){z=this.props[--F];v[z]=c[z]}if(!v.target){v.target=v.srcElement||ai}if(v.target.nodeType===3){v.target=v.target.parentNode}if(!v.relatedTarget&&v.fromElement){v.relatedTarget=v.fromElement===v.target?v.toElement:v.fromElement}if(v.pageX==null&&v.clientX!=null){c=ai.documentElement;F=ai.body;v.pageX=v.clientX+(c&&c.scrollLeft||F&&F.scrollLeft||0)-(c&&c.clientLeft||F&&F.clientLeft||0);v.pageY=v.clientY+(c&&c.scrollTop||F&&F.scrollTop||0)-(c&&c.clientTop||F&&F.clientTop||0)}if(!v.which&&(v.charCode||v.charCode===0?v.charCode:v.keyCode)){v.which=v.charCode||v.keyCode}if(!v.metaKey&&v.ctrlKey){v.metaKey=v.ctrlKey}if(!v.which&&v.button!==ah){v.which=v.button&1?1:v.button&2?3:v.button&4?2:0}return v},guid:100000000,proxy:ap.proxy,special:{ready:{setup:ap.bindReady,teardown:ap.noop},live:{add:function(v,c){ap.extend(v,c||{});v.guid+=c.selector+c.live;c.liveProxy=v;ap.event.add(this,c.live,aS,c)},remove:function(v){if(v.length){var c=0,z=new RegExp("(^|\\.)"+v[0]+"(\\.|$)");ap.each(ap.data(this,"events").live||{},function(){z.test(this.type)&&c++});c<1&&ap.event.remove(this,v[0],aS)}},special:{}},beforeunload:{setup:function(v,c,z){if(this.setInterval){this.onbeforeunload=z}return false},teardown:function(v,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};ap.Event=function(c){if(!this.preventDefault){return new ap.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aN();this[aP]=true};ap.Event.prototype={preventDefault:function(){this.isDefaultPrevented=av;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=av;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=av;this.stopPropagation()},isDefaultPrevented:ax,isPropagationStopped:ax,isImmediatePropagationStopped:ax};var bj=function(v){for(var c=v.relatedTarget;c&&c!==this;){try{c=c.parentNode}catch(z){break}}if(c!==this){v.type=v.data;ap.event.handle.apply(this,arguments)}},a4=function(c){c.type=c.data;ap.event.handle.apply(this,arguments)};ap.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(v,c){ap.event.special[v]={setup:function(z){ap.event.add(this,c,z&&z.selector?a4:bj,v)},teardown:function(z){ap.event.remove(this,c,z&&z.selector?a4:bj)}}});if(!ap.support.submitBubbles){ap.event.special.submit={setup:function(v,c,z){if(this.nodeName.toLowerCase()!=="form"){ap.event.add(this,"click.specialSubmit."+z.guid,function(G){var J=G.target,F=J.type;if((F==="submit"||F==="image")&&ap(J).closest("form").length){return a6("submit",this,arguments)}});ap.event.add(this,"keypress.specialSubmit."+z.guid,function(G){var J=G.target,F=J.type;if((F==="text"||F==="password")&&ap(J).closest("form").length&&G.keyCode===13){return a6("submit",this,arguments)}})}else{return false}},remove:function(v,c){ap.event.remove(this,"click.specialSubmit"+(c?"."+c.guid:""));ap.event.remove(this,"keypress.specialSubmit"+(c?"."+c.guid:""))}}}if(!ap.support.changeBubbles){var B=/textarea|input|select/i;function aO(v){var c=v.type,z=v.value;if(c==="radio"||c==="checkbox"){z=v.checked}else{if(c==="select-multiple"){z=v.selectedIndex>-1?ap.map(v.options,function(F){return F.selected}).join("-"):""}else{if(v.nodeName.toLowerCase()==="select"){z=v.selectedIndex}}}return z}function k(v,c){var G=v.target,z,F;if(!(!B.test(G.nodeName)||G.readOnly)){z=ap.data(G,"_change_data");F=aO(G);if(v.type!=="focusout"||G.type!=="radio"){ap.data(G,"_change_data",F)}if(!(z===ah||F===z)){if(z!=null||F){v.type="change";return ap.event.trigger(v,c,G)}}}}ap.event.special.change={filters:{focusout:k,click:function(v){var c=v.target,z=c.type;if(z==="radio"||z==="checkbox"||c.nodeName.toLowerCase()==="select"){return k.call(this,v)}},keydown:function(v){var c=v.target,z=c.type;if(v.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||v.keyCode===32&&(z==="checkbox"||z==="radio")||z==="select-multiple"){return k.call(this,v)}},beforeactivate:function(c){c=c.target;c.nodeName.toLowerCase()==="input"&&c.type==="radio"&&ap.data(c,"_change_data",aO(c))}},setup:function(v,c,F){for(var z in aB){ap.event.add(this,z+".specialChange."+F.guid,aB[z])}return B.test(this.nodeName)},remove:function(v,c){for(var z in aB){ap.event.remove(this,z+".specialChange"+(c?"."+c.guid:""),aB[z])}return B.test(this.nodeName)}};var aB=ap.event.special.change.filters}ai.addEventListener&&ap.each({focus:"focusin",blur:"focusout"},function(v,c){function z(F){F=ap.event.fix(F);F.type=c;return ap.event.handle.call(this,F)}ap.event.special[c]={setup:function(){this.addEventListener(v,z,true)},teardown:function(){this.removeEventListener(v,z,true)}}});ap.each(["bind","one"],function(v,c){ap.fn[c]=function(K,G,J){if(typeof K==="object"){for(var F in K){this[c](F,G,K[F],J)}return this}if(ap.isFunction(G)){J=G;G=ah}var z=c==="one"?ap.proxy(J,function(L){ap(this).unbind(L,z);return J.apply(this,arguments)}):J;return K==="unload"&&c!=="one"?this.one(K,G,J):this.each(function(){ap.event.add(this,K,z,G)})}});ap.fn.extend({unbind:function(v,c){if(typeof v==="object"&&!v.preventDefault){for(var z in v){this.unbind(z,v[z])}return this}return this.each(function(){ap.event.remove(this,v,c)})},trigger:function(v,c){return this.each(function(){ap.event.trigger(v,c,this)})},triggerHandler:function(v,c){if(this[0]){v=ap.Event(v);v.preventDefault();v.stopPropagation();ap.event.trigger(v,c,this[0]);return v.result}},toggle:function(v){for(var c=arguments,z=1;z<c.length;){ap.proxy(v,c[z++])}return this.click(ap.proxy(v,function(F){var G=(ap.data(this,"lastToggle"+v.guid)||0)%z;ap.data(this,"lastToggle"+v.guid,G+1);F.preventDefault();return c[G].apply(this,arguments)||false}))},hover:function(v,c){return this.mouseenter(v).mouseleave(c||v)}});ap.each(["live","die"],function(v,c){ap.fn[c]=function(K,G,J){var F,z=0;if(ap.isFunction(G)){J=G;G=ah}for(K=(K||"").split(/\s+/);(F=K[z++])!=null;){F=F==="focus"?"focusin":F==="blur"?"focusout":F==="hover"?K.push("mouseleave")&&"mouseenter":F;c==="live"?ap(this.context).bind(ao(F,this.selector),{data:G,selector:this.selector,live:F},J):ap(this.context).unbind(ao(F,this.selector),J?{guid:J.guid+this.selector+F}:null)}return this}});ap.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(v,c){ap.fn[c]=function(z){return z?this.bind(c,z):this.trigger(c)};if(ap.attrFn){ap.attrFn[c]=true}});af.attachEvent&&!af.addEventListener&&af.attachEvent("onunload",function(){for(var v in ap.cache){if(ap.cache[v].handle){try{ap.event.remove(ap.cache[v].handle.elem)}catch(c){}}}});(function(){function bq(bx){for(var bv="",bu,bt=0;bx[bt];bt++){bu=bx[bt];if(bu.nodeType===3||bu.nodeType===4){bv+=bu.nodeValue}else{if(bu.nodeType!==8){bv+=bq(bu.childNodes)}}}return bv}function bb(bz,by,bx,bv,bt,bu){bt=0;for(var bB=bv.length;bt<bB;bt++){var bC=bv[bt];if(bC){bC=bC[bz];for(var bA=false;bC;){if(bC.sizcache===bx){bA=bv[bC.sizset];break}if(bC.nodeType===1&&!bu){bC.sizcache=bx;bC.sizset=bt}if(bC.nodeName.toLowerCase()===by){bA=bC;break}bC=bC[bz]}bv[bt]=bA}}}function ba(bz,by,bx,bv,bt,bu){bt=0;for(var bB=bv.length;bt<bB;bt++){var bC=bv[bt];if(bC){bC=bC[bz];for(var bA=false;bC;){if(bC.sizcache===bx){bA=bv[bC.sizset];break}if(bC.nodeType===1){if(!bu){bC.sizcache=bx;bC.sizset=bt}if(typeof by!=="string"){if(bC===by){bA=true;break}}else{if(L.filter(by,[bC]).length>0){bA=bC;break}}}bC=bC[bz]}bv[bt]=bA}}}var aa=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,ab=0,Y=Object.prototype.toString,Q=false,O=true;[0,0].sort(function(){O=false;return 0});var L=function(bB,bA,by,bx){by=by||[];var bu=bA=bA||ai;if(bA.nodeType!==1&&bA.nodeType!==9){return[]}if(!bB||typeof bB!=="string"){return by}for(var bv=[],bG,bH,bD,bz,bF=true,bC=v(bA),bE=bB;(aa.exec(""),bG=aa.exec(bE))!==null;){bE=bG[3];bv.push(bG[1]);if(bG[2]){bz=bG[3];break}}if(bv.length>1&&F.exec(bB)){if(bv.length===2&&P.relative[bv[0]]){bH=N(bv[0]+bv[1],bA)}else{for(bH=P.relative[bv[0]]?[bA]:L(bv.shift(),bA);bv.length;){bB=bv.shift();if(P.relative[bB]){bB+=bv.shift()}bH=N(bB,bH)}}}else{if(!bx&&bv.length>1&&bA.nodeType===9&&!bC&&P.match.ID.test(bv[0])&&!P.match.ID.test(bv[bv.length-1])){bG=L.find(bv.shift(),bA,bC);bA=bG.expr?L.filter(bG.expr,bG.set)[0]:bG.set[0]}if(bA){bG=bx?{expr:bv.pop(),set:K(bx)}:L.find(bv.pop(),bv.length===1&&(bv[0]==="~"||bv[0]==="+")&&bA.parentNode?bA.parentNode:bA,bC);bH=bG.expr?L.filter(bG.expr,bG.set):bG.set;if(bv.length>0){bD=K(bH)}else{bF=false}for(;bv.length;){var bt=bv.pop();bG=bt;if(P.relative[bt]){bG=bv.pop()}else{bt=""}if(bG==null){bG=bA}P.relative[bt](bD,bG,bC)}}else{bD=[]}}bD||(bD=bH);bD||L.error(bt||bB);if(Y.call(bD)==="[object Array]"){if(bF){if(bA&&bA.nodeType===1){for(bB=0;bD[bB]!=null;bB++){if(bD[bB]&&(bD[bB]===true||bD[bB].nodeType===1&&z(bA,bD[bB]))){by.push(bH[bB])}}}else{for(bB=0;bD[bB]!=null;bB++){bD[bB]&&bD[bB].nodeType===1&&by.push(bH[bB])}}}else{by.push.apply(by,bD)}}else{K(bD,by)}if(bz){L(bz,bu,by,bx);L.uniqueSort(by)}return by};L.uniqueSort=function(bu){if(G){Q=O;bu.sort(G);if(Q){for(var bt=1;bt<bu.length;bt++){bu[bt]===bu[bt-1]&&bu.splice(bt--,1)}}}return bu};L.matches=function(bu,bt){return L(bu,null,null,bt)};L.find=function(bz,by,bx){var bv,bt;if(!bz){return[]}for(var bu=0,bB=P.order.length;bu<bB;bu++){var bC=P.order[bu];if(bt=P.leftMatch[bC].exec(bz)){var bA=bt[1];bt.splice(1,1);if(bA.substr(bA.length-1)!=="\\"){bt[1]=(bt[1]||"").replace(/\\/g,"");bv=P.find[bC](bt,by,bx);if(bv!=null){bz=bz.replace(P.match[bC],"");break}}}}bv||(bv=by.getElementsByTagName("*"));return{set:bv,expr:bz}};L.filter=function(bD,bC,bA,bz){for(var bu=bD,bx=[],bI=bC,bJ,bF,bB=bC&&bC[0]&&v(bC[0]);bD&&bC.length;){for(var bH in P.filter){if((bJ=P.leftMatch[bH].exec(bD))!=null&&bJ[2]){var bE=P.filter[bH],bG,bt;bt=bJ[1];bF=false;bJ.splice(1,1);if(bt.substr(bt.length-1)!=="\\"){if(bI===bx){bx=[]}if(P.preFilter[bH]){if(bJ=P.preFilter[bH](bJ,bI,bA,bx,bz,bB)){if(bJ===true){continue}}else{bF=bG=true}}if(bJ){for(var by=0;(bt=bI[by])!=null;by++){if(bt){bG=bE(bt,bJ,by,bI);var bv=bz^!!bG;if(bA&&bG!=null){if(bv){bF=true}else{bI[by]=false}}else{if(bv){bx.push(bt);bF=true}}}}}if(bG!==ah){bA||(bI=bx);bD=bD.replace(P.match[bH],"");if(!bF){return[]}break}}}}if(bD===bu){if(bF==null){L.error(bD)}else{break}}bu=bD}return bI};L.error=function(bt){throw"Syntax error, unrecognized expression: "+bt};var P=L.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(bt){return bt.getAttribute("href")}},relative:{"+":function(bx,bv){var bu=typeof bv==="string",bt=bu&&!/\W/.test(bv);bu=bu&&!bt;if(bt){bv=bv.toLowerCase()}bt=0;for(var by=bx.length,bz;bt<by;bt++){if(bz=bx[bt]){for(;(bz=bz.previousSibling)&&bz.nodeType!==1;){}bx[bt]=bu||bz&&bz.nodeName.toLowerCase()===bv?bz||false:bz===bv}}bu&&L.filter(bv,bx,true)},">":function(bx,bv){var bu=typeof bv==="string";if(bu&&!/\W/.test(bv)){bv=bv.toLowerCase();for(var bt=0,by=bx.length;bt<by;bt++){var bz=bx[bt];if(bz){bu=bz.parentNode;bx[bt]=bu.nodeName.toLowerCase()===bv?bu:false}}}else{bt=0;for(by=bx.length;bt<by;bt++){if(bz=bx[bt]){bx[bt]=bu?bz.parentNode:bz.parentNode===bv}}bu&&L.filter(bv,bx,true)}},"":function(bx,bv,bu){var bt=ab++,by=ba;if(typeof bv==="string"&&!/\W/.test(bv)){var bz=bv=bv.toLowerCase();by=bb}by("parentNode",bv,bt,bx,bz,bu)},"~":function(bx,bv,bu){var bt=ab++,by=ba;if(typeof bv==="string"&&!/\W/.test(bv)){var bz=bv=bv.toLowerCase();by=bb}by("previousSibling",bv,bt,bx,bz,bu)}},find:{ID:function(bv,bu,bt){if(typeof bu.getElementById!=="undefined"&&!bt){return(bv=bu.getElementById(bv[1]))?[bv]:[]}},NAME:function(bx,bv){if(typeof bv.getElementsByName!=="undefined"){var bu=[];bv=bv.getElementsByName(bx[1]);for(var bt=0,by=bv.length;bt<by;bt++){bv[bt].getAttribute("name")===bx[1]&&bu.push(bv[bt])}return bu.length===0?null:bu}},TAG:function(bu,bt){return bt.getElementsByTagName(bu[1])}},preFilter:{CLASS:function(by,bx,bu,bt,bz,bA){by=" "+by[1].replace(/\\/g,"")+" ";if(bA){return by}bA=0;for(var bv;(bv=bx[bA])!=null;bA++){if(bv){if(bz^(bv.className&&(" "+bv.className+" ").replace(/[\t\n]/g," ").indexOf(by)>=0)){bu||bt.push(bv)}else{if(bu){bx[bA]=false}}}}return false},ID:function(bt){return bt[1].replace(/\\/g,"")},TAG:function(bt){return bt[1].toLowerCase()},CHILD:function(bu){if(bu[1]==="nth"){var bt=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(bu[2]==="even"&&"2n"||bu[2]==="odd"&&"2n+1"||!/\D/.test(bu[2])&&"0n+"+bu[2]||bu[2]);bu[2]=bt[1]+(bt[2]||1)-0;bu[3]=bt[3]-0}bu[0]=ab++;return bu},ATTR:function(bx,bv,bu,bt,by,bz){bv=bx[1].replace(/\\/g,"");if(!bz&&P.attrMap[bv]){bx[1]=P.attrMap[bv]}if(bx[2]==="~="){bx[4]=" "+bx[4]+" "}return bx},PSEUDO:function(bx,bv,bu,bt,by){if(bx[1]==="not"){if((aa.exec(bx[3])||"").length>1||/^\w/.test(bx[3])){bx[3]=L(bx[3],null,null,bv)}else{bx=L.filter(bx[3],bv,bu,true^by);bu||bt.push.apply(bt,bx);return false}}else{if(P.match.POS.test(bx[0])||P.match.CHILD.test(bx[0])){return true}}return bx},POS:function(bt){bt.unshift(true);return bt}},filters:{enabled:function(bt){return bt.disabled===false&&bt.type!=="hidden"},disabled:function(bt){return bt.disabled===true},checked:function(bt){return bt.checked===true},selected:function(bt){return bt.selected===true},parent:function(bt){return !!bt.firstChild},empty:function(bt){return !bt.firstChild},has:function(bv,bu,bt){return !!L(bt[3],bv).length},header:function(bt){return/h\d/i.test(bt.nodeName)},text:function(bt){return"text"===bt.type},radio:function(bt){return"radio"===bt.type},checkbox:function(bt){return"checkbox"===bt.type},file:function(bt){return"file"===bt.type},password:function(bt){return"password"===bt.type},submit:function(bt){return"submit"===bt.type},image:function(bt){return"image"===bt.type},reset:function(bt){return"reset"===bt.type},button:function(bt){return"button"===bt.type||bt.nodeName.toLowerCase()==="button"},input:function(bt){return/input|select|textarea|button/i.test(bt.nodeName)}},setFilters:{first:function(bu,bt){return bt===0},last:function(bx,bv,bu,bt){return bv===bt.length-1},even:function(bu,bt){return bt%2===0},odd:function(bu,bt){return bt%2===1},lt:function(bv,bu,bt){return bu<bt[3]-0},gt:function(bv,bu,bt){return bu>bt[3]-0},nth:function(bv,bu,bt){return bt[3]-0===bu},eq:function(bv,bu,bt){return bt[3]-0===bu}},filter:{PSEUDO:function(bx,bv,bu,bt){var by=bv[1],bz=P.filters[by];if(bz){return bz(bx,bu,bv,bt)}else{if(by==="contains"){return(bx.textContent||bx.innerText||bq([bx])||"").indexOf(bv[3])>=0}else{if(by==="not"){bv=bv[3];bu=0;for(bt=bv.length;bu<bt;bu++){if(bv[bu]===bx){return false}}return true}else{L.error("Syntax error, unrecognized expression: "+by)}}}},CHILD:function(by,bx){var bu=bx[1],bt=by;switch(bu){case"only":case"first":for(;bt=bt.previousSibling;){if(bt.nodeType===1){return false}}if(bu==="first"){return true}bt=by;case"last":for(;bt=bt.nextSibling;){if(bt.nodeType===1){return false}}return true;case"nth":bu=bx[2];var bz=bx[3];if(bu===1&&bz===0){return true}bx=bx[0];var bA=by.parentNode;if(bA&&(bA.sizcache!==bx||!by.nodeIndex)){var bv=0;for(bt=bA.firstChild;bt;bt=bt.nextSibling){if(bt.nodeType===1){bt.nodeIndex=++bv}}bA.sizcache=bx}by=by.nodeIndex-bz;return bu===0?by===0:by%bu===0&&by/bu>=0}},ID:function(bu,bt){return bu.nodeType===1&&bu.getAttribute("id")===bt},TAG:function(bu,bt){return bt==="*"&&bu.nodeType===1||bu.nodeName.toLowerCase()===bt},CLASS:function(bu,bt){return(" "+(bu.className||bu.getAttribute("class"))+" ").indexOf(bt)>-1},ATTR:function(bx,bv){var bu=bv[1];bx=P.attrHandle[bu]?P.attrHandle[bu](bx):bx[bu]!=null?bx[bu]:bx.getAttribute(bu);bu=bx+"";var bt=bv[2];bv=bv[4];return bx==null?bt==="!=":bt==="="?bu===bv:bt==="*="?bu.indexOf(bv)>=0:bt==="~="?(" "+bu+" ").indexOf(bv)>=0:!bv?bu&&bx!==false:bt==="!="?bu!==bv:bt==="^="?bu.indexOf(bv)===0:bt==="$="?bu.substr(bu.length-bv.length)===bv:bt==="|="?bu===bv||bu.substr(0,bv.length+1)===bv+"-":false},POS:function(bx,bv,bu,bt){var by=P.setFilters[bv[2]];if(by){return by(bx,bu,bv,bt)}}}},F=P.match.POS;for(var c in P.match){P.match[c]=new RegExp(P.match[c].source+/(?![^\[]*\])(?![^\(]*\))/.source);P.leftMatch[c]=new RegExp(/(^(?:.|\r|\n)*?)/.source+P.match[c].source.replace(/\\(\d+)/g,function(bu,bt){return"\\"+(bt-0+1)}))}var K=function(bu,bt){bu=Array.prototype.slice.call(bu,0);if(bt){bt.push.apply(bt,bu);return bt}return bu};try{Array.prototype.slice.call(ai.documentElement.childNodes,0)}catch(J){K=function(bx,bv){bv=bv||[];if(Y.call(bx)==="[object Array]"){Array.prototype.push.apply(bv,bx)}else{if(typeof bx.length==="number"){for(var bu=0,bt=bx.length;bu<bt;bu++){bv.push(bx[bu])}}else{for(bu=0;bx[bu];bu++){bv.push(bx[bu])}}}return bv}}var G;if(ai.documentElement.compareDocumentPosition){G=function(bu,bt){if(!bu.compareDocumentPosition||!bt.compareDocumentPosition){if(bu==bt){Q=true}return bu.compareDocumentPosition?-1:1}bu=bu.compareDocumentPosition(bt)&4?-1:bu===bt?0:1;if(bu===0){Q=true}return bu}}else{if("sourceIndex" in ai.documentElement){G=function(bu,bt){if(!bu.sourceIndex||!bt.sourceIndex){if(bu==bt){Q=true}return bu.sourceIndex?-1:1}bu=bu.sourceIndex-bt.sourceIndex;if(bu===0){Q=true}return bu}}else{if(ai.createRange){G=function(bx,bv){if(!bx.ownerDocument||!bv.ownerDocument){if(bx==bv){Q=true}return bx.ownerDocument?-1:1}var bu=bx.ownerDocument.createRange(),bt=bv.ownerDocument.createRange();bu.setStart(bx,0);bu.setEnd(bx,0);bt.setStart(bv,0);bt.setEnd(bv,0);bx=bu.compareBoundaryPoints(Range.START_TO_END,bt);if(bx===0){Q=true}return bx}}}}(function(){var bv=ai.createElement("div"),bu="script"+(new Date).getTime();bv.innerHTML="<a name='"+bu+"'/>";var bt=ai.documentElement;bt.insertBefore(bv,bt.firstChild);if(ai.getElementById(bu)){P.find.ID=function(bx,by,bz){if(typeof by.getElementById!=="undefined"&&!bz){return(by=by.getElementById(bx[1]))?by.id===bx[1]||typeof by.getAttributeNode!=="undefined"&&by.getAttributeNode("id").nodeValue===bx[1]?[by]:ah:[]}};P.filter.ID=function(bx,by){var bz=typeof bx.getAttributeNode!=="undefined"&&bx.getAttributeNode("id");return bx.nodeType===1&&bz&&bz.nodeValue===by}}bt.removeChild(bv);bt=bv=null})();(function(){var bt=ai.createElement("div");bt.appendChild(ai.createComment(""));if(bt.getElementsByTagName("*").length>0){P.find.TAG=function(bx,bv){bv=bv.getElementsByTagName(bx[1]);if(bx[1]==="*"){bx=[];for(var bu=0;bv[bu];bu++){bv[bu].nodeType===1&&bx.push(bv[bu])}bv=bx}return bv}}bt.innerHTML="<a href='#'></a>";if(bt.firstChild&&typeof bt.firstChild.getAttribute!=="undefined"&&bt.firstChild.getAttribute("href")!=="#"){P.attrHandle.href=function(bu){return bu.getAttribute("href",2)}}bt=null})();ai.querySelectorAll&&function(){var bv=L,bu=ai.createElement("div");bu.innerHTML="<p class='TEST'></p>";if(!(bu.querySelectorAll&&bu.querySelectorAll(".TEST").length===0)){L=function(bx,bA,bB,by){bA=bA||ai;if(!by&&bA.nodeType===9&&!v(bA)){try{return K(bA.querySelectorAll(bx),bB)}catch(bz){}}return bv(bx,bA,bB,by)};for(var bt in bv){L[bt]=bv[bt]}bu=null}}();(function(){var bt=ai.createElement("div");bt.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!bt.getElementsByClassName||bt.getElementsByClassName("e").length===0)){bt.lastChild.className="e";if(bt.getElementsByClassName("e").length!==1){P.order.splice(1,0,"CLASS");P.find.CLASS=function(bx,bv,bu){if(typeof bv.getElementsByClassName!=="undefined"&&!bu){return bv.getElementsByClassName(bx[1])}};bt=null}}})();var z=ai.compareDocumentPosition?function(bu,bt){return bu.compareDocumentPosition(bt)&16}:function(bu,bt){return bu!==bt&&(bu.contains?bu.contains(bt):true)},v=function(bt){return(bt=(bt?bt.ownerDocument||bt:0).documentElement)?bt.nodeName!=="HTML":false},N=function(bx,bv){var bu=[],bt="",by;for(bv=bv.nodeType?[bv]:bv;by=P.match.PSEUDO.exec(bx);){bt+=by[0];bx=bx.replace(P.match.PSEUDO,"")}bx=P.relative[bx]?bx+"*":bx;by=0;for(var bz=bv.length;by<bz;by++){L(bx,bv[by],bu)}return L.filter(bt,bu)};ap.find=L;ap.expr=L.selectors;ap.expr[":"]=ap.expr.filters;ap.unique=L.uniqueSort;ap.getText=bq;ap.isXMLDoc=v;ap.contains=z})();var aE=/Until$/,aj=/^(?:parents|prevUntil|prevAll)/,A=/,/;aD=Array.prototype.slice;var H=function(v,c,F){if(ap.isFunction(c)){return ap.grep(v,function(J,G){return !!c.call(J,G,J)===F})}else{if(c.nodeType){return ap.grep(v,function(G){return G===c===F})}else{if(typeof c==="string"){var z=ap.grep(v,function(G){return G.nodeType===1});if(ae.test(c)){return ap.filter(c,z,!F)}else{c=ap.filter(c,z)}}}}return ap.grep(v,function(G){return ap.inArray(G,c)>=0===F})};ap.fn.extend({find:function(v){for(var c=this.pushStack("","find",v),K=0,G=0,J=this.length;G<J;G++){K=c.length;ap.find(v,this[G],c);if(G>0){for(var F=K;F<c.length;F++){for(var z=0;z<K;z++){if(c[z]===c[F]){c.splice(F--,1);break}}}}}return c},has:function(v){var c=ap(v);return this.filter(function(){for(var F=0,z=c.length;F<z;F++){if(ap.contains(this,c[F])){return true}}})},not:function(c){return this.pushStack(H(this,c,false),"not",c)},filter:function(c){return this.pushStack(H(this,c,true),"filter",c)},is:function(c){return !!c&&ap.filter(c,this).length>0},closest:function(N,L){if(ap.isArray(N)){var K=[],G=this[0],J,F={},z;if(G&&N.length){J=0;for(var v=N.length;J<v;J++){z=N[J];F[z]||(F[z]=ap.expr.match.POS.test(z)?ap(z,L||this.context):z)}for(;G&&G.ownerDocument&&G!==L;){for(z in F){J=F[z];if(J.jquery?J.index(G)>-1:ap(G).is(J)){K.push({selector:z,elem:G});delete F[z]}}G=G.parentNode}}return K}var c=ap.expr.match.POS.test(N)?ap(N,L||this.context):null;return this.map(function(O,P){for(;P&&P.ownerDocument&&P!==L;){if(c?c.index(P)>-1:ap(P).is(N)){return P}P=P.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ap.inArray(this[0],c?ap(c):this.parent().children())}return ap.inArray(c.jquery?c[0]:c,this)},add:function(v,c){v=typeof v==="string"?ap(v,c||this.context):ap.makeArray(v);c=ap.merge(this.get(),v);return this.pushStack(M(v[0])||M(c[0])?c:ap.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ap.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ap.dir(c,"parentNode")},parentsUntil:function(v,c,z){return ap.dir(v,"parentNode",z)},next:function(c){return ap.nth(c,2,"nextSibling")},prev:function(c){return ap.nth(c,2,"previousSibling")},nextAll:function(c){return ap.dir(c,"nextSibling")},prevAll:function(c){return ap.dir(c,"previousSibling")},nextUntil:function(v,c,z){return ap.dir(v,"nextSibling",z)},prevUntil:function(v,c,z){return ap.dir(v,"previousSibling",z)},siblings:function(c){return ap.sibling(c.parentNode.firstChild,c)},children:function(c){return ap.sibling(c.firstChild)},contents:function(c){return ap.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ap.makeArray(c.childNodes)}},function(v,c){ap.fn[v]=function(G,z){var F=ap.map(this,c,G);aE.test(v)||(z=G);if(z&&typeof z==="string"){F=ap.filter(z,F)}F=this.length>1?ap.unique(F):F;if((this.length>1||A.test(z))&&aj.test(v)){F=F.reverse()}return this.pushStack(F,v,aD.call(arguments).join(","))}});ap.extend({filter:function(v,c,z){if(z){v=":not("+v+")"}return ap.find.matches(v,c)},dir:function(v,c,F){var z=[];for(v=v[c];v&&v.nodeType!==9&&(F===ah||v.nodeType!==1||!ap(v).is(F));){v.nodeType===1&&z.push(v);v=v[c]}return z},nth:function(v,c,F){c=c||1;for(var z=0;v;v=v[F]){if(v.nodeType===1&&++z===c){break}}return v},sibling:function(v,c){for(var z=[];v;v=v.nextSibling){v.nodeType===1&&v!==c&&z.push(v)}return z}});var n=/ jQuery\d+="(?:\d+|null)"/g,aA=/^\s+/,bm=/(<([\w:]+)[^>]*?)\/>/g,h=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,a7=/<([\w:]+)/,bi=/<tbody/i,a2=/<|&\w+;/,bc=/checked\s*(?:[^=]|=\s*.checked.)/i,aT=function(v,c,z){return h.test(z)?v:c+"></"+z+">"},aR={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,"",""]};aR.optgroup=aR.option;aR.tbody=aR.tfoot=aR.colgroup=aR.caption=aR.thead;aR.th=aR.td;if(!ap.support.htmlSerialize){aR._default=[1,"div<div>","</div>"]}ap.fn.extend({text:function(c){if(ap.isFunction(c)){return this.each(function(v){var z=ap(this);z.text(c.call(this,v,z.text()))})}if(typeof c!=="object"&&c!==ah){return this.empty().append((this[0]&&this[0].ownerDocument||ai).createTextNode(c))}return ap.getText(this)},wrapAll:function(v){if(ap.isFunction(v)){return this.each(function(z){ap(this).wrapAll(v.call(this,z))})}if(this[0]){var c=ap(v,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var z=this;z.firstChild&&z.firstChild.nodeType===1;){z=z.firstChild}return z}).append(this)}return this},wrapInner:function(c){if(ap.isFunction(c)){return this.each(function(v){ap(this).wrapInner(c.call(this,v))})}return this.each(function(){var v=ap(this),z=v.contents();z.length?z.wrapAll(c):v.append(c)})},wrap:function(c){return this.each(function(){ap(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ap.nodeName(this,"body")||ap(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(v){this.parentNode.insertBefore(v,this)})}else{if(arguments.length){var c=ap(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(v){this.parentNode.insertBefore(v,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ap(arguments[0]).toArray());return c}}},clone:function(v){var c=this.map(function(){if(!ap.support.noCloneEvent&&!ap.isXMLDoc(this)){var F=this.outerHTML,z=this.ownerDocument;if(!F){F=z.createElement("div");F.appendChild(this.cloneNode(true));F=F.innerHTML}return ap.clean([F.replace(n,"").replace(aA,"")],z)[0]}else{return this.cloneNode(true)}});if(v===true){p(this,c);p(this.find("*"),c.find("*"))}return c},html:function(v){if(v===ah){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(n,""):null}else{if(typeof v==="string"&&!/<script/i.test(v)&&(ap.support.leadingWhitespace||!aA.test(v))&&!aR[(a7.exec(v)||["",""])[1].toLowerCase()]){v=v.replace(bm,aT);try{for(var c=0,F=this.length;c<F;c++){if(this[c].nodeType===1){ap.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=v}}}catch(z){this.empty().append(v)}}else{ap.isFunction(v)?this.each(function(K){var J=ap(this),G=J.html();J.empty().append(function(){return v.call(this,K,G)})}):this.empty().append(v)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ap.isFunction(c)){return this.each(function(v){var F=ap(this),z=F.html();F.replaceWith(c.call(this,v,z))})}else{c=ap(c).detach()}return this.each(function(){var v=this.nextSibling,z=this.parentNode;ap(this).remove();v?ap(v).before(c):ap(z).append(c)})}else{return this.pushStack(ap(ap.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(O,N,L){function J(P){return ap.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var K,G,F=O[0],v=[];if(!ap.support.checkClone&&arguments.length===3&&typeof F==="string"&&bc.test(F)){return this.each(function(){ap(this).domManip(O,N,L,true)})}if(ap.isFunction(F)){return this.each(function(Q){var P=ap(this);O[0]=F.call(this,Q,N?P.html():ah);P.domManip(O,N,L)})}if(this[0]){K=O[0]&&O[0].parentNode&&O[0].parentNode.nodeType===11?{fragment:O[0].parentNode}:bo(O,this,v);if(G=K.fragment.firstChild){N=N&&ap.nodeName(G,"tr");for(var c=0,z=this.length;c<z;c++){L.call(N?J(this[c],G):this[c],K.cacheable||this.length>1||c>0?K.fragment.cloneNode(true):K.fragment)}}v&&ap.each(v,bp)}return this}});ap.fragments={};ap.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(v,c){ap.fn[v]=function(K){var G=[];K=ap(K);for(var J=0,F=K.length;J<F;J++){var z=(J>0?this.clone(true):this).get();ap.fn[c].apply(ap(K[J]),z);G=G.concat(z)}return this.pushStack(G,v,K.selector)}});ap.each({remove:function(v,c){if(!v||ap.filter(v,[this]).length){if(!c&&this.nodeType===1){ap.cleanData(this.getElementsByTagName("*"));ap.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&ap.cleanData(this.getElementsByTagName("*"));this.firstChild;){this.removeChild(this.firstChild)}}},function(v,c){ap.fn[v]=function(){return this.each(c,arguments)}});ap.extend({clean:function(v,c,G,z){c=c||ai;if(typeof c.createElement==="undefined"){c=c.ownerDocument||c[0]&&c[0].ownerDocument||ai}var F=[];ap.each(v,function(L,K){if(typeof K==="number"){K+=""}if(K){if(typeof K==="string"&&!a2.test(K)){K=c.createTextNode(K)}else{if(typeof K==="string"){K=K.replace(bm,aT);var O=(a7.exec(K)||["",""])[1].toLowerCase(),N=aR[O]||aR._default,J=N[0];L=c.createElement("div");for(L.innerHTML=N[1]+K+N[2];J--;){L=L.lastChild}if(!ap.support.tbody){J=bi.test(K);O=O==="table"&&!J?L.firstChild&&L.firstChild.childNodes:N[1]==="<table>"&&!J?L.childNodes:[];for(N=O.length-1;N>=0;--N){ap.nodeName(O[N],"tbody")&&!O[N].childNodes.length&&O[N].parentNode.removeChild(O[N])}}!ap.support.leadingWhitespace&&aA.test(K)&&L.insertBefore(c.createTextNode(aA.exec(K)[0]),L.firstChild);K=ap.makeArray(L.childNodes)}}if(K.nodeType){F.push(K)}else{F=ap.merge(F,K)}}});if(G){for(v=0;F[v];v++){if(z&&ap.nodeName(F[v],"script")&&(!F[v].type||F[v].type.toLowerCase()==="text/javascript")){z.push(F[v].parentNode?F[v].parentNode.removeChild(F[v]):F[v])}else{F[v].nodeType===1&&F.splice.apply(F,[v+1,0].concat(ap.makeArray(F[v].getElementsByTagName("script"))));G.appendChild(F[v])}}}return F},cleanData:function(v){for(var c=0,z;(z=v[c])!=null;c++){ap.event.remove(z);ap.removeData(z)}}});var aL=/z-?index|font-?weight|opacity|zoom|line-?height/i,aq=/alpha\([^)]*\)/,R=/opacity=([^)]*)/,a3=/float/i,aM=/-([a-z])/ig,al=/([A-Z])/g,D=/^-?\d+(?:px)?$/i,l=/^-?\d/,bk={position:"absolute",visibility:"hidden",display:"block"},a5=["Left","Right"],aQ=["Top","Bottom"],an=ai.defaultView&&ai.defaultView.getComputedStyle,q=ap.support.cssFloat?"cssFloat":"styleFloat",am=function(v,c){return c.toUpperCase()};ap.fn.css=function(v,c){return ay(this,v,c,true,function(G,z,F){if(F===ah){return ap.curCSS(G,z)}if(typeof F==="number"&&!aL.test(z)){F+="px"}ap.style(G,z,F)})};ap.extend({style:function(v,c,G){if(!v||v.nodeType===3||v.nodeType===8){return ah}if((c==="width"||c==="height")&&parseFloat(G)<0){G=ah}var z=v.style||v,F=G!==ah;if(!ap.support.opacity&&c==="opacity"){if(F){z.zoom=1;c=parseInt(G,10)+""==="NaN"?"":"alpha(opacity="+G*100+")";v=z.filter||ap.curCSS(v,"filter")||"";z.filter=aq.test(v)?v.replace(aq,c):c}return z.filter&&z.filter.indexOf("opacity=")>=0?parseFloat(R.exec(z.filter)[1])/100+"":""}if(a3.test(c)){c=q}c=c.replace(aM,am);if(F){z[c]=G}return z[c]},css:function(v,c,K,G){if(c==="width"||c==="height"){var J,F=c==="width"?a5:aQ;function z(){J=c==="width"?v.offsetWidth:v.offsetHeight;G!=="border"&&ap.each(F,function(){G||(J-=parseFloat(ap.curCSS(v,"padding"+this,true))||0);if(G==="margin"){J+=parseFloat(ap.curCSS(v,"margin"+this,true))||0}else{J-=parseFloat(ap.curCSS(v,"border"+this+"Width",true))||0}})}v.offsetWidth!==0?z():ap.swap(v,bk,z);return Math.max(0,Math.round(J))}return ap.curCSS(v,c,K)},curCSS:function(v,c,J){var F,G=v.style;if(!ap.support.opacity&&c==="opacity"&&v.currentStyle){F=R.test(v.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return F===""?"1":F}if(a3.test(c)){c=q}if(!J&&G&&G[c]){F=G[c]}else{if(an){if(a3.test(c)){c="float"}c=c.replace(al,"-$1").toLowerCase();G=v.ownerDocument.defaultView;if(!G){return null}if(v=G.getComputedStyle(v,null)){F=v.getPropertyValue(c)}if(c==="opacity"&&F===""){F="1"}}else{if(v.currentStyle){J=c.replace(aM,am);F=v.currentStyle[c]||v.currentStyle[J];if(!D.test(F)&&l.test(F)){c=G.left;var z=v.runtimeStyle.left;v.runtimeStyle.left=v.currentStyle.left;G.left=J==="fontSize"?"1em":F||0;F=G.pixelLeft+"px";G.left=c;v.runtimeStyle.left=z}}}}return F},swap:function(v,c,G){var z={};for(var F in c){z[F]=v.style[F];v.style[F]=c[F]}G.call(v);for(F in c){v.style[F]=z[F]}}});if(ap.expr&&ap.expr.filters){ap.expr.filters.hidden=function(v){var c=v.offsetWidth,F=v.offsetHeight,z=v.nodeName.toLowerCase()==="tr";return c===0&&F===0&&!z?true:c>0&&F>0&&!z?false:ap.curCSS(v,"display")==="none"};ap.expr.filters.visible=function(c){return !ap.expr.filters.hidden(c)}}var I=aN(),o=/<script(.|\s)*?\/script>/gi,bn=/select|textarea/i,a9=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aI=/=\?(&|$)/,E=/\?/,aV=/(\?|&)_=.*?(&|$)/,ar=/^(\w+:)?\/\/([^\/?#]+)/,ac=/%20/g;ap.fn.extend({_load:ap.fn.load,load:function(v,c,J){if(typeof v!=="string"){return this._load(v)}else{if(!this.length){return this}}var F=v.indexOf(" ");if(F>=0){var G=v.slice(F,v.length);v=v.slice(0,F)}F="GET";if(c){if(ap.isFunction(c)){J=c;c=null}else{if(typeof c==="object"){c=ap.param(c,ap.ajaxSettings.traditional);F="POST"}}}var z=this;ap.ajax({url:v,type:F,dataType:"html",data:c,complete:function(K,L){if(L==="success"||L==="notmodified"){z.html(G?ap("<div />").append(K.responseText.replace(o,"")).find(G):K.responseText)}J&&z.each(J,[K.responseText,L,K])}});return this},serialize:function(){return ap.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ap.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bn.test(this.nodeName)||a9.test(this.type))}).map(function(v,c){v=ap(this).val();return v==null?null:ap.isArray(v)?ap.map(v,function(z){return{name:c.name,value:z}}):{name:c.name,value:v}}).get()}});ap.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(v,c){ap.fn[c]=function(z){return this.bind(c,z)}});ap.extend({get:function(v,c,F,z){if(ap.isFunction(c)){z=z||F;F=c;c=null}return ap.ajax({type:"GET",url:v,data:c,success:F,dataType:z})},getScript:function(v,c){return ap.get(v,null,c,"script")},getJSON:function(v,c,z){return ap.get(v,c,z,"json")},post:function(v,c,F,z){if(ap.isFunction(c)){z=z||F;F=c;c={}}return ap.ajax({type:"POST",url:v,data:c,success:F,dataType:z})},ajaxSetup:function(c){ap.extend(ap.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:af.XMLHttpRequest&&(af.location.protocol!=="file:"||!af.ActiveXObject)?function(){return new af.XMLHttpRequest}:function(){try{return new af.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(bx){function bv(){bt.success&&bt.success.call(L,O,aa,v);bt.global&&bq("ajaxSuccess",[v,bt])}function bu(){bt.complete&&bt.complete.call(L,v,aa);bt.global&&bq("ajaxComplete",[v,bt]);bt.global&&!--ap.active&&ap.event.trigger("ajaxStop")}function bq(by,bz){(bt.context?ap(bt.context):ap.event).trigger(by,bz)}var bt=ap.extend(true,{},ap.ajaxSettings,bx),ab,aa,O,L=bx&&bx.context||bt,P=bt.type.toUpperCase();if(bt.data&&bt.processData&&typeof bt.data!=="string"){bt.data=ap.param(bt.data,bt.traditional)}if(bt.dataType==="jsonp"){if(P==="GET"){aI.test(bt.url)||(bt.url+=(E.test(bt.url)?"&":"?")+(bt.jsonp||"callback")+"=?")}else{if(!bt.data||!aI.test(bt.data)){bt.data=(bt.data?bt.data+"&":"")+(bt.jsonp||"callback")+"=?"}}bt.dataType="json"}if(bt.dataType==="json"&&(bt.data&&aI.test(bt.data)||aI.test(bt.url))){ab=bt.jsonpCallback||"jsonp"+I++;if(bt.data){bt.data=(bt.data+"").replace(aI,"="+ab+"$1")}bt.url=bt.url.replace(aI,"="+ab+"$1");bt.dataType="script";af[ab]=af[ab]||function(by){O=by;bv();bu();af[ab]=ah;try{delete af[ab]}catch(bz){}K&&K.removeChild(J)}}if(bt.dataType==="script"&&bt.cache===null){bt.cache=false}if(bt.cache===false&&P==="GET"){var F=aN(),c=bt.url.replace(aV,"$1_="+F+"$2");bt.url=c+(c===bt.url?(E.test(bt.url)?"&":"?")+"_="+F:"")}if(bt.data&&P==="GET"){bt.url+=(E.test(bt.url)?"&":"?")+bt.data}bt.global&&!ap.active++&&ap.event.trigger("ajaxStart");F=(F=ar.exec(bt.url))&&(F[1]&&F[1]!==location.protocol||F[2]!==location.host);if(bt.dataType==="script"&&P==="GET"&&F){var K=ai.getElementsByTagName("head")[0]||ai.documentElement,J=ai.createElement("script");J.src=bt.url;if(bt.scriptCharset){J.charset=bt.scriptCharset}if(!ab){var G=false;J.onload=J.onreadystatechange=function(){if(!G&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){G=true;bv();bu();J.onload=J.onreadystatechange=null;K&&J.parentNode&&K.removeChild(J)}}}K.insertBefore(J,K.firstChild);return ah}var z=false,v=bt.xhr();if(v){bt.username?v.open(P,bt.url,bt.async,bt.username,bt.password):v.open(P,bt.url,bt.async);try{if(bt.data||bx&&bx.contentType){v.setRequestHeader("Content-Type",bt.contentType)}if(bt.ifModified){ap.lastModified[bt.url]&&v.setRequestHeader("If-Modified-Since",ap.lastModified[bt.url]);ap.etag[bt.url]&&v.setRequestHeader("If-None-Match",ap.etag[bt.url])}F||v.setRequestHeader("X-Requested-With","XMLHttpRequest");v.setRequestHeader("Accept",bt.dataType&&bt.accepts[bt.dataType]?bt.accepts[bt.dataType]+", */*":bt.accepts._default)}catch(N){}if(bt.beforeSend&&bt.beforeSend.call(L,v,bt)===false){bt.global&&!--ap.active&&ap.event.trigger("ajaxStop");v.abort();return false}bt.global&&bq("ajaxSend",[v,bt]);var bb=v.onreadystatechange=function(bz){if(!v||v.readyState===0||bz==="abort"){z||bu();z=true;if(v){v.onreadystatechange=ap.noop}}else{if(!z&&v&&(v.readyState===4||bz==="timeout")){z=true;v.onreadystatechange=ap.noop;aa=bz==="timeout"?"timeout":!ap.httpSuccess(v)?"error":bt.ifModified&&ap.httpNotModified(v,bt.url)?"notmodified":"success";var bA;if(aa==="success"){try{O=ap.httpData(v,bt.dataType,bt)}catch(by){aa="parsererror";bA=by}}if(aa==="success"||aa==="notmodified"){ab||bv()}else{ap.handleError(bt,v,aa,bA)}bu();bz==="timeout"&&v.abort();if(bt.async){v=null}}}};try{var ba=v.abort;v.abort=function(){v&&ba.call(v);bb("abort")}}catch(Y){}bt.async&&bt.timeout>0&&setTimeout(function(){v&&!z&&bb("timeout")},bt.timeout);try{v.send(P==="POST"||P==="PUT"||P==="DELETE"?bt.data:null)}catch(Q){ap.handleError(bt,v,null,Q);bu()}bt.async||bb();return v}},handleError:function(v,c,F,z){if(v.error){v.error.call(v.context||v,c,F,z)}if(v.global){(v.context?ap(v.context):ap.event).trigger("ajaxError",[c,v,z])}},active:0,httpSuccess:function(v){try{return !v.status&&location.protocol==="file:"||v.status>=200&&v.status<300||v.status===304||v.status===1223||v.status===0}catch(c){}return false},httpNotModified:function(v,c){var F=v.getResponseHeader("Last-Modified"),z=v.getResponseHeader("Etag");if(F){ap.lastModified[c]=F}if(z){ap.etag[c]=z}return v.status===304||v.status===0},httpData:function(v,c,G){var z=v.getResponseHeader("content-type")||"",F=c==="xml"||!c&&z.indexOf("xml")>=0;v=F?v.responseXML:v.responseText;F&&v.documentElement.nodeName==="parsererror"&&ap.error("parsererror");if(G&&G.dataFilter){v=G.dataFilter(v,c)}if(typeof v==="string"){if(c==="json"||!c&&z.indexOf("json")>=0){v=ap.parseJSON(v)}else{if(c==="script"||!c&&z.indexOf("javascript")>=0){ap.globalEval(v)}}}return v},param:function(v,c){function J(K,L){if(ap.isArray(L)){ap.each(L,function(O,N){c?F(K,N):J(K+"["+(typeof N==="object"||ap.isArray(N)?O:"")+"]",N)})}else{!c&&L!=null&&typeof L==="object"?ap.each(L,function(O,N){J(K+"["+O+"]",N)}):F(K,L)}}function F(K,L){L=ap.isFunction(L)?L():L;G[G.length]=encodeURIComponent(K)+"="+encodeURIComponent(L)}var G=[];if(c===ah){c=ap.ajaxSettings.traditional}if(ap.isArray(v)||v.jquery){ap.each(v,function(){F(this.name,this.value)})}else{for(var z in v){J(z,v[z])}}return G.join("&").replace(ac,"+")}});var m={},s=/toggle|show|hide/,b=/^([+-]=)?([\d+-.]+)(.*)$/,az,aW=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ap.fn.extend({show:function(v,c){if(v||v===0){return this.animate(aK("show",3),v,c)}else{v=0;for(c=this.length;v<c;v++){var G=ap.data(this[v],"olddisplay");this[v].style.display=G||"";if(ap.css(this[v],"display")==="none"){G=this[v].nodeName;var z;if(m[G]){z=m[G]}else{var F=ap("<"+G+" />").appendTo("body");z=F.css("display");if(z==="none"){z="block"}F.remove();m[G]=z}ap.data(this[v],"olddisplay",z)}}v=0;for(c=this.length;v<c;v++){this[v].style.display=ap.data(this[v],"olddisplay")||""}return this}},hide:function(v,c){if(v||v===0){return this.animate(aK("hide",3),v,c)}else{v=0;for(c=this.length;v<c;v++){var z=ap.data(this[v],"olddisplay");!z&&z!=="none"&&ap.data(this[v],"olddisplay",ap.css(this[v],"display"))}v=0;for(c=this.length;v<c;v++){this[v].style.display="none"}return this}},_toggle:ap.fn.toggle,toggle:function(v,c){var z=typeof v==="boolean";if(ap.isFunction(v)&&ap.isFunction(c)){this._toggle.apply(this,arguments)}else{v==null||z?this.each(function(){var F=z?v:ap(this).is(":hidden");ap(this)[F?"show":"hide"]()}):this.animate(aK("toggle",3),v,c)}return this},fadeTo:function(v,c,z){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},v,z)},animate:function(v,c,G,z){var F=ap.speed(c,G,z);if(ap.isEmptyObject(v)){return this.each(F.complete)}return this[F.queue===false?"each":"queue"](function(){var L=ap.extend({},F),K,O=this.nodeType===1&&ap(this).is(":hidden"),N=this;for(K in v){var J=K.replace(aM,am);if(K!==J){v[J]=v[K];delete v[K];K=J}if(v[K]==="hide"&&O||v[K]==="show"&&!O){return L.complete.call(this)}if((K==="height"||K==="width")&&this.style){L.display=ap.css(this,"display");L.overflow=this.style.overflow}if(ap.isArray(v[K])){(L.specialEasing=L.specialEasing||{})[K]=v[K][1];v[K]=v[K][0]}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=ap.extend({},v);ap.each(v,function(Y,Q){var P=new ap.fx(N,L,Y);if(s.test(Q)){P[Q==="toggle"?O?"show":"hide":Q](v)}else{var ba=b.exec(Q),ab=P.cur(true)||0;if(ba){Q=parseFloat(ba[2]);var aa=ba[3]||"px";if(aa!=="px"){N.style[Y]=(Q||1)+aa;ab=(Q||1)/P.cur(true)*ab;N.style[Y]=ab+aa}if(ba[1]){Q=(ba[1]==="-="?-1:1)*Q+ab}P.custom(ab,Q,aa)}else{P.custom(ab,Q,"")}}});return true})},stop:function(v,c){var z=ap.timers;v&&this.queue([]);this.each(function(){for(var F=z.length-1;F>=0;F--){if(z[F].elem===this){c&&z[F](true);z.splice(F,1)}}});c||this.dequeue();return this}});ap.each({slideDown:aK("show",1),slideUp:aK("hide",1),slideToggle:aK("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(v,c){ap.fn[v]=function(F,z){return this.animate(c,F,z)}});ap.extend({speed:function(v,c,F){var z=v&&typeof v==="object"?v:{complete:F||!F&&c||ap.isFunction(v)&&v,duration:v,easing:F&&c||c&&!ap.isFunction(c)&&c};z.duration=ap.fx.off?0:typeof z.duration==="number"?z.duration:ap.fx.speeds[z.duration]||ap.fx.speeds._default;z.old=z.complete;z.complete=function(){z.queue!==false&&ap(this).dequeue();ap.isFunction(z.old)&&z.old.call(this)};return z},easing:{linear:function(v,c,F,z){return F+z*v},swing:function(v,c,F,z){return(-Math.cos(v*Math.PI)/2+0.5)*z+F}},timers:[],fx:function(v,c,z){this.options=c;this.elem=v;this.prop=z;if(!c.orig){c.orig={}}}});ap.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ap.fx.step[this.prop]||ap.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(ap.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ap.curCSS(this.elem,this.prop))||0},custom:function(v,c,G){function z(J){return F.step(J)}this.startTime=aN();this.start=v;this.end=c;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var F=this;z.elem=this.elem;if(z()&&ap.timers.push(z)&&!az){az=setInterval(ap.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ap(this.elem).show()},hide:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(v){var c=aN(),G=true;if(v||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 z in this.options.curAnim){if(this.options.curAnim[z]!==true){G=false}}if(G){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;v=ap.data(this.elem,"olddisplay");this.elem.style.display=v?v:this.options.display;if(ap.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ap(this.elem).hide();if(this.options.hide||this.options.show){for(var F in this.options.curAnim){ap.style(this.elem,F,this.options.orig[F])}}this.options.complete.call(this.elem)}return false}else{F=c-this.startTime;this.state=F/this.options.duration;v=this.options.easing||(ap.easing.swing?"swing":"linear");this.pos=ap.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||v](this.state,F,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ap.extend(ap.fx,{tick:function(){for(var v=ap.timers,c=0;c<v.length;c++){v[c]()||v.splice(c--,1)}v.length||ap.fx.stop()},stop:function(){clearInterval(az);az=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ap.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(ap.expr&&ap.expr.filters){ap.expr.filters.animated=function(c){return ap.grep(ap.timers,function(v){return c===v.elem}).length}}ap.fn.offset="getBoundingClientRect" in ai.documentElement?function(v){var c=this[0];if(v){return this.each(function(G){ap.offset.setOffset(this,v,G)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ap.offset.bodyOffset(c)}var F=c.getBoundingClientRect(),z=c.ownerDocument;c=z.body;z=z.documentElement;return{top:F.top+(self.pageYOffset||ap.support.boxModel&&z.scrollTop||c.scrollTop)-(z.clientTop||c.clientTop||0),left:F.left+(self.pageXOffset||ap.support.boxModel&&z.scrollLeft||c.scrollLeft)-(z.clientLeft||c.clientLeft||0)}}:function(O){var N=this[0];if(O){return this.each(function(P){ap.offset.setOffset(this,O,P)})}if(!N||!N.ownerDocument){return null}if(N===N.ownerDocument.body){return ap.offset.bodyOffset(N)}ap.offset.initialize();var L=N.offsetParent,J=N,K=N.ownerDocument,G,F=K.documentElement,v=K.body;J=(K=K.defaultView)?K.getComputedStyle(N,null):N.currentStyle;for(var c=N.offsetTop,z=N.offsetLeft;(N=N.parentNode)&&N!==v&&N!==F;){if(ap.offset.supportsFixedPosition&&J.position==="fixed"){break}G=K?K.getComputedStyle(N,null):N.currentStyle;c-=N.scrollTop;z-=N.scrollLeft;if(N===L){c+=N.offsetTop;z+=N.offsetLeft;if(ap.offset.doesNotAddBorder&&!(ap.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(N.nodeName))){c+=parseFloat(G.borderTopWidth)||0;z+=parseFloat(G.borderLeftWidth)||0}J=L;L=N.offsetParent}if(ap.offset.subtractsBorderForOverflowNotVisible&&G.overflow!=="visible"){c+=parseFloat(G.borderTopWidth)||0;z+=parseFloat(G.borderLeftWidth)||0}J=G}if(J.position==="relative"||J.position==="static"){c+=v.offsetTop;z+=v.offsetLeft}if(ap.offset.supportsFixedPosition&&J.position==="fixed"){c+=Math.max(F.scrollTop,v.scrollTop);z+=Math.max(F.scrollLeft,v.scrollLeft)}return{top:c,left:z}};ap.offset={initialize:function(){var v=ai.body,c=ai.createElement("div"),J,F,G,z=parseFloat(ap.curCSS(v,"marginTop",true))||0;ap.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>";v.insertBefore(c,v.firstChild);J=c.firstChild;F=J.firstChild;G=J.nextSibling.firstChild.firstChild;this.doesNotAddBorder=F.offsetTop!==5;this.doesAddBorderForTableAndCells=G.offsetTop===5;F.style.position="fixed";F.style.top="20px";this.supportsFixedPosition=F.offsetTop===20||F.offsetTop===15;F.style.position=F.style.top="";J.style.overflow="hidden";J.style.position="relative";this.subtractsBorderForOverflowNotVisible=F.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=v.offsetTop!==z;v.removeChild(c);ap.offset.initialize=ap.noop},bodyOffset:function(v){var c=v.offsetTop,z=v.offsetLeft;ap.offset.initialize();if(ap.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ap.curCSS(v,"marginTop",true))||0;z+=parseFloat(ap.curCSS(v,"marginLeft",true))||0}return{top:c,left:z}},setOffset:function(v,c,K){if(/static/.test(ap.curCSS(v,"position"))){v.style.position="relative"}var G=ap(v),J=G.offset(),F=parseInt(ap.curCSS(v,"top",true),10)||0,z=parseInt(ap.curCSS(v,"left",true),10)||0;if(ap.isFunction(c)){c=c.call(v,K,J)}K={top:c.top-J.top+F,left:c.left-J.left+z};"using" in c?c.using.call(v,K):G.css(K)}};ap.fn.extend({position:function(){if(!this[0]){return null}var v=this[0],c=this.offsetParent(),F=this.offset(),z=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();F.top-=parseFloat(ap.curCSS(v,"marginTop",true))||0;F.left-=parseFloat(ap.curCSS(v,"marginLeft",true))||0;z.top+=parseFloat(ap.curCSS(c[0],"borderTopWidth",true))||0;z.left+=parseFloat(ap.curCSS(c[0],"borderLeftWidth",true))||0;return{top:F.top-z.top,left:F.left-z.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||ai.body;c&&!/^body|html$/i.test(c.nodeName)&&ap.css(c,"position")==="static";){c=c.offsetParent}return c})}});ap.each(["Left","Top"],function(v,c){var z="scroll"+c;ap.fn[z]=function(G){var J=this[0],F;if(!J){return null}if(G!==ah){return this.each(function(){if(F=at(this)){F.scrollTo(!v?G:ap(F).scrollLeft(),v?G:ap(F).scrollTop())}else{this[z]=G}})}else{return(F=at(J))?"pageXOffset" in F?F[v?"pageYOffset":"pageXOffset"]:ap.support.boxModel&&F.document.documentElement[z]||F.document.body[z]:J[z]}}});ap.each(["Height","Width"],function(v,c){var z=c.toLowerCase();ap.fn["inner"+c]=function(){return this[0]?ap.css(this[0],z,false,"padding"):null};ap.fn["outer"+c]=function(F){return this[0]?ap.css(this[0],z,false,F?"margin":"border"):null};ap.fn[z]=function(F){var G=this[0];if(!G){return F==null?null:this}if(ap.isFunction(F)){return this.each(function(K){var J=ap(this);J[z](F.call(this,K,J[z]()))})}return"scrollTo" in G&&G.document?G.document.compatMode==="CSS1Compat"&&G.document.documentElement["client"+c]||G.document.body["client"+c]:G.nodeType===9?Math.max(G.documentElement["client"+c],G.body["scroll"+c],G.documentElement["scroll"+c],G.body["offset"+c],G.documentElement["offset"+c]):F===ah?ap.css(G,z):this.css(z,typeof F==="string"?F:F+"px")}});af.jQuery=af.$=ap})(window);jQuery.ui||(function(q){var k=q.fn.remove,p=q.browser.mozilla&&(parseFloat(q.browser.version)<1.9);q.ui={version:"1.7.2",plugin:{add:function(d,c,g){var b=q.ui[d].prototype;for(var f in g){b.plugins[f]=b.plugins[f]||[];b.plugins[f].push([c,g[f]])}},call:function(f,c,d){var g=f.plugins[c];if(!g||!f.element[0].parentNode){return}for(var b=0;b<g.length;b++){if(f.options[g[b][0]]){g[b][1].apply(f.element,d)}}}},contains:function(b,c){return document.compareDocumentPosition?b.compareDocumentPosition(c)&16:b!==c&&b.contains(c)},hasScroll:function(b,d){if(q(b).css("overflow")=="hidden"){return false}var f=(d&&d=="left")?"scrollLeft":"scrollTop",c=false;if(b[f]>0){return true}b[f]=1;c=(b[f]>0);b[f]=0;return c},isOverAxis:function(c,d,b){return(c>d)&&(c<(d+b))},isOver:function(g,d,h,b,f,c){return q.ui.isOverAxis(g,h,f)&&q.ui.isOverAxis(d,b,c)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(p){var n=q.attr,o=q.fn.removeAttr,l="http://www.w3.org/2005/07/aaa",u=/^aria-/,s=/^wairole:/;q.attr=function(d,f,c){var b=c!==undefined;return(f=="role"?(b?n.call(this,d,f,"wairole:"+c):(n.apply(this,arguments)||"").replace(s,"")):(u.test(f)?(b?d.setAttributeNS(l,f.replace(u,"aaa:"),c):n.call(this,d,f.replace(u,"aaa:"))):n.apply(this,arguments)))};q.fn.removeAttr=function(b){return(u.test(b)?this.each(function(){this.removeAttributeNS(l,b.replace(u,""))}):o.call(this,b))}}q.fn.extend({remove:function(){q("*",this).add(this).each(function(){q(this).triggerHandler("remove")});return k.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var b;if((q.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){b=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(q.curCSS(this,"position",1))&&(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1))}).eq(0)}else{b=this.parents().filter(function(){return(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!b.length?q(document):b}});q.extend(q.expr[":"],{data:function(b,c,d){return !!q.data(b,d[3])},focusable:function(c){var b=c.nodeName.toLowerCase(),d=q.attr(c,"tabindex");return(/input|select|textarea|button|object/.test(b)?!c.disabled:"a"==b||"area"==b?c.href||!isNaN(d):!isNaN(d))&&!q(c)["area"==b?"parents":"closest"](":hidden").length},tabbable:function(b){var c=q.attr(b,"tabindex");return(isNaN(c)||c>=0)&&q(b).is(":focusable")}});function m(b,h,g,c){function d(v){var w=q[b][h][v]||[];return(typeof w=="string"?w.split(/,?\s+/):w)}var f=d("getter");if(c.length==1&&typeof c[0]=="string"){f=f.concat(d("getterSetter"))}return(q.inArray(g,f)!=-1)}q.widget=function(c,d){var b=c.split(".")[0];c=c.split(".")[1];q.fn[c]=function(g){var v=(typeof g=="string"),h=Array.prototype.slice.call(arguments,1);if(v&&g.substring(0,1)=="_"){return this}if(v&&m(b,c,g,h)){var f=q.data(this[0],c);return(f?f[g].apply(f,h):undefined)}return this.each(function(){var w=q.data(this,c);(!w&&!v&&q.data(this,c,new q[b][c](this,g))._init());(w&&v&&q.isFunction(w[g])&&w[g].apply(w,h))})};q[b]=q[b]||{};q[b][c]=function(g,h){var f=this;this.namespace=b;this.widgetName=c;this.widgetEventPrefix=q[b][c].eventPrefix||c;this.widgetBaseClass=b+"-"+c;this.options=q.extend({},q.widget.defaults,q[b][c].defaults,q.metadata&&q.metadata.get(g)[c],h);this.element=q(g).bind("setData."+c,function(w,y,v){if(w.target==g){return f._setData(y,v)}}).bind("getData."+c,function(v,w){if(v.target==g){return f._getData(w)}}).bind("remove",function(){return f.destroy()})};q[b][c].prototype=q.extend({},q.widget.prototype,d);q[b][c].getterSetter="option"};q.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(c,b){var d=c,f=this;if(typeof c=="string"){if(b===undefined){return this._getData(c)}d={};d[c]=b}q.each(d,function(h,g){f._setData(h,g)})},_getData:function(b){return this.options[b]},_setData:function(c,b){this.options[c]=b;if(c=="disabled"){this.element[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",b)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(c,b,v){var g=this.options[c],f=(c==this.widgetEventPrefix?c:this.widgetEventPrefix+c);b=q.Event(b);b.type=f;if(b.originalEvent){for(var d=q.event.props.length,h;d;){h=q.event.props[--d];b[h]=b.originalEvent[h]}}this.element.trigger(b,v);return !(q.isFunction(g)&&g.call(this.element[0],b,v)===false||b.isDefaultPrevented())}};q.widget.defaults={disabled:false};q.ui.mouse={_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(c){return b._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;c.stopImmediatePropagation();return false}});if(q.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(q.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(c){c.originalEvent=c.originalEvent||{};if(c.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(c));this._mouseDownEvent=c;var d=this,b=(c.which==1),f=(typeof this.options.cancel=="string"?q(c.target).parents().add(c.target).filter(this.options.cancel).length:false);if(!b||f||!this._mouseCapture(c)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=(this._mouseStart(c)!==false);if(!this._mouseStarted){c.preventDefault();return true}}this._mouseMoveDelegate=function(g){return d._mouseMove(g)};this._mouseUpDelegate=function(g){return d._mouseUp(g)};q(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(q.browser.safari||c.preventDefault());c.originalEvent.mouseHandled=true;return true},_mouseMove:function(b){if(q.browser.msie&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,b)!==false);(this._mouseStarted?this._mouseDrag(b):this._mouseUp(b))}return !this._mouseStarted},_mouseUp:function(b){q(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(b.target==this._mouseDownEvent.target);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return(Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance)},_mouseDelayMet:function(b){return this.mouseDelayMet},_mouseStart:function(b){},_mouseDrag:function(b){},_mouseStop:function(b){},_mouseCapture:function(b){return true}};q.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(d){var f=this.options;if(this.helper||f.disabled||b(d.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(d);if(!this.handle){return false}return true},_mouseStart:function(d){var f=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(b.ui.ddmanager){b.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;if(f.cursorAt){this._adjustOffsetFromHelper(f.cursorAt)}if(f.containment){this._setContainment()}this._trigger("start",d);this._cacheHelperProportions();if(b.ui.ddmanager&&!f.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,d)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(f,g){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");if(!g){var h=this._uiHash();this._trigger("drag",f,h);this.position=h.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(b.ui.ddmanager){b.ui.ddmanager.drag(this,f)}return false},_mouseStop:function(h){var g=false;if(b.ui.ddmanager&&!this.options.dropBehaviour){g=b.ui.ddmanager.drop(this,h)}if(this.dropped){g=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!g)||(this.options.revert=="valid"&&g)||this.options.revert===true||(b.isFunction(this.options.revert)&&this.options.revert.call(this.element,g))){var f=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",h);f._clear()})}else{this._trigger("stop",h);this._clear()}return false},_getHandle:function(d){var f=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==d.target){f=true}});return f},_createHelper:function(h){var g=this.options;var f=b.isFunction(g.helper)?b(g.helper.apply(this.element[0],[h])):(g.helper=="clone"?this.element.clone():this.element);if(!f.parents("body").length){f.appendTo((g.appendTo=="parent"?this.element[0].parentNode:g.appendTo))}if(f[0]!=this.element[0]&&!(/(fixed|absolute)/).test(f.css("position"))){f.css("position","absolute")}return f},_adjustOffsetFromHelper:function(c){if(c.left!=undefined){this.offset.click.left=c.left+this.margins.left}if(c.right!=undefined){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if(c.top!=undefined){this.offset.click.top=c.top+this.margins.top}if(c.bottom!=undefined){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var g=this.options;if(g.containment=="parent"){g.containment=this.helper[0].parentNode}if(g.containment=="document"||g.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(g.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(g.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(g.containment)&&g.containment.constructor!=Array){var k=b(g.containment)[0];if(!k){return}var h=b(g.containment).offset();var f=(b(k).css("overflow")!="hidden");this.containment=[h.left+(parseInt(b(k).css("borderLeftWidth"),10)||0)+(parseInt(b(k).css("paddingLeft"),10)||0)-this.margins.left,h.top+(parseInt(b(k).css("borderTopWidth"),10)||0)+(parseInt(b(k).css("paddingTop"),10)||0)-this.margins.top,h.left+(f?Math.max(k.scrollWidth,k.offsetWidth):k.offsetWidth)-(parseInt(b(k).css("borderLeftWidth"),10)||0)-(parseInt(b(k).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,h.top+(f?Math.max(k.scrollHeight,k.offsetHeight):k.offsetHeight)-(parseInt(b(k).css("borderTopWidth"),10)||0)-(parseInt(b(k).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(g.containment.constructor==Array){this.containment=g.containment}}},_convertPositionTo:function(m,k){if(!k){k=this.position}var o=m=="absolute"?1:-1;var n=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=(/(html|body)/i).test(d[0].tagName);return{top:(k.top+this.offset.relative.top*o+this.offset.parent.top*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(l?0:d.scrollTop()))*o)),left:(k.left+this.offset.relative.left*o+this.offset.parent.left*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:d.scrollLeft())*o))}},_generatePosition:function(p){var m=this.options,k=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=(/(html|body)/i).test(k[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var q=p.pageX;var s=p.pageY;if(this.originalPosition){if(this.containment){if(p.pageX-this.offset.click.left<this.containment[0]){q=this.containment[0]+this.offset.click.left}if(p.pageY-this.offset.click.top<this.containment[1]){s=this.containment[1]+this.offset.click.top}if(p.pageX-this.offset.click.left>this.containment[2]){q=this.containment[2]+this.offset.click.left}if(p.pageY-this.offset.click.top>this.containment[3]){s=this.containment[3]+this.offset.click.top}}if(m.grid){var n=this.originalPageY+Math.round((s-this.originalPageY)/m.grid[1])*m.grid[1];s=this.containment?(!(n-this.offset.click.top<this.containment[1]||n-this.offset.click.top>this.containment[3])?n:(!(n-this.offset.click.top<this.containment[1])?n-m.grid[1]:n+m.grid[1])):n;var o=this.originalPageX+Math.round((q-this.originalPageX)/m.grid[0])*m.grid[0];q=this.containment?(!(o-this.offset.click.left<this.containment[0]||o-this.offset.click.left>this.containment[2])?o:(!(o-this.offset.click.left<this.containment[0])?o-m.grid[0]:o+m.grid[0])):o}}return{top:(s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(l?0:k.scrollTop())))),left:(q-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:k.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(f,h,g){g=g||this._uiHash();b.ui.plugin.call(this,f,[h,g]);if(f=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return b.widget.prototype._trigger.call(this,f,h,g)},plugins:{},_uiHash:function(c){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add("draggable","connectToSortable",{start:function(m,k){var l=b(this).data("draggable"),h=l.options,g=b.extend({},k,{item:l.element});l.sortables=[];b(h.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){l.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger("activate",m,g)}})},stop:function(k,g){var h=b(this).data("draggable"),f=b.extend({},g,{item:h.element});b.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(k);this.instance.options.helper=this.instance.options._helper;if(h.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",k,f)}})},drag:function(m,h){var k=b(this).data("draggable"),g=this;var l=function(u){var d=this.offset.click.top,f=this.offset.click.left;var w=this.positionAbs.top,q=this.positionAbs.left;var s=u.height,o=u.width;var c=u.top,v=u.left;return b.ui.isOver(w+d,q+f,c,v,s,o)};b.each(k.sortables,function(c){this.instance.positionAbs=k.positionAbs;this.instance.helperProportions=k.helperProportions;this.instance.offset.click=k.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(g).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return h.helper[0]};m.target=this.instance.currentItem[0];this.instance._mouseCapture(m,true);this.instance._mouseStart(m,true,true);this.instance.offset.click.top=k.offset.click.top;this.instance.offset.click.left=k.offset.click.left;this.instance.offset.parent.left-=k.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=k.offset.parent.top-this.instance.offset.parent.top;k._trigger("toSortable",m);k.dropped=this.instance.element;k.currentItem=k.element;this.instance.fromOutside=k}if(this.instance.currentItem){this.instance._mouseDrag(m)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",m,this.instance._uiHash(this.instance));this.instance._mouseStop(m,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}k._trigger("fromSortable",m);k.dropped=false}}})}});b.ui.plugin.add("draggable","cursor",{start:function(k,h){var f=b("body"),g=b(this).data("draggable").options;if(f.css("cursor")){g._cursor=f.css("cursor")}f.css("cursor",g.cursor)},stop:function(f,h){var g=b(this).data("draggable").options;if(g._cursor){b("body").css("cursor",g._cursor)}}});b.ui.plugin.add("draggable","iframeFix",{start:function(f,h){var g=b(this).data("draggable").options;b(g.iframeFix===true?"iframe":g.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(b(this).offset()).appendTo("body")})},stop:function(d,f){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(k,h){var f=b(h.helper),g=b(this).data("draggable").options;if(f.css("opacity")){g._opacity=f.css("opacity")}f.css("opacity",g.opacity)},stop:function(f,h){var g=b(this).data("draggable").options;if(g._opacity){b(h.helper).css("opacity",g._opacity)}}});b.ui.plugin.add("draggable","scroll",{start:function(h,g){var f=b(this).data("draggable");if(f.scrollParent[0]!=document&&f.scrollParent[0].tagName!="HTML"){f.overflowOffset=f.scrollParent.offset()}},drag:function(l,k){var m=b(this).data("draggable"),h=m.options,g=false;if(m.scrollParent[0]!=document&&m.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if((m.overflowOffset.top+m.scrollParent[0].offsetHeight)-l.pageY<h.scrollSensitivity){m.scrollParent[0].scrollTop=g=m.scrollParent[0].scrollTop+h.scrollSpeed}else{if(l.pageY-m.overflowOffset.top<h.scrollSensitivity){m.scrollParent[0].scrollTop=g=m.scrollParent[0].scrollTop-h.scrollSpeed}}}if(!h.axis||h.axis!="y"){if((m.overflowOffset.left+m.scrollParent[0].offsetWidth)-l.pageX<h.scrollSensitivity){m.scrollParent[0].scrollLeft=g=m.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(l.pageX-m.overflowOffset.left<h.scrollSensitivity){m.scrollParent[0].scrollLeft=g=m.scrollParent[0].scrollLeft-h.scrollSpeed}}}}else{if(!h.axis||h.axis!="x"){if(l.pageY-b(document).scrollTop()<h.scrollSensitivity){g=b(document).scrollTop(b(document).scrollTop()-h.scrollSpeed)}else{if(b(window).height()-(l.pageY-b(document).scrollTop())<h.scrollSensitivity){g=b(document).scrollTop(b(document).scrollTop()+h.scrollSpeed)}}}if(!h.axis||h.axis!="y"){if(l.pageX-b(document).scrollLeft()<h.scrollSensitivity){g=b(document).scrollLeft(b(document).scrollLeft()-h.scrollSpeed)}else{if(b(window).width()-(l.pageX-b(document).scrollLeft())<h.scrollSensitivity){g=b(document).scrollLeft(b(document).scrollLeft()+h.scrollSpeed)}}}}if(g!==false&&b.ui.ddmanager&&!h.dropBehaviour){b.ui.ddmanager.prepareOffsets(m,l)}}});b.ui.plugin.add("draggable","snap",{start:function(k,h){var f=b(this).data("draggable"),g=f.options;f.snapElements=[];b(g.snap.constructor!=String?(g.snap.items||":data(draggable)"):g.snap).each(function(){var c=b(this);var d=c.offset();if(this!=f.element[0]){f.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})}})},drag:function(E,I){var O=b(this).data("draggable"),G=O.options;var l=G.snapTolerance;var o=I.offset.left,B=o+O.helperProportions.width,P=I.offset.top,Q=P+O.helperProportions.height;for(var D=O.snapElements.length-1;D>=0;D--){var F=O.snapElements[D].left,J=F+O.snapElements[D].width,K=O.snapElements[D].top,H=K+O.snapElements[D].height;if(!((F-l<o&&o<J+l&&K-l<P&&P<H+l)||(F-l<o&&o<J+l&&K-l<Q&&Q<H+l)||(F-l<B&&B<J+l&&K-l<P&&P<H+l)||(F-l<B&&B<J+l&&K-l<Q&&Q<H+l))){if(O.snapElements[D].snapping){(O.options.snap.release&&O.options.snap.release.call(O.element,E,b.extend(O._uiHash(),{snapItem:O.snapElements[D].item})))}O.snapElements[D].snapping=false;continue}if(G.snapMode!="inner"){var R=Math.abs(K-Q)<=l;var d=Math.abs(H-P)<=l;var M=Math.abs(F-B)<=l;var L=Math.abs(J-o)<=l;if(R){I.position.top=O._convertPositionTo("relative",{top:K-O.helperProportions.height,left:0}).top-O.margins.top}if(d){I.position.top=O._convertPositionTo("relative",{top:H,left:0}).top-O.margins.top}if(M){I.position.left=O._convertPositionTo("relative",{top:0,left:F-O.helperProportions.width}).left-O.margins.left}if(L){I.position.left=O._convertPositionTo("relative",{top:0,left:J}).left-O.margins.left}}var N=(R||d||M||L);if(G.snapMode!="outer"){var R=Math.abs(K-P)<=l;var d=Math.abs(H-Q)<=l;var M=Math.abs(F-o)<=l;var L=Math.abs(J-B)<=l;if(R){I.position.top=O._convertPositionTo("relative",{top:K,left:0}).top-O.margins.top}if(d){I.position.top=O._convertPositionTo("relative",{top:H-O.helperProportions.height,left:0}).top-O.margins.top}if(M){I.position.left=O._convertPositionTo("relative",{top:0,left:F}).left-O.margins.left}if(L){I.position.left=O._convertPositionTo("relative",{top:0,left:J-O.helperProportions.width}).left-O.margins.left}}if(!O.snapElements[D].snapping&&(R||d||M||L||N)){(O.options.snap.snap&&O.options.snap.snap.call(O.element,E,b.extend(O._uiHash(),{snapItem:O.snapElements[D].item})))}O.snapElements[D].snapping=(R||d||M||L||N)}}});b.ui.plugin.add("draggable","stack",{start:function(f,k){var g=b(this).data("draggable").options;var h=b.makeArray(b(g.stack.group)).sort(function(c,d){return(parseInt(b(c).css("zIndex"),10)||g.stack.min)-(parseInt(b(d).css("zIndex"),10)||g.stack.min)});b(h).each(function(c){this.style.zIndex=g.stack.min+c});this[0].style.zIndex=g.stack.min+h.length}});b.ui.plugin.add("draggable","zIndex",{start:function(k,h){var f=b(h.helper),g=b(this).data("draggable").options;if(f.css("zIndex")){g._zIndex=f.css("zIndex")}f.css("zIndex",g.zIndex)},stop:function(f,h){var g=b(this).data("draggable").options;if(g._zIndex){b(h.helper).css("zIndex",g._zIndex)}}})})(jQuery);(function(b){b.widget("ui.sortable",b.extend({},b.ui.mouse,{_init:function(){var c=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--){this.items[c].item.removeData("sortable-item")}},_mouseCapture:function(m,l){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(m);var n=null,o=this,h=b(m.target).parents().each(function(){if(b.data(this,"sortable-item")==o){n=b(this);return false}});if(b.data(m.target,"sortable-item")==o){n=b(m.target)}if(!n){return false}if(this.options.handle&&!l){var k=false;b(this.options.handle,n).find("*").andSelf().each(function(){if(this==m.target){k=true}});if(!k){return false}}this.currentItem=n;this._removeCurrentsFromItems();return true},_mouseStart:function(m,l,h){var k=this.options,o=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(m);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,{click:{left:m.pageX-this.offset.left,top:m.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(m);this.originalPageX=m.pageX;this.originalPageY=m.pageY;if(k.cursorAt){this._adjustOffsetFromHelper(k.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(k.containment){this._setContainment()}if(k.cursor){if(b("body").css("cursor")){this._storedCursor=b("body").css("cursor")}b("body").css("cursor",k.cursor)}if(k.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",k.opacity)}if(k.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",k.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",m,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!h){for(var n=this.containers.length-1;n>=0;n--){this.containers[n]._trigger("activate",m,o._uiHash(this))}}if(b.ui.ddmanager){b.ui.ddmanager.current=this}if(b.ui.ddmanager&&!k.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,m)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(m);return true},_mouseDrag:function(n){this.position=this._generatePosition(n);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var m=this.options,k=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-n.pageY<m.scrollSensitivity){this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop+m.scrollSpeed}else{if(n.pageY-this.overflowOffset.top<m.scrollSensitivity){this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop-m.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-n.pageX<m.scrollSensitivity){this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft+m.scrollSpeed}else{if(n.pageX-this.overflowOffset.left<m.scrollSensitivity){this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft-m.scrollSpeed}}}else{if(n.pageY-b(document).scrollTop()<m.scrollSensitivity){k=b(document).scrollTop(b(document).scrollTop()-m.scrollSpeed)}else{if(b(window).height()-(n.pageY-b(document).scrollTop())<m.scrollSensitivity){k=b(document).scrollTop(b(document).scrollTop()+m.scrollSpeed)}}if(n.pageX-b(document).scrollLeft()<m.scrollSensitivity){k=b(document).scrollLeft(b(document).scrollLeft()-m.scrollSpeed)}else{if(b(window).width()-(n.pageX-b(document).scrollLeft())<m.scrollSensitivity){k=b(document).scrollLeft(b(document).scrollLeft()+m.scrollSpeed)}}}if(k!==false&&b.ui.ddmanager&&!m.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,n)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var p=this.items.length-1;p>=0;p--){var o=this.items[p],q=o.item[0],l=this._intersectsWithPointer(o);if(!l){continue}if(q!=this.currentItem[0]&&this.placeholder[l==1?"next":"prev"]()[0]!=q&&!b.ui.contains(this.placeholder[0],q)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],q):true)){this.direction=l==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(o)){this._rearrange(n,o)}else{break}this._trigger("change",n,this._uiHash());break}}this._contactContainers(n);if(b.ui.ddmanager){b.ui.ddmanager.drag(this,n)}this._trigger("sort",n,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(k,h){if(!k){return}if(b.ui.ddmanager&&!this.options.dropBehaviour){b.ui.ddmanager.drop(this,k)}if(this.options.revert){var f=this;var g=f.placeholder.offset();f.reverting=true;b(this.helper).animate({left:g.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:g.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(k)})}else{this._clear(k,h)}return false},cancel:function(){var d=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var f=this.containers.length-1;f>=0;f--){this.containers[f]._trigger("deactivate",null,d._uiHash(this));if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",null,d._uiHash(this));this.containers[f].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){b(this.domPosition.prev).after(this.currentItem)}else{b(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(g){var f=this._getItemsAsjQuery(g&&g.connected);var h=[];g=g||{};b(f).each(function(){var c=(b(g.item||this).attr(g.attribute||"id")||"").match(g.expression||(/(.+)[-=_](.+)/));if(c){h.push((g.key||c[1]+"[]")+"="+(g.key&&g.expression?c[1]:c[2]))}});return h.join("&")},toArray:function(g){var f=this._getItemsAsjQuery(g&&g.connected);var h=[];g=g||{};f.each(function(){h.push(b(g.item||this).attr(g.attribute||"id")||"")});return h},_intersectsWith:function(q){var A=this.positionAbs.left,B=A+this.helperProportions.width,s=this.positionAbs.top,u=s+this.helperProportions.height;var z=q.left,D=z+q.width,p=q.top,v=p+q.height;var l=this.offset.click.top,w=this.offset.click.left;var y=(s+l)>p&&(s+l)<v&&(A+w)>z&&(A+w)<D;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>q[this.floating?"width":"height"])){return y}else{return(z<A+(this.helperProportions.width/2)&&B-(this.helperProportions.width/2)<D&&p<s+(this.helperProportions.height/2)&&u-(this.helperProportions.height/2)<v)}},_intersectsWithPointer:function(n){var m=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),o=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),k=m&&o,h=this._getDragVerticalDirection(),l=this._getDragHorizontalDirection();if(!k){return false}return this.floating?(((l&&l=="right")||h=="down")?2:1):(h&&(h=="down"?2:1))},_intersectsWithSides:function(k){var m=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,k.top+(k.height/2),k.height),l=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,k.left+(k.width/2),k.width),g=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();if(this.floating&&h){return((h=="right"&&l)||(h=="left"&&!l))}else{return g&&((g=="down"&&m)||(g=="up"&&!m))}},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions()},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(w){var m=this;var p=[];var s=[];var o=this._connectWith();if(o&&w){for(var u=o.length-1;u>=0;u--){var n=b(o[u]);for(var v=n.length-1;v>=0;v--){var q=b.data(n[v],"sortable");if(q&&q!=this&&!q.options.disabled){s.push([b.isFunction(q.options.items)?q.options.items.call(q.element):b(q.options.items,q.element).not(".ui-sortable-helper"),q])}}}}s.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var u=s.length-1;u>=0;u--){s[u][0].each(function(){p.push(this)})}return b(p)},_removeCurrentsFromItems:function(){var g=this.currentItem.find(":data(sortable-item)");for(var h=0;h<this.items.length;h++){for(var f=0;f<g.length;f++){if(g[f]==this.items[h].item[0]){this.items.splice(h,1)}}}},_refreshItems:function(G){this.items=[];this.containers=[this];var z=this.items;var q=this;var B=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],G,{item:this.currentItem}):b(this.options.items,this.element),this]];var w=this._connectWith();if(w){for(var D=w.length-1;D>=0;D--){var v=b(w[D]);for(var E=v.length-1;E>=0;E--){var A=b.data(v[E],"sortable");if(A&&A!=this&&!A.options.disabled){B.push([b.isFunction(A.options.items)?A.options.items.call(A.element[0],G,{item:this.currentItem}):b(A.options.items,A.element),A]);this.containers.push(A)}}}}for(var D=B.length-1;D>=0;D--){var y=B[D][1];var F=B[D][0];for(var E=0,u=F.length;E<u;E++){var s=b(F[E]);s.data("sortable-item",y);z.push({item:s,instance:y,width:0,height:0,left:0,top:0})}}},refreshPositions:function(g){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var l=this.items.length-1;l>=0;l--){var k=this.items[l];if(k.instance!=this.currentContainer&&this.currentContainer&&k.item[0]!=this.currentItem[0]){continue}var m=this.options.toleranceElement?b(this.options.toleranceElement,k.item):k.item;if(!g){k.width=m.outerWidth();k.height=m.outerHeight()}var h=m.offset();k.left=h.left;k.top=h.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var l=this.containers.length-1;l>=0;l--){var h=this.containers[l].element.offset();this.containers[l].containerCache.left=h.left;this.containers[l].containerCache.top=h.top;this.containers[l].containerCache.width=this.containers[l].element.outerWidth();this.containers[l].containerCache.height=this.containers[l].element.outerHeight()}}},_createPlaceholder:function(h){var f=h||this,g=f.options;if(!g.placeholder||g.placeholder.constructor==String){var k=g.placeholder;g.placeholder={element:function(){var c=b(document.createElement(f.currentItem[0].nodeName)).addClass(k||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!k){c.style.visibility="hidden"}return c},update:function(d,c){if(k&&!g.forcePlaceholderSize){return}if(!c.height()){c.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10))}if(!c.width()){c.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=b(g.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);g.placeholder.update(f,f.placeholder)},_contactContainers:function(p){for(var q=this.containers.length-1;q>=0;q--){if(this._intersectsWith(this.containers[q].containerCache)){if(!this.containers[q].containerCache.over){if(this.currentContainer!=this.containers[q]){var l=10000;var m=null;var o=this.positionAbs[this.containers[q].floating?"left":"top"];for(var k=this.items.length-1;k>=0;k--){if(!b.ui.contains(this.containers[q].element[0],this.items[k].item[0])){continue}var n=this.items[k][this.containers[q].floating?"left":"top"];if(Math.abs(n-o)<l){l=Math.abs(n-o);m=this.items[k]}}if(!m&&!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[q];m?this._rearrange(p,m,null,true):this._rearrange(p,null,this.containers[q].element,true);this._trigger("change",p,this._uiHash());this.containers[q]._trigger("change",p,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[q]._trigger("over",p,this._uiHash(this));this.containers[q].containerCache.over=1}}else{if(this.containers[q].containerCache.over){this.containers[q]._trigger("out",p,this._uiHash(this));this.containers[q].containerCache.over=0}}}},_createHelper:function(h){var g=this.options;var f=b.isFunction(g.helper)?b(g.helper.apply(this.element[0],[h,this.currentItem])):(g.helper=="clone"?this.currentItem.clone():this.currentItem);if(!f.parents("body").length){b(g.appendTo!="parent"?g.appendTo:this.currentItem[0].parentNode)[0].appendChild(f[0])}if(f[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(f[0].style.width==""||g.forceHelperSize){f.width(this.currentItem.width())}if(f[0].style.height==""||g.forceHelperSize){f.height(this.currentItem.height())}return f},_adjustOffsetFromHelper:function(c){if(c.left!=undefined){this.offset.click.left=c.left+this.margins.left}if(c.right!=undefined){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if(c.top!=undefined){this.offset.click.top=c.top+this.margins.top}if(c.bottom!=undefined){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var g=this.options;if(g.containment=="parent"){g.containment=this.helper[0].parentNode}if(g.containment=="document"||g.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(g.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(g.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(g.containment)){var k=b(g.containment)[0];var h=b(g.containment).offset();var f=(b(k).css("overflow")!="hidden");this.containment=[h.left+(parseInt(b(k).css("borderLeftWidth"),10)||0)+(parseInt(b(k).css("paddingLeft"),10)||0)-this.margins.left,h.top+(parseInt(b(k).css("borderTopWidth"),10)||0)+(parseInt(b(k).css("paddingTop"),10)||0)-this.margins.top,h.left+(f?Math.max(k.scrollWidth,k.offsetWidth):k.offsetWidth)-(parseInt(b(k).css("borderLeftWidth"),10)||0)-(parseInt(b(k).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,h.top+(f?Math.max(k.scrollHeight,k.offsetHeight):k.offsetHeight)-(parseInt(b(k).css("borderTopWidth"),10)||0)-(parseInt(b(k).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(m,k){if(!k){k=this.position}var o=m=="absolute"?1:-1;var n=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=(/(html|body)/i).test(d[0].tagName);return{top:(k.top+this.offset.relative.top*o+this.offset.parent.top*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(l?0:d.scrollTop()))*o)),left:(k.left+this.offset.relative.left*o+this.offset.parent.left*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:d.scrollLeft())*o))}},_generatePosition:function(p){var m=this.options,k=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=(/(html|body)/i).test(k[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var q=p.pageX;var s=p.pageY;if(this.originalPosition){if(this.containment){if(p.pageX-this.offset.click.left<this.containment[0]){q=this.containment[0]+this.offset.click.left}if(p.pageY-this.offset.click.top<this.containment[1]){s=this.containment[1]+this.offset.click.top}if(p.pageX-this.offset.click.left>this.containment[2]){q=this.containment[2]+this.offset.click.left}if(p.pageY-this.offset.click.top>this.containment[3]){s=this.containment[3]+this.offset.click.top}}if(m.grid){var n=this.originalPageY+Math.round((s-this.originalPageY)/m.grid[1])*m.grid[1];s=this.containment?(!(n-this.offset.click.top<this.containment[1]||n-this.offset.click.top>this.containment[3])?n:(!(n-this.offset.click.top<this.containment[1])?n-m.grid[1]:n+m.grid[1])):n;var o=this.originalPageX+Math.round((q-this.originalPageX)/m.grid[0])*m.grid[0];q=this.containment?(!(o-this.offset.click.left<this.containment[0]||o-this.offset.click.left>this.containment[2])?o:(!(o-this.offset.click.left<this.containment[0])?o-m.grid[0]:o+m.grid[0])):o}}return{top:(s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(l?0:k.scrollTop())))),left:(q-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:k.scrollLeft())))}},_rearrange:function(k,l,o,m){o?o[0].appendChild(this.placeholder[0]):l.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?l.item[0]:l.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var n=this,h=this.counter;window.setTimeout(function(){if(h==n.counter){n.refreshPositions(!m)}},0)},_clear:function(l,k){this.reverting=false;var h=[],g=this;if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var m in this._storedCSS){if(this._storedCSS[m]=="auto"||this._storedCSS[m]=="static"){this._storedCSS[m]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!k){h.push(function(c){this._trigger("receive",c,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!k){h.push(function(c){this._trigger("update",c,this._uiHash())})}if(!b.ui.contains(this.element[0],this.currentItem[0])){if(!k){h.push(function(c){this._trigger("remove",c,this._uiHash())})}for(var m=this.containers.length-1;m>=0;m--){if(b.ui.contains(this.containers[m].element[0],this.currentItem[0])&&!k){h.push((function(c){return function(d){c._trigger("receive",d,this._uiHash(this))}}).call(this,this.containers[m]));h.push((function(c){return function(d){c._trigger("update",d,this._uiHash(this))}}).call(this,this.containers[m]))}}}for(var m=this.containers.length-1;m>=0;m--){if(!k){h.push((function(c){return function(d){c._trigger("deactivate",d,this._uiHash(this))}}).call(this,this.containers[m]))}if(this.containers[m].containerCache.over){h.push((function(c){return function(d){c._trigger("out",d,this._uiHash(this))}}).call(this,this.containers[m]));this.containers[m].containerCache.over=0}}if(this._storedCursor){b("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!k){this._trigger("beforeStop",l,this._uiHash());for(var m=0;m<h.length;m++){h[m].call(this,l)}this._trigger("stop",l,this._uiHash())}return false}if(!k){this._trigger("beforeStop",l,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!k){for(var m=0;m<h.length;m++){h[m].call(this,l)}this._trigger("stop",l,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(b.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(f){var d=f||this;return{helper:d.helper,placeholder:d.placeholder||b([]),position:d.position,absolutePosition:d.positionAbs,offset:d.positionAbs,item:d.currentItem,sender:f?f.element:null}}}));b.extend(b.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000}})})(jQuery);(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker(null)}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery);(function(b){b.fn.bgIframe=b.fn.bgiframe=function(d){if(b.browser.msie&&/6.0/.test(navigator.userAgent)){d=b.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},d||{});var f=function(g){return g&&g.constructor==Number?g+"px":g},c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(d.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(d.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":f(d.top))+";left:"+(d.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":f(d.left))+";width:"+(d.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":f(d.width))+";height:"+(d.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":f(d.height))+';"/>';return this.each(function(){if(b("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(c),this.firstChild)}})}return this}})(jQuery);jQuery.cookie=function(c,m,p){if(typeof m!="undefined"){p=p||{};if(m===null){m="";p.expires=-1}var g="";if(p.expires&&(typeof p.expires=="number"||p.expires.toUTCString)){var h;if(typeof p.expires=="number"){h=new Date();h.setTime(h.getTime()+(p.expires*24*60*60*1000))}else{h=p.expires}g="; expires="+h.toUTCString()}var o=p.path?"; path="+(p.path):"";var k=p.domain?"; domain="+(p.domain):"";var b=p.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(m),g,o,k,b].join("")}else{var f=null;if(document.cookie&&document.cookie!=""){var n=document.cookie.split(";");for(var l=0;l<n.length;l++){var d=jQuery.trim(n[l]);if(d.substring(0,c.length+1)==(c+"=")){f=decodeURIComponent(d.substring(c.length+1));break}}}return f}};function prettyDate(f){var c;if(f){var c=new Date();c.setTime(f*1000)}else{c=new Date()}var d=(((new Date()).getTime()-c.getTime())/1000),b=Math.floor(d/86400);if(isNaN(b)||b<0){return f}return b==0&&(d<60&&"just now"||d<120&&"1 minute ago"||d<3600&&Math.floor(d/60)+" minutes ago"||d<7200&&"1 hour ago"||d<86400&&Math.floor(d/3600)+" hours ago")||b==1&&"Yesterday"||b<7&&b+" days ago"||b<31&&Math.ceil(b/7)+" weeks ago"||b<365&&Math.ceil(b/30)+" months ago"||Math.ceil(b/365)+" years ago"}if(typeof jQuery!="undefined"){jQuery.fn.prettyDate=function(){return this.each(function(){var b=prettyDate(this.title);if(b){jQuery(this).text(b)}})}}var dateFormat=function(){var b=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloZ]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/[^-+\dA-Z]/g,d=function(h,g){h=String(h);g=parseInt(g)||2;while(h.length<g){h="0"+h}return h};return function(n,B){if(arguments.length==1&&(typeof n=="string"||n instanceof String)&&!/\d/.test(n)){B=n;n=undefined}n=n?new Date(n):new Date();if(isNaN(n)){throw"invalid date"}var k=dateFormat;B=String(k.masks[B]||B||k.masks["default"]);var u=n.getDate(),g=n.getDay(),p=n.getMonth(),w=n.getFullYear(),z=n.getHours(),q=n.getMinutes(),A=n.getSeconds(),v=n.getMilliseconds(),h=n.getTimezoneOffset(),l={d:u,dd:d(u),ddd:k.i18n.dayNames[g],dddd:k.i18n.dayNames[g+7],m:p+1,mm:d(p+1),mmm:k.i18n.monthNames[p],mmmm:k.i18n.monthNames[p+12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:d(z%12||12),H:z,HH:d(z),M:q,MM:d(q),s:A,ss:d(A),l:d(v,3),L:d(v>99?Math.round(v/10):v),t:z<12?"a":"p",tt:z<12?"am":"pm",T:z<12?"A":"P",TT:z<12?"AM":"PM",Z:(String(n).match(c)||[""]).pop().replace(f,""),o:(h>0?"-":"+")+d(Math.floor(Math.abs(h)/60)*100+Math.abs(h)%60,4)};return B.replace(b,function(m){return(m in l)?l[m]:m.slice(1,m.length-1)})}}();dateFormat.masks={"default":"ddd mmm d yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoFullDateTime:"yyyy-mm-dd'T'HH:MM:ss.lo"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};if(!this.JSON){JSON=function(){function f(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};var cx=new RegExp("/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g"),escapeable=new RegExp('/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g'),gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}return{stringify:function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}()}function j(c){var b=document.createElement("script");b.src=c;b.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(b)}if(typeof(g_c)=="undefined"){var g_c={}}var a,e,bg1=1,g_rc,g_e6=$.browser.msie&&parseInt($.browser.version)<7,g_domi,g_d0,g_dm,g_port,g_aurl,g_cdn,g_focus="query",g_ht=0,g_hz=0,g_isna=0,g_s,g_w,g_pro,g_dot=1,g_loc_cbs=[ads_cb,ll_cb];(function(){var b=document.domain.split(".");g_d0=b[0];if(g_d0.search(/^f\d/)<0){if(g_d0=="faxo"){g_d0="";g_dm="faxo.com"}else{g_dm=b.slice(1).join(".")}}else{g_d0="";g_dm=document.domain}g_pro=g_dm.search(/^f\d/)<0;g_port=document.location.href.match(/:\d+\//);g_aurl="http://s.uunu.com/";g_cdn="http://c.uunu.com/";if(g_port){g_port=g_port[0].substr(1,g_port[0].length-2)}})();function br(){g_s={c:"white",b:g_cdn+"images/fb.13.jpg",s:0,t:0,o:0.5};g_w={n:8,t:0,s:0,c1:[0,8,1,2,3,4,12],c2:[11,5,6,7,9,10,13],x:[1,1,1,1,1,1,1,1,1,1,1,1,1,1],v:1}}br();if($.cookie("t")){$.extend(g_s,JSON.parse($.cookie("t")))}if($.cookie("w")){var gw_c=JSON.parse($.cookie("w"));if(!(gw_c.v!="undefined"&&gw_c.v==g_w.v)){gw_c.n=8}$.extend(g_w,gw_c)}if(g_w.x.length<14){g_w.c1=[0,8,1,2,3,4,12];g_w.c2=[11,5,6,7,9,10,13];g_w.x=[1,1,1,1,1,1,1,1,1,1,1,1,1,1]}g_l={};if($.cookie("l")){$.extend(g_l,JSON.parse($.cookie("l")))}function C(c){c+="";x=c.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var b=/(\d+)(\d{3})/;while(b.test(x1)){x1=x1.replace(b,"$1,$2")}return x1+x2}function S(c,d){var b=c.q.value;if(b==""){location.href=burl();return false}if(b.match(/followers\)$/)){var f=b.match(/\((\w+) (\d+) followers\)$/);if(f){location.href=burl("twit")+f[1];return false}f=b.match(/(.+) \((\d+) followers\)$/);if(f){location.href=burl("twit")+f[1];return false}}var m,k=window.location.href.split("/"),h="";if(c.t){m=c.t.value}if(m==undefined){m="Web"}if(m=="Links"){m="Web"}var g="Google";if(k[3]=="search"){g=k[5];m=k[4]}if(m=="Music"){g="Youtube"}if(m=="Phone Book"){m="Local"}if(m=="Images"){h="/All"}var l=b.replace(/\+/g,"%2B").replace(/ /g,"+").replace(/\//g," ");var n;if(d){l+=d}if(m=="Dictionary"){n=burl("dictionary")+b.replace(/ /g,"_").toLowerCase()}else{if(m!="Games"&&m!="Topics"){n=burl()+"search/"+m+"/"+g+h+"/?q="+l}else{n=burl()+"search/"+m+"/Faxo/?q="+l}}if(location.href==n){W()}else{location.href=n}return false}function g_np(c){var b=c.indexOf("#");if(b>-1){return c.substring(0,b)}else{return c}}function T(b,o){var o=typeof(o)!="undefined"?o:"?";var m="",g=window.location.href,n=false,h=b+"=",d=h.length;if(o=="?"){g=g_np(g)}if(g.indexOf(o)>-1){var k=g.substr(g.indexOf(o)+1);var f=k.split("&");for(var c=0;c<f.length;c++){if(f[c].substr(0,d)==h){var l=f[c].split("=");m=l[1];n=true;break}}}if(n==false){return null}return m}g_bar=0;function translate(){return;if(g_dot!=1){return}var b=$.cookie("gt");if(b&&b!="en"){$("body").translate(b,{not:"#translate,.shareitem,#tweeter_table",complete:function(){$("#translate").html("Translate: ")}})}}function g_op(b){var d,c="";for(d=0;d<b.length;++d){c+='<option value="'+b[d]+'">'+b[d]+"</option>"}return c}function X(){$("#t").children().remove().end().append(g_op(["Web","Images","Videos","News","Topics","Facts","Local","Games","Dictionary","Music","Phone Book"]));if($("body").css("background-image")=="none"){if(g_s.s!=1&&g_s.s!=2){}else{if(!g_s.t){$("body").css({background:"url("+bg()+")",display:"block","background-attachment":"fixed"})}else{$("#ibg").attr("src",bg())}}}if(g_s.s!=1&&g_s.s!=2){$(".wb").css({background:"url(http://c.uunu.com/images/fggr3.png)","background-repeat":"repeat-x"});$(".wbbg").css("opacity",0)}else{$(".wb").css("background","url("+bg()+") -200px -200px");$(".wbbg").css("opacity",0.3)}var b=T("b","#");if(b){lcook("n",0);g_s.s=2;t("l",b);go_home()}translate()}function U(){X();setTimeout("V()",1)}var enc={table:"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",b:function(c){var d=0;var b="";for(d=0;d<6;++d){if(d==5){c&=3}b+=this._keyStr.charAt(c&63);c>>=6}return b},c:function(g,d){if(d==window.undefined){d=0}var h=0;var b=0;d=d^(-1);for(var c=0,f=g.length;c<f;c++){h=(d^g.charCodeAt(c))&255;b="0x"+this.table.substr(h*9,8);d=(d>>>8)^b}return d^(-1)}};function g_ttfy(d,c){var b=d.replace("http://search.twitter.com/search?q=","");return'<a style=color:blue; href="http://twit.faxo.com/Search/Tweets/?s='+b+'">'+c+"</a>"}function g_tt(){$.getJSON("http://search.twitter.com/trends.json?callback=?",function(b){try{var c="<div style=width:836px;overflow:hidden;><table cellspacing=0 cellpadding=0 style=padding-left:8px;><tr style=background-color:#def;white-space:nowrap;font-size:14px;><td>&nbsp;Top10</td><td>";$.each(b.trends,function(g,f){c+=(g==8?"&nbsp;&nbsp;":"")+"&nbsp;"+(g+1)+" "+g_ttfy(f.url,f.name);if(g&1){c+="</td><td>"}else{c+="<br>"}});c+='&nbsp;<a href="http://twitter.com/FaxoDotCom"><img style=vertical-align:top; src="http://c.uunu.com/images/ftwit.gif"></a></td></tr></table></div>';$("#nav").after(c)}catch(d){}})}function ee(){return enc.b(enc.c(location.pathname))}function brr(){br();t("s",0);lcook("w",JSON.stringify(g_w));location.reload(true)}function bs(b){t("s",b);location.reload(true)}function bw(c){g_rc=(c?"black":"white");t("c",g_rc);var b=JSON.parse($.cookie("t"));location.reload(true)}function tlh(){if($.cookie("tw_n")){$("#li_box").html('Hi <a style=color:white; class=ul href="'+burl("twit")+$.cookie("tw_n")+'">'+$.cookie("tw_n")+'</a> <a style=font-size:90%;color:#ccc; class=ul id=lo_tw href="#">(sign out)</a>&nbsp;')}else{$("#li_box").html('<a href="#" id=li_tw><img src="http://c.uunu.com/images/twsi.png"></a>')}var b=encodeURIComponent(window.location.href);$("#li_tw").click(function(c){$("#li_box").html(bzh());$.ajax({url:"/_tw_l?r="+b,dataType:"json",success:function(d){if(d.u){window.location=d.u}},error:function(g,f,d){window.location=window.location}});return false});$("#lo_tw").click(function(c){$("#li_box").html(bzh());$.ajax({url:"/_tw_o?r="+b,dataType:"json",success:function(d){window.location=window.location},error:function(g,f,d){window.location=window.location}});return false})}function bzh(){return'<img src="http://c.uunu.com/images/waitingt.gif">'}function V(){li();st();if(g_d0=="games"){$("#query").unautocomplete().autocomplete("/acg/",{delay:10,width:350,scroll:false})}else{$("#query").unautocomplete().autocomplete("/ac/",{delay:10,width:350,scroll:false})}$("#"+g_focus).focus();$("#toolbar").click(function(d){barr()});$("#tile").click(function(){t("t",g_s.t?0:1);location.reload(true)});flash();$("#bs a").removeClass("x");$("#bs a:eq("+g_s.s+")").addClass("x");if(g_d0=="tweeter"&&location.pathname!="/"){$("#fa_l").append('<a href="http://tweeter.faxo.com/"><img src="http://c.uunu.com/images/vwca2.gif"></a>')}if(!g_c.af_mid||g_c.af_mid>1){var b=Math.random();af_rg(1,"ws",function(d){if(d[0].b){$("#fa_l").append(af_wb(d))}else{$("#fa_l").append(af_ttws(d,0,0,5))}if(g_d0=="tweeter"&&location.pathname!="/"){$("#fa_l").append(af_abf()+'<a href="http://games.faxo.com/"><img src="http://c.uunu.com/ads/wb/2-1.jpg"></a>')}});af_go()}$("#menu").before("<div id=li_box style=float:right;color:white;font-size:14px;></div>");tlh();try{FB_RequireFeatures(["XFBML"],function(){FB.Facebook.init("2c7a7ba2b74134c71a6579c1c6e12388","/xd_receiver.htm")})}catch(c){}if($("#disqus_thread").length){j("http://faxo.disqus.com/embed.js")}g_tt()}function ifr(d,c,b){return('<iframe src="'+d+'" width='+c+" height="+b+" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>")}function Z(){if(!g_hz){h_hz=1}else{alert("Z")}if(!g_ht){g_ht=1;if(g_port||g_dm!="faxo.com"){$("a[href*='faxo.com/']").each(function(){if(this.href.indexOf(g_dm)<0){this.href=this.href.replace(/faxo.com/,g_dm+(g_port?":"+g_port:""))}})}}U()}function ads_cb(){if(g_isna){return}}function back(b){document.write('<a href="'+($.cookie("back")||"/")+'">'+b+"</a>")}function barr(){if($("#b").is(":visible")){$("#logo").css("background-image","url(http://c.uunu.com/images/faxo_logo_small_1.png)");$("#b,#crumbs,#mid,#fa_l,#fa_r,#adtop3,#adtop,#topads,#content,#footie,#fao,#apps").toggle()}else{location.reload(true)}}function info_now(b){$("#flash").html($("#flash").html()+"<div style=padding:4px;vertical-align:middle;background-color:green;color:white;>"+b+"</div>").show()}function flash_now(b){$("#flash").html("<div style=padding:4px;vertical-align:middle;background-color:red;color:yellow;>"+b+"</div>").show();$.cookie("flash",null,{expires:-1000,domain:g_dm,path:"/"})}function flash(b){var b=$.cookie("flash");if(!b){if(document.title.substr(0,3)=="404"){b="The page - <b>"+(document.location.href.substr(7))+"</b> - does not exist."}}if(b){b=b.replace(/\+/g," ");flash_now(b)}}function go_home(){window.location=burl();window.reload(true)}function lcook(b,c){$.cookie(b,c,{path:"/",domain:g_dm,expires:1000})}function su(b){if(b&&b.length>60){return(b.substr(0,60)+"...")}return b}function t(b,c){g_s[b]=c;lcook("t",JSON.stringify(g_s))}function tb(c,b){$("#"+c+" a").each(function(d){$(this).bind("click",d,function(f){b(f.data);return false})})}function ish(b){var c=/^http:\/\//;return c.test(b)}function theme(b){if(!ish(b)){return}lcook("n",0);g_s.s=1;t("m",b.slice(7));location.reload(true)}function ari(b,d){if(g_d0==g_l.d){return 6}var c=0;for(i=0;i<b.length;++i){if(b[i]==d){c=i}}return c}function bg(){var b=g_cdn+"images/fb.13.jpg";if(g_s.s==1){b=g_s.m||b}if(g_s.s==2){b=g_s.l||g_s.m||b}if(!ish(b)){b="http://"+b}return b}function burl(d,c){var b=(typeof(c)!="undefined"&&c?"s":"");return"http"+b+"://"+(d?d+".":"")+g_dm+(g_port?":"+g_port:"")+"/"}function _l(b){g_l.c=b.c;g_l.s=b.s;g_l.d=b.d;g_l.i=b.i;g_l.l=b.l;g_l.L=b.L;sgl();lc()}function li(){if(g_l.d&&typeof(g_l.l)!="undefined"){lc()}else{_l({c:"St. Louis",s:"MO",d:"stlouis",l:"-90.19841",L:"38.627522"})}}function lc(){$.each(g_loc_cbs,function(c,b){b()})}function ll_cb(){$("#local a").attr("href",burl(g_l.d||"local"))}function qback(b){$("#back").html('<a href="'+($.cookie("back")||"/")+'">'+b+"</a>")}function setback(){lcook("back",document.location.href)}function sgl(){lcook("l",JSON.stringify(g_l))}function st(){var b=["","images","video","news","directory","facts","local","games","dictionary","music","phonebook"];g_domi=ari(b,g_d0);$("#t").attr("selectedIndex",g_domi)}a=ee;Faxo={};Faxo.Translate={};Faxo.Translate.setup=function(){$("p.tflag").click(function(c){var b=$(this).attr("tl");lcook("gt",b);location.reload(true)})};var m_t=0;var m_i=0;function m_o(b){m_x();if(m_i){m_i.style.visibility="hidden"}m_i=document.getElementById(b);m_i.style.visibility="visible"}function m_h(){if(m_i){m_i.style.visibility="hidden"}}function m_c(){m_t=window.setTimeout(m_h,200)}function m_x(){if(m_t){window.clearTimeout(m_t);m_t=null}}document.onclick=m_h;$(function(){if(g_c.l){return}if(!g_c.d){Z()}});(function(b){b.fn.extend({autocomplete:function(c,d){var f=typeof c=="string";d=b.extend({},b.Autocompleter.defaults,{url:f?c:null,data:f?null:c,delay:f?b.Autocompleter.defaults.delay:10,max:d&&!d.scroll?10:150},d);d.highlight=d.highlight||function(g){return g};d.formatMatch=d.formatMatch||d.formatItem;return this.each(function(){new b.Autocompleter(this,d)})},result:function(c){return this.bind("result",c)},search:function(c){return this.trigger("search",[c])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(c){return this.trigger("setOptions",[c])},unautocomplete:function(){return this.trigger("unautocomplete")}});b.Autocompleter=function(p,k){var d={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var c=b(p).attr("autocomplete","off").addClass(k.inputClass);var n;var v="";var q=b.Autocompleter.Cache(k);var g=0;var B;var F={mouseDownOnSelect:false};var y=b.Autocompleter.Select(k,p,f,F);var E;b.browser.opera&&b(p.form).bind("submit.autocomplete",function(){if(E){E=false;return false}});c.bind((b.browser.opera?"keypress":"keydown")+".autocomplete",function(G){g=1;B=G.keyCode;switch(G.keyCode){case d.UP:G.preventDefault();if(y.visible()){y.prev()}else{A(0,true)}break;case d.DOWN:G.preventDefault();if(y.visible()){y.next()}else{A(0,true)}break;case d.PAGEUP:G.preventDefault();if(y.visible()){y.pageUp()}else{A(0,true)}break;case d.PAGEDOWN:G.preventDefault();if(y.visible()){y.pageDown()}else{A(0,true)}break;case k.multiple&&b.trim(k.multipleSeparator)==","&&d.COMMA:case d.TAB:case d.RETURN:if(f()){G.preventDefault();E=true;return false}break;case d.ESC:y.hide();break;default:clearTimeout(n);n=setTimeout(A,k.delay);break}}).focus(function(){g++}).blur(function(){g=0;if(!F.mouseDownOnSelect){z()}}).click(function(){if(g++>1&&!y.visible()){A(0,true)}}).bind("search",function(){var G=(arguments.length>1)?arguments[1]:null;function H(L,K){var I;if(K&&K.length){for(var J=0;J<K.length;J++){if(K[J].result.toLowerCase()==L.toLowerCase()){I=K[J];break}}}if(typeof G=="function"){G(I)}else{c.trigger("result",I&&[I.data,I.value])}}b.each(l(c.val()),function(I,J){h(J,H,H)})}).bind("flushCache",function(){q.flush()}).bind("setOptions",function(){b.extend(k,arguments[1]);if("data" in arguments[1]){q.populate()}}).bind("unautocomplete",function(){y.unbind();c.unbind();b(p.form).unbind(".autocomplete")});function f(){var J=y.selected();if(!J){return false}var G=J.result;v=G;if(k.multiple){var M=l(c.val());if(M.length>1){var I=k.multipleSeparator.length;var L=b(p).selection().start;var K,H=0;b.each(M,function(N,O){H+=O.length;if(L<=H){K=N;return false}H+=I});M[K]=G;G=M.join(k.multipleSeparator)}G+=k.multipleSeparator}c.val(G);D();c.trigger("result",[J.data,J.value]);return true}function A(I,H){if(B==d.DEL){y.hide();return}var G=c.val();if(!H&&G==v){return}v=G;G=m(G);if(G.length>=k.minChars){c.addClass(k.loadingClass);if(!k.matchCase){G=G.toLowerCase()}h(G,o,D)}else{s();y.hide()}}function l(G){if(!G){return[""]}if(!k.multiple){return[b.trim(G)]}return b.map(G.split(k.multipleSeparator),function(H){return b.trim(G).length?b.trim(H):null})}function m(G){if(!k.multiple){return G}var I=l(G);if(I.length==1){return I[0]}var H=b(p).selection().start;if(H==G.length){I=l(G)}else{I=l(G.replace(G.substring(H),""))}return I[I.length-1]}function w(G,H){if(k.autoFill&&(m(c.val()).toLowerCase()==G.toLowerCase())&&B!=d.BACKSPACE){c.val(c.val()+H.substring(m(v).length));b(p).selection(v.length,v.length+H.length)}}function z(){clearTimeout(n);n=setTimeout(D,200)}function D(){var G=y.visible();y.hide();clearTimeout(n);s();if(k.mustMatch){c.search(function(H){if(!H){if(k.multiple){var I=l(c.val()).slice(0,-1);c.val(I.join(k.multipleSeparator)+(I.length?k.multipleSeparator:""))}else{c.val("");c.trigger("result",null)}}})}}function o(H,G){if(G&&G.length&&g){s();y.display(G,H);w(H,G[0].value);y.show()}else{D()}}function h(H,J,G){if(!k.matchCase){H=H.toLowerCase()}var I=q.load(H);if((typeof k.url=="string")&&(k.url.length>0)){var K={timestamp:+new Date()};b.each(k.extraParams,function(L,M){K[L]=typeof M=="function"?M():M});b.ajax({mode:"abort",port:"autocomplete"+p.name,dataType:k.dataType,url:(k.url+m(H)).replace(" ","%20"),success:function(M){if(M.length==0&&I&&I.length>0){return J(H,I)}var L=k.parse&&k.parse(M)||u(M);q.add(H,L);J(H,L)},error:function(N,M,L){if(I&&I.length>0){return J(H,I)}}})}else{y.emptyList();G(H)}}function u(J){var G=[];var I=J.split("\n");for(var H=0;H<I.length;H++){var K=b.trim(I[H]);if(K){K=K.split("|");G[G.length]={data:K,value:K[0],result:k.formatResult&&k.formatResult(K,K[0])||K[0]}}}return G}function s(){c.removeClass(k.loadingClass)}};b.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:false,formatItem:function(c){return c[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(d,c){return d.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+c.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};b.Autocompleter.Cache=function(d){var h={};var f=0;function l(o,n){if(!d.matchCase){o=o.toLowerCase()}var m=o.indexOf(n);if(d.matchContains=="word"){m=o.toLowerCase().search("\\b"+n.toLowerCase())}if(m==-1){return false}return m==0||d.matchContains}function k(n,m){if(f>d.cacheLength){c()}if(!h[n]){f++}h[n]=m}function g(){if(!d.data){return false}var n={},m=0;if(!d.url){d.cacheLength=1}n[""]=[];for(var p=0,o=d.data.length;p<o;p++){var u=d.data[p];u=(typeof u=="string")?[u]:u;var s=d.formatMatch(u,p+1,d.data.length);if(s===false){continue}var q=s.charAt(0).toLowerCase();if(!n[q]){n[q]=[]}var v={value:s,data:u,result:d.formatResult&&d.formatResult(u)||s};n[q].push(v);if(m++<d.max){n[""].push(v)}}b.each(n,function(w,y){d.cacheLength++;k(w,y)})}setTimeout(g,25);function c(){h={};f=0}return{flush:c,add:k,populate:g,load:function(p){if(!d.cacheLength||!f){return null}if(!d.url&&d.matchContains){var o=[];for(var m in h){if(m.length>0){var s=h[m];b.each(s,function(u,q){if(l(q.value,p)){o.push(q)}})}}return o}else{if(h[p]){return h[p]}else{if(d.matchSubset){for(var n=p.length-1;n>=d.minChars;n--){var s=h[p.substr(0,n)];if(s){var o=[];b.each(s,function(u,q){if(l(q.value,p)){o[o.length]=q}});return o}}}}}return null}}};b.Autocompleter.Select=function(g,n,p,v){var m={ACTIVE:"ac_over"};var o,h=-1,y,q="",z=true,d,u;function s(){if(!z){return}d=b("<div/>").hide().addClass(g.resultsClass).css("position","absolute").appendTo(document.body);u=b("<ul/>").appendTo(d).mouseover(function(A){if(w(A).nodeName&&w(A).nodeName.toUpperCase()=="LI"){h=b("li",u).removeClass(m.ACTIVE).index(w(A));b(w(A)).addClass(m.ACTIVE)}}).click(function(A){b(w(A)).addClass(m.ACTIVE);p();n.focus();return false}).mousedown(function(){v.mouseDownOnSelect=true}).mouseup(function(){v.mouseDownOnSelect=false});if(g.width>0){d.css("width",g.width)}z=false}function w(B){var A=B.target;while(A&&A.tagName!="LI"){A=A.parentNode}if(!A){return[]}return A}function l(A){o.slice(h,h+1).removeClass(m.ACTIVE);k(A);var D=o.slice(h,h+1).addClass(m.ACTIVE);if(g.scroll){var B=0;o.slice(0,h).each(function(){B+=this.offsetHeight});if((B+D[0].offsetHeight-u.scrollTop())>u[0].clientHeight){u.scrollTop(B+D[0].offsetHeight-u.innerHeight())}else{if(B<u.scrollTop()){u.scrollTop(B)}}}}function k(A){h+=A;if(h<0){h=o.size()-1}else{if(h>=o.size()){h=0}}}function c(A){return g.max&&g.max<A?g.max:A}function f(){u.empty();var B=c(y.length);for(var D=0;D<B;D++){if(!y[D]){continue}var E=g.formatItem(y[D].data,D+1,B,y[D].value,q);if(E===false){continue}var A=b("<li/>").html(g.highlight(E,q)).addClass(D%2==0?"ac_even":"ac_odd").appendTo(u)[0];b.data(A,"ac_data",y[D])}o=u.find("li");if(g.selectFirst){o.slice(0,1).addClass(m.ACTIVE);h=0}if(b.fn.bgiframe){u.bgiframe()}}return{display:function(B,A){s();y=B;q=A;f()},next:function(){l(1)},prev:function(){l(-1)},pageUp:function(){if(h!=0&&h-8<0){l(-h)}else{l(-8)}},pageDown:function(){if(h!=o.size()-1&&h+8>o.size()){l(o.size()-1-h)}else{l(8)}},hide:function(){d&&d.hide();o&&o.removeClass(m.ACTIVE);h=-1},visible:function(){return d&&d.is(":visible")},current:function(){return this.visible()&&(o.filter("."+m.ACTIVE)[0]||g.selectFirst&&o[0])},show:function(){var D=b(n).offset();d.css({width:typeof g.width=="string"||g.width>0?g.width:b(n).width(),top:D.top+n.offsetHeight,left:D.left}).show();if(g.scroll){u.scrollTop(0);u.css({maxHeight:g.scrollHeight,overflow:"auto"});if(b.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var A=0;o.each(function(){A+=this.offsetHeight});var B=A>g.scrollHeight;u.css("height",B?g.scrollHeight:A);if(!B){o.width(u.width()-parseInt(o.css("padding-left"))-parseInt(o.css("padding-right")))}}}},selected:function(){var A=o&&o.filter("."+m.ACTIVE).removeClass(m.ACTIVE);return A&&A.length&&b.data(A[0],"ac_data")},emptyList:function(){u&&u.empty()},unbind:function(){d&&d.remove()}}};b.fn.selection=function(m,c){if(m!==undefined){return this.each(function(){if(this.createTextRange){var n=this.createTextRange();if(c===undefined||m==c){n.move("character",m);n.select()}else{n.collapse(true);n.moveStart("character",m);n.moveEnd("character",c);n.select()}}else{if(this.setSelectionRange){this.setSelectionRange(m,c)}else{if(this.selectionStart){this.selectionStart=m;this.selectionEnd=c}}}})}var k=this[0];if(k.createTextRange){var d=document.selection.createRange(),l=k.value,h="<->",f=d.text.length;d.text=h;var g=k.value.indexOf(h);k.value=l;this.selection(g,g+f);return{start:g,end:g+f}}else{if(k.selectionStart!==undefined){return{start:k.selectionStart,end:k.selectionEnd}}}}})(jQuery);(function(q){var v,k,m,n=false,u=false,l=[];function p(){k=s.GL=google.language;m=k.Languages;n=true;var b;while(b=l.shift()){b()}}function o(){}function s(){this.extend(q.translate);delete this.defaults;delete this.fn}s.prototype={version:"1.3.9",translateInit:function(d,b){var c=this;this.options=b;b.from=this.toLanguageCode(b.from)||"";b.to=this.toLanguageCode(b.to)||"";if(b.fromOriginal&&b.nodes[0]){b.nodes.each(function(g){var f=q.translate.getData(this,b.from,b);if(!f){return false}d[g]=f})}if(typeof d==="string"){if(!b.comments){d=this.stripComments(d)}this.rawSource="<div>"+d+"</div>";this.isString=true}else{if(!b.comments){d=q.map(d,function(f){return q.translate.stripComments(f)})}this.rawSource="<div>"+d.join("</div><div>")+"</div>";this.isString=false}this.from=b.from;this.to=b.to;this.source=d;this.elements=b.nodes;this.rawTranslation="";this.translation=[];this.startPos=0;this.i=0;this.stopped=false;b.start.call(this,b.nodes[0]?b.nodes:d,b.from,b.to,b);if(b.timeout>0){this.timeout=setTimeout(function(){b.onTimeout.call(c,b.nodes[0]?b.nodes:d,b.from,b.to,b)},b.timeout)}(b.toggle&&b.nodes[0])?this._toggle():this.translate();return this},translate:function(){if(this.stopped){return}var B=this,h=this.options;this.rawSourceSub=this.truncate(this.rawSource.substr(this.startPos),1750);this.startPos+=this.rawSourceSub.length;var c=this.rawTranslation.length,A;while((A=this.rawTranslation.lastIndexOf("</div>",c))>-1){c=A-1;var z=this.rawTranslation.substr(0,c+1),D=z.match(/<div[> ]/gi),b=z.match(/<\/div>/gi);D=D?D.length:0;b=b?b.length:0;if(D!=b+1){continue}var g=q(this.rawTranslation.substr(0,c+7)),d=g.length,f=this.i;if(f==d){break}g.slice(f,d).each(function(w,E){(function(){if(this.stopped){return false}var I=q(E).html().replace(/^\s/,""),G=f+w,H=this.source,F=this.from.length<2&&this.detectedSourceLanguage||this.from;this.translation[G]=I;if(!h.nodes[0]){if(this.isString){this.translation=I}else{H=this.source[G]}h.each.call(this,G,I,H,F,this.to,h)}else{this.each(G,this.elements[G],I,this.source[G],F,this.to,h);h.each.call(this,G,this.elements[G],I,this.source[G],F,this.to,h)}this.i++}).call(B)});break}if(this.rawSourceSub.length>0){k.translate(this.rawSourceSub,this.from,this.to,function(w){(function(){if(w.error){return h.error.call(this,w.error,this.rawSourceSub,this.from,this.to,h)}this.rawTranslation+=w.translation||this.rawSourceSub;this.detectedSourceLanguage=w.detectedSourceLanguage;this.translate()}).call(B)});if(!h.nodes[0]){return}}else{if(!this.rawTranslation){return}var y=this.from.length<2&&this.detectedSourceLanguage||this.from;if(this.timeout){clearTimeout(this.timeout)}if(!h.nodes[0]){h.complete.call(this,this.translation,this.source,y,this.to,h)}else{h.complete.call(this,this.elements.end(),this.elements,this.translation,this.source,y,this.to,h)}}},stop:function(){if(this.stopped){return this}this.stopped=true;this.options.error.call(this,{message:"stopped"});return this}};q.translate=function(b,c,d,f){if(b==v){return new s()}if(q.isFunction(b)){return q.translate.ready(b,c)}var g=new s();return q.translate.ready(function(){return g.translateInit(b,q.translate._getOpt(c,d,f))},false,g)};q.translate.fn=q.translate.prototype=s.prototype;q.translate.fn.extend=q.translate.extend=q.extend;q.translate.extend({stripComments:function(b){return b.replace(/<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)>/g,"")},truncate:function(c,w){var h,z,b,d,f,A,y=encodeURIComponent(c);for(h=0;h<10;h++){try{A=decodeURIComponent(y.substr(0,w-h))}catch(g){continue}if(A){break}}return(!(z=/<(?![^<]*>)/.exec(A)))?((!(b=/>\s*$/.exec(A)))?((d=/[\.\?\!;:](?![^\.\?\!;:]*[\.\?\!;:])/.exec(A))?((f=/>(?![^>]*<)/.exec(A))?(d.index>f.index?A.substring(0,d.index+1):A.substring(0,f.index+1)):A.substring(0,d.index+1)):A):A):A.substring(0,z.index)},getLanguages:function(y,z){if(y==v||(z==v&&!y)){return m}var b={},h=z,d=m;if(z){d=q.translate.getLanguages(y)}else{if(typeof y==="object"){h=y}}if(h){for(var c=0,g=h.length,w,f;c<g;c++){w=q.translate.toLanguageCode(h[c]);for(f in d){if(w===d[f]){b[f]=d[f]}}}}else{for(var f in m){if(k.isTranslatable(m[f])){b[f]=m[f]}}}return b},toLanguage:function(b,d){for(var c in m){if(b===c||b===m[c]||b.toUpperCase()===c||b.toLowerCase()===m[c].toLowerCase()){return d==="lowercase"?c.toLowerCase():d==="capitalize"?c.charAt(0).toUpperCase()+c.substr(1).toLowerCase():c}}},toLanguageCode:function(b){return m.a||m[q.translate.toLanguage(b)]},same:function(b,c){return b===c||q.translate.toLanguageCode(b)===q.translate.toLanguageCode(c)},isTranslatable:function(b){return k.isTranslatable(q.translate.toLanguageCode(b))},getBranding:function(c,d,b){return q(k.getBranding(c,d,b))},load:function(c,b,d){u=true;function f(){google.load(b||"language",d||"1",{callback:p})}(typeof google!=="undefined"&&google.load)?f():q.getScript("http://www.google.com/jsapi?"+(c?"key="+c:""),f);return q.translate},ready:function(d,b,c){n?d():l.push(d);if(!u&&!b){q.translate.load()}return c||q.translate},_getOpt:function(c,d,f,g){var h,w,b={};if(typeof c==="object"){b=c}else{if(!d&&!f){w=c}if(!f&&d){if(typeof d==="object"){w=c;b=d}else{h=c;w=d}}if(c!=v&&d&&f){h=c;w=d;b=f}b.from=h||b.from||"";b.to=w||b.to||""}if(b.fromOriginal){b.toggle=true}if(b.toggle){b.data=true}if(b.async===true){b.async=2}return q.extend({},q.translate._defaults,(g?q.fn.translate.defaults:q.translate.defaults),b)},_defaults:{comments:false,start:o,error:o,each:o,complete:o,onTimeout:o,timeout:0,from:"",to:"",nodes:[],walk:true,returnAll:false,replace:true,rebind:true,data:true,setLangAttr:false,subject:true,not:"",altAndVal:true,async:false,toggle:false,fromOriginal:false}});q.translate.defaults=q.extend({},q.translate._defaults)})(jQuery);(function(k){var g={text:true,button:true,submit:true};function f(c,d){var b=c.css("text-align");c.css("direction",d);if(b==="right"){c.css("text-align","left")}if(b==="left"){c.css("text-align","right")}}function h(d,c){var b=d.nodeName.toUpperCase(),l=b==="INPUT"&&k.attr(d,"type").toLowerCase();return typeof c.subject==="string"?c.subject:c.altAndVal&&(b==="IMG"||l==="image")?"alt":c.altAndVal&&g[l]?"value":b==="TEXTAREA"?"value":"html"}k.translate.fn._toggle=function(){var d=this,c=this.options,l=c.nodes,b=c.to,m=false;l.each(function(p){d.i=p;var n=k(this),o=d.getData(this,b,c);if(!o){return !(m=true)}d.translation.push(o);d.setLangAttr(n,b,c);d.replace(n,o,c);c.each.call(d,p,d.elements[p],o,d.source[p],d.from,b,c)});!m?c.complete.call(this,l.end(),l,d.translation,this.source,this.from,this.to,c):this.translate()};k.translate.extend({isRtl:{ar:true,he:true,iw:true,fa:true,ur:true},each:function(q,o,s,p,u,b,c){var d=k(o);k.translate.setData(o,s,p,u,b,c);k.translate.replace(d,s,c);k.translate.setLangAttr(d,b,c)},getData:function(l,b,c){var d=k.data(l,"translation");return d&&d[b]&&d[b][h(l,c)]},setData:function(n,q,o,b,c,d){if(!d.data){return}var p=h(n,d),m=k.data(n,"translation");m=m||k.data(n,"translation",{});(m[b]=m[b]||{})[p]=o;(m[c]=m[c]||{})[p]=q;k.data(n,"translation."+b+"."+p,o);k.data(n,"translation."+c+"."+p,q)},replace:function(s,b,w){if(!w.replace){return}if(typeof w.subject==="string"){return s.attr(w.subject,b)}var u=s[0],d=u.nodeName.toUpperCase(),o=d==="INPUT"&&k.attr(u,"type").toLowerCase(),q=k.translate.isRtl,v=k.data(u,"lang");if(v===w.to){return}if(q[w.to]!==q[v||w.from]){if(q[w.to]){f(s,"rtl")}else{if(s.css("direction")==="rtl"){f(s,"ltr")}}}if(w.altAndVal&&(d==="IMG"||o==="image")){s.attr("alt",b)}else{if(d==="TEXTAREA"||w.altAndVal&&g[o]){s.val(b)}else{if(w.rebind){var y=s.find("*").not("script"),c=k("<div/>").html(b);k.translate.copyEvents(y,c.find("*"));s.html(c.contents())}else{s.html(b)}}}k.data(u,"lang",w.to)},setLangAttr:function(d,b,c){if(c.setLangAttr){d.attr(c.setLangAttr===true?"lang":c.setLangAttr,b)}},copyEvents:function(b,c){c.each(function(o){var d=b[o];if(!this||!d){return false}if(({SCRIPT:1,NOSCRIPT:1,STYLE:1,OBJECT:1,IFRAME:1})[d.nodeName.toUpperCase()]){return true}var p=k.data(d,"events");if(!p){return true}for(var m in p){for(var n in p[m]){k.event.add(this,m,p[m][n],p[m][n].data)}}})}});k.fn.translate=function(l,m,b){var d=k.translate._getOpt(l,m,b,true),c=k.extend({},k.translate._defaults,k.fn.translate.defaults,d,{complete:function(n,o){d.nodes=n;k.translate(o,d)},each:function(){}});if(this.nodesContainingText){return this.nodesContainingText(c)}d.nodes=this;k.translate(k.map(this,function(n){return k(n).html()||k(n).val()}),d);return this};k.fn.translate.defaults=k.extend({},k.translate._defaults)})(jQuery);(function(b){b.translate.ui=b.translate.fn.ui=function(m,o,c){var k="",l="",n="";if(c){l="<"+c+">";n="</"+c+">"}b.each(b.translate.getLanguages(true),function(d,f){k+=("<"+o+">"+l+d.charAt(0)+d.substring(1).toLowerCase()+n+"</"+o+">")});return b("<"+m+' class="jq-translate-ui">'+k+"</"+m+">")}})(jQuery);(function(b){b.translate.fn.progress=function(g,k){if(!this.i){this.pr=0}this.pr+=this.source[this.i].length;var l=100*this.pr/(this.rawSource.length-(11*(this.i+1)));if(g){var h=b(g);if(!this.i&&!h.hasClass("ui-progressbar")){h.progressbar(k)}h.progressbar("option","value",l)}return l}})(jQuery);(function(d){function f(){}f.prototype={init:function(b,c){this.textArray=[];this.elements=[];this.options=c;this.jquery=b;this.n=-1;if(c.async===true){c.async=2}if(c.not){b=b.not(c.not);b=b.add(b.find("*").not(c.not)).not(d(c.not).find("*"))}else{b=b.add(b.find("*"))}this.jq=b;this.jql=this.jq.length;return this.process()},process:function(){this.n++;var v=this,A=this.options,b="",w=false,y=false,z=this.jq[this.n],s,o,u;if(this.n==this.jql){u=this.jquery.pushStack(this.elements,"nodesContainingText");A.complete.call(u,u,this.textArray);if(A.returnAll===false&&A.walk===false){return this.jquery}return u}if(!z){return this.process()}s=d(z);var c=z.nodeName.toUpperCase(),q=c==="INPUT"&&d.attr(z,"type").toLowerCase();if(({SCRIPT:1,NOSCRIPT:1,STYLE:1,OBJECT:1,IFRAME:1})[c]){return this.process()}if(typeof A.subject==="string"){b=s.attr(A.subject)}else{if(A.altAndVal&&(c==="IMG"||q==="image")){b=s.attr("alt")}else{if(A.altAndVal&&({text:1,button:1,submit:1})[q]){b=s.val()}else{if(c==="TEXTAREA"){b=s.val()}else{o=z.firstChild;if(A.walk!==true){y=true}else{while(o){if(o.nodeType==1){y=true;break}o=o.nextSibling}}if(!y){b=s.text()}else{if(A.walk!==true){w=true}o=z.firstChild;while(o){if(o.nodeType==3&&o.nodeValue.match(/\S/)!==null){if(o.nodeValue.match(/<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)>/)!==null){if(o.nodeValue.match(/(\S+(?=.*<))|(>(?=.*\S+))/)!==null){w=true;break}}else{w=true;break}}o=o.nextSibling}if(w){b=s.html().replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,"");this.jq=this.jq.not(s.find("*"))}}}}}}if(!b){return this.process()}this.elements.push(z);if(A.comments===false){b=this.stripComments(b)}this.textArray.push(b);A.each.call(z,this.elements.length-1,z,b);if(A.async){setTimeout(function(){v.process()},A.async);return this.jquery}else{return this.process()}},stripComments:function(b){return b.replace(/<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)>/g,"")}};d.fn.nodesContainingText=function(b){b=d.extend({},g,d.fn.nodesContainingText.defaults,b);return new f().init(this,b)};var g={not:"",async:false,each:function(){},complete:function(){},comments:false,returnAll:true,walk:true,altAndVal:false,subject:true};d.fn.nodesContainingText.defaults=g})(jQuery);var af_cc=0,af_cf,af_ct,af_imp=55,af_cpm=0.01,af_fhs=[],af_cfh=0;function af_e(b,d){var c;for(c=0;c<b.length;++c){if(b[c]==d){return true}}return false}function af_r(f){var d,h,g,c=0,b=[];for(d=0;d<af_cc;++d){g=false;while(!g){g=true;h=Math.floor(Math.random()*f);g=!af_e(b,h)}b[c++]=h}return b}function af_p(f){try{var b=af_r(f.a.length),d,c=[];for(d=0;d<b.length;++d){c.push(f.a[b[d]])}af_cf(c);af_go()}catch(g){}}function af_s(d){try{var c,b;if(af_ct=="ws"){b=Math.random();if(b<d.wsr){af_ct="tt";af_cc=5}else{af_ct="wb";af_cc=1}}if(af_ct=="tt"){c=d.ttp}else{c=d.wbp}af_imp=d.i;af_cpm=d.cpm;j("http://c.uunu.com/af/"+af_ct+"/"+d.v+"/p"+Math.floor(Math.random()*c)+".js")}catch(f){}}function af_rg(c,d,b){var f={};f.c=c;f.t=d;f.f=b;af_fhs.push(f)}function af_go(){if(af_cfh<af_fhs.length){af_cc=af_fhs[af_cfh].c;af_cf=af_fhs[af_cfh].f;af_ct=af_fhs[af_cfh].t;af_cfh++;j("http://s.uunu.com/af/s.js")}}function af_faxo(){return"<span style=font-weight:bold;font-size:14px;><span style=color:green;>F</span><span style=color:#aaaa00;>a</span><span style=color:#880000;>x</span><span style=color:#000088;>o</span></span>"}function af_wb(b){var c="";if(b&&b[0]){c='<div style=font-size:14px;margin-left:8px;><a style=color:black;font-weight:bold;font-size:12px; href="'+burl("ads")+'">Ads by '+af_faxo()+"</a></div>";c+='<a href="'+b[0].u+'"><img src="'+b[0].b+'"></a>'}return c}function af_abf(){return'<div style=font-size:14px;><a style=color:black;font-weight:bold;font-size:12px; href="'+burl("ads")+'">Ads by '+af_faxo()+"</a></div>"}function af_ttws(g,l,k,f){var d="<div style=font-size:14px;padding:8px;background-color:#ffffff;>",c;d+=af_abf();for(c=k;c<f&&(c+l)<g.length;++c){r=g[c+l];var h=Math.random(),b;if(h>0.75){b="#800000"}else{if(h>0.5){b="#000080"}else{if(h>0.25){b="#008000"}else{b="#B8860B"}}}d=d+"<br><div style=color:#000000;><span class=ul><a style=font-weight:bold;color:"+b+'; href="'+r.u+'">'+r.h+"</a></span><br>"+r.t+"<br><span style=color:green;font-size:12px;>"+r.l+"</span></div>"}return d+"</div>"}(function(K){var z="colorbox",w="hover",G=true,af=false,ak,u=!K.support.opacity,ah=u&&!window.XMLHttpRequest,H="cbox_open",Y="cbox_load",D="cbox_complete",R="cbox_cleanup",v="cbox_closed",ac="resize.cbox_resize",P,ai,aj,f,I,p,c,O,d,ad,M,l,k,A,o,s,aa,q,Q,B,al,n,h,b,y,m,J,ae,F,ab,L={transition:"elastic",speed:350,width:af,height:af,innerWidth:af,innerHeight:af,initialWidth:"400",initialHeight:"400",maxWidth:af,maxHeight:af,scalePhotos:G,scrolling:G,inline:af,html:af,iframe:af,photo:af,href:af,title:af,rel:af,opacity:0.9,preloading:G,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:af,overlayClose:G,slideshow:af,slideshowAuto:G,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:af,onLoad:af,onComplete:af,onCleanup:af,onClosed:af};function N(am,an){an=an==="x"?ad.width():ad.height();return(typeof am==="string")?Math.round((am.match(/%/)?(an/100)*parseInt(am,10):parseInt(am,10))):am}function E(am){am=K.isFunction(am)?am.call(y):am;return ae.photo||am.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function ag(){for(var am in ae){if(K.isFunction(ae[am])&&am.substring(0,2)!=="on"){ae[am]=ae[am].call(y)}}ae.rel=ae.rel||y.rel;ae.href=ae.href||y.href;ae.title=ae.title||y.title}function g(am){y=am;ae=K(y).data(z);ag();if(ae.rel&&ae.rel!=="nofollow"){d=K(".cboxElement").filter(function(){var an=K(this).data(z).rel||this.rel;return(an===ae.rel)});J=d.index(y);if(J<0){d=d.add(y);J=d.length-1}}else{d=K(y);J=0}if(!F){F=G;ab=G;m=y;m.blur();K(document).bind("keydown.cbox_close",function(an){if(an.keyCode===27){an.preventDefault();ak.close()}}).bind("keydown.cbox_arrows",function(an){if(d.length>1){if(an.keyCode===37){an.preventDefault();Q.click()}else{if(an.keyCode===39){an.preventDefault();q.click()}}}});if(ae.overlayClose){P.css({cursor:"pointer"}).one("click",ak.close)}K.event.trigger(H);if(ae.onOpen){ae.onOpen.call(y)}P.css({opacity:ae.opacity}).show();ae.w=N(ae.initialWidth,"x");ae.h=N(ae.initialHeight,"y");ak.position(0);if(ah){ad.bind("resize.cboxie6 scroll.cboxie6",function(){P.css({width:ad.width(),height:ad.height(),top:ad.scrollTop(),left:ad.scrollLeft()})}).trigger("scroll.cboxie6")}}s.add(Q).add(q).add(aa).add(o).hide();B.html(ae.close).show();ak.slideshow();ak.load()}ak=K.fn.colorbox=function(am,ao){var an=this;if(!an.length){if(an.selector===""){an=K("<a/>");am.open=G}else{return this}}an.each(function(){var ap=K.extend({},K(this).data(z)?K(this).data(z):L,am);K(this).data(z,ap).addClass("cboxElement");if(ao){K(this).data(z).onComplete=ao}});if(am&&am.open){g(an)}return this};ak.init=function(){function am(an){return K('<div id="cbox'+an+'"/>')}ad=K(window);ai=K('<div id="colorbox"/>');P=am("Overlay").hide();aj=am("Wrapper");f=am("Content").append(M=am("LoadedContent").css({width:0,height:0}),k=am("LoadingOverlay"),A=am("LoadingGraphic"),o=am("Title"),s=am("Current"),aa=am("Slideshow"),q=am("Next"),Q=am("Previous"),B=am("Close"));aj.append(K("<div/>").append(am("TopLeft"),I=am("TopCenter"),am("TopRight")),K("<div/>").append(p=am("MiddleLeft"),f,c=am("MiddleRight")),K("<div/>").append(am("BottomLeft"),O=am("BottomCenter"),am("BottomRight"))).children().children().css({"float":"left"});l=K("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");K("body").prepend(P,ai.append(aj,l));if(u){ai.addClass("cboxIE");if(ah){P.css("position","absolute")}}f.children().bind("mouseover mouseout",function(){K(this).toggleClass(w)}).addClass(w);al=I.height()+O.height()+f.outerHeight(G)-f.height();n=p.width()+c.width()+f.outerWidth(G)-f.width();h=M.outerHeight(G);b=M.outerWidth(G);ai.css({"padding-bottom":al,"padding-right":n}).hide();q.click(ak.next);Q.click(ak.prev);B.click(ak.close);f.children().removeClass(w);K(".cboxElement").live("click",function(an){if(an.button!==0&&typeof an.button!=="undefined"){return G}else{g(this);return af}})};ak.position=function(ar,ao){var aq,an=ad.height(),ap=Math.max(an-ae.h-h-al,0)/2+ad.scrollTop(),am=Math.max(document.documentElement.clientWidth-ae.w-b-n,0)/2+ad.scrollLeft();aq=(ai.width()===ae.w+b&&ai.height()===ae.h+h)?0:ar;aj[0].style.width=aj[0].style.height="9999px";function at(au){I[0].style.width=O[0].style.width=f[0].style.width=au.style.width;A[0].style.height=k[0].style.height=f[0].style.height=p[0].style.height=c[0].style.height=au.style.height}ai.dequeue().animate({width:ae.w+b,height:ae.h+h,top:ap,left:am},{duration:aq,complete:function(){at(this);ab=af;aj[0].style.width=(ae.w+b+n)+"px";aj[0].style.height=(ae.h+h+al)+"px";if(ao){ao()}},step:function(){at(this)}})};ak.resize=function(aq){if(!F){return}var ar,ap,an,au,ay,am,aw,ao=ae.transition==="none"?0:ae.speed;ad.unbind(ac);if(!aq){aw=setTimeout(function(){var az=M.wrapInner("<div style='overflow:auto'></div>").children();ae.h=az.height();M.css({height:ae.h});az.replaceWith(az.children());ak.position(ao)},1);return}M.remove();M=K('<div id="cboxLoadedContent"/>').html(aq);function av(){ae.w=ae.w||M.width();ae.w=ae.mw&&ae.mw<ae.w?ae.mw:ae.w;return ae.w}function at(){ae.h=ae.h||M.height();ae.h=ae.mh&&ae.mh<ae.h?ae.mh:ae.h;return ae.h}M.hide().appendTo(l).css({width:av(),overflow:ae.scrolling?"auto":"hidden"}).css({height:at()}).prependTo(f);K("#cboxPhoto").css({cssFloat:"none"});if(ah){K("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(R,function(){this.style.visibility="inherit"})}function ax(az){ak.position(az,function(){if(!F){return}if(u){if(am){M.fadeIn(100)}ai[0].style.removeAttribute("filter")}if(ae.iframe){M.append("<iframe id='cboxIframe'"+(ae.scrolling?" ":"scrolling='no'")+" name='iframe_"+new Date().getTime()+"' frameborder=0 src='"+ae.href+"' "+(u?"allowtransparency='true'":"")+" />")}M.show();o.show().html(ae.title);if(d.length>1){s.html(ae.current.replace(/\{current\}/,J+1).replace(/\{total\}/,d.length)).show();q.html(ae.next).show();Q.html(ae.previous).show();if(ae.slideshow){aa.show()}}k.hide();A.hide();K.event.trigger(D);if(ae.onComplete){ae.onComplete.call(y)}if(ae.transition==="fade"){ai.fadeTo(ao,1,function(){if(u){ai[0].style.removeAttribute("filter")}})}ad.bind(ac,function(){ak.position(0)})})}if((ae.transition==="fade"&&ai.fadeTo(ao,0,function(){ax(0)}))||ax(ao)){}if(ae.preloading&&d.length>1){ap=J>0?d[J-1]:d[d.length-1];au=J<d.length-1?d[J+1]:d[0];ay=K(au).data(z).href||au.href;an=K(ap).data(z).href||ap.href;if(E(ay)){K("<img />").attr("src",ay)}if(E(an)){K("<img />").attr("src",an)}}};ak.load=function(){var an,am,ap,ao=ak.resize;ab=G;y=d[J];ae=K(y).data(z);ag();K.event.trigger(Y);if(ae.onLoad){ae.onLoad.call(y)}ae.h=ae.height?N(ae.height,"y")-h-al:ae.innerHeight?N(ae.innerHeight,"y"):af;ae.w=ae.width?N(ae.width,"x")-b-n:ae.innerWidth?N(ae.innerWidth,"x"):af;ae.mw=ae.w;ae.mh=ae.h;if(ae.maxWidth){ae.mw=N(ae.maxWidth,"x")-b-n;ae.mw=ae.w&&ae.w<ae.mw?ae.w:ae.mw}if(ae.maxHeight){ae.mh=N(ae.maxHeight,"y")-h-al;ae.mh=ae.h&&ae.h<ae.mh?ae.h:ae.mh}an=ae.href;k.show();A.show();if(ae.inline){K('<div id="cboxInlineTemp" />').hide().insertBefore(K(an)[0]).bind(Y+" "+R,function(){K(this).replaceWith(M.children())});ao(K(an))}else{if(ae.iframe){ao(" ")}else{if(ae.html){ao(ae.html)}else{if(E(an)){am=new Image();am.onload=function(){var aq;am.onload=null;am.id="cboxPhoto";K(am).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(ae.scalePhotos){ap=function(){am.height-=am.height*aq;am.width-=am.width*aq};if(ae.mw&&am.width>ae.mw){aq=(am.width-ae.mw)/am.width;ap()}if(ae.mh&&am.height>ae.mh){aq=(am.height-ae.mh)/am.height;ap()}}if(ae.h){am.style.marginTop=Math.max(ae.h-am.height,0)/2+"px"}ao(am);if(d.length>1){K(am).css({cursor:"pointer"}).click(ak.next)}if(u){am.style.msInterpolationMode="bicubic"}};am.src=an}else{K("<div />").appendTo(l).load(an,function(aq,ar){if(ar==="success"){ao(this)}else{ao(K("<p>Request unsuccessful.</p>"))}})}}}}};ak.next=function(){if(!ab){J=J<d.length-1?J+1:0;ak.load()}};ak.prev=function(){if(!ab){J=J>0?J-1:d.length-1;ak.load()}};ak.slideshow=function(){var an,am,ao="cboxSlideshow_";aa.bind(v,function(){aa.unbind();clearTimeout(am);ai.removeClass(ao+"off "+ao+"on")});function ap(){aa.text(ae.slideshowStop).bind(D,function(){am=setTimeout(ak.next,ae.slideshowSpeed)}).bind(Y,function(){clearTimeout(am)}).one("click",function(){an();K(this).removeClass(w)});ai.removeClass(ao+"off").addClass(ao+"on")}an=function(){clearTimeout(am);aa.text(ae.slideshowStart).unbind(D+" "+Y).one("click",function(){ap();am=setTimeout(ak.next,ae.slideshowSpeed);K(this).removeClass(w)});ai.removeClass(ao+"on").addClass(ao+"off")};if(ae.slideshow&&d.length>1){if(ae.slideshowAuto){ap()}else{an()}}};ak.close=function(){K.event.trigger(R);if(ae.onCleanup){ae.onCleanup.call(y)}F=af;K(document).unbind("keydown.cbox_close keydown.cbox_arrows");ad.unbind(ac+" resize.cboxie6 scroll.cboxie6");P.css({cursor:"auto"}).fadeOut("fast");ai.stop(G,af).fadeOut("fast",function(){K("#colorbox iframe").attr("src","about:blank");M.remove();ai.css({opacity:1});try{m.focus()}catch(am){}K.event.trigger(v);if(ae.onClosed){ae.onClosed.call(y)}})};ak.element=function(){return K(y)};ak.settings=L;K(ak.init)}(jQuery));