!
 jQuery JavaScript Library v1.6.2
 http://jquery.com/

 Copyright 2011, John Resig
 Dual licensed under the MIT or GPL Version 2 licenses.
 http://jquery.org/license

 Includes Sizzle.js
 http://sizzlejs.com/
 Copyright 2011, The Dojo Foundation
 Released under the MIT, BSD, and GPL Licenses.

 Date: Thu Jun 30 14:16:56 2011 -0400

(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg){var b=c.body,d=f(“<”a“>”).appendTo(b),e=d.css(“display”);d.remove();if(e===“none”||e===“”){ch||(ch=c.createElement(“iframe”),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode===“CSS1Compat”?“<!doctype html>”:“”)+“<html><body>”),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,“display”),b.removeChild(ch)}cg=e}return cg}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject(“Microsoft.XMLHTTP”)}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d,l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==“string”&&(e=a.converters);l=k,k=d;if(k===“*”)k=l;else if(l!==“*”&&l!==k){m=l+“ ”+k,n=e||e[“* ”+k];if(!n){p=b;for(o in e){j=o.split(“ ”);if(j===l||j===“*”){p=e[j+“ ”+k];if(p){o=e,o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error(“No conversion from ”+m.replace(“ ”,“ to ”)),n!==!0&&(c=n?n©:p(o©))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g]=d);while(f===“*”)f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader(“content-type”));if(h)for(i in e)if(e&&e.test(h)){f.unshift(i);break}if(fin d)j=f;else{for(i in d){if(!f||a.converters[i+“ ”+f]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f&&f.unshift(j);return d}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bC.test(a)?d(a,e):bY(a+“[”+(typeof e==“object”||f.isArray(e)?b:“”)+“]”,e,c,d)});else if(!c&&b!=null&&typeof b==“object”)for(var e in b)bY(a+“”,b,c,d);else d(a,b)}function bX(a,c,d,e,f,g){f=f||c.dataTypes,g=g||{},g=!0;var h=a,i=0,j=h?h.length:0,k=a===bR,l;for(;i(c,d,e),typeof l==“string”&&(!k||g?l=b:(c.dataTypes.unshift(l),l=bX(a,c,d,e,l,g)));(k||!l)&&!g&&(l=bX(a,c,d,e,“*”,g));return l}function bW(a){return function(b,c){typeof b!=“string”&&(c=b,b=“*”);if(f.isFunction©){var d=b.toLowerCase().split(bN),e=0,g=d.length,h,i,j;for(;e,j=/^+/.test(h),j&&(h=h.substr(1)||“*”),i=a=a||[],i©}}}function bA(a,b,c){var d=b===“width”?a.offsetWidth:a.offsetHeight,e=b===“width”?bv:bw;if(d>0){c!==“border”&&f.each(e,function(){c||(d-=parseFloat(f.css(a,“padding”+this))||0),c===“margin”?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,“border”this“Width”))||0});return d+“px”}d=bx(a,b,b);if(d<0||d==null)d=a.style||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,“padding”+this))||0,c!==“padding”&&(d+=parseFloat(f.css(a,“border”this“Width”))||0),c===“margin”&&(d+=parseFloat(f.css(a,c+this))||0)});return d+“px”}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:“script”}):f.globalEval((b.text||b.textContent||b.innerHTML||“”).replace(be,“ $0 ”)),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,“input”)?bk(a):“getElementsByTagName”in a&&f.grep(a.getElementsByTagName(“input”),bk)}function bk(a){if(a.type===“checkbox”||a.type===“radio”)a.defaultChecked=a.checked}function bj(a){return“getElementsByTagName”in a?a.getElementsByTagName(“*”):“querySelectorAll”in a?a.querySelectorAll(“*”):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c===“object”)b.outerHTML=a.outerHTML;else if(c!==“input”||a.type!==“checkbox”&&a.type!==“radio”){if(c===“option”)b.selected=a.defaultSelected;else if(c===“input”||c===“textarea”)b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d){var g=d.events;e=e=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g.length;i[i].namespace?“.”:“”)+g[i].namespace,g[i],g[i].data)}}}}function bg(a,b){return f.nodeName(a,“table”)?a.getElementsByTagName(“tbody”)||a.appendChild(a.ownerDocument.createElement(“tbody”)):a}function W(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b==“string”){var d=f.grep(a,function(a){return a.nodeType===1});if(R.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!==“*”?a+“.”:“”)+b.replace(z,“`”).replace(A,“&”)}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=,r=f._data(this,“events”);if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type===“click”)){a.namespace&&(n=new RegExp(“(^|\.)”+a.namespace.split(“.”).join(“\.(?:.*\.)?”)+“(\.|$)”)),a.liveFired=this;var s=r.live.slice(0);for(i=0;i,g.origType.replace(x,“”)===a.type?q.push(g.selector):s.splice(i–,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e;for(i=0;i<s.length;i++){g=s;if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType===“mouseenter”||g.preType===“mouseleave”)a.type=g.preType,d=f(a.relatedTarget).closest(g.selector),d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p;if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d.preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+“defer”,g=c+“queue”,h=c+“mark”,i=f.data(a,e,b,!0);i&&(d===“queue”||!f.data(a,g,b,!0))&&(d===“mark”||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!==“toJSON”)return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e=“data-”+c.replace(j,“$1-$2”).toLowerCase();d=a.getAttribute(e);if(typeof d==“string”){try{d=d===“true”?!0:d===“false”?!1:d===“null”?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll(“left”)}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:*(<[”>wW]+>)*$|#([w-]*)$)/,j=/S/,k=/^s+/,l=/s+$/,m=/d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^,:{}s]*$/,p=/\(?:|u{4})/g,q=/“*”|true|false|null|-?d+(?:.d*)?(?:[+-]?d+)?/g,r=/(?:^|:|,)(?:s*[)+/g,s=/(webkit)[ /]([w.]+)/,t=/(opera)(?:.*version)?[ /]([w.]+)/,u=/(msie) ([w.]+)/,v=/(mozilla)(?:.*? rv:(+))?/,w=/-()/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this=a,this.length=1;return this}if(a===“body”&&!d&&c.body){this.context=c,this=c.body,this.selector=a,this.length=1;return this}if(typeof a==“string”){a.charAt(0)!==“<"||a.charAt(a.length-1)!==">”||a.length<3?g=i.exec(a):g=;if(g&&(g||!d)){if(g){d=d instanceof e?d:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j)],e.fn.attr.call(a,d,!0)):a=[k.createElement(j)]:(j=e.buildFragment([g],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g);if(h&&h.parentNode){if(h.id!==g)return f.find(a);this.length=1,this=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:“”,jquery:“1.6.2”,length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this:this},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b===“find”?d.selector=this.selector+(this.selector?“ ”:“”)+c:b&&(d.selector=this.selector+“.”b“(”c“)”);return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),“slice”,F.call(arguments).join(“,”))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:.splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments||{},j=1,k=arguments.length,l=!1;typeof i==“boolean”&&(l=i,i=arguments||{},j=2),typeof i!=“object”&&!e.isFunction(i)&&(i={}),k===j&&(i=this,–j);for(;j)!=null)for(c in a){d=i,f=a;if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i=e.extend(l,h,f)):f!==b&&(i=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!–e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&–e.readyWait>0)return;A.resolveWith(c,),e.fn.trigger&&e©.trigger(“ready”).unbind(“ready”)}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState===“complete”)return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener(“DOMContentLoaded”,B,!1),a.addEventListener(“load”,e.ready,!1);else if(c.attachEvent){c.attachEvent(“onreadystatechange”,B),a.attachEvent(“onload”,e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)===“function”},isArray:Array.isArray||function(a){return e.type(a)===“array”},isWindow:function(a){return a&&typeof a==“object”&&“setInterval”in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I||“object”},isPlainObject:function(a){if(!a||e.type(a)!==“object”||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,“constructor”)&&!D.call(a.constructor.prototype,“isPrototypeOf”))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=“string”||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,“@”).replace(q,“]”).replace(r,“”)))return(new Function(“return ”+b))();e.error(“Invalid JSON: ”+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,“text/xml”)):(c=new ActiveXObject(“Microsoft.XMLDOM”),c.async=“false”,c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName===“parsererror”)&&e.error(“Invalid XML: ”+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a,d)===!1)break}else for(;g,d)===!1)break}else if(i){for(f in a)if(c.call(a,f,a)===!1)break}else for(;g,g,a)===!1)break;return a},trim:G?function(a){return a==null?“”:G.call(a)}:function(a){return a==null?“”:(a+“”).replace(k,“”).replace(l,“”)},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d===“string”||d===“function”||d===“regexp”||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(H)return H.call(b,a);for(var c=0,d=b.length;c===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length==“number”)for(var f=c.length;e=c;else while(c!==b)a=c;a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f,f),c!==e&&d.push(a);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j==“number”&&(j>0&&a&&a||j===0||e.isArray(a));if(k)for(;i,i,d),f!=null&&(h=f);else for(g in a)f=c(a,g,d),f!=null&&(h=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c==“string”){var d=a;c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c==“object”){for(var j in c)e.access(a,j,c,f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k,c,f?d.call(a,k,g(a,c)):d,h);return a}return i?g(a,c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf(“compatible”)<0&&v.exec(a)||[];return{browser:b||“”,version:b||“0”}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a©;return a},browser:{}}),e.each(“Boolean Number String Function Array Date RegExp Object”.split(“ ”),function(a,b){I[“[object ”b“]”]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(“ ”)&&(k=/^+/,l=/+$/),h=e©,c.addEventListener?B=function(){c.removeEventListener(“DOMContentLoaded”,B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState===“complete”&&(c.detachEvent(“onreadystatechange”,B),e.ready())});return e}(),g=“done fail isResolved isRejected promise then always pipe”.split(“ ”),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g,j=f.type(i),j===“array”?e.done.apply(e,i):j===“function”&&a.push(i);k&&e.resolveWith(k,k)}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a)a.shift().apply(e,f)}finally{b=,c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail©;return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:,fail:},function(a,c){var e=c,g=c,h;f.isFunction(e)?b(function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d(h)}):b(d)})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c–)a[g]=b[g];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function©{b=arguments.length>1?h.call(arguments,0):c,–e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c&&f.isFunction(b.promise)?b.promise().then(i©,g.reject):–e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?:[]);return g.promise()}}),f.support=function(){var a=c.createElement(“div”),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute(“className”,“t”),a.innerHTML=“ <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type=‘checkbox’/>”,d=a.getElementsByTagName(“*”),e=a.getElementsByTagName(“a”);if(!d||!d.length||!e)return{};g=c.createElement(“select”),h=g.appendChild(c.createElement(“option”)),i=a.getElementsByTagName(“input”),k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName(“tbody”).length,htmlSerialize:!!a.getElementsByTagName(“link”).length,style:/top/.test(e.getAttribute(“style”)),hrefNormalized:e.getAttribute(“href”)===“/a”,opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value===“on”,optSelected:h.selected,getSetAttribute:a.className!==“t”,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent(“onclick”,function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent(“onclick”)),i=c.createElement(“input”),i.value=“t”,i.setAttribute(“type”,“radio”),k.radioValue=i.value===“t”,i.setAttribute(“checked”,“checked”),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML=“”,a.style.width=a.style.paddingLeft=“1px”,m=c.getElementsByTagName(“body”),o=c.createElement(m?“div”:“body”),p={visibility:“hidden”,width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:“absolute”,left:-1e3,top:-1e3});for(t in p)o.style=p;o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,“zoom”in a.style&&(a.style.display=“inline”,a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display=“”,a.innerHTML=“<div style='width:4px;'></div>”,k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML=“<table><tr><td style=‘padding:0;border:0;display:none’>t”,q=a.getElementsByTagName(“td”),u=q.offsetHeight===0,q.style.display=“”,q.style.display=“none”,k.reliableHiddenOffsets=u&&q.offsetHeight===0,a.innerHTML=“”,c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement(“div”),j.style.width=“0”,j.style.marginRight=“0”,a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML=“”,n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s=“on”+t,u=s in a,u||(a.setAttribute(s,“return;”),u=typeof a==“function”),k=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:{.*}|[.*])$/,j=/()([A-Z])/g;f.extend({cache:{},uuid:0,expando:“jQuery”+(f.fn.jquery+Math.random()).replace(/D/g,“”),noData:{embed:!0,object:“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”,applet:!0},hasData:function(a){a=a.nodeType?f.cache[a]:a;return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c==“string”,i,j=a.nodeType,k=j?f.cache:a,l=j?a:a&&f.expando;if((!l||e&&l&&!k[g])&&h&&d===b)return;l||(j?a=l=++f.uuid:l=f.expando),k||(k={},j||(k.toJSON=f.noop));if(typeof c==“object”||typeof c==“function”)e?k[g]=f.extend(k[g],c):k=f.extend(k,c);i=k,e&&(i||(i={}),i=i),d!==b&&(i=d);if(c===“events”&&!i)return i&&i.events;return h?i||i:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b:f.expando;if(!h)return;if©{var j=d?h[e]:h;if(j){delete j;if(!l(j))return}}if(d){delete h[e];if(!l(h))return}var k=h[e];f.support.deleteExpando||h!=a?delete h:h=null,k?(h={},g||(h.toJSON=f.noop),h[e]=k):g&&(f.support.deleteExpando?delete b:b.removeAttribute?b.removeAttribute(f.expando):b=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData;if(b)return b!==!0&&a.getAttribute(“classid”)===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a==“undefined”){if(this.length){d=f.data(this);if(this.nodeType===1){var e=this.attributes,g;for(var h=0,i=e.length;h.name,g.indexOf(“data-”)===0&&(g=f.camelCase(g.substring(5)),k(this,g,d))}}return d}if(typeof a==“object”)return this.each(function(){f.data(this,a)});var j=a.split(“.”);j=j?“.”+j:“”;if(c===b){d=this.triggerHandler(“getData”+j+“!”,[j]),d===b&&this.length&&(d=f.data(this,a),d=k(this,a,d));return d===b&&j?this.data(j):d}return this.each(function(){var b=f(this),d=[j,c];b.triggerHandler(“setData”+j+“!”,d),f.data(this,a,c),b.triggerHandler(“changeData”+j+“!”,d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||“fx”)+“mark”,f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if©{d=d||“fx”;var e=d+“mark”,g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,“mark”))}},queue:function(a,c,d){if(a){c=(c||“fx”)+“queue”;var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||“fx”;var c=f.queue(a,b),d=c.shift(),e;d===“inprogress”&&(d=c.shift()),d&&(b===“fx”&&c.unshift(“inprogress”),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+“queue”,!0),m(a,b,“queue”))}}),f.fn.extend({queue:function(a,c){typeof a!=“string”&&(c=a,a=“fx”);if(c===b)return f.queue(this,a);return this.each(function(){var b=f.queue(this,a,c);a===“fx”&&b!==“inprogress”&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds||a:a,b=b||“fx”;return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||“fx”,[])},promise:function(a,c){function m(){–h||d.resolveWith(e,)}typeof a!=“string”&&(c=a,a=b),a=a||“fx”;var d=f.Deferred(),e=this,g=e.length,h=1,i=a+“defer”,j=a+“queue”,k=a+“mark”,l;while(g–)if(l=f.data(e,i,b,!0)||(f.data(e,j,b,!0)||f.data(e,k,b,!0))&&f.data(e,i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=//g,o=/s+/,p=/r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/:|^on/,v,w;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix||a;return this.each(function(){try{this=b,delete this}catch©{}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a==“string”){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this;if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=“ ”e.className“ ”;for(h=0,i=b.length;h<i;h++)~g.indexOf(“ ”+b+“ ”)||(g+=b+“ ”);e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a==“string”||a===b){c=(a||“”).split(o);for(d=0,e=this.length;d<e;d++){g=this;if(g.nodeType===1&&g.className)if(a){h=(“ ”g.className“ ”).replace(n,“ ”);for(i=0,j=c.length;i<j;i++)h=h.replace(“ ”+c+“ ”,“ ”);g.className=f.trim(h)}else g.className=“”}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b==“boolean”;if(f.isFunction(a))return this.each(function©{f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c===“string”){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j)i=d?i:!h.hasClass(e),h(e)}else if(c===“undefined”||c===“boolean”)this.className&&f._data(this,“__className__”,this.className),this.className=this.className||a===!1?“”:f._data(this,“__className__”)||“”})},hasClass:function(a){var b=“ ”a“ ”;for(var c=0,d=this.length;c<d;c++)if((“ ”+this.className+“ ”).replace(n,“ ”).indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this;if(!arguments.length){if(e){c=f.valHooks||f.valHooks;if(c&&“get”in c&&(d=c.get(e,“value”))!==b)return d;d=e.value;return typeof d==“string”?d.replace(p,“”):d==null?“”:d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h=“”:typeof h==“number”?h+=“”:f.isArray(h)&&(h=f.map(h,function(a){return a==null?“”:a+“”})),c=f.valHooks||f.valHooks;if(!c||!(“set”in c)||c.set(this,h,“value”)===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type===“select-one”;if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e;if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute(“disabled”)===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,“optgroup”))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find(“option”).each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:“tabIndex”},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)(d);if(!(“getAttribute”in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix||c,i=f.attrHooks,i||(t.test©?i=w:v&&c!==“className”&&(f.nodeName(a,“form”)||u.test©)&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&“set”in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,“”+d);return d}if(i&&“get”in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute©;return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,“”),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix||b)in a&&(a=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error(“type property can't be changed”);else if(!f.support.radioValue&&b===“radio”&&f.nodeName(a,“input”)){var c=a.value;a.setAttribute(“type”,b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode(“tabIndex”);return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,“button”))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,“button”))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:“tabIndex”,readonly:“readOnly”,“for”:“htmlFor”,“class”:“className”,maxlength:“maxLength”,cellspacing:“cellSpacing”,cellpadding:“cellPadding”,rowspan:“rowSpan”,colspan:“colSpan”,usemap:“useMap”,frameborder:“frameBorder”,contenteditable:“contentEditable”},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix||c,h=f.propHooks);return d!==b?h&&“set”in h&&(g=h.set(a,d,c))!==b?g:a=d:h&&“get”in h&&(g=h.get(a,c))!==b?g:a},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix||c,d in a&&(a=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode©;return d&&d.nodeValue!==“”?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode©;if(d){d.nodeValue=b;return b}}},f.each(,function(a,b){f.attrHooks=f.extend(f.attrHooks,{set:function(a,c){if(c===“”){a.setAttribute(b,“auto”);return c}}})})),f.support.hrefNormalized||f.each(,function(a,c){f.attrHooks=f.extend(f.attrHooks,{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=“”+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(,function(){f.valHooks={get:function(a){return a.getAttribute(“value”)===null?“on”:a.value}}}),f.each(,function(){f.valHooks=f.extend(f.valHooks,{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/./g,A=/ /g,B=//g,C=function(a){return a.replace(B,“\$&”)};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!=“undefined”&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(“ ”);var l,m=0,n;while(l=c){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(“.”)>-1?(n=l.split(“.”),l=n.shift(),h.namespace=n.slice(0).sort().join(“.”)):(n=[],h.namespace=“”),h.type=l,h.guid||(h.guid=d.guid);var o=j,p=f.event.special||{};if(!o){o=j=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent(“on”+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c==“string”&&c.charAt(0)===“.”){c=c||“”;for(h in t)f.event.remove(a,h+c);return}c=c.split(“ ”);while(h=c){r=h,q=null,l=h.indexOf(“.”)<0,m=[],l||(m=h.split(“.”),h=m.shift(),n=new RegExp(“(^|\.)”+f.map(m.slice(0).sort(),C).join(“\.(?:.*\.)?”)+“(\.|$)”)),p=t;if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p;if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j–,1)}continue}o=f.event.special||{};for(j=e||0;j<p.length;j++){q=p;if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j–,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf(“!”)>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(“.”)>=0&&(i=h.split(“.”),h=i. shift(),i.sort());if(!!e&&!f.event.customEvent||!!f.event.global){c=typeof c==“object”?c?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join(“.”),c.namespace_re=new RegExp(“(^|\.)”+i.join(“\.(?:.*\.)?”)+“(\.|$)”);if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this;b&&b.events&&b.events&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift©;var k=e,l=h.indexOf(“:”)<0?“on”+h:“”;do{var m=f._data(k,“handle”);c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k&&k.apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!==“click”||!f.nodeName(e,“a”))&&f.acceptData(e)){try{l&&e&&(n=e,n&&(e=null),f.event.triggered=h,e())}catch(p){}n&&(e=n),f.event.triggered=b}}return c.result}},handle:function©{c=f.event.fix(c||a.event);var d=((f._data(this,“events”)||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d;if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:“altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which”.split(“ ”),fix:function(a){if(a)return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props,a=d;a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,N(a.origType,a.selector),f.extend({},a,{handler:M,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,N(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent(“on”+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?E:D):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E,this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var F=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},G=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:“mouseover”,mouseleave:“mouseout”},function(a,b){f.event.special={setup:function©{f.event.add(this,b,c&&c.selector?G:F,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?G:F)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,“form”))f.event.add(this,“click.specialSubmit”,function(a){var b=a.target,c=b.type;(c===“submit”||c===“image”)&&f(b).closest(“form”).length&&K(“submit”,this,arguments)}),f.event.add(this,“keypress.specialSubmit”,function(a){var b=a.target,c=b.type;(c===“text”||c===“password”)&&f(b).closest(“form”).length&&a.keyCode===13&&K(“submit”,this,arguments)});else return!1},teardown:function(a){f.event.remove(this,“.specialSubmit”)}});if(!f.support.changeBubbles){var H,I=function(a){var b=a.type,c=a.value;b===“radio”||b===“checkbox”?c=a.checked:b===“select-multiple”?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join(“-”):“”:f.nodeName(a,“select”)&&(c=a.selectedIndex);return c},J=function©{var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,“_change_data”),g=I(d),(c.type!==“focusout”||d.type!==“radio”)&&f._data(d,“_change_data”,g);if(e===b||g===e)return;if(e!=null||g)c.type=“change”,c.liveFired=b,f.event.trigger(c,arguments,d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,“input”)?b.type:“”;(c===“radio”||c===“checkbox”||f.nodeName(b,“select”))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,“input”)?b.type:“”;(a.keyCode===13&&!f.nodeName(b,“textarea”)||a.keyCode===32&&(c===“checkbox”||c===“radio”)||c===“select-multiple”)&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,“_change_data”,I(b))}},setup:function(a,b){if(this.type===“file”)return!1;for(var c in H)f.event.add(this,c+“.specialChange”,H);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,“.specialChange”);return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:“focusin”,blur:“focusout”},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){–d===0&&c.removeEventListener(a,e,!0)}}}),f.each(,function(a,c){f.fn=function(a,d,e){var g;if(typeof a==“object”){for(var h in a)this(h,d,a,e);return this}if(arguments.length===2||d===!1)e=d,d=b;c===“one”?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a===“unload”&&c!==“one”)this.one(a,d,e);else for(var i=0,j=this.length;i,a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a==“object”&&!a.preventDefault)for(var c in a)this.unbind(c,a);else for(var d=0,e=this.length;d,a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind(“live”):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this)return f.event.trigger(a,b,this,!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function©{var e=(f.data(this,“lastToggle”+a.guid)||0)%d;f.data(this,“lastToggle”+a.guid,e+1),c.preventDefault();return b.apply(this,arguments)||!1};e.guid=c;while(d.guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var L={focus:“focusin”,blur:“focusout”,mouseenter:“mouseover”,mouseleave:“mouseout”};f.each(,function(a,c){f.fn=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a==“object”&&!a.preventDefault){for(var o in a)n(o,d,a,m);return this}if(c===“die”&&!a&&g&&g.charAt(0)===“.”){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||D,d=b;a=(a||“”).split(“ ”);while((h=a)!=null){j=x.exec(h),k=“”,j&&(k=j,h=h.replace(x,“”));if(h===“hover”){a.push(“mouseenter”+k,“mouseleave”+k);continue}l=h,L?(a.push(L+k),h=h+k):h=(L||h)+k;if(c===“live”)for(var p=0,q=n.length;p,“live.”+N(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind(“live.”+N(h,m),e)}return this}}),f.each(“blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error”.split(“ ”),function(a,b){f.fn=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d;if(i){var j=!1;i=i;while(i){if(i.sizcache===c){j=d;break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!=“string”){if(i===b){j=!0;break}}else if(k.filter(b,).length>0){j=i;break}}i=i}d=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d;if(i){var j=!1;i=i;while(i){if(i.sizcache===c){j=d;break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i}d=j}}}var a=/((?:((?:(+)|[^()]+)+)|[(?:[[^[]]*]|['“][^'”]*['“]|[^[]'”]+)+]|\.|[^ >+~,([\]+)+|[>+~])(s*,s*)?((?:.|r|n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\/g,j=/W/;.sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=“string”)return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(“”),i=a.exec(y);if(i){y=i,x.push(i);if(i){o=i;break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x])j=v(x+x,d);else{j=l.relative[x]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x)&&!l.match.ID.test(x)&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set):q.set);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x===“~”||x===“+”)&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative?s=x.pop():r=“”,s==null&&(s=d),l.relative(n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)===“[object Array]”)if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n!=null;t++)n&&(n===!0||n.nodeType===1&&k.contains(d,n))&&f.push(j);else for(t=0;n!=null;t++)n&&n.nodeType===1&&f.push(j);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if®{g=h,a.sort®;if(g)for(var b=1;b===a&&a.splice(b–,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order;if(g=l.leftMatch.exec(a)){var j=g;g.splice(1,1);if(j.substr(j.length-1)!==“\”){g=(g||“”).replace(i,“”),d=l.find(g,b,c);if(d!=null){a=a.replace(l.match,“”);break}}}}d||(d=typeof b.getElementsByTagName!=“undefined”?b.getElementsByTagName(“*”):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c&&k.isXML(c);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch.exec(a))!=null&&f){var o,p,q=l.filter,r=f;g=!1,f.splice(1,1);if(r.substr(r.length-1)===“\”)continue;j===i&&(i=[]);if(l.preFilter){f=l.preFilter(f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j)!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match,“”);if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw“Syntax error, unrecognized expression: ”+a};var l=k.selectors={order:,match:{ID:/#((?:|\.)+)/,CLASS:/.((?:|\.)+)/,NAME:/[name=*((?:[wu00c0-uFFFF-]|\.)+)*]/,ATTR:/[s*((?:|\.)+)s*(?:(S?=)s*(?:()(.*?)3|(#?(?:|\.)*)|)|)s*]/,TAG:/^((?:|\.)+)/,CHILD:/:(only|nth|last|first)-child(?:(s*(even|odd|(?:?d+|(?:?d*)?ns*(?:s*d+)?))s*))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:((d*)))?(?=|$)/,PSEUDO:/:((?:|\.)+)(?:((['“]?)((?:([^)]+)|[^()]*)+)2))?/},leftMatch:{},attrMap:{”class“:”className“,”for“:”htmlFor“},attrHandle:{href:function(a){return a.getAttribute(”href“)},type:function(a){return a.getAttribute(”type“)}},relative:{”+“:function(a,b){var c=typeof b==”string“,d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f){while((h=h.previousSibling)&&h.nodeType!==1);a=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},”>“:function(a,b){var c,d=typeof b==”string“,e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a;if©{var g=c.parentNode;a=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e,c&&(a=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},”“:function(a,b,c){var e,f=d++,g=u;typeof b==”string“&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g(”parentNode“,b,f,a,e,c)},”~“:function(a,b,c){var e,f=d++,g=u;typeof b==”string“&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g(”previousSibling“,b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=”undefined“&&!c){var d=b.getElementById(a);return d&&d.parentNode?:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=”undefined“){var c=[],d=b.getElementsByName(a);for(var e=0,f=d.length;e.getAttribute(”name“)===a&&c.push(d);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=”undefined“)return b.getElementsByTagName(a)}},preFilter:{CLASS:function(a,b,c,d,e,f){a=” “+a.replace(i,”“)+” “;if(f)return a;for(var g=0,h;(h=b)!=null;g++)h&&(e^(h.className&&(” “h.className” “).replace(//g,” “).indexOf(a)>=0)?c||d.push(h):c&&(b=!1));return!1},ID:function(a){return a.replace(i,”“)},TAG:function(a,b){return a.replace(i,”“).toLowerCase()},CHILD:function(a){if(a===”nth“){a||k.error(a),a=a.replace(/^+|s*/g,”“);var b=/(-?)(d*)(?:n(?d*))?/.exec(a===”even“&&”2n“||a===”odd“&&”2n+1“||!/D/.test(a)&&”0n+“+a||a);a=b+(b||1)-0,a=b-0}else a&&k.error(a);a=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a=a.replace(i,”“);!f&&l.attrMap&&(a=l.attrMap),a=(a||a||”“).replace(i,”“),a===”~=“&&(a=” “+a+” “);return a},PSEUDO:function(b,c,d,e,f){if(b===”not“)if((a.exec(b)||”“).length>1||/^w/.test(b))b=k(b,null,null,c);else{var g=k.filter(b,c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b)||l.match.CHILD.test(b))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!==”hidden“},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c,a).length},header:function(a){return/hd/i.test(a.nodeName)},text:function(a){var b=a.getAttribute(”type“),c=a.type;return a.nodeName.toLowerCase()===”input“&&”text“===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()===”input“&&”radio“===a.type},checkbox:function(a){return a.nodeName.toLowerCase()===”input“&&”checkbox“===a.type},file:function(a){return a.nodeName.toLowerCase()===”input“&&”file“===a.type},password:function(a){return a.nodeName.toLowerCase()===”input“&&”password“===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b===”input“||b===”button“)&&”submit“===a.type},image:function(a){return a.nodeName.toLowerCase()===”input“&&”image“===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b===”input“||b===”button“)&&”reset“===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b===”input“&&”button“===a.type||b===”button“},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b-0},gt:function(a,b,c){return b>c-0},nth:function(a,b,c){return c-0===b},eq:function(a,b,c){return c-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b,f=l.filters;if(f)return f(a,c,b,d);if(e===”contains“)return(a.textContent||a.innerText||k.getText()||”“).indexOf(b)>=0;if(e===”not“){var g=b;for(var h=0,i=g.length;h===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b,d=a;switch©{case”only“:case”first“:while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c===”first“)return!0;d=a;case”last“:while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case”nth“:var e=b,f=b;if(e===1&&f===0)return!0;var g=b,h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute(”id“)===b},TAG:function(a,b){return b===”*“&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(” “+(a.className||a.getAttribute(”class“))+” “).indexOf(b)>-1},ATTR:function(a,b){var c=b,d=l.attrHandle?l.attrHandle(a):a!=null?a:a.getAttribute©,e=d+”“,f=b,g=b;return d==null?f===”!=“:f===”=“?e===g:f===”*=“?e.indexOf(g)>=0:f===”~=“?(” “e” “).indexOf(g)>=0:g?f===”!=“?e!==g:f===”^=“?e.indexOf(g)===0:f===”$=“?e.substr(e.length-g.length)===g:f===”|=“?e===g||e.substr(0,g.length+1)===g+”-“:!1:e&&d!==!1},POS:function(a,b,c,d){var e=b,f=l.setFilters;if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return”\“+(b-0+1)};for(var o in l.match)l.match=new RegExp(l.match.source+/(?![^*])(?![^(]*))/.source),l.leftMatch=new RegExp(/(^(?:.|r|n)*?)/.source+l.match.source.replace(/\(d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0).nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)===”[object Array]“)Array.prototype.push.apply(d,a);else if(typeof a.length==”number“)for(var f=a.length;c);else for(;a;c++)d.push(a);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=,h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k!==f)return s(e,f);return k===c?s(a,f,-1):s(e,b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b=”“,c;for(var d=0;a;d++)c=a,c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement(”div“),d=”script“+(new Date).getTime(),e=c.documentElement;a.innerHTML=”<a name='“d”'/>“,e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=”undefined“&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!=”undefined“&&e.getAttributeNode(”id“).nodeValue===a?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=”undefined“&&a.getAttributeNode(”id“);return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement(”div“);a.appendChild(c.createComment(”“)),a.getElementsByTagName(”*“).length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a);if(a===”*“){var d=[];for(var e=0;c;e++)c.nodeType===1&&d.push(c);c=d}return c}),a.innerHTML=”<a href='#'></a>“,a.firstChild&&typeof a.firstChild.getAttribute!=”undefined“&&a.firstChild.getAttribute(”href“)!==”#“&&(l.attrHandle.href=function(a){return a.getAttribute(”href“,2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement(”div“),d=”__sizzle__“;b.innerHTML=”<p class='TEST'></p>“;if(!b.querySelectorAll||b.querySelectorAll(”.TEST“).length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(w+$)|^.(+$)|^#([w-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h)return p(e.getElementsByTagName(b),f);if(h&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h),f)}if(e.nodeType===9){if(b===”body“&&e.body)return p(,f);if(h&&h){var i=e.getElementById(h);if(!i||!i.parentNode)return p([],f);if(i.id===h)return p(,f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!==”object“){var m=e,n=e.getAttribute(”id“),o=n||d,q=e.parentNode,r=/^s*/.test(b);n?o=o.replace(/'/g,”\$&“):e.setAttribute(”id“,o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll(” “+b),f)}catch(s){}finally{n||m.removeAttribute(”id“)}}}return a(b,e,f,g)};for(var e in a)k=a;b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement(”div“),”div“),e=!1;try{b.call(c.documentElement,”:sizzle“)}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/=s*(]*)s*]/g,”='$1']“);if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test©&&!/!=/.test©){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,).length>0}}}(),function(){var a=c.createElement(”div“);a.innerHTML=”<div class='test e'></div><div class='test'></div>“;if(!!a.getElementsByClassName&&a.getElementsByClassName(”e“).length!==0){a.lastChild.className=”e“;if(a.getElementsByClassName(”e“).length===1)return;l.order.splice(1,0,”CLASS“),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=”undefined“&&!c)return b.getElementsByClassName(a)},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!==”HTML“:!1};var v=function(a,b){var c,d=[],e=”“,f=b.nodeType?:b;while(c=l.match.PSEUDO.exec(a))e+=c,a=a.replace(l.match.PSEUDO,”“);a=l.relative?a+”*“:a;for(var g=0,h=f.length;g,d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var O=/Until$/,P=/^(?:parents|prevUntil|prevAll)/,Q=/,/,R=/^.[^:#*$/,S=Array.prototype.slice,T=f.expr.match.POS,U={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!=”string“)return f(a).filter(function(){for(c=0,d=b.length;c,this))return!0});var e=this.pushStack(”“,”find“,a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this,e);if(c>0)for(h=g;h===e){e.splice(h–,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a))return!0})},not:function(a){return this.pushStack(W(this,a,!1),”not“,a)},filter:function(a){return this.pushStack(W(this,a,!0),”filter“,a)},is:function(a){return!!a&&(typeof a==”string“?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this;if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d,j||(j=T.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j,(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!=”string“?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this;while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique©:c;return this.pushStack(c,”closest“,a)},index:function(a){if(!a||typeof a==”string“)return f.inArray(this,a?f(a):this.parent().children());return f.inArray(a.jquery?a:a,this)},add:function(a,b){var c=typeof a==”string“?f(a,b):f.makeArray(a&&a.nodeType?:a),d=f.merge(this.get(),c);return this.pushStack(V(c)||V(d)?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,”parentNode“)},parentsUntil:function(a,b,c){return f.dir(a,”parentNode“,c)},next:function(a){return f.nth(a,2,”nextSibling“)},prev:function(a){return f.nth(a,2,”previousSibling“)},nextAll:function(a){return f.dir(a,”nextSibling“)},prevAll:function(a){return f.dir(a,”previousSibling“)},nextUntil:function(a,b,c){return f.dir(a,”nextSibling“,c)},prevUntil:function(a,b,c){return f.dir(a,”previousSibling“,c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,”iframe“)?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d==”string“&&(e=f.filter(d,e)),e=this.length>1&&!U?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(”,“))}}),f.extend({filter:function(a,b,c){c&&(a=”:not(“a”)“);return b.length===1?f.find.matchesSelector(b,a)?[b]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a;while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g;return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a)if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQueryd+=”(?:d+|null)“/g,Y=/^s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)((+)[^>]*)/>/ig,$=/<(+)/,_=/|=s*.checked.)/i,bd=//(java|ecma)script/i,be=/^s*<!(?:[CDATA[|--)/,bf={option:[1,”<select “,”“”>multiple=‘multiple’>“,”“],legend:,”,“”“>thead:,”,“”“>tr:,”,“”“>td:,”,“”“>col:,”,“”“>area:,_default:};”,“”“>bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!=”object“&&a!==b)return this.empty().append((this&&this.ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this){var b=f(a,this.ownerDocument).eq(0).clone(!0);this.parentNode&&b.insertBefore(this),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,”body“)||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this&&this.parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,”before“,arguments)}},after:function(){if(this&&this.parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,”after“,arguments);a.push.apply(a,f(arguments).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this)!=null;c++)if(!a||f.filter(a,).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName(”*“)),f.cleanData()),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this)!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName(”*“));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this&&this.nodeType===1?this.innerHTML.replace(X,”“):null;if(typeof a==”string“&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||)[1].toLowerCase()]){a=a.replace(Z,”<$1></$2>“);try{for(var c=0,d=this.length;c.nodeType===1&&(f.cleanData(this.getElementsByTagName(”*“)),this.innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this&&this.parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!=”string“&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f©.append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),”replaceWith“,a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a,k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j==”string“&&bc.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,”tr“);for(var l=0,m=this.length,n=m-1;l,g):this,e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bm)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b&&(i=b.ownerDocument||b),i.createDocumentFragment||(i=c),a.length===1&&typeof a==”string“&&a.length<512&&i===c&&a.charAt(0)===”<"&&!bb.test(a)&&(f.support.checkClone||!bc.test(a))&&(g=!0,h=f.fragments[a],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:“append”,prependTo:“prepend”,insertBefore:“before”,insertAfter:“after”,replaceAll:“replaceWith”},function(a,b){f.fn=function©{var d=[],e=f©,g=this.length===1&&this.parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e(this);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e)[b](j),d=d.concat(j )}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e;++h)bi(e,g)}if(b){bh(a,d);if©{e=bj(a),g=bj(d);for(h=0;e;++h)bh(e,g)}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement==“undefined”&&(b=b.ownerDocument||b&&b.ownerDocument||c);var h=[],i;for(var j=0,k;(k=a)!=null;j++){typeof k==“number”&&(k+=“”);if(!k)continue;if(typeof k==“string”)if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,“<$1></$2>”);var l=($.exec(k)||)[1].toLowerCase(),m=bf||bf._default,n=m,o=b.createElement(“div”);o.innerHTML=m+k+m;while(n–)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l===“table”&&!p?o.firstChild&&o.firstChild.childNodes:m===“<table>”&&!p?o.childNodes:[];for(i=q.length-1;i>=0;–i)f.nodeName(q,“tbody”)&&!q.childNodes.length&&q.parentNode.removeChild(q)}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k&&typeof (r=k.length)==“number”)for(i=0;i);else bl(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bd.test(a.type)};for(j=0;h;j++)if(e&&f.nodeName(h,“script”)&&(!h.type||h.type.toLowerCase()===“text/javascript”))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var s=f.grep(h.getElementsByTagName(“script”),g);h.splice.apply(h,.concat(s))}d.appendChild(h)}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a)!=null;i++){if(j.nodeName&&f.noData)continue;c=j;if©{b=d&&d[e];if(b&&b.events){for(var k in b.events)g?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j:j.removeAttribute&&j.removeAttribute(f.expando),delete d}}}});var bn=/alpha(*)/i,bo=/opacity=(*)/,bp=/(|^ms)/g,bq=/^-?d+(?:px)?$/i,br=/^-?d/,bs=/^=/,bt=/+/g,bu={position:“absolute”,visibility:“hidden”,display:“block”},bv=,bw=,bx,by,bz;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bx(a,“opacity”,“opacity”);return c===“”?“1”:c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{“float”:f.support.cssFloat?“cssFloat”:“styleFloat”},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase©,j=a.style,k=f.cssHooks;c=f.cssProps||i;if(d===b){if(k&&“get”in k&&(g=k.get(a,!1,e))!==b)return g;return j}h=typeof d;if(h===“number”&&isNaN(d)||d==null)return;h===“string”&&bs.test(d)&&(d=+d.replace(bt,“”)+parseFloat(f.css(a,c)),h=“number”),h===“number”&&!f.cssNumber&&(d+=“px”);if(!k||!(“set”in k)||(d=k.set(a,d))!==b)try{j=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase©,g=f.cssHooks,c=f.cssProps||c,c===“cssFloat”&&(c=“float”);if(g&&“get”in g&&(e=g.get(a,!0,d))!==b)return e;if(bx)return bx(a,c)},swap:function(a,b,c){var d={};for(var e in b)d=a.style,a.style=b;c.call(a);for(e in b)a.style=d}}),f.curCSS=f.css,f.each(,function(a,b){f.cssHooks={get:function(a,c,d){var e;if©{if(a.offsetWidth!==0)return bA(a,b,d);f.swap(a,bu,function(){e=bA(a,b,d)});return e}},set:function(a,b){if(!bq.test(b))return b;b=parseFloat(b);if(b>=0)return b+“px”}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||“”)?parseFloat(RegExp.$1)/100+“”:b?“1”:“”},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?“”:“alpha(opacity=”+b*100+“)”,g=d&&d.filter||c.filter||“”;c.filter=bn.test(g)?g.replace(bn,e):g+“ ”+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:“inline-block”},function(){b?c=bx(a,“margin-right”,“marginRight”):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,“-$1”).toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue©,d===“”&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle,e=a.runtimeStyle&&a.runtimeStyle,f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b===“fontSize”?“1em”:d||0,d=f.pixelLeft+“px”,f.left=c,e&&(a.runtimeStyle.left=e));return d===“”?“auto”:d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,“display”))===“none”},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/$/,bD=/r?n/g,bE=/#.*$/,bF=/^(.*?):[ t]*([^rn]*)r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app-storage|.+-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^///,bK=/?/,bL=/*(?:(?!</script>)<*)*</script>/gi,bM=/^(?:select|textarea)/i,bN=/s+/,bO=/()_=*/,bP=/^(+:)(?://([^/?#:]*)(?::(d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement(”a“),bT.href=”“,bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!=”string“&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(” “);if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h=”GET“;c&&(f.isFunction©?(d=c,c=b):typeof c==”object“&&(c=f.param(c,f.ajaxSettings.traditional),h=”POST“));var i=this;f.ajax({url:a,type:h,dataType:”html“,data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f(”

“).append(c.replace(bL,”“)).find(g):c)),d&&i.each(d,)}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray©?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,”rn“)}}):{name:b.name,value:c.replace(bD,”rn“)}}).get()}}),f.each(”ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend“.split(” “),function(a,b){f.fn=function(a){return this.bind(b,a)}}),f.each(,function(a,c){f=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,”script“)},getJSON:function(a,b,c){return f.get(a,b,c,”json“)},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a=b:c in f.ajaxSettings&&(a=f.ajaxSettings);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU),global:!0,type:”GET“,contentType:”application/x-www-form-urlencoded“,processData:!0,async:!0,accepts:{xml:”application/xml, text/xml“,html:”text/html“,text:”text/plain“,json:”application/json, text/javascript“,”*“:”/“},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:”responseXML“,text:”responseText“},converters:{”* text“:a.String,”text html“:!0,”text json“:f.parseJSON,”text xml“:f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||”“,v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader(”Last-Modified“))f.lastModified=x;if(y=v.getResponseHeader(”Etag“))f.etag=y}if(a===304)c=”notmodified“,o=!0;else try{r=b$(d,w),c=”success“,o=!0}catch(z){c=”parsererror“,u=z}}else{u=c;if(!c||a)c=”error“,a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,):h.rejectWith(e,),v.statusCode(j),j=b,t&&g.trigger(”ajax“+(o?”Success“:”Error“),),i.resolveWith(e,),t&&(g.trigger(”ajaxComplete“,),–f.active||f.event.trigger(”ajaxStop“))}}typeof a==”object“&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m=m||a,l=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c.toLowerCase()]=c}c=o}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||”abort“,p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j=[j,a];else b=a,v.then(b,b)}return this},d.url=((a||d.url)+”“).replace(bE,”“).replace(bJ,bU+”//“),d.dataTypes=f.trim(d.dataType||”*“).toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r==bU&&r==bU&&(r||(r===”“?80:443))==(bU[3]||(bU[1]===”http:“?80:443)))),d.data&&d.processData&&typeof d.data!=”string“&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger(”ajaxStart“);if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?”&“:”?“)+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,”$1_=“+x);d.url=y+(y===d.url?(bK.test(d.url)?”&“:”?“)+”_=“+x:”“)}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader(”Content-Type“,d.contentType),d.ifModified&&(k=k||d.url,f.lastModified&&v.setRequestHeader(”If-Modified-Since“,f.lastModified),f.etag&&v.setRequestHeader(”If-None-Match“,f.etag)),v.setRequestHeader(”Accept“,d.dataTypes&&d.accepts[d.dataTypes]?d.accepts[d.dataTypes]+(d.dataTypes!==”*“?”, /; q=0.01“:”“):d.accepts);for(u in d.headers)v.setRequestHeader(u,d.headers);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v(d);p=bX(bS,d,c,v);if(!p)w(-1,”No Transport“);else{v.readyState=1,t&&g.trigger(”ajaxSend“,),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort(”timeout“)},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d=encodeURIComponent(a)+”=“+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a,c,e);return d.join(”&“).replace(bB,”+“)}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(=)?(&|$)|??/i;f.ajaxSetup({jsonp:”callback“,jsonpCallback:function(){return f.expando+”_“b_+}}),f.ajaxPrefilter(”json jsonp“,function(b,c,d){var e=b.contentType===”application/x-www-form-urlencoded“&&typeof b.data==”string“;if(b.dataTypes===”jsonp“||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a,j=b.url,k=b.data,l=”$1“h”$2“;b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/?/.test(j)?”&“:”?“)b.jsonp”=“+h))),b.url=j,b.data=k,a=function(a){g=},d.always(function(){a=i,g&&f.isFunction(i)&&a(g)}),b.converters[”script json“]=function(){g||f.error(h+” was not called“);return g},b.dataTypes=”json“;return”script“}}),f.ajaxSetup({accepts:{script:”text/javascript, application/javascript, application/ecmascript, application/x-ecmascript“},contents:{script:/javascript|ecmascript/},converters:{”text script“:function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter(”script“,function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type=”GET“,a.global=!1)}),f.ajaxTransport(”script“,function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName(”head“)||c.documentElement;return{send:function(f,g){d=c.createElement(”script“),d.async=”async“,a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,”success“)},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd(0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&”withCredentials“in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function©{if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h=c.xhrFields;c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e&&(e=”XMLHttpRequest“);try{for(j in e)h.setRequestHeader(j,e)}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=”“}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^(=)?([d+.-]+)(*)$/i,cl,cm=[,[”width“,”marginLeft“,”marginRight“,”paddingLeft“,”paddingRight“],],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr(”show“,3),a,b,c);for(var g=0,h=this.length;g,d.style&&(e=d.style.display,!f._data(d,”olddisplay“)&&e===”none“&&(e=d.style.display=”“),e===”“&&f.css(d,”display“)===”none“&&f._data(d,”olddisplay“,cs(d.nodeName)));for(g=0;g<h;g++){d=this;if(d.style){e=d.style.display;if(e===”“||e===”none“)d.style.display=f._data(d,”olddisplay“)||”“}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cr(”hide“,3),a,b,c);for(var d=0,e=this.length;d.style){var g=f.css(this,”display“);g!==”none“&&!f._data(this,”olddisplay“)&&f._data(this,”olddisplay“,g)}for(d=0;d.style&&(this.style.display=”none“);return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a==”boolean“;f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(”:hidden“);f(this)()}):this.animate(cr(”toggle“,3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(”:hidden“).css(”opacity“,0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,);a=f.extend({},a);return this(function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(”:hidden“),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a=a,delete a),h=a,f.isArray(h)?(b.animatedProperties=h,h=a=h):b.animatedProperties=b.specialEasing&&b.specialEasing||b.easing||”swing“;if(h===”hide“&&d||h===”show“&&!d)return b.complete.call(this);c&&(g===”height“||g===”width“)&&(b.overflow=,f.css(this,”display“)===”inline“&&f.css(this,”float“)===”none“&&(f.support.inlineBlockNeedsLayout?(j=cs(this.nodeName),j===”inline“?this.style.display=”inline-block“:(this.style.display=”inline“,this.style.zoom=1)):this.style.display=”inline-block“))}b.overflow!=null&&(this.style.overflow=”hidden“);for(i in a)k=new f.fx(this,b,i),h=a,cj.test(h)?k():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l),o=l||(f.cssNumber?”“:”px“),o!==”px“&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l&&(n=(l===”-=“?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,”“));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c–)a.elem===this&&(b&&a(!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cr(”show“,1),slideUp:cr(”hide“,1),slideToggle:cr(”toggle“,1),fadeIn:{opacity:”show“},fadeOut:{opacity:”hide“},fadeToggle:{opacity:”toggle“}},function(a,b){f.fn=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a==”object“?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration==”number“?d.duration:d.duration in f.fx.speeds?f.fx.speeds:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step||f.fx.step._default)(this)},cur:function(){if(this.elem!=null&&(!this.elem.style||this.elem.style==null))return this.elem;var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b===”auto“?0:b:a},custom:function(a,b,c){function h(a){return d.step(a)}var d=this,e=f.fx,g;this.startTime=cn||cp(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber?”“:”px“),this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&f.timers.push(h)&&!cl&&(co?(cl=!0,g=function(){cl&&(co(g),e.tick())},co(g)):cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop===”width“||this.prop===”height“?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||cp(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties=!0;for(g in e.animatedProperties)e.animatedProperties!==!0&&(c=!1);if©{e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(,function(a,b){d.style=e.overflow}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b()||a.splice(b–,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,”opacity“,a.now)},_default:function(a){a.elem.style&&a.elem.style!=null?a.elem.style=(a.prop===”width“||a.prop===”height“?Math.max(0,a.now):a.now)+a.unit:a.elem=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var ct=/^t(?:able|d|h)$/i,cu=/^(?:body|html)$/i;”getBoundingClientRect“in c.documentElement?f.fn.offset=function(a){var b=this,c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cv(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position===”fixed“)break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!ct.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!==”visible“&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position===”relative“||k.position===”static“)l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position===”fixed“&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement(”div“),d,e,g,h,i=parseFloat(f.css(a,”marginTop“))||0,j=”<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>“;f.extend(b.style,{position:”absolute“,top:0,left:0,margin:0,border:0,width:”1px“,height:”1px“,visibility:”hidden“}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position=”fixed“,e.style.top=”20px“,this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top=”“,d.style.overflow=”hidden“,d.style.position=”relative“,this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,”marginTop“))||0,c+=parseFloat(f.css(a,”marginLeft“))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,”position“);d===”static“&&(a.style.position=”relative“);var e=f(a),g=e.offset(),h=f.css(a,”top“),i=f.css(a,”left“),j=(d===”absolute“||d===”fixed“)&&f.inArray(”auto“,)>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),”using“in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this)return null;var a=this,b=this.offsetParent(),c=this.offset(),d=cu.test(b.nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,”marginTop“))||0,c.left-=parseFloat(f.css(a,”marginLeft“))||0,d.top+=parseFloat(f.css(b,”borderTopWidth“))||0,d.left+=parseFloat(f.css(b,”borderLeftWidth“))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,”position“)===”static“)a=a.offsetParent;return a})}}),f.each(,function(a,c){var d=”scroll“+c;f.fn=function©{var e,g;if(c===b){e=this;if(!e)return null;g=cv(e);return g?”pageXOffset“in g?g:f.support.boxModel&&g.document.documentElement||g.document.body:e}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this=c})}}),f.each(,function(a,c){var d=c.toLowerCase();f.fn=function(){var a=this;return a&&a.style?parseFloat(f.css(a,d,”padding“)):null},f.fn=function(a){var b=this;return b&&b.style?parseFloat(f.css(b,d,a?”margin“:”border“)):null},f.fn=function(a){var e=this;if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c(a.call(this,b,c()))});if(f.isWindow(e)){var g=e.document.documentElement;return e.document.compatMode===”CSS1Compat“&&g||e.document.body||g}if(e.nodeType===9)return Math.max(e.documentElement,e.body,e.documentElement,e.body,e.documentElement);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a==”string“?a:a+”px“)}}),a.jQuery=a.$=f})(window); var hljs=new function(){function l(o){return o.replace(/&/gm,”&amp;“).replace(/</gm,”&lt;“)}function c(q,p,o){return RegExp(p,”m“+(q.cI?”i“:”“)+(o?”g“:”“))}function i(q){for(var o=0;o<q.childNodes.length;o++){var p=q.childNodes;if(p.nodeName==”CODE“){return p}if(!(p.nodeType==3&&p.nodeValue.match(/s+/))){break}}}function g(s,r){var q=”“;for(var p=0;p<s.childNodes.length;p++){if(s.childNodes.nodeType==3){var o=s.childNodes.nodeValue;if®{o=o.replace(/n/g,”“)}q+=o}else{if(s.childNodes.nodeName==”BR“){q+=”n“}else{q+=g(s.childNodes)}}}if(/MSIE [678]/.test(navigator.userAgent)){q=q.replace(/r/g,”n“)}return q}function a®{var p=r.className.split(/s+/);p=p.concat(r.parentNode.className.split(/s+/));for(var o=0;o<p.length;o++){var q=p.replace(/^language-/,”“);if(d||q==”no-highlight“){return q}}}function b(o){var p=[];(function(r,s){for(var q=0;q<r.childNodes.length;q++){if(r.childNodes.nodeType==3){s+=r.childNodes.nodeValue.length}else{if(r.childNodes.nodeName==”BR“){s+=1}else{p.push({event:”start“,offset:s,node:r.childNodes});s=arguments.callee(r.childNodes,s);p.push({event:”stop“,offset:s,node:r.childNodes})}}}return s})(o,0);return p}function k(x,y,w){var q=0;var v=”“;var s=[];function t(){if(x.length&&y.length){if(x.offset!=y.offset){return(x.offset.offset)?x:y}else{return y.event==”start“?x:y}}else{return x.length?x:y}}function r(B){var C=”<“+B.nodeName.toLowerCase();for(var z=0;z<B.attributes.length;z++){var A=B.attributes;C+=” “+A.nodeName.toLowerCase();if(A.nodeValue!=undefined){C+='=”'+l(A.nodeValue)+'“'}}return C+”>“}while(x.length||y.length){var u=t().splice(0,1);v+=l(w.substr(q,u.offset-q));q=u.offset;if(u.event==”start“){v+=r(u.node);s.push(u.node)}else{if(u.event==”stop“){var p=s.length;do{p–;var o=s;v+=(”</“+o.nodeName.toLowerCase()+”>“)}while(o!=u.node);s.splice(p,1);while(p<s.length){v+=r(s);p++}}}}v+=w.substr(q);return v}function f(I,C){function y(r,L){for(var K=0;K<L.c.length;K++){if(L.c.bR.test®){return L.c}}}function v(K,r){if(B.e&&B.eR.test®){return 1}if(B.eW){var L=v(K-1,r);return L?L+1:0}return 0}function w(r,K){return K.iR&&K.iR.test®}function z(N,M){var L=[];for(var K=0;K<N.c.length;K++){L.push(N.c.b)}var r=B.length-1;do{if(B.e){L.push(B.e)}r–}while(B.eW);if(N.i){L.push(N.i)}return c(M,”(“+L.join(”|“)+”)“,true)}function q(L,K){var M=B;if(!M.t){M.t=z(M,G)}M.t.lastIndex=K;var r=M.t.exec(L);if®{return[L.substr(K,r.index-K),r,false]}else{return}}function o(N,r){var K=G.cI?r.toLowerCase():r;for(var M in N.kG){if(!N.kG.hasOwnProperty(M)){continue}var L=N.kG.hasOwnProperty(K);if(L){return}}return false}function E(L,N){if(!N.k){return l(L)}var M=”“;var O=0;N.lR.lastIndex=0;var K=N.lR.exec(L);while(K){M+=l(L.substr(O,K.index-O));var r=o(N,K);if®{s+=r;M+='<span class=”‘+r+'“>'+l(K)+”</span>“}else{M+=l(K)}O=N.lR.lastIndex;K=N.lR.exec(L)}M+=l(L.substr(O,L.length-O));return M}function J(r,L){if(L.sL&&d){var K=f(L.sL,r);s+=K.keyword_count;return K.value}else{return E(r,L)}}function H(L,r){var K=L.cN?'<span class=”'L.cN'“>':”“;if(L.rB){p+=K;L.buffer=”“}else{if(L.eB){p+=l®+K;L.buffer=”“}else{p+=K;L.buffer=r}}B.push(L);A+=L.r}function D(N,K,P){var Q=B;if(P){p+=J(Q.buffer+N,Q);return false}var L=y(K,Q);if(L){p+=J(Q.buffer+N,Q);H(L,K);return L.rB}var r=v(B.length-1,K);if®{var M=Q.cN?”</span>“:”“;if(Q.rE){p+=J(Q.buffer+N,Q)+M}else{if(Q.eE){p+=J(Q.buffer+N,Q)+M+l(K)}else{p+=J(Q.buffer+N+K,Q)+M}}while(r>1){M=B.cN?”</span>“:”“;p+=M;r–;B.length–}var O=B;B.length–;B.buffer=”“;if(O.starts){H(O.starts,”“)}return Q.rE}if(w(K,Q)){throw”Illegal“}}var G=d;var B=;var A=0;var s=0;var p=”“;try{var u=0;G.dM.buffer=”“;do{var x=q(C,u);var t=D(x,x,x);u+=x.length;if(!t){u+=x.length}}while(!x);if(B.length>1){throw”Illegal“}return{language:I,r:A,keyword_count:s,value:p}}catch(F){if(F==”Illegal“){return{language:null,r:0,keyword_count:0,value:l(C)}}else{throw F}}}function h(){function o(t,s,u){if(t.compiled){return}if(!u){t.bR=c(s,t.b?t.b:”\B|\b“);if(!t.e&&!t.eW){t.e=”\B|\b“}if(t.e){t.eR=c(s,t.e)}}if(t.i){t.iR=c(s,t.i)}if(t.r==undefined){t.r=1}if(t.k){t.lR=c(s,t.l||hljs.IR,true)}for(var r in t.k){if(!t.k.hasOwnProperty®){continue}if(t.k instanceof Object){t.kG=t.k}else{t.kG={keyword:t.k}}break}if(!t.c){t.c=[]}t.compiled=true;for(var q=0;q<t.c.length;q++){o(t.c,s,false)}if(t.starts){o(t.starts,s,false)}}for(var p in d){if(!d.hasOwnProperty(p)){continue}o(d.dM,d,true)}}function e(){if(e.called){return}e.called=true;h()}function n(t,y,p){e();var A=g(t,p);var r=a(t);if(r==”no-highlight“){return}if®{var w=f(r,A)}else{var w={language:”“,keyword_count:0,r:0,value:l(A)};var x=w;for(var z in d){if(!d.hasOwnProperty(z)){continue}var u=f(z,A);if(u.keyword_count+u.r>x.keyword_count+x.r){x=u}if(u.keyword_count+u.r>w.keyword_count+w.r){x=w;w=u}}}var s=t.className;if(!s.match(w.language)){s=s?(s+” “+w.language):w.language}var o=b(t);if(o.length){var q=document.createElement(”pre“);q.innerHTML=w.value;w.value=k(o,b(q),A)}if(y){p=i(q);if(p){n(p,hljs.tabReplace)}}}function m(){var o=arguments;var p=function(){j.apply(null,o)};if(window.addEventListener){window.addEventListener(“DOMContentLoaded”,p,false);window.addEventListener(“load”,p,false)}else{if(window.attachEvent){window.attachEvent(“onload”,p)}else{window.onload=p}}}var d={};this.LANGUAGES=d;this.initHighlightingOnLoad=m;this.highlightBlock=n;this.initHighlighting=j;this.IR=“[a-zA-Z0-9_]*”;this.UIR=“[a-zA-Z0-9_]*”;this.NR=“\b\d+(\.\d+)?”;this.CNR=“\b(0x+|\d+(\.\d+)?)”;this.RSR=“!|!=|!==|%|%=|&|&&|&=|*|*=|+|+=|,|\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\?|\[|\{|\(|\^|\^=|\||\|=|\|\||~”;this.BE={b:“\\.”,r:0};this.ASM={cN:“string”,b:“’”,e:“‘”,i:“\n”,c:,r:0};this.QSM={cN:“string”,b:’“‘,e:’”‘,i:“\n”,c:,r:0};this.CLCM={cN:“comment”,b:“//”,e:“$”};this.CBLCLM={cN:“comment”,b:“/*”,e:“*/”};this.HCM={cN:“comment”,b:“#”,e:“$”};this.NM={cN:“number”,b:this.NR,r:0};this.CNM={cN:“number”,b:this.CNR,r:0};this.inherit=function(o,r){var q={};for(var p in o){q=o}if®{for(var p in r){q=r}}return q}}();hljs.LANGUAGES.ruby=function(){var g=“[a-zA-Z0-9_]*(\!|\?)?”;var a=“\w*?|[-+~]\@|<<|>>|=~|===?|<=>|[<>]=?|**|[-/+%^&*~`|]|\[\]=?”;var n={keyword:{and:1,“false”:1,then:1,defined:1,module:1,“in”:1,“return”:1,redo:1,“if”:1,BEGIN:1,retry:1,end:1,“for”:1,“true”:1,self:1,when:1,next:1,until:1,“do”:1,begin:1,unless:1,END:1,rescue:1,nil:1,“else”:1,“break”:1,undef:1,not:1,“super”:1,“class”:1,“case”:1,require:1,yield:1,alias:1,“while”:1,ensure:1,elsif:1,or:1,def:1},keymethods:{__id__:1,__send__:1,abort:1,abs:1,“all?”:1,allocate:1,ancestors:1,“any?”:1,arity:1,assoc:1,at:1,at_exit:1,autoload:1,“autoload?”:1,“between?”:1,binding:1,binmode:1,“block_given?”:1,call:1,callcc:1,caller:1,capitalize:1,“capitalize!”:1,casecmp:1,“catch”:1,ceil:1,center:1,chomp:1,“chomp!”:1,chop:1,“chop!”:1,chr:1,“class”:1,class_eval:1,“class_variable_defined?”:1,class_variables:1,clear:1,clone:1,close:1,close_read:1,close_write:1,“closed?”:1,coerce:1,collect:1,“collect!”:1,compact:1,“compact!”:1,concat:1,“const_defined?”:1,const_get:1,const_missing:1,const_set:1,constants:1,count:1,crypt:1,“default”:1,default_proc:1,“delete”:1,“delete!”:1,delete_at:1,delete_if:1,detect:1,display:1,div:1,divmod:1,downcase:1,“downcase!”:1,downto:1,dump:1,dup:1,each:1,each_byte:1,each_index:1,each_key:1,each_line:1,each_pair:1,each_value:1,each_with_index:1,“empty?”:1,entries:1,eof:1,“eof?”:1,“eql?”:1,“equal?”:1,“eval”:1,exec:1,exit:1,“exit!”:1,extend:1,fail:1,fcntl:1,fetch:1,fileno:1,fill:1,find:1,find_all:1,first:1,flatten:1,“flatten!”:1,floor:1,flush:1,for_fd:1,foreach:1,fork:1,format:1,freeze:1,“frozen?”:1,fsync:1,getc:1,gets:1,global_variables:1,grep:1,gsub:1,“gsub!”:1,“has_key?”:1,“has_value?”:1,hash:1,hex:1,id:1,include:1,“include?”:1,included_modules:1,index:1,indexes:1,indices:1,induced_from:1,inject:1,insert:1,inspect:1,instance_eval:1,instance_method:1,instance_methods:1,“instance_of?”:1,“instance_variable_defined?”:1,instance_variable_get:1,instance_variable_set:1,instance_variables:1,“integer?”:1,intern:1,invert:1,ioctl:1,“is_a?”:1,isatty:1,“iterator?”:1,join:1,“key?”:1,keys:1,“kind_of?”:1,lambda:1,last:1,length:1,lineno:1,ljust:1,load:1,local_variables:1,loop:1,lstrip:1,“lstrip!”:1,map:1,“map!”:1,match:1,max:1,“member?”:1,merge:1,“merge!”:1,method:1,“method_defined?”:1,method_missing:1,methods:1,min:1,module_eval:1,modulo:1,name:1,nesting:1,“new”:1,next:1,“next!”:1,“nil?”:1,nitems:1,“nonzero?”:1,object_id:1,oct:1,open:1,pack:1,partition:1,pid:1,pipe:1,pop:1,popen:1,pos:1,prec:1,prec_f:1,prec_i:1,print:1,printf:1,private_class_method:1,private_instance_methods:1,“private_method_defined?”:1,private_methods:1,proc:1,protected_instance_methods:1,“protected_method_defined?”:1,protected_methods:1,public_class_method:1,public_instance_methods:1,“public_method_defined?”:1,public_methods:1,push:1,putc:1,puts:1,quo:1,raise:1,rand:1,rassoc:1,read:1,read_nonblock:1,readchar:1,readline:1,readlines:1,readpartial:1,rehash:1,reject:1,“reject!”:1,remainder:1,reopen:1,replace:1,require:1,“respond_to?”:1,reverse:1,“reverse!”:1,reverse_each:1,rewind:1,rindex:1,rjust:1,round:1,rstrip:1,“rstrip!”:1,scan:1,seek:1,select:1,send:1,set_trace_func:1,shift:1,singleton_method_added:1,singleton_methods:1,size:1,sleep:1,slice:1,“slice!”:1,sort:1,“sort!”:1,sort_by:1,split:1,sprintf:1,squeeze:1,“squeeze!”:1,srand:1,stat:1,step:1,store:1,strip:1,“strip!”:1,sub:1,“sub!”:1,succ:1,“succ!”:1,sum:1,superclass:1,swapcase:1,“swapcase!”:1,sync:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,taint:1,“tainted?”:1,tell:1,test:1,“throw”:1,times:1,to_a:1,to_ary:1,to_f:1,to_hash:1,to_i:1,to_int:1,to_io:1,to_proc:1,to_s:1,to_str:1,to_sym:1,tr:1,“tr!”:1,tr_s:1,“tr_s!”:1,trace_var:1,transpose:1,trap:1,truncate:1,“tty?”:1,type:1,ungetc:1,uniq:1,“uniq!”:1,unpack:1,unshift:1,untaint:1,untrace_var:1,upcase:1,“upcase!”:1,update:1,upto:1,“value?”:1,values:1,values_at:1,warn:1,write:1,write_nonblock:1,“zero?”:1,zip:1}};var h={cN:“yardoctag”,b:“@+”};var d={cN:“comment”,b:“#”,e:“$”,c:};var c={cN:“comment”,b:“^\=begin”,e:“^\=end”,c:,r:10};var b={cN:“comment”,b:“^__END__”,e:“\n$”};var u={cN:“subst”,b:“#\{”,e:“}”,l:g,k:n};var p=;var s={cN:“string”,b:“'”,e:“'”,c:p,r:0};var r={cN:“string”,b:'“',e:'”',c:p,r:0};var q={cN:“string”,b:“%?\(”,e:“\)”,c:p,r:10};var o={cN:“string”,b:“%?\[”,e:“\]”,c:p,r:10};var m={cN:“string”,b:“%?{”,e:“}”,c:p,r:10};var l={cN:“string”,b:“%?<”,e:“>”,c:p,r:10};var k={cN:“string”,b:“%?/”,e:“/”,c:p,r:10};var j={cN:“string”,b:“%?%”,e:“%”,c:p,r:10};var i={cN:“string”,b:“%?-”,e:“-”,c:p,r:10};var t={cN:“string”,b:“%?\|”,e:“\|”,c:p,r:10};var e={cN:“function”,b:“\bdef\s+”,e:“ |$|;”,l:g,k:n,c:};var f={cN:“identifier”,b:g,l:g,k:n,r:0};var v=[d,c,b,s,r,q,o,m,l,k,j,i,t,{cN:“class”,b:“\b(class|module)\b”,e:“$|;”,k:{“class”:1,module:1},c:[{cN:“title”,b:“\w*(::\w+)*(\?|\!)?”,r:0},{“inheritance”,b:“<\\s*",c:},d,c,b]},e,{cN:”constant“,b:”(::)?(\w*(::)?)+“,r:0},{cN:”symbol“,b:”:“,c:,r:0},{cN:”number“,b:”(\b0+)|(\b0x+)|(\b[0-9_]*(\.+)?)|[0_]\b“,r:0},{cN:”number“,b:”\?\w“},{cN:”variable“,b:”(\$\W)|((\$|\@\@?)(\w+))“},f,{b:”(“hljs.RSR”)\s*“,c:[d,c,b,{cN:”regexp“,b:”/“,e:”/*“,i:”\n“,c:}],r:0}];u.c=v;e.c.c=v;return{dM:{l:g,k:n,c:v}}}(); /*!

Colorbox v1.5.13 - 2014-08-04
jQuery lightbox and modal window plugin
(c) 2014 Jack Moore - http://www.jacklmoore.com/colorbox
license: http://www.opensource.org/licenses/mit-license.php
 /

(function ($, document, window) {

var
// Default settings object.
// See http://jacklmoore.com/colorbox for details.
    defaults = {
        // data sources
        html: false,
        photo: false,
        iframe: false,
        inline: false,

        // behavior and appearance
        transition: "elastic",
        speed: 300,
        fadeOut: 300,
        width: false,
        initialWidth: "600",
        innerWidth: false,
        maxWidth: false,
        height: false,
        initialHeight: "450",
        innerHeight: false,
        maxHeight: false,
        scalePhotos: true,
        scrolling: true,
        opacity: 0.9,
        preloading: true,
        className: false,
        overlayClose: true,
        escKey: true,
        arrowKey: true,
        top: false,
        bottom: false,
        left: false,
        right: false,
        fixed: false,
        data: undefined,
        closeButton: true,
        fastIframe: true,
        open: false,
        reposition: true,
        loop: true,
        slideshow: false,
        slideshowAuto: true,
        slideshowSpeed: 2500,
        slideshowStart: "start slideshow",
        slideshowStop: "stop slideshow",
        photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,

        // alternate image paths for high-res displays
        retinaImage: false,
        retinaUrl: false,
        retinaSuffix: '@2x.$1',

        // internationalization
        current: "image {current} of {total}",
        previous: "previous",
        next: "next",
        close: "close",
        xhrError: "This content failed to load.",
        imgError: "This image failed to load.",

        // accessbility
        returnFocus: true,
        trapFocus: true,

        // callbacks
        onOpen: false,
        onLoad: false,
        onComplete: false,
        onCleanup: false,
        onClosed: false,

        rel: function() {
            return this.rel;
        },
        href: function() {
            // using this.href would give the absolute url, when the href may have been inteded as a selector (e.g. '#container')
            return $(this).attr('href');
        },
        title: function() {
            return this.title;
        }
    },

// Abstracting the HTML and event identifiers for easy rebranding
    colorbox = 'colorbox',
    prefix = 'cbox',
    boxElement = prefix + 'Element',

// Events
    event_open = prefix + '_open',
    event_load = prefix + '_load',
    event_complete = prefix + '_complete',
    event_cleanup = prefix + '_cleanup',
    event_closed = prefix + '_closed',
    event_purge = prefix + '_purge',

// Cached jQuery Object Variables
    $overlay,
    $box,
    $wrap,
    $content,
    $topBorder,
    $leftBorder,
    $rightBorder,
    $bottomBorder,
    $related,
    $window,
    $loaded,
    $loadingBay,
    $loadingOverlay,
    $title,
    $current,
    $slideshow,
    $next,
    $prev,
    $close,
    $groupControls,
    $events = $('<a/>'), // $({}) would be prefered, but there is an issue with jQuery 1.4.2

// Variables for cached values or use across multiple functions
    settings,
    interfaceHeight,
    interfaceWidth,
    loadedHeight,
    loadedWidth,
    index,
    photo,
    open,
    active,
    closing,
    loadingTimer,
    publicMethod,
    div = "div",
    requests = 0,
    previousCSS = {},
    init;

// ****************
// HELPER FUNCTIONS
// ****************

// Convenience function for creating new jQuery objects
function $tag(tag, id, css) {
    var element = document.createElement(tag);

    if (id) {
        element.id = prefix + id;
    }

    if (css) {
        element.style.cssText = css;
    }

    return $(element);
}

// Get the window height using innerHeight when available to avoid an issue with iOS
// http://bugs.jquery.com/ticket/6724
function winheight() {
    return window.innerHeight ? window.innerHeight : $(window).height();
}

function Settings(element, options) {
    if (options !== Object(options)) {
        options = {};
    }

    this.cache = {};
    this.el = element;

    this.value = function(key) {
        var dataAttr;

        if (this.cache[key] === undefined) {
            dataAttr = $(this.el).attr('data-cbox-'+key);

            if (dataAttr !== undefined) {
                this.cache[key] = dataAttr;
            } else if (options[key] !== undefined) {
                this.cache[key] = options[key];
            } else if (defaults[key] !== undefined) {
                this.cache[key] = defaults[key];
            }
        }

        return this.cache[key];
    };

    this.get = function(key) {
        var value = this.value(key);
        return $.isFunction(value) ? value.call(this.el, this) : value;
    };
}

// Determine the next and previous members in a group.
function getIndex(increment) {
    var
        max = $related.length,
        newIndex = (index + increment) % max;

    return (newIndex < 0) ? max + newIndex : newIndex;
}

// Convert '%' and 'px' values to integers
function setSize(size, dimension) {
    return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : winheight()) / 100) : 1) * parseInt(size, 10));
}

