(function(b){b.fn.extend({autocomplete:function(c,a){var d="string"==typeof c,a=b.extend({},b.Autocompleter.defaults,{url:d?c:null,data:d?null:c,delay:d?b.Autocompleter.defaults.delay:10,max:a&&!a.scroll?10:150},a);a.highlight=a.highlight||function(b){return b};a.formatMatch=a.formatMatch||a.formatItem;return this.each(function(){new b.Autocompleter(this,a)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")}, setOptions:function(b){return this.trigger("setOptions",[b])},unautocomplete:function(){return this.trigger("unautocomplete")}});b.Autocompleter=function(c,a){var d,e;function f(){var g=l.selected();if(!g)return!1;var r=g.result;t=r;if(a.multiple){var w=m(i.val());if(1<w.length){var u=a.multipleSeparator.length,k=b(c).selection().start,d,n=0;b.each(w,function(b,a){n+=a.length;if(k<=n)return d=b,!1;n+=u});w[d]=r;r=w.join(a.multipleSeparator)}r+=a.multipleSeparator}i.val(r);o();i.trigger("result",[g.data, g.value]);return!0}function h(b,r){if(C==d)l.hide();else{var c=i.val();if(r||c!=t)t=c,c=j(c),c.length>=a.minChars?(i.addClass(a.loadingClass),a.matchCase||(c=c.toLowerCase()),v(c,s,o)):(i.removeClass(a.loadingClass),l.hide())}}function m(g){return!g?[""]:!a.multiple?[b.trim(g)]:b.map(g.split(a.multipleSeparator),function(a){return b.trim(g).length?b.trim(a):null})}function j(g){if(!a.multiple)return g;var r=m(g);if(1==r.length)return r[0];r=b(c).selection().start;r=r==g.length?m(g):m(g.replace(g.substring(r), ""));return r[r.length-1]}function o(){l.visible();l.hide();clearTimeout(x);i.removeClass(a.loadingClass);a.mustMatch&&i.search(function(b){b||(a.multiple?(b=m(i.val()).slice(0,-1),i.val(b.join(a.multipleSeparator)+(b.length?a.multipleSeparator:""))):(i.val(""),i.trigger("result",null)))})}function s(g,r){if(r&&r.length&&A){i.removeClass(a.loadingClass);l.display(r,g);var w=r[0].value;a.autoFill&&j(i.val()).toLowerCase()==g.toLowerCase()&&C!=e&&(i.val(i.val()+w.substring(j(t).length)),b(c).selection(t.length, t.length+w.length));l.show()}else o()}function v(g,r,w){a.matchCase||(g=g.toLowerCase());var u=q.load(g);if(u&&u.length)r(g,u);else if("string"==typeof a.url&&0<a.url.length){var k={timestamp:+new Date};b.each(a.extraParams,function(b,a){k[b]="function"==typeof a?a():a});b.ajax({mode:"abort",port:"autocomplete"+c.name,dataType:a.dataType,url:a.url,data:b.extend({q:j(g),limit:a.max},k),success:function(c){var w;if(!(w=a.parse&&a.parse(c))){w=[];for(var c=c.split("\n"),u=0;u<c.length;u++){var k=b.trim(c[u]); k&&(k=k.split("|"),w[w.length]={data:k,value:k[0],result:a.formatResult&&a.formatResult(k,k[0])||k[0]})}}q.add(g,w);r(g,w)}})}else l.emptyList(),w(g)}d=46;e=8;var i=b(c).attr("autocomplete","off").addClass(a.inputClass),x,t="",q=b.Autocompleter.Cache(a),A=0,C,B={mouseDownOnSelect:!1},l=b.Autocompleter.Select(a,c,f,B),y;b.browser.opera&&b(c.form).bind("submit.autocomplete",function(){if(y)return y=!1});i.bind((b.browser.opera?"keypress":"keydown")+".autocomplete",function(g){A=1;C=g.keyCode;switch(g.keyCode){case 38:g.preventDefault(); l.visible()?l.prev():h(0,!0);break;case 40:g.preventDefault();l.visible()?l.next():h(0,!0);break;case 33:g.preventDefault();l.visible()?l.pageUp():h(0,!0);break;case 34:g.preventDefault();l.visible()?l.pageDown():h(0,!0);break;case a.multiple&&","==b.trim(a.multipleSeparator)&&188:case 9:case 13:if(f())return g.preventDefault(),y=!0,!1;break;case 27:l.hide();break;default:clearTimeout(x),x=setTimeout(h,a.delay)}}).focus(function(){A++}).blur(function(){A=0;B.mouseDownOnSelect||(clearTimeout(x),x= setTimeout(o,200))}).click(function(){1<A++&&!l.visible()&&h(0,!0)}).bind("search",function(){function a(b,g){var k;if(g&&g.length)for(var d=0;d<g.length;d++)if(g[d].result.toLowerCase()==b.toLowerCase()){k=g[d];break}"function"==typeof c?c(k):i.trigger("result",k&&[k.data,k.value])}var c=1<arguments.length?arguments[1]:null;b.each(m(i.val()),function(b,c){v(c,a,a)})}).bind("flushCache",function(){q.flush()}).bind("setOptions",function(g,c){b.extend(a,c);"data"in c&&q.populate()}).bind("unautocomplete", function(){l.unbind();i.unbind();b(c.form).unbind(".autocomplete")})};b.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:!1,matchSubset:!0,matchContains:!1,cacheLength:10,max:100,mustMatch:!1,extraParams:{},selectFirst:!0,formatItem:function(b){return b[0]},formatMatch:null,autoFill:!1,width:0,multiple:!1,multipleSeparator:", ",highlight:function(b,a){return b.replace(RegExp("(?![^&;]+;)(?!<[^<>]*)("+a.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:!0,scrollHeight:180};b.Autocompleter.Cache=function(c){function a(b,a){c.matchCase||(b=b.toLowerCase());var d=b.indexOf(a);"word"==c.matchContains&&(d=b.toLowerCase().search("\\b"+a.toLowerCase()));return-1==d?!1:0==d||c.matchContains}function d(b,a){m>c.cacheLength&&f();h[b]||m++;h[b]=a}function e(){if(!c.data)return!1;var a={},e=0;if(!c.url)c.cacheLength=1;a[""]=[];for(var f=0,h=c.data.length;f<h;f++){var i=c.data[f],i="string"== typeof i?[i]:i,m=c.formatMatch(i,f+1,c.data.length);if(!1!==m){var t=m.charAt(0).toLowerCase();a[t]||(a[t]=[]);i={value:m,data:i,result:c.formatResult&&c.formatResult(i)||m};a[t].push(i);e++<c.max&&a[""].push(i)}}b.each(a,function(b,a){c.cacheLength++;d(b,a)})}function f(){h={};m=0}var h={},m=0;setTimeout(e,25);return{flush:f,add:d,populate:e,load:function(d){if(!c.cacheLength||!m)return null;if(!c.url&&c.matchContains){var e=[],f;for(f in h)if(0<f.length){var v=h[f];b.each(v,function(b,c){a(c.value, d)&&e.push(c)})}return e}if(h[d])return h[d];if(c.matchSubset)for(f=d.length-1;f>=c.minChars;f--)if(v=h[d.substr(0,f)])return e=[],b.each(v,function(b,c){a(c.value,d)&&(e[e.length]=c)}),e;return null}}};b.Autocompleter.Select=function(c,a,d,e){var f;function h(){x&&(t=b("<div/>").hide().addClass(c.resultsClass).css("position","absolute").appendTo(document.body),q=b("<ul/>").appendTo(t).mouseover(function(a){m(a).nodeName&&"LI"==m(a).nodeName.toUpperCase()&&(s=b("li",q).removeClass(f).index(m(a)), b(m(a)).addClass(f))}).click(function(c){b(m(c)).addClass(f);d();a.focus();return!1}).mousedown(function(){e.mouseDownOnSelect=!0}).mouseup(function(){e.mouseDownOnSelect=!1}),0<c.width&&t.css("width",c.width),x=!1)}function m(b){for(b=b.target;b&&"LI"!=b.tagName;)b=b.parentNode;return!b?[]:b}function j(b){o.slice(s,s+1).removeClass(f);s+=b;0>s?s=o.size()-1:s>=o.size()&&(s=0);b=o.slice(s,s+1).addClass(f);if(c.scroll){var a=0;o.slice(0,s).each(function(){a+=this.offsetHeight});a+b[0].offsetHeight- q.scrollTop()>q[0].clientHeight?q.scrollTop(a+b[0].offsetHeight-q.innerHeight()):a<q.scrollTop()&&q.scrollTop(a)}}f="ac_over";var o,s=-1,v,i="",x=!0,t,q;return{display:function(a,d){h();v=a;i=d;q.empty();for(var e=c.max&&c.max<v.length?c.max:v.length,l=0;l<e;l++)if(v[l]){var m=c.formatItem(v[l].data,l+1,e,v[l].value,i);!1!==m&&(m=b("<li/>").html(c.highlight(m,i)).addClass(0==l%2?"ac_even":"ac_odd").appendTo(q)[0],b.data(m,"ac_data",v[l]))}o=q.find("li");c.selectFirst&&(o.slice(0,1).addClass(f),s= 0);b.fn.bgiframe&&q.bgiframe()},next:function(){j(1)},prev:function(){j(-1)},pageUp:function(){0!=s&&0>s-8?j(-s):j(-8)},pageDown:function(){s!=o.size()-1&&s+8>o.size()?j(o.size()-1-s):j(8)},hide:function(){t&&t.hide();o&&o.removeClass(f);s=-1},visible:function(){return t&&t.is(":visible")},current:function(){return this.visible()&&(o.filter("."+f)[0]||c.selectFirst&&o[0])},show:function(){var d=b(a).offset();t.css({width:"string"==typeof c.width||0<c.width?c.width:b(a).width(),top:d.top+a.offsetHeight, left:d.left}).show();if(c.scroll&&(q.scrollTop(0),q.css({maxHeight:c.scrollHeight,overflow:"auto"}),b.browser.msie&&"undefined"===typeof document.body.style.maxHeight)){var e=0;o.each(function(){e+=this.offsetHeight});d=e>c.scrollHeight;q.css("height",d?c.scrollHeight:e);d||o.width(q.width()-parseInt(o.css("padding-left"))-parseInt(o.css("padding-right")))}},selected:function(){var a=o&&o.filter("."+f).removeClass(f);return a&&a.length&&b.data(a[0],"ac_data")},emptyList:function(){q&&q.empty()},unbind:function(){t&& t.remove()}}};b.fn.selection=function(b,a){if(void 0!==b)return this.each(function(){if(this.createTextRange){var d=this.createTextRange();void 0===a||b==a?d.move("character",b):(d.collapse(!0),d.moveStart("character",b),d.moveEnd("character",a));d.select()}else if(this.setSelectionRange)this.setSelectionRange(b,a);else if(this.selectionStart)this.selectionStart=b,this.selectionEnd=a});var d=this[0];if(d.createTextRange){var e=document.selection.createRange(),f=d.value,h=e.text.length;e.text="<->"; e=d.value.indexOf("<->");d.value=f;this.selection(e,e+h);return{start:e,end:e+h}}if(void 0!==d.selectionStart)return{start:d.selectionStart,end:d.selectionEnd}}})(jQuery); (function(b){b.extend({tablesorter:new function(){function a(b,a){c(b+","+((new Date).getTime()-a.getTime())+"ms")}function c(b){"undefined"!=typeof console&&"undefined"!=typeof console.debug?console.log(b):alert(b)}function e(a,r){if(a.config.debug)var e="";if(0!=a.tBodies.length){var u=a.tBodies[0].rows;if(u[0])for(var k=[],i=u[0].cells.length,n=0;n<i;n++){var p=!1;b.metadata&&b(r[n]).metadata()&&b(r[n]).metadata().sorter?p=f(b(r[n]).metadata().sorter):a.config.headers[n]&&a.config.headers[n].sorter&& (p=f(a.config.headers[n].sorter));if(!p)a:{for(var p=a,z=u,h=-1,j=n,o=l.length,q=!1,s=!1,t=!0;""==s&&t;)h++,z[h]?(q=z[h].cells[j],s=b.trim(m(p.config,q)),p.config.debug&&c("Checking if value was empty on row:"+h)):t=!1;for(z=1;z<o;z++)if(l[z].is(s,p,q)){p=l[z];break a}p=l[0]}a.config.debug&&(e+="column:"+n+" parser:"+p.id+"\n");k.push(p)}a.config.debug&&c(e);return k}}function f(b){for(var a=l.length,c=0;c<a;c++)if(l[c].id.toLowerCase()==b.toLowerCase())return l[c];return!1}function h(g){if(g.config.debug)var c= new Date;for(var d=g.tBodies[0]&&g.tBodies[0].rows.length||0,e=g.tBodies[0].rows[0]&&g.tBodies[0].rows[0].cells.length||0,k=g.config.parsers,f={row:[],normalized:[]},n=0;n<d;++n){var p=b(g.tBodies[0].rows[n]),h=[];if(p.hasClass(g.config.cssChildRow))f.row[f.row.length-1]=f.row[f.row.length-1].add(p);else{f.row.push(p);for(var i=0;i<e;++i)h.push(k[i].format(m(g.config,p[0].cells[i]),g,p[0].cells[i]));h.push(f.normalized.length);f.normalized.push(h)}}g.config.debug&&a("Building cache for "+d+" rows:", c);return f}function m(a,c){var d="";if(!c)return"";if(!a.supportsTextContent)a.supportsTextContent=c.textContent||!1;return d="simple"==a.textExtraction?a.supportsTextContent?c.textContent:c.childNodes[0]&&c.childNodes[0].hasChildNodes()?c.childNodes[0].innerHTML:c.innerHTML:"function"==typeof a.textExtraction?a.textExtraction(c):b(c).text()}function j(c,d){if(c.config.debug)var e=new Date;for(var u=d.row,k=d.normalized,f=k.length,n=k[0].length-1,p=b(c.tBodies[0]),h=[],l=0;l<f;l++){var j=k[l][n]; h.push(u[j]);if(!c.config.appender)for(var m=u[j].length,o=0;o<m;o++)p[0].appendChild(u[j][o])}c.config.appender&&c.config.appender(c,h);h=null;c.config.debug&&a("Rebuilt table:",e);i(c);setTimeout(function(){b(c).trigger("sortEnd")},0)}function o(g){if(g.config.debug)var e=new Date;var f=s(g);$tableHeaders=b(g.config.selectorHeaders,g).each(function(a){this.column=f[this.parentNode.rowIndex+"-"+this.cellIndex];this.count=this.order="Number"!=typeof g.config.sortInitialOrder?"desc"==g.config.sortInitialOrder.toLowerCase()? 1:0:1==g.config.sortInitialOrder?1:0;var c;c=b.metadata&&!1===b(this).metadata().sorter?!0:!1;c||(c=g.config.headers[a]&&!1===g.config.headers[a].sorter?!0:!1);if(c)this.sortDisabled=!0;if(v(g,a))this.order=this.lockedOrder=v(g,a);this.sortDisabled||(c=b(this).addClass(g.config.cssHeader),g.config.onRenderHeader&&g.config.onRenderHeader.apply(c));g.config.headerList[a]=this});g.config.debug&&(a("Built headers:",e),c($tableHeaders));return $tableHeaders}function s(a){for(var b=[],c={},a=a.getElementsByTagName("THEAD")[0].getElementsByTagName("TR"), d=0;d<a.length;d++)for(var e=a[d].cells,f=0;f<e.length;f++){var n=e[f],p=n.parentNode.rowIndex,h=p+"-"+n.cellIndex,i=n.rowSpan||1,n=n.colSpan||1,l;"undefined"==typeof b[p]&&(b[p]=[]);for(var j=0;j<b[p].length+1;j++)if("undefined"==typeof b[p][j]){l=j;break}c[h]=l;for(j=p;j<p+i;j++){"undefined"==typeof b[j]&&(b[j]=[]);for(var h=b[j],m=l;m<l+n;m++)h[m]="x"}}return c}function v(b,a){return b.config.headers[a]&&b.config.headers[a].lockedOrder?b.config.headers[a].lockedOrder:!1}function i(b){for(var a= b.config.widgets,c=a.length,d=0;d<c;d++)x(a[d]).format(b)}function x(b){for(var a=y.length,c=0;c<a;c++)if(y[c].id.toLowerCase()==b.toLowerCase())return y[c]}function t(b,a){for(var c=a.length,d=0;d<c;d++)if(a[d][0]==b)return!0;return!1}function q(a,c,d,e){c.removeClass(e[0]).removeClass(e[1]);var f=[];c.each(function(){this.sortDisabled||(f[this.column]=b(this))});a=d.length;for(c=0;c<a;c++)f[d[c][0]].addClass(e[d[c][1]])}function A(a){if(a.config.widthFixed){var c=b("<colgroup>");b("tr:first td", a.tBodies[0]).each(function(){c.append(b("<col>").css("width",b(this).width()))});b(a).prepend(c)}}function C(b,c,d){if(b.config.debug)var e=new Date;for(var f="var sortWrapper = function(a,b) {",h=c.length,n=0;n<h;n++)var p=c[n][0],j=c[n][1],p="text"==b.config.parsers[p].type?0==j?B("text","asc",p):B("text","desc",p):0==j?B("numeric","asc",p):B("numeric","desc",p),i="e"+n,f=f+("var "+i+" = "+p),f=f+("if("+i+") { return "+i+"; } "),f=f+"else { ";n=d.normalized[0].length-1;f+="return a["+n+"]-b["+ n+"];";for(n=0;n<h;n++)f+="}; ";f+="return 0; }; ";b.config.debug&&a("Evaling expression:"+f,new Date);eval(f);d.normalized.sort(sortWrapper);b.config.debug&&a("Sorting on "+c.toString()+" and dir "+j+" time:",e);return d}function B(a,b,c){var d="a["+c+"]",c="b["+c+"]";if("text"==a&&"asc"==b)return"("+d+" == "+c+" ? 0 : ("+d+" === null ? Number.POSITIVE_INFINITY : ("+c+" === null ? Number.NEGATIVE_INFINITY : ("+d+" < "+c+") ? -1 : 1 )));";if("text"==a&&"desc"==b)return"("+d+" == "+c+" ? 0 : ("+d+ " === null ? Number.POSITIVE_INFINITY : ("+c+" === null ? Number.NEGATIVE_INFINITY : ("+c+" < "+d+") ? -1 : 1 )));";if("numeric"==a&&"asc"==b)return"("+d+" === null && "+c+" === null) ? 0 :("+d+" === null ? Number.POSITIVE_INFINITY : ("+c+" === null ? Number.NEGATIVE_INFINITY : "+d+" - "+c+"));";if("numeric"==a&&"desc"==b)return"("+d+" === null && "+c+" === null) ? 0 :("+d+" === null ? Number.POSITIVE_INFINITY : ("+c+" === null ? Number.NEGATIVE_INFINITY : "+c+" - "+d+"));"}var l=[],y=[];this.defaults= {cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:!0,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:!1,cancelSelection:!0,sortList:[],headerList:[],dateFormat:"us",decimal:"/.|,/g",onRenderHeader:null,selectorHeaders:"thead th",debug:!1};this.benchmark=a;this.construct=function(a){return this.each(function(){if(this.tHead&& this.tBodies){var c,d,f,k;this.config={};k=b.extend(this.config,b.tablesorter.defaults,a);c=b(this);b.data(this,"tablesorter",k);d=o(this);this.config.parsers=e(this,d);f=h(this);var l=[k.cssDesc,k.cssAsc];A(this);d.click(function(a){var e=c[0].tBodies[0]&&c[0].tBodies[0].rows.length||0;if(!this.sortDisabled&&0<e){c.trigger("sortStart");b(this);e=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(a[k.sortMultiSortKey])if(t(e,k.sortList))for(a=0;a<k.sortList.length;a++){var g= k.sortList[a],h=k.headerList[g[0]];if(g[0]==e)h.count=g[1],h.count++,g[1]=h.count%2}else k.sortList.push([e,this.order]);else{k.sortList=[];if(null!=k.sortForce){g=k.sortForce;for(a=0;a<g.length;a++)g[a][0]!=e&&k.sortList.push(g[a])}k.sortList.push([e,this.order])}setTimeout(function(){q(c[0],d,k.sortList,l);j(c[0],C(c[0],k.sortList,f))},1);return!1}}).mousedown(function(){if(k.cancelSelection)return this.onselectstart=function(){return!1},!1});c.bind("update",function(){var a=this;setTimeout(function(){a.config.parsers= e(a,d);f=h(a)},1)}).bind("updateCell",function(a,b){var c=this.config,d=[b.parentNode.rowIndex-1,b.cellIndex];f.normalized[d[0]][d[1]]=c.parsers[d[1]].format(m(c,b),b)}).bind("sorton",function(a,c){b(this).trigger("sortStart");k.sortList=c;for(var e=k.sortList,g=this.config,h=e.length,i=0;i<h;i++){var m=e[i],o=g.headerList[m[0]];o.count=m[1];o.count++}q(this,d,e,l);j(this,C(this,e,f))}).bind("appendCache",function(){j(this,f)}).bind("applyWidgetId",function(a,b){x(b).format(this)}).bind("applyWidgets", function(){i(this)});if(b.metadata&&b(this).metadata()&&b(this).metadata().sortlist)k.sortList=b(this).metadata().sortlist;0<k.sortList.length&&c.trigger("sorton",[k.sortList]);i(this)}})};this.addParser=function(a){for(var b=l.length,c=!0,d=0;d<b;d++)l[d].id.toLowerCase()==a.id.toLowerCase()&&(c=!1);c&&l.push(a)};this.addWidget=function(a){y.push(a)};this.formatFloat=function(a){a=parseFloat(a);return isNaN(a)?0:a};this.formatInt=function(a){a=parseInt(a);return isNaN(a)?0:a};this.isDigit=function(a){return/^[-+]?\d*$/.test(b.trim(a.replace(/[,.']/g, "")))};this.clearTableBody=function(a){b.browser.msie?function(){for(;this.firstChild;)this.removeChild(this.firstChild)}.apply(a.tBodies[0]):a.tBodies[0].innerHTML=""}}});b.fn.extend({tablesorter:b.tablesorter.construct});var c=b.tablesorter;c.addParser({id:"text",is:function(){return!0},format:function(a){return b.trim(a.toLocaleLowerCase())},type:"text"});c.addParser({id:"digit",is:function(a,c){return b.tablesorter.isDigit(a,c.config)},format:function(a){return b.tablesorter.formatFloat(a)},type:"numeric"}); c.addParser({id:"currency",is:function(a){return/^[\u00a3$\u20ac?.]/.test(a)},format:function(a){return b.tablesorter.formatFloat(a.replace(RegExp(/[\u00a3$\u20ac]/g),""))},type:"numeric"});c.addParser({id:"ipAddress",is:function(a){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(a)},format:function(a){for(var a=a.split("."),c="",e=a.length,f=0;f<e;f++)var h=a[f],c=2==h.length?c+("0"+h):c+h;return b.tablesorter.formatFloat(c)},type:"numeric"});c.addParser({id:"url",is:function(a){return/^(https?|ftp|file):\/\/$/.test(a)}, format:function(a){return jQuery.trim(a.replace(RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});c.addParser({id:"isoDate",is:function(a){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},format:function(a){return b.tablesorter.formatFloat(""!=a?(new Date(a.replace(RegExp(/-/g),"/"))).getTime():"0")},type:"numeric"});c.addParser({id:"percent",is:function(a){return/\%$/.test(b.trim(a))},format:function(a){return b.tablesorter.formatFloat(a.replace(RegExp(/%/g),""))},type:"numeric"});c.addParser({id:"usLongDate", is:function(a){return a.match(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(a){return b.tablesorter.formatFloat((new Date(a)).getTime())},type:"numeric"});c.addParser({id:"shortDate",is:function(a){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(a)},format:function(a,c){var e=c.config,a=a.replace(/\-/g,"/");if("us"==e.dateFormat)a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");else if("uk"== e.dateFormat)a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");else if("dd/mm/yy"==e.dateFormat||"dd-mm-yy"==e.dateFormat)a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");return b.tablesorter.formatFloat((new Date(a)).getTime())},type:"numeric"});c.addParser({id:"time",is:function(a){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(a)},format:function(a){return b.tablesorter.formatFloat((new Date("2000/01/01 "+a)).getTime())},type:"numeric"}); c.addParser({id:"metadata",is:function(){return!1},format:function(a,c,e){a=c.config;a=!a.parserMetadataName?"sortValue":a.parserMetadataName;return b(e).metadata()[a]},type:"numeric"});c.addWidget({id:"zebra",format:function(a){if(a.config.debug)var c=new Date;var e,f=-1,h;b("tr:visible",a.tBodies[0]).each(function(){e=b(this);e.hasClass(a.config.cssChildRow)||f++;h=0==f%2;e.removeClass(a.config.widgetZebra.css[h?0:1]).addClass(a.config.widgetZebra.css[h?1:0])});a.config.debug&&b.tablesorter.benchmark("Applying Zebra widget", c)}})})(jQuery);var A_TCALDEF={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),weekdays:"Su,Mo,Tu,We,Th,Fr,Sa".split(","),yearscroll:!0,weekstart:0,centyear:70,imgpath:"images/calendar/"}; function f_tcalParseDate(b){if(!/^\s*(\d{1,2})\/(\d{1,2})\/(\d{2,4})\s*$/.exec(b))return alert("Invalid date: '"+b+"'.\nAccepted format is mm/dd/yyyy.");var b=Number(RegExp.$2),c=Number(RegExp.$1),a=Number(RegExp.$3);100>a&&(a+=a<this.a_tpl.centyear?2E3:1900);if(1>c||12<c)return alert("Invalid month value: '"+c+"'.\nAllowed range is 01-12.");var d=new Date(a,c,0);return b>d.getDate()?alert("Invalid day of month value: '"+b+"'.\nAllowed range for selected month is 01 - "+d.getDate()+"."):new Date(a, c-1,b)}function f_tcalGenerDate(b){return(9>b.getMonth()?"0":"")+(b.getMonth()+1)+"/"+(10>b.getDate()?"0":"")+b.getDate()+"/"+b.getFullYear()} function tcal(b,c){c||(c=A_TCALDEF);if(!window.A_TCALS)window.A_TCALS=[];if(!window.A_TCALSIDX)window.A_TCALSIDX=[];this.s_id=b.id?b.id:A_TCALS.length;window.A_TCALS[this.s_id]=this;window.A_TCALSIDX[window.A_TCALSIDX.length]=this;this.f_show=f_tcalShow;this.f_hide=f_tcalHide;this.f_toggle=f_tcalToggle;this.f_update=f_tcalUpdate;this.f_relDate=f_tcalRelDate;this.f_parseDate=f_tcalParseDate;this.f_generDate=f_tcalGenerDate;this.s_iconId="tcalico_"+this.s_id;this.e_icon=f_getElement(this.s_iconId); if(!this.e_icon)document.write('<img src="'+c.imgpath+'cal.gif" id="'+this.s_iconId+'" onclick="A_TCALS[\''+this.s_id+'\'].f_toggle()" class="tcalIcon" alt="Open Calendar" />'),this.e_icon=f_getElement(this.s_iconId);this.a_cfg=b;this.a_tpl=c} function f_tcalShow(){if(!this.a_cfg.controlname)throw"TC: control name is not specified";if(this.a_cfg.formname){var b=document.forms[this.a_cfg.formname];if(!b)throw"TC: form '"+this.a_cfg.formname+"' can not be found";this.e_input=b.elements[this.a_cfg.controlname]}else this.e_input=f_getElement(this.a_cfg.controlname);if(!this.e_input||!this.e_input.tagName||"INPUT"!=this.e_input.tagName)throw"TC: element '"+this.a_cfg.controlname+"' does not exist in "+(this.a_cfg.formname?"form '"+this.a_cfg.controlname+ "'":"this document");this.e_div=f_getElement("tcal");if(!this.e_div)this.e_div=document.createElement("DIV"),this.e_div.id="tcal",document.body.appendChild(this.e_div);this.e_shade=f_getElement("tcalShade");if(!this.e_shade)this.e_shade=document.createElement("DIV"),this.e_shade.id="tcalShade",document.body.appendChild(this.e_shade);this.e_iframe=f_getElement("tcalIF");if(b_ieFix&&!this.e_iframe)this.e_iframe=document.createElement("IFRAME"),this.e_iframe.style.filter="alpha(opacity=0)",this.e_iframe.id= "tcalIF",this.e_iframe.src=this.a_tpl.imgpath+"pixel.gif",document.body.appendChild(this.e_iframe);f_tcalHideAll();this.e_icon=f_getElement(this.s_iconId);if(this.f_update()){this.e_div.style.visibility="visible";this.e_shade.style.visibility="visible";if(this.e_iframe)this.e_iframe.style.visibility="visible";this.e_icon.src=this.a_tpl.imgpath+"no_cal.gif";this.e_icon.title="Close Calendar";this.b_visible=!0}} function f_tcalHide(b){if(b)this.e_input.value=this.f_generDate(new Date(b));if(this.b_visible){if(this.e_iframe)this.e_iframe.style.visibility="hidden";if(this.e_shade)this.e_shade.style.visibility="hidden";this.e_div.style.visibility="hidden";this.e_icon=f_getElement(this.s_iconId);this.e_icon.src=this.a_tpl.imgpath+"cal.gif";this.e_icon.title="Open Calendar";this.b_visible=!1}}function f_tcalToggle(){return this.b_visible?this.f_hide():this.f_show()} function f_tcalUpdate(b){var c=this.a_cfg.today?this.f_parseDate(this.a_cfg.today):f_tcalResetTime(new Date),a=""==this.e_input.value?this.a_cfg.selected?this.f_parseDate(this.a_cfg.selected):c:this.f_parseDate(this.e_input.value);b?"number"==typeof b?b=f_tcalResetTime(new Date(b)):"string"==typeof b&&this.f_parseDate(b):b=a;if(!b)return!1;var d=new Date(b);d.setDate(1);d.setDate(1-(7+d.getDay()-this.a_tpl.weekstart)%7);var e,f='<table class="ctrl"><tbody><tr>'+(this.a_tpl.yearscroll?"<td"+this.f_relDate(b, -1,"y")+' title="Previous Year"><img src="'+this.a_tpl.imgpath+'prev_year.gif" /></td>':"")+"<td"+this.f_relDate(b,-1)+' title="Previous Month"><img src="'+this.a_tpl.imgpath+'prev_mon.gif" /></td><th>'+this.a_tpl.months[b.getMonth()]+" "+b.getFullYear()+"</th><td"+this.f_relDate(b,1)+' title="Next Month"><img src="'+this.a_tpl.imgpath+'next_mon.gif" /></td>'+(this.a_tpl.yearscroll?"<td"+this.f_relDate(b,1,"y")+' title="Next Year"><img src="'+this.a_tpl.imgpath+'next_year.gif" /></td></td>':"")+'</tr></tbody></table><table><tbody><tr class="wd">'; for(e=0;7>e;e++)f+="<th>"+this.a_tpl.weekdays[(this.a_tpl.weekstart+e)%7]+"</th>";for(var f=f+"</tr>",h,m,j=new Date(d);j.getMonth()==b.getMonth()||j.getMonth()==d.getMonth();){for(var f=f+"<tr>",o=0;7>o;o++){e=[];h=j.getDate();m=j.getMonth();j.getMonth()!=b.getMonth()&&(e[e.length]="othermonth");if(0==j.getDay()||6==j.getDay())e[e.length]="weekend";j.valueOf()==c.valueOf()&&(e[e.length]="today");j.valueOf()==a.valueOf()&&(e[e.length]="selected");f+="<td onclick=\"A_TCALS['"+this.s_id+"'].f_hide("+ j.valueOf()+')"'+(e.length?' class="'+e.join(" ")+'">':">")+h+"</td>";for(j.setDate(++h);j.getDate()!=h&&j.getMonth()==m;)j.setHours(j.getHours+1),j=f_tcalResetTime(j)}f+="</tr>"}this.e_div.innerHTML=f+"</tbody></table>";b=this.e_div.offsetWidth;c=this.e_div.offsetHeight;a=f_getPosition(this.e_icon,"Top")+this.e_icon.offsetHeight;d=f_getPosition(this.e_icon,"Left")-b+this.e_icon.offsetWidth;0>d&&(d=0);this.e_div.style.left=d+"px";this.e_div.style.top=a+"px";this.e_shade.style.width=b+8+"px";this.e_shade.style.left= d-1+"px";this.e_shade.style.top=a-1+"px";this.e_shade.innerHTML=b_ieFix?'<table><tbody><tr><td rowspan="2" colspan="2" width="6"><img src="'+this.a_tpl.imgpath+'pixel.gif"></td><td width="7" height="7" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+this.a_tpl.imgpath+"shade_tr.png', sizingMethod='scale');\"><img src=\""+this.a_tpl.imgpath+'pixel.gif"></td></tr><tr><td height="'+(c-7)+'" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+this.a_tpl.imgpath+ "shade_mr.png', sizingMethod='scale');\"><img src=\""+this.a_tpl.imgpath+'pixel.gif"></td></tr><tr><td width="7" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+this.a_tpl.imgpath+"shade_bl.png', sizingMethod='scale');\"><img src=\""+this.a_tpl.imgpath+'pixel.gif"></td><td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+this.a_tpl.imgpath+'shade_bm.png\', sizingMethod=\'scale\');" height="7" align="left"><img src="'+this.a_tpl.imgpath+'pixel.gif"></td><td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+ this.a_tpl.imgpath+"shade_br.png', sizingMethod='scale');\"><img src=\""+this.a_tpl.imgpath+'pixel.gif"></td></tr><tbody></table>':'<table><tbody><tr><td rowspan="2" width="6"><img src="'+this.a_tpl.imgpath+'pixel.gif"></td><td rowspan="2"><img src="'+this.a_tpl.imgpath+'pixel.gif"></td><td width="7" height="7"><img src="'+this.a_tpl.imgpath+'shade_tr.png"></td></tr><tr><td background="'+this.a_tpl.imgpath+'shade_mr.png" height="'+(c-7)+'"><img src="'+this.a_tpl.imgpath+'pixel.gif"></td></tr><tr><td><img src="'+ this.a_tpl.imgpath+'shade_bl.png"></td><td background="'+this.a_tpl.imgpath+'shade_bm.png" height="7" align="left"><img src="'+this.a_tpl.imgpath+'pixel.gif"></td><td><img src="'+this.a_tpl.imgpath+'shade_br.png"></td></tr><tbody></table>';if(this.e_iframe)this.e_iframe.style.left=d+"px",this.e_iframe.style.top=a+"px",this.e_iframe.style.width=b+6+"px",this.e_iframe.style.height=c+6+"px";return!0} function f_getPosition(b,c){for(var a=0,d,e=b;e;)d=e["offset"+c],a+=d,e=e.offsetParent;b_ieMac?a+=parseInt(document.body[c.toLowerCase()+"Margin"]):b_safari&&(a-=d);for(e=b;e!=document.body;)(d=e["scroll"+c])&&"scroll"==e.style.overflow&&(a-=d),e=e.parentNode;return a}function f_tcalRelDate(b,c,a){var a="y"==a?"FullYear":"Month",d=new Date(b);d["set"+a](b["get"+a]()+c);d.getDate()!=b.getDate()&&d.setDate(0);return" onclick=\"A_TCALS['"+this.s_id+"'].f_update("+d.valueOf()+')"'} function f_tcalHideAll(){for(var b=0;b<window.A_TCALSIDX.length;b++)window.A_TCALSIDX[b].f_hide()}function f_tcalResetTime(b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0);return b}f_getElement=document.all?function(b){return document.all[b]}:function(b){return document.getElementById(b)};document.addEventListener&&window.addEventListener("scroll",f_tcalHideAll,!1);window.attachEvent&&window.attachEvent("onscroll",f_tcalHideAll); var s_userAgent=navigator.userAgent.toLowerCase(),re_webkit=/WebKit\/(\d+)/i,b_mac=-1!=s_userAgent.indexOf("mac"),b_ie5=-1!=s_userAgent.indexOf("msie 5"),b_ie6=-1!=s_userAgent.indexOf("msie 6")&&-1==s_userAgent.indexOf("opera"),b_ieFix=b_ie5||b_ie6,b_ieMac=b_mac&&b_ie5,b_safari=b_mac&&re_webkit.exec(s_userAgent)&&500>Number(RegExp.$1); function toggleCheckBoxes(b,c){for(var a=document.getElementById(c).getElementsByTagName("input"),d=a.length,e=0;e<d;e++)if("checkbox"===a[e].type)a[e].checked=b.checked}$(document).ready(function(){$(".toggle").prev().append(' (<a href="#" class="toggleLink">Show</a>)');$(".toggle").hide();$("a.toggleLink").click(function(){$(this).html("hide"==$(this).html().toLowerCase()?"Show":"Hide");$(this).parent().next(".toggle").toggle("slow");return!1})}); $().ready(function(){$("#NotaryName").autocomplete("jq.php",{width:464,matchContains:!0,mustMatch:!0,minChars:2,selectFirst:!1});$("#NotaryName").result(function(b,c){$("#NotaryUserId").val(c[1])})});function blankOnExit(b,c){if(""==b.value)c.value=""};function DoNav(url){
document.location.href = url;
}
function ConfirmDelete(delText) {
return confirm('Are you sure you wish to delete this '+delText+'?');
}
function ConfirmAcceptOnDownload() {
return confirm('By downloading this document, you are accepting this order.  Do you want to proceed?');
}
function isValidEmailAddress(emailAddress) {
var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
return pattern.test(emailAddress);
}
$(document).ready(function() {

$("#UserName").keyup(function(){
var email = $("#UserName").val();

if(email != 0)
{
if(isValidEmailAddress(email))
{

$("#validEmail").css({ "background-image": "url('../images/validYes.png')" });

} else {

$("#validEmail").css({ "background-image": "url('../images/validNo.png')" });

}

} else {

$("#validEmail").css({ "background-image": "none" });

}
});
});
function reloadPage()
  {
  window.location.reload()
  }
