(function(){var L=this,G,Y=L.jQuery,P=L.$,O=L.jQuery=L.$=function(e,f){return new O.fn.init(e,f)},d=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,F=/^.[^:#\[\.,]*$/;O.fn=O.prototype={init:function(e,h){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var g=d.exec(e);if(g&&(g[1]||!h)){if(g[1]){e=O.clean([g[1]],h)}else{var j=document.getElementById(g[3]);if(j&&j.id!=g[3]){return O().find(e)}var f=O(j||[]);f.context=document;f.selector=e;return f}}else{return O(h).find(e)}}else{if(O.isFunction(e)){return O(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setArray(O.isArray(e)?e:O.makeArray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(e){return e===G?Array.prototype.slice.call(this):this[e]},pushStack:function(f,h,e){var g=O(f);g.prevObject=this;g.context=this.context;if(h==="find"){g.selector=this.selector+(this.selector?" ":"")+e}else{if(h){g.selector=this.selector+"."+h+"("+e+")"}}return g},setArray:function(e){this.length=0;Array.prototype.push.apply(this,e);return this},each:function(f,e){return O.each(this,f,e)},index:function(e){return O.inArray(e&&e.jquery?e[0]:e,this)},attr:function(f,h,g){var e=f;if(typeof f==="string"){if(h===G){return this[0]&&O[g||"attr"](this[0],f)}else{e={};e[f]=h}}return this.each(function(j){for(f in e){O.attr(g?this.style:this,f,O.prop(this,e[f],g,j,f))}})},css:function(e,f){if((e=="width"||e=="height")&&parseFloat(f)<0){f=G}return this.attr(e,f,"curCSS")},text:function(f){if(typeof f!=="object"&&f!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(f))}var e="";O.each(f||this,function(){O.each(this.childNodes,function(){if(this.nodeType!=8){e+=this.nodeType!=1?this.nodeValue:O.fn.text([this])}})});return e},wrapAll:function(e){if(this[0]){var f=O(e,this[0].ownerDocument).clone();if(this[0].parentNode){f.insertBefore(this[0])}f.map(function(){var g=this;while(g.firstChild){g=g.firstChild}return g}).append(this)}return this},wrapInner:function(e){return this.each(function(){O(this).contents().wrapAll(e)})},wrap:function(e){return this.each(function(){O(this).wrapAll(e)})},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType==1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType==1){this.insertBefore(e,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this.nextSibling)})},end:function(){return this.prevObject||O([])},push:[].push,sort:[].sort,splice:[].splice,find:function(e){if(this.length===1){var f=this.pushStack([],"find",e);f.length=0;O.find(e,this[0],f);return f}else{return this.pushStack(O.unique(O.map(this,function(g){return O.find(e,g)})),"find",e)}},clone:function(g){var e=this.map(function(){if(!O.support.noCloneEvent&&!O.isXMLDoc(this)){var j=this.outerHTML;if(!j){var k=this.ownerDocument.createElement("div");k.appendChild(this.cloneNode(true));j=k.innerHTML}return O.clean([j.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(g===true){var h=this.find("*").andSelf(),f=0;e.find("*").andSelf().each(function(){if(this.nodeName!==h[f].nodeName){return }var j=O.data(h[f],"events");for(var l in j){for(var k in j[l]){O.event.add(this,l,j[l][k],j[l][k].data)}}f++})}return e},filter:function(e){return this.pushStack(O.isFunction(e)&&O.grep(this,function(g,f){return e.call(g,f)})||O.multiFilter(e,O.grep(this,function(f){return f.nodeType===1})),"filter",e)},closest:function(e){var g=O.expr.match.POS.test(e)?O(e):null,f=0;return this.map(function(){var h=this;while(h&&h.ownerDocument){if(g?g.index(h)>-1:O(h).is(e)){O.data(h,"closest",f);return h}h=h.parentNode;f++}})},not:function(e){if(typeof e==="string"){if(F.test(e)){return this.pushStack(O.multiFilter(e,this,true),"not",e)}else{e=O.multiFilter(e,this)}}var f=e.length&&e[e.length-1]!==G&&!e.nodeType;return this.filter(function(){return f?O.inArray(this,e)<0:this!=e})},add:function(e){return this.pushStack(O.unique(O.merge(this.get(),typeof e==="string"?O(e):O.makeArray(e))))},is:function(e){return !!e&&O.multiFilter(e,this).length>0},hasClass:function(e){return !!e&&this.is("."+e)},val:function(l){if(l===G){var e=this[0];if(e){if(O.nodeName(e,"option")){return(e.attributes.value||{}).specified?e.value:e.text}if(O.nodeName(e,"select")){var j=e.selectedIndex,m=[],n=e.options,h=e.type=="select-one";if(j<0){return null}for(var f=h?j:0,k=h?j+1:n.length;f<k;f++){var g=n[f];if(g.selected){l=O(g).val();if(h){return l}m.push(l)}}return m}return(e.value||"").replace(/\r/g,"")}return G}if(typeof l==="number"){l+=""}return this.each(function(){if(this.nodeType!=1){return }if(O.isArray(l)&&/radio|checkbox/.test(this.type)){this.checked=(O.inArray(this.value,l)>=0||O.inArray(this.name,l)>=0)}else{if(O.nodeName(this,"select")){var p=O.makeArray(l);O("option",this).each(function(){this.selected=(O.inArray(this.value,p)>=0||O.inArray(this.text,p)>=0)});if(!p.length){this.selectedIndex=-1}}else{this.value=l}}})},html:function(e){return e===G?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(e)},replaceWith:function(e){return this.after(e).remove()},eq:function(e){return this.slice(e,+e+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(e){return this.pushStack(O.map(this,function(g,f){return e.call(g,f,g)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(k,p,n){if(this[0]){var j=(this[0].ownerDocument||this[0]).createDocumentFragment(),f=O.clean(k,(this[0].ownerDocument||this[0]),j),h=j.firstChild;if(h){for(var g=0,e=this.length;g<e;g++){n.call(m(this[g],h),this.length>1||g>0?j.cloneNode(true):j)}}if(f){O.each(f,Z)}}return this;function m(l,q){return p&&O.nodeName(l,"table")&&O.nodeName(q,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};O.fn.init.prototype=O.fn;function Z(e,f){if(f.src){O.ajax({url:f.src,async:false,dataType:"script"})}else{O.globalEval(f.text||f.textContent||f.innerHTML||"")}if(f.parentNode){f.parentNode.removeChild(f)}}function E(){return +new Date}O.extend=O.fn.extend=function(){var k=arguments[0]||{},h=1,j=arguments.length,e=false,g;if(typeof k==="boolean"){e=k;k=arguments[1]||{};h=2}if(typeof k!=="object"&&!O.isFunction(k)){k={}}if(j==h){k=this;--h}for(;h<j;h++){if((g=arguments[h])!=null){for(var f in g){var l=k[f],m=g[f];if(k===m){continue}if(e&&m&&typeof m==="object"&&!m.nodeType){k[f]=O.extend(e,l||(m.length!=null?[]:{}),m)}else{if(m!==G){k[f]=m}}}}}return k};var B=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},S=Object.prototype.toString;O.extend({noConflict:function(e){L.$=P;if(e){L.jQuery=Y}return O},isFunction:function(e){return S.call(e)==="[object Function]"},isArray:function(e){return S.call(e)==="[object Array]"},isXMLDoc:function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&O.isXMLDoc(e.ownerDocument)},globalEval:function(g){if(g&&/\S/.test(g)){var f=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script");e.type="text/javascript";if(O.support.scriptEval){e.appendChild(document.createTextNode(g))}else{e.text=g}f.insertBefore(e,f.firstChild);f.removeChild(e)}},nodeName:function(f,e){return f.nodeName&&f.nodeName.toUpperCase()==e.toUpperCase()},each:function(g,l,f){var e,h=0,j=g.length;if(f){if(j===G){for(e in g){if(l.apply(g[e],f)===false){break}}}else{for(;h<j;){if(l.apply(g[h++],f)===false){break}}}}else{if(j===G){for(e in g){if(l.call(g[e],e,g[e])===false){break}}}else{for(var k=g[0];h<j&&l.call(k,h,k)!==false;k=g[++h]){}}}return g},prop:function(h,j,g,f,e){if(O.isFunction(j)){j=j.call(h,f)}return typeof j==="number"&&g=="curCSS"&&!B.test(e)?j+"px":j},className:{add:function(e,f){O.each((f||"").split(/\s+/),function(g,h){if(e.nodeType==1&&!O.className.has(e.className,h)){e.className+=(e.className?" ":"")+h}})},remove:function(e,f){if(e.nodeType==1){e.className=f!==G?O.grep(e.className.split(/\s+/),function(g){return !O.className.has(f,g)}).join(" "):""}},has:function(f,e){return f&&O.inArray(e,(f.className||f).toString().split(/\s+/))>-1}},swap:function(h,g,j){var e={};for(var f in g){e[f]=h.style[f];h.style[f]=g[f]}j.call(h);for(var f in g){h.style[f]=e[f]}},css:function(h,f,k,e){if(f=="width"||f=="height"){var m,g={position:"absolute",visibility:"hidden",display:"block"},l=f=="width"?["Left","Right"]:["Top","Bottom"];function j(){m=f=="width"?h.offsetWidth:h.offsetHeight;if(e==="border"){return }O.each(l,function(){if(!e){m-=parseFloat(O.curCSS(h,"padding"+this,true))||0}if(e==="margin"){m+=parseFloat(O.curCSS(h,"margin"+this,true))||0}else{m-=parseFloat(O.curCSS(h,"border"+this+"Width",true))||0}})}if(h.offsetWidth!==0){j()}else{O.swap(h,g,j)}return Math.max(0,Math.round(m))}return O.curCSS(h,f,k)},curCSS:function(j,f,g){var m,e=j.style;if(f=="opacity"&&!O.support.opacity){m=O.attr(e,"opacity");return m==""?"1":m}if(f.match(/float/i)){f=W}if(!g&&e&&e[f]){m=e[f]}else{if(Q.getComputedStyle){if(f.match(/float/i)){f="float"}f=f.replace(/([A-Z])/g,"-$1").toLowerCase();var n=Q.getComputedStyle(j,null);if(n){m=n.getPropertyValue(f)}if(f=="opacity"&&m==""){m="1"}}else{if(j.currentStyle){var k=f.replace(/\-(\w)/g,function(p,q){return q.toUpperCase()});m=j.currentStyle[f]||j.currentStyle[k];if(!/^\d+(px)?$/i.test(m)&&/^\d/.test(m)){var h=e.left,l=j.runtimeStyle.left;j.runtimeStyle.left=j.currentStyle.left;e.left=m||0;m=e.pixelLeft+"px";e.left=h;j.runtimeStyle.left=l}}}}return m},clean:function(f,l,j){l=l||document;if(typeof l.createElement==="undefined"){l=l.ownerDocument||l[0]&&l[0].ownerDocument||document}if(!j&&f.length===1&&typeof f[0]==="string"){var h=/^<(\w+)\s*\/?>$/.exec(f[0]);if(h){return[l.createElement(h[1])]}}var g=[],e=[],m=l.createElement("div");O.each(f,function(s,v){if(typeof v==="number"){v+=""}if(!v){return }if(typeof v==="string"){v=v.replace(/(<(\w+)[^>]*?)\/>/g,function(y,z,w){return w.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?y:z+"></"+w+">"});var q=v.replace(/^\s+/,"").substring(0,10).toLowerCase();var t=!q.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!q.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||q.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!q.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!q.indexOf("<td")||!q.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!q.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!O.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];m.innerHTML=t[1]+v+t[2];while(t[0]--){m=m.lastChild}if(!O.support.tbody){var u=/<tbody/i.test(v),p=!q.indexOf("<table")&&!u?m.firstChild&&m.firstChild.childNodes:t[1]=="<table>"&&!u?m.childNodes:[];for(var n=p.length-1;n>=0;--n){if(O.nodeName(p[n],"tbody")&&!p[n].childNodes.length){p[n].parentNode.removeChild(p[n])}}}if(!O.support.leadingWhitespace&&/^\s/.test(v)){m.insertBefore(l.createTextNode(v.match(/^\s*/)[0]),m.firstChild)}v=O.makeArray(m.childNodes)}if(v.nodeType){g.push(v)}else{g=O.merge(g,v)}});if(j){for(var k=0;g[k];k++){if(O.nodeName(g[k],"script")&&(!g[k].type||g[k].type.toLowerCase()==="text/javascript")){e.push(g[k].parentNode?g[k].parentNode.removeChild(g[k]):g[k])}else{if(g[k].nodeType===1){g.splice.apply(g,[k+1,0].concat(O.makeArray(g[k].getElementsByTagName("script"))))}j.appendChild(g[k])}}return e}return g},attr:function(k,g,l){if(!k||k.nodeType==3||k.nodeType==8){return G}var h=!O.isXMLDoc(k),m=l!==G;g=h&&O.props[g]||g;if(k.tagName){var f=/href|src|style/.test(g);if(g=="selected"&&k.parentNode){k.parentNode.selectedIndex}if(g in k&&h&&!f){if(m){if(g=="type"&&O.nodeName(k,"input")&&k.parentNode){throw"type property can't be changed"}k[g]=l}if(O.nodeName(k,"form")&&k.getAttributeNode(g)){return k.getAttributeNode(g).nodeValue}if(g=="tabIndex"){var j=k.getAttributeNode("tabIndex");return j&&j.specified?j.value:k.nodeName.match(/(button|input|object|select|textarea)/i)?0:k.nodeName.match(/^(a|area)$/i)&&k.href?0:G}return k[g]}if(!O.support.style&&h&&g=="style"){return O.attr(k.style,"cssText",l)}if(m){k.setAttribute(g,""+l)}var e=!O.support.hrefNormalized&&h&&f?k.getAttribute(g,2):k.getAttribute(g);return e===null?G:e}if(!O.support.opacity&&g=="opacity"){if(m){k.zoom=1;k.filter=(k.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(l)+""=="NaN"?"":"alpha(opacity="+l*100+")")}return k.filter&&k.filter.indexOf("opacity=")>=0?(parseFloat(k.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}g=g.replace(/-([a-z])/ig,function(n,p){return p.toUpperCase()});if(m){k[g]=l}return k[g]},trim:function(e){return(e||"").replace(/^\s+|\s+$/g,"")},makeArray:function(g){var e=[];if(g!=null){var f=g.length;if(f==null||typeof g==="string"||O.isFunction(g)||g.setInterval){e[0]=g}else{while(f){e[--f]=g[f]}}}return e},inArray:function(g,h){for(var e=0,f=h.length;e<f;e++){if(h[e]===g){return e}}return -1},merge:function(h,e){var f=0,g,j=h.length;if(!O.support.getAll){while((g=e[f++])!=null){if(g.nodeType!=8){h[j++]=g}}}else{while((g=e[f++])!=null){h[j++]=g}}return h},unique:function(m){var g=[],f={};try{for(var h=0,j=m.length;h<j;h++){var l=O.data(m[h]);if(!f[l]){f[l]=true;g.push(m[h])}}}catch(k){g=m}return g},grep:function(f,k,e){var g=[];for(var h=0,j=f.length;h<j;h++){if(!e!=!k(f[h],h)){g.push(f[h])}}return g},map:function(e,k){var f=[];for(var g=0,h=e.length;g<h;g++){var j=k(e[g],g);if(j!=null){f[f.length]=j}}return f.concat.apply([],f)}});var c=navigator.userAgent.toLowerCase();O.browser={version:(c.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(c),opera:/opera/.test(c),msie:/msie/.test(c)&&!/opera/.test(c),mozilla:/mozilla/.test(c)&&!/(compatible|webkit)/.test(c)};O.each({parent:function(e){return e.parentNode},parents:function(e){return O.dir(e,"parentNode")},next:function(e){return O.nth(e,2,"nextSibling")},prev:function(e){return O.nth(e,2,"previousSibling")},nextAll:function(e){return O.dir(e,"nextSibling")},prevAll:function(e){return O.dir(e,"previousSibling")},siblings:function(e){return O.sibling(e.parentNode.firstChild,e)},children:function(e){return O.sibling(e.firstChild)},contents:function(e){return O.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:O.makeArray(e.childNodes)}},function(e,f){O.fn[e]=function(g){var h=O.map(this,f);if(g&&typeof g=="string"){h=O.multiFilter(g,h)}return this.pushStack(O.unique(h),e,g)}});O.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,f){O.fn[e]=function(g){var k=[],n=O(g);for(var m=0,h=n.length;m<h;m++){var j=(m>0?this.clone(true):this).get();O.fn[f].apply(O(n[m]),j);k=k.concat(j)}return this.pushStack(k,e,g)}});O.each({removeAttr:function(e){O.attr(this,e,"");if(this.nodeType==1){this.removeAttribute(e)}},addClass:function(e){O.className.add(this,e)},removeClass:function(e){O.className.remove(this,e)},toggleClass:function(f,e){if(typeof e!=="boolean"){e=!O.className.has(this,f)}O.className[e?"add":"remove"](this,f)},remove:function(e){if(!e||O.filter(e,[this]).length){O("*",this).add([this]).each(function(){O.event.remove(this);O.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){O(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(e,f){O.fn[e]=function(){return this.each(f,arguments)}});function J(e,f){return e[0]&&parseInt(O.curCSS(e[0],f,true),10)||0}var H="jQuery"+E(),V=0,a={};O.extend({cache:{},data:function(f,e,g){f=f==L?a:f;var h=f[H];if(!h){h=f[H]=++V}if(e&&!O.cache[h]){O.cache[h]={}}if(g!==G){O.cache[h][e]=g}return e?O.cache[h][e]:h},removeData:function(g,f){g=g==L?a:g;var j=g[H];if(f){if(O.cache[j]){delete O.cache[j][f];f="";for(f in O.cache[j]){break}if(!f){O.removeData(g)}}}else{try{delete g[H]}catch(h){if(g.removeAttribute){g.removeAttribute(H)}}delete O.cache[j]}},queue:function(f,e,h){if(f){e=(e||"fx")+"queue";var g=O.data(f,e);if(!g||O.isArray(h)){g=O.data(f,e,O.makeArray(h))}else{if(h){g.push(h)}}}return g},dequeue:function(h,g){var e=O.queue(h,g),f=e.shift();if(!g||g==="fx"){f=e[0]}if(f!==G){f.call(h)}}});O.fn.extend({data:function(e,g){var h=e.split(".");h[1]=h[1]?"."+h[1]:"";if(g===G){var f=this.triggerHandler("getData"+h[1]+"!",[h[0]]);if(f===G&&this.length){f=O.data(this[0],e)}return f===G&&h[1]?this.data(h[0]):f}else{return this.trigger("setData"+h[1]+"!",[h[0],g]).each(function(){O.data(this,e,g)})}},removeData:function(e){return this.each(function(){O.removeData(this,e)})},queue:function(e,f){if(typeof e!=="string"){f=e;e="fx"}if(f===G){return O.queue(this[0],e)}return this.each(function(){var g=O.queue(this,e,f);if(e=="fx"&&g.length==1){g[0].call(this)}})},dequeue:function(e){return this.each(function(){O.dequeue(this,e)})}});(function(){var v=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,n=0,j=Object.prototype.toString;var g=function(AC,y,AF,AG){AF=AF||[];y=y||document;if(y.nodeType!==1&&y.nodeType!==9){return[]}if(!AC||typeof AC!=="string"){return AF}var AD=[],AA,AJ,AM,e,AH,z,AB=true;v.lastIndex=0;while((AA=v.exec(AC))!==null){AD.push(AA[1]);if(AA[2]){z=RegExp.rightContext;break}}if(AD.length>1&&p.exec(AC)){if(AD.length===2&&k.relative[AD[0]]){AJ=l(AD[0]+AD[1],y)}else{AJ=k.relative[AD[0]]?[y]:g(AD.shift(),y);while(AD.length){AC=AD.shift();if(k.relative[AC]){AC+=AD.shift()}AJ=l(AC,AJ)}}}else{var AI=AG?{expr:AD.pop(),set:f(AG)}:g.find(AD.pop(),AD.length===1&&y.parentNode?y.parentNode:y,u(y));AJ=g.filter(AI.expr,AI.set);if(AD.length>0){AM=f(AJ)}else{AB=false}while(AD.length){var AL=AD.pop(),AK=AL;if(!k.relative[AL]){AL=""}else{AK=AD.pop()}if(AK==null){AK=y}k.relative[AL](AM,AK,u(y))}}if(!AM){AM=AJ}if(!AM){throw"Syntax error, unrecognized expression: "+(AL||AC)}if(j.call(AM)==="[object Array]"){if(!AB){AF.push.apply(AF,AM)}else{if(y.nodeType===1){for(var AE=0;AM[AE]!=null;AE++){if(AM[AE]&&(AM[AE]===true||AM[AE].nodeType===1&&m(y,AM[AE]))){AF.push(AJ[AE])}}}else{for(var AE=0;AM[AE]!=null;AE++){if(AM[AE]&&AM[AE].nodeType===1){AF.push(AJ[AE])}}}}}else{f(AM,AF)}if(z){g(z,y,AF,AG);if(h){hasDuplicate=false;AF.sort(h);if(hasDuplicate){for(var AE=1;AE<AF.length;AE++){if(AF[AE]===AF[AE-1]){AF.splice(AE--,1)}}}}}return AF};g.matches=function(e,y){return g(e,null,null,y)};g.find=function(AE,e,AF){var AD,AB;if(!AE){return[]}for(var AA=0,z=k.order.length;AA<z;AA++){var AC=k.order[AA],AB;if((AB=k.match[AC].exec(AE))){var y=RegExp.leftContext;if(y.substr(y.length-1)!=="\\"){AB[1]=(AB[1]||"").replace(/\\/g,"");AD=k.find[AC](AB,e,AF);if(AD!=null){AE=AE.replace(k.match[AC],"");break}}}}if(!AD){AD=e.getElementsByTagName("*")}return{set:AD,expr:AE}};g.filter=function(AH,AG,AK,AA){var z=AH,AM=[],AE=AG,AC,e,AD=AG&&AG[0]&&u(AG[0]);while(AH&&AG.length){for(var AF in k.filter){if((AC=k.match[AF].exec(AH))!=null){var y=k.filter[AF],AL,AJ;e=false;if(AE==AM){AM=[]}if(k.preFilter[AF]){AC=k.preFilter[AF](AC,AE,AK,AM,AA,AD);if(!AC){e=AL=true}else{if(AC===true){continue}}}if(AC){for(var AB=0;(AJ=AE[AB])!=null;AB++){if(AJ){AL=y(AJ,AC,AB,AE);var AI=AA^!!AL;if(AK&&AL!=null){if(AI){e=true}else{AE[AB]=false}}else{if(AI){AM.push(AJ);e=true}}}}}if(AL!==G){if(!AK){AE=AM}AH=AH.replace(k.match[AF],"");if(!e){return[]}break}}}if(AH==z){if(e==null){throw"Syntax error, unrecognized expression: "+AH}else{break}}z=AH}return AE};var k=g.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")}},relative:{"+":function(AE,e,AD){var AB=typeof e==="string",AF=AB&&!/\W/.test(e),AC=AB&&!AF;if(AF&&!AD){e=e.toUpperCase()}for(var AA=0,z=AE.length,y;AA<z;AA++){if((y=AE[AA])){while((y=y.previousSibling)&&y.nodeType!==1){}AE[AA]=AC||y&&y.nodeName===e?y||false:y===e}}if(AC){g.filter(e,AE,true)}},">":function(AD,y,AE){var AB=typeof y==="string";if(AB&&!/\W/.test(y)){y=AE?y:y.toUpperCase();for(var z=0,e=AD.length;z<e;z++){var AC=AD[z];if(AC){var AA=AC.parentNode;AD[z]=AA.nodeName===y?AA:false}}}else{for(var z=0,e=AD.length;z<e;z++){var AC=AD[z];if(AC){AD[z]=AB?AC.parentNode:AC.parentNode===y}}if(AB){g.filter(y,AD,true)}}},"":function(AA,y,AC){var z=n++,e=w;if(!y.match(/\W/)){var AB=y=AC?y:y.toUpperCase();e=t}e("parentNode",y,z,AA,AB,AC)},"~":function(AA,y,AC){var z=n++,e=w;if(typeof y==="string"&&!y.match(/\W/)){var AB=y=AC?y:y.toUpperCase();e=t}e("previousSibling",y,z,AA,AB,AC)}},find:{ID:function(y,z,AA){if(typeof z.getElementById!=="undefined"&&!AA){var e=z.getElementById(y[1]);return e?[e]:[]}},NAME:function(z,AC,AD){if(typeof AC.getElementsByName!=="undefined"){var y=[],AB=AC.getElementsByName(z[1]);for(var AA=0,e=AB.length;AA<e;AA++){if(AB[AA].getAttribute("name")===z[1]){y.push(AB[AA])}}return y.length===0?null:y}},TAG:function(e,y){return y.getElementsByTagName(e[1])}},preFilter:{CLASS:function(AA,y,z,e,AD,AE){AA=" "+AA[1].replace(/\\/g,"")+" ";if(AE){return AA}for(var AB=0,AC;(AC=y[AB])!=null;AB++){if(AC){if(AD^(AC.className&&(" "+AC.className+" ").indexOf(AA)>=0)){if(!z){e.push(AC)}}else{if(z){y[AB]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(y,e){for(var z=0;e[z]===false;z++){}return e[z]&&u(e[z])?y[1]:y[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(y[1]+(y[2]||1))-0;e[3]=y[3]-0}e[0]=n++;return e},ATTR:function(AB,y,z,e,AC,AD){var AA=AB[1].replace(/\\/g,"");if(!AD&&k.attrMap[AA]){AB[1]=k.attrMap[AA]}if(AB[2]==="~="){AB[4]=" "+AB[4]+" "}return AB},PSEUDO:function(AB,y,z,e,AC){if(AB[1]==="not"){if(AB[3].match(v).length>1||/^\w/.test(AB[3])){AB[3]=g(AB[3],null,null,y)}else{var AA=g.filter(AB[3],y,z,true^AC);if(!z){e.push.apply(e,AA)}return false}}else{if(k.match.POS.test(AB[0])||k.match.CHILD.test(AB[0])){return true}}return AB},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(z,y,e){return !!g(e[3],z).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(y,e){return e===0},last:function(z,y,e,AA){return y===AA.length-1},even:function(y,e){return e%2===0},odd:function(y,e){return e%2===1},lt:function(z,y,e){return y<e[3]-0},gt:function(z,y,e){return y>e[3]-0},nth:function(z,y,e){return e[3]-0==y},eq:function(z,y,e){return e[3]-0==y}},filter:{PSEUDO:function(AD,z,AA,AE){var y=z[1],AB=k.filters[y];if(AB){return AB(AD,AA,z,AE)}else{if(y==="contains"){return(AD.textContent||AD.innerText||"").indexOf(z[3])>=0}else{if(y==="not"){var AC=z[3];for(var AA=0,e=AC.length;AA<e;AA++){if(AC[AA]===AD){return false}}return true}}}},CHILD:function(e,AA){var AD=AA[1],y=e;switch(AD){case"only":case"first":while(y=y.previousSibling){if(y.nodeType===1){return false}}if(AD=="first"){return true}y=e;case"last":while(y=y.nextSibling){if(y.nodeType===1){return false}}return true;case"nth":var z=AA[2],AG=AA[3];if(z==1&&AG==0){return true}var AC=AA[0],AF=e.parentNode;if(AF&&(AF.sizcache!==AC||!e.nodeIndex)){var AB=0;for(y=AF.firstChild;y;y=y.nextSibling){if(y.nodeType===1){y.nodeIndex=++AB}}AF.sizcache=AC}var AE=e.nodeIndex-AG;if(z==0){return AE==0}else{return(AE%z==0&&AE/z>=0)}}},ID:function(y,e){return y.nodeType===1&&y.getAttribute("id")===e},TAG:function(y,e){return(e==="*"&&y.nodeType===1)||y.nodeName===e},CLASS:function(y,e){return(" "+(y.className||y.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(AC,AA){var z=AA[1],e=k.attrHandle[z]?k.attrHandle[z](AC):AC[z]!=null?AC[z]:AC.getAttribute(z),AD=e+"",AB=AA[2],y=AA[4];return e==null?AB==="!=":AB==="="?AD===y:AB==="*="?AD.indexOf(y)>=0:AB==="~="?(" "+AD+" ").indexOf(y)>=0:!y?AD&&e!==false:AB==="!="?AD!=y:AB==="^="?AD.indexOf(y)===0:AB==="$="?AD.substr(AD.length-y.length)===y:AB==="|="?AD===y||AD.substr(0,y.length+1)===y+"-":false},POS:function(AB,y,z,AC){var e=y[2],AA=k.setFilters[e];if(AA){return AA(AB,z,y,AC)}}}};var p=k.match.POS;for(var s in k.match){k.match[s]=RegExp(k.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var f=function(y,e){y=Array.prototype.slice.call(y);if(e){e.push.apply(e,y);return e}return y};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(q){f=function(AB,AA){var y=AA||[];if(j.call(AB)==="[object Array]"){Array.prototype.push.apply(y,AB)}else{if(typeof AB.length==="number"){for(var z=0,e=AB.length;z<e;z++){y.push(AB[z])}}else{for(var z=0;AB[z];z++){y.push(AB[z])}}}return y}}var h;if(document.documentElement.compareDocumentPosition){h=function(y,e){var z=y.compareDocumentPosition(e)&4?-1:y===e?0:1;if(z===0){hasDuplicate=true}return z}}else{if("sourceIndex" in document.documentElement){h=function(y,e){var z=y.sourceIndex-e.sourceIndex;if(z===0){hasDuplicate=true}return z}}else{if(document.createRange){h=function(AA,y){var z=AA.ownerDocument.createRange(),e=y.ownerDocument.createRange();z.selectNode(AA);z.collapse(true);e.selectNode(y);e.collapse(true);var AB=z.compareBoundaryPoints(Range.START_TO_END,e);if(AB===0){hasDuplicate=true}return AB}}}}(function(){var y=document.createElement("form"),z="script"+(new Date).getTime();y.innerHTML="<input name='"+z+"'/>";var e=document.documentElement;e.insertBefore(y,e.firstChild);if(!!document.getElementById(z)){k.find.ID=function(AB,AC,AD){if(typeof AC.getElementById!=="undefined"&&!AD){var AA=AC.getElementById(AB[1]);return AA?AA.id===AB[1]||typeof AA.getAttributeNode!=="undefined"&&AA.getAttributeNode("id").nodeValue===AB[1]?[AA]:G:[]}};k.filter.ID=function(AC,AA){var AB=typeof AC.getAttributeNode!=="undefined"&&AC.getAttributeNode("id");return AC.nodeType===1&&AB&&AB.nodeValue===AA}}e.removeChild(y)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){k.find.TAG=function(y,AC){var AB=AC.getElementsByTagName(y[1]);if(y[1]==="*"){var AA=[];for(var z=0;AB[z];z++){if(AB[z].nodeType===1){AA.push(AB[z])}}AB=AA}return AB}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(y){return y.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var e=g,y=document.createElement("div");y.innerHTML="<p class='TEST'></p>";if(y.querySelectorAll&&y.querySelectorAll(".TEST").length===0){return }g=function(AC,AB,z,AA){AB=AB||document;if(!AA&&AB.nodeType===9&&!u(AB)){try{return f(AB.querySelectorAll(AC),z)}catch(AD){}}return e(AC,AB,z,AA)};g.find=e.find;g.filter=e.filter;g.selectors=e.selectors;g.matches=e.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName("e").length===0){return }e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return }k.order.splice(1,0,"CLASS");k.find.CLASS=function(y,z,AA){if(typeof z.getElementsByClassName!=="undefined"&&!AA){return z.getElementsByClassName(y[1])}}})()}function t(y,AD,AC,AH,AE,AG){var AF=y=="previousSibling"&&!AG;for(var AA=0,z=AH.length;AA<z;AA++){var e=AH[AA];if(e){if(AF&&e.nodeType===1){e.sizcache=AC;e.sizset=AA}e=e[y];var AB=false;while(e){if(e.sizcache===AC){AB=AH[e.sizset];break}if(e.nodeType===1&&!AG){e.sizcache=AC;e.sizset=AA}if(e.nodeName===AD){AB=e;break}e=e[y]}AH[AA]=AB}}}function w(y,AD,AC,AH,AE,AG){var AF=y=="previousSibling"&&!AG;for(var AA=0,z=AH.length;AA<z;AA++){var e=AH[AA];if(e){if(AF&&e.nodeType===1){e.sizcache=AC;e.sizset=AA}e=e[y];var AB=false;while(e){if(e.sizcache===AC){AB=AH[e.sizset];break}if(e.nodeType===1){if(!AG){e.sizcache=AC;e.sizset=AA}if(typeof AD!=="string"){if(e===AD){AB=true;break}}else{if(g.filter(AD,[e]).length>0){AB=e;break}}}e=e[y]}AH[AA]=AB}}}var m=document.compareDocumentPosition?function(y,e){return y.compareDocumentPosition(e)&16}:function(y,e){return y!==e&&(y.contains?y.contains(e):true)};var u=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&u(e.ownerDocument)};var l=function(e,AE){var AA=[],AB="",AC,z=AE.nodeType?[AE]:AE;while((AC=k.match.PSEUDO.exec(e))){AB+=AC[0];e=e.replace(k.match.PSEUDO,"")}e=k.relative[e]?e+"*":e;for(var AD=0,y=z.length;AD<y;AD++){g(e,z[AD],AA)}return g.filter(AB,AA)};O.find=g;O.filter=g.filter;O.expr=g.selectors;O.expr[":"]=O.expr.filters;g.selectors.filters.hidden=function(e){return e.offsetWidth===0||e.offsetHeight===0};g.selectors.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0};g.selectors.filters.animated=function(e){return O.grep(O.timers,function(y){return e===y.elem}).length};O.multiFilter=function(z,e,y){if(y){z=":not("+z+")"}return g.matches(z,e)};O.dir=function(z,y){var e=[],AA=z[y];while(AA&&AA!=document){if(AA.nodeType==1){e.push(AA)}AA=AA[y]}return e};O.nth=function(AB,e,z,AA){e=e||1;var y=0;for(;AB;AB=AB[z]){if(AB.nodeType==1&&++y==e){break}}return AB};O.sibling=function(z,y){var e=[];for(;z;z=z.nextSibling){if(z.nodeType==1&&z!=y){e.push(z)}}return e};return ;L.Sizzle=g})();O.event={add:function(j,f,h,l){if(j.nodeType==3||j.nodeType==8){return }if(j.setInterval&&j!=L){j=L}if(!h.guid){h.guid=this.guid++}if(l!==G){var g=h;h=this.proxy(g);h.data=l}var e=O.data(j,"events")||O.data(j,"events",{}),k=O.data(j,"handle")||O.data(j,"handle",function(){return typeof O!=="undefined"&&!O.event.triggered?O.event.handle.apply(arguments.callee.elem,arguments):G});k.elem=j;O.each(f.split(/\s+/),function(n,p){var q=p.split(".");p=q.shift();h.type=q.slice().sort().join(".");var m=e[p];if(O.event.specialAll[p]){O.event.specialAll[p].setup.call(j,l,q)}if(!m){m=e[p]={};if(!O.event.special[p]||O.event.special[p].setup.call(j,l,q)===false){if(j.addEventListener){j.addEventListener(p,k,false)}else{if(j.attachEvent){j.attachEvent("on"+p,k)}}}}m[h.guid]=h;O.event.global[p]=true});j=null},guid:1,global:{},remove:function(l,h,k){if(l.nodeType==3||l.nodeType==8){return }var g=O.data(l,"events"),f,e;if(g){if(h===G||(typeof h==="string"&&h.charAt(0)==".")){for(var j in g){this.remove(l,j+(h||""))}}else{if(h.type){k=h.handler;h=h.type}O.each(h.split(/\s+/),function(n,q){var t=q.split(".");q=t.shift();var p=RegExp("(^|\\.)"+t.slice().sort().join(".*\\.")+"(\\.|$)");if(g[q]){if(k){delete g[q][k.guid]}else{for(var s in g[q]){if(p.test(g[q][s].type)){delete g[q][s]}}}if(O.event.specialAll[q]){O.event.specialAll[q].teardown.call(l,t)}for(f in g[q]){break}if(!f){if(!O.event.special[q]||O.event.special[q].teardown.call(l,t)===false){if(l.removeEventListener){l.removeEventListener(q,O.data(l,"handle"),false)}else{if(l.detachEvent){l.detachEvent("on"+q,O.data(l,"handle"))}}}f=null;delete g[q]}}})}for(f in g){break}if(!f){var m=O.data(l,"handle");if(m){m.elem=null}O.removeData(l,"events");O.removeData(l,"handle")}}},trigger:function(k,m,j,f){var h=k.type||k;if(!f){k=typeof k==="object"?k[H]?k:O.extend(O.Event(h),k):O.Event(h);if(h.indexOf("!")>=0){k.type=h=h.slice(0,-1);k.exclusive=true}if(!j){k.stopPropagation();if(this.global[h]){O.each(O.cache,function(){if(this.events&&this.events[h]){O.event.trigger(k,m,this.handle.elem)}})}}if(!j||j.nodeType==3||j.nodeType==8){return G}k.result=G;k.target=j;m=O.makeArray(m);m.unshift(k)}k.currentTarget=j;var l=O.data(j,"handle");if(l){l.apply(j,m)}if((!j[h]||(O.nodeName(j,"a")&&h=="click"))&&j["on"+h]&&j["on"+h].apply(j,m)===false){k.result=false}if(!f&&j[h]&&!k.isDefaultPrevented()&&!(O.nodeName(j,"a")&&h=="click")){this.triggered=true;try{j[h]()}catch(n){}}this.triggered=false;if(!k.isPropagationStopped()){var g=j.parentNode||j.ownerDocument;if(g){O.event.trigger(k,m,g,true)}}},handle:function(m){var l,e;m=arguments[0]=O.event.fix(m||L.event);m.currentTarget=this;var n=m.type.split(".");m.type=n.shift();l=!n.length&&!m.exclusive;var k=RegExp("(^|\\.)"+n.slice().sort().join(".*\\.")+"(\\.|$)");e=(O.data(this,"events")||{})[m.type];for(var g in e){var h=e[g];if(l||k.test(h.type)){m.handler=h;m.data=h.data;var f=h.apply(this,arguments);if(f!==G){m.result=f;if(f===false){m.preventDefault();m.stopPropagation()}}if(m.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(h){if(h[H]){return h}var f=h;h=O.Event(f);for(var g=this.props.length,k;g;){k=this.props[--g];h[k]=f[k]}if(!h.target){h.target=h.srcElement||document}if(h.target.nodeType==3){h.target=h.target.parentNode}if(!h.relatedTarget&&h.fromElement){h.relatedTarget=h.fromElement==h.target?h.toElement:h.fromElement}if(h.pageX==null&&h.clientX!=null){var j=document.documentElement,e=document.body;h.pageX=h.clientX+(j&&j.scrollLeft||e&&e.scrollLeft||0)-(j.clientLeft||0);h.pageY=h.clientY+(j&&j.scrollTop||e&&e.scrollTop||0)-(j.clientTop||0)}if(!h.which&&((h.charCode||h.charCode===0)?h.charCode:h.keyCode)){h.which=h.charCode||h.keyCode}if(!h.metaKey&&h.ctrlKey){h.metaKey=h.ctrlKey}if(!h.which&&h.button){h.which=(h.button&1?1:(h.button&2?3:(h.button&4?2:0)))}return h},proxy:function(f,e){e=e||function(){return f.apply(this,arguments)};e.guid=f.guid=f.guid||e.guid||this.guid++;return e},special:{ready:{setup:b,teardown:function(){}}},specialAll:{live:{setup:function(e,f){O.event.add(this,f[0],C)},teardown:function(g){if(g.length){var e=0,f=RegExp("(^|\\.)"+g[0]+"(\\.|$)");O.each((O.data(this,"events").live||{}),function(){if(f.test(this.type)){e++}});if(e<1){O.event.remove(this,g[0],C)}}}}}};O.Event=function(e){if(!this.preventDefault){return new O.Event(e)}if(e&&e.type){this.originalEvent=e;this.type=e.type}else{this.type=e}this.timeStamp=E();this[H]=true};function K(){return false}function U(){return true}O.Event.prototype={preventDefault:function(){this.isDefaultPrevented=U;var f=this.originalEvent;if(!f){return }if(f.preventDefault){f.preventDefault()}f.returnValue=false},stopPropagation:function(){this.isPropagationStopped=U;var f=this.originalEvent;if(!f){return }if(f.stopPropagation){f.stopPropagation()}f.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U;this.stopPropagation()},isDefaultPrevented:K,isPropagationStopped:K,isImmediatePropagationStopped:K};var A=function(g){var f=g.relatedTarget;while(f&&f!=this){try{f=f.parentNode}catch(h){f=this}}if(f!=this){g.type=g.data;O.event.handle.apply(this,arguments)}};O.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(f,e){O.event.special[e]={setup:function(){O.event.add(this,f,A,e)},teardown:function(){O.event.remove(this,f,A)}}});O.fn.extend({bind:function(f,g,e){return f=="unload"?this.one(f,g,e):this.each(function(){O.event.add(this,f,e||g,e&&g)})},one:function(g,h,f){var e=O.event.proxy(f||h,function(j){O(this).unbind(j,e);return(f||h).apply(this,arguments)});return this.each(function(){O.event.add(this,g,e,f&&h)})},unbind:function(f,e){return this.each(function(){O.event.remove(this,f,e)})},trigger:function(e,f){return this.each(function(){O.event.trigger(e,f,this)})},triggerHandler:function(e,g){if(this[0]){var f=O.Event(e);f.preventDefault();f.stopPropagation();O.event.trigger(f,g,this[0]);return f.result}},toggle:function(g){var e=arguments,f=1;while(f<e.length){O.event.proxy(g,e[f++])}return this.click(O.event.proxy(g,function(h){this.lastToggle=(this.lastToggle||0)%f;h.preventDefault();return e[this.lastToggle++].apply(this,arguments)||false}))},hover:function(e,f){return this.mouseenter(e).mouseleave(f)},ready:function(e){b();if(O.isReady){e.call(document,O)}else{O.readyList.push(e)}return this},live:function(g,f){var e=O.event.proxy(f);e.guid+=this.selector+g;O(document).bind(I(g,this.selector),this.selector,e);return this},die:function(f,e){O(document).unbind(I(f,this.selector),e?{guid:e.guid+this.selector+f}:null);return this}});function C(h){var e=RegExp("(^|\\.)"+h.type+"(\\.|$)"),g=true,f=[];O.each(O.data(this,"events").live||[],function(j,k){if(e.test(k.type)){var l=O(h.target).closest(k.data)[0];if(l){f.push({elem:l,fn:k})}}});f.sort(function(k,j){return O.data(k.elem,"closest")-O.data(j.elem,"closest")});O.each(f,function(){if(this.fn.call(this.elem,h,this.fn.data)===false){return(g=false)}});return g}function I(f,e){return["live",f,e.replace(/\./g,"`").replace(/ /g,"|")].join(".")}O.extend({isReady:false,readyList:[],ready:function(){if(!O.isReady){O.isReady=true;if(O.readyList){O.each(O.readyList,function(){this.call(document,O)});O.readyList=null}O(document).triggerHandler("ready")}}});var X=false;function b(){if(X){return }X=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);O.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);O.ready()}});if(document.documentElement.doScroll&&L==L.top){(function(){if(O.isReady){return }try{document.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return }O.ready()})()}}}O.event.add(L,"load",O.ready)}O.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(f,e){O.fn[e]=function(g){return g?this.bind(e,g):this.trigger(e)}});O(L).bind("unload",function(){for(var e in O.cache){if(e!=1&&O.cache[e].handle){O.event.remove(O.cache[e].handle.elem)}}});(function(){O.support={};var g=document.documentElement,h=document.createElement("script"),m=document.createElement("div"),l="script"+(new Date).getTime();m.style.display="none";m.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var j=m.getElementsByTagName("*"),f=m.getElementsByTagName("a")[0];if(!j||!j.length||!f){return }O.support={leadingWhitespace:m.firstChild.nodeType==3,tbody:!m.getElementsByTagName("tbody").length,objectAll:!!m.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:f.style.opacity==="0.5",cssFloat:!!f.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};h.type="text/javascript";try{h.appendChild(document.createTextNode("window."+l+"=1;"))}catch(k){}g.insertBefore(h,g.firstChild);if(L[l]){O.support.scriptEval=true;delete L[l]}g.removeChild(h);if(m.attachEvent&&m.fireEvent){m.attachEvent("onclick",function(){O.support.noCloneEvent=false;m.detachEvent("onclick",arguments.callee)});m.cloneNode(true).fireEvent("onclick")}O(function(){var e=document.createElement("div");e.style.width=e.style.paddingLeft="1px";document.body.appendChild(e);O.boxModel=O.support.boxModel=e.offsetWidth===2;document.body.removeChild(e).style.display="none"})})();var W=O.support.cssFloat?"cssFloat":"styleFloat";O.props={"for":"htmlFor","class":"className","float":W,cssFloat:W,styleFloat:W,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};O.fn.extend({_load:O.fn.load,load:function(g,k,l){if(typeof g!=="string"){return this._load(g)}var j=g.indexOf(" ");if(j>=0){var e=g.slice(j,g.length);g=g.slice(0,j)}var h="GET";if(k){if(O.isFunction(k)){l=k;k=null}else{if(typeof k==="object"){k=O.param(k);h="POST"}}}var f=this;O.ajax({url:g,type:h,dataType:"html",data:k,complete:function(n,m){if(m=="success"||m=="notmodified"){f.html(e?O("<div/>").append(n.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(e):n.responseText)}if(l){f.each(l,[n.responseText,m,n])}}});return this},serialize:function(){return O.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?O.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(e,f){var g=O(this).val();return g==null?null:O.isArray(g)?O.map(g,function(j,h){return{name:f.name,value:j}}):{name:f.name,value:g}}).get()}});O.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(e,f){O.fn[f]=function(g){return this.bind(f,g)}});var R=E();O.extend({get:function(e,g,h,f){if(O.isFunction(g)){h=g;g=null}return O.ajax({type:"GET",url:e,data:g,success:h,dataType:f})},getScript:function(e,f){return O.get(e,null,f,"script")},getJSON:function(e,f,g){return O.get(e,f,g,"json")},post:function(e,g,h,f){if(O.isFunction(g)){h=g;g={}}return O.ajax({type:"POST",url:e,data:g,success:h,dataType:f})},ajaxSetup:function(e){O.extend(O.ajaxSettings,e)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return L.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(p){p=O.extend(true,p,O.extend(true,{},O.ajaxSettings,p));var AC,g=/=\?(&|$)/g,w,AB,h=p.type.toUpperCase();if(p.data&&p.processData&&typeof p.data!=="string"){p.data=O.param(p.data)}if(p.dataType=="jsonp"){if(h=="GET"){if(!p.url.match(g)){p.url+=(p.url.match(/\?/)?"&":"?")+(p.jsonp||"callback")+"=?"}}else{if(!p.data||!p.data.match(g)){p.data=(p.data?p.data+"&":"")+(p.jsonp||"callback")+"=?"}}p.dataType="json"}if(p.dataType=="json"&&(p.data&&p.data.match(g)||p.url.match(g))){AC="jsonp"+R++;if(p.data){p.data=(p.data+"").replace(g,"="+AC+"$1")}p.url=p.url.replace(g,"="+AC+"$1");p.dataType="script";L[AC]=function(s){AB=s;k();n();L[AC]=G;try{delete L[AC]}catch(AD){}if(j){j.removeChild(z)}}}if(p.dataType=="script"&&p.cache==null){p.cache=false}if(p.cache===false&&h=="GET"){var f=E();var AA=p.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+f+"$2");p.url=AA+((AA==p.url)?(p.url.match(/\?/)?"&":"?")+"_="+f:"")}if(p.data&&h=="GET"){p.url+=(p.url.match(/\?/)?"&":"?")+p.data;p.data=null}if(p.global&&!O.active++){O.event.trigger("ajaxStart")}var v=/^(\w+:)?\/\/([^\/?#]+)/.exec(p.url);if(p.dataType=="script"&&h=="GET"&&v&&(v[1]&&v[1]!=location.protocol||v[2]!=location.host)){var j=document.getElementsByTagName("head")[0];var z=document.createElement("script");z.src=p.url;if(p.scriptCharset){z.charset=p.scriptCharset}if(!AC){var t=false;z.onload=z.onreadystatechange=function(){if(!t&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){t=true;k();n();z.onload=z.onreadystatechange=null;j.removeChild(z)}}}j.appendChild(z);return G}var m=false;var l=p.xhr();if(p.username){l.open(h,p.url,p.async,p.username,p.password)}else{l.open(h,p.url,p.async)}try{if(p.data){l.setRequestHeader("Content-Type",p.contentType)}if(p.ifModified){l.setRequestHeader("If-Modified-Since",O.lastModified[p.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}l.setRequestHeader("X-Requested-With","XMLHttpRequest");l.setRequestHeader("Accept",p.dataType&&p.accepts[p.dataType]?p.accepts[p.dataType]+", */*":p.accepts._default)}catch(y){}if(p.beforeSend&&p.beforeSend(l,p)===false){if(p.global&&!--O.active){O.event.trigger("ajaxStop")}l.abort();return false}if(p.global){O.event.trigger("ajaxSend",[l,p])}var q=function(s){if(l.readyState==0){if(u){clearInterval(u);u=null;if(p.global&&!--O.active){O.event.trigger("ajaxStop")}}}else{if(!m&&l&&(l.readyState==4||s=="timeout")){m=true;if(u){clearInterval(u);u=null}w=s=="timeout"?"timeout":!O.httpSuccess(l)?"error":p.ifModified&&O.httpNotModified(l,p.url)?"notmodified":"success";if(w=="success"){try{AB=O.httpData(l,p.dataType,p)}catch(AE){w="parsererror"}}if(w=="success"){var AD;try{AD=l.getResponseHeader("Last-Modified")}catch(AE){}if(p.ifModified&&AD){O.lastModified[p.url]=AD}if(!AC){k()}}else{O.handleError(p,l,w)}n();if(s){l.abort()}if(p.async){l=null}}}};if(p.async){var u=setInterval(q,13);if(p.timeout>0){setTimeout(function(){if(l&&!m){q("timeout")}},p.timeout)}}try{l.send(p.data)}catch(y){O.handleError(p,l,null,y)}if(!p.async){q()}function k(){if(p.success){p.success(AB,w)}if(p.global){O.event.trigger("ajaxSuccess",[l,p])}}function n(){if(p.complete){p.complete(l,w)}if(p.global){O.event.trigger("ajaxComplete",[l,p])}if(p.global&&!--O.active){O.event.trigger("ajaxStop")}}return l},handleError:function(g,j,f,h){if(g.error){g.error(j,f,h)}if(g.global){O.event.trigger("ajaxError",[j,g,h])}},active:0,httpSuccess:function(g){try{return !g.status&&location.protocol=="file:"||(g.status>=200&&g.status<300)||g.status==304||g.status==1223}catch(f){}return false},httpNotModified:function(h,f){try{var j=h.getResponseHeader("Last-Modified");return h.status==304||j==O.lastModified[f]}catch(g){}return false},httpData:function(k,h,g){var f=k.getResponseHeader("content-type"),e=h=="xml"||!h&&f&&f.indexOf("xml")>=0,j=e?k.responseXML:k.responseText;if(e&&j.documentElement.tagName=="parsererror"){throw"parsererror"}if(g&&g.dataFilter){j=g.dataFilter(j,h)}if(typeof j==="string"){if(h=="script"){O.globalEval(j)}if(h=="json"){j=L["eval"]("("+j+")")}}return j},param:function(e){var g=[];function h(j,k){g[g.length]=encodeURIComponent(j)+"="+encodeURIComponent(k)}if(O.isArray(e)||e.jquery){O.each(e,function(){h(this.name,this.value)})}else{for(var f in e){if(O.isArray(e[f])){O.each(e[f],function(){h(f,this)})}else{h(f,O.isFunction(e[f])?e[f]():e[f])}}}return g.join("&").replace(/%20/g,"+")}});var M={},N,D=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function T(f,e){var g={};O.each(D.concat.apply([],D.slice(0,e)),function(){g[this]=f});return g}O.fn.extend({show:function(k,n){if(k){return this.animate(T("show",3),k,n)}else{for(var h=0,f=this.length;h<f;h++){var e=O.data(this[h],"olddisplay");this[h].style.display=e||"";if(O.css(this[h],"display")==="none"){var g=this[h].tagName,m;if(M[g]){m=M[g]}else{var j=O("<"+g+" />").appendTo("body");m=j.css("display");if(m==="none"){m="block"}j.remove();M[g]=m}O.data(this[h],"olddisplay",m)}}for(var h=0,f=this.length;h<f;h++){this[h].style.display=O.data(this[h],"olddisplay")||""}return this}},hide:function(h,j){if(h){return this.animate(T("hide",3),h,j)}else{for(var g=0,f=this.length;g<f;g++){var e=O.data(this[g],"olddisplay");if(!e&&e!=="none"){O.data(this[g],"olddisplay",O.css(this[g],"display"))}}for(var g=0,f=this.length;g<f;g++){this[g].style.display="none"}return this}},_toggle:O.fn.toggle,toggle:function(g,f){var e=typeof g==="boolean";return O.isFunction(g)&&O.isFunction(f)?this._toggle.apply(this,arguments):g==null||e?this.each(function(){var h=e?g:O(this).is(":hidden");O(this)[h?"show":"hide"]()}):this.animate(T("toggle",3),g,f)},fadeTo:function(e,g,f){return this.animate({opacity:g},e,f)},animate:function(j,f,h,g){var e=O.speed(f,h,g);return this[e.queue===false?"each":"queue"](function(){var l=O.extend({},e),n,m=this.nodeType==1&&O(this).is(":hidden"),k=this;for(n in j){if(j[n]=="hide"&&m||j[n]=="show"&&!m){return l.complete.call(this)}if((n=="height"||n=="width")&&this.style){l.display=O.css(this,"display");l.overflow=this.style.overflow}}if(l.overflow!=null){this.style.overflow="hidden"}l.curAnim=O.extend({},j);O.each(j,function(q,v){var u=new O.fx(k,l,q);if(/toggle|show|hide/.test(v)){u[v=="toggle"?m?"show":"hide":v](j)}else{var t=v.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),w=u.cur(true)||0;if(t){var p=parseFloat(t[2]),s=t[3]||"px";if(s!="px"){k.style[q]=(p||1)+s;w=((p||1)/u.cur(true))*w;k.style[q]=w+s}if(t[1]){p=((t[1]=="-="?-1:1)*p)+w}u.custom(w,p,s)}else{u.custom(w,v,"")}}});return true})},stop:function(f,e){var g=O.timers;if(f){this.queue([])}this.each(function(){for(var h=g.length-1;h>=0;h--){if(g[h].elem==this){if(e){g[h](true)}g.splice(h,1)}}});if(!e){this.dequeue()}return this}});O.each({slideDown:T("show",1),slideUp:T("hide",1),slideToggle:T("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(e,f){O.fn[e]=function(g,h){return this.animate(f,g,h)}});O.extend({speed:function(g,h,f){var e=typeof g==="object"?g:{complete:f||!f&&h||O.isFunction(g)&&g,duration:g,easing:f&&h||h&&!O.isFunction(h)&&h};e.duration=O.fx.off?0:typeof e.duration==="number"?e.duration:O.fx.speeds[e.duration]||O.fx.speeds._default;e.old=e.complete;e.complete=function(){if(e.queue!==false){O(this).dequeue()}if(O.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(g,h,e,f){return e+f*g},swing:function(g,h,e,f){return((-Math.cos(g*Math.PI)/2)+0.5)*f+e}},timers:[],fx:function(f,e,g){this.options=e;this.elem=f;this.prop=g;if(!e.orig){e.orig={}}}});O.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(O.fx.step[this.prop]||O.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(f){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e=parseFloat(O.css(this.elem,this.prop,f));return e&&e>-10000?e:parseFloat(O.curCSS(this.elem,this.prop))||0},custom:function(j,h,g){this.startTime=E();this.start=j;this.end=h;this.unit=g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function f(k){return e.step(k)}f.elem=this.elem;if(f()&&O.timers.push(f)&&!N){N=setInterval(function(){var l=O.timers;for(var k=0;k<l.length;k++){if(!l[k]()){l.splice(k--,1)}}if(!l.length){clearInterval(N);N=G}},13)}},show:function(){this.options.orig[this.prop]=O.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());O(this.elem).show()},hide:function(){this.options.orig[this.prop]=O.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(h){var g=E();if(h||g>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var e=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){e=false}}if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(O.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){O(this.elem).hide()}if(this.options.hide||this.options.show){for(var j in this.options.curAnim){O.attr(this.elem.style,j,this.options.orig[j])}}this.options.complete.call(this.elem)}return false}else{var k=g-this.startTime;this.state=k/this.options.duration;this.pos=O.easing[this.options.easing||(O.easing.swing?"swing":"linear")](this.state,k,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};O.extend(O.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){O.attr(e.elem.style,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});if(document.documentElement["getBoundingClientRect"]){O.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return O.offset.bodyOffset(this[0])}var g=this[0].getBoundingClientRect(),k=this[0].ownerDocument,f=k.body,e=k.documentElement,m=e.clientTop||f.clientTop||0,l=e.clientLeft||f.clientLeft||0,j=g.top+(self.pageYOffset||O.boxModel&&e.scrollTop||f.scrollTop)-m,h=g.left+(self.pageXOffset||O.boxModel&&e.scrollLeft||f.scrollLeft)-l;return{top:j,left:h}}}else{O.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return O.offset.bodyOffset(this[0])}O.offset.initialized||O.offset.initialize();var k=this[0],g=k.offsetParent,f=k,q=k.ownerDocument,n,h=q.documentElement,l=q.body,m=q.defaultView,e=m.getComputedStyle(k,null),p=k.offsetTop,j=k.offsetLeft;while((k=k.parentNode)&&k!==l&&k!==h){n=m.getComputedStyle(k,null);p-=k.scrollTop,j-=k.scrollLeft;if(k===g){p+=k.offsetTop,j+=k.offsetLeft;if(O.offset.doesNotAddBorder&&!(O.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(k.tagName))){p+=parseInt(n.borderTopWidth,10)||0,j+=parseInt(n.borderLeftWidth,10)||0}f=g,g=k.offsetParent}if(O.offset.subtractsBorderForOverflowNotVisible&&n.overflow!=="visible"){p+=parseInt(n.borderTopWidth,10)||0,j+=parseInt(n.borderLeftWidth,10)||0}e=n}if(e.position==="relative"||e.position==="static"){p+=l.offsetTop,j+=l.offsetLeft}if(e.position==="fixed"){p+=Math.max(h.scrollTop,l.scrollTop),j+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:p,left:j}}}O.offset={initialize:function(){if(this.initialized){return }var m=document.body,f=document.createElement("div"),h,g,p,j,n,e,k=m.style.marginTop,l='<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>';n={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(e in n){f.style[e]=n[e]}f.innerHTML=l;m.insertBefore(f,m.firstChild);h=f.firstChild,g=h.firstChild,j=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(g.offsetTop!==5);this.doesAddBorderForTableAndCells=(j.offsetTop===5);h.style.overflow="hidden",h.style.position="relative";this.subtractsBorderForOverflowNotVisible=(g.offsetTop===-5);m.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(m.offsetTop===0);m.style.marginTop=k;m.removeChild(f);this.initialized=true},bodyOffset:function(e){O.offset.initialized||O.offset.initialize();var g=e.offsetTop,f=e.offsetLeft;if(O.offset.doesNotIncludeMarginInBodyOffset){g+=parseInt(O.curCSS(e,"marginTop",true),10)||0,f+=parseInt(O.curCSS(e,"marginLeft",true),10)||0}return{top:g,left:f}}};O.fn.extend({position:function(){var j=0,h=0,f;if(this[0]){var g=this.offsetParent(),k=this.offset(),e=/^body|html$/i.test(g[0].tagName)?{top:0,left:0}:g.offset();k.top-=J(this,"marginTop");k.left-=J(this,"marginLeft");e.top+=J(g,"borderTopWidth");e.left+=J(g,"borderLeftWidth");f={top:k.top-e.top,left:k.left-e.left}}return f},offsetParent:function(){var e=this[0].offsetParent||document.body;while(e&&(!/^body|html$/i.test(e.tagName)&&O.css(e,"position")=="static")){e=e.offsetParent}return O(e)}});O.each(["Left","Top"],function(f,e){var g="scroll"+e;O.fn[g]=function(h){if(!this[0]){return null}return h!==G?this.each(function(){this==L||this==document?L.scrollTo(!f?h:O(L).scrollLeft(),f?h:O(L).scrollTop()):this[g]=h}):this[0]==L||this[0]==document?self[f?"pageYOffset":"pageXOffset"]||O.boxModel&&document.documentElement[g]||document.body[g]:this[0][g]}});O.each(["Height","Width"],function(j,g){var e=j?"Left":"Top",h=j?"Right":"Bottom",f=g.toLowerCase();O.fn["inner"+g]=function(){return this[0]?O.css(this[0],f,false,"padding"):null};O.fn["outer"+g]=function(l){return this[0]?O.css(this[0],f,false,l?"margin":"border"):null};var k=g.toLowerCase();O.fn[k]=function(l){return this[0]==L?document.compatMode=="CSS1Compat"&&document.documentElement["client"+g]||document.body["client"+g]:this[0]==document?Math.max(document.documentElement["client"+g],document.body["scroll"+g],document.documentElement["scroll"+g],document.body["offset"+g],document.documentElement["offset"+g]):l===G?(this.length?O.css(this[0],k):null):this.css(k,typeof l==="string"?l:l+"px")}})})();jQuery.autocomplete=function(D,S){var N=this;var W=$(D).attr("autocomplete","off");if(S.inputClass){W.addClass(S.inputClass)}var O=document.createElement("div");var H=$(O);H.hide().addClass(S.resultsClass).css("position","absolute");if(S.width>0){H.css("width",S.width)}$("body").append(O);D.autocompleter=N;var f=null;var V="";var g=-1;var I={};var Y=false;var J=false;var A=null;function K(){I={};I.data={};I.length=0}K();if(S.data!=null){var Q="",n={},L=[];if(typeof S.url!="string"){S.cacheLength=1}for(var l=0;l<S.data.length;l++){L=((typeof S.data[l]=="string")?[S.data[l]]:S.data[l]);if(L[0].length>0){Q=L[0].substring(0,1).toLowerCase();if(!n[Q]){n[Q]=[]}n[Q].push(L)}}for(var j in n){S.cacheLength++;E(j,n[j])}}W.keydown(function(k){A=k.keyCode;switch(k.keyCode){case 38:k.preventDefault();b(-1);break;case 40:k.preventDefault();b(1);break;case 9:case 13:if(d()){W.get(0).blur();k.preventDefault()}break;default:g=-1;if(f){clearTimeout(f)}f=setTimeout(function(){R()},S.delay);break}}).focus(function(){J=true}).blur(function(){J=false;C()});T();function R(){if(A==46||(A>8&&A<32)){return H.hide()}var k=W.val();if(k==V){return }V=k;if(k.length>=S.minChars){W.addClass(S.loadingClass);a(k)}else{W.removeClass(S.loadingClass);H.hide()}}function b(p){var k=$("li",O);if(!k){return }g+=p;if(g<0){g=0}else{if(g>=k.size()){g=k.size()-1}}k.removeClass("ac_over");$(k[g]).addClass("ac_over")}function d(){var k=$("li.ac_over",O)[0];if(!k){var p=$("li",O);if(S.selectOnly){if(p.length==1){k=p[0]}}else{if(S.selectFirst){k=p[0]}}}if(k){P(k);return true}else{return false}}function P(k){if(!k){k=document.createElement("li");k.extra=[];k.selectValue=""}var p=$.trim(k.selectValue?k.selectValue:k.innerHTML);D.lastSelected=p;V=p;H.html("");W.val(p);T();if(S.onItemSelect){setTimeout(function(){S.onItemSelect(k)},1)}}function B(s,p){var q=W.get(0);if(q.createTextRange){var k=q.createTextRange();k.collapse(true);k.moveStart("character",s);k.moveEnd("character",p);k.select()}else{if(q.setSelectionRange){q.setSelectionRange(s,p)}else{if(q.selectionStart){q.selectionStart=s;q.selectionEnd=p}}}q.focus()}function U(k){if(A!=8){W.val(W.val()+k.substring(V.length));B(V.length,k.length)}}function c(){var p=X(D);var k=(S.width>0)?S.width:W.width();H.css({width:parseInt(k)+"px",top:(p.y+D.offsetHeight)+"px",left:p.x+"px"}).show()}function C(){if(f){clearTimeout(f)}f=setTimeout(T,200)}function T(){if(f){clearTimeout(f)}W.removeClass(S.loadingClass);if(H.is(":visible")){H.hide()}if(S.mustMatch){var k=W.val();if(k!=D.lastSelected){P(null)}}}function G(p,k){if(k){W.removeClass(S.loadingClass);O.innerHTML="";if(!J||k.length==0){return T()}if($.browser.msie){H.append(document.createElement("iframe"))}O.appendChild(h(k));if(S.autoFill&&(W.val().toLowerCase()==p.toLowerCase())){U(k[0][0])}c()}else{T()}}function F(s){if(!s){return null}var k=[];var q=s.split(S.lineSeparator);for(var p=0;p<q.length;p++){var t=$.trim(q[p]);if(t){k[k.length]=t.split(S.cellSeparator)}}return k}function h(v){var u=document.createElement("ul");var s=v.length;if((S.maxItemsToShow>0)&&(S.maxItemsToShow<s)){s=S.maxItemsToShow}for(var t=0;t<s;t++){var w=v[t];if(!w){continue}var p=document.createElement("li");if(S.formatItem){p.innerHTML=S.formatItem(w,t,s);p.selectValue=w[0]}else{p.innerHTML=w[0];p.selectValue=w[0]}var k=null;if(w.length>1){k=[];for(var q=1;q<w.length;q++){k[k.length]=w[q]}}p.extra=k;u.appendChild(p);$(p).hover(function(){$("li",u).removeClass("ac_over");$(this).addClass("ac_over");g=$("li",u).indexOf($(this).get(0))},function(){$(this).removeClass("ac_over")}).click(function(y){y.preventDefault();y.stopPropagation();P(this)})}return u}function a(p){if(!S.matchCase){p=p.toLowerCase()}var k=S.cacheLength?m(p):null;if(k){G(p,k)}else{if((typeof S.url=="string")&&(S.url.length>0)){$.get(M(p),function(q){q=F(q);E(p,q);G(p,q)})}else{W.removeClass(S.loadingClass)}}}function M(s){var k=S.url+"?q="+encodeURI(s);for(var p in S.extraParams){k+="&"+p+"="+encodeURI(S.extraParams[p])}return k}function m(w){if(!w){return null}if(I.data[w]){return I.data[w]}if(S.matchSubset){for(var u=w.length-1;u>=S.minChars;u--){var p=w.substr(0,u);var y=I.data[p];if(y){var v=[];for(var s=0;s<y.length;s++){var k=y[s];var t=k[0];if(Z(t,w)){v[v.length]=k}}return v}}}return null}function Z(q,p){if(!S.matchCase){q=q.toLowerCase()}var k=q.indexOf(p);if(k==-1){return false}return k==0||S.matchContains}this.flushCache=function(){K()};this.setExtraParams=function(k){S.extraParams=k};this.findValue=function(){var p=W.val();if(!S.matchCase){p=p.toLowerCase()}var k=S.cacheLength?m(p):null;if(k){e(p,k)}else{if((typeof S.url=="string")&&(S.url.length>0)){$.get(M(p),function(q){q=F(q);E(p,q);e(p,q)})}else{e(p,null)}}};function e(w,v){if(v){W.removeClass(S.loadingClass)}var t=(v)?v.length:0;var p=null;for(var u=0;u<t;u++){var y=v[u];if(y[0].toLowerCase()==w.toLowerCase()){p=document.createElement("li");if(S.formatItem){p.innerHTML=S.formatItem(y,u,t);p.selectValue=y[0]}else{p.innerHTML=y[0];p.selectValue=y[0]}var k=null;if(y.length>1){k=[];for(var s=1;s<y.length;s++){k[k.length]=y[s]}}p.extra=k}}if(S.onFindValue){setTimeout(function(){S.onFindValue(p)},1)}}function E(p,k){if(!k||!p||!S.cacheLength){return }if(!I.length||I.length>S.cacheLength){K();I.length++}else{if(!I[p]){I.length++}}I.data[p]=k}function X(p){var q=p.offsetLeft||0;var k=p.offsetTop||0;while(p=p.offsetParent){q+=p.offsetLeft;k+=p.offsetTop}return{x:q,y:k}}};jQuery.fn.autocomplete=function(B,A,C){A=A||{};A.url=B;A.data=((typeof C=="object")&&(C.constructor==Array))?C:null;A.inputClass=A.inputClass||"ac_input";A.resultsClass=A.resultsClass||"ac_results";A.lineSeparator=A.lineSeparator||"\n";A.cellSeparator=A.cellSeparator||"|";A.minChars=A.minChars||1;A.delay=A.delay||400;A.matchCase=A.matchCase||0;A.matchSubset=A.matchSubset||1;A.matchContains=A.matchContains||0;A.cacheLength=A.cacheLength||1;A.mustMatch=A.mustMatch||0;A.extraParams=A.extraParams||{};A.loadingClass=A.loadingClass||"ac_loading";A.selectFirst=A.selectFirst||false;A.selectOnly=A.selectOnly||false;A.maxItemsToShow=A.maxItemsToShow||-1;A.autoFill=A.autoFill||false;A.width=parseInt(A.width,10)||0;this.each(function(){var D=this;new jQuery.autocomplete(D,A)});return this};jQuery.fn.autocompleteArray=function(B,A){return this.autocomplete(null,A,B)};jQuery.fn.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1};(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.meta&&($($headers[i]).data()&&$($headers[i]).data().sorter)){p=getParserById($($headers[i]).data().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table.config,cells[i])}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(config,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(config,node)))){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof (config.textExtraction)=="function"){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.meta)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.meta)&&($(cell).data().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof (v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return }var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){config.sortList.push(a[j])}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}$this.trigger("sortStart");setHeadersCss($this[0],$headers,config.sortList,sortCSS);setTimeout(function(){appendToTable($this[0],multisort($this[0],config.sortList,cache));$this.trigger("sortEnd")},0);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.meta&&($(this).data()&&$(this).data().sortlist)){config.sortList=$(this).data().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"integer",is:function(s){return/^\d+$/.test(s)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[??$????.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"floating",is:function(s){return s.match(new RegExp(/^(\+|-)?[0-9]+\.[0-9]+((E|e)(\+|-)?[0-9]+)?$/))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/,/),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/^\d{1,3}%$/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).data()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);(function(A){A.extend({tablesorterPager:new function(){function K(N){var M=A(N.cssPageDisplay,N.container).val((N.page+1)+N.seperator+N.totalPages)}function B(N,M){var O=N.config;O.size=M;O.totalPages=Math.ceil(O.totalRows/O.size);D(N);E(N)}function E(M){var O=M.config;if(!O.pagerPositionSet&&O.positionFixed){var O=M.config,N=A(M);if(N.offset){O.container.css({top:N.offset().top+N.height()+"px",position:"absolute"})}O.pagerPositionSet=true}}function F(M){var N=M.config;N.page=0;D(M)}function C(M){var N=M.config;N.page=(N.totalPages-1);D(M)}function J(M){var N=M.config;N.page++;if(N.page>=(N.totalPages-1)){N.page=(N.totalPages-1)}D(M)}function G(M){var N=M.config;N.page--;if(N.page<=0){N.page=0}D(M)}function D(M){var N=M.config;if(N.page<0||N.page>(N.totalPages-1)){N.page=0}I(M,N.rowsCopy)}function L(N,M){var O=N.config;if(M>=0&&M<O.totalRows){O.page=Math.floor(M/O.size);D(N)}}function H(M,O){var Q=M.config;var N=Q.rowsCopy;var P=0;for(r in N){if(A(N[r]).is(O)){break}P++}L(M,P)}function I(T,U){var S=T.config;var O=U.length;var V=(S.page*S.size);var R=(V+S.size);if(R>U.length){R=U.length}var N=A(T.tBodies[0]);A.tablesorter.clearTableBody(T);for(var Q=V;Q<R;Q++){var M=U[Q];var O=M.length;for(var P=0;P<O;P++){N[0].appendChild(M[P])}}E(T,N);A(T).trigger("applyWidgets");if(S.page>=S.totalPages){C(T)}K(S)}this.appender=function(M,N){var O=M.config;O.rowsCopy=N;O.totalRows=N.length;O.totalPages=Math.ceil(O.totalRows/O.size);I(M,N)};this.defaults={size:10,offset:0,page:0,totalRows:0,totalPages:0,container:null,cssNext:".next",cssPrev:".prev",cssFirst:".first",cssLast:".last",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",seperator:"/",positionFixed:true,startAtPage:null,appender:this.appender};this.construct=function(M){return this.each(function(){config=A.extend(this.config,A.tablesorterPager.defaults,M);var O=this,N=config.container;A(this).trigger("appendCache");config.size=parseInt(A(".pagesize",N).val());A(config.cssFirst,N).click(function(){F(O);return false});A(config.cssNext,N).click(function(){J(O);return false});A(config.cssPrev,N).click(function(){G(O);return false});A(config.cssLast,N).click(function(){C(O);return false});A(config.cssPageSize,N).change(function(){B(O,parseInt(A(this).val()));return false});if(config.startAtPage){var P=O.config;P.page=config.startAtPage;J(O)}A(this).bind("nextPage",function(){J(O)});A(this).bind("moveToRow",function(R,Q){L(O,Q)});A(this).bind("moveToClass",function(R,Q){H(O,Q)})})}}});A.fn.extend({tablesorterPager:A.tablesorterPager.construct})})(jQuery);$(document).ready(JT_init);function JT_init(){$("a.jTip").hover(function(){JT_show(this.href,this.id,this.name)},function(){$("#JT").remove()}).click(function(){return false})}function JT_show(B,I,G){if(G==false){G="&nbsp;"}var H=document.documentElement;var J=self.innerWidth||(H&&H.clientWidth)||document.body.clientWidth;var E=J-getAbsoluteLeft(I);var D=getAbsoluteTop(I)-3;var A=B.replace(/^[^\?]+\??/,"");var C=parseQuery(A);if(C["width"]===undefined){C["width"]=250}if(C["link"]!==undefined){$("#"+I).bind("click",function(){window.location=C["link"]});$("#"+I).css("cursor","pointer")}if(E>((C["width"]*1)+75)){$("body").append("<div id='JT' style='width:"+C["width"]*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'>"+G+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var K=getElementWidth(I)+11;var F=getAbsoluteLeft(I)+K}else{$("body").append("<div id='JT' style='width:"+C["width"]*1+"px'><div id='JT_arrow_right' style='left:"+((C["width"]*1)+1)+"px'></div><div id='JT_close_right'>"+G+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var F=getAbsoluteLeft(I)-((C["width"]*1)+15)}$("#JT").css({left:F+"px",top:D+"px"});$("#JT").show();$("#JT_copy").load(B)}function getElementWidth(A){x=document.getElementById(A);return x.offsetWidth}function getAbsoluteLeft(A){o=document.getElementById(A);oLeft=o.offsetLeft;while(o.offsetParent!=null){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent}return oLeft}function getAbsoluteTop(A){o=document.getElementById(A);oTop=o.offsetTop;while(o.offsetParent!=null){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent}return oTop}function parseQuery(D){var E=new Object();if(!D){return E}var A=D.split(/[;&]/);for(var C=0;C<A.length;C++){var G=A[C].split("=");if(!G||G.length!=2){continue}var B=unescape(G[0]);var F=unescape(G[1]);F=F.replace(/\+/g," ");E[B]=F}return E}function blockEvents(A){if(A.target){A.preventDefault()}else{A.returnValue=false}}var GB_DONE=false;var GB_HEIGHT=400;var GB_WIDTH=400;function GB_show(B,C,A,D){GB_HEIGHT=A||400;GB_WIDTH=D||400;if(!GB_DONE){$(document.body).append("<div id='GB_overlay'></div><div id='GB_window'><div id='GB_caption'></div><img src='images/close.gif' alt='Close window'/></div>");$("#GB_window img").click(GB_hide);$("#GB_overlay").click(GB_hide);$(window).resize(GB_position);GB_DONE=true}$("#GB_frame").remove();$("#GB_window").append("<iframe id='GB_frame' src='"+C+"'></iframe>");$("#GB_caption").html(B);$("#GB_overlay").show();GB_position();if(GB_ANIMATION){$("#GB_window").slideDown("slow")}else{$("#GB_window").show()}}function GB_hide(){$("#GB_window,#GB_overlay").hide()}function GB_position(){var B=document.documentElement;var A=self.innerWidth||(B&&B.clientWidth)||document.body.clientWidth;$("#GB_window").css({width:GB_WIDTH+"px",height:GB_HEIGHT+"px",left:((A-GB_WIDTH)/2)+"px"});$("#GB_frame").css("height",GB_HEIGHT-32+"px")}(function(A){A.fn.corner=function(G){var J=A.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function M(Q,R){return parseInt(A.css(Q,R))||0}function N(Q){var Q=parseInt(Q).toString(16);return(Q.length<2)?"0"+Q:Q}function F(S){for(;S&&S.nodeName.toLowerCase()!="html";S=S.parentNode){var Q=A.css(S,"backgroundColor");if(Q.indexOf("rgb")>=0){if(A.browser.safari&&Q=="rgba(0, 0, 0, 0)"){continue}var R=Q.match(/\d+/g);return"#"+N(R[0])+N(R[1])+N(R[2])}if(Q&&Q!="transparent"){return Q}}return"#ffffff"}function P(Q){switch(I){case"round":return Math.round(E*(1-Math.cos(Math.asin(Q/E))));case"cool":return Math.round(E*(1+Math.cos(Math.asin(Q/E))));case"sharp":return Math.round(E*(1-Math.cos(Math.acos(Q/E))));case"bite":return Math.round(E*(Math.cos(Math.asin((E-Q-1)/E))));case"slide":return Math.round(E*(Math.atan2(Q,E/Q)));case"jut":return Math.round(E*(Math.atan2(E,(E-Q-1))));case"curl":return Math.round(E*(Math.atan(Q)));case"tear":return Math.round(E*(Math.cos(Q)));case"wicked":return Math.round(E*(Math.tan(Q)));case"long":return Math.round(E*(Math.sqrt(Q)));case"sculpt":return Math.round(E*(Math.log((E-Q-1),E)));case"dog":return(Q&1)?(Q+1):E;case"dog2":return(Q&2)?(Q+1):E;case"dog3":return(Q&3)?(Q+1):E;case"fray":return(Q%2)*E;case"notch":return E;case"bevel":return Q+1}}G=(G||"").toLowerCase();var C=/keep/.test(G);var H=((G.match(/cc:(#[0-9a-f]+)/)||[])[1]);var L=((G.match(/sc:(#[0-9a-f]+)/)||[])[1]);var E=parseInt((G.match(/(\d+)px/)||[])[1])||10;var O=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;var I=((G.match(O)||["round"])[0]);var K={T:0,B:1};var B={TL:/top|tl/.test(G),TR:/top|tr/.test(G),BL:/bottom|bl/.test(G),BR:/bottom|br/.test(G)};if(!B.TL&&!B.TR&&!B.BL&&!B.BR){B={TL:1,TR:1,BL:1,BR:1}}var D=document.createElement("div");D.style.overflow="hidden";D.style.height="1px";D.style.backgroundColor=L||"transparent";D.style.borderStyle="solid";return this.each(function(U){var R={T:parseInt(A.css(this,"paddingTop"))||0,R:parseInt(A.css(this,"paddingRight"))||0,B:parseInt(A.css(this,"paddingBottom"))||0,L:parseInt(A.css(this,"paddingLeft"))||0};if(A.browser.msie){this.style.zoom=1}if(!C){this.style.border="none"}D.style.borderColor=H||F(this.parentNode);var W=A.curCSS(this,"height");for(var S in K){var X=K[S];if((X&&(B.BL||B.BR))||(!X&&(B.TL||B.TR))){D.style.borderStyle="none "+(B[S+"R"]?"solid":"none")+" none "+(B[S+"L"]?"solid":"none");var Y=document.createElement("div");A(Y).addClass("jquery-corner");var Q=Y.style;X?this.appendChild(Y):this.insertBefore(Y,this.firstChild);if(X&&W!="auto"){if(A.css(this,"position")=="static"){this.style.position="relative"}Q.position="absolute";Q.bottom=Q.left=Q.padding=Q.margin="0";if(A.browser.msie){Q.setExpression("width","this.parentNode.offsetWidth")}else{Q.width="100%"}}else{if(!X&&A.browser.msie){if(A.css(this,"position")=="static"){this.style.position="relative"}Q.position="absolute";Q.top=Q.left=Q.right=Q.padding=Q.margin="0";var Z=0;if(J||!A.boxModel){Z=M(this,"borderLeftWidth")+M(this,"borderRightWidth")}J?Q.setExpression("width","this.parentNode.offsetWidth - "+Z+'+ "px"'):Q.width="100%"}else{Q.margin=!X?"-"+R.T+"px -"+R.R+"px "+(R.T-E)+"px -"+R.L+"px":(R.B-E)+"px -"+R.R+"px -"+R.B+"px -"+R.L+"px"}}for(var T=0;T<E;T++){var a=Math.max(0,P(T));var V=D.cloneNode(false);V.style.borderWidth="0 "+(B[S+"R"]?a:0)+"px 0 "+(B[S+"L"]?a:0)+"px";X?Y.appendChild(V):Y.insertBefore(V,Y.firstChild)}}}})};A.fn.uncorner=function(B){return A(".jquery-corner",this).remove()}})(jQuery);(function($){function Datepicker(){this.debug=false;this._nextId=0;this._inst=[];this._curInst=null;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"&#x3c;Prev",prevStatus:"Show the previous month",nextText:"Next&#x3e;",nextStatus:"Show the next month",currentText:"Today",currentStatus:"Show the current month",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"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Select a date",isRTL:false};this._defaults={showOn:"focus",defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,changeMonth:true,changeYear:true,yearRange:"-10:+10",changeFirstDay:true,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,speed:"medium",beforeShowDay:null,beforeShow:null,onSelect:null,numberOfMonths:1,stepMonths:1,rangeSelect:false,rangeSeparator:" - "};$.extend(this._defaults,this.regional[""]);this._datepickerDiv=$('<div id="datepicker_div"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},_register:function(inst){var id=this._nextId++;this._inst[id]=inst;return id},_getInst:function(id){return this._inst[id]||id},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_doKeyDown:function(e){var inst=$.datepicker._getInst(this._calId);if($.datepicker._datepickerShowing){switch(e.keyCode){case 9:$.datepicker.hideDatepicker("");break;case 13:$.datepicker._selectDay(inst,inst._selectedMonth,inst._selectedYear,$("td.datepicker_daysCellOver",inst._datepickerDiv)[0]);return false;break;case 27:$.datepicker.hideDatepicker(inst._get("speed"));break;case 33:$.datepicker._adjustDate(inst,(e.ctrlKey?-1:-inst._get("stepMonths")),(e.ctrlKey?"Y":"M"));break;case 34:$.datepicker._adjustDate(inst,(e.ctrlKey?+1:+inst._get("stepMonths")),(e.ctrlKey?"Y":"M"));break;case 35:if(e.ctrlKey){$.datepicker._clearDate(inst)}break;case 36:if(e.ctrlKey){$.datepicker._gotoToday(inst)}break;case 37:if(e.ctrlKey){$.datepicker._adjustDate(inst,-1,"D")}break;case 38:if(e.ctrlKey){$.datepicker._adjustDate(inst,-7,"D")}break;case 39:if(e.ctrlKey){$.datepicker._adjustDate(inst,+1,"D")}break;case 40:if(e.ctrlKey){$.datepicker._adjustDate(inst,+7,"D")}break}}else{if(e.keyCode==36&&e.ctrlKey){$.datepicker.showFor(this)}}},_doKeyPress:function(e){var inst=$.datepicker._getInst(this._calId);var chars=$.datepicker._possibleChars(inst._get("dateFormat"));var chr=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return(chr<" "||!chars||chars.indexOf(chr)>-1)},_connectDatepicker:function(target,inst){var input=$(target);if(this._hasClass(input,this.markerClassName)){return }var appendText=inst._get("appendText");var isRTL=inst._get("isRTL");if(appendText){if(isRTL){input.before('<span class="datepicker_append">'+appendText+"</span>")}else{input.after('<span class="datepicker_append">'+appendText+"</span>")}}var showOn=inst._get("showOn");if(showOn=="focus"||showOn=="both"){input.focus(this.showFor)}if(showOn=="button"||showOn=="both"){var buttonText=inst._get("buttonText");var buttonImage=inst._get("buttonImage");var buttonImageOnly=inst._get("buttonImageOnly");var trigger=$(buttonImageOnly?'<img class="datepicker_trigger" src="'+buttonImage+'" alt="'+buttonText+'" title="'+buttonText+'"/>':'<button type="button" class="datepicker_trigger">'+(buttonImage!=""?'<img src="'+buttonImage+'" alt="'+buttonText+'" title="'+buttonText+'"/>':buttonText)+"</button>");input.wrap('<span class="datepicker_wrap"></span>');if(isRTL){input.before(trigger)}else{input.after(trigger)}trigger.click(this.showFor)}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress);input[0]._calId=inst._id},_inlineDatepicker:function(target,inst){var input=$(target);if(this._hasClass(input,this.markerClassName)){return }input.addClass(this.markerClassName).append(inst._datepickerDiv);input[0]._calId=inst._id;this._updateDatepicker(inst)},_inlineShow:function(inst){var numMonths=inst._get("numberOfMonths");numMonths=(numMonths==null?1:(typeof numMonths=="number"?numMonths:numMonths[1]));inst._datepickerDiv.width(numMonths*$(".datepicker",inst._datepickerDiv[0]).width())},_hasClass:function(element,className){var classes=element.attr("class");return(classes&&classes.indexOf(className)>-1)},dialogDatepicker:function(dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){inst=this._dialogInst=new DatepickerInstance({},false);this._dialogInput=$('<input type="text" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);this._dialogInput[0]._calId=inst._id}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._datepickerDiv.addClass("datepicker_dialog");this.showFor(this._dialogInput[0]);if($.blockUI){$.blockUI(this._datepickerDiv)}return this},enableFor:function(inputs){inputs=(inputs.jquery?inputs:$(inputs));inputs.each(function(){this.disabled=false;$(this).siblings("button.datepicker_trigger").each(function(){this.disabled=false});$(this).siblings("img.datepicker_trigger").css({opacity:"1.0",cursor:""});var $this=this;$.datepicker._disabledInputs=$.map($.datepicker._disabledInputs,function(value){return(value==$this?null:value)})});return this},disableFor:function(inputs){inputs=(inputs.jquery?inputs:$(inputs));inputs.each(function(){this.disabled=true;$(this).siblings("button.datepicker_trigger").each(function(){this.disabled=true});$(this).siblings("img.datepicker_trigger").css({opacity:"0.5",cursor:"default"});var $this=this;$.datepicker._disabledInputs=$.map($.datepicker._disabledInputs,function(value){return(value==$this?null:value)});$.datepicker._disabledInputs[$.datepicker._disabledInputs.length]=this});return this},isDisabled:function(input){input=(input.jquery?input[0]:(typeof input=="string"?$(input)[0]:input));for(var i=0;i<$.datepicker._disabledInputs.length;i++){if($.datepicker._disabledInputs[i]==input){return true}}return false},reconfigureFor:function(control,settings){control=(control.jquery?control[0]:(typeof control=="string"?$(control)[0]:control));var inst=this._getInst(control._calId);if(inst){extendRemove(inst._settings,settings||{});this._updateDatepicker(inst)}return this},setDateFor:function(control,date,endDate){control=(control.jquery?control[0]:(typeof control=="string"?$(control)[0]:control));var inst=this._getInst(control._calId);if(inst){inst._setDate(date,endDate);this._updateDatepicker(inst)}return this},getDateFor:function(control){control=(control.jquery?control[0]:(typeof control=="string"?$(control)[0]:control));var inst=this._getInst(control._calId);return(inst?inst._getDate():null)},showFor:function(control){control=(control.jquery?control[0]:(typeof control=="string"?$(control)[0]:control));var input=(control.nodeName&&control.nodeName.toLowerCase()=="input"?control:this);if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._lastInput==input){return }if($.datepicker.isDisabled(input)){return }var inst=$.datepicker._getInst(input._calId);var beforeShow=inst._get("beforeShow");extendRemove(inst._settings,(beforeShow?beforeShow(input):{}));$.datepicker.hideDatepicker("");$.datepicker._lastInput=input;inst._setDateFromField(input);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"});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}inst._datepickerDiv.css("position",($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute"))).css("left",$.datepicker._pos[0]+"px").css("top",$.datepicker._pos[1]+"px");$.datepicker._pos=null;$.datepicker._showDatepicker(inst);return this},_showDatepicker:function(id){var inst=this._getInst(id);inst._rangeStart=null;this._updateDatepicker(inst);if(!inst._inline){var speed=inst._get("speed");var postProcess=function(){$.datepicker._datepickerShowing=true;$.datepicker._afterShow(inst)};inst._datepickerDiv.show(speed,postProcess);if(speed==""){postProcess()}if(inst._input[0].type!="hidden"){inst._input[0].focus()}this._curInst=inst}},_updateDatepicker:function(inst){inst._datepickerDiv.empty().append(inst._generateDatepicker());if(inst._get("numberOfMonths")!=1){inst._datepickerDiv.addClass("datepicker_multi")}else{inst._datepickerDiv.removeClass("datepicker_multi")}if(inst._get("isRTL")){inst._datepickerDiv.addClass("datepicker_rtl")}else{inst._datepickerDiv.removeClass("datepicker_rtl")}if(inst._input&&inst._input[0].type!="hidden"){inst._input[0].focus()}},_afterShow:function(inst){var numMonths=inst._get("numberOfMonths");numMonths=(numMonths==null?1:(typeof numMonths=="number"?numMonths:numMonths[1]));inst._datepickerDiv.width(numMonths*$(".datepicker",inst._datepickerDiv[0]).width());if($.browser.msie&&parseInt($.browser.version)<7){$("#datepicker_cover").css({width:inst._datepickerDiv.width()+4,height:inst._datepickerDiv.height()+4})}var isFixed=inst._datepickerDiv.css("position")=="fixed";var pos=inst._input?$.datepicker._findPos(inst._input[0]):null;var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=(isFixed?0:document.documentElement.scrollLeft||document.body.scrollLeft);var scrollY=(isFixed?0:document.documentElement.scrollTop||document.body.scrollTop);if((inst._datepickerDiv.offset().left+inst._datepickerDiv.width()-(isFixed&&$.browser.msie?document.documentElement.scrollLeft:0))>(browserWidth+scrollX)){inst._datepickerDiv.css("left",Math.max(scrollX,pos[0]+(inst._input?$(inst._input[0]).width():null)-inst._datepickerDiv.width()-(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0))+"px")}if((inst._datepickerDiv.offset().top+inst._datepickerDiv.height()-(isFixed&&$.browser.msie?document.documentElement.scrollTop:0))>(browserHeight+scrollY)){inst._datepickerDiv.css("top",Math.max(scrollY,pos[1]-(this._inDialog?0:inst._datepickerDiv.height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0))+"px")}},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var curleft=curtop=0;if(obj&&obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent){var origcurleft=curleft;curleft+=obj.offsetLeft;if(curleft<0){curleft=origcurleft}curtop+=obj.offsetTop}}return[curleft,curtop]},hideDatepicker:function(speed){var inst=this._curInst;if(!inst){return }var rangeSelect=inst._get("rangeSelect");if(rangeSelect&&this._stayOpen){this._selectDate(inst,inst._formatDate(inst._currentDay,inst._currentMonth,inst._currentYear))}this._stayOpen=false;if(this._datepickerShowing){speed=(speed!=null?speed:inst._get("speed"));inst._datepickerDiv.hide(speed,function(){$.datepicker._tidyDialog(inst)});if(speed==""){this._tidyDialog(inst)}this._datepickerShowing=false;this._lastInput=null;inst._settings.prompt=null;if(this._inDialog){this._dialogInput.css("position","absolute").css("left","0px").css("top","-100px");if($.blockUI){$.unblockUI();$("body").append(this._datepickerDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst._datepickerDiv.removeClass("datepicker_dialog");$(".datepicker_prompt",inst._datepickerDiv).remove()},_checkExternalClick:function(event){if(!$.datepicker._curInst){return }var target=$(event.target);if((target.parents("#datepicker_div").length==0)&&(target.attr("class")!="datepicker_trigger")&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker.hideDatepicker("")}},_adjustDate:function(id,offset,period){var inst=this._getInst(id);inst._adjustDate(offset,period);this._updateDatepicker(inst)},_gotoToday:function(id){var date=new Date();var inst=this._getInst(id);inst._selectedDay=date.getDate();inst._selectedMonth=date.getMonth();inst._selectedYear=date.getFullYear();this._adjustDate(inst)},_selectMonthYear:function(id,select,period){var inst=this._getInst(id);inst._selectingMonthYear=false;inst[period=="M"?"_selectedMonth":"_selectedYear"]=select.options[select.selectedIndex].value-0;this._adjustDate(inst)},_clickMonthYear:function(id){var inst=this._getInst(id);if(inst._input&&inst._selectingMonthYear&&!$.browser.msie){inst._input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_changeFirstDay:function(id,day){var inst=this._getInst(id);inst._settings.firstDay=day;this._updateDatepicker(inst)},_selectDay:function(id,month,year,td){if(this._hasClass($(td),"datepicker_unselectable")){return }var inst=this._getInst(id);var rangeSelect=inst._get("rangeSelect");if(rangeSelect){if(!this._stayOpen){$(".datepicker td").removeClass("datepicker_currentDay");$(td).addClass("datepicker_currentDay")}this._stayOpen=!this._stayOpen}inst._currentDay=$("a",td).html();inst._currentMonth=month;inst._currentYear=year;this._selectDate(id,inst._formatDate(inst._currentDay,inst._currentMonth,inst._currentYear));if(this._stayOpen){inst._endDay=inst._endMonth=inst._endYear=null;inst._rangeStart=new Date(inst._currentYear,inst._currentMonth,inst._currentDay);this._updateDatepicker(inst)}else{if(rangeSelect){inst._endDay=inst._currentDay;inst._endMonth=inst._currentMonth;inst._endYear=inst._currentYear;inst._selectedDay=inst._currentDay=inst._rangeStart.getDate();inst._selectedMonth=inst._currentMonth=inst._rangeStart.getMonth();inst._selectedYear=inst._currentYear=inst._rangeStart.getFullYear();inst._rangeStart=null;if(inst._inline){this._updateDatepicker(inst)}}}},_clearDate:function(id){var inst=this._getInst(id);this._stayOpen=false;inst._endDay=inst._endMonth=inst._endYear=inst._rangeStart=null;this._selectDate(inst,"")},_selectDate:function(id,dateStr){var inst=this._getInst(id);dateStr=(dateStr!=null?dateStr:inst._formatDate());if(inst._rangeStart){dateStr=inst._formatDate(inst._rangeStart)+inst._get("rangeSeparator")+dateStr}if(inst._input){inst._input.val(dateStr)}var onSelect=inst._get("onSelect");if(onSelect){onSelect(dateStr,inst)}else{if(inst._input){inst._input.trigger("change")}}if(inst._inline){this._updateDatepicker(inst)}else{if(!this._stayOpen){this.hideDatepicker(inst._get("speed"))}}},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){checkDate.setDate(checkDate.getDate()+3);return $.datepicker.iso8601Week(checkDate)}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},dateStatus:function(date,inst){return $.datepicker.formatDate(inst._get("dateStatus"),date,inst._get("dayNamesShort"),inst._get("dayNames"),inst._get("monthNamesShort"),inst._get("monthNames"))},parseDate:function(format,value,shortYearCutoff,dayNamesShort,dayNames,monthNamesShort,monthNames){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}dayNamesShort=dayNamesShort||this._defaults.dayNamesShort;dayNames=dayNames||this._defaults.dayNames;monthNamesShort=monthNamesShort||this._defaults.monthNamesShort;monthNames=monthNames||this._defaults.monthNames;var year=-1;var month=-1;var day=-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 size=(match=="y"?4:2);var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+(value.charAt(iValue++)-0);size--}if(size==(match=="y"?4:2)){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"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}var date=new Date(year,month-1,day);if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},formatDate:function(format,date,dayNamesShort,dayNames,monthNamesShort,monthNames){if(!date){return""}dayNamesShort=dayNamesShort||this._defaults.dayNamesShort;dayNames=dayNames||this._defaults.dayNames;monthNamesShort=monthNamesShort||this._defaults.monthNamesShort;monthNames=monthNames||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){return(lookAhead(match)&&value<10?"0":"")+value};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());break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"m":output+=formatNumber("m",date.getMonth()+1);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"'":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":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars}});function DatepickerInstance(settings,inline){this._id=$.datepicker._register(this);this._selectedDay=0;this._selectedMonth=0;this._selectedYear=0;this._input=null;this._inline=inline;this._datepickerDiv=(!inline?$.datepicker._datepickerDiv:$('<div id="datepicker_div_'+this._id+'" class="datepicker_inline"></div>'));this._settings=extendRemove({},settings||{});if(inline){this._setDate(this._getDefaultDate())}}$.extend(DatepickerInstance.prototype,{_get:function(name){return(this._settings[name]!=null?this._settings[name]:$.datepicker._defaults[name])},_setDateFromField:function(input){this._input=$(input);var dateFormat=this._get("dateFormat");var dates=this._input?this._input.val().split(this._get("rangeSeparator")):null;this._endDay=this._endMonth=this._endYear=null;var shortYearCutoff=this._get("shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));var date=this._getDefaultDate();if(dates.length>0){var dayNamesShort=this._get("dayNamesShort");var dayNames=this._get("dayNames");var monthNamesShort=this._get("monthNamesShort");var monthNames=this._get("monthNames");if(dates.length>1){date=$.datepicker.parseDate(dateFormat,dates[1],shortYearCutoff,dayNamesShort,dayNames,monthNamesShort,monthNames)||this._getDefaultDate();this._endDay=date.getDate();this._endMonth=date.getMonth();this._endYear=date.getFullYear()}try{date=$.datepicker.parseDate(dateFormat,dates[0],shortYearCutoff,dayNamesShort,dayNames,monthNamesShort,monthNames)||this._getDefaultDate()}catch(e){$.datepicker.log(e);date=this._getDefaultDate()}}this._selectedDay=this._currentDay=date.getDate();this._selectedMonth=this._currentMonth=date.getMonth();this._selectedYear=this._currentYear=date.getFullYear();this._adjustDate()},_getDefaultDate:function(){var offsetDate=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var defaultDate=this._get("defaultDate");return(defaultDate==null?new Date():(typeof defaultDate=="number"?offsetDate(defaultDate):defaultDate))},_setDate:function(date,endDate){this._selectedDay=this._currentDay=date.getDate();this._selectedMonth=this._currentMonth=date.getMonth();this._selectedYear=this._currentYear=date.getFullYear();if(this._get("rangeSelect")){if(endDate){this._endDay=endDate.getDate();this._endMonth=endDate.getMonth();this._endYear=endDate.getFullYear()}else{this._endDay=this._currentDay;this._endMonth=this._currentMonth;this._endYear=this._currentYear}}this._adjustDate()},_getDate:function(){var startDate=(!this._currentYear||(this._input&&this._input.val()=="")?null:new Date(this._currentYear,this._currentMonth,this._currentDay));if(this._get("rangeSelect")){return[startDate,(!this._endYear?null:new Date(this._endYear,this._endMonth,this._endDay))]}else{return startDate}},_generateDatepicker:function(){var today=new Date();today=new Date(today.getFullYear(),today.getMonth(),today.getDate());var showStatus=this._get("showStatus");var isRTL=this._get("isRTL");var clear=(this._get("mandatory")?"":'<div class="datepicker_clear"><a onclick="jQuery.datepicker._clearDate('+this._id+');"'+(showStatus?this._addStatus(this._get("clearStatus")||"&#xa0;"):"")+">"+this._get("clearText")+"</a></div>");var controls='<div class="datepicker_control">'+(isRTL?"":clear)+'<div class="datepicker_close"><a onclick="jQuery.datepicker.hideDatepicker();"'+(showStatus?this._addStatus(this._get("closeStatus")||"&#xa0;"):"")+">"+this._get("closeText")+"</a></div>"+(isRTL?clear:"")+"</div>";var prompt=this._get("prompt");var closeAtTop=this._get("closeAtTop");var hideIfNoPrevNext=this._get("hideIfNoPrevNext");var numMonths=this._get("numberOfMonths");var stepMonths=this._get("stepMonths");var isMultiMonth=(numMonths!=1);numMonths=(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths));var prev='<div class="datepicker_prev">'+(this._canAdjustMonth(-1)?'<a onclick="jQuery.datepicker._adjustDate('+this._id+", -"+stepMonths+", 'M');\""+(showStatus?this._addStatus(this._get("prevStatus")||"&#xa0;"):"")+">"+this._get("prevText")+"</a>":(hideIfNoPrevNext?"":"<label>"+this._get("prevText")+"</label>"))+"</div>";var next='<div class="datepicker_next">'+(this._canAdjustMonth(+1)?'<a onclick="jQuery.datepicker._adjustDate('+this._id+", +"+stepMonths+", 'M');\""+(showStatus?this._addStatus(this._get("nextStatus")||"&#xa0;"):"")+">"+this._get("nextText")+"</a>":(hideIfNoPrevNext?">":"<label>"+this._get("nextText")+"</label>"))+"</div>";var html=(prompt?'<div class="datepicker_prompt">'+prompt+"</div>":"")+(closeAtTop&&!this._inline?controls:"")+'<div class="datepicker_links">'+(isRTL?next:prev)+(this._isInRange(today)?'<div class="datepicker_current"><a onclick="jQuery.datepicker._gotoToday('+this._id+');"'+(showStatus?this._addStatus(this._get("currentStatus")||"&#xa0;"):"")+">"+this._get("currentText")+"</a></div>":"")+(isRTL?prev:next)+"</div>";var minDate=this._getMinDate();var maxDate=this._get("maxDate");var drawMonth=this._selectedMonth;var drawYear=this._selectedYear;var showWeeks=this._get("showWeeks");for(var row=0;row<numMonths[0];row++){for(var col=0;col<numMonths[1];col++){var selectedDate=new Date(drawYear,drawMonth,this._selectedDay);html+='<div class="datepicker_oneMonth'+(col==0?" datepicker_newRow":"")+'">'+this._generateMonthYearHeader(drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0)+'<table class="datepicker" cellpadding="0" cellspacing="0"><thead><tr class="datepicker_titleRow">'+(showWeeks?"<td>"+this._get("weekHeader")+"</td>":"");var firstDay=this._get("firstDay");var changeFirstDay=this._get("changeFirstDay");var dayNames=this._get("dayNames");var dayNamesShort=this._get("dayNamesShort");var dayNamesMin=this._get("dayNamesMin");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;var status=this._get("dayStatus")||"&#xa0;";status=(status.indexOf("DD")>-1?status.replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+="<td>"+(!changeFirstDay?"<span":'<a onclick="jQuery.datepicker._changeFirstDay('+this._id+", "+day+');"')+(showStatus?this._addStatus(status):"")+' title="'+dayNames[day]+'">'+dayNamesMin[day]+(changeFirstDay?"</a>":"</span>")+"</td>"}html+="</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);this._selectedDay=Math.min(this._selectedDay,daysInMonth);var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var currentDate=new Date(this._currentYear,this._currentMonth,this._currentDay);var endDate=this._endDay?new Date(this._endYear,this._endMonth,this._endDay):currentDate;var printDate=new Date(drawYear,drawMonth,1-leadDays);var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var beforeShowDay=this._get("beforeShowDay");var showOtherMonths=this._get("showOtherMonths");var calculateWeek=this._get("calculateWeek")||$.datepicker.iso8601Week;var dateStatus=this._get("statusForDate")||$.datepicker.dateStatus;for(var dRow=0;dRow<numRows;dRow++){html+='<tr class="datepicker_daysRow">'+(showWeeks?'<td class="datepicker_weekCol">'+calculateWeek(printDate)+"</td>":"");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay(printDate):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);html+='<td class="datepicker_daysCell'+((dow+firstDay+6)%7>=5?" datepicker_weekEndCell":"")+(otherMonth?" datepicker_otherMonth":"")+(printDate.getTime()==selectedDate.getTime()&&drawMonth==this._selectedMonth?" datepicker_daysCellOver":"")+(unselectable?" datepicker_unselectable":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" datepicker_currentDay":(printDate.getTime()==today.getTime()?" datepicker_today":"")))+'"'+(unselectable?"":" onmouseover=\"jQuery(this).addClass('datepicker_daysCellOver');"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#datepicker_status_"+this._id+"').html('"+(dateStatus(printDate,this)||"&#xa0;")+"');")+"\" onmouseout=\"jQuery(this).removeClass('datepicker_daysCellOver');"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#datepicker_status_"+this._id+"').html('&#xa0;');")+'" onclick="jQuery.datepicker._selectDay('+this._id+","+drawMonth+","+drawYear+', this);"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?printDate.getDate():"<a>"+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1)}html+="</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}html+="</tbody></table></div>"}}html+=(showStatus?'<div id="datepicker_status_'+this._id+'" class="datepicker_status">'+(this._get("initStatus")||"&#xa0;")+"</div>":"")+(!closeAtTop&&!this._inline?controls:"")+'<div style="clear: both;"></div>'+($.browser.msie&&parseInt($.browser.version)<7&&!this._inline?'<iframe src="javascript:false;" class="datepicker_cover"></iframe>':"");return html},_generateMonthYearHeader:function(drawMonth,drawYear,minDate,maxDate,selectedDate,secondary){minDate=(this._rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var showStatus=this._get("showStatus");var html='<div class="datepicker_header">';var monthNames=this._get("monthNames");if(secondary||!this._get("changeMonth")){html+=monthNames[drawMonth]+"&#xa0;"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);html+='<select class="datepicker_newMonth" onchange="jQuery.datepicker._selectMonthYear('+this._id+", this, 'M');\" onclick=\"jQuery.datepicker._clickMonthYear("+this._id+');"'+(showStatus?this._addStatus(this._get("monthStatus")||"&#xa0;"):"")+">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){html+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNames[month]+"</option>"}}html+="</select>"}if(secondary||!this._get("changeYear")){html+=drawYear}else{var years=this._get("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="datepicker_newYear" onchange="jQuery.datepicker._selectMonthYear('+this._id+", this, 'Y');\" onclick=\"jQuery.datepicker._clickMonthYear("+this._id+');"'+(showStatus?this._addStatus(this._get("yearStatus")||"&#xa0;"):"")+">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}html+="</div>";return html},_addStatus:function(text){return" onmouseover=\"jQuery('#datepicker_status_"+this._id+"').html('"+text+"');\" onmouseout=\"jQuery('#datepicker_status_"+this._id+"').html('&#xa0;');\""},_adjustDate:function(offset,period){var year=this._selectedYear+(period=="Y"?offset:0);var month=this._selectedMonth+(period=="M"?offset:0);var day=Math.min(this._selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=new Date(year,month,day);var minDate=this._getMinDate();var maxDate=this._get("maxDate");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);this._selectedDay=date.getDate();this._selectedMonth=date.getMonth();this._selectedYear=date.getFullYear()},_getMinDate:function(){return this._get("minDate")||this._rangeStart},_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(offset){var date=new Date(this._selectedYear,this._selectedMonth+offset,1);if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(date)},_isInRange:function(date){var newMinDate=(!this._rangeStart?null:new Date(this._selectedYear,this._selectedMonth,this._selectedDay));newMinDate=(newMinDate&&this._rangeStart<newMinDate?this._rangeStart:newMinDate);var minDate=newMinDate||this._get("minDate");var maxDate=this._get("maxDate");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_formatDate:function(day,month,year){if(!day){this._currentDay=this._selectedDay;this._currentMonth=this._selectedMonth;this._currentYear=this._selectedYear}var date=(day?(typeof day=="object"?day:new Date(year,month,day)):new Date(this._currentYear,this._currentMonth,this._currentDay));return $.datepicker.formatDate(this._get("dateFormat"),date,this._get("dayNamesShort"),this._get("dayNames"),this._get("monthNamesShort"),this._get("monthNames"))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=null}}return target}$.fn.datepicker=function(settings){return this.each(function(){var inlineSettings=null;for(attrName in $.datepicker._defaults){var attrValue=this.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=this.nodeName.toLowerCase();if(nodeName=="input"){var instSettings=(inlineSettings?$.extend($.extend({},settings||{}),inlineSettings||{}):settings);var inst=(inst&&!inlineSettings?inst:new DatepickerInstance(instSettings,false));$.datepicker._connectDatepicker(this,inst)}else{if(nodeName=="div"||nodeName=="span"){var instSettings=$.extend($.extend({},settings||{}),inlineSettings||{});var inst=new DatepickerInstance(instSettings,true);$.datepicker._inlineDatepicker(this,inst)}}})};$(document).ready(function(){$.datepicker=new Datepicker();$(document.body).append($.datepicker._datepickerDiv).mousedown($.datepicker._checkExternalClick)})})(jQuery);var GB_ANIMATION=true;$(document).ready(function(){$.ajaxSetup({error:ajaxFailed});$.datepicker.setDefaults({showOn:"button",buttonImageOnly:true,speed:"",dateFormat:"yy/mm/dd",yearRange:"-1:+0",buttonImage:"images/calendar.gif",buttonText:"Calendar"});$("#in_date_id").datepicker();display_day_of_week();$("#mets_form").attr("autocomplete","off");$("#m_desc_text_field").autocomplete("ajax_mets_search.php",{onItemSelect:processAutocomplete,delay:200,cacheLength:10,minChars:2});$.tablesorter.addParser({id:"commaNum",is:function(A){return false},format:function(A){return A.replace(/,/g,"")},type:"numeric"});$("a.editgreybox").click(function(){GB_show("Edit walklog entry",this.href,470,600);return false});$("a#mets_complete_list").click(function(){GB_show("Select activity from list",this.href,500,800);return false});$("body#plusmode").each(function(){var A=$.browser.msie&&$.browser.version<7;roundCorners();zebraTable("#plus_stephistory");$("#quick_user_rankings a.jTip").click(function(){window.location=$(this).attr("realhref")})});$("body#login, body#mysteps, body#othersteps, body#posts, body#preferences").each(function(){roundCorners()});$("body#browsemetslist").each(function(){$("a.browselist").click(processCompleteListSelection)})});function roundCorners(){$("div.rounded").wrap("<div class=outer></div>");$("#plusleft div.rounded").corner("round 8px").parent().css("padding","4px").corner("round 10px");$("#plusright div.rounded").corner("round 6px").parent().css("padding","2px").corner("round 8px")}function prepareUserRankingsTable(){$("#mets_user_rankings").tablesorter({widthFixed:true,sortList:[[4,1]],headers:{3:{sorter:"commaNum"}}}).tablesorterPager({container:$("#mets_user_rankings_pager"),positionFixed:false});$("#mets_user_rankings a.jTip").hover(function(){JT_show(this.href,this.id,this.name)},function(){$("#JT").remove()}).click(function(){return false})}function extendTablesorterPager(){$.tablesorterPager.addWidget({id:"focusCurrentUser",format:function(A){}})}function closeNotification(A){$("#notifications").hide();$.get("helper.php",{q:"remove_notification",id:A})}function count_note(C){var B=255-C.value.length;var A="";if(B<0){A="<span class=warning>Note is too long!</span>"}else{if(B<=50){A=B+" chars remaining"}}$("#chars_remaining").html(A)}function display_day_of_week(){$("#dow_textarea").load("helper.php",{q:"dayofweek",date:$("#in_date_id").val()})}function addQuickSelectActivity(A,B){if(A==-1){return }$("<tr><td class=label>Activity:</td><td class=input><input class=mets_input type=text name=in_mets_"+A+">"+B+"</td></tr>").insertBefore("#mets_autocomplete_tr");$("#m_desc_text_field").val("");$("#m_desc_text_field").focus()}function processAutocomplete(A){var C=A.firstChild.nodeValue;var B=A.extra[0];addQuickSelectActivity(B,C)}function processMetsAdd(){var A={"q":"process_mets_form"};$("#mets_form .mets_input").each(function(){if(this.value.length>0){A[this.name]=this.value}});if($("#spreadsubmit").attr("checked")===true){A.spreadsubmit="on";if($("#includetoday").attr("checked")===true){A.spreadsubmit="includetoday"}}$("#enter_steps_wait").show();$("#enter_steps").addClass("dim");$.getJSON("helper.php",A,updateMetsFormAndRecentHistory);$("#chars_remaining").html("");return false}function processMetsEdit(){var A=$("#edit_walklogid").val();$.getJSON("helper.php",{q:"delete_walklog_entry",walklogid:A},function(B){self.parent.removeEntryFromRecentHistory(B);var C={"q":"process_mets_form"};$("#mets_form .mets_input").each(function(){if(this.value.length>0){C[this.name]=this.value}});$.getJSON("helper.php",C,function(D){self.parent.updateMetsFormAndRecentHistory(D);self.parent.GB_hide()})});return false}function mets_search_focus(){$("#m_desc_text_field").val("")}function mets_search_blur(){$("#m_desc_text_field").val("Click and type to search for additional activities")}function ajaxFailed(){resetGUI();alert("Oops - received unexpected error - please reload page")}function resetGUI(){$("#enter_steps").removeClass("dim");$("#enter_steps_wait").hide()}function toggleMetsInput(){$("tr.mets_activity").toggleClass("dim")}function updateMetsFormAndRecentHistory(B){if(B.forcereload){window.location.reload();return }resetGUI();if(B.error){alert(B.error);return }$(B.tr).addClass("new_ajax_history_entry").prependTo("#recent_history_insertion_point");$(".new_ajax_history_entry a.jTip").hover(function(){JT_show(this.href,this.id,this.name)},function(){$("#JT").remove()}).click(function(){return false});$(".new_ajax_history_entry a.editgreybox").click(function(){GB_show("Edit walklog entry",this.href,470,600);return false});var A=document.getElementById("mets_form");if(A){A.reset()}$("#in_date_id").val(B.nextdate);display_day_of_week();zebraTable("#plus_stephistory");refreshLeaderboard();refreshStepGraph()}function refreshLeaderboard(){$("#quick_user_rankings tbody").load("helper.php",{q:"getleaderboardtbody"})}function refreshStepGraph(){$("#userstepgraph").load("helper.php",{q:"getstepgraph"})}function removeEntryFromRecentHistory(A){$("#recent_history_entry_"+A.id).hide();refreshLeaderboard();refreshStepGraph()}function deleteWalkLogEntry(A){$.getJSON("helper.php",{q:"delete_walklog_entry",walklogid:A},removeEntryFromRecentHistory)}function hide_div(A){$(A).hide();$(A+"_hidden").show()}function show_div(A){$(A).show();$(A+"_hidden").hide()}function addNonRecentActivity(A){var B=A.options[A.selectedIndex].value;$("#hidden_activity_"+B).show();A.options[A.selectedIndex]=null;A.selectedIndex=0}function expandEdit(A){$("#edit_entry_form_"+A).show();$("#existing_entry_"+A).hide()}function cancelEdit(A){$("#edit_entry_form_"+A).hide();$("#existing_entry_"+A).show()}function deletePost(A){$.get("helper.php",{q:"delete_post",postid:A},function(){window.location.reload()})}function zebraTable(A){$(A+" tr").removeClass("odd even");$(A+" tr:odd").addClass("odd");$(A+" tr:even").addClass("even")}function processCompleteListSelection(){var A=$(this).attr("mets");var B=$(this).text();self.parent.GB_hide();self.parent.addQuickSelectActivity(A,B)}