// Checks an href to see if it is a photo.
// There is a force photo option (photo: true) for hrefs that cannot be matched by the regex.
function isImage(settings, url) {
    return settings.get('photo') || settings.get('photoRegex').test(url);
}

function retinaUrl(settings, url) {
    return settings.get('retinaUrl') && window.devicePixelRatio > 1 ? url.replace(settings.get('photoRegex'), settings.get('retinaSuffix')) : url;
}

function trapFocus(e) {
    if ('contains' in $box[0] && !$box[0].contains(e.target) && e.target !== $overlay[0]) {
        e.stopPropagation();
        $box.focus();
    }
}

function setClass(str) {
    if (setClass.str !== str) {
        $box.add($overlay).removeClass(setClass.str).addClass(str);
        setClass.str = str;
    }
}

function getRelated(rel) {
    index = 0;

    if (rel && rel !== false && rel !== 'nofollow') {
        $related = $('.' + boxElement).filter(function () {
            var options = $.data(this, colorbox);
            var settings = new Settings(this, options);
            return (settings.get('rel') === rel);
        });
        index = $related.index(settings.el);

        // Check direct calls to Colorbox.
        if (index === -1) {
            $related = $related.add(settings.el);
            index = $related.length - 1;
        }
    } else {
        $related = $(settings.el);
    }
}

function trigger(event) {
    // for external use
    $(document).trigger(event);
    // for internal use
    $events.triggerHandler(event);
}

var slideshow = (function(){
    var active,
        className = prefix + "Slideshow_",
        click = "click." + prefix,
        timeOut;

    function clear () {
        clearTimeout(timeOut);
    }

    function set() {
        if (settings.get('loop') || $related[index + 1]) {
            clear();
            timeOut = setTimeout(publicMethod.next, settings.get('slideshowSpeed'));
        }
    }

    function start() {
        $slideshow
            .html(settings.get('slideshowStop'))
            .unbind(click)
            .one(click, stop);

        $events
            .bind(event_complete, set)
            .bind(event_load, clear);

        $box.removeClass(className + "off").addClass(className + "on");
    }

    function stop() {
        clear();

        $events
            .unbind(event_complete, set)
            .unbind(event_load, clear);

        $slideshow
            .html(settings.get('slideshowStart'))
            .unbind(click)
            .one(click, function () {
                publicMethod.next();
                start();
            });

        $box.removeClass(className + "on").addClass(className + "off");
    }

    function reset() {
        active = false;
        $slideshow.hide();
        clear();
        $events
            .unbind(event_complete, set)
            .unbind(event_load, clear);
        $box.removeClass(className + "off " + className + "on");
    }

    return function(){
        if (active) {
            if (!settings.get('slideshow')) {
                $events.unbind(event_cleanup, reset);
                reset();
            }
        } else {
            if (settings.get('slideshow') && $related[1]) {
                active = true;
                $events.one(event_cleanup, reset);
                if (settings.get('slideshowAuto')) {
                    start();
                } else {
                    stop();
                }
                $slideshow.show();
            }
        }
    };

}());

function launch(element) {
    var options;

    if (!closing) {

        options = $(element).data(colorbox);

        settings = new Settings(element, options);

        getRelated(settings.get('rel'));

        if (!open) {
            open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.

            setClass(settings.get('className'));

            // Show colorbox so the sizes can be calculated in older versions of jQuery
            $box.css({visibility:'hidden', display:'block', opacity:''});

            $loaded = $tag(div, 'LoadedContent', 'width:0; height:0; overflow:hidden; visibility:hidden');
            $content.css({width:'', height:''}).append($loaded);

            // Cache values needed for size calculations
            interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();
            interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
            loadedHeight = $loaded.outerHeight(true);
            loadedWidth = $loaded.outerWidth(true);

            // Opens inital empty Colorbox prior to content being loaded.
            var initialWidth = setSize(settings.get('initialWidth'), 'x');
            var initialHeight = setSize(settings.get('initialHeight'), 'y');
            var maxWidth = settings.get('maxWidth');
            var maxHeight = settings.get('maxHeight');

            settings.w = (maxWidth !== false ? Math.min(initialWidth, setSize(maxWidth, 'x')) : initialWidth) - loadedWidth - interfaceWidth;
            settings.h = (maxHeight !== false ? Math.min(initialHeight, setSize(maxHeight, 'y')) : initialHeight) - loadedHeight - interfaceHeight;

            $loaded.css({width:'', height:settings.h});
            publicMethod.position();

            trigger(event_open);
            settings.get('onOpen');

            $groupControls.add($title).hide();

            $box.focus();

            if (settings.get('trapFocus')) {
                // Confine focus to the modal
                // Uses event capturing that is not supported in IE8-
                if (document.addEventListener) {

                    document.addEventListener('focus', trapFocus, true);

                    $events.one(event_closed, function () {
                        document.removeEventListener('focus', trapFocus, true);
                    });
                }
            }

            // Return focus on closing
            if (settings.get('returnFocus')) {
                $events.one(event_closed, function () {
                    $(settings.el).focus();
                });
            }
        }

        var opacity = parseFloat(settings.get('opacity'));
        $overlay.css({
            opacity: opacity === opacity ? opacity : '',
            cursor: settings.get('overlayClose') ? 'pointer' : '',
            visibility: 'visible'
        }).show();

        if (settings.get('closeButton')) {
            $close.html(settings.get('close')).appendTo($content);
        } else {
            $close.appendTo('<div/>'); // replace with .detach() when dropping jQuery < 1.4
        }

        load();
    }
}

// Colorbox's markup needs to be added to the DOM prior to being called
// so that the browser will go ahead and load the CSS background images.
function appendHTML() {
    if (!$box && document.body) {
        init = false;
        $window = $(window);
        $box = $tag(div).attr({
            id: colorbox,
            'class': $.support.opacity === false ? prefix + 'IE' : '', // class for optional IE8 & lower targeted CSS.
            role: 'dialog',
            tabindex: '-1'
        }).hide();
        $overlay = $tag(div, "Overlay").hide();
        $loadingOverlay = $([$tag(div, "LoadingOverlay")[0],$tag(div, "LoadingGraphic")[0]]);
        $wrap = $tag(div, "Wrapper");
        $content = $tag(div, "Content").append(
            $title = $tag(div, "Title"),
            $current = $tag(div, "Current"),
            $prev = $('<button type="button"/>').attr({id:prefix+'Previous'}),
            $next = $('<button type="button"/>').attr({id:prefix+'Next'}),
            $slideshow = $tag('button', "Slideshow"),
            $loadingOverlay
        );

        $close = $('<button type="button"/>').attr({id:prefix+'Close'});

        $wrap.append( // The 3x3 Grid that makes up Colorbox
            $tag(div).append(
                $tag(div, "TopLeft"),
                $topBorder = $tag(div, "TopCenter"),
                $tag(div, "TopRight")
            ),
            $tag(div, false, 'clear:left').append(
                $leftBorder = $tag(div, "MiddleLeft"),
                $content,
                $rightBorder = $tag(div, "MiddleRight")
            ),
            $tag(div, false, 'clear:left').append(
                $tag(div, "BottomLeft"),
                $bottomBorder = $tag(div, "BottomCenter"),
                $tag(div, "BottomRight")
            )
        ).find('div div').css({'float': 'left'});

        $loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;');

        $groupControls = $next.add($prev).add($current).add($slideshow);

        $(document.body).append($overlay, $box.append($wrap, $loadingBay));
    }
}

// Add Colorbox's event bindings
function addBindings() {
    function clickHandler(e) {
        // ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
        // See: http://jacklmoore.com/notes/click-events/
        if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey)) {
            e.preventDefault();
            launch(this);
        }
    }

    if ($box) {
        if (!init) {
            init = true;

            // Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly.
            $next.click(function () {
                publicMethod.next();
            });
            $prev.click(function () {
                publicMethod.prev();
            });
            $close.click(function () {
                publicMethod.close();
            });
            $overlay.click(function () {
                if (settings.get('overlayClose')) {
                    publicMethod.close();
                }
            });

            // Key Bindings
            $(document).bind('keydown.' + prefix, function (e) {
                var key = e.keyCode;
                if (open && settings.get('escKey') && key === 27) {
                    e.preventDefault();
                    publicMethod.close();
                }
                if (open && settings.get('arrowKey') && $related[1] && !e.altKey) {
                    if (key === 37) {
                        e.preventDefault();
                        $prev.click();
                    } else if (key === 39) {
                        e.preventDefault();
                        $next.click();
                    }
                }
            });

            if ($.isFunction($.fn.on)) {
                // For jQuery 1.7+
                $(document).on('click.'+prefix, '.'+boxElement, clickHandler);
            } else {
                // For jQuery 1.3.x -> 1.6.x
                // This code is never reached in jQuery 1.9, so do not contact me about 'live' being removed.
                // This is not here for jQuery 1.9, it's here for legacy users.
                $('.'+boxElement).live('click.'+prefix, clickHandler);
            }
        }
        return true;
    }
    return false;
}

// Don't do anything if Colorbox already exists.
if ($[colorbox]) {
    return;
}

// Append the HTML when the DOM loads
$(appendHTML);

// ****************
// PUBLIC FUNCTIONS
// Usage format: $.colorbox.close();
// Usage from within an iframe: parent.jQuery.colorbox.close();
// ****************

publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
    var settings;
    var $obj = this;

    options = options || {};

    if ($.isFunction($obj)) { // assume a call to $.colorbox
        $obj = $('<a/>');
        options.open = true;
    } else if (!$obj[0]) { // colorbox being applied to empty collection
        return $obj;
    }

    if (!$obj[0]) { // colorbox being applied to empty collection
        return $obj;
    }

    appendHTML();

    if (addBindings()) {

        if (callback) {
            options.onComplete = callback;
        }

        $obj.each(function () {
            var old = $.data(this, colorbox) || {};
            $.data(this, colorbox, $.extend(old, options));
        }).addClass(boxElement);

        settings = new Settings($obj[0], options);

        if (settings.get('open')) {
            launch($obj[0]);
        }
    }

    return $obj;
};

publicMethod.position = function (speed, loadedCallback) {
    var
        css,
        top = 0,
        left = 0,
        offset = $box.offset(),
        scrollTop,
        scrollLeft;

    $window.unbind('resize.' + prefix);

    // remove the modal so that it doesn't influence the document width/height
    $box.css({top: -9e4, left: -9e4});

    scrollTop = $window.scrollTop();
    scrollLeft = $window.scrollLeft();

    if (settings.get('fixed')) {
        offset.top -= scrollTop;
        offset.left -= scrollLeft;
        $box.css({position: 'fixed'});
    } else {
        top = scrollTop;
        left = scrollLeft;
        $box.css({position: 'absolute'});
    }

    // keeps the top and left positions within the browser's viewport.
    if (settings.get('right') !== false) {
        left += Math.max($window.width() - settings.w - loadedWidth - interfaceWidth - setSize(settings.get('right'), 'x'), 0);
    } else if (settings.get('left') !== false) {
        left += setSize(settings.get('left'), 'x');
    } else {
        left += Math.round(Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2);
    }

    if (settings.get('bottom') !== false) {
        top += Math.max(winheight() - settings.h - loadedHeight - interfaceHeight - setSize(settings.get('bottom'), 'y'), 0);
    } else if (settings.get('top') !== false) {
        top += setSize(settings.get('top'), 'y');
    } else {
        top += Math.round(Math.max(winheight() - settings.h - loadedHeight - interfaceHeight, 0) / 2);
    }

    $box.css({top: offset.top, left: offset.left, visibility:'visible'});

    // this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
    // but it has to be shrank down around the size of div#colorbox when it's done.  If not,
    // it can invoke an obscure IE bug when using iframes.
    $wrap[0].style.width = $wrap[0].style.height = "9999px";

    function modalDimensions() {
        $topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt($box[0].style.width,10) - interfaceWidth)+'px';
        $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt($box[0].style.height,10) - interfaceHeight)+'px';
    }

    css = {width: settings.w + loadedWidth + interfaceWidth, height: settings.h + loadedHeight + interfaceHeight, top: top, left: left};

    // setting the speed to 0 if the content hasn't changed size or position
    if (speed) {
        var tempSpeed = 0;
        $.each(css, function(i){
            if (css[i] !== previousCSS[i]) {
                tempSpeed = speed;
                return;
            }
        });
        speed = tempSpeed;
    }

    previousCSS = css;

    if (!speed) {
        $box.css(css);
    }

    $box.dequeue().animate(css, {
        duration: speed || 0,
        complete: function () {
            modalDimensions();

            active = false;

            // shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
            $wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
            $wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";

            if (settings.get('reposition')) {
                setTimeout(function () {  // small delay before binding onresize due to an IE8 bug.
                    $window.bind('resize.' + prefix, publicMethod.position);
                }, 1);
            }

            if ($.isFunction(loadedCallback)) {
                loadedCallback();
            }
        },
        step: modalDimensions
    });
};

publicMethod.resize = function (options) {
    var scrolltop;

    if (open) {
        options = options || {};

        if (options.width) {
            settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
        }

        if (options.innerWidth) {
            settings.w = setSize(options.innerWidth, 'x');
        }

        $loaded.css({width: settings.w});

        if (options.height) {
            settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
        }

        if (options.innerHeight) {
            settings.h = setSize(options.innerHeight, 'y');
        }

        if (!options.innerHeight && !options.height) {
            scrolltop = $loaded.scrollTop();
            $loaded.css({height: "auto"});
            settings.h = $loaded.height();
        }

        $loaded.css({height: settings.h});

        if(scrolltop) {
            $loaded.scrollTop(scrolltop);
        }

        publicMethod.position(settings.get('transition') === "none" ? 0 : settings.get('speed'));
    }
};

publicMethod.prep = function (object) {
    if (!open) {
        return;
    }

    var callback, speed = settings.get('transition') === "none" ? 0 : settings.get('speed');

    $loaded.remove();

    $loaded = $tag(div, 'LoadedContent').append(object);

    function getWidth() {
        settings.w = settings.w || $loaded.width();
        settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
        return settings.w;
    }
    function getHeight() {
        settings.h = settings.h || $loaded.height();
        settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
        return settings.h;
    }

    $loaded.hide()
        .appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
        .css({width: getWidth(), overflow: settings.get('scrolling') ? 'auto' : 'hidden'})
        .css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
        .prependTo($content);

    $loadingBay.hide();

    // floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.

    $(photo).css({'float': 'none'});

    setClass(settings.get('className'));

    callback = function () {
        var total = $related.length,
            iframe,
            complete;

        if (!open) {
            return;
        }

        function removeFilter() { // Needed for IE8 in versions of jQuery prior to 1.7.2
            if ($.support.opacity === false) {
                $box[0].style.removeAttribute('filter');
            }
        }

        complete = function () {
            clearTimeout(loadingTimer);
            $loadingOverlay.hide();
            trigger(event_complete);
            settings.get('onComplete');
        };

        $title.html(settings.get('title')).show();
        $loaded.show();

        if (total > 1) { // handle grouping
            if (typeof settings.get('current') === "string") {
                $current.html(settings.get('current').replace('{current}', index + 1).replace('{total}', total)).show();
            }

            $next[(settings.get('loop') || index < total - 1) ? "show" : "hide"]().html(settings.get('next'));
            $prev[(settings.get('loop') || index) ? "show" : "hide"]().html(settings.get('previous'));

            slideshow();

            // Preloads images within a rel group
            if (settings.get('preloading')) {
                $.each([getIndex(-1), getIndex(1)], function(){
                    var img,
                        i = $related[this],
                        settings = new Settings(i, $.data(i, colorbox)),
                        src = settings.get('href');

                    if (src && isImage(settings, src)) {
                        src = retinaUrl(settings, src);
                        img = document.createElement('img');
                        img.src = src;
                    }
                });
            }
        } else {
            $groupControls.hide();
        }

        if (settings.get('iframe')) {
            iframe = document.createElement('iframe');

            if ('frameBorder' in iframe) {
                iframe.frameBorder = 0;
            }

            if ('allowTransparency' in iframe) {
                iframe.allowTransparency = "true";
            }

            if (!settings.get('scrolling')) {
                iframe.scrolling = "no";
            }

            $(iframe)
                .attr({
                    src: settings.get('href'),
                    name: (new Date()).getTime(), // give the iframe a unique name to prevent caching
                    'class': prefix + 'Iframe',
                    allowFullScreen : true // allow HTML5 video to go fullscreen
                })
                .one('load', complete)
                .appendTo($loaded);

            $events.one(event_purge, function () {
                iframe.src = "//about:blank";
            });

            if (settings.get('fastIframe')) {
                $(iframe).trigger('load');
            }
        } else {
            complete();
        }

        if (settings.get('transition') === 'fade') {
            $box.fadeTo(speed, 1, removeFilter);
        } else {
            removeFilter();
        }
    };

    if (settings.get('transition') === 'fade') {
        $box.fadeTo(speed, 0, function () {
            publicMethod.position(0, callback);
        });
    } else {
        publicMethod.position(speed, callback);
    }
};

function load () {
    var href, setResize, prep = publicMethod.prep, $inline, request = ++requests;

    active = true;

    photo = false;

    trigger(event_purge);
    trigger(event_load);
    settings.get('onLoad');

    settings.h = settings.get('height') ?
    setSize(settings.get('height'), 'y') - loadedHeight - interfaceHeight :
    settings.get('innerHeight') && setSize(settings.get('innerHeight'), 'y');

    settings.w = settings.get('width') ?
    setSize(settings.get('width'), 'x') - loadedWidth - interfaceWidth :
    settings.get('innerWidth') && setSize(settings.get('innerWidth'), 'x');

    // Sets the minimum dimensions for use in image scaling
    settings.mw = settings.w;
    settings.mh = settings.h;

    // Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
    // If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
    if (settings.get('maxWidth')) {
        settings.mw = setSize(settings.get('maxWidth'), 'x') - loadedWidth - interfaceWidth;
        settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
    }
    if (settings.get('maxHeight')) {
        settings.mh = setSize(settings.get('maxHeight'), 'y') - loadedHeight - interfaceHeight;
        settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
    }

    href = settings.get('href');

    loadingTimer = setTimeout(function () {
        $loadingOverlay.show();
    }, 100);

    if (settings.get('inline')) {
        var $target = $(href);
        // Inserts an empty placeholder where inline content is being pulled from.
        // An event is bound to put inline content back when Colorbox closes or loads new content.
        $inline = $('<div>').hide().insertBefore($target);

        $events.one(event_purge, function () {
            $inline.replaceWith($target);
        });

        prep($target);
    } else if (settings.get('iframe')) {
        // IFrame element won't be added to the DOM until it is ready to be displayed,
        // to avoid problems with DOM-ready JS that might be trying to run in that iframe.
        prep(" ");
    } else if (settings.get('html')) {
        prep(settings.get('html'));
    } else if (isImage(settings, href)) {

        href = retinaUrl(settings, href);

        photo = new Image();

        $(photo)
            .addClass(prefix + 'Photo')
            .bind('error',function () {
                prep($tag(div, 'Error').html(settings.get('imgError')));
            })
            .one('load', function () {
                if (request !== requests) {
                    return;
                }

                // A small pause because some browsers will occassionaly report a
                // img.width and img.height of zero immediately after the img.onload fires
                setTimeout(function(){
                    var percent;

                    $.each(['alt', 'longdesc', 'aria-describedby'], function(i,val){
                        var attr = $(settings.el).attr(val) || $(settings.el).attr('data-'+val);
                        if (attr) {
                            photo.setAttribute(val, attr);
                        }
                    });

                    if (settings.get('retinaImage') && window.devicePixelRatio > 1) {
                        photo.height = photo.height / window.devicePixelRatio;
                        photo.width = photo.width / window.devicePixelRatio;
                    }

                    if (settings.get('scalePhotos')) {
                        setResize = function () {
                            photo.height -= photo.height * percent;
                            photo.width -= photo.width * percent;
                        };
                        if (settings.mw && photo.width > settings.mw) {
                            percent = (photo.width - settings.mw) / photo.width;
                            setResize();
                        }
                        if (settings.mh && photo.height > settings.mh) {
                            percent = (photo.height - settings.mh) / photo.height;
                            setResize();
                        }
                    }

                    if (settings.h) {
                        photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px';
                    }

                    if ($related[1] && (settings.get('loop') || $related[index + 1])) {
                        photo.style.cursor = 'pointer';
                        photo.onclick = function () {
                            publicMethod.next();
                        };
                    }

                    photo.style.width = photo.width + 'px';
                    photo.style.height = photo.height + 'px';
                    prep(photo);
                }, 1);
            });

        photo.src = href;

    } else if (href) {
        $loadingBay.load(href, settings.get('data'), function (data, status) {
            if (request === requests) {
                prep(status === 'error' ? $tag(div, 'Error').html(settings.get('xhrError')) : $(this).contents());
            }
        });
    }
}

// Navigates to the next page/image in a set.
publicMethod.next = function () {
    if (!active && $related[1] && (settings.get('loop') || $related[index + 1])) {
        index = getIndex(1);
        launch($related[index]);
    }
};

publicMethod.prev = function () {
    if (!active && $related[1] && (settings.get('loop') || index)) {
        index = getIndex(-1);
        launch($related[index]);
    }
};

// Note: to use this within an iframe use the following format: parent.jQuery.colorbox.close();
publicMethod.close = function () {
    if (open && !closing) {

        closing = true;
        open = false;
        trigger(event_cleanup);
        settings.get('onCleanup');
        $window.unbind('.' + prefix);
        $overlay.fadeTo(settings.get('fadeOut') || 0, 0);

        $box.stop().fadeTo(settings.get('fadeOut') || 0, 0, function () {
            $box.hide();
            $overlay.hide();
            trigger(event_purge);
            $loaded.remove();

            setTimeout(function () {
                closing = false;
                trigger(event_closed);
                settings.get('onClosed');
            }, 1);
        });
    }
};

// Removes changes Colorbox made to the document, but does not remove the plugin.
publicMethod.remove = function () {
    if (!$box) { return; }

    $box.stop();
    $[colorbox].close();
    $box.stop(false, true).remove();
    $overlay.remove();
    closing = false;
    $box = null;
    $('.' + boxElement)
        .removeData(colorbox)
        .removeClass(boxElement);

    $(document).unbind('click.'+prefix).unbind('keydown.'+prefix);
};

// A method for fetching the current element Colorbox is referencing.
// returns a jQuery object.
publicMethod.element = function () {
    return $(settings.el);
};

publicMethod.settings = defaults;

}(jQuery, document, window)); /*

 File:        jquery.dataTables.min.js
 Version:     1.7.0
 Author:      Allan Jardine (www.sprymedia.co.uk)
 Info:        www.datatables.net

 Copyright 2008-2010 Allan Jardine, all rights reserved.

 This source file is free software, under either the GPL v2 license or a
 BSD style license, as supplied with this software.

 This source file is distributed in the hope that it will be useful, but 
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
/

(function(j,Y,p){j.fn.dataTableSettings=[];var E=j.fn.dataTableSettings;j.fn.dataTableExt={};var m=j.fn.dataTableExt;m.sVersion=“1.7.0”;m.sErrMode=“alert”;m.iApiIndex=0;m.oApi={};m.afnFiltering=[];m.aoFeatures=;m.ofnSearch={};m.afnSortData=[];m.oStdClasses={sPagePrevEnabled:“paginate_enabled_previous”,sPagePrevDisabled:“paginate_disabled_previous”,sPageNextEnabled:“paginate_enabled_next”,sPageNextDisabled:“paginate_disabled_next”,sPageJUINext:“”,sPageJUIPrev:“”,sPageButton:“paginate_button”,sPageButtonActive:“paginate_active”, sPageButtonStaticDisabled:“paginate_button”,sPageFirst:“first”,sPagePrevious:“previous”,sPageNext:“next”,sPageLast:“last”,sStripOdd:“odd”,sStripEven:“even”,sRowEmpty:“dataTables_empty”,sWrapper:“dataTables_wrapper”,sFilter:“dataTables_filter”,sInfo:“dataTables_info”,sPaging:“dataTables_paginate paging_”,sLength:“dataTables_length”,sProcessing:“dataTables_processing”,sSortAsc:“sorting_asc”,sSortDesc:“sorting_desc”,sSortable:“sorting”,sSortableAsc:“sorting_asc_disabled”,sSortableDesc:“sorting_desc_disabled”, sSortableNone:“sorting_disabled”,sSortColumn:“sorting_”,sSortJUIAsc:“”,sSortJUIDesc:“”,sSortJUI:“”,sSortJUIAscAllowed:“”,sSortJUIDescAllowed:“”,sScrollWrapper:“dataTables_scroll”,sScrollHead:“dataTables_scrollHead”,sScrollHeadInner:“dataTables_scrollHeadInner”,sScrollBody:“dataTables_scrollBody”,sScrollFoot:“dataTables_scrollFoot”,sScrollFootInner:“dataTables_scrollFootInner”,sFooterTH:“”};m.oJUIClasses={sPagePrevEnabled:“fg-button ui-state-default ui-corner-left”,sPagePrevDisabled:“fg-button ui-state-default ui-corner-left ui-state-disabled”, sPageNextEnabled:“fg-button ui-state-default ui-corner-right”,sPageNextDisabled:“fg-button ui-state-default ui-corner-right ui-state-disabled”,sPageJUINext:“ui-icon ui-icon-circle-arrow-e”,sPageJUIPrev:“ui-icon ui-icon-circle-arrow-w”,sPageButton:“fg-button ui-state-default”,sPageButtonActive:“fg-button ui-state-default ui-state-disabled”,sPageButtonStaticDisabled:“fg-button ui-state-default ui-state-disabled”,sPageFirst:“first ui-corner-tl ui-corner-bl”,sPagePrevious:“previous”,sPageNext:“next”, sPageLast:“last ui-corner-tr ui-corner-br”,sStripOdd:“odd”,sStripEven:“even”,sRowEmpty:“dataTables_empty”,sWrapper:“dataTables_wrapper”,sFilter:“dataTables_filter”,sInfo:“dataTables_info”,sPaging:“dataTables_paginate fg-buttonset fg-buttonset-multi paging_”,sLength:“dataTables_length”,sProcessing:“dataTables_processing”,sSortAsc:“ui-state-default”,sSortDesc:“ui-state-default”,sSortable:“ui-state-default”,sSortableAsc:“ui-state-default”,sSortableDesc:“ui-state-default”,sSortableNone:“ui-state-default”, sSortColumn:“sorting_”,sSortJUIAsc:“css_right ui-icon ui-icon-triangle-1-n”,sSortJUIDesc:“css_right ui-icon ui-icon-triangle-1-s”,sSortJUI:“css_right ui-icon ui-icon-carat-2-n-s”,sSortJUIAscAllowed:“css_right ui-icon ui-icon-carat-1-n”,sSortJUIDescAllowed:“css_right ui-icon ui-icon-carat-1-s”,sScrollWrapper:“dataTables_scroll”,sScrollHead:“dataTables_scrollHead ui-state-default”,sScrollHeadInner:“dataTables_scrollHeadInner”,sScrollBody:“dataTables_scrollBody”,sScrollFoot:“dataTables_scrollFoot ui-state-default”, sScrollFootInner:“dataTables_scrollFootInner”,sFooterTH:“ui-state-default”};m.oPagination={two_button:{fnInit:function(g,l,q){var r,u,y;if(g.bJUI){r=p.createElement(“a”);u=p.createElement(“a”);y=p.createElement(“span”);y.className=g.oClasses.sPageJUINext;u.appendChild(y);y=p.createElement(“span”);y.className=g.oClasses.sPageJUIPrev;r.appendChild(y)}else{r=p.createElement(“div”);u=p.createElement(“div”)}r.className=g.oClasses.sPagePrevDisabled;u.className=g.oClasses.sPageNextDisabled;r.title=g.oLanguage.oPaginate.sPrevious; u.title=g.oLanguage.oPaginate.sNext;l.appendChild®;l.appendChild(u);j®.click(function(){g.oApi._fnPageChange(g,“previous”)&&q(g)});j(u).click(function(){g.oApi._fnPageChange(g,“next”)&&q(g)});j®.bind(“selectstart”,function(){return false});j(u).bind(“selectstart”,function(){return false});if(g.sTableId!==“”&&typeof g.aanFeatures.p==“undefined”){l.setAttribute(“id”,g.sTableId+“_paginate”);r.setAttribute(“id”,g.sTableId+“_previous”);u.setAttribute(“id”,g.sTableId+“_next”)}},fnUpdate:function(g){if(g.aanFeatures.p)for(var l= g.aanFeatures.p,q=0,r=l.length;q.childNodes.length!==0){l.childNodes.className=g._iDisplayStart===0?g.oClasses.sPagePrevDisabled:g.oClasses.sPagePrevEnabled;l.childNodes.className=g.fnDisplayEnd()==g.fnRecordsDisplay()?g.oClasses.sPageNextDisabled:g.oClasses.sPageNextEnabled}}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(g,l,q){var r=p.createElement(“span”),u=p.createElement(“span”),y=p.createElement(“span”),C=p.createElement(“span”),w=p.createElement(“span”);r.innerHTML= g.oLanguage.oPaginate.sFirst;u.innerHTML=g.oLanguage.oPaginate.sPrevious;C.innerHTML=g.oLanguage.oPaginate.sNext;w.innerHTML=g.oLanguage.oPaginate.sLast;var x=g.oClasses;r.className=x.sPageButton+“ ”+x.sPageFirst;u.className=x.sPageButton+“ ”+x.sPagePrevious;C.className=x.sPageButton+“ ”+x.sPageNext;w.className=x.sPageButton+“ ”+x.sPageLast;l.appendChild®;l.appendChild(u);l.appendChild(y);l.appendChild(C);l.appendChild(w);j®.click(function(){g.oApi._fnPageChange(g,“first”)&&q(g)});j(u).click(function(){g.oApi._fnPageChange(g, “previous”)&&q(g)});j(C).click(function(){g.oApi._fnPageChange(g,“next”)&&q(g)});j(w).click(function(){g.oApi._fnPageChange(g,“last”)&&q(g)});j(“span”,l).bind(“mousedown”,function(){return false}).bind(“selectstart”,function(){return false});if(g.sTableId!==“”&&typeof g.aanFeatures.p==“undefined”){l.setAttribute(“id”,g.sTableId+“_paginate”);r.setAttribute(“id”,g.sTableId+“_first”);u.setAttribute(“id”,g.sTableId+“_previous”);C.setAttribute(“id”,g.sTableId+“_next”);w.setAttribute(“id”,g.sTableId+“_last”)}}, fnUpdate:function(g,l){if(g.aanFeatures.p){var q=m.oPagination.iFullNumbersShowPages,r=Math.floor(q/2),u=Math.ceil(g.fnRecordsDisplay()/g._iDisplayLength),y=Math.ceil(g._iDisplayStart/g._iDisplayLength)+1,C=“”,w,x=g.oClasses;if(u<q){r=1;w=u}else if(y<=r){r=1;w=q}else if(y>=u-r){r=u-q+1;w=u}else{r=y-Math.ceil(q/2)+1;w=r+q-1}for(q=r;q<=w;q++)C+=y!=q?'<span class=“'x.sPageButton'”>'q“</span>”:'<span class=“'x.sPageButtonActive'”>'q“</span>”;w=g.aanFeatures.p;var z,D=function(){g._iDisplayStart= (this.innerHTML*1-1)*g._iDisplayLength;l(g);return false},L=function(){return false};q=0;for(r=w.length;q.childNodes.length!==0){z=w.childNodes;z.innerHTML=C;j(“span”,z).click(D).bind(“mousedown”,L).bind(“selectstart”,L);z=w.getElementsByTagName(“span”);z=[z,z,z,z];j(z).removeClass(x.sPageButton+“ ”x.sPageButtonActive“ ”+x.sPageButtonStaticDisabled);if(y==1){z.className+=“ ”+x.sPageButtonStaticDisabled;z.className+=“ ”+x.sPageButtonStaticDisabled}else{z.className+= “ ”+x.sPageButton;z.className+=“ ”+x.sPageButton}if(u===0||y==u||g._iDisplayLength==-1){z.className+=“ ”+x.sPageButtonStaticDisabled;z.className+=“ ”+x.sPageButtonStaticDisabled}else{z.className+=“ ”+x.sPageButton;z.className+=“ ”+x.sPageButton}}}}}};m.oSort={“string-asc”:function(g,l){g=g.toLowerCase();l=l.toLowerCase();return g<l?-1:g>l?1:0},“string-desc”:function(g,l){g=g.toLowerCase();l=l.toLowerCase();return g<l?1:g>l?-1:0},“html-asc”:function(g,l){g=g.replace(/<.*?>/g,“”).toLowerCase(); l=l.replace(/<.*?>/g,“”).toLowerCase();return g<l?-1:g>l?1:0},“html-desc”:function(g,l){g=g.replace(/<.*?>/g,“”).toLowerCase();l=l.replace(/<.*?>/g,“”).toLowerCase();return g<l?1:g>l?-1:0},“date-asc”:function(g,l){g=Date.parse(g);l=Date.parse(l);if(isNaN(g)||g===“”)g=Date.parse(“01/01/1970 00:00:00”);if(isNaN(l)||l===“”)l=Date.parse(“01/01/1970 00:00:00”);return g-l},“date-desc”:function(g,l){g=Date.parse(g);l=Date.parse(l);if(isNaN(g)||g===“”)g=Date.parse(“01/01/1970 00:00:00”);if(isNaN(l)||l=== “”)l=Date.parse(“01/01/1970 00:00:00”);return l-g},“numeric-asc”:function(g,l){return(g==“-”||g===“”?0:g*1)-(l==“-”||l===“”?0:l*1)},“numeric-desc”:function(g,l){return(l==“-”||l===“”?0:l*1)-(g==“-”||g===“”?0:g*1)}};m.aTypes=[function(g){if(g.length===0)return“numeric”;var l,q=false;l=g.charAt(0);if(“0123456789-”.indexOf(l)==-1)return null;for(var r=1;r<g.length;r++){l=g.charAt®;if(“0123456789.”.indexOf(l)==-1)return null;if(l==“.”){if(q)return null;q=true}}return“numeric”},function(g){var l=Date.parse(g); if(l!==null&&!isNaN(l)||g.length===0)return“date”;return null},function(g){if(g.indexOf(“<”)!=-1&&g.indexOf(“>”)!=-1)return“html”;return null}];m.fnVersionCheck=function(g){var l=function(w,x){for(;w.length<x;)w+=“0”;return w},q=m.sVersion.split(“.”);g=g.split(“.”);for(var r=“”,u=“”,y=0,C=g.length;y<C;y++){r+=l(q,3);u+=l(g,3)}return parseInt(r,10)>=parseInt(u,10)};m._oExternConfig={iNextUnique:0};j.fn.dataTable=function(g){function l(){this.fnRecordsTotal=function(){return this.oFeatures.bServerSide? this._iRecordsTotal:this.aiDisplayMaster.length};this.fnRecordsDisplay=function(){return this.oFeatures.bServerSide?this._iRecordsDisplay:this.aiDisplay.length};this.fnDisplayEnd=function(){return this.oFeatures.bServerSide?this.oFeatures.bPaginate===false?this._iDisplayStart+this.aiDisplay.length:Math.min(this._iDisplayStart+this._iDisplayLength,this._iDisplayStart+this.aiDisplay.length):this._iDisplayEnd};this.sInstance=this.oInstance=null;this.oFeatures={bPaginate:true,bLengthChange:true,bFilter:true, bSort:true,bInfo:true,bAutoWidth:true,bProcessing:false,bSortClasses:true,bStateSave:false,bServerSide:false};this.oScroll={sX:“”,sXInner:“”,sY:“”,bCollapse:false,iBarWidth:0};this.aanFeatures=[];this.oLanguage={sProcessing:“Processing…”,sLengthMenu:“Show MENU entries”,sZeroRecords:“No matching records found”,sEmptyTable:“No data available in table”,sInfo:“Showing START to END of TOTAL entries”,sInfoEmpty:“Showing 0 to 0 of 0 entries”,sInfoFiltered:“(filtered from MAX total entries)”, sInfoPostFix:“”,sSearch:“Search:”,sUrl:“”,oPaginate:{sFirst:“First”,sPrevious:“Previous”,sNext:“Next”,sLast:“Last”}};this.aoData=[];this.aiDisplay=;this.aiDisplayMaster=[];this.aoColumns=;this.iNextId=0;this.asDataSearch=[];this.oPreviousSearch={sSearch:“”,bRegex:false,bSmart:true};this.aoPreSearchCols=;this.aaSorting=[];this.aaSortingFixed=null;this.asStripClasses=[];this.asDestoryStrips=;this.fnFooterCallback=this.fnHeaderCallback=this.fnRowCallback=null;this.aoDrawCallback=[]; this.fnInitComplete=null;this.sTableId=“”;this.nTableWrapper=this.nTBody=this.nTFoot=this.nTHead=this.nTable=null;this.iDefaultSortIndex=0;this.bInitialised=false;this.aoOpenRows=[];this.sDom=“lfrtip”;this.sPaginationType=“two_button”;this.iCookieDuration=7200;this.sCookiePrefix=“SpryMedia_DataTables_”;this.sAjaxSource=null;this.bAjaxDataGet=true;this.fnServerData=function(a,b,c){j.ajax({url:a,data:b,success:c,dataType:“json”,cache:false,error:function(){alert(“DataTables warning: JSON data from server failed to load or be parsed. This is most likely to be caused by a JSON formatting error.”)}})}; this.fnFormatNumber=function(a){if(a<1E3)return a;else{var b=a+“”;a=b.split(“”);var c=“”;b=b.length;for(var d=0;d<b;d++){if(d%3===0&&d!==0)c=“,”+c;c=a+c}}return c};this.aLengthMenu=;this.iDraw=0;this.iDrawError=-1;this._iDisplayLength=10;this._iDisplayStart=0;this._iDisplayEnd=10;this._iRecordsDisplay=this._iRecordsTotal=0;this.bJUI=false;this.oClasses=m.oStdClasses;this.bSorted=this.bFiltered=false;this.oInit=null}function q(a){return function(){var b=[B(this)].concat(Array.prototype.slice.call(arguments)); return m.oApi.apply(this,b)}}function r(a){if(a.bInitialised===false)setTimeout(function(){r(a)},200);else{na(a);z(a);if(a.oFeatures.bSort)O(a);else{a.aiDisplay=a.aiDisplayMaster.slice();F(a);D(a)}if(a.sAjaxSource!==null&&!a.oFeatures.bServerSide){K(a,true);a.fnServerData.call(a.oInstance,a.sAjaxSource,null,function(b){for(var c=0;c);a.iInitDisplayStart=a._iDisplayStart;if(a.oFeatures.bSort)O(a);else{a.aiDisplay=a.aiDisplayMaster.slice();F(a);D(a)}K(a,false); typeof a.fnInitComplete==“function”&&a.fnInitComplete.call(a.oInstance,a,b)})}else{typeof a.fnInitComplete==“function”&&a.fnInitComplete.call(a.oInstance,a);a.oFeatures.bServerSide||K(a,false)}}}function u(a,b,c){n(a.oLanguage,b,“sProcessing”);n(a.oLanguage,b,“sLengthMenu”);n(a.oLanguage,b,“sEmptyTable”);n(a.oLanguage,b,“sZeroRecords”);n(a.oLanguage,b,“sInfo”);n(a.oLanguage,b,“sInfoEmpty”);n(a.oLanguage,b,“sInfoFiltered”);n(a.oLanguage,b,“sInfoPostFix”);n(a.oLanguage,b,“sSearch”);if(typeof b.oPaginate!= “undefined”){n(a.oLanguage.oPaginate,b.oPaginate,“sFirst”);n(a.oLanguage.oPaginate,b.oPaginate,“sPrevious”);n(a.oLanguage.oPaginate,b.oPaginate,“sNext”);n(a.oLanguage.oPaginate,b.oPaginate,“sLast”)}typeof b.sEmptyTable==“undefined”&&typeof b.sZeroRecords!=“undefined”&&n(a.oLanguage,b,“sZeroRecords”,“sEmptyTable”);c&&r(a)}function y(a,b){a.aoColumns={sType:null,_bAutoType:true,bVisible:true,bSearchable:true,bSortable:true,asSorting:,sSortingClass:a.oClasses.sSortable, sSortingClassJUI:a.oClasses.sSortJUI,sTitle:b?b.innerHTML:“”,sName:“”,sWidth:null,sWidthOrig:null,sClass:null,fnRender:null,bUseRendered:true,iDataSort:a.aoColumns.length-1,sSortDataType:“std”,nTh:b?b:p.createElement(“th”),nTf:null};b=a.aoColumns.length-1;if(typeof a.aoPreSearchCols==“undefined”||a.aoPreSearchCols===null)a.aoPreSearchCols={sSearch:“”,bRegex:false,bSmart:true};else{if(typeof a.aoPreSearchCols.bRegex==“undefined”)a.aoPreSearchCols.bRegex=true;if(typeof a.aoPreSearchCols.bSmart== “undefined”)a.aoPreSearchCols.bSmart=true}C(a,b,null)}function C(a,b,c){b=a.aoColumns;if(typeof c!=“undefined”&&c!==null){if(typeof c.sType!=“undefined”){b.sType=c.sType;b._bAutoType=false}n(b,c,“bVisible”);n(b,c,“bSearchable”);n(b,c,“bSortable”);n(b,c,“sTitle”);n(b,c,“sName”);n(b,c,“sWidth”);n(b,c,“sWidth”,“sWidthOrig”);n(b,c,“sClass”);n(b,c,“fnRender”);n(b,c,“bUseRendered”);n(b,c,“iDataSort”);n(b,c,“asSorting”);n(b,c,“sSortDataType”)}if(!a.oFeatures.bSort)b.bSortable=false;if(!b.bSortable|| j.inArray(“asc”,b.asSorting)==-1&&j.inArray(“desc”,b.asSorting)==-1){b.sSortingClass=a.oClasses.sSortableNone;b.sSortingClassJUI=“”}else if(j.inArray(“asc”,b.asSorting)!=-1&&j.inArray(“desc”,b.asSorting)==-1){b.sSortingClass=a.oClasses.sSortableAsc;b.sSortingClassJUI=a.oClasses.sSortJUIAscAllowed}else if(j.inArray(“asc”,b.asSorting)==-1&&j.inArray(“desc”,b.asSorting)!=-1){b.sSortingClass=a.oClasses.sSortableDesc;b.sSortingClassJUI=a.oClasses.sSortJUIDescAllowed}}function w(a,b){if(b.length!=a.aoColumns.length&& a.iDrawError!=a.iDraw){J(a,0,“Added data does not match known number of columns”);a.iDrawError=a.iDraw;return-1}b=b.slice();var c=a.aoData.length;a.aoData.push({nTr:p.createElement(“tr”),_iId:a.iNextId++,_aData:b,_anHidden:[],_sRowStripe:“”});for(var d,f,e=0;e<b.length;e++){d=p.createElement(“td”);if(b===null)b=“”;if(typeof b!=“string”)b+=“”;b=j.trim(b);if(typeof a.aoColumns.fnRender==“function”){f=a.aoColumns.fnRender({iDataRow:c,iDataColumn:e,aData:b,oSettings:a});d.innerHTML= f;if(a.aoColumns.bUseRendered)a.aoData._aData=f}else d.innerHTML=b;if(a.aoColumns.sClass!==null)d.className=a.aoColumns.sClass;if(a.aoColumns._bAutoType&&a.aoColumns.sType!=“string”){f=Z(a.aoData._aData);if(a.aoColumns.sType===null)a.aoColumns.sType=f;else if(a.aoColumns.sType!=f)a.aoColumns.sType=“string”}if(a.aoColumns.bVisible)a.aoData.nTr.appendChild(d);else a.aoData._anHidden=d}a.aiDisplayMaster.push©;return c}function x(a){var b,c,d,f, e,i,h,k;if(a.sAjaxSource===null){h=a.nTBody.childNodes;b=0;for(c=h.length;b.nodeName.toUpperCase()==“TR”){i=a.aoData.length;a.aoData.push({nTr:h,_iId:a.iNextId++,_aData:[],_anHidden:,_sRowStripe:“”});a.aiDisplayMaster.push(i);k=a.aoData._aData;i=h.childNodes;d=e=0;for(f=i.length;d.nodeName.toUpperCase()==“TD”){k=j.trim(i.innerHTML);e++}}}h=S(a);i=[];b=0;for(c=h.length;b.childNodes.length;d<f;d++){e=h.childNodes;e.nodeName.toUpperCase()== “TD”&&i.push(e)}}i.length!=h.length*a.aoColumns.length&&J(a,1,“Unexpected number of TD elements. Expected ”+h.length*a.aoColumns.length+“ and got ”i.length“. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.”);h=0;for(d=a.aoColumns.length;h<d;h++){if(a.aoColumns.sTitle===null)a.aoColumns.sTitle=a.aoColumns.nTh.innerHTML;f=a.aoColumns._bAutoType;e=typeof a.aoColumns.fnRender==“function”;k=a.aoColumns.sClass!== null;var o=a.aoColumns.bVisible,t,s;if(f||e||k||!o){b=0;for(c=a.aoData.length;b<c;b++){t=i;if(f)if(a.aoColumns.sType!=“string”){s=Z(a.aoData._aData);if(a.aoColumns.sType===null)a.aoColumns.sType=s;else if(a.aoColumns.sType!=s)a.aoColumns.sType=“string”}if(e){s=a.aoColumns.fnRender({iDataRow:b,iDataColumn:h,aData:a.aoData._aData,oSettings:a});t.innerHTML=s;if(a.aoColumns.bUseRendered)a.aoData._aData=s}if(k)t.className+=“ ”+a.aoColumns.sClass;if(!o){a.aoData._anHidden= t;t.parentNode.removeChild(t)}}}}}function z(a){var b,c,d,f=0;if(a.nTHead.getElementsByTagName(“th”).length!==0){b=0;for(d=a.aoColumns.length;b<d;b++){c=a.aoColumns.nTh;if(a.aoColumns.bVisible){if(a.aoColumns.sWidth!==null)c.style.width=a.aoColumns.sWidth;if(a.aoColumns.sTitle!=c.innerHTML)c.innerHTML=a.aoColumns.sTitle}else{c.parentNode.removeChild©;f++}}}else{f=p.createElement(“tr”);b=0;for(d=a.aoColumns.length;b<d;b++){c=a.aoColumns.nTh;c.innerHTML=a.aoColumns.sTitle; if(a.aoColumns.bVisible){if(a.aoColumns.sClass!==null)c.className=a.aoColumns.sClass;if(a.aoColumns.sWidth!==null)c.style.width=a.aoColumns.sWidth;f.appendChild©}}j(a.nTHead).html(“”).appendChild(f)}if(a.bJUI){b=0;for(d=a.aoColumns.length;b.nTh.insertBefore(p.createElement(“span”),a.aoColumns.nTh.firstChild)}if(a.oFeatures.bSort){for(b=0;b.bSortable!==false?$(a,a.aoColumns.nTh,b):j(a.aoColumns.nTh).addClass(a.oClasses.sSortableNone); j(“th”,a.nTHead).mousedown(function(){this.onselectstart=function(){return false};return false})}if(a.nTFoot!==null){f=0;c=a.nTFoot.getElementsByTagName(“th”);b=0;for(d=c.length;b<d;b++)if(typeof a.aoColumns!=“undefined”){a.aoColumns.nTf=c;if(a.oClasses.sFooterTH!==“”)a.aoColumns.nTf.className+=“ ”+a.oClasses.sFooterTH;if(!a.aoColumns.bVisible){c.parentNode.removeChild(c);f++}}}}function D(a){var b,c,d=[],f=0,e=false;b=a.asStripClasses.length;c=a.aoOpenRows.length;if(typeof a.iInitDisplayStart!= “undefined”&&a.iInitDisplayStart!=-1){a._iDisplayStart=a.oFeatures.bServerSide?a.iInitDisplayStart:a.iInitDisplayStart>=a.fnRecordsDisplay()?0:a.iInitDisplayStart;a.iInitDisplayStart=-1;F(a)}if(!(a.oFeatures.bServerSide&&!oa(a))){if(a.aiDisplay.length!==0){var i=a._iDisplayStart,h=a._iDisplayEnd;if(a.oFeatures.bServerSide){i=0;h=a.aoData.length}for(i=i;i<h;i++){var k=a.aoData[a.aiDisplay],o=k.nTr;if(b!==0){var t=a.asStripClasses;if(k._sRowStripe!=t){j(o).removeClass(k._sRowStripe).addClass(t); k._sRowStripe=t}}if(typeof a.fnRowCallback==“function”){o=a.fnRowCallback.call(a.oInstance,o,a.aoData[a.aiDisplay]._aData,f,i);if(!o&&!e){J(a,0,“A node was not returned by fnRowCallback”);e=true}}d.push(o);f++;if(c!==0)for(k=0;k.nParent&&d.push(a.aoOpenRows.nTr)}}else{d=p.createElement(“tr”);if(typeof a.asStripClasses!=“undefined”)d.className=a.asStripClasses;e=p.createElement(“td”);e.setAttribute(“valign”,“top”);e.colSpan=T(a);e.className=a.oClasses.sRowEmpty; e.innerHTML=typeof a.oLanguage.sEmptyTable!=“undefined”&&a.fnRecordsTotal()===0?a.oLanguage.sEmptyTable:a.oLanguage.sZeroRecords.replace(“MAX”,a.fnFormatNumber(a.fnRecordsTotal()));d.appendChild(e)}typeof a.fnHeaderCallback==“function”&&a.fnHeaderCallback.call(a.oInstance,j(“>tr”,a.nTHead),V(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay);typeof a.fnFooterCallback==“function”&&a.fnFooterCallback.call(a.oInstance,j(“>tr”,a.nTFoot),V(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay);f= p.createDocumentFragment();b=p.createDocumentFragment();if(a.nTBody){e=a.nTBody.parentNode;b.appendChild(a.nTBody);c=a.nTBody.childNodes;for(b=c.length-1;b>=0;b–)c.parentNode.removeChild(c);b=0;for(c=d.length;b);a.nTBody.appendChild(f);e!==null&&e.appendChild(a.nTBody)}if(typeof a._bInitComplete==“undefined”){a._bInitComplete=true;a.nTableWrapper!=a.nTable.parentNode&&j(a.nTableWrapper).width()>j(a.nTable.parentNode).width()&&U(a)}b=0;for(c=a.aoDrawCallback.length;b< c;b++)a.aoDrawCallback.fn.call(a.oInstance,a);a.bSorted=false;a.bFiltered=false}}function L(a){if(a.oFeatures.bSort)O(a,a.oPreviousSearch);else if(a.oFeatures.bFilter)P(a,a.oPreviousSearch);else{F(a);D(a)}}function oa(a){if(a.bAjaxDataGet){K(a,true);var b=a.aoColumns.length,c=[],d;a.iDraw++;c.push({name:“sEcho”,value:a.iDraw});c.push({name:“iColumns”,value:b});c.push({name:“sColumns”,value:aa(a)});c.push({name:“iDisplayStart”,value:a._iDisplayStart});c.push({name:“iDisplayLength”,value:a.oFeatures.bPaginate!== false?a._iDisplayLength:-1});if(a.oFeatures.bFilter!==false){c.push({name:“sSearch”,value:a.oPreviousSearch.sSearch});c.push({name:“bRegex”,value:a.oPreviousSearch.bRegex});for(d=0;d<b;d++){c.push({name:“sSearch_”+d,value:a.aoPreSearchCols.sSearch});c.push({name:“bRegex_”+d,value:a.aoPreSearchCols.bRegex});c.push({name:“bSearchable_”+d,value:a.aoColumns.bSearchable})}}if(a.oFeatures.bSort!==false){var f=a.aaSortingFixed!==null?a.aaSortingFixed.length:0,e=a.aaSorting.length;c.push({name:“iSortingCols”, value:f+e});for(d=0;d<f;d++){c.push({name:“iSortCol_”+d,value:a.aaSortingFixed[0]});c.push({name:“sSortDir_”+d,value:a.aaSortingFixed[1]})}for(d=0;d<e;d++){c.push({name:“iSortCol_”+(d+f),value:a.aaSorting[0]});c.push({name:“sSortDir_”+(d+f),value:a.aaSorting[1]})}for(d=0;d<b;d++)c.push({name:“bSortable_”+d,value:a.aoColumns.bSortable})}a.fnServerData.call(a.oInstance,a.sAjaxSource,c,function(i){pa(a,i)});return false}else return true}function pa(a,b){if(typeof b.sEcho!=“undefined”)if(b.sEcho* 1<a.iDraw)return;else a.iDraw=b.sEcho*1;ba(a);a._iRecordsTotal=b.iTotalRecords;a._iRecordsDisplay=b.iTotalDisplayRecords;var c=aa(a);if(c=typeof b.sColumns!=“undefined”&&c!==“”&&b.sColumns!=c)var d=qa(a,b.sColumns);for(var f=0,e=b.aaData.length;f<e;f++)if©{for(var i=[],h=0,k=a.aoColumns.length;h[d]);w(a,i)}else w(a,b.aaData);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=false;D(a);a.bAjaxDataGet=true;K(a,false)}function na(a){var b=p.createElement(“div”);a.nTable.parentNode.insertBefore(b, a.nTable);a.nTableWrapper=p.createElement(“div”);a.nTableWrapper.className=a.oClasses.sWrapper;a.sTableId!==“”&&a.nTableWrapper.setAttribute(“id”,a.sTableId+“_wrapper”);for(var c=a.nTableWrapper,d=a.sDom.split(“”),f,e,i,h,k,o,t,s=0;s<d.length;s++){e=0;i=d;if(i==“<”){h=p.createElement(“div”);k=d;if(k==“'”||k=='“'){o=”“;for(t=2;d!=k;){o+=d;t++}if(o==”H“)o=”fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix“;else if(o==”F“)o=”fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix“; h.className=o;s+=t}c.appendChild(h);c=h}else if(i==”>“)c=c.parentNode;else if(i==”l“&&a.oFeatures.bPaginate&&a.oFeatures.bLengthChange){f=ra(a);e=1}else if(i==”f“&&a.oFeatures.bFilter){f=sa(a);e=1}else if(i==”r“&&a.oFeatures.bProcessing){f=ta(a);e=1}else if(i==”t“){f=ua(a);e=1}else if(i==”i“&&a.oFeatures.bInfo){f=va(a);e=1}else if(i==”p“&&a.oFeatures.bPaginate){f=wa(a);e=1}else if(m.aoFeatures.length!==0){h=m.aoFeatures;k=0;for(o=h.length;k.cFeature){if(f=h.fnInit(a))e=1;break}}if(e== 1){if(typeof a.aanFeatures!=”object“)a.aanFeatures=[];a.aanFeatures.push(f);c.appendChild(f)}}b.parentNode.replaceChild(a.nTableWrapper,b)}function ua(a){if(a.oScroll.sX===”“&&a.oScroll.sY===”“)return a.nTable;var b=p.createElement(”div“),c=p.createElement(”div“),d=p.createElement(”div“),f=p.createElement(”div“),e=p.createElement(”div“),i=p.createElement(”div“),h=a.nTable.cloneNode(false),k=a.nTable.cloneNode(false),o=a.nTable.getElementsByTagName(”thead“),t=a.nTable.getElementsByTagName(”tfoot“).length=== 0?null:a.nTable.getElementsByTagName(”tfoot“),s=typeof g.bJQueryUI!=”undefined“&&g.bJQueryUI?m.oJUIClasses:m.oStdClasses;c.appendChild(d);e.appendChild(i);f.appendChild(a.nTable);b.appendChild©;b.appendChild(f);d.appendChild(h);h.appendChild(o);if(t!==null){b.appendChild(e);i.appendChild(k);k.appendChild(t)}b.className=s.sScrollWrapper;c.className=s.sScrollHead;d.className=s.sScrollHeadInner;f.className=s.sScrollBody;e.className=s.sScrollFoot;i.className=s.sScrollFootInner;c.style.overflow=”hidden“; e.style.overflow=”hidden“;f.style.overflow=”auto“;c.style.border=”0“;e.style.border=”0“;d.style.width=”150%“;h.removeAttribute(”id“);h.style.marginLeft=”0“;a.nTable.style.marginLeft=”0“;if(t!==null){k.removeAttribute(”id“);k.style.marginLeft=”0“}d=j(”>caption“,a.nTable);i=0;for(k=d.length;i);if(a.oScroll.sX!==”“){c.style.width=v(a.oScroll.sX);f.style.width=v(a.oScroll.sX);if(t!==null)e.style.width=v(a.oScroll.sX);j(f).scroll(function(){c.scrollLeft=this.scrollLeft;if(t!== null)e.scrollLeft=this.scrollLeft})}if(a.oScroll.sY!==”“)f.style.height=v(a.oScroll.sY);a.aoDrawCallback.push({fn:xa,sName:”scrolling“});a.nScrollHead=c;a.nScrollFoot=e;return b}function xa(a){var b=a.nScrollHead.getElementsByTagName(”div“),c=b.getElementsByTagName(”table“),d=a.nTable.parentNode,f,e,i,h,k,o,t,s,H=[];i=a.nTable.getElementsByTagName(”thead“);i.length>0&&a.nTable.removeChild(i);if(a.nTFoot!==null){k=a.nTable.getElementsByTagName(”tfoot“);k.length>0&&a.nTable.removeChild(k)}i= a.nTHead.cloneNode(true);a.nTable.insertBefore(i,a.nTable.childNodes);if(a.nTFoot!==null){k=a.nTFoot.cloneNode(true);a.nTable.insertBefore(k,a.nTable.childNodes)}var I=ca(i);f=0;for(e=I.length;f<e;f++){t=da(a,f);I.style.width=a.aoColumns.sWidth}a.nTFoot!==null&&M(function(A){A.style.width=”“},k.getElementsByTagName(”tr“));f=j(a.nTable).outerWidth();if(a.oScroll.sX===”“){a.nTable.style.width=”100%“;if(j.browser.msie&&j.browser.version<=7)a.nTable.style.width=v(j(a.nTable).outerWidth()- a.oScroll.iBarWidth)}else if(a.oScroll.sXInner!==”“)a.nTable.style.width=v(a.oScroll.sXInner);else if(f==j(d).width()&&j(d).height()<j(a.nTable).height()){a.nTable.style.width=v(f-a.oScroll.iBarWidth);if(j(a.nTable).outerWidth()>f-a.oScroll.iBarWidth)a.nTable.style.width=v(f)}else a.nTable.style.width=v(f);f=j(a.nTable).outerWidth();e=a.nTHead.getElementsByTagName(”tr“);i=i.getElementsByTagName(”tr“);M(function(A,G){o=A.style;o.paddingTop=”0“;o.paddingBottom=”0“;o.borderTopWidth=”0“;o.borderBottomWidth= ”0“;o.height=0;s=j(A).width();G.style.width=v(s);H.push(s)},i,e);if(a.nTFoot!==null){h=k.getElementsByTagName(”tr“);k=a.nTFoot.getElementsByTagName(”tr“);M(function(A,G){o=A.style;o.paddingTop=”0“;o.paddingBottom=”0“;o.borderTopWidth=”0“;o.borderBottomWidth=”0“;s=j(A).width();G.style.width=v(s);H.push(s)},h,k)}M(function(A){A.innerHTML=”“;A.style.width=v(H.shift())},i);a.nTFoot!==null&&M(function(A){A.innerHTML=”“;A.style.width=v(H.shift())},h);if(j(a.nTable).outerWidth()<f)if(a.oScroll.sX===”“)J(a, 1,”The table cannot fit into the current element which will cause column misalignment. It is suggested that you enable x-scrolling or increase the width the table has in which to be drawn“);else a.oScroll.sXInner!==”“&&J(a,1,”The table cannot fit into the current element which will cause column misalignment. It is suggested that you increase the sScrollXInner property to allow it to draw in a larger area, or simply remove that parameter to allow automatic calculation“);if(a.oScroll.sY===”“)if(j.browser.msie&& j.browser.version<=7)d.style.height=v(a.nTable.offsetHeight+a.oScroll.iBarWidth);if(a.oScroll.sY!==”“&&a.oScroll.bCollapse){d.style.height=v(a.oScroll.sY);h=a.oScroll.sX!==”“&&a.nTable.offsetWidth>d.offsetWidth?a.oScroll.iBarWidth:0;if(a.nTable.offsetHeight<d.offsetHeight)d.style.height=v(j(a.nTable).height()+h)}c.style.width=v(j(a.nTable).outerWidth());b.style.width=v(j(a.nTable).outerWidth()+a.oScroll.iBarWidth);if(a.nTFoot!==null){b=a.nScrollFoot.getElementsByTagName(”div“);c=b.getElementsByTagName(”table“); b.style.width=v(a.nTable.offsetWidth+a.oScroll.iBarWidth);c.style.width=v(a.nTable.offsetWidth)}}function U(a){if(a.oFeatures.bAutoWidth===false)return false;ea(a);for(var b=0,c=a.aoColumns.length;b.nTh.style.width=a.aoColumns.sWidth}function sa(a){var b=p.createElement(”div“);a.sTableId!==”“&&typeof a.aanFeatures.f==”undefined“&&b.setAttribute(”id“,a.sTableId+”_filter“);b.className=a.oClasses.sFilter;b.innerHTML=a.oLanguage.sSearch+(a.oLanguage.sSearch===”“?”“:” “)+'<input type=”text“ />'; var c=j(”input“,b);c.val(a.oPreviousSearch.sSearch.replace('”',“&quot;”));c.keyup(function(){for(var d=a.aanFeatures.f,f=0,e=d.length;f!=this.parentNode&&j(“input”,d).val(this.value);P(a,{sSearch:this.value,bRegex:a.oPreviousSearch.bRegex,bSmart:a.oPreviousSearch.bSmart})});c.keypress(function(d){if(d.keyCode==13)return false});return b}function P(a,b,c){ya(a,b.sSearch,c,b.bRegex,b.bSmart);for(b=0;b.sSearch,b,a.aoPreSearchCols.bRegex, a.aoPreSearchCols.bSmart);m.afnFiltering.length!==0&&Aa(a);a.bFiltered=true;a._iDisplayStart=0;F(a);D(a);Q(a,0)}function Aa(a){for(var b=m.afnFiltering,c=0,d=b.length;c<d;c++)for(var f=0,e=0,i=a.aiDisplay.length;e<i;e++){var h=a.aiDisplay;if(!b(a,a.aoData._aData,h)){a.aiDisplay.splice(e-f,1);f++}}}function za(a,b,c,d,f){if(b!==“”){var e=0;b=fa(b,d,f);for(d=a.aiDisplay.length-1;d>=0;d–){f=ga(a.aoData[a.aiDisplay]._aData,a.aoColumns.sType);if(!b.test(f)){a.aiDisplay.splice(d, 1);e++}}}}function ya(a,b,c,d,f){var e=fa(b,d,f);if(typeof c==“undefined”||c===null)c=0;if(m.afnFiltering.length!==0)c=1;if(b.length<=0){a.aiDisplay.splice(0,a.aiDisplay.length);a.aiDisplay=a.aiDisplayMaster.slice()}else if(a.aiDisplay.length==a.aiDisplayMaster.length||a.oPreviousSearch.sSearch.length>b.length||c==1||b.indexOf(a.oPreviousSearch.sSearch)!==0){a.aiDisplay.splice(0,a.aiDisplay.length);Q(a,1);for(c=0;c)&&a.aiDisplay.push(a.aiDisplayMaster)}else{var i= 0;for(c=0;c)){a.aiDisplay.splice(c-i,1);i++}}a.oPreviousSearch.sSearch=b;a.oPreviousSearch.bRegex=d;a.oPreviousSearch.bSmart=f}function Q(a,b){a.asDataSearch.splice(0,a.asDataSearch.length);var c=p.createElement(“div”);b=typeof b!=“undefined”&&b==1?a.aiDisplayMaster:a.aiDisplay;for(var d=0,f=b.length;d<f;d++){a.asDataSearch=“”;for(var e=0,i=a.aoColumns.length;e.bSearchable)a.asDataSearch+=ga(a.aoData[b]._aData, a.aoColumns.sType)+“ ”;if(a.asDataSearch.indexOf(“&”)!==-1){c.innerHTML=a.asDataSearch;a.asDataSearch=c.textContent?c.textContent:c.innerText}}}function fa(a,b,c){if©{a=b?a.split(“ ”):ha(a).split(“ ”);a=“^(?=.*?”+a.join(“)(?=.*?”)+“).*$”;return new RegExp(a,“i”)}else{a=b?a:ha(a);return new RegExp(a,“i”)}}function ga(a,b){if(typeof m.ofnSearch==“function”)return m.ofnSearch(a);else if(b==“html”)return a.replace(/n/g,“ ”).replace(/<.*?>/g,“”);else if(typeof a==“string”)return a.replace(/n/g, “ ”);return a}function O(a,b){var c=[],d=m.oSort,f=a.aoData,e,i,h,k;if(!a.oFeatures.bServerSide&&(a.aaSorting.length!==0||a.aaSortingFixed!==null)){c=a.aaSortingFixed!==null?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(h=0;h[0];i=N(a,e);k=a.aoColumns.sSortDataType;if(typeof m.afnSortData!=“undefined”){var o=m.afnSortData(a,e,i);i=0;for(k=f.length;i._aData=o}}if(Y.runtime){var t=[],s=c.length;for(h=0;h[0]].iDataSort; t.push([e,a.aoColumns.sType+“-”+c[1]])}a.aiDisplayMaster.sort(function(H,I){for(var A,G=0;G<s;G++){A=d[t[1]](f._aData[t[0]],f._aData[t[0]]);if(A!==0)return A}return 0})}else{this.ClosureDataTables={fn:function(){},data:f,sort:m.oSort};k=“this.ClosureDataTables.fn = function(a,b){var iTest, oSort=this.ClosureDataTables.sort, aoData=this.ClosureDataTables.data;”;for(h=0;h<c.length-1;h++){e=a.aoColumns[c[0]].iDataSort;i=a.aoColumns.sType;k+=“iTest = oSort[‘”i“-”+c[1]+ “']( aoData._aData, aoData._aData ); if ( iTest === 0 )”}if(c.length>0){e=a.aoColumns[c[0]].iDataSort;i=a.aoColumns.sType;k+=“iTest = oSort[’”i“-”+c[1]+“']( aoData._aData, aoData._aData );if (iTest===0) return oSort[‘numeric-”+c[1]+“'](a, b); return iTest;}”;eval(k);a.aiDisplayMaster.sort(this.ClosureDataTables.fn)}this.ClosureDataTables=undefined}}if(typeof b==“undefined”||b)W(a);a.bSorted=true;if(a.oFeatures.bFilter)P(a, a.oPreviousSearch,1);else{a.aiDisplay=a.aiDisplayMaster.slice();a._iDisplayStart=0;F(a);D(a)}}function $(a,b,c,d){j(b).click(function(f){if(a.aoColumns.bSortable!==false){var e=function(){var i,h;if(f.shiftKey){for(var k=false,o=0;o[0]==c){k=true;i=a.aaSorting[0];h=a.aaSorting[2]+1;if(typeof a.aoColumns.asSorting==“undefined”)a.aaSorting.splice(o,1);else{a.aaSorting[1]=a.aoColumns.asSorting;a.aaSorting[2]=h}break}k===false&&a.aaSorting.push([c, a.aoColumns.asSorting,0])}else if(a.aaSorting.length==1&&a.aaSorting[0]==c){i=a.aaSorting[0];h=a.aaSorting[2]+1;if(typeof a.aoColumns.asSorting==“undefined”)h=0;a.aaSorting[1]=a.aoColumns.asSorting;a.aaSorting[2]=h}else{a.aaSorting.splice(0,a.aaSorting.length);a.aaSorting.push([c,a.aoColumns.asSorting,0])}O(a)};if(a.oFeatures.bProcessing){K(a,true);setTimeout(function(){e();a.oFeatures.bServerSide||K(a,false)},0)}else e();typeof d==“function”&&d(a)}})}function W(a){var b, c,d,f,e,i=a.aoColumns.length,h=a.oClasses;for(b=0;b.bSortable&&j(a.aoColumns.nTh).removeClass(h.sSortAsc+“ ”h.sSortDesc“ ”+a.aoColumns.sSortingClass);f=a.aaSortingFixed!==null?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(b=0;b.bSortable){e=a.aoColumns.sSortingClass;d=-1;for(c=0;c[0]==b){e=f[1]==“asc”?h.sSortAsc:h.sSortDesc;d=c;break}j(a.aoColumns.nTh).addClass(e);if(a.bJUI){c=j(“span”, a.aoColumns.nTh);c.removeClass(h.sSortJUIAsc+“ ”h.sSortJUIDesc“ ”h.sSortJUI“ ”h.sSortJUIAscAllowed“ ”+h.sSortJUIDescAllowed);c.addClass(d==-1?a.aoColumns.sSortingClassJUI:f[1]==“asc”?h.sSortJUIAsc:h.sSortJUIDesc)}}else j(a.aoColumns.nTh).addClass(a.aoColumns.sSortingClass);e=h.sSortColumn;if(a.oFeatures.bSort&&a.oFeatures.bSortClasses){d=X(a);if(d.length>=i)for(b=0;b.className.indexOf(e+“1”)!=-1){c=0;for(a=d.length/i;c.className=d.className.replace(“ ”+ e+“1”,“”)}else if(d.className.indexOf(e+“2”)!=-1){c=0;for(a=d.length/i;c.className=d.className.replace(“ ”e“2”,“”)}else if(d.className.indexOf(e+“3”)!=-1){c=0;for(a=d.length/i;c.className=d.className.replace(“ ”e“3”,“”)}h=1;var k;for(b=0;b<f.length;b++){k=parseInt(f[0],10);c=0;for(a=d.length/i;c.className+=“ ”+e+h;h<3&&h++}}}function wa(a){var b=p.createElement(“div”);b.className=a.oClasses.sPaging+a.sPaginationType;m.oPagination.fnInit(a, b,function©{F©;D©});typeof a.aanFeatures.p==“undefined”&&a.aoDrawCallback.push({fn:function©{m.oPagination.fnUpdate(c,function(d){F(d);D(d)})},sName:“pagination”});return b}function Ba(a,b){var c=a._iDisplayStart;if(b==“first”)a._iDisplayStart=0;else if(b==“previous”){a._iDisplayStart=a._iDisplayLength>=0?a._iDisplayStart-a._iDisplayLength:0;if(a._iDisplayStart<0)a._iDisplayStart=0}else if(b==“next”)if(a._iDisplayLength>=0){if(a._iDisplayStart+a._iDisplayLength<a.fnRecordsDisplay())a._iDisplayStart+= a._iDisplayLength}else a._iDisplayStart=0;else if(b==“last”)if(a._iDisplayLength>=0){b=parseInt((a.fnRecordsDisplay()-1)/a._iDisplayLength,10)+1;a._iDisplayStart=(b-1)*a._iDisplayLength}else a._iDisplayStart=0;else J(a,0,“Unknown paging action: ”+b);return c!=a._iDisplayStart}function va(a){var b=p.createElement(“div”);b.className=a.oClasses.sInfo;if(typeof a.aanFeatures.i==“undefined”){a.aoDrawCallback.push({fn:Ca,sName:“information”});a.sTableId!==“”&&b.setAttribute(“id”,a.sTableId+“_info”)}return b} function Ca(a){if(!(!a.oFeatures.bInfo||a.aanFeatures.i.length===0)){var b=j(a.aanFeatures.i),c=a.fnFormatNumber(a.fnRecordsTotal()),d=a.fnFormatNumber(a._iDisplayStart+1),f=a.fnFormatNumber(a.fnDisplayEnd()),e=a.fnFormatNumber(a.fnRecordsDisplay());if(a.fnRecordsDisplay()===0&&a.fnRecordsDisplay()==a.fnRecordsTotal())b.html(a.oLanguage.sInfoEmpty+a.oLanguage.sInfoPostFix);else if(a.fnRecordsDisplay()===0)b.html(a.oLanguage.sInfoEmpty+“ ”+a.oLanguage.sInfoFiltered.replace(“MAX”,c)+a.oLanguage.sInfoPostFix); else a.fnRecordsDisplay()==a.fnRecordsTotal()?b.html(a.oLanguage.sInfo.replace(“START”,d).replace(“END”,f).replace(“TOTAL”,e)+a.oLanguage.sInfoPostFix):b.html(a.oLanguage.sInfo.replace(“START”,d).replace(“END”,f).replace(“TOTAL”,e)+“ ”+a.oLanguage.sInfoFiltered.replace(“MAX”,a.fnFormatNumber(a.fnRecordsTotal()))+a.oLanguage.sInfoPostFix);a=a.aanFeatures.i;if(a.length>1){b=b.html();c=1;for(d=a.length;c).html(b)}}}function ra(a){var b='<select size=“1” '+(a.sTableId===“”? “”:'name=“'a.sTableId'_length”')+“>”,c,d;if(a.aLengthMenu.length==2&&typeof a.aLengthMenu==“object”&&typeof a.aLengthMenu==“object”){c=0;for(d=a.aLengthMenu.length;c<d;c++)b+='<option value=“’+a.aLengthMenu[c]+‘”>’+a.aLengthMenu[c]+“</option>”}else{c=0;for(d=a.aLengthMenu.length;c<d;c++)b+='<option value=“‘+a.aLengthMenu+'”>'+a.aLengthMenu+“</option>”}b+=“</select>”;var f=p.createElement(“div”);a.sTableId!==“”&&typeof a.aanFeatures.l==“undefined”&&f.setAttribute(“id”,a.sTableId+ “_length”);f.className=a.oClasses.sLength;f.innerHTML=a.oLanguage.sLengthMenu.replace(“MENU”,b);j('select option',f).attr(“selected”,true);j(“select”,f).change(function(){var e=j(this).val(),i=a.aanFeatures.l;c=0;for(d=i.length;c!=this.parentNode&&j(“select”,i).val(e);a._iDisplayLength=parseInt(e,10);F(a);if(a.fnDisplayEnd()==a.fnRecordsDisplay()){a._iDisplayStart=a.fnDisplayEnd()-a._iDisplayLength;if(a._iDisplayStart<0)a._iDisplayStart=0}if(a._iDisplayLength== -1)a._iDisplayStart=0;D(a)});return f}function ta(a){var b=p.createElement(“div”);a.sTableId!==“”&&typeof a.aanFeatures.r==“undefined”&&b.setAttribute(“id”,a.sTableId+“_processing”);b.innerHTML=a.oLanguage.sProcessing;b.className=a.oClasses.sProcessing;a.nTable.parentNode.insertBefore(b,a.nTable);return b}function K(a,b){if(a.oFeatures.bProcessing){a=a.aanFeatures.r;for(var c=0,d=a.length;c.style.visibility=b?“visible”:“hidden”}}function da(a,b){for(var c=-1,d=0;d<a.aoColumns.length;d++){a.aoColumns.bVisible=== true&&c++;if(c==b)return d}return null}function N(a,b){for(var c=-1,d=0;d<a.aoColumns.length;d++){a.aoColumns.bVisible===true&&c++;if(d==b)return a.aoColumns.bVisible===true?c:null}return null}function R(a,b){var c,d;c=a._iDisplayStart;for(d=a._iDisplayEnd;c].nTr==b)return a.aiDisplay;c=0;for(d=a.aoData.length;c.nTr==b)return c;return null}function T(a){for(var b=0,c=0;c.bVisible===true&&b++;return b} function F(a){a._iDisplayEnd=a.oFeatures.bPaginate===false?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength>a.aiDisplay.length||a._iDisplayLength==-1?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength}function Da(a,b){if(!a||a===null||a===“”)return 0;if(typeof b==“undefined”)b=p.getElementsByTagName(“body”);var c=p.createElement(“div”);c.style.width=a;b.appendChild©;a=c.offsetWidth;b.removeChild©;return a}function ea(a){var b=0,c,d=0,f=a.aoColumns.length,e,i=j(“th”,a.nTHead);for(e= 0;e.bVisible){d++;if(a.aoColumns.sWidth!==null){c=Da(a.aoColumns.sWidthOrig,a.nTable.parentNode);if(c!==null)a.aoColumns.sWidth=v©;b++}}if(f==i.length&&b===0&&d==f){ia(a,a.nTable);for(e=0;e<a.aoColumns.length;e++){c=j(i).width();if(c!==null)a.aoColumns.sWidth=v©}}else{b=a.nTable.cloneNode(false);e=p.createElement(“tbody”);c=p.createElement(“tr”);b.removeAttribute(“id”);b.appendChild(a.nTHead.cloneNode(true));if(a.nTFoot!==null){b.appendChild(a.nTFoot.cloneNode(true)); M(function(h){h.style.width=“”},b.getElementsByTagName(“tr”))}b.appendChild(e);e.appendChild©;e=j(“thead th”,b);if(e.length===0)e=j(“tbody tr:eq(0)>td”,b);e.each(function(h){this.style.width=“”;h=da(a,h);if(h!==null&&a.aoColumns.sWidthOrig!==“”)this.style.width=a.aoColumns.sWidthOrig});for(e=0;e.bVisible){d=Ea(a,e);if(d!==null){d=d.cloneNode(true);c.appendChild(d)}}e=a.nTable.parentNode;e.appendChild(b);if(a.oScroll.sX!==“”&&a.oScroll.sXInner!==“”)b.style.width=v(a.oScroll.sXInner); else if(a.oScroll.sX!==“”){b.style.width=“”;if(j(b).width()<e.offsetWidth)b.style.width=v(e.offsetWidth)}else b.style.width=v(e.offsetWidth);b.style.visibility=“hidden”;ia(a,b);f=j(“tbody tr:eq(0)>td”,b);if(f.length===0)f=j(“thead tr:eq(0)>th”,b);for(e=c=0;e.bVisible){d=j(f).width();if(d!==null&&d>0)a.aoColumns.sWidth=v(d);c++}a.nTable.style.width=v(j(b).outerWidth());b.parentNode.removeChild(b)}}function ia(a,b){if(a.oScroll.sX===“”&&a.oScroll.sY!== “”){j(b).width();b.style.width=v(j(b).outerWidth()-a.oScroll.iBarWidth)}else if(a.oScroll.sX!==“”)b.style.width=v(j(b).outerWidth())}function Ea(a,b,c){if(typeof c==“undefined”||c){c=Fa(a,b);b=N(a,b);if(c<0)return null;return a.aoData.nTr.getElementsByTagName(“td”)}var d=-1,f,e;c=-1;var i=p.createElement(“div”);i.style.visibility=“hidden”;i.style.position=“absolute”;p.body.appendChild(i);f=0;for(e=a.aoData.length;f<e;f++){i.innerHTML=a.aoData._aData;if(i.offsetWidth>d){d=i.offsetWidth; c=f}}p.body.removeChild(i);if(c>=0){b=N(a,b);if(a=a.aoData.nTr.getElementsByTagName(“td”))return a}return null}function Fa(a,b){for(var c=0,d=-1,f=0;f<a.aoData.length;f++){var e=a.aoData._aData;if(e.length>c){c=e.length;d=f}}return d}function v(a){if(a===null)return“0px”;if(typeof a==“number”)return a+“px”;if(a.indexOf(“em”)!=-1||a.indexOf(“%”)!=-1||a.indexOf(“ex”)!=-1||a.indexOf(“px”)!=-1)return a;return a+“px”}function La(a,b){if(a.length!=b.length)return 1;for(var c=0;c!= b)return 2;return 0}function Z(a){for(var b=m.aTypes,c=b.length,d=0;d<c;d++){var f=b(a);if(f!==null)return f}return“string”}function B(a){for(var b=0;b.nTable==a)return E;return null}function V(a){for(var b=[],c=a.aoData.length,d=0;d._aData);return b}function S(a){for(var b=[],c=a.aoData.length,d=0;d.nTr);return b}function X(a){var b=S(a),c=[],d,f=,e,i,h,k;e=0;for(i=b.length;e<i;e++){c=[];h=0;for(k=b.childNodes.length;h< k;h++){d=b.childNodes;d.nodeName.toUpperCase()==“TD”&&c.push(d)}h=d=0;for(k=a.aoColumns.length;h.bVisible)f.push(c);else{f.push(a.aoData._anHidden);d++}}return f}function ha(a){return a.replace(new RegExp(“(\/|\.|*|+|\?|\||\(|\)|\|\{|\}|\\|\$|\^)”,“g”),“\$1”)}function ja(a,b){for(var c=-1,d=0,f=a.length;d==b)c=d;else a>b&&a–;c!=-1&&a.splice(c,1)}function qa(a,b){b=b.split(“,”);for(var c=[],d=0,f=a.aoColumns.length;d< f;d++)for(var e=0;e.sName==b){c.push(e);break}return c}function aa(a){for(var b=“”,c=0,d=a.aoColumns.length;c.sName+“,”;if(b.length==d)return“”;return b.slice(0,-1)}function J(a,b,c){a=a.sTableId===“”?“DataTables warning: ”+c:“DataTables warning (table id = '”a.sTableId“'): ”+c;if(b===0)if(m.sErrMode==“alert”)alert(a);else throw a;else typeof console!=“undefined”&&typeof console.log!=“undefined”&&console.log(a)}function ba(a){a.aoData.length=0; a.aiDisplayMaster.length=0;a.aiDisplay.length=0;F(a)}function Ga(a){if(a.oFeatures.bStateSave){var b,c=“{”;c+='“iCreate”: '+(new Date).getTime()+“,”;c+='“iStart”: 'a._iDisplayStart“,”;c+='“iEnd”: 'a._iDisplayEnd“,”;c+='“iLength”: 'a._iDisplayLength“,”;c+='“sFilter”: “'+a.oPreviousSearch.sSearch.replace('”','\“')+'”,';c+='“sFilterEsc”: '+!a.oPreviousSearch.bRegex+“,”;c+='“aaSorting”: [ ';for(b=0;b[0]+“,’”+a.aaSorting[1]+“'],”;c=c.substring(0,c.length- 1);c+=“],”;c+='“aaSearchCols”: [ ';for(b=0;b.sSearch.replace(“‘”,“’”)+“‘,”+!a.aoPreSearchCols.bRegex+“],”;c=c.substring(0,c.length-1);c+=“],”;c+='“abVisCols”: [ ';for(b=0;b.bVisible+“,”;c=c.substring(0,c.length-1);c+=“]”;c+=“}”;Ha(a.sCookiePrefix+a.sInstance,c,a.iCookieDuration,a.sCookiePrefix)}}function Ia(a,b){if(a.oFeatures.bStateSave){var c,d=ka(a.sCookiePrefix+a.sInstance);if(d!==null&&d!==“”){try{c= typeof JSON==“object”&&typeof JSON.parse==“function”?JSON.parse(d.replace(/'/g,'“')):eval(”(“d”)“)}catch(f){return}a._iDisplayStart=c.iStart;a.iInitDisplayStart=c.iStart;a._iDisplayEnd=c.iEnd;a._iDisplayLength=c.iLength;a.oPreviousSearch.sSearch=c.sFilter;a.aaSorting=c.aaSorting.slice();a.saved_aaSorting=c.aaSorting.slice();if(typeof c.sFilterEsc!=”undefined“)a.oPreviousSearch.bRegex=!c.sFilterEsc;if(typeof c.aaSearchCols!=”undefined“)for(d=0;d={sSearch:c.aaSearchCols[0], bRegex:!c.aaSearchCols[1]};if(typeof c.abVisCols!=”undefined“){b.saved_aoColumns=[];for(d=0;d={};b.saved_aoColumns.bVisible=c.abVisCols}}}}}function Ha(a,b,c,d){var f=new Date;f.setTime(f.getTime()+c*1E3);c=Y.location.pathname.split(”/“);var e=a+”_“+c.pop().replace(//g,”“).toLowerCase();b=e+”=“+encodeURIComponent(b)+”; expires=“+f.toGMTString()+”; path=“+c.join(”/“)+”/“;f=”“;a=9999999999999;var i;if((ka(e)!==null?p.cookie.length:b.length+ p.cookie.length)+10>4096){e=p.cookie.split(”;“);for(var h=0,k=e.length;h.indexOf(d)!=-1){var o=e.split(”=“);try{i=eval(”(“+decodeURIComponent(o)+”)“)}catch(t){continue}if(typeof i.iCreate!=”undefined“&&i.iCreate<a){f=o;a=i.iCreate}}if(f!==”“)p.cookie=f+”=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=“+c.join(”/“)+”/“}p.cookie=b}function ka(a){var b=Y.location.pathname.split(”/“);a=a+”_“+b.replace(//g,”“).toLowerCase()+”=“;b=p.cookie.split(”;“);for(var c=0;c< b.length;c++){for(var d=b;d.charAt(0)==” “;)d=d.substring(1,d.length);if(d.indexOf(a)===0)return decodeURIComponent(d.substring(a.length,d.length))}return null}function ca(a){a=a.getElementsByTagName(”tr“);if(a.length==1)return a.getElementsByTagName(”th“);var b=[],c=,d,f,e,i,h,k,o=function(G,Ma,la){for(;typeof G[la]!=”undefined“;)la++;return la},t=function(G){if(typeof b==”undefined“)b=[]};d=0;for(i=a.length;d<i;d++){t(d);var s=0,H=[];f=0;for(h=a.childNodes.length;f.childNodes.nodeName.toUpperCase()== ”TD“||a.childNodes.nodeName.toUpperCase()==”TH“)H.push(a.childNodes);f=0;for(h=H.length;f<h;f++){var I=H.getAttribute(”colspan“)*1,A=H.getAttribute(”rowspan“)*1;if(!I||I===0||I===1){k=o(b,d,s);b[k]=H.nodeName.toUpperCase()==”TD“?4:H;if(A||A===0||A===1)for(e=1;e<A;e++){t(d+e);b[k]=2}s++}else{k=o(b,d,s);for(e=0;e[k+e]=3;s+=I}}}d=0;for(i=b.length;d<i;d++){f=0;for(h=b.length;f<h;f++)typeof b[d]==”object“&&c.push(b[d])}return c}function Ja(){var a=p.createElement(”p“), b=a.style;b.width=”100%“;b.height=”200px“;var c=p.createElement(”div“);b=c.style;b.position=”absolute“;b.top=”0px“;b.left=”0px“;b.visibility=”hidden“;b.width=”200px“;b.height=”150px“;b.overflow=”hidden“;c.appendChild(a);p.body.appendChild©;b=a.offsetWidth;c.style.overflow=”scroll“;a=a.offsetWidth;if(b==a)a=c.clientWidth;p.body.removeChild©;return b-a}function M(a,b,c){for(var d=0,f=b.length;d<f;d++)for(var e=0,i=b.childNodes.length;e.childNodes.nodeType==1)typeof c!=”undefined“? a(b.childNodes,c.childNodes):a(b.childNodes)}function n(a,b,c,d){if(typeof d==”undefined“)d=c;if(typeof b!=”undefined“)a=b}this.oApi={};this.fnDraw=function(a){var b=B(this);if(typeof a!=”undefined“&&a===false){F(b);D(b)}else L(b)};this.fnFilter=function(a,b,c,d,f){var e=B(this);if(e.oFeatures.bFilter){if(typeof c==”undefined“)c=false;if(typeof d==”undefined“)d=true;if(typeof f==”undefined“)f=true;if(typeof b==”undefined“||b===null){P(e,{sSearch:a, bRegex:c,bSmart:d},1);if(f&&typeof e.aanFeatures.f!=”undefined“){b=e.aanFeatures.f;c=0;for(d=b.length;c).val(a)}}else{e.aoPreSearchCols.sSearch=a;e.aoPreSearchCols.bRegex=c;e.aoPreSearchCols.bSmart=d;P(e,e.oPreviousSearch,1)}}};this.fnSettings=function(){return B(this)};this.fnVersionCheck=m.fnVersionCheck;this.fnSort=function(a){var b=B(this);b.aaSorting=a;O(b)};this.fnSortListener=function(a,b,c){$(B(this),a,b,c)};this.fnAddData= function(a,b){if(a.length===0)return[];var c=[],d,f=B(this);if(typeof a==”object“)for(var e=0;e<a.length;e++){d=w(f,a);if(d==-1)return c;c.push(d)}else{d=w(f,a);if(d==-1)return c;c.push(d)}f.aiDisplay=f.aiDisplayMaster.slice();Q(f,1);if(typeof b==”undefined“||b)L(f);return c};this.fnDeleteRow=function(a,b,c){var d=B(this);a=typeof a==”object“?R(d,a):a;var f=d.aoData.splice(a,1);ja(d.aiDisplayMaster,a);ja(d.aiDisplay,a);Q(d,1);typeof b==”function“&&b.call(this,d,f); if(d._iDisplayStart>=d.aiDisplay.length){d._iDisplayStart-=d._iDisplayLength;if(d._iDisplayStart<0)d._iDisplayStart=0}if(typeof c==”undefined“||c){F(d);D(d)}return f};this.fnClearTable=function(a){var b=B(this);ba(b);if(typeof a==”undefined“||a)D(b)};this.fnOpen=function(a,b,c){var d=B(this);this.fnClose(a);var f=p.createElement(”tr“),e=p.createElement(”td“);f.appendChild(e);e.className=c;e.colSpan=T(d);e.innerHTML=b;b=j(”tr“,d.nTBody);j.inArray(a,b)!=-1&&j(f).insertAfter(a); d.aoOpenRows.push({nTr:f,nParent:a});return f};this.fnClose=function(a){for(var b=B(this),c=0;c.nParent==a){(a=b.aoOpenRows.nTr.parentNode)&&a.removeChild(b.aoOpenRows.nTr);b.aoOpenRows.splice(c,1);return 0}return 1};this.fnGetData=function(a){var b=B(this);if(typeof a!=”undefined“){a=typeof a==”object“?R(b,a):a;return b.aoData._aData}return V(b)};this.fnGetNodes=function(a){var b=B(this);if(typeof a!=”undefined“)return b.aoData.nTr; return S(b)};this.fnGetPosition=function(a){var b=B(this);if(a.nodeName.toUpperCase()==”TR“)return R(b,a);else if(a.nodeName.toUpperCase()==”TD“)for(var c=R(b,a.parentNode),d=0,f=0;f.bVisible){if(b.aoData.nTr.getElementsByTagName(”td“)==a)return}else d++;return null};this.fnUpdate=function(a,b,c,d,f){var e=B(this),i=typeof b==”object“?R(e,b):b;if(typeof a!=”object“){b=a;e.aoData._aData=b;if(e.aoColumns.fnRender!== null){b=e.aoColumns.fnRender({iDataRow:i,iDataColumn:c,aData:e.aoData._aData,oSettings:e});if(e.aoColumns.bUseRendered)e.aoData._aData=b}c=N(e,c);if(c!==null)e.aoData.nTr.getElementsByTagName(”td“).innerHTML=b}else{if(a.length!=e.aoColumns.length){J(e,0,”An array passed to fnUpdate must have the same number of columns as the table in question - in this case “+e.aoColumns.length);return 1}for(var h=0;h<a.length;h++){b=a;e.aoData._aData=b;if(e.aoColumns.fnRender!==null){b= e.aoColumns.fnRender({iDataRow:i,iDataColumn:h,aData:e.aoData._aData,oSettings:e});if(e.aoColumns.bUseRendered)e.aoData._aData=b}c=N(e,h);if(c!==null)e.aoData.nTr.getElementsByTagName(”td“).innerHTML=b}}if(typeof f==”undefined“||f){Q(e,1);U(e)}if(typeof d==”undefined“||d)L(e);return 0};this.fnSetColumnVis=function(a,b){var c=B(this),d,f;f=c.aoColumns.length;var e,i;if(c.aoColumns.bVisible!=b){e=j(”>tr“,c.nTHead);var h=j(”>tr“,c.nTFoot),k=[],o=;for(d=0;d< f;d++){k.push(c.aoColumns.nTh);o.push(c.aoColumns.nTf)}if(b){for(d=b=0;d.bVisible&&b++;if(b>=T©){e.appendChild(k);h&&h.appendChild(o);d=0;for(f=c.aoData.length;d<f;d++){e=c.aoData._anHidden;c.aoData.nTr.appendChild(e)}}else{for(d=a;d<f;d++){i=N(c,d);if(i!==null)break}e.insertBefore(k,e.getElementsByTagName(”th“));h&&h.insertBefore(o,h.getElementsByTagName(”th“));X©;d=0;for(f=c.aoData.length;d<f;d++){e=c.aoData._anHidden;c.aoData.nTr.insertBefore(e, j(”>td:eq(“i”)“,c.aoData.nTr))}}c.aoColumns.bVisible=true}else{e.removeChild(k);h&&h.removeChild(o);i=X©;d=0;for(f=c.aoData.length;d<f;d++){e=i;c.aoData._anHidden=e;e.parentNode.removeChild(e)}c.aoColumns.bVisible=false}d=0;for(f=c.aoOpenRows.length;d.nTr.colSpan=T©;U©;D©}};this.fnPageChange=function(a,b){var c=B(this);Ba(c,a);F©;if(typeof b==”undefined“||b)D©};this.fnDestroy=function(){var a=B(this), b=a.nTableWrapper.parentNode,c=a.nTBody,d;a.nTable.parentNode.removeChild(a.nTable);j(a.nTableWrapper).remove();a.aaSorting=[];a.aaSortingFixed=;W(a);j(S(a)).removeClass(a.asStripClasses.join(” “));if(a.bJUI){j(”th“,a.nTHead).removeClass(.join(” “));j(”th span“,a.nTHead).remove()}else j(”th“,a.nTHead).removeClass([m.oStdClasses.sSortable,m.oStdClasses.sSortableAsc,m.oStdClasses.sSortableDesc, m.oStdClasses.sSortableNone].join(” “));b.appendChild(a.nTable);b=0;for(d=a.aoData.length;b.nTr);j(”>tr:even“,c).addClass(a.asDestoryStrips);j(”>tr:odd“,c).addClass(a.asDestoryStrips);b=0;for(d=E.length;b==a&&E.splice(b,1)};this.fnAdjustColumnSizing=function(a){U(B(this));if(typeof a==”undefined“||a)this.fnDraw(false)};for(var ma in m.oApi)if(ma)this=q(ma);this.oApi._fnExternApiFunc=q;this.oApi._fnInitalise=r;this.oApi._fnLanguageProcess= u;this.oApi._fnAddColumn=y;this.oApi._fnColumnOptions=C;this.oApi._fnAddData=w;this.oApi._fnGatherData=x;this.oApi._fnDrawHead=z;this.oApi._fnDraw=D;this.oApi._fnReDraw=L;this.oApi._fnAjaxUpdate=oa;this.oApi._fnAjaxUpdateDraw=pa;this.oApi._fnAddOptionsHtml=na;this.oApi._fnFeatureHtmlTable=ua;this.oApi._fnScrollDraw=xa;this.oApi._fnAjustColumnSizing=U;this.oApi._fnFeatureHtmlFilter=sa;this.oApi._fnFilterComplete=P;this.oApi._fnFilterCustom=Aa;this.oApi._fnFilterColumn=za;this.oApi._fnFilter=ya;this.oApi._fnBuildSearchArray= Q;this.oApi._fnFilterCreateSearch=fa;this.oApi._fnDataToSearch=ga;this.oApi._fnSort=O;this.oApi._fnSortAttachListener=$;this.oApi._fnSortingClasses=W;this.oApi._fnFeatureHtmlPaginate=wa;this.oApi._fnPageChange=Ba;this.oApi._fnFeatureHtmlInfo=va;this.oApi._fnUpdateInfo=Ca;this.oApi._fnFeatureHtmlLength=ra;this.oApi._fnFeatureHtmlProcessing=ta;this.oApi._fnProcessingDisplay=K;this.oApi._fnVisibleToColumnIndex=da;this.oApi._fnColumnIndexToVisible=N;this.oApi._fnNodeToDataIndex=R;this.oApi._fnVisbleColumns= T;this.oApi._fnCalculateEnd=F;this.oApi._fnConvertToWidth=Da;this.oApi._fnCalculateColumnWidths=ea;this.oApi._fnScrollingWidthAdjust=ia;this.oApi._fnGetWidestNode=Ea;this.oApi._fnGetMaxLenString=Fa;this.oApi._fnStringToCss=v;this.oApi._fnArrayCmp=La;this.oApi._fnDetectType=Z;this.oApi._fnSettingsFromNode=B;this.oApi._fnGetDataMaster=V;this.oApi._fnGetTrNodes=S;this.oApi._fnGetTdNodes=X;this.oApi._fnEscapeRegex=ha;this.oApi._fnDeleteIndex=ja;this.oApi._fnReOrderIndex=qa;this.oApi._fnColumnOrdering= aa;this.oApi._fnLog=J;this.oApi._fnClearTable=ba;this.oApi._fnSaveState=Ga;this.oApi._fnLoadState=Ia;this.oApi._fnCreateCookie=Ha;this.oApi._fnReadCookie=ka;this.oApi._fnGetUniqueThs=ca;this.oApi._fnScrollBarWidth=Ja;this.oApi._fnApplyToChildren=M;this.oApi._fnMap=n;var Ka=this;return this.each(function(){var a=0,b,c,d,f;a=0;for(b=E.length;a<b;a++){if(E.nTable==this)if(typeof g==”undefined“||typeof g.bRetrieve!=”undefined“&&g.bRetrieve===true)return E.oInstance;else if(typeof g.bDestroy!=”undefined“&& g.bDestroy===true){E.oInstance.fnDestroy();break}else{J(E,0,”Cannot reinitialise DataTable.nnTo retrieve the DataTables object for this table, please pass either no arguments to the dataTable() function, or set bRetrieve to true. Alternatively, to destory the old table and create a new one, set bDestroy to true (note that a lot of changes to the configuration can be made through the API which is usually much faster).“);return}if(E.sTableId!==”“&&E.sTableId==this.getAttribute(”id“)){E.splice(a, 1);break}}var e=new l;E.push(e);var i=false,h=false;a=this.getAttribute(”id“);if(a!==null){e.sTableId=a;e.sInstance=a}else e.sInstance=m._oExternConfig.iNextUnique++;e.oInstance=Ka;e.nTable=this;e.oApi=Ka.oApi;if(typeof g!=”undefined“&&g!==null){e.oInit=g;n(e.oFeatures,g,”bPaginate“);n(e.oFeatures,g,”bLengthChange“);n(e.oFeatures,g,”bFilter“);n(e.oFeatures,g,”bSort“);n(e.oFeatures,g,”bInfo“);n(e.oFeatures,g,”bProcessing“);n(e.oFeatures,g,”bAutoWidth“);n(e.oFeatures,g,”bSortClasses“);n(e.oFeatures, g,”bServerSide“);n(e.oScroll,g,”sScrollX“,”sX“);n(e.oScroll,g,”sScrollXInner“,”sXInner“);n(e.oScroll,g,”sScrollY“,”sY“);n(e.oScroll,g,”bScrollCollapse“,”bCollapse“);n(e,g,”asStripClasses“);n(e,g,”fnRowCallback“);n(e,g,”fnHeaderCallback“);n(e,g,”fnFooterCallback“);n(e,g,”fnInitComplete“);n(e,g,”fnServerData“);n(e,g,”fnFormatNumber“);n(e,g,”aaSorting“);n(e,g,”aaSortingFixed“);n(e,g,”aLengthMenu“);n(e,g,”sPaginationType“);n(e,g,”sAjaxSource“);n(e,g,”iCookieDuration“);n(e,g,”sCookiePrefix“);n(e,g,”sDom“); n(e,g,”oSearch“,”oPreviousSearch“);n(e,g,”aoSearchCols“,”aoPreSearchCols“);n(e,g,”iDisplayLength“,”_iDisplayLength“);n(e,g,”bJQueryUI“,”bJUI“);typeof g.fnDrawCallback==”function“&&e.aoDrawCallback.push({fn:g.fnDrawCallback,sName:”user“});e.oFeatures.bServerSide&&e.oFeatures.bSort&&e.oFeatures.bSortClasses&&e.aoDrawCallback.push({fn:W,sName:”server_side_sort_classes“});if(typeof g.bJQueryUI!=”undefined“&&g.bJQueryUI){e.oClasses=m.oJUIClasses;if(typeof g.sDom==”undefined“)e.sDom='<”H“lfr>t<”F“ip>'}if(e.oScroll.sX!== ”“||e.oScroll.sY!==”“)e.oScroll.iBarWidth=Ja();if(typeof g.iDisplayStart!=”undefined“&&typeof e.iInitDisplayStart==”undefined“){e.iInitDisplayStart=g.iDisplayStart;e._iDisplayStart=g.iDisplayStart}if(typeof g.bStateSave!=”undefined“){e.oFeatures.bStateSave=g.bStateSave;Ia(e,g);e.aoDrawCallback.push({fn:Ga,sName:”state_save“})}if(typeof g.aaData!=”undefined“)h=true;if(typeof g!=”undefined“&&typeof g.aoData!=”undefined“)g.aoColumns=g.aoData;if(typeof g.oLanguage!=”undefined“)if(typeof g.oLanguage.sUrl!= ”undefined“&&g.oLanguage.sUrl!==”“){e.oLanguage.sUrl=g.oLanguage.sUrl;j.getJSON(e.oLanguage.sUrl,null,function(o){u(e,o,true)});i=true}else u(e,g.oLanguage,false)}else g={};if(typeof g.asStripClasses==”undefined“){e.asStripClasses.push(e.oClasses.sStripOdd);e.asStripClasses.push(e.oClasses.sStripEven)}c=false;d=j(”tbody>tr“,this);a=0;for(b=e.asStripClasses.length;a)){c=true;break}if©{e.asDestoryStrips=;if(j(d).hasClass(e.oClasses.sStripOdd))e.asDestoryStrips+= e.oClasses.sStripOdd+” “;if(j(d).hasClass(e.oClasses.sStripEven))e.asDestoryStrips+=e.oClasses.sStripEven;if(j(d).hasClass(e.oClasses.sStripOdd))e.asDestoryStrips+=e.oClasses.sStripOdd+” “;if(j(d).hasClass(e.oClasses.sStripEven))e.asDestoryStrips+=e.oClasses.sStripEven;d.removeClass(e.asStripClasses.join(” “))}a=this.getElementsByTagName(”thead“);c=a.length===0?[]:ca(a);d=typeof g.aoColumns!=”undefined“;a=0;for(b=d?g.aoColumns.length:c.length;a<b;a++){f=d?g.aoColumns:null; var k=c?c:null;if(typeof g.saved_aoColumns!=”undefined“&&g.saved_aoColumns.length==b){if(f===null)f={};f.bVisible=g.saved_aoColumns.bVisible}y(e,k)}if(typeof g.aoColumnDefs!=”undefined“)for(a=g.aoColumnDefs.length-1;a>=0;a–){k=g.aoColumnDefs.aTargets;c=0;for(d=k.length;c<d;c++)if(typeof k==”number“&&k>=0){for(;e.aoColumns.length<=k;)y(e);C(e,k,g.aoColumnDefs)}else if(typeof k==”number“&&k<0)C(e,e.aoColumns.length+k,g.aoColumnDefs);else if(typeof k==”string“){b= 0;for(f=e.aoColumns.length;b==”_all“||e.aoColumns.nTh.className.indexOf(k)!=-1)C(e,b,g.aoColumnDefs)}}if(typeof g.aoColumns!=”undefined“){a=0;for(b=g.aoColumns.length;a)}a=0;for(b=e.aaSorting.length;a<b;a++){f=e.aoColumns[e.aaSorting[0]];if(typeof e.aaSorting[2]==”undefined“)e.aaSorting[2]=0;if(typeof g.aaSorting==”undefined“&&typeof e.saved_aaSorting==”undefined“)e.aaSorting[1]=f.asSorting;c=0;for(d=f.asSorting.length;c[1]== f.asSorting){e.aaSorting[2]=c;break}}this.getElementsByTagName(”thead“).length===0&&this.appendChild(p.createElement(”thead“));this.getElementsByTagName(”tbody“).length===0&&this.appendChild(p.createElement(”tbody“));e.nTHead=this.getElementsByTagName(”thead“);e.nTBody=this.getElementsByTagName(”tbody“);if(this.getElementsByTagName(”tfoot“).length>0)e.nTFoot=this.getElementsByTagName(”tfoot“);if(h)for(a=0;a);else x(e);e.aiDisplay=e.aiDisplayMaster.slice(); e.oFeatures.bAutoWidth&&ea(e);e.bInitialised=true;i===false&&r(e)})}})(jQuery,window,document);

jQuery.fn.dataTableExt.oSort = function(a,b) {

var x = (a == "-") ? 0 : a.replace( /%/, "" );
var y = (b == "-") ? 0 : b.replace( /%/, "" );
x = parseFloat( x );
y = parseFloat( y );
return ((x < y) ? -1 : ((x > y) ?  1 : 0));

};

jQuery.fn.dataTableExt.oSort = function(a,b) {

var x = (a == "-") ? 0 : a.replace( /%/, "" );
var y = (b == "-") ? 0 : b.replace( /%/, "" );
x = parseFloat( x );
y = parseFloat( y );
return ((x < y) ?  1 : ((x > y) ? -1 : 0));

}; /*

 timeago: a jQuery plugin, version: 0.9 (2010-06-21)
 @requires jQuery v1.2.3 or later

 Timeago is a jQuery plugin that makes it easy to support automatically
 updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").

 For usage and examples, visit:
 http://timeago.yarp.com/

 Licensed under the MIT:
 http://www.opensource.org/licenses/mit-license.php

 Copyright (c) 2008-2010, Ryan McGeary (ryanonjavascript -[at]- mcgeary [*dot*] org)
/

(function($) {

$.timeago = function(timestamp) {
  if (timestamp instanceof Date) return inWords(timestamp);
  else if (typeof timestamp == "string") return inWords($.timeago.parse(timestamp));
  else return inWords($.timeago.datetime(timestamp));
};
var $t = $.timeago;

$.extend($.timeago, {
  settings: {
    refreshMillis: 60000,
    allowFuture: false,
    strings: {
      prefixAgo: null,
      prefixFromNow: null,
      suffixAgo: "ago",
      suffixFromNow: "from now",
      seconds: "less than a minute",
      minute: "about a minute",
      minutes: "%d minutes",
      hour: "about an hour",
      hours: "about %d hours",
      day: "a day",
      days: "%d days",
      month: "about a month",
      months: "%d months",
      year: "about a year",
      years: "%d years",
      numbers: []
    }
  },
  inWords: function(distanceMillis) {
    var $l = this.settings.strings;
    var prefix = $l.prefixAgo;
    var suffix = $l.suffixAgo;
    if (this.settings.allowFuture) {
      if (distanceMillis < 0) {
        prefix = $l.prefixFromNow;
        suffix = $l.suffixFromNow;
      }
      distanceMillis = Math.abs(distanceMillis);
    }

    var seconds = distanceMillis / 1000;
    var minutes = seconds / 60;
    var hours = minutes / 60;
    var days = hours / 24;
    var years = days / 365;

    function substitute(stringOrFunction, number) {
      var string = $.isFunction(stringOrFunction) ? stringOrFunction(number) : stringOrFunction;
      var value = ($l.numbers && $l.numbers[number]) || number;
      return string.replace(/%d/i, value);
    }

    var words = seconds < 45 && substitute($l.seconds, Math.round(seconds)) ||
      seconds < 90 && substitute($l.minute, 1) ||
      minutes < 45 && substitute($l.minutes, Math.round(minutes)) ||
      minutes < 90 && substitute($l.hour, 1) ||
      hours < 24 && substitute($l.hours, Math.round(hours)) ||
      hours < 48 && substitute($l.day, 1) ||
      days < 30 && substitute($l.days, Math.floor(days)) ||
      days < 60 && substitute($l.month, 1) ||
      days < 365 && substitute($l.months, Math.floor(days / 30)) ||
      years < 2 && substitute($l.year, 1) ||
      substitute($l.years, Math.floor(years));

    return $.trim([prefix, words, suffix].join(" "));
  },
  parse: function(iso8601) {
    var s = $.trim(iso8601);
    s = s.replace(/\.\d\d\d/,""); // remove milliseconds
    s = s.replace(/-/,"/").replace(/-/,"/");
    s = s.replace(/T/," ").replace(/Z/," UTC");
    s = s.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400
    return new Date(s);
  },
  datetime: function(elem) {
    // jQuery's `is()` doesn't play well with HTML5 in IE
    var isTime = $(elem).get(0).tagName.toLowerCase() == "time"; // $(elem).is("time");
    var iso8601 = isTime ? $(elem).attr("datetime") : $(elem).attr("title");
    return $t.parse(iso8601);
  }
});

$.fn.timeago = function() {
  var self = this;
  self.each(refresh);

  var $s = $t.settings;
  if ($s.refreshMillis > 0) {
    setInterval(function() { self.each(refresh); }, $s.refreshMillis);
  }
  return self;
};

function refresh() {
  var data = prepareData(this);
  if (!isNaN(data.datetime)) {
    $(this).text(inWords(data.datetime));
  }
  return this;
}

function prepareData(element) {
  element = $(element);
  if (!element.data("timeago")) {
    element.data("timeago", { datetime: $t.datetime(element) });
    var text = $.trim(element.text());
    if (text.length > 0) element.attr("title", text);
  }
  return element.data("timeago");
}

function inWords(date) {
  return $t.inWords(distance(date));
}

function distance(date) {
  return (new Date().getTime() - date.getTime());
}

// fix for IE6 suckage
document.createElement("abbr");
document.createElement("time");

})(jQuery); // JQuery URL Parser // Written by Mark Perkins, mark@allmarkedup.com // License: unlicense.org/ (i.e. do what you want with it!)

jQuery.url = function() {

    var segments = {};

    var parsed = {};

    /**
  Options object. Only the URI and strictMode values can be changed via the setters below.
 /
    var options = {

            url : window.location, // default URI is the page in which the script is running

            strictMode: false, // 'loose' parsing by default

            key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], // keys available to query 

            q: {
                    name: "queryKey",
                    parser: /(?:^|&)([^&=]*)=?([^&]*)/g
            },

            parser: {
                    strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,  //less intuitive, more accurate to the specs
                    loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths and deviates from specs
            }

    };

/**
   Deals with the parsing of the URI according to the regex above.
 Written by Steven Levithan - see credits at top.
  /         
    var parseUri = function()
    {
            str = decodeURI( options.url );

            var m = options.parser[ options.strictMode ? "strict" : "loose" ].exec( str );
            var uri = {};
            var i = 14;

            while ( i-- ) {
                    uri[ options.key[i] ] = m[i] || "";
            }

            uri[ options.q.name ] = {};
            uri[ options.key[12] ].replace( options.q.parser, function ( $0, $1, $2 ) {
                    if ($1) {
                            uri[options.q.name][$1] = $2;
                    }
            });

            return uri;
    };

/**
   Returns the value of the passed in key from the parsed URI.

@param string key The key whose value is required
  /         
    var key = function( key )
    {
            if ( ! parsed.length )
            {
                    setUp(); // if the URI has not been parsed yet then do this first...    
            } 
            if ( key == "base" )
            {
                    if ( parsed.port !== null && parsed.port !== "" )
                    {
                            return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";   
                    }
                    else
                    {
                            return parsed.protocol+"://"+parsed.host+"/";
                    }
            }

            return ( parsed[key] === "" ) ? null : parsed[key];
    };

    /**
   Returns the value of the required query string parameter.

@param string item The parameter whose value is required
  /         
    var param = function( item )
    {
            if ( ! parsed.length )
            {
                    setUp(); // if the URI has not been parsed yet then do this first...    
            }
            return ( parsed.queryKey[item] === null ) ? null : parsed.queryKey[item];
    };

/**
   'Constructor' (not really!) function.
    Called whenever the URI changes to kick off re-parsing of the URI and splitting it up into segments. 
  / 
    var setUp = function()
    {
            parsed = parseUri();

            getSegments();  
    };

/**
   Splits up the body of the URI into segments (i.e. sections delimited by '/')
  /
    var getSegments = function()
    {
            var p = parsed.path;
            segments = []; // clear out segments array
            segments = parsed.path.length == 1 ? {} : ( p.charAt( p.length - 1 ) == "/" ? p.substring( 1, p.length - 1 ) : path = p.substring( 1 ) ).split("/");
    };

    return {

        /**
    Sets the parsing mode - either strict or loose. Set to loose by default.

    @param string mode The mode to set the parser to. Anything apart from a value of 'strict' will set it to loose!
   /
            setMode : function( mode )
            {
                    strictMode = mode == "strict" ? true : false;
                    return this;
            },

            /**
    Sets URI to parse if you don't want to to parse the current page's URI.
 Calling the function with no value for newUri resets it to the current page's URI.

    @param string newUri The URI to parse.
   /                
            setUrl : function( newUri )
            {
                    options.url = newUri === undefined ? window.location : newUri;
                    setUp();
                    return this;
            },              

            /**
    Returns the value of the specified URI segment. Segments are numbered from 1 to the number of segments.
 For example the URI http://test.com/about/company/ segment(1) would return 'about'.

 If no integer is passed into the function it returns the number of segments in the URI.

    @param int pos The position of the segment to return. Can be empty.
   /        
            segment : function( pos )
            {
                    if ( ! parsed.length )
                    {
                            setUp(); // if the URI has not been parsed yet then do this first...    
                    } 
                    if ( pos === undefined )
                    {
                            return segments.length;
                    }
                    return ( segments[pos] === "" || segments[pos] === undefined ) ? null : segments[pos];
            },

            attr : key, // provides public access to private 'key' function - see above

            param : param // provides public access to private 'param' function - see above

    };

}();

$(document).ready(function() {

// Configuration for fancy sortable tables for source file groups
$('.file_list').dataTable({
  "aaSorting": [[ 1, "asc" ]],
  "bPaginate": false,
  "bJQueryUI": true,
  "aoColumns": [
    null,
    { "sType": "percent" },
    null,
    null,
    null,
    null,
    null
  ]
});

// Syntax highlight all files up front - deactivated
// $('.source_table pre code').each(function(i, e) {hljs.highlightBlock(e, '  ')});

// Syntax highlight source files on first toggle of the file view popup
$("a.src_link").click(function() {
  // Get the source file element that corresponds to the clicked element
  var source_table = $($(this).attr('href'));

  // If not highlighted yet, do it!
  if (!source_table.hasClass('highlighted')) {
    source_table.find('pre code').each(function(i, e) {hljs.highlightBlock(e, '  ')});
    source_table.addClass('highlighted');
  };
});

var prev_anchor;
var curr_anchor;

// Set-up of popup for source file views
$("a.src_link").colorbox({
  transition: "none",
  inline: true,
  opacity: 1,
  width: "95%",
  height: "95%",
  onLoad: function() {
    prev_anchor = curr_anchor ? curr_anchor : jQuery.url.attr('anchor');
    curr_anchor = this.href.split('#')[1];
    window.location.hash = curr_anchor;
  },
  onCleanup: function() {
    if (prev_anchor && prev_anchor != curr_anchor) {
      $('a[href="#'+prev_anchor+'"]').click();
      curr_anchor = prev_anchor;
    } else {
      $('.group_tabs a:first').click();
      prev_anchor = curr_anchor;
      curr_anchor = "#_AllFiles";
    }
    window.location.hash = curr_anchor;
  }
});

window.onpopstate = function(event){
  if (location.hash.substring(0,2) == "#_") {
    $.colorbox.close();
    curr_anchor = jQuery.url.attr('anchor');
  } else {
    if ($('#colorbox').is(':hidden')) {
      $('a.src_link[href="'+location.hash+'"]').colorbox({ open: true });
    }
  }
};

// Hide src files and file list container after load
$('.source_files').hide();
$('.file_list_container').hide();

// Add tabs based upon existing file_list_containers
$('.file_list_container h2').each(function(){
  var container_id = $(this).parent().attr('id');
  var group_name = $(this).find('.group_name').first().html();
  var covered_percent = $(this).find('.covered_percent').first().html();

  $('.group_tabs').append('<li><a href="#' + container_id + '">' + group_name + ' ('+ covered_percent +')</a></li>');
});

$('.group_tabs a').each( function() {
  $(this).addClass($(this).attr('href').replace('#', ''));
});

// Make sure tabs don't get ugly focus borders when active
$('.group_tabs a').live('focus', function() { $(this).blur(); });

var favicon_path = $('link[rel="shortcut icon"]').attr('href');
$('.group_tabs a').live('click', function(){
  if (!$(this).parent().hasClass('active')) {
    $('.group_tabs a').parent().removeClass('active');
    $(this).parent().addClass('active');
    $('.file_list_container').hide();
    $(".file_list_container" + $(this).attr('href')).show();
    window.location.href = window.location.href.split('#')[0] + $(this).attr('href').replace('#', '#_');

    // Force favicon reload - otherwise the location change containing anchor would drop the favicon...
    // Works only on firefox, but still... - Anyone know a better solution to force favicon on local file?
    $('link[rel="shortcut icon"]').remove();
    $('head').append('<link rel="shortcut icon" type="image/png" href="'+ favicon_path +'" />');
  };
  return false;
});

if (jQuery.url.attr('anchor')) {
  var anchor = jQuery.url.attr('anchor')
  if (anchor.length == 40) {
    $('a.src_link[href=#' + anchor + ']').click();
  } else {
    $('.group_tabs a.'+anchor.replace('_', '')).click();
  }
} else {
  $('.group_tabs a:first').click();
};

$("abbr.timeago").timeago();
$('#loading').fadeOut();
$('#wrapper').show();

});