"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/base/js/owa.reporting-combined-min.js" between
Open-Web-Analytics-1.6.9.tar.gz and Open-Web-Analytics-1.7.0.tar.gz

About: Open Web Analytics (OWA) is web analytics software to track and analyze how people use your web sites and applications.

owa.reporting-combined-min.js  (Open-Web-Analytics-1.6.9):owa.reporting-combined-min.js  (Open-Web-Analytics-1.7.0)
/* OWA owa.reporting package file created Sun, 19 Apr 20 19:47:24 -0700 */ /* OWA owa.reporting package file created Sat, 16 May 20 21:10:45 -0700 */
/* Start of lazy-load */
LazyLoad=function(){var f=document,g,b={},e={css:[],js:[]},a;function j(l,k){var
m=f.createElement(l),d;for(d in k){if(k.hasOwnProperty(d)){m.setAttribute(d,k[d
])}}return m}function h(d){var l=b[d];if(!l){return}var m=l.callback,k=l.urls;k.
shift();if(!k.length){if(m){m.call(l.scope||window,l.obj)}b[d]=null;if(e[d].leng
th){i(d)}}}function c(){if(a){return}var k=navigator.userAgent,l=parseFloat,d;a=
{gecko:0,ie:0,opera:0,webkit:0};d=k.match(/AppleWebKit\/(\S*)/);if(d&&d[1]){a.we
bkit=l(d[1])}else{d=k.match(/MSIE\s([^;]*)/);if(d&&d[1]){a.ie=l(d[1])}else{if((/
Gecko\/(\S*)/).test(k)){a.gecko=1;d=k.match(/rv:([^\s\)]*)/);if(d&&d[1]){a.gecko
=l(d[1])}}else{if(d=k.match(/Opera\/(\S*)/)){a.opera=l(d[1])}}}}}function i(r,q,
s,m,t){var n,o,l,k,d;c();if(q){q=q.constructor===Array?q:[q];if(r==="css"||a.gec
ko||a.opera){e[r].push({urls:[].concat(q),callback:s,obj:m,scope:t})}else{for(n=
0,o=q.length;n<o;++n){e[r].push({urls:[q[n]],callback:n===o-1?s:null,obj:m,scope
:t})}}}if(b[r]||!(k=b[r]=e[r].shift())){return}g=g||f.getElementsByTagName("head
")[0];q=k.urls;for(n=0,o=q.length;n<o;++n){d=q[n];if(r==="css"){l=j("link",{href
:d,rel:"stylesheet",type:"text/css"})}else{l=j("script",{src:d})}if(a.ie){l.onre
adystatechange=function(){var p=this.readyState;if(p==="loaded"||p==="complete")
{this.onreadystatechange=null;h(r)}}}else{if(r==="css"&&(a.gecko||a.webkit)){set
Timeout(function(){h(r)},50*o)}else{l.onload=l.onerror=function(){h(r)}}}g.appen
dChild(l)}}return{css:function(l,m,k,d){i("css",l,m,k,d)},js:function(l,m,k,d){i
("js",l,m,k,d)}}}();
/* End of lazy-load */
/* Start of json2 */
/*
http://www.JSON.org/json2.js
2010-11-17
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
NOT CONTROL.
This file creates a global JSON object containing two methods: stringify
and parse.
JSON.stringify(value, replacer, space)
value any JavaScript value, usually an object or array.
replacer an optional parameter that determines how object
values are stringified for objects. It can be a
function or an array of strings.
space an optional parameter that specifies the indentation
of nested structures. If it is omitted, the text will
be packed without extra whitespace. If it is a number,
it will specify the number of spaces to indent at each
level. If it is a string (such as '\t' or '&nbsp;'),
it contains the characters used to indent at each level.
This method produces a JSON text from a JavaScript value.
When an object value is found, if the object contains a toJSON
method, its toJSON method will be called and the result will be
stringified. A toJSON method does not serialize: it returns the
value represented by the name/value pair that should be serialized,
or undefined if nothing should be serialized. The toJSON method
will be passed the key associated with the value, and this will be
bound to the value
For example, this would serialize Dates as ISO strings.
Date.prototype.toJSON = function (key) {
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
return this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + 'T' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + 'Z';
};
You can provide an optional replacer method. It will be passed the
key and value of each member, with this bound to the containing
object. The value that is returned from your method will be
serialized. If your method returns undefined, then the member will
be excluded from the serialization.
If the replacer parameter is an array of strings, then it will be
used to select the members to be serialized. It filters the results
such that only members with keys listed in the replacer array are
stringified.
Values that do not have JSON representations, such as undefined or
functions, will not be serialized. Such values in objects will be
dropped; in arrays they will be replaced with null. You can use
a replacer function to replace those with JSON values.
JSON.stringify(undefined) returns undefined.
The optional space parameter produces a stringification of the
value that is filled with line breaks and indentation to make it
easier to read.
If the space parameter is a non-empty string, then that string will
be used for indentation. If the space parameter is a number, then
the indentation will be that many spaces.
Example:
text = JSON.stringify(['e', {pluribus: 'unum'}]);
// text is '["e",{"pluribus":"unum"}]'
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
text = JSON.stringify([new Date()], function (key, value) {
return this[key] instanceof Date ?
'Date(' + this[key] + ')' : value;
});
// text is '["Date(---current time---)"]'
JSON.parse(text, reviver)
This method parses a JSON text to produce an object or array.
It can throw a SyntaxError exception.
The optional reviver parameter is a function that can filter and
transform the results. It receives each of the keys and values,
and its return value is used instead of the original value.
If it returns what it received, then the structure is not modified.
If it returns undefined then the member is deleted.
Example:
// Parse the text. Values that look like ISO date strings will
// be converted to Date objects.
myData = JSON.parse(text, function (key, value) {
var a;
if (typeof value === 'string') {
a =
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
if (a) {
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
+a[5], +a[6]));
}
}
return value;
});
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
var d;
if (typeof value === 'string' &&
value.slice(0, 5) === 'Date(' &&
value.slice(-1) === ')') {
d = new Date(value.slice(5, -1));
if (d) {
return d;
}
}
return value;
});
This is a reference implementation. You are free to copy, modify, or
redistribute.
*/
/*jslint evil: true, strict: false, regexp: false */
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
lastIndex, length, parse, prototype, push, replace, slice, stringify,
test, toJSON, toString, valueOf
*/
// Create a JSON object only if one does not already exist. We create the
// methods in a closure to avoid creating global variables.
if (!this.JSON) {
this.JSON = {};
}
(function () {
"use strict";
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
if (typeof Date.prototype.toJSON !== 'function') {
Date.prototype.toJSON = function (key) {
return isFinite(this.valueOf()) ?
this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + 'T' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + 'Z' : null;
};
String.prototype.toJSON =
Number.prototype.toJSON =
Boolean.prototype.toJSON = function (key) {
return this.valueOf();
};
}
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u
202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b
5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
gap,
indent,
meta = { // table of character substitutions
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"' : '\\"',
'\\': '\\\\'
},
rep;
function quote(string) {
// If the string contains no control characters, no quote characters, and no
// backslash characters, then we can safely slap some quotes around it.
// Otherwise we must also replace the offending characters with safe escape
// sequences.
escapable.lastIndex = 0;
return escapable.test(string) ?
'"' + string.replace(escapable, function (a) {
var c = meta[a];
return typeof c === 'string' ? c :
'\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
}) + '"' :
'"' + string + '"';
}
function str(key, holder) {
// Produce a string from holder[key].
var i, // The loop counter.
k, // The member key.
v, // The member value.
length,
mind = gap,
partial,
value = holder[key];
// If the value has a toJSON method, call it to obtain a replacement value.
if (value && typeof value === 'object' &&
typeof value.toJSON === 'function') {
value = value.toJSON(key);
}
// If we were called with a replacer function, then call the replacer to
// obtain a replacement value.
if (typeof rep === 'function') {
value = rep.call(holder, key, value);
}
// What happens next depends on the value's type.
switch (typeof value) {
case 'string':
return quote(value);
case 'number':
// JSON numbers must be finite. Encode non-finite numbers as null.
return isFinite(value) ? String(value) : 'null';
case 'boolean':
case 'null':
// If the value is a boolean or null, convert it to a string. Note:
// typeof null does not produce 'null'. The case is included here in
// the remote chance that this gets fixed someday.
return String(value);
// If the type is 'object', we might be dealing with an object or an array or
// null.
case 'object':
// Due to a specification blunder in ECMAScript, typeof null is 'object',
// so watch out for that case.
if (!value) {
return 'null';
}
// Make an array to hold the partial results of stringifying this object value.
gap += indent;
partial = [];
// Is the value an array?
if (Object.prototype.toString.apply(value) === '[object Array]') {
// The value is an array. Stringify every element. Use null as a placeholder
// for non-JSON values.
length = value.length;
for (i = 0; i < length; i += 1) {
partial[i] = str(i, value) || 'null';
}
// Join all of the elements together, separated with commas, and wrap them in
// brackets.
v = partial.length === 0 ? '[]' :
gap ? '[\n' + gap +
partial.join(',\n' + gap) + '\n' +
mind + ']' :
'[' + partial.join(',') + ']';
gap = mind;
return v;
}
// If the replacer is an array, use it to select the members to be stringified.
if (rep && typeof rep === 'object') {
length = rep.length;
for (i = 0; i < length; i += 1) {
k = rep[i];
if (typeof k === 'string') {
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
} else {
// Otherwise, iterate through all of the keys in the object.
for (k in value) {
if (Object.hasOwnProperty.call(value, k)) {
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
}
// Join all of the member texts together, separated with commas,
// and wrap them in braces.
v = partial.length === 0 ? '{}' :
gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
mind + '}' : '{' + partial.join(',') + '}';
gap = mind;
return v;
}
}
// If the JSON object does not yet have a stringify method, give it one.
if (typeof JSON.stringify !== 'function') {
JSON.stringify = function (value, replacer, space) {
// The stringify method takes a value and an optional replacer, and an optional
// space parameter, and returns a JSON text. The replacer can be a function
// that can replace values, or an array of strings that will select the keys.
// A default replacer method can be provided. Use of the space parameter can
// produce text that is more easily readable.
var i;
gap = '';
indent = '';
// If the space parameter is a number, make an indent string containing that
// many spaces.
if (typeof space === 'number') {
for (i = 0; i < space; i += 1) {
indent += ' ';
}
// If the space parameter is a string, it will be used as the indent string.
} else if (typeof space === 'string') {
indent = space;
}
// If there is a replacer, it must be a function or an array.
// Otherwise, throw an error.
rep = replacer;
if (replacer && typeof replacer !== 'function' &&
(typeof replacer !== 'object' ||
typeof replacer.length !== 'number')) {
throw new Error('JSON.stringify');
}
// Make a fake root object containing our value under the key of ''.
// Return the result of stringifying the value.
return str('', {'': value});
};
}
// If the JSON object does not yet have a parse method, give it one.
if (typeof JSON.parse !== 'function') {
JSON.parse = function (text, reviver) {
// The parse method takes a text and an optional reviver function, and returns
// a JavaScript value if the text is a valid JSON text.
var j;
function walk(holder, key) {
// The walk method is used to recursively walk the resulting structure so
// that modifications can be made.
var k, v, value = holder[key];
if (value && typeof value === 'object') {
for (k in value) {
if (Object.hasOwnProperty.call(value, k)) {
v = walk(value, k);
if (v !== undefined) {
value[k] = v;
} else {
delete value[k];
}
}
}
}
return reviver.call(holder, key, value);
}
// Parsing happens in four stages. In the first stage, we replace certain
// Unicode characters with escape sequences. JavaScript handles many characters
// incorrectly, either silently deleting them, or treating them as line endings.
text = String(text);
cx.lastIndex = 0;
if (cx.test(text)) {
text = text.replace(cx, function (a) {
return '\\u' +
('0000' + a.charCodeAt(0).toString(16)).slice(-4);
});
}
// In the second stage, we run the text against regular expressions that look
// for non-JSON patterns. We are especially concerned with '()' and 'new'
// because they can cause invocation, and '=' because it can cause mutation.
// But just to be safe, we want to reject all unexpected forms.
// We split the second stage into 4 regexp operations in order to work around
// crippling inefficiencies in IE's and Safari's regexp engines. First we
// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
// replace all simple value tokens with ']' characters. Third, we delete all
// open brackets that follow a colon or comma or that begin the text. Finally,
// we look to see that the remaining characters are only whitespace or ']' or
// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
if (/^[\],:{}\s]*$/
.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']'
)
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
// In the third stage we use the eval function to compile the text into a
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
// in JavaScript: it can begin a block or an object literal. We wrap the text
// in parens to eliminate the ambiguity.
j = eval('(' + text + ')');
// In the optional fourth stage, we recursively walk the new structure, passing
// each name/value pair to a reviver function for possible transformation.
return typeof reviver === 'function' ?
walk({'': j}, '') : j;
}
// If the text is not JSON parseable, then a SyntaxError is thrown.
throw new SyntaxError('JSON.parse');
};
}
}());
/* End of json2 */
/* Start of jquery */ /* Start of jquery */
/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultVie w||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appen dTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElem ent("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch .createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.co mpatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.cr eateElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[ a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0 ,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout (cp,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){}}f unction b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e ={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.conve rters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k== ="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0? n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}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[i]]=d[i]);whil e(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type") );if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];e lse{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if (j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.e ach(b,function(b,e){c||bA.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+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c){var d,e,g=f.ajaxSettings.fla tOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a, e)}function bW(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j =h?h.length:0,k=a===bP,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"& &(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bW(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l= bW(a,c,d,e,"*",g));return l}function bV(a){return function(b,c){typeof b!="strin g"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bL),e=0,g=d.leng th,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h] ||[],i[j?"unshift":"push"](c)}}}function by(a,b,c){var d=b==="width"?a.offsetWid th:a.offsetHeight,e=b==="width"?bt:bu;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 =bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,functi on(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.c ss(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))|| 0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"s cript"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0* /")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"inpu t")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj) }function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.chec ked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"): "querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.no deType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAtt ributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;el se if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.sele cted=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defa ultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.valu e&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeTyp e===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g [h][i].namespace,g[h][i],g[h][i].data)}}}}function bf(a,b){return f.nodeName(a," table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.create Element("tbody")):a}function V(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(Q.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 U(a){retu rn!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="* "?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(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<s.length;i++)g=s[i],g.origType.replace(w,"")===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[j];for(i=0;i<s.length;i++){g=s[i];if(m.selecto r===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.relate dTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({e lem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.l evel>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handle Obj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagation Stopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}} return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={}, e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefau lt()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defe r",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.d ata(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").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 K(){if(!e.isReady) {try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready( )}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^ #<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s *\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/ "[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(? :\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/( msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/ ,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.protot ype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.pr ototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prot otype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nod eType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.bod y){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(ty peof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i. exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d .ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])], e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]) ,a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this, a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a); this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.j query?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.rea dy(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e .makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return t his.length},toArray:function(){return G.call(this,0)},get:function(a){return a== null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){v ar d=this.constructor();e.isArray(a)?F.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(),B.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 t his.pushStack(G.apply(this,arguments),"slice",G.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:F,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[0]||{},j=1,k=arguments.length,l=!1;typeof i=="bool ean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}), k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f= a[c];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[c]=e.extend(l,h,f)):f!==b&&( i[c]=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.rea dyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.is Ready){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.ready Wait>0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("r eady")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete ")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMCont entLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c. attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try {b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFuncti on: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):J[D.call(a)]||"object"},isPlainObject:funct ion(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a. constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isProtot ypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)}, isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){th row a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);i f(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(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseF romString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false ",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("pa rsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},glob alEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b )},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:functi on(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:func tion(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[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}el se if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a [g],g,a[g++])===!1)break;return a},trim:H?function(a){return a==null?"":H.call(a )}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:f unction(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)?F.call(c,a):e.merge(c,a)}return c },inArray:function(a,b){if(!b)return-1;if(I)return I.call(b,a);for(var c=0,d=b.l ength;c<d;c++)if(b[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<f;e++)a[d++]=c[e];else whi le(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c =!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);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[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i] ,i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.lengt h]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="stri ng"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=G.call(arguments,2),g =function(){return a.apply(c,f.concat(G.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(typeo f c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&& f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h); return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatc h: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[1]||"",version:b[2]||"0"}},sub: function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.super class=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=f unction(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.cal l(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each ("Boolean Number String Function Array Date RegExp Object".split(" "),function(a ,b){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser&&(e.browser[A .browser]=!0,e.browser.version=A.version),e.browser.webkit&&(e.browser.safari=!0 ),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?C=funct ion(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent&&( C=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",C),e .ready())});return e}(),g="done fail isResolved isRejected promise then always p ipe".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<h ;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i); k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c ){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return th is},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:fun ction(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Defer red:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function( a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,argu ments).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:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1], h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.pr omise)?h.promise().then(d.resolve,d.reject):d[g+"With"](this===b?d:this,[h])}):b [a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}va r c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cance l),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){retur n function(c){b[a]=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.prom ise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].p romise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith (g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("d iv"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("class Name","t"),a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;flo at:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("* "),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElem ent("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagNam e("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElement sByTagName("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,check On:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submi tBubbles:!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.disab led;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachE vent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.clo neNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAtt ribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","chec ked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild), k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.st yle.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.crea teElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margi n:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1 000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.f irstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.sty le&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWi dth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrink WrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;borde r:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u =q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliabl eHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultV iew.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.margin Right="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getCom putedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.r emoveChild(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[s]=="function"),k[t+"Bubbles"] =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.jque ry+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[f .expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptDa ta(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a [f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)retu rn;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.n oop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c): l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c )]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f. camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){ var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i] )return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l( d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.delet eExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop ),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a .removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f. data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName. toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.f n.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length ){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.subs tring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(fu nction(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=t his.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this [0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(f unction(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data (this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){r eturn 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:funct ion(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){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:f unction(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArra y(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.le ngth||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:functi on(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);retu rn this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f .dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(th is,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.qu eue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQue ue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m() {--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Defer red(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l= f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f ._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/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|disabl ed|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u,v;f.fn.exte nd({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]||a;return t his.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function (a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).ad dClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);f or(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.len gth===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.i ndexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeC lass: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[d];if(g.nodeTy pe===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.len gth;i<j;i++)h=h.replace(" "+c[i]+" "," ");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(c){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[g++])i=d?i:!h.hasClass(e),h[i?"addClass":" removeClass"](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[c].nodeType===1&&(" "+this[c].className+" ").r eplace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0] ;if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[ e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return type of d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);retur n 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,func tion(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.v alHooks[this.type];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[h];if(j.selected&&(f.support.optDisabled?!j.disab led:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.p arentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e .length)return f(e[c]).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:functi on(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.at trFn)return f(a)[c](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]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u& &(i=u)));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(c);return h===null?b:h},removeA ttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.remo veAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!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}}},value:{get: function(a,b){if(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.val ue:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a. value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","cla ss":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cel lPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frame Border",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.pro pFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a [c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:funct ion(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.val ue,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIn dex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d= a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){ var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribu te(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.butto n={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d. nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttri bute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height "],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c= ==""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each( ["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHook s[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.suppo rt.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.pare ntNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null }})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]= {get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each([ "radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:f unction(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});va r w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B= function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.node Type!==3&&a.nodeType!==8){if(d===!1)d=C;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.e vents,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,argume nts):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g): {handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.s lice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid) ;var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call( a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.att achEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.gui d)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){i f(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);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.eve nt.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){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(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j= 0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler, j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){ q=p[j];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 (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultVie w||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appen dTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElem ent("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch .createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.co mpatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.cr eateElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[ a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0 ,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout (cp,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){}}f unction b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e ={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.conve rters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k== ="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0? n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}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[i]]=d[i]);whil e(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type") );if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];e lse{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if (j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.e ach(b,function(b,e){c||bA.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+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c){var d,e,g=f.ajaxSettings.fla tOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a, e)}function bW(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j =h?h.length:0,k=a===bP,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"& &(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bW(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l= bW(a,c,d,e,"*",g));return l}function bV(a){return function(b,c){typeof b!="strin g"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bL),e=0,g=d.leng th,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h] ||[],i[j?"unshift":"push"](c)}}}function by(a,b,c){var d=b==="width"?a.offsetWid th:a.offsetHeight,e=b==="width"?bt:bu;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 =bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,functi on(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.c ss(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))|| 0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"s cript"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0* /")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"inpu t")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj) }function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.chec ked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"): "querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.no deType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAtt ributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;el se if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.sele cted=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defa ultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.valu e&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeTyp e===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g [h][i].namespace,g[h][i],g[h][i].data)}}}}function bf(a,b){return f.nodeName(a," table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.create Element("tbody")):a}function V(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(Q.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 U(a){retu rn!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="* "?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(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<s.length;i++)g=s[i],g.origType.replace(w,"")===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[j];for(i=0;i<s.length;i++){g=s[i];if(m.selecto r===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.relate dTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({e lem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.l evel>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handle Obj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagation Stopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}} return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={}, e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefau lt()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defe r",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.d ata(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").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 K(){if(!e.isReady) {try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready( )}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^ #<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s *\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/ "[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(? :\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/( msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/ ,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.protot ype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.pr ototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prot otype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nod eType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.bod y){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(ty peof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i. exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d .ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])], e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]) ,a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this, a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a); this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.j query?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.rea dy(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e .makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return t his.length},toArray:function(){return G.call(this,0)},get:function(a){return a== null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){v ar d=this.constructor();e.isArray(a)?F.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(),B.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 t his.pushStack(G.apply(this,arguments),"slice",G.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:F,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[0]||{},j=1,k=arguments.length,l=!1;typeof i=="bool ean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}), k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f= a[c];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[c]=e.extend(l,h,f)):f!==b&&( i[c]=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.rea dyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.is Ready){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.ready Wait>0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("r eady")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete ")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMCont entLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c. attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try {b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFuncti on: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):J[D.call(a)]||"object"},isPlainObject:funct ion(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a. constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isProtot ypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)}, isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){th row a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);i f(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(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseF romString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false ",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("pa rsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},glob alEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b )},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:functi on(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:func tion(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[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}el se if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a [g],g,a[g++])===!1)break;return a},trim:H?function(a){return a==null?"":H.call(a )}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:f unction(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)?F.call(c,a):e.merge(c,a)}return c },inArray:function(a,b){if(!b)return-1;if(I)return I.call(b,a);for(var c=0,d=b.l ength;c<d;c++)if(b[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<f;e++)a[d++]=c[e];else whi le(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c =!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);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[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i] ,i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.lengt h]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="stri ng"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=G.call(arguments,2),g =function(){return a.apply(c,f.concat(G.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(typeo f c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&& f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h); return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatc h: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[1]||"",version:b[2]||"0"}},sub: function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.super class=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=f unction(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.cal l(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each ("Boolean Number String Function Array Date RegExp Object".split(" "),function(a ,b){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser&&(e.browser[A .browser]=!0,e.browser.version=A.version),e.browser.webkit&&(e.browser.safari=!0 ),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?C=funct ion(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent&&( C=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",C),e .ready())});return e}(),g="done fail isResolved isRejected promise then always p ipe".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<h ;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i); k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c ){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return th is},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:fun ction(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Defer red:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function( a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,argu ments).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:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1], h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.pr omise)?h.promise().then(d.resolve,d.reject):d[g+"With"](this===b?d:this,[h])}):b [a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}va r c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cance l),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){retur n function(c){b[a]=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.prom ise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].p romise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith (g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("d iv"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("class Name","t"),a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;flo at:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("* "),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElem ent("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagNam e("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElement sByTagName("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,check On:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submi tBubbles:!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.disab led;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachE vent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.clo neNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAtt ribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","chec ked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild), k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.st yle.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.crea teElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margi n:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1 000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.f irstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.sty le&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWi dth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrink WrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;borde r:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u =q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliabl eHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultV iew.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.margin Right="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getCom putedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.r emoveChild(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[s]=="function"),k[t+"Bubbles"] =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.jque ry+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[f .expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptDa ta(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a [f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)retu rn;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.n oop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c): l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c )]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f. camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){ var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i] )return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l( d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.delet eExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop ),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a .removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f. data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName. toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.f n.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length ){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.subs tring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(fu nction(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=t his.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this [0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(f unction(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data (this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){r eturn 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:funct ion(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){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:f unction(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArra y(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.le ngth||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:functi on(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);retu rn this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f .dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(th is,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.qu eue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQue ue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m() {--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Defer red(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l= f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f ._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/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|disabl ed|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u,v;f.fn.exte nd({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]||a;return t his.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function (a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).ad dClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);f or(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.len gth===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.i ndexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeC lass: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[d];if(g.nodeTy pe===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.len gth;i<j;i++)h=h.replace(" "+c[i]+" "," ");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(c){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[g++])i=d?i:!h.hasClass(e),h[i?"addClass":" removeClass"](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[c].nodeType===1&&(" "+this[c].className+" ").r eplace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0] ;if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[ e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return type of d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);retur n 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,func tion(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.v alHooks[this.type];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[h];if(j.selected&&(f.support.optDisabled?!j.disab led:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.p arentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e .length)return f(e[c]).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:functi on(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.at trFn)return f(a)[c](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]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u& &(i=u)));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(c);return h===null?b:h},removeA ttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.remo veAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!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}}},value:{get: function(a,b){if(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.val ue:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a. value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","cla ss":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cel lPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frame Border",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.pro pFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a [c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:funct ion(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.val ue,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIn dex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d= a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){ var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribu te(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.butto n={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d. nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttri bute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height "],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c= ==""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each( ["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHook s[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.suppo rt.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.pare ntNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null }})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]= {get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each([ "radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:f unction(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});va r w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B= function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.node Type!==3&&a.nodeType!==8){if(d===!1)d=C;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.e vents,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,argume nts):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g): {handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.s lice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid) ;var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call( a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.att achEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.gui d)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){i f(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);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.eve nt.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){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(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j= 0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler, j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){ q=p[j];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[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,dele te 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.ind exOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shif t(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c== "object"?c[f.expando]?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.ca che,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigg er(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(c);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[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k. parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropaga tionStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o ._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e ,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h ,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:fun ction(c){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[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];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.resul t},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 relatedNod e relatedTarget screenX screenY shiftKey srcElement target toElement view wheelD elta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Even t(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.t arget=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a. relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElem ent:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocume nt||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scro llLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollT op||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.cha rCode!=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.b utton&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(thi s,M(a.origType,a.selector),f.extend({},a,{handler:L,guid:a.handler.guid}))},remo ve:function(a){f.event.remove(this,M(a.origType,a.selector),a)}},beforeunload:{s etup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:functio n(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.r emoveEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener( b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=functio n(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalE vent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValu e===!1||a.getPreventDefault&&a.getPreventDefault()?D:C):this.type=a,b&&f.extend( this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDef ault:function(){this.isDefaultPrevented=D;var a=this.originalEvent;!a||(a.preven tDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.i sPropagationStopped=D;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPro pagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmedi atePropagationStopped=D,this.stopPropagation()},isDefaultPrevented:C,isPropagati onStopped:C,isImmediatePropagationStopped:C};var E=function(a){var b=a.relatedTa rget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.even t.handle.apply(this,arguments),a.type=d))},F=function(a){a.type=a.data,f.event.h andle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout "},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.s elector?F:E,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?F:E)}}} ),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.no deName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.t arget,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="submit"||c ==="image")&&f(b).closest("form").length&&J("submit",this,arguments)}),f.event.a dd(this,"keypress.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"inpu t")||f.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&f(b).closest ("form").length&&a.keyCode===13&&J("submit",this,arguments)});else return!1},tea rdown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeB ubbles){var G,H=function(a){var b=f.nodeName(a,"input")?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},I=function(c){var d=c.target,e,g;if(!!x.test(d .nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout" ||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=nu ll||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event. special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a .target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeNa me(b,"select"))&&I.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")&&I.call(this,a)},beforea ctivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:functi on(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".speci alChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remov e(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change .filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focus in",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.pre ventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventLi stener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f .each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="o bject"){for(var h in a)this[c](h,d,a[h],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<j;i++)f.event.add(this[i],a,g,d);return thi s}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault) for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.even t.remove(this[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("liv e"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.ev ent.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event. trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d =0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"last Toggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e. guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){ return this.mouseenter(a).mouseleave(b||a)}});var K={focus:"focusin",blur:"focus out",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],functio n(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(t his.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a [o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return th is}if(d===!1||f.isFunction(d))e=d||C,d=b;a=(a||"").split(" ");while((h=a[i++])!= null){j=w.exec(h),k="",j&&(k=j[0],h=h.replace(w,""));if(h==="hover"){a.push("mou seenter"+k,"mouseleave"+k);continue}l=h,K[h]?(a.push(K[h]+k),h=h+k):h=(K[h]||h)+ k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+M(h,m),{ data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind(" live."+M(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mous eenter mouseleave change select submit keydown keypress keyup error".split(" "), function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.lengt h>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){fu nction u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1; i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];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.fi lter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache ===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nod eName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^ ()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[> +~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g ,j=/\W/;[0,0].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[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m. exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0 ]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j =v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match .ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set )[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x [0]==="~"||x[0]==="+")&&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[r]?s =x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.erro r(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nod eType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains (d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.p ush(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=fun ction(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.sp lice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matches Selector=function(a,b){return k(b,null,null,[a]).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[e]; if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!== "\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l .match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getEle mentsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g ,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter) if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.s plice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[ n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for( var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s] =!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)retu rn[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=func tion(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={ord er:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?: [\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"] *\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(# ?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/ ,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*) ?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d *)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\) ]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFo r"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a) {return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="st ring",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f< g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeN ame.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[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}el se{for(;e<f;e++)c=a[e],c&&(a[e]=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.t oLowerCase(),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("previousSibl ing",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefine d"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:functi on(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByNa me(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push (d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByT agName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:funct ion(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g ])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," "). indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].r eplace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:f unction(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"") ;var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+ 1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a [2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1] .replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").repla ce(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){i f(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null ,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else i f(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:functi on(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:func tion(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.s electedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},em pty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).lengt h},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.ge tAttribute("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()==="inp ut"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="in put"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="i nput"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();re turn(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.n odeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nod eName.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.n odeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilter s:{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:funct ion(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b ,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:fun ction(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains ")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e== ="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0} k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){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[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.si zcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeTy pe===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"))+" ").ind exOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a [c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];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){v ar e=b[2],f=l.setFilters[e];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[o]=new RegExp(l.match[o].so urce+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n) *?)/.source+l.match[o].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)[0].nodeType}catch(q){p=func tion(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.a pply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[ c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareD ocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPos ition||!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.parent Node;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k] ,f[k]);return k===c?s(a,f[k],-1):s(e[k],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.ge tText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeT ype===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},fu nction(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.docume ntElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getEl ementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined" &&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNo de!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.I D=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.get ElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsBy TagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d. push(c[e]);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.quer ySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.inner HTML="<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\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])re turn p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassN ame)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"& &e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i. parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySel ectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="ob ject"){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("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m. removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),f unction(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.w ebkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("d iv"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0 }k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");i f(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c );if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c, null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML ="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassN ame&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.ge tElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.C LASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains =function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.co mpareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPositio n(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDo cument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b ){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a. replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g+ +)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.ex pr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains= k.contains}();var N=/Until$/,O=/^(?:parents|prevUntil|prevAll)/,P=/,/,Q=/^.[^:#\ [\.,]*$/,R=Array.prototype.slice,S=f.expr.match.POS,T={children:!0,contents:!0,n ext:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="strin g")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],t his))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[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g; i++)if(e[i]===e[h]){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<c;a++)if(f.contains(this, b[a]))return!0})},not:function(a){return this.pushStack(V(this,a,!1),"not",a)},f ilter:function(a){return this.pushStack(V(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[0];if(f.isArray(a)){var h,i,j={},k =1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=S.test(i)?f(i,b ||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(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=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e =this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelect or(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeTy pe===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)}, index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length :-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jque ry?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a &&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0 ])?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},parent s: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.di r(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextU ntil: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.par entNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},cont ents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindo w.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e =f.map(this,b,c),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e= f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&& O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({f ilter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSel ector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c] ;while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e .push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])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 W=/ jQuery\d+="(? :\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([ \w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|object |embed|option|style)/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,bc=/\/(java|ecma)s cript/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)/,be={option:[1,"<select multiple='multiple' >","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</tabl e>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr ></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></tabl e>"],area:[1,"<map>","</map>"],_default:[0,"",""]};be.optgroup=be.option,be.tbod y=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize|| (be._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunct ion(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[0]&&this[0].ow nerDocument||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[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b .insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstCh ild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:f unction(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.c all(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.nodeNam e(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){ return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChil d(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.no deType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0] &&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNo de.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.appl y(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function (){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){ this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=th is.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());r eturn a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filt er(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f .cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:fu nction(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getE lementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return thi s},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){r eturn f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nod eType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a )&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowe rCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[ c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHT ML=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[0]&&this[0].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(c).appen d(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){v ar e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j= ="string"&&bb.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});i f(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e, c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parent Node&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.b uildFragment(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<m;l+ +)d.call(c?bf(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.len gth&&f.each(k,bl)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&& b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1& &typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!ba.test(a [0])&&(f.support.checkClone||!bb.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1 &&(e=h)),e||(e=i.createDocumentFragment(),f.clean t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,dele te 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.ind exOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shif t(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c== "object"?c[f.expando]?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.ca che,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigg er(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(c);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[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k. parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropaga tionStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o ._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e ,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h ,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:fun ction(c){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[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];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.resul t},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 relatedNod e relatedTarget screenX screenY shiftKey srcElement target toElement view wheelD elta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Even t(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.t arget=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a. relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElem ent:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocume nt||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scro llLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollT op||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.cha rCode!=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.b utton&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(thi s,M(a.origType,a.selector),f.extend({},a,{handler:L,guid:a.handler.guid}))},remo ve:function(a){f.event.remove(this,M(a.origType,a.selector),a)}},beforeunload:{s etup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:functio n(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.r emoveEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener( b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=functio n(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalE vent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValu e===!1||a.getPreventDefault&&a.getPreventDefault()?D:C):this.type=a,b&&f.extend( this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDef ault:function(){this.isDefaultPrevented=D;var a=this.originalEvent;!a||(a.preven tDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.i sPropagationStopped=D;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPro pagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmedi atePropagationStopped=D,this.stopPropagation()},isDefaultPrevented:C,isPropagati onStopped:C,isImmediatePropagationStopped:C};var E=function(a){var b=a.relatedTa rget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.even t.handle.apply(this,arguments),a.type=d))},F=function(a){a.type=a.data,f.event.h andle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout "},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.s elector?F:E,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?F:E)}}} ),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.no deName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.t arget,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="submit"||c ==="image")&&f(b).closest("form").length&&J("submit",this,arguments)}),f.event.a dd(this,"keypress.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"inpu t")||f.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&f(b).closest ("form").length&&a.keyCode===13&&J("submit",this,arguments)});else return!1},tea rdown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeB ubbles){var G,H=function(a){var b=f.nodeName(a,"input")?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},I=function(c){var d=c.target,e,g;if(!!x.test(d .nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout" ||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=nu ll||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event. special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a .target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeNa me(b,"select"))&&I.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")&&I.call(this,a)},beforea ctivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:functi on(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".speci alChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remov e(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change .filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focus in",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.pre ventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventLi stener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f .each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="o bject"){for(var h in a)this[c](h,d,a[h],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<j;i++)f.event.add(this[i],a,g,d);return thi s}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault) for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.even t.remove(this[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("liv e"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.ev ent.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event. trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d =0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"last Toggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e. guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){ return this.mouseenter(a).mouseleave(b||a)}});var K={focus:"focusin",blur:"focus out",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],functio n(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(t his.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a [o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return th is}if(d===!1||f.isFunction(d))e=d||C,d=b;a=(a||"").split(" ");while((h=a[i++])!= null){j=w.exec(h),k="",j&&(k=j[0],h=h.replace(w,""));if(h==="hover"){a.push("mou seenter"+k,"mouseleave"+k);continue}l=h,K[h]?(a.push(K[h]+k),h=h+k):h=(K[h]||h)+ k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+M(h,m),{ data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind(" live."+M(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mous eenter mouseleave change select submit keydown keypress keyup error".split(" "), function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.lengt h>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){fu nction u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1; i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];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.fi lter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache ===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nod eName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^ ()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[> +~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g ,j=/\W/;[0,0].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[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m. exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0 ]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j =v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match .ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set )[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x [0]==="~"||x[0]==="+")&&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[r]?s =x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.erro r(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nod eType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains (d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.p ush(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=fun ction(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.sp lice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matches Selector=function(a,b){return k(b,null,null,[a]).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[e]; if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!== "\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l .match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getEle mentsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g ,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter) if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.s plice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[ n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for( var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s] =!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)retu rn[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=func tion(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={ord er:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?: [\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"] *\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(# ?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/ ,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*) ?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d *)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\) ]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFo r"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a) {return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="st ring",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f< g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeN ame.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[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}el se{for(;e<f;e++)c=a[e],c&&(a[e]=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.t oLowerCase(),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("previousSibl ing",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefine d"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:functi on(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByNa me(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push (d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByT agName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:funct ion(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g ])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," "). indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].r eplace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:f unction(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"") ;var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+ 1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a [2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1] .replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").repla ce(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){i f(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null ,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else i f(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:functi on(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:func tion(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.s electedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},em pty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).lengt h},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.ge tAttribute("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()==="inp ut"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="in put"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="i nput"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();re turn(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.n odeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nod eName.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.n odeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilter s:{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:funct ion(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b ,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:fun ction(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains ")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e== ="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0} k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){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[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.si zcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeTy pe===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"))+" ").ind exOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a [c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];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){v ar e=b[2],f=l.setFilters[e];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[o]=new RegExp(l.match[o].so urce+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n) *?)/.source+l.match[o].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)[0].nodeType}catch(q){p=func tion(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.a pply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[ c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareD ocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPos ition||!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.parent Node;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k] ,f[k]);return k===c?s(a,f[k],-1):s(e[k],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.ge tText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeT ype===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},fu nction(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.docume ntElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getEl ementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined" &&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNo de!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.I D=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.get ElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsBy TagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d. push(c[e]);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.quer ySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.inner HTML="<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\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])re turn p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassN ame)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"& &e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i. parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySel ectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="ob ject"){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("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m. removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),f unction(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.w ebkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("d iv"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0 }k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");i f(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c );if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c, null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML ="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassN ame&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.ge tElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.C LASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains =function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.co mpareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPositio n(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDo cument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b ){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a. replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g+ +)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.ex pr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains= k.contains}();var N=/Until$/,O=/^(?:parents|prevUntil|prevAll)/,P=/,/,Q=/^.[^:#\ [\.,]*$/,R=Array.prototype.slice,S=f.expr.match.POS,T={children:!0,contents:!0,n ext:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="strin g")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],t his))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[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g; i++)if(e[i]===e[h]){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<c;a++)if(f.contains(this, b[a]))return!0})},not:function(a){return this.pushStack(V(this,a,!1),"not",a)},f ilter:function(a){return this.pushStack(V(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[0];if(f.isArray(a)){var h,i,j={},k =1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=S.test(i)?f(i,b ||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(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=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e =this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelect or(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeTy pe===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)}, index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length :-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jque ry?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a &&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0 ])?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},parent s: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.di r(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextU ntil: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.par entNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},cont ents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindo w.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e =f.map(this,b,c),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e= f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&& O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({f ilter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSel ector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c] ;while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e .push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])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 W=/ jQuery\d+="(? :\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([ \w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|object |embed|option|style)/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,bc=/\/(java|ecma)s cript/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)/,be={option:[1,"<select multiple='multiple' >","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</tabl e>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr ></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></tabl e>"],area:[1,"<map>","</map>"],_default:[0,"",""]};be.optgroup=be.option,be.tbod y=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize|| (be._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunct ion(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[0]&&this[0].ow nerDocument||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[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b .insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstCh ild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:f unction(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.c all(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.nodeNam e(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){ return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChil d(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.no deType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0] &&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNo de.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.appl y(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function (){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){ this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=th is.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());r eturn a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filt er(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f .cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:fu nction(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getE lementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return thi s},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){r eturn f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nod eType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a )&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowe rCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[ c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHT ML=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[0]&&this[0].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(c).appen d(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){v ar e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j= ="string"&&bb.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});i f(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e, c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parent Node&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.b uildFragment(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<m;l+ +)d.call(c?bf(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.len gth&&f.each(k,bl)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&& b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1& &typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!ba.test(a [0])&&(f.support.checkClone||!bb.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1 &&(e=h)),e||(e=i.createDocumentFragment(),f.clean
(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragme nts={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",inser tAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d =[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childN odes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length; h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}retur n this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.clon eNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.node Type===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h] ;++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg (e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.cr eateElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h =[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)contin ue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y, "<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n= m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if (!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild. childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.node Name(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}! f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k )[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&ty peof (r=k.length)=="number")for(i=0;i<r;i++)bk(k[i]);else bk(k);k.nodeType?h.pus h(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bc.test(a.type)};for(j=0; h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()== ="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j ]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g );h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:f unction(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExp ando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowe rCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.h andle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.ex pando),delete d[c]}}}});var bm=/alpha\([^)]*\)/i,bn=/opacity=([^)]*)/,bo=/([A-Z] |^ms)/g,bp=/^-?\d+(?:px)?$/i,bq=/^-?\d/,br=/^([\-+])=([\-+.\de]+)/,bs={position: "absolute",visibility:"hidden",display:"block"},bt=["Left","Right"],bu=["Top","B ottom"],bv,bw,bx;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return th is;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=bv(a,"opacit y","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpaci ty:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom :!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:functio n(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelC ase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&( g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=br.exec(d) )&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number "&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)| |(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.came lCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"g et"in g&&(e=g.get(a,!0,d))!==b)return e;if(bv)return bv(a,c)},swap:function(a,b, c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b) a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssH ooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return by(a,b,d);f .swap(a,bs,function(){e=by(a,b,d)});return e}},set:function(a,b){if(!bp.test(b)) return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHook s.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.fi lter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a, b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d &&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.remo veAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,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=bv(a," margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView &&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$ 1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getCompute dStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.docum entElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=f unction(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runti meStyle[b],f=a.style;!bp.test(d)&&bq.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}),bv=bw||bx,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 bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^ \r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|num ber|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-stor age|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ= /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i ,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/ ,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.cre ateElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.exte nd({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,argument s);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.l ength);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="objec t"&&(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.isRes olved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bJ,"")). find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.p aram(this.serializeArray())},serializeArray:function(){return this.map(function( ){return this.elements?f.makeArray(this.elements):this}).filter(function(){retur n this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this .type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c) ?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b. name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxCompl ete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a) {return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d, e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,succes s: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?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{ur l:bR,isLocal:bF.test(bS[1]),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","* ":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"response XML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text jso n":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefi lter:bV(bP),ajaxTransport:bV(bQ),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>0?4:0;var o,r,u,w=c,x=l?bZ(d ,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader ("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k] =z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){ w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusT ext=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j) ,j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w ]),t&&(g.trigger("ajaxComplete",[v,d]),--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,setRequestHeade r:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this}, getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function (a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c= o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeT ype=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return t his}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCod e=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status], v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+" //"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain== null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[ 2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data& &d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)), bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasConte nt=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasCon tent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if( d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI. test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.co ntentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k| |d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[ k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader ("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d .dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v. setRequestHeader(u,d.headers[u]);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[u](d[u]);p =bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxS end",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d .timeout));try{s=1,p.send(l,w)}catch(z){s<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[d.length]=encod eURIComponent(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[g],c,e);return d.join("&").replace(bz, "+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(& |$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expan do+"_"+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[0] ==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpC allback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],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[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i) &&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not cal led");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts: {script:"text/javascript, application/javascript, application/ecmascript, applic ation/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",funct ion(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.a jaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElement sByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createEle ment("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.sr c=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)},abor t:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a i n cd)cd[a](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(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){v ar 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[j]=c.xhrFields [j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomai n&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=fun ction(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystate change=f.noop,cb&&delete cd[i]);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.cross Domain?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[i]=d), h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(? :toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","mar ginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marg inRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:functio n(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0 ,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisp lay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f ._data(d,"olddisplay",cr(d.nodeName)));for(g=0;g<h;g++){d=this[g];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(cq("hide",3 ),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d] ,"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisp lay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return thi s},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunc tion(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)[b?"show":"hide"]()}):this.an imate(cq("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.fi lter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animat e:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each( e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](funct ion(){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[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedPrope rties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEas ing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.cal l(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.st yle.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this ,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cr(this.nodeName),j===" inline"?this.style.display="inline-block":(this.style.display="inline",this.styl e.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.ove rflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle" ?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.c ssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.st yle(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-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[c].elem===this&&(b&&a[c]( !0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cq("show ",1),slideUp:cq("hide",1),slideToggle:cq("toggle",1),fadeIn:{opacity:"show"},fad eOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=funct ion(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,dur ation:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.dura tion=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]: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},e asing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Ma th.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.e lem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.op tions.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop ]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!th is.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];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 g(a){return d.step(a)}var d=this,e=f.fx;this .startTime=cn||co(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber [this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem, g()&&f.timers.push(g)&&!cl&&(cl=setInterval(e.tick,e.interval))},show:function() {this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0, this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.ele m).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.p rop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn|| co(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){thi s.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.pro p]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e .overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){ d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for( var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1 }e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,thi s.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),thi s.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.exte nd(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice( b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=n ull},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[a.prop]! =null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now ):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters .animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).len gth});var cs=/^t(?:able|d|h)$/i,ct=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each( function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;i f(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClie ntRect()}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=cu(e),j=g.cl ientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.suppo rt.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scr ollLeft||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[0];if(a)return this.each(function(b){f.offset.setOffset( this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)retu rn f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.o wnerDocument,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.g etComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+ =b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorder ForTableAndCells||!cs.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+= parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorder ForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)| |0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.positi on==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.p osition==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLef t,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.b ody,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<d iv 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;' cellpaddi ng='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"a bsolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hid den"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChil d,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,th is.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.styl e.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.sty le.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative" ,this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeM arginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},b odyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.o ffset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0, c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:functio n(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");v ar e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d== ="fixed")&&f.inArray("auto",[h,i])>-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),"us ing"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[ 0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0 ].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[0],"bord erTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top :c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(functi on(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"pos ition")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function (a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)ret urn null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.s upport.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return t his.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrol lTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCa se();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css (a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.sty le?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=th is[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(functio n(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.docum ent.documentElement["client"+c],h=e.document.body;return e.document.compatMode== ="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.docume ntElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["o ffset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat (i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQ uery=a.$=f})(window); (a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragme nts={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",inser tAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d =[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childN odes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length; h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}retur n this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.clon eNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.node Type===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h] ;++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg (e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.cr eateElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h =[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)contin ue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y, "<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n= m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if (!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild. childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.node Name(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}! f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k )[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&ty peof (r=k.length)=="number")for(i=0;i<r;i++)bk(k[i]);else bk(k);k.nodeType?h.pus h(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bc.test(a.type)};for(j=0; h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()== ="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j ]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g );h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:f unction(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExp ando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowe rCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.h andle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.ex pando),delete d[c]}}}});var bm=/alpha\([^)]*\)/i,bn=/opacity=([^)]*)/,bo=/([A-Z] |^ms)/g,bp=/^-?\d+(?:px)?$/i,bq=/^-?\d/,br=/^([\-+])=([\-+.\de]+)/,bs={position: "absolute",visibility:"hidden",display:"block"},bt=["Left","Right"],bu=["Top","B ottom"],bv,bw,bx;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return th is;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=bv(a,"opacit y","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpaci ty:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom :!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:functio n(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelC ase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&( g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=br.exec(d) )&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number "&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)| |(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.came lCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"g et"in g&&(e=g.get(a,!0,d))!==b)return e;if(bv)return bv(a,c)},swap:function(a,b, c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b) a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssH ooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return by(a,b,d);f .swap(a,bs,function(){e=by(a,b,d)});return e}},set:function(a,b){if(!bp.test(b)) return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHook s.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.fi lter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a, b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d &&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.remo veAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,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=bv(a," margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView &&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$ 1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getCompute dStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.docum entElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=f unction(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runti meStyle[b],f=a.style;!bp.test(d)&&bq.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}),bv=bw||bx,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 bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^ \r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|num ber|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-stor age|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ= /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i ,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/ ,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.cre ateElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.exte nd({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,argument s);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.l ength);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="objec t"&&(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.isRes olved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bJ,"")). find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.p aram(this.serializeArray())},serializeArray:function(){return this.map(function( ){return this.elements?f.makeArray(this.elements):this}).filter(function(){retur n this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this .type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c) ?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b. name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxCompl ete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a) {return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d, e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,succes s: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?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{ur l:bR,isLocal:bF.test(bS[1]),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","* ":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"response XML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text jso n":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefi lter:bV(bP),ajaxTransport:bV(bQ),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>0?4:0;var o,r,u,w=c,x=l?bZ(d ,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader ("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k] =z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){ w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusT ext=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j) ,j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w ]),t&&(g.trigger("ajaxComplete",[v,d]),--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,setRequestHeade r:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this}, getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function (a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c= o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeT ype=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return t his}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCod e=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status], v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+" //"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain== null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[ 2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data& &d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)), bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasConte nt=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasCon tent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if( d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI. test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.co ntentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k| |d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[ k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader ("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d .dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v. setRequestHeader(u,d.headers[u]);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[u](d[u]);p =bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxS end",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d .timeout));try{s=1,p.send(l,w)}catch(z){s<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[d.length]=encod eURIComponent(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[g],c,e);return d.join("&").replace(bz, "+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(& |$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expan do+"_"+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[0] ==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpC allback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],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[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i) &&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not cal led");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts: {script:"text/javascript, application/javascript, application/ecmascript, applic ation/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",funct ion(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.a jaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElement sByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createEle ment("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.sr c=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)},abor t:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a i n cd)cd[a](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(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){v ar 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[j]=c.xhrFields [j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomai n&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=fun ction(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystate change=f.noop,cb&&delete cd[i]);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.cross Domain?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[i]=d), h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(? :toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","mar ginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marg inRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:functio n(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0 ,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisp lay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f ._data(d,"olddisplay",cr(d.nodeName)));for(g=0;g<h;g++){d=this[g];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(cq("hide",3 ),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d] ,"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisp lay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return thi s},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunc tion(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)[b?"show":"hide"]()}):this.an imate(cq("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.fi lter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animat e:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each( e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](funct ion(){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[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedPrope rties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEas ing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.cal l(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.st yle.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this ,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cr(this.nodeName),j===" inline"?this.style.display="inline-block":(this.style.display="inline",this.styl e.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.ove rflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle" ?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.c ssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.st yle(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-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[c].elem===this&&(b&&a[c]( !0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cq("show ",1),slideUp:cq("hide",1),slideToggle:cq("toggle",1),fadeIn:{opacity:"show"},fad eOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=funct ion(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,dur ation:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.dura tion=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]: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},e asing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Ma th.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.e lem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.op tions.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop ]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!th is.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];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 g(a){return d.step(a)}var d=this,e=f.fx;this .startTime=cn||co(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber [this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem, g()&&f.timers.push(g)&&!cl&&(cl=setInterval(e.tick,e.interval))},show:function() {this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0, this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.ele m).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.p rop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn|| co(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){thi s.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.pro p]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e .overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){ d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for( var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1 }e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,thi s.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),thi s.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.exte nd(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice( b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=n ull},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[a.prop]! =null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now ):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters .animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).len gth});var cs=/^t(?:able|d|h)$/i,ct=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each( function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;i f(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClie ntRect()}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=cu(e),j=g.cl ientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.suppo rt.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scr ollLeft||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[0];if(a)return this.each(function(b){f.offset.setOffset( this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)retu rn f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.o wnerDocument,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.g etComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+ =b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorder ForTableAndCells||!cs.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+= parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorder ForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)| |0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.positi on==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.p osition==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLef t,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.b ody,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<d iv 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;' cellpaddi ng='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"a bsolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hid den"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChil d,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,th is.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.styl e.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.sty le.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative" ,this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeM arginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},b odyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.o ffset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0, c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:functio n(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");v ar e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d== ="fixed")&&f.inArray("auto",[h,i])>-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),"us ing"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[ 0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0 ].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[0],"bord erTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top :c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(functi on(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"pos ition")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function (a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)ret urn null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.s upport.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return t his.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrol lTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCa se();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css (a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.sty le?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=th is[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(functio n(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.docum ent.documentElement["client"+c],h=e.document.body;return e.document.compatMode== ="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.docume ntElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["o ffset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat (i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQ uery=a.$=f})(window);
/* End of jquery */ /* End of jquery */
skipping to change at line 2690 skipping to change at line 2206
"updateDnD"&&c.p.jqgdnd===true)i();else{b=a.extend({drag:function(d){return a.ex tend({start:function(e,h){if(c.p.subGrid){var j=a(h.helper).attr("id");try{a(c). jqGrid("collapseSubGridRow",j)}catch(l){}}for(j=0;j<a.data(c,"dnd").connectWith. length;j++)a(a.data(c,"dnd").connectWith[j]).jqGrid("getGridParam","reccount")== "0"&&a(a.data(c,"dnd").connectWith[j]).jqGrid("addRowData","jqg_empty_row",{});h .helper.addClass("ui-state-highlight");a("td",h.helper).each(function(m){this.st yle.width=c.grid.headers[m].width+ "updateDnD"&&c.p.jqgdnd===true)i();else{b=a.extend({drag:function(d){return a.ex tend({start:function(e,h){if(c.p.subGrid){var j=a(h.helper).attr("id");try{a(c). jqGrid("collapseSubGridRow",j)}catch(l){}}for(j=0;j<a.data(c,"dnd").connectWith. length;j++)a(a.data(c,"dnd").connectWith[j]).jqGrid("getGridParam","reccount")== "0"&&a(a.data(c,"dnd").connectWith[j]).jqGrid("addRowData","jqg_empty_row",{});h .helper.addClass("ui-state-highlight");a("td",h.helper).each(function(m){this.st yle.width=c.grid.headers[m].width+
"px"});d.onstart&&a.isFunction(d.onstart)&&d.onstart.call(a(c),e,h)},stop:functi on(e,h){if(h.helper.dropped){var j=a(h.helper).attr("id");a(c).jqGrid("delRowDat a",j)}for(j=0;j<a.data(c,"dnd").connectWith.length;j++)a(a.data(c,"dnd").connect With[j]).jqGrid("delRowData","jqg_empty_row");d.onstop&&a.isFunction(d.onstop)&& d.onstop.call(a(c),e,h)}},d.drag_opts||{})},drop:function(d){return a.extend({ac cept:function(e){var h=a(e).closest("table.ui-jqgrid-btable");if(a.data(h[0],"dn d")!==undefined){e=a.data(h[0], "px"});d.onstart&&a.isFunction(d.onstart)&&d.onstart.call(a(c),e,h)},stop:functi on(e,h){if(h.helper.dropped){var j=a(h.helper).attr("id");a(c).jqGrid("delRowDat a",j)}for(j=0;j<a.data(c,"dnd").connectWith.length;j++)a(a.data(c,"dnd").connect With[j]).jqGrid("delRowData","jqg_empty_row");d.onstop&&a.isFunction(d.onstop)&& d.onstop.call(a(c),e,h)}},d.drag_opts||{})},drop:function(d){return a.extend({ac cept:function(e){var h=a(e).closest("table.ui-jqgrid-btable");if(a.data(h[0],"dn d")!==undefined){e=a.data(h[0],
"dnd").connectWith;return a.inArray("#"+this.id,e)!=-1?true:false}return e},drop :function(e,h){var j=a(h.draggable).attr("id");j=a("#"+c.id).jqGrid("getRowData" ,j);if(!d.dropbyname){var l=0,m={},n,f=a("#"+this.id).jqGrid("getGridParam","col Model");try{for(var k in j){if(j.hasOwnProperty(k)&&f[l]){n=f[l].name;m[n]=j[k]} l++}j=m}catch(p){}}h.helper.dropped=true;if(d.beforedrop&&a.isFunction(d.befored rop)){n=d.beforedrop.call(this,e,h,j,a("#"+c.id),a(this));if(typeof n!="undefine d"&&n!==null&&typeof n== "dnd").connectWith;return a.inArray("#"+this.id,e)!=-1?true:false}return e},drop :function(e,h){var j=a(h.draggable).attr("id");j=a("#"+c.id).jqGrid("getRowData" ,j);if(!d.dropbyname){var l=0,m={},n,f=a("#"+this.id).jqGrid("getGridParam","col Model");try{for(var k in j){if(j.hasOwnProperty(k)&&f[l]){n=f[l].name;m[n]=j[k]} l++}j=m}catch(p){}}h.helper.dropped=true;if(d.beforedrop&&a.isFunction(d.befored rop)){n=d.beforedrop.call(this,e,h,j,a("#"+c.id),a(this));if(typeof n!="undefine d"&&n!==null&&typeof n==
"object")j=n}if(h.helper.dropped){var o;if(d.autoid)if(a.isFunction(d.autoid))o= d.autoid.call(this,j);else{o=Math.ceil(Math.random()*1E3);o=d.autoidprefix+o}a(" #"+this.id).jqGrid("addRowData",o,j,d.droppos)}d.ondrop&&a.isFunction(d.ondrop)& &d.ondrop.call(this,e,h,j)}},d.drop_opts||{})},onstart:null,onstop:null,beforedr op:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-stat e-hover"},drag_opts:{revert:"invalid",helper:"clone",cursor:"move",appendTo:"#jq grid_dnd",zIndex:5E3}, "object")j=n}if(h.helper.dropped){var o;if(d.autoid)if(a.isFunction(d.autoid))o= d.autoid.call(this,j);else{o=Math.ceil(Math.random()*1E3);o=d.autoidprefix+o}a(" #"+this.id).jqGrid("addRowData",o,j,d.droppos)}d.ondrop&&a.isFunction(d.ondrop)& &d.ondrop.call(this,e,h,j)}},d.drop_opts||{})},onstart:null,onstop:null,beforedr op:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-stat e-hover"},drag_opts:{revert:"invalid",helper:"clone",cursor:"move",appendTo:"#jq grid_dnd",zIndex:5E3},
dropbyname:false,droppos:"first",autoid:true,autoidprefix:"dnd_"},b||{});if(b.co nnectWith){b.connectWith=b.connectWith.split(",");b.connectWith=a.map(b.connectW ith,function(d){return a.trim(d)});a.data(c,"dnd",b);c.p.reccount!="0"&&!c.p.jqg dnd&&i();c.p.jqgdnd=true;for(var g=0;g<b.connectWith.length;g++)a(b.connectWith[ g]).droppable(a.isFunction(b.drop)?b.drop.call(a(c),b):b.drop)}}}})},gridResize: function(b){return this.each(function(){var i=this;if(i.grid&&a.fn.resizable){b= a.extend({},b||{});if(b.alsoResize){b._alsoResize_= dropbyname:false,droppos:"first",autoid:true,autoidprefix:"dnd_"},b||{});if(b.co nnectWith){b.connectWith=b.connectWith.split(",");b.connectWith=a.map(b.connectW ith,function(d){return a.trim(d)});a.data(c,"dnd",b);c.p.reccount!="0"&&!c.p.jqg dnd&&i();c.p.jqgdnd=true;for(var g=0;g<b.connectWith.length;g++)a(b.connectWith[ g]).droppable(a.isFunction(b.drop)?b.drop.call(a(c),b):b.drop)}}}})},gridResize: function(b){return this.each(function(){var i=this;if(i.grid&&a.fn.resizable){b= a.extend({},b||{});if(b.alsoResize){b._alsoResize_=
b.alsoResize;delete b.alsoResize}else b._alsoResize_=false;if(b.stop&&a.isFuncti on(b.stop)){b._stop_=b.stop;delete b.stop}else b._stop_=false;b.stop=function(c, g){a(i).jqGrid("setGridParam",{height:a("#gview_"+i.p.id+" .ui-jqgrid-bdiv").hei ght()});a(i).jqGrid("setGridWidth",g.size.width,b.shrinkToFit);b._stop_&&b._stop _.call(i,c,g)};b.alsoResize=b._alsoResize_?eval("("+("{'#gview_"+i.p.id+" .ui-jq grid-bdiv':true,'"+b._alsoResize_+"':true}")+")"):a(".ui-jqgrid-bdiv","#gview_"+ i.p.id);delete b._alsoResize_; b.alsoResize;delete b.alsoResize}else b._alsoResize_=false;if(b.stop&&a.isFuncti on(b.stop)){b._stop_=b.stop;delete b.stop}else b._stop_=false;b.stop=function(c, g){a(i).jqGrid("setGridParam",{height:a("#gview_"+i.p.id+" .ui-jqgrid-bdiv").hei ght()});a(i).jqGrid("setGridWidth",g.size.width,b.shrinkToFit);b._stop_&&b._stop _.call(i,c,g)};b.alsoResize=b._alsoResize_?eval("("+("{'#gview_"+i.p.id+" .ui-jq grid-bdiv':true,'"+b._alsoResize_+"':true}")+")"):a(".ui-jqgrid-bdiv","#gview_"+ i.p.id);delete b._alsoResize_;
a("#gbox_"+i.p.id).resizable(b)}})}})})(jQuery); a("#gbox_"+i.p.id).resizable(b)}})}})})(jQuery);
/* End of jqgrid */ /* End of jqgrid */
/* Start of excanvas */
// Copyright 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
document.createElement("canvas").getContext||(function(){var s=Math,j=s.round,F=
s.sin,G=s.cos,V=s.abs,W=s.sqrt,k=10,v=k/2;function X(){return this.context_||(th
is.context_=new H(this))}var L=Array.prototype.slice;function Y(b,a){var c=L.cal
l(arguments,2);return function(){return b.apply(a,c.concat(L.call(arguments)))}}
var M={init:function(b){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var
a=b||document;a.createElement("canvas");a.attachEvent("onreadystatechange",Y(thi
s.init_,this,a))}},init_:function(b){b.namespaces.g_vml_||
b.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");b.name
spaces.g_o_||b.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","
#default#VML");if(!b.styleSheets.ex_canvas_){var a=b.createStyleSheet();a.owning
Element.id="ex_canvas_";a.cssText="canvas{display:inline-block;overflow:hidden;t
ext-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_
o_\\:*{behavior:url(#default#VML)}"}var c=b.getElementsByTagName("canvas"),d=0;f
or(;d<c.length;d++)this.initElement(c[d])},
initElement:function(b){if(!b.getContext){b.getContext=X;b.innerHTML="";b.attach
Event("onpropertychange",Z);b.attachEvent("onresize",$);var a=b.attributes;if(a.
width&&a.width.specified)b.style.width=a.width.nodeValue+"px";else b.width=b.cli
entWidth;if(a.height&&a.height.specified)b.style.height=a.height.nodeValue+"px";
else b.height=b.clientHeight}return b}};function Z(b){var a=b.srcElement;switch(
b.propertyName){case "width":a.style.width=a.attributes.width.nodeValue+"px";a.g
etContext().clearRect();
break;case "height":a.style.height=a.attributes.height.nodeValue+"px";a.getConte
xt().clearRect();break}}function $(b){var a=b.srcElement;if(a.firstChild){a.firs
tChild.style.width=a.clientWidth+"px";a.firstChild.style.height=a.clientHeight+"
px"}}M.init();var N=[],B=0;for(;B<16;B++){var C=0;for(;C<16;C++)N[B*16+C]=B.toSt
ring(16)+C.toString(16)}function I(){return[[1,0,0],[0,1,0],[0,0,1]]}function y(
b,a){var c=I(),d=0;for(;d<3;d++){var f=0;for(;f<3;f++){var h=0,g=0;for(;g<3;g++)
h+=b[d][g]*a[g][f];c[d][f]=
h}}return c}function O(b,a){a.fillStyle=b.fillStyle;a.lineCap=b.lineCap;a.lineJo
in=b.lineJoin;a.lineWidth=b.lineWidth;a.miterLimit=b.miterLimit;a.shadowBlur=b.s
hadowBlur;a.shadowColor=b.shadowColor;a.shadowOffsetX=b.shadowOffsetX;a.shadowOf
fsetY=b.shadowOffsetY;a.strokeStyle=b.strokeStyle;a.globalAlpha=b.globalAlpha;a.
arcScaleX_=b.arcScaleX_;a.arcScaleY_=b.arcScaleY_;a.lineScale_=b.lineScale_}func
tion P(b){var a,c=1;b=String(b);if(b.substring(0,3)=="rgb"){var d=b.indexOf("(",
3),f=b.indexOf(")",d+
1),h=b.substring(d+1,f).split(",");a="#";var g=0;for(;g<3;g++)a+=N[Number(h[g])]
;if(h.length==4&&b.substr(3,1)=="a")c=h[3]}else a=b;return{color:a,alpha:c}}func
tion aa(b){switch(b){case "butt":return"flat";case "round":return"round";case "s
quare":default:return"square"}}function H(b){this.m_=I();this.mStack_=[];this.aS
tack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWi
dth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=k*1;this.globalA
lpha=1;this.canvas=b;
var a=b.ownerDocument.createElement("div");a.style.width=b.clientWidth+"px";a.st
yle.height=b.clientHeight+"px";a.style.overflow="hidden";a.style.position="absol
ute";b.appendChild(a);this.element_=a;this.lineScale_=this.arcScaleY_=this.arcSc
aleX_=1}var i=H.prototype;i.clearRect=function(){this.element_.innerHTML=""};i.b
eginPath=function(){this.currentPath_=[]};i.moveTo=function(b,a){var c=this.getC
oords_(b,a);this.currentPath_.push({type:"moveTo",x:c.x,y:c.y});this.currentX_=c
.x;this.currentY_=c.y};
i.lineTo=function(b,a){var c=this.getCoords_(b,a);this.currentPath_.push({type:"
lineTo",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};i.bezierCurveTo=fun
ction(b,a,c,d,f,h){var g=this.getCoords_(f,h),l=this.getCoords_(b,a),e=this.getC
oords_(c,d);Q(this,l,e,g)};function Q(b,a,c,d){b.currentPath_.push({type:"bezier
CurveTo",cp1x:a.x,cp1y:a.y,cp2x:c.x,cp2y:c.y,x:d.x,y:d.y});b.currentX_=d.x;b.cur
rentY_=d.y}i.quadraticCurveTo=function(b,a,c,d){var f=this.getCoords_(b,a),h=thi
s.getCoords_(c,d),g={x:this.currentX_+
0.6666666666666666*(f.x-this.currentX_),y:this.currentY_+0.6666666666666666*(f.y
-this.currentY_)};Q(this,g,{x:g.x+(h.x-this.currentX_)/3,y:g.y+(h.y-this.current
Y_)/3},h)};i.arc=function(b,a,c,d,f,h){c*=k;var g=h?"at":"wa",l=b+G(d)*c-v,e=a+F
(d)*c-v,m=b+G(f)*c-v,r=a+F(f)*c-v;if(l==m&&!h)l+=0.125;var n=this.getCoords_(b,a
),o=this.getCoords_(l,e),q=this.getCoords_(m,r);this.currentPath_.push({type:g,x
:n.x,y:n.y,radius:c,xStart:o.x,yStart:o.y,xEnd:q.x,yEnd:q.y})};i.rect=function(b
,a,c,d){this.moveTo(b,
a);this.lineTo(b+c,a);this.lineTo(b+c,a+d);this.lineTo(b,a+d);this.closePath()};
i.strokeRect=function(b,a,c,d){var f=this.currentPath_;this.beginPath();this.mov
eTo(b,a);this.lineTo(b+c,a);this.lineTo(b+c,a+d);this.lineTo(b,a+d);this.closePa
th();this.stroke();this.currentPath_=f};i.fillRect=function(b,a,c,d){var f=this.
currentPath_;this.beginPath();this.moveTo(b,a);this.lineTo(b+c,a);this.lineTo(b+
c,a+d);this.lineTo(b,a+d);this.closePath();this.fill();this.currentPath_=f};i.cr
eateLinearGradient=function(b,
a,c,d){var f=new D("gradient");f.x0_=b;f.y0_=a;f.x1_=c;f.y1_=d;return f};i.creat
eRadialGradient=function(b,a,c,d,f,h){var g=new D("gradientradial");g.x0_=b;g.y0
_=a;g.r0_=c;g.x1_=d;g.y1_=f;g.r1_=h;return g};i.drawImage=function(b){var a,c,d,
f,h,g,l,e,m=b.runtimeStyle.width,r=b.runtimeStyle.height;b.runtimeStyle.width="a
uto";b.runtimeStyle.height="auto";var n=b.width,o=b.height;b.runtimeStyle.width=
m;b.runtimeStyle.height=r;if(arguments.length==3){a=arguments[1];c=arguments[2];
h=g=0;l=d=n;e=f=o}else if(arguments.length==
5){a=arguments[1];c=arguments[2];d=arguments[3];f=arguments[4];h=g=0;l=n;e=o}els
e if(arguments.length==9){h=arguments[1];g=arguments[2];l=arguments[3];e=argumen
ts[4];a=arguments[5];c=arguments[6];d=arguments[7];f=arguments[8]}else throw Err
or("Invalid number of arguments");var q=this.getCoords_(a,c),t=[];t.push(" <g_vm
l_:group",' coordsize="',k*10,",",k*10,'"',' coordorigin="0,0"',' style="width:'
,10,"px;height:",10,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1])
{var E=[];E.push("M11=",
this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.
m_[1][1],",","Dx=",j(q.x/k),",","Dy=",j(q.y/k),"");var p=q,z=this.getCoords_(a+d
,c),w=this.getCoords_(a,c+f),x=this.getCoords_(a+d,c+f);p.x=s.max(p.x,z.x,w.x,x.
x);p.y=s.max(p.y,z.y,w.y,x.y);t.push("padding:0 ",j(p.x/k),"px ",j(p.y/k),"px 0;
filter:progid:DXImageTransform.Microsoft.Matrix(",E.join(""),", sizingmethod='cl
ip');")}else t.push("top:",j(q.y/k),"px;left:",j(q.x/k),"px;");t.push(' ">','<g_
vml_:image src="',b.src,
'"',' style="width:',k*d,"px;"," height:",k*f,'px;"',' cropleft="',h/n,'"',' cro
ptop="',g/o,'"',' cropright="',(n-h-l)/n,'"',' cropbottom="',(o-g-e)/o,'"'," />"
,"</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",t.join(""))};i.
stroke=function(b){var a=[],c=P(b?this.fillStyle:this.strokeStyle),d=c.color,f=c
.alpha*this.globalAlpha;a.push("<g_vml_:shape",' filled="',!!b,'"',' style="posi
tion:absolute;width:',10,"px;height:",10,'px;"',' coordorigin="0 0" coordsize="'
,k*10," ",k*10,'"',' stroked="',
!b,'"',' path="');var h={x:null,y:null},g={x:null,y:null},l=0;for(;l<this.curren
tPath_.length;l++){var e=this.currentPath_[l];switch(e.type){case "moveTo":a.pus
h(" m ",j(e.x),",",j(e.y));break;case "lineTo":a.push(" l ",j(e.x),",",j(e.y));b
reak;case "close":a.push(" x ");e=null;break;case "bezierCurveTo":a.push(" c ",j
(e.cp1x),",",j(e.cp1y),",",j(e.cp2x),",",j(e.cp2y),",",j(e.x),",",j(e.y));break;
case "at":case "wa":a.push(" ",e.type," ",j(e.x-this.arcScaleX_*e.radius),",",j(
e.y-this.arcScaleY_*e.radius),
" ",j(e.x+this.arcScaleX_*e.radius),",",j(e.y+this.arcScaleY_*e.radius)," ",j(e.
xStart),",",j(e.yStart)," ",j(e.xEnd),",",j(e.yEnd));break}if(e){if(h.x==null||e
.x<h.x)h.x=e.x;if(g.x==null||e.x>g.x)g.x=e.x;if(h.y==null||e.y<h.y)h.y=e.y;if(g.
y==null||e.y>g.y)g.y=e.y}}a.push(' ">');if(b)if(typeof this.fillStyle=="object")
{var m=this.fillStyle,r=0,n={x:0,y:0},o=0,q=1;if(m.type_=="gradient"){var t=m.x1
_/this.arcScaleX_,E=m.y1_/this.arcScaleY_,p=this.getCoords_(m.x0_/this.arcScaleX
_,m.y0_/this.arcScaleY_),
z=this.getCoords_(t,E);r=Math.atan2(z.x-p.x,z.y-p.y)*180/Math.PI;if(r<0)r+=360;i
f(r<1.0E-6)r=0}else{var p=this.getCoords_(m.x0_,m.y0_),w=g.x-h.x,x=g.y-h.y;n={x:
(p.x-h.x)/w,y:(p.y-h.y)/x};w/=this.arcScaleX_*k;x/=this.arcScaleY_*k;var R=s.max
(w,x);o=2*m.r0_/R;q=2*m.r1_/R-o}var u=m.colors_;u.sort(function(ba,ca){return ba
.offset-ca.offset});var J=u.length,da=u[0].color,ea=u[J-1].color,fa=u[0].alpha*t
his.globalAlpha,ga=u[J-1].alpha*this.globalAlpha,S=[],l=0;for(;l<J;l++){var T=u[
l];S.push(T.offset*q+
o+" "+T.color)}a.push('<g_vml_:fill type="',m.type_,'"',' method="none" focus="1
00%"',' color="',da,'"',' color2="',ea,'"',' colors="',S.join(","),'"',' opacity
="',ga,'"',' g_o_:opacity2="',fa,'"',' angle="',r,'"',' focusposition="',n.x,","
,n.y,'" />')}else a.push('<g_vml_:fill color="',d,'" opacity="',f,'" />');else{v
ar K=this.lineScale_*this.lineWidth;if(K<1)f*=K;a.push("<g_vml_:stroke",' opacit
y="',f,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',
' endcap="',aa(this.lineCap),
'"',' weight="',K,'px"',' color="',d,'" />')}a.push("</g_vml_:shape>");this.elem
ent_.insertAdjacentHTML("beforeEnd",a.join(""))};i.fill=function(){this.stroke(t
rue)};i.closePath=function(){this.currentPath_.push({type:"close"})};i.getCoords
_=function(b,a){var c=this.m_;return{x:k*(b*c[0][0]+a*c[1][0]+c[2][0])-v,y:k*(b*
c[0][1]+a*c[1][1]+c[2][1])-v}};i.save=function(){var b={};O(this,b);this.aStack_
.push(b);this.mStack_.push(this.m_);this.m_=y(I(),this.m_)};i.restore=function()
{O(this.aStack_.pop(),
this);this.m_=this.mStack_.pop()};function ha(b){var a=0;for(;a<3;a++){var c=0;f
or(;c<2;c++)if(!isFinite(b[a][c])||isNaN(b[a][c]))return false}return true}funct
ion A(b,a,c){if(!!ha(a)){b.m_=a;if(c)b.lineScale_=W(V(a[0][0]*a[1][1]-a[0][1]*a[
1][0]))}}i.translate=function(b,a){A(this,y([[1,0,0],[0,1,0],[b,a,1]],this.m_),f
alse)};i.rotate=function(b){var a=G(b),c=F(b);A(this,y([[a,c,0],[-c,a,0],[0,0,1]
],this.m_),false)};i.scale=function(b,a){this.arcScaleX_*=b;this.arcScaleY_*=a;A
(this,y([[b,0,0],[0,a,
0],[0,0,1]],this.m_),true)};i.transform=function(b,a,c,d,f,h){A(this,y([[b,a,0],
[c,d,0],[f,h,1]],this.m_),true)};i.setTransform=function(b,a,c,d,f,h){A(this,[[b
,a,0],[c,d,0],[f,h,1]],true)};i.clip=function(){};i.arcTo=function(){};i.createP
attern=function(){return new U};function D(b){this.type_=b;this.r1_=this.y1_=thi
s.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}D.prototype.addColorStop=func
tion(b,a){a=P(a);this.colors_.push({offset:b,color:a.color,alpha:a.alpha})};func
tion U(){}G_vmlCanvasManager=
M;CanvasRenderingContext2D=H;CanvasGradient=D;CanvasPattern=U})();
/* End of excanvas */
/* Start of flot */ /* Start of flot */
/* Javascript plotting library for jQuery, v. 0.7. /* Javascript plotting library for jQuery, v. 0.7.
* *
* Released under the MIT license by IOLA, December 2007. * Released under the MIT license by IOLA, December 2007.
* *
*/ */
(function(b){b.color={};b.color.make=function(d,e,g,f){var c={};c.r=d||0;c.g=e|| 0;c.b=g||0;c.a=f!=null?f:1;c.add=function(h,j){for(var k=0;k<h.length;++k){c[h.c harAt(k)]+=j}return c.normalize()};c.scale=function(h,j){for(var k=0;k<h.length; ++k){c[h.charAt(k)]*=j}return c.normalize()};c.toString=function(){if(c.a>=1){re turn"rgb("+[c.r,c.g,c.b].join(",")+")"}else{return"rgba("+[c.r,c.g,c.b,c.a].join (",")+")"}};c.normalize=function(){function h(k,j,l){return j<k?k:(j>l?l:j)}c.r= h(0,parseInt(c.r),255);c.g=h(0,parseInt(c.g),255);c.b=h(0,parseInt(c.b),255);c.a =h(0,c.a,1);return c};c.clone=function(){return b.color.make(c.r,c.b,c.g,c.a)};r eturn c.normalize()};b.color.extract=function(d,e){var c;do{c=d.css(e).toLowerCa se();if(c!=""&&c!="transparent"){break}d=d.parent()}while(!b.nodeName(d.get(0)," body"));if(c=="rgba(0, 0, 0, 0)"){c="transparent"}return b.color.parse(c)};b.col or.parse=function(c){var d,f=b.color.make;if(d=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9 ]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c)){return f(parseInt(d[1],10),parseInt(d[ 2],10),parseInt(d[3],10))}if(d=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*( [0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c)){return f(parseInt(d[1],10 ),parseInt(d[2],10),parseInt(d[3],10),parseFloat(d[4]))}if(d=/rgb\(\s*([0-9]+(?: \.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/. exec(c)){return f(parseFloat(d[1])*2.55,parseFloat(d[2])*2.55,parseFloat(d[3])*2 .55)}if(d=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s* ([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c)){return f(pars eFloat(d[1])*2.55,parseFloat(d[2])*2.55,parseFloat(d[3])*2.55,parseFloat(d[4]))} if(d=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c)){return f(parse Int(d[1],16),parseInt(d[2],16),parseInt(d[3],16))}if(d=/#([a-fA-F0-9])([a-fA-F0- 9])([a-fA-F0-9])/.exec(c)){return f(parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16 ),parseInt(d[3]+d[3],16))}var e=b.trim(c).toLowerCase();if(e=="transparent"){ret urn f(255,255,255,0)}else{d=a[e]||[0,0,0];return f(d[0],d[1],d[2])}};var a={aqua :[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255 ],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],dar kgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139 ,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204 ],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255 ,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],l ightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgre y:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0] ,magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[2 55,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0] ,silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);(functio n(c){function b(av,ai,J,af){var Q=[],O={colors:["#edc240","#afd8f8","#cb4b4b","# 4da74d","#9440ed"],legend:{show:true,noColumns:1,labelFormatter:null,labelBoxBor derColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backg roundOpacity:0.85},xaxis:{show:null,position:"bottom",mode:null,color:null,tickC olor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin :null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpac e:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,m inTickSize:null,monthNames:null,timeformat:null,twelveHourClock:false},yaxis:{au toscaleMargin:0.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:false ,radius:3,lineWidth:2,fill:true,fillColor:"#ffffff",symbol:"circle"},lines:{line Width:2,fill:false,fillColor:null,steps:false},bars:{show:false,lineWidth:2,barW idth:1,fill:true,fillColor:null,align:"left",horizontal:false},shadowSize:3},gri d:{show:true,aboveData:false,color:"#545454",backgroundColor:null,borderColor:nu ll,tickColor:null,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null, markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:false,hovera ble:false,autoHighlight:true,mouseActiveRadius:10},hooks:{}},az=null,ad=null,y=n ull,H=null,A=null,p=[],aw=[],q={left:0,right:0,top:0,bottom:0},G=0,I=0,h=0,w=0,a k={processOptions:[],processRawData:[],processDatapoints:[],drawSeries:[],draw:[ ],bindEvents:[],drawOverlay:[],shutdown:[]},aq=this;aq.setData=aj;aq.setupGrid=t ;aq.draw=W;aq.getPlaceholder=function(){return av};aq.getCanvas=function(){retur n az};aq.getPlotOffset=function(){return q};aq.width=function(){return h};aq.hei ght=function(){return w};aq.offset=function(){var aB=y.offset();aB.left+=q.left; aB.top+=q.top;return aB};aq.getData=function(){return Q};aq.getAxes=function(){v ar aC={},aB;c.each(p.concat(aw),function(aD,aE){if(aE){aC[aE.direction+(aE.n!=1? aE.n:"")+"axis"]=aE}});return aC};aq.getXAxes=function(){return p};aq.getYAxes=f unction(){return aw};aq.c2p=C;aq.p2c=ar;aq.getOptions=function(){return O};aq.hi ghlight=x;aq.unhighlight=T;aq.triggerRedrawOverlay=f;aq.pointOffset=function(aB) {return{left:parseInt(p[aA(aB,"x")-1].p2c(+aB.x)+q.left),top:parseInt(aw[aA(aB," y")-1].p2c(+aB.y)+q.top)}};aq.shutdown=ag;aq.resize=function(){B();g(az);g(ad)}; aq.hooks=ak;F(aq);Z(J);X();aj(ai);t();W();ah();function an(aD,aB){aB=[aq].concat (aB);for(var aC=0;aC<aD.length;++aC){aD[aC].apply(this,aB)}}function F(){for(var aB=0;aB<af.length;++aB){var aC=af[aB];aC.init(aq);if(aC.options){c.extend(true, O,aC.options)}}}function Z(aC){var aB;c.extend(true,O,aC);if(O.xaxis.color==null ){O.xaxis.color=O.grid.color}if(O.yaxis.color==null){O.yaxis.color=O.grid.color} if(O.xaxis.tickColor==null){O.xaxis.tickColor=O.grid.tickColor}if(O.yaxis.tickCo lor==null){O.yaxis.tickColor=O.grid.tickColor}if(O.grid.borderColor==null){O.gri d.borderColor=O.grid.color}if(O.grid.tickColor==null){O.grid.tickColor=c.color.p arse(O.grid.color).scale("a",0.22).toString()}for(aB=0;aB<Math.max(1,O.xaxes.len gth);++aB){O.xaxes[aB]=c.extend(true,{},O.xaxis,O.xaxes[aB])}for(aB=0;aB<Math.ma x(1,O.yaxes.length);++aB){O.yaxes[aB]=c.extend(true,{},O.yaxis,O.yaxes[aB])}if(O .xaxis.noTicks&&O.xaxis.ticks==null){O.xaxis.ticks=O.xaxis.noTicks}if(O.yaxis.no Ticks&&O.yaxis.ticks==null){O.yaxis.ticks=O.yaxis.noTicks}if(O.x2axis){O.xaxes[1 ]=c.extend(true,{},O.xaxis,O.x2axis);O.xaxes[1].position="top"}if(O.y2axis){O.ya xes[1]=c.extend(true,{},O.yaxis,O.y2axis);O.yaxes[1].position="right"}if(O.grid. coloredAreas){O.grid.markings=O.grid.coloredAreas}if(O.grid.coloredAreasColor){O .grid.markingsColor=O.grid.coloredAreasColor}if(O.lines){c.extend(true,O.series. lines,O.lines)}if(O.points){c.extend(true,O.series.points,O.points)}if(O.bars){c .extend(true,O.series.bars,O.bars)}if(O.shadowSize!=null){O.series.shadowSize=O. shadowSize}for(aB=0;aB<O.xaxes.length;++aB){V(p,aB+1).options=O.xaxes[aB]}for(aB =0;aB<O.yaxes.length;++aB){V(aw,aB+1).options=O.yaxes[aB]}for(var aD in ak){if(O .hooks[aD]&&O.hooks[aD].length){ak[aD]=ak[aD].concat(O.hooks[aD])}}an(ak.process Options,[O])}function aj(aB){Q=Y(aB);ax();z()}function Y(aE){var aC=[];for(var a B=0;aB<aE.length;++aB){var aD=c.extend(true,{},O.series);if(aE[aB].data!=null){a D.data=aE[aB].data;delete aE[aB].data;c.extend(true,aD,aE[aB]);aE[aB].data=aD.da ta}else{aD.data=aE[aB]}aC.push(aD)}return aC}function aA(aC,aD){var aB=aC[aD+"ax is"];if(typeof aB=="object"){aB=aB.n}if(typeof aB!="number"){aB=1}return aB}func tion m(){return c.grep(p.concat(aw),function(aB){return aB})}function C(aE){var aC={},aB,aD;for(aB=0;aB<p.length;++aB){aD=p[aB];if(aD&&aD.used){aC["x"+aD.n]=aD. c2p(aE.left)}}for(aB=0;aB<aw.length;++aB){aD=aw[aB];if(aD&&aD.used){aC["y"+aD.n] =aD.c2p(aE.top)}}if(aC.x1!==undefined){aC.x=aC.x1}if(aC.y1!==undefined){aC.y=aC. y1}return aC}function ar(aF){var aD={},aC,aE,aB;for(aC=0;aC<p.length;++aC){aE=p[ aC];if(aE&&aE.used){aB="x"+aE.n;if(aF[aB]==null&&aE.n==1){aB="x"}if(aF[aB]!=null ){aD.left=aE.p2c(aF[aB]);break}}}for(aC=0;aC<aw.length;++aC){aE=aw[aC];if(aE&&aE .used){aB="y"+aE.n;if(aF[aB]==null&&aE.n==1){aB="y"}if(aF[aB]!=null){aD.top=aE.p 2c(aF[aB]);break}}}return aD}function V(aC,aB){if(!aC[aB-1]){aC[aB-1]={n:aB,dire ction:aC==p?"x":"y",options:c.extend(true,{},aC==p?O.xaxis:O.yaxis)}}return aC[a B-1]}function ax(){var aG;var aM=Q.length,aB=[],aE=[];for(aG=0;aG<Q.length;++aG) {var aJ=Q[aG].color;if(aJ!=null){--aM;if(typeof aJ=="number"){aE.push(aJ)}else{a B.push(c.color.parse(Q[aG].color))}}}for(aG=0;aG<aE.length;++aG){aM=Math.max(aM, aE[aG]+1)}var aC=[],aF=0;aG=0;while(aC.length<aM){var aI;if(O.colors.length==aG) {aI=c.color.make(100,100,100)}else{aI=c.color.parse(O.colors[aG])}var aD=aF%2==1 ?-1:1;aI.scale("rgb",1+aD*Math.ceil(aF/2)*0.2);aC.push(aI);++aG;if(aG>=O.colors. length){aG=0;++aF}}var aH=0,aN;for(aG=0;aG<Q.length;++aG){aN=Q[aG];if(aN.color== null){aN.color=aC[aH].toString();++aH}else{if(typeof aN.color=="number"){aN.colo r=aC[aN.color].toString()}}if(aN.lines.show==null){var aL,aK=true;for(aL in aN){ if(aN[aL]&&aN[aL].show){aK=false;break}}if(aK){aN.lines.show=true}}aN.xaxis=V(p, aA(aN,"x"));aN.yaxis=V(aw,aA(aN,"y"))}}function z(){var aO=Number.POSITIVE_INFIN ITY,aI=Number.NEGATIVE_INFINITY,aB=Number.MAX_VALUE,aU,aS,aR,aN,aD,aJ,aT,aP,aH,a G,aC,a0,aX,aL;function aF(a3,a2,a1){if(a2<a3.datamin&&a2!=-aB){a3.datamin=a2}if( a1>a3.datamax&&a1!=aB){a3.datamax=a1}}c.each(m(),function(a1,a2){a2.datamin=aO;a 2.datamax=aI;a2.used=false});for(aU=0;aU<Q.length;++aU){aJ=Q[aU];aJ.datapoints={ points:[]};an(ak.processRawData,[aJ,aJ.data,aJ.datapoints])}for(aU=0;aU<Q.length ;++aU){aJ=Q[aU];var aZ=aJ.data,aW=aJ.datapoints.format;if(!aW){aW=[];aW.push({x: true,number:true,required:true});aW.push({y:true,number:true,required:true});if( aJ.bars.show||(aJ.lines.show&&aJ.lines.fill)){aW.push({y:true,number:true,requir ed:false,defaultValue:0});if(aJ.bars.horizontal){delete aW[aW.length-1].y;aW[aW. length-1].x=true}}aJ.datapoints.format=aW}if(aJ.datapoints.pointsize!=null){cont inue}aJ.datapoints.pointsize=aW.length;aP=aJ.datapoints.pointsize;aT=aJ.datapoin ts.points;insertSteps=aJ.lines.show&&aJ.lines.steps;aJ.xaxis.used=aJ.yaxis.used= true;for(aS=aR=0;aS<aZ.length;++aS,aR+=aP){aL=aZ[aS];var aE=aL==null;if(!aE){for (aN=0;aN<aP;++aN){a0=aL[aN];aX=aW[aN];if(aX){if(aX.number&&a0!=null){a0=+a0;if(i sNaN(a0)){a0=null}else{if(a0==Infinity){a0=aB}else{if(a0==-Infinity){a0=-aB}}}}i f(a0==null){if(aX.required){aE=true}if(aX.defaultValue!=null){a0=aX.defaultValue }}}aT[aR+aN]=a0}}if(aE){for(aN=0;aN<aP;++aN){a0=aT[aR+aN];if(a0!=null){aX=aW[aN] ;if(aX.x){aF(aJ.xaxis,a0,a0)}if(aX.y){aF(aJ.yaxis,a0,a0)}}aT[aR+aN]=null}}else{i f(insertSteps&&aR>0&&aT[aR-aP]!=null&&aT[aR-aP]!=aT[aR]&&aT[aR-aP+1]!=aT[aR+1]){ for(aN=0;aN<aP;++aN){aT[aR+aP+aN]=aT[aR+aN]}aT[aR+1]=aT[aR-aP+1];aR+=aP}}}}for(a U=0;aU<Q.length;++aU){aJ=Q[aU];an(ak.processDatapoints,[aJ,aJ.datapoints])}for(a U=0;aU<Q.length;++aU){aJ=Q[aU];aT=aJ.datapoints.points,aP=aJ.datapoints.pointsiz e;var aK=aO,aQ=aO,aM=aI,aV=aI;for(aS=0;aS<aT.length;aS+=aP){if(aT[aS]==null){con tinue}for(aN=0;aN<aP;++aN){a0=aT[aS+aN];aX=aW[aN];if(!aX||a0==aB||a0==-aB){conti nue}if(aX.x){if(a0<aK){aK=a0}if(a0>aM){aM=a0}}if(aX.y){if(a0<aQ){aQ=a0}if(a0>aV) {aV=a0}}}}if(aJ.bars.show){var aY=aJ.bars.align=="left"?0:-aJ.bars.barWidth/2;if (aJ.bars.horizontal){aQ+=aY;aV+=aY+aJ.bars.barWidth}else{aK+=aY;aM+=aY+aJ.bars.b arWidth}}aF(aJ.xaxis,aK,aM);aF(aJ.yaxis,aQ,aV)}c.each(m(),function(a1,a2){if(a2. datamin==aO){a2.datamin=null}if(a2.datamax==aI){a2.datamax=null}})}function j(aB ,aC){var aD=document.createElement("canvas");aD.className=aC;aD.width=G;aD.heigh t=I;if(!aB){c(aD).css({position:"absolute",left:0,top:0})}c(aD).appendTo(av);if( !aD.getContext){aD=window.G_vmlCanvasManager.initElement(aD)}aD.getContext("2d") .save();return aD}function B(){G=av.width();I=av.height();if(G<=0||I<=0){throw"I nvalid dimensions for plot, width = "+G+", height = "+I}}function g(aC){if(aC.wi dth!=G){aC.width=G}if(aC.height!=I){aC.height=I}var aB=aC.getContext("2d");aB.re store();aB.save()}function X(){var aC,aB=av.children("canvas.base"),aD=av.childr en("canvas.overlay");if(aB.length==0||aD==0){av.html("");av.css({padding:0});if( av.css("position")=="static"){av.css("position","relative")}B();az=j(true,"base" );ad=j(false,"overlay");aC=false}else{az=aB.get(0);ad=aD.get(0);aC=true}H=az.get Context("2d");A=ad.getContext("2d");y=c([ad,az]);if(aC){av.data("plot").shutdown ();aq.resize();A.clearRect(0,0,G,I);y.unbind();av.children().not([az,ad]).remove ()}av.data("plot",aq)}function ah(){if(O.grid.hoverable){y.mousemove(aa);y.mouse leave(l)}if(O.grid.clickable){y.click(R)}an(ak.bindEvents,[y])}function ag(){if( M){clearTimeout(M)}y.unbind("mousemove",aa);y.unbind("mouseleave",l);y.unbind("c lick",R);an(ak.shutdown,[y])}function r(aG){function aC(aH){return aH}var aF,aB, aD=aG.options.transform||aC,aE=aG.options.inverseTransform;if(aG.direction=="x") {aF=aG.scale=h/Math.abs(aD(aG.max)-aD(aG.min));aB=Math.min(aD(aG.max),aD(aG.min) )}else{aF=aG.scale=w/Math.abs(aD(aG.max)-aD(aG.min));aF=-aF;aB=Math.max(aD(aG.ma x),aD(aG.min))}if(aD==aC){aG.p2c=function(aH){return(aH-aB)*aF}}else{aG.p2c=func tion(aH){return(aD(aH)-aB)*aF}}if(!aE){aG.c2p=function(aH){return aB+aH/aF}}else {aG.c2p=function(aH){return aE(aB+aH/aF)}}}function L(aD){var aB=aD.options,aF,a J=aD.ticks||[],aI=[],aE,aK=aB.labelWidth,aG=aB.labelHeight,aC;function aH(aM,aL) {return c('<div style="position:absolute;top:-10000px;'+aL+'font-size:smaller">< div class="'+aD.direction+"Axis "+aD.direction+aD.n+'Axis">'+aM.join("")+"</div> </div>").appendTo(av)}if(aD.direction=="x"){if(aK==null){aK=Math.floor(G/(aJ.len gth>0?aJ.length:1))}if(aG==null){aI=[];for(aF=0;aF<aJ.length;++aF){aE=aJ[aF].lab el;if(aE){aI.push('<div class="tickLabel" style="float:left;width:'+aK+'px">'+aE +"</div>")}}if(aI.length>0){aI.push('<div style="clear:left"></div>');aC=aH(aI," width:10000px;");aG=aC.height();aC.remove()}}}else{if(aK==null||aG==null){for(aF =0;aF<aJ.length;++aF){aE=aJ[aF].label;if(aE){aI.push('<div class="tickLabel">'+a E+"</div>")}}if(aI.length>0){aC=aH(aI,"");if(aK==null){aK=aC.children().width()} if(aG==null){aG=aC.find("div.tickLabel").height()}aC.remove()}}}if(aK==null){aK= 0}if(aG==null){aG=0}aD.labelWidth=aK;aD.labelHeight=aG}function au(aD){var aC=aD .labelWidth,aL=aD.labelHeight,aH=aD.options.position,aF=aD.options.tickLength,aG =O.grid.axisMargin,aJ=O.grid.labelMargin,aK=aD.direction=="x"?p:aw,aE;var aB=c.g rep(aK,function(aN){return aN&&aN.options.position==aH&&aN.reserveSpace});if(c.i nArray(aD,aB)==aB.length-1){aG=0}if(aF==null){aF="full"}var aI=c.grep(aK,functio n(aN){return aN&&aN.reserveSpace});var aM=c.inArray(aD,aI)==0;if(!aM&&aF=="full" ){aF=5}if(!isNaN(+aF)){aJ+=+aF}if(aD.direction=="x"){aL+=aJ;if(aH=="bottom"){q.b ottom+=aL+aG;aD.box={top:I-q.bottom,height:aL}}else{aD.box={top:q.top+aG,height: aL};q.top+=aL+aG}}else{aC+=aJ;if(aH=="left"){aD.box={left:q.left+aG,width:aC};q. left+=aC+aG}else{q.right+=aC+aG;aD.box={left:G-q.right,width:aC}}}aD.position=aH ;aD.tickLength=aF;aD.box.padding=aJ;aD.innermost=aM}function U(aB){if(aB.directi on=="x"){aB.box.left=q.left;aB.box.width=h}else{aB.box.top=q.top;aB.box.height=w }}function t(){var aC,aE=m();c.each(aE,function(aF,aG){aG.show=aG.options.show;i f(aG.show==null){aG.show=aG.used}aG.reserveSpace=aG.show||aG.options.reserveSpac e;n(aG)});allocatedAxes=c.grep(aE,function(aF){return aF.reserveSpace});q.left=q .right=q.top=q.bottom=0;if(O.grid.show){c.each(allocatedAxes,function(aF,aG){S(a G);P(aG);ap(aG,aG.ticks);L(aG)});for(aC=allocatedAxes.length-1;aC>=0;--aC){au(al locatedAxes[aC])}var aD=O.grid.minBorderMargin;if(aD==null){aD=0;for(aC=0;aC<Q.l ength;++aC){aD=Math.max(aD,Q[aC].points.radius+Q[aC].points.lineWidth/2)}}for(va r aB in q){q[aB]+=O.grid.borderWidth;q[aB]=Math.max(aD,q[aB])}}h=G-q.left-q.righ t;w=I-q.bottom-q.top;c.each(aE,function(aF,aG){r(aG)});if(O.grid.show){c.each(al locatedAxes,function(aF,aG){U(aG)});k()}o()}function n(aE){var aF=aE.options,aD= +(aF.min!=null?aF.min:aE.datamin),aB=+(aF.max!=null?aF.max:aE.datamax),aH=aB-aD; if(aH==0){var aC=aB==0?1:0.01;if(aF.min==null){aD-=aC}if(aF.max==null||aF.min!=n ull){aB+=aC}}else{var aG=aF.autoscaleMargin;if(aG!=null){if(aF.min==null){aD-=aH *aG;if(aD<0&&aE.datamin!=null&&aE.datamin>=0){aD=0}}if(aF.max==null){aB+=aH*aG;i f(aB>0&&aE.datamax!=null&&aE.datamax<=0){aB=0}}}}aE.min=aD;aE.max=aB}function S( aG){var aM=aG.options;var aH;if(typeof aM.ticks=="number"&&aM.ticks>0){aH=aM.tic ks}else{aH=0.3*Math.sqrt(aG.direction=="x"?G:I)}var aT=(aG.max-aG.min)/aH,aO,aB, aN,aR,aS,aQ,aI;if(aM.mode=="time"){var aJ={second:1000,minute:60*1000,hour:60*60 *1000,day:24*60*60*1000,month:30*24*60*60*1000,year:365.2425*24*60*60*1000};var aK=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minut e"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"], [4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[ 0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]];var aC= 0;if(aM.minTickSize!=null){if(typeof aM.tickSize=="number"){aC=aM.tickSize}else{ aC=aM.minTickSize[0]*aJ[aM.minTickSize[1]]}}for(var aS=0;aS<aK.length-1;++aS){if (aT<(aK[aS][0]*aJ[aK[aS][1]]+aK[aS+1][0]*aJ[aK[aS+1][1]])/2&&aK[aS][0]*aJ[aK[aS] [1]]>=aC){break}}aO=aK[aS][0];aN=aK[aS][1];if(aN=="year"){aQ=Math.pow(10,Math.fl oor(Math.log(aT/aJ.year)/Math.LN10));aI=(aT/aJ.year)/aQ;if(aI<1.5){aO=1}else{if( aI<3){aO=2}else{if(aI<7.5){aO=5}else{aO=10}}}aO*=aQ}aG.tickSize=aM.tickSize||[aO ,aN];aB=function(aX){var a2=[],a0=aX.tickSize[0],a3=aX.tickSize[1],a1=new Date(a X.min);var aW=a0*aJ[a3];if(a3=="second"){a1.setUTCSeconds(a(a1.getUTCSeconds(),a 0))}if(a3=="minute"){a1.setUTCMinutes(a(a1.getUTCMinutes(),a0))}if(a3=="hour"){a 1.setUTCHours(a(a1.getUTCHours(),a0))}if(a3=="month"){a1.setUTCMonth(a(a1.getUTC Month(),a0))}if(a3=="year"){a1.setUTCFullYear(a(a1.getUTCFullYear(),a0))}a1.setU TCMilliseconds(0);if(aW>=aJ.minute){a1.setUTCSeconds(0)}if(aW>=aJ.hour){a1.setUT CMinutes(0)}if(aW>=aJ.day){a1.setUTCHours(0)}if(aW>=aJ.day*4){a1.setUTCDate(1)}i f(aW>=aJ.year){a1.setUTCMonth(0)}var a5=0,a4=Number.NaN,aY;do{aY=a4;a4=a1.getTim e();a2.push(a4);if(a3=="month"){if(a0<1){a1.setUTCDate(1);var aV=a1.getTime();a1 .setUTCMonth(a1.getUTCMonth()+1);var aZ=a1.getTime();a1.setTime(a4+a5*aJ.hour+(a Z-aV)*a0);a5=a1.getUTCHours();a1.setUTCHours(0)}else{a1.setUTCMonth(a1.getUTCMon th()+a0)}}else{if(a3=="year"){a1.setUTCFullYear(a1.getUTCFullYear()+a0)}else{a1. setTime(a4+aW)}}}while(a4<aX.max&&a4!=aY);return a2};aR=function(aV,aY){var a0=n ew Date(aV);if(aM.timeformat!=null){return c.plot.formatDate(a0,aM.timeformat,aM .monthNames)}var aW=aY.tickSize[0]*aJ[aY.tickSize[1]];var aX=aY.max-aY.min;var a Z=(aM.twelveHourClock)?" %p":"";if(aW<aJ.minute){fmt="%h:%M:%S"+aZ}else{if(aW<aJ .day){if(aX<2*aJ.day){fmt="%h:%M"+aZ}else{fmt="%b %d %h:%M"+aZ}}else{if(aW<aJ.mo nth){fmt="%b %d"}else{if(aW<aJ.year){if(aX<aJ.year){fmt="%b"}else{fmt="%b %y"}}e lse{fmt="%y"}}}}return c.plot.formatDate(a0,fmt,aM.monthNames)}}else{var aU=aM.t ickDecimals;var aP=-Math.floor(Math.log(aT)/Math.LN10);if(aU!=null&&aP>aU){aP=aU }aQ=Math.pow(10,-aP);aI=aT/aQ;if(aI<1.5){aO=1}else{if(aI<3){aO=2;if(aI>2.25&&(aU ==null||aP+1<=aU)){aO=2.5;++aP}}else{if(aI<7.5){aO=5}else{aO=10}}}aO*=aQ;if(aM.m inTickSize!=null&&aO<aM.minTickSize){aO=aM.minTickSize}aG.tickDecimals=Math.max( 0,aU!=null?aU:aP);aG.tickSize=aM.tickSize||aO;aB=function(aX){var aZ=[];var a0=a (aX.min,aX.tickSize),aW=0,aV=Number.NaN,aY;do{aY=aV;aV=a0+aW*aX.tickSize;aZ.push (aV);++aW}while(aV<aX.max&&aV!=aY);return aZ};aR=function(aV,aW){return aV.toFix ed(aW.tickDecimals)}}if(aM.alignTicksWithAxis!=null){var aF=(aG.direction=="x"?p :aw)[aM.alignTicksWithAxis-1];if(aF&&aF.used&&aF!=aG){var aL=aB(aG);if(aL.length >0){if(aM.min==null){aG.min=Math.min(aG.min,aL[0])}if(aM.max==null&&aL.length>1) {aG.max=Math.max(aG.max,aL[aL.length-1])}}aB=function(aX){var aY=[],aV,aW;for(aW =0;aW<aF.ticks.length;++aW){aV=(aF.ticks[aW].v-aF.min)/(aF.max-aF.min);aV=aX.min +aV*(aX.max-aX.min);aY.push(aV)}return aY};if(aG.mode!="time"&&aM.tickDecimals== null){var aE=Math.max(0,-Math.floor(Math.log(aT)/Math.LN10)+1),aD=aB(aG);if(!(aD .length>1&&/\..*0$/.test((aD[1]-aD[0]).toFixed(aE)))){aG.tickDecimals=aE}}}}aG.t ickGenerator=aB;if(c.isFunction(aM.tickFormatter)){aG.tickFormatter=function(aV, aW){return""+aM.tickFormatter(aV,aW)}}else{aG.tickFormatter=aR}}function P(aF){v ar aH=aF.options.ticks,aG=[];if(aH==null||(typeof aH=="number"&&aH>0)){aG=aF.tic kGenerator(aF)}else{if(aH){if(c.isFunction(aH)){aG=aH({min:aF.min,max:aF.max})}e lse{aG=aH}}}var aE,aB;aF.ticks=[];for(aE=0;aE<aG.length;++aE){var aC=null;var aD =aG[aE];if(typeof aD=="object"){aB=+aD[0];if(aD.length>1){aC=aD[1]}}else{aB=+aD} if(aC==null){aC=aF.tickFormatter(aB,aF)}if(!isNaN(aB)){aF.ticks.push({v:aB,label :aC})}}}function ap(aB,aC){if(aB.options.autoscaleMargin&&aC.length>0){if(aB.opt ions.min==null){aB.min=Math.min(aB.min,aC[0].v)}if(aB.options.max==null&&aC.leng th>1){aB.max=Math.max(aB.max,aC[aC.length-1].v)}}}function W(){H.clearRect(0,0,G ,I);var aC=O.grid;if(aC.show&&aC.backgroundColor){N()}if(aC.show&&!aC.aboveData) {ac()}for(var aB=0;aB<Q.length;++aB){an(ak.drawSeries,[H,Q[aB]]);d(Q[aB])}an(ak. draw,[H]);if(aC.show&&aC.aboveData){ac()}}function D(aB,aI){var aE,aH,aG,aD,aF=m ();for(i=0;i<aF.length;++i){aE=aF[i];if(aE.direction==aI){aD=aI+aE.n+"axis";if(! aB[aD]&&aE.n==1){aD=aI+"axis"}if(aB[aD]){aH=aB[aD].from;aG=aB[aD].to;break}}}if( !aB[aD]){aE=aI=="x"?p[0]:aw[0];aH=aB[aI+"1"];aG=aB[aI+"2"]}if(aH!=null&&aG!=null &&aH>aG){var aC=aH;aH=aG;aG=aC}return{from:aH,to:aG,axis:aE}}function N(){H.save ();H.translate(q.left,q.top);H.fillStyle=am(O.grid.backgroundColor,w,0,"rgba(255 , 255, 255, 0)");H.fillRect(0,0,h,w);H.restore()}function ac(){var aF;H.save();H .translate(q.left,q.top);var aH=O.grid.markings;if(aH){if(c.isFunction(aH)){var aK=aq.getAxes();aK.xmin=aK.xaxis.min;aK.xmax=aK.xaxis.max;aK.ymin=aK.yaxis.min;a K.ymax=aK.yaxis.max;aH=aH(aK)}for(aF=0;aF<aH.length;++aF){var aD=aH[aF],aC=D(aD, "x"),aI=D(aD,"y");if(aC.from==null){aC.from=aC.axis.min}if(aC.to==null){aC.to=aC .axis.max}if(aI.from==null){aI.from=aI.axis.min}if(aI.to==null){aI.to=aI.axis.ma x}if(aC.to<aC.axis.min||aC.from>aC.axis.max||aI.to<aI.axis.min||aI.from>aI.axis. max){continue}aC.from=Math.max(aC.from,aC.axis.min);aC.to=Math.min(aC.to,aC.axis .max);aI.from=Math.max(aI.from,aI.axis.min);aI.to=Math.min(aI.to,aI.axis.max);if (aC.from==aC.to&&aI.from==aI.to){continue}aC.from=aC.axis.p2c(aC.from);aC.to=aC. axis.p2c(aC.to);aI.from=aI.axis.p2c(aI.from);aI.to=aI.axis.p2c(aI.to);if(aC.from ==aC.to||aI.from==aI.to){H.beginPath();H.strokeStyle=aD.color||O.grid.markingsCo lor;H.lineWidth=aD.lineWidth||O.grid.markingsLineWidth;H.moveTo(aC.from,aI.from) ;H.lineTo(aC.to,aI.to);H.stroke()}else{H.fillStyle=aD.color||O.grid.markingsColo r;H.fillRect(aC.from,aI.to,aC.to-aC.from,aI.from-aI.to)}}}var aK=m(),aM=O.grid.b orderWidth;for(var aE=0;aE<aK.length;++aE){var aB=aK[aE],aG=aB.box,aQ=aB.tickLen gth,aN,aL,aP,aJ;if(!aB.show||aB.ticks.length==0){continue}H.strokeStyle=aB.optio ns.tickColor||c.color.parse(aB.options.color).scale("a",0.22).toString();H.lineW idth=1;if(aB.direction=="x"){aN=0;if(aQ=="full"){aL=(aB.position=="top"?0:w)}els e{aL=aG.top-q.top+(aB.position=="top"?aG.height:0)}}else{aL=0;if(aQ=="full"){aN= (aB.position=="left"?0:h)}else{aN=aG.left-q.left+(aB.position=="left"?aG.width:0 )}}if(!aB.innermost){H.beginPath();aP=aJ=0;if(aB.direction=="x"){aP=h}else{aJ=w} if(H.lineWidth==1){aN=Math.floor(aN)+0.5;aL=Math.floor(aL)+0.5}H.moveTo(aN,aL);H .lineTo(aN+aP,aL+aJ);H.stroke()}H.beginPath();for(aF=0;aF<aB.ticks.length;++aF){ var aO=aB.ticks[aF].v;aP=aJ=0;if(aO<aB.min||aO>aB.max||(aQ=="full"&&aM>0&&(aO==a B.min||aO==aB.max))){continue}if(aB.direction=="x"){aN=aB.p2c(aO);aJ=aQ=="full"? -w:aQ;if(aB.position=="top"){aJ=-aJ}}else{aL=aB.p2c(aO);aP=aQ=="full"?-h:aQ;if(a B.position=="left"){aP=-aP}}if(H.lineWidth==1){if(aB.direction=="x"){aN=Math.flo or(aN)+0.5}else{aL=Math.floor(aL)+0.5}}H.moveTo(aN,aL);H.lineTo(aN+aP,aL+aJ)}H.s troke()}if(aM){H.lineWidth=aM;H.strokeStyle=O.grid.borderColor;H.strokeRect(-aM/ 2,-aM/2,h+aM,w+aM)}H.restore()}function k(){av.find(".tickLabels").remove();var aG=['<div class="tickLabels" style="font-size:smaller">'];var aJ=m();for(var aD= 0;aD<aJ.length;++aD){var aC=aJ[aD],aF=aC.box;if(!aC.show){continue}aG.push('<div class="'+aC.direction+"Axis "+aC.direction+aC.n+'Axis" style="color:'+aC.option s.color+'">');for(var aE=0;aE<aC.ticks.length;++aE){var aH=aC.ticks[aE];if(!aH.l abel||aH.v<aC.min||aH.v>aC.max){continue}var aK={},aI;if(aC.direction=="x"){aI=" center";aK.left=Math.round(q.left+aC.p2c(aH.v)-aC.labelWidth/2);if(aC.position== "bottom"){aK.top=aF.top+aF.padding}else{aK.bottom=I-(aF.top+aF.height-aF.padding )}}else{aK.top=Math.round(q.top+aC.p2c(aH.v)-aC.labelHeight/2);if(aC.position==" left"){aK.right=G-(aF.left+aF.width-aF.padding);aI="right"}else{aK.left=aF.left+ aF.padding;aI="left"}}aK.width=aC.labelWidth;var aB=["position:absolute","text-a lign:"+aI];for(var aL in aK){aB.push(aL+":"+aK[aL]+"px")}aG.push('<div class="ti ckLabel" style="'+aB.join(";")+'">'+aH.label+"</div>")}aG.push("</div>")}aG.push ("</div>");av.append(aG.join(""))}function d(aB){if(aB.lines.show){at(aB)}if(aB. bars.show){e(aB)}if(aB.points.show){ao(aB)}}function at(aE){function aD(aP,aQ,aI ,aU,aT){var aV=aP.points,aJ=aP.pointsize,aN=null,aM=null;H.beginPath();for(var a O=aJ;aO<aV.length;aO+=aJ){var aL=aV[aO-aJ],aS=aV[aO-aJ+1],aK=aV[aO],aR=aV[aO+1]; if(aL==null||aK==null){continue}if(aS<=aR&&aS<aT.min){if(aR<aT.min){continue}aL= (aT.min-aS)/(aR-aS)*(aK-aL)+aL;aS=aT.min}else{if(aR<=aS&&aR<aT.min){if(aS<aT.min ){continue}aK=(aT.min-aS)/(aR-aS)*(aK-aL)+aL;aR=aT.min}}if(aS>=aR&&aS>aT.max){if (aR>aT.max){continue}aL=(aT.max-aS)/(aR-aS)*(aK-aL)+aL;aS=aT.max}else{if(aR>=aS& &aR>aT.max){if(aS>aT.max){continue}aK=(aT.max-aS)/(aR-aS)*(aK-aL)+aL;aR=aT.max}} if(aL<=aK&&aL<aU.min){if(aK<aU.min){continue}aS=(aU.min-aL)/(aK-aL)*(aR-aS)+aS;a L=aU.min}else{if(aK<=aL&&aK<aU.min){if(aL<aU.min){continue}aR=(aU.min-aL)/(aK-aL )*(aR-aS)+aS;aK=aU.min}}if(aL>=aK&&aL>aU.max){if(aK>aU.max){continue}aS=(aU.max- aL)/(aK-aL)*(aR-aS)+aS;aL=aU.max}else{if(aK>=aL&&aK>aU.max){if(aL>aU.max){contin ue}aR=(aU.max-aL)/(aK-aL)*(aR-aS)+aS;aK=aU.max}}if(aL!=aN||aS!=aM){H.moveTo(aU.p 2c(aL)+aQ,aT.p2c(aS)+aI)}aN=aK;aM=aR;H.lineTo(aU.p2c(aK)+aQ,aT.p2c(aR)+aI)}H.str oke()}function aF(aI,aQ,aP){var aW=aI.points,aV=aI.pointsize,aN=Math.min(Math.ma x(0,aP.min),aP.max),aX=0,aU,aT=false,aM=1,aL=0,aR=0;while(true){if(aV>0&&aX>aW.l ength+aV){break}aX+=aV;var aZ=aW[aX-aV],aK=aW[aX-aV+aM],aY=aW[aX],aJ=aW[aX+aM];i f(aT){if(aV>0&&aZ!=null&&aY==null){aR=aX;aV=-aV;aM=2;continue}if(aV<0&&aX==aL+aV ){H.fill();aT=false;aV=-aV;aM=1;aX=aL=aR+aV;continue}}if(aZ==null||aY==null){con tinue}if(aZ<=aY&&aZ<aQ.min){if(aY<aQ.min){continue}aK=(aQ.min-aZ)/(aY-aZ)*(aJ-aK )+aK;aZ=aQ.min}else{if(aY<=aZ&&aY<aQ.min){if(aZ<aQ.min){continue}aJ=(aQ.min-aZ)/ (aY-aZ)*(aJ-aK)+aK;aY=aQ.min}}if(aZ>=aY&&aZ>aQ.max){if(aY>aQ.max){continue}aK=(a Q.max-aZ)/(aY-aZ)*(aJ-aK)+aK;aZ=aQ.max}else{if(aY>=aZ&&aY>aQ.max){if(aZ>aQ.max){ continue}aJ=(aQ.max-aZ)/(aY-aZ)*(aJ-aK)+aK;aY=aQ.max}}if(!aT){H.beginPath();H.mo veTo(aQ.p2c(aZ),aP.p2c(aN));aT=true}if(aK>=aP.max&&aJ>=aP.max){H.lineTo(aQ.p2c(a Z),aP.p2c(aP.max));H.lineTo(aQ.p2c(aY),aP.p2c(aP.max));continue}else{if(aK<=aP.m in&&aJ<=aP.min){H.lineTo(aQ.p2c(aZ),aP.p2c(aP.min));H.lineTo(aQ.p2c(aY),aP.p2c(a P.min));continue}}var aO=aZ,aS=aY;if(aK<=aJ&&aK<aP.min&&aJ>=aP.min){aZ=(aP.min-a K)/(aJ-aK)*(aY-aZ)+aZ;aK=aP.min}else{if(aJ<=aK&&aJ<aP.min&&aK>=aP.min){aY=(aP.mi n-aK)/(aJ-aK)*(aY-aZ)+aZ;aJ=aP.min}}if(aK>=aJ&&aK>aP.max&&aJ<=aP.max){aZ=(aP.max -aK)/(aJ-aK)*(aY-aZ)+aZ;aK=aP.max}else{if(aJ>=aK&&aJ>aP.max&&aK<=aP.max){aY=(aP. max-aK)/(aJ-aK)*(aY-aZ)+aZ;aJ=aP.max}}if(aZ!=aO){H.lineTo(aQ.p2c(aO),aP.p2c(aK)) }H.lineTo(aQ.p2c(aZ),aP.p2c(aK));H.lineTo(aQ.p2c(aY),aP.p2c(aJ));if(aY!=aS){H.li neTo(aQ.p2c(aY),aP.p2c(aJ));H.lineTo(aQ.p2c(aS),aP.p2c(aJ))}}}H.save();H.transla te(q.left,q.top);H.lineJoin="round";var aG=aE.lines.lineWidth,aB=aE.shadowSize;i f(aG>0&&aB>0){H.lineWidth=aB;H.strokeStyle="rgba(0,0,0,0.1)";var aH=Math.PI/18;a D(aE.datapoints,Math.sin(aH)*(aG/2+aB/2),Math.cos(aH)*(aG/2+aB/2),aE.xaxis,aE.ya xis);H.lineWidth=aB/2;aD(aE.datapoints,Math.sin(aH)*(aG/2+aB/4),Math.cos(aH)*(aG /2+aB/4),aE.xaxis,aE.yaxis)}H.lineWidth=aG;H.strokeStyle=aE.color;var aC=ae(aE.l ines,aE.color,0,w);if(aC){H.fillStyle=aC;aF(aE.datapoints,aE.xaxis,aE.yaxis)}if( aG>0){aD(aE.datapoints,0,0,aE.xaxis,aE.yaxis)}H.restore()}function ao(aE){functi on aH(aN,aM,aU,aK,aS,aT,aQ,aJ){var aR=aN.points,aI=aN.pointsize;for(var aL=0;aL< aR.length;aL+=aI){var aP=aR[aL],aO=aR[aL+1];if(aP==null||aP<aT.min||aP>aT.max||a O<aQ.min||aO>aQ.max){continue}H.beginPath();aP=aT.p2c(aP);aO=aQ.p2c(aO)+aK;if(aJ =="circle"){H.arc(aP,aO,aM,0,aS?Math.PI:Math.PI*2,false)}else{aJ(H,aP,aO,aM,aS)} H.closePath();if(aU){H.fillStyle=aU;H.fill()}H.stroke()}}H.save();H.translate(q. left,q.top);var aG=aE.points.lineWidth,aC=aE.shadowSize,aB=aE.points.radius,aF=a E.points.symbol;if(aG>0&&aC>0){var aD=aC/2;H.lineWidth=aD;H.strokeStyle="rgba(0, 0,0,0.1)";aH(aE.datapoints,aB,null,aD+aD/2,true,aE.xaxis,aE.yaxis,aF);H.strokeSt yle="rgba(0,0,0,0.2)";aH(aE.datapoints,aB,null,aD/2,true,aE.xaxis,aE.yaxis,aF)}H .lineWidth=aG;H.strokeStyle=aE.color;aH(aE.datapoints,aB,ae(aE.points,aE.color), 0,false,aE.xaxis,aE.yaxis,aF);H.restore()}function E(aN,aM,aV,aI,aQ,aF,aD,aL,aK, aU,aR,aC){var aE,aT,aJ,aP,aG,aB,aO,aH,aS;if(aR){aH=aB=aO=true;aG=false;aE=aV;aT= aN;aP=aM+aI;aJ=aM+aQ;if(aT<aE){aS=aT;aT=aE;aE=aS;aG=true;aB=false}}else{aG=aB=aO =true;aH=false;aE=aN+aI;aT=aN+aQ;aJ=aV;aP=aM;if(aP<aJ){aS=aP;aP=aJ;aJ=aS;aH=true ;aO=false}}if(aT<aL.min||aE>aL.max||aP<aK.min||aJ>aK.max){return}if(aE<aL.min){a E=aL.min;aG=false}if(aT>aL.max){aT=aL.max;aB=false}if(aJ<aK.min){aJ=aK.min;aH=fa lse}if(aP>aK.max){aP=aK.max;aO=false}aE=aL.p2c(aE);aJ=aK.p2c(aJ);aT=aL.p2c(aT);a P=aK.p2c(aP);if(aD){aU.beginPath();aU.moveTo(aE,aJ);aU.lineTo(aE,aP);aU.lineTo(a T,aP);aU.lineTo(aT,aJ);aU.fillStyle=aD(aJ,aP);aU.fill()}if(aC>0&&(aG||aB||aO||aH )){aU.beginPath();aU.moveTo(aE,aJ+aF);if(aG){aU.lineTo(aE,aP+aF)}else{aU.moveTo( aE,aP+aF)}if(aO){aU.lineTo(aT,aP+aF)}else{aU.moveTo(aT,aP+aF)}if(aB){aU.lineTo(a T,aJ+aF)}else{aU.moveTo(aT,aJ+aF)}if(aH){aU.lineTo(aE,aJ+aF)}else{aU.moveTo(aE,a J+aF)}aU.stroke()}}function e(aD){function aC(aJ,aI,aL,aG,aK,aN,aM){var aO=aJ.po ints,aF=aJ.pointsize;for(var aH=0;aH<aO.length;aH+=aF){if(aO[aH]==null){continue }E(aO[aH],aO[aH+1],aO[aH+2],aI,aL,aG,aK,aN,aM,H,aD.bars.horizontal,aD.bars.lineW idth)}}H.save();H.translate(q.left,q.top);H.lineWidth=aD.bars.lineWidth;H.stroke Style=aD.color;var aB=aD.bars.align=="left"?0:-aD.bars.barWidth/2;var aE=aD.bars .fill?function(aF,aG){return ae(aD.bars,aD.color,aF,aG)}:null;aC(aD.datapoints,a B,aB+aD.bars.barWidth,0,aE,aD.xaxis,aD.yaxis);H.restore()}function ae(aD,aB,aC,a F){var aE=aD.fill;if(!aE){return null}if(aD.fillColor){return am(aD.fillColor,aC ,aF,aB)}var aG=c.color.parse(aB);aG.a=typeof aE=="number"?aE:0.4;aG.normalize(); return aG.toString()}function o(){av.find(".legend").remove();if(!O.legend.show) {return}var aH=[],aF=false,aN=O.legend.labelFormatter,aM,aJ;for(var aE=0;aE<Q.le ngth;++aE){aM=Q[aE];aJ=aM.label;if(!aJ){continue}if(aE%O.legend.noColumns==0){if (aF){aH.push("</tr>")}aH.push("<tr>");aF=true}if(aN){aJ=aN(aJ,aM)}aH.push('<td c lass="legendColorBox"><div style="border:1px solid '+O.legend.labelBoxBorderColo r+';padding:1px"><div style="width:4px;height:0;border:5px solid '+aM.color+';ov erflow:hidden"></div></div></td><td class="legendLabel">'+aJ+"</td>")}if(aF){aH. push("</tr>")}if(aH.length==0){return}var aL='<table style="font-size:smaller;co lor:'+O.grid.color+'">'+aH.join("")+"</table>";if(O.legend.container!=null){c(O. legend.container).html(aL)}else{var aI="",aC=O.legend.position,aD=O.legend.margi n;if(aD[0]==null){aD=[aD,aD]}if(aC.charAt(0)=="n"){aI+="top:"+(aD[1]+q.top)+"px; "}else{if(aC.charAt(0)=="s"){aI+="bottom:"+(aD[1]+q.bottom)+"px;"}}if(aC.charAt( 1)=="e"){aI+="right:"+(aD[0]+q.right)+"px;"}else{if(aC.charAt(1)=="w"){aI+="left :"+(aD[0]+q.left)+"px;"}}var aK=c('<div class="legend">'+aL.replace('style="','s tyle="position:absolute;'+aI+";")+"</div>").appendTo(av);if(O.legend.backgroundO pacity!=0){var aG=O.legend.backgroundColor;if(aG==null){aG=O.grid.backgroundColo r;if(aG&&typeof aG=="string"){aG=c.color.parse(aG)}else{aG=c.color.extract(aK,"b ackground-color")}aG.a=1;aG=aG.toString()}var aB=aK.children();c('<div style="po sition:absolute;width:'+aB.width()+"px;height:"+aB.height()+"px;"+aI+"background -color:"+aG+';"> </div>').prependTo(aK).css("opacity",O.legend.backgroundOpacity )}}}var ab=[],M=null;function K(aI,aG,aD){var aO=O.grid.mouseActiveRadius,a0=aO* aO+1,aY=null,aR=false,aW,aU;for(aW=Q.length-1;aW>=0;--aW){if(!aD(Q[aW])){continu e}var aP=Q[aW],aH=aP.xaxis,aF=aP.yaxis,aV=aP.datapoints.points,aT=aP.datapoints. pointsize,aQ=aH.c2p(aI),aN=aF.c2p(aG),aC=aO/aH.scale,aB=aO/aF.scale;if(aH.option s.inverseTransform){aC=Number.MAX_VALUE}if(aF.options.inverseTransform){aB=Numbe r.MAX_VALUE}if(aP.lines.show||aP.points.show){for(aU=0;aU<aV.length;aU+=aT){var aK=aV[aU],aJ=aV[aU+1];if(aK==null){continue}if(aK-aQ>aC||aK-aQ<-aC||aJ-aN>aB||aJ -aN<-aB){continue}var aM=Math.abs(aH.p2c(aK)-aI),aL=Math.abs(aF.p2c(aJ)-aG),aS=a M*aM+aL*aL;if(aS<a0){a0=aS;aY=[aW,aU/aT]}}}if(aP.bars.show&&!aY){var aE=aP.bars. align=="left"?0:-aP.bars.barWidth/2,aX=aE+aP.bars.barWidth;for(aU=0;aU<aV.length ;aU+=aT){var aK=aV[aU],aJ=aV[aU+1],aZ=aV[aU+2];if(aK==null){continue}if(Q[aW].ba rs.horizontal?(aQ<=Math.max(aZ,aK)&&aQ>=Math.min(aZ,aK)&&aN>=aJ+aE&&aN<=aJ+aX):( aQ>=aK+aE&&aQ<=aK+aX&&aN>=Math.min(aZ,aJ)&&aN<=Math.max(aZ,aJ))){aY=[aW,aU/aT]}} }}if(aY){aW=aY[0];aU=aY[1];aT=Q[aW].datapoints.pointsize;return{datapoint:Q[aW]. datapoints.points.slice(aU*aT,(aU+1)*aT),dataIndex:aU,series:Q[aW],seriesIndex:a W}}return null}function aa(aB){if(O.grid.hoverable){u("plothover",aB,function(aC ){return aC.hoverable!=false})}}function l(aB){if(O.grid.hoverable){u("plothover ",aB,function(aC){return false})}}function R(aB){u("plotclick",aB,function(aC){r eturn aC.clickable!=false})}function u(aC,aB,aD){var aE=y.offset(),aH=aB.pageX-a E.left-q.left,aF=aB.pageY-aE.top-q.top,aJ=C({left:aH,top:aF});aJ.pageX=aB.pageX; aJ.pageY=aB.pageY;var aK=K(aH,aF,aD);if(aK){aK.pageX=parseInt(aK.series.xaxis.p2 c(aK.datapoint[0])+aE.left+q.left);aK.pageY=parseInt(aK.series.yaxis.p2c(aK.data point[1])+aE.top+q.top)}if(O.grid.autoHighlight){for(var aG=0;aG<ab.length;++aG) {var aI=ab[aG];if(aI.auto==aC&&!(aK&&aI.series==aK.series&&aI.point[0]==aK.datap oint[0]&&aI.point[1]==aK.datapoint[1])){T(aI.series,aI.point)}}if(aK){x(aK.serie s,aK.datapoint,aC)}}av.trigger(aC,[aJ,aK])}function f(){if(!M){M=setTimeout(s,30 )}}function s(){M=null;A.save();A.clearRect(0,0,G,I);A.translate(q.left,q.top);v ar aC,aB;for(aC=0;aC<ab.length;++aC){aB=ab[aC];if(aB.series.bars.show){v(aB.seri es,aB.point)}else{ay(aB.series,aB.point)}}A.restore();an(ak.drawOverlay,[A])}fun ction x(aD,aB,aF){if(typeof aD=="number"){aD=Q[aD]}if(typeof aB=="number"){var a E=aD.datapoints.pointsize;aB=aD.datapoints.points.slice(aE*aB,aE*(aB+1))}var aC= al(aD,aB);if(aC==-1){ab.push({series:aD,point:aB,auto:aF});f()}else{if(!aF){ab[a C].auto=false}}}function T(aD,aB){if(aD==null&&aB==null){ab=[];f()}if(typeof aD= ="number"){aD=Q[aD]}if(typeof aB=="number"){aB=aD.data[aB]}var aC=al(aD,aB);if(a C!=-1){ab.splice(aC,1);f()}}function al(aD,aE){for(var aB=0;aB<ab.length;++aB){v ar aC=ab[aB];if(aC.series==aD&&aC.point[0]==aE[0]&&aC.point[1]==aE[1]){return aB }}return -1}function ay(aE,aD){var aC=aD[0],aI=aD[1],aH=aE.xaxis,aG=aE.yaxis;if( aC<aH.min||aC>aH.max||aI<aG.min||aI>aG.max){return}var aF=aE.points.radius+aE.po ints.lineWidth/2;A.lineWidth=aF;A.strokeStyle=c.color.parse(aE.color).scale("a", 0.5).toString();var aB=1.5*aF,aC=aH.p2c(aC),aI=aG.p2c(aI);A.beginPath();if(aE.po ints.symbol=="circle"){A.arc(aC,aI,aB,0,2*Math.PI,false)}else{aE.points.symbol(A ,aC,aI,aB,false)}A.closePath();A.stroke()}function v(aE,aB){A.lineWidth=aE.bars. lineWidth;A.strokeStyle=c.color.parse(aE.color).scale("a",0.5).toString();var aD =c.color.parse(aE.color).scale("a",0.5).toString();var aC=aE.bars.align=="left"? 0:-aE.bars.barWidth/2;E(aB[0],aB[1],aB[2]||0,aC,aC+aE.bars.barWidth,0,function() {return aD},aE.xaxis,aE.yaxis,A,aE.bars.horizontal,aE.bars.lineWidth)}function a m(aJ,aB,aH,aC){if(typeof aJ=="string"){return aJ}else{var aI=H.createLinearGradi ent(0,aH,0,aB);for(var aE=0,aD=aJ.colors.length;aE<aD;++aE){var aF=aJ.colors[aE] ;if(typeof aF!="string"){var aG=c.color.parse(aC);if(aF.brightness!=null){aG=aG. scale("rgb",aF.brightness)}if(aF.opacity!=null){aG.a*=aF.opacity}aF=aG.toString( )}aI.addColorStop(aE/(aD-1),aF)}return aI}}}c.plot=function(g,e,d){var f=new b(c (g),e,d,c.plot.plugins);return f};c.plot.version="0.7";c.plot.plugins=[];c.plot. formatDate=function(l,f,h){var o=function(d){d=""+d;return d.length==1?"0"+d:d}; var e=[];var p=false,j=false;var n=l.getUTCHours();var k=n<12;if(h==null){h=["Ja n","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}if(f.searc h(/%p|%P/)!=-1){if(n>12){n=n-12}else{if(n==0){n=12}}}for(var g=0;g<f.length;++g) {var m=f.charAt(g);if(p){switch(m){case"h":m=""+n;break;case"H":m=o(n);break;cas e"M":m=o(l.getUTCMinutes());break;case"S":m=o(l.getUTCSeconds());break;case"d":m =""+l.getUTCDate();break;case"m":m=""+(l.getUTCMonth()+1);break;case"y":m=""+l.g etUTCFullYear();break;case"b":m=""+h[l.getUTCMonth()];break;case"p":m=(k)?("am") :("pm");break;case"P":m=(k)?("AM"):("PM");break;case"0":m="";j=true;break}if(m&& j){m=o(m);j=false}e.push(m);if(!j){p=false}}else{if(m=="%"){p=true}else{e.push(m )}}}return e.join("")};function a(e,d){return d*Math.floor(e/d)}})(jQuery); (function(b){b.color={};b.color.make=function(d,e,g,f){var c={};c.r=d||0;c.g=e|| 0;c.b=g||0;c.a=f!=null?f:1;c.add=function(h,j){for(var k=0;k<h.length;++k){c[h.c harAt(k)]+=j}return c.normalize()};c.scale=function(h,j){for(var k=0;k<h.length; ++k){c[h.charAt(k)]*=j}return c.normalize()};c.toString=function(){if(c.a>=1){re turn"rgb("+[c.r,c.g,c.b].join(",")+")"}else{return"rgba("+[c.r,c.g,c.b,c.a].join (",")+")"}};c.normalize=function(){function h(k,j,l){return j<k?k:(j>l?l:j)}c.r= h(0,parseInt(c.r),255);c.g=h(0,parseInt(c.g),255);c.b=h(0,parseInt(c.b),255);c.a =h(0,c.a,1);return c};c.clone=function(){return b.color.make(c.r,c.b,c.g,c.a)};r eturn c.normalize()};b.color.extract=function(d,e){var c;do{c=d.css(e).toLowerCa se();if(c!=""&&c!="transparent"){break}d=d.parent()}while(!b.nodeName(d.get(0)," body"));if(c=="rgba(0, 0, 0, 0)"){c="transparent"}return b.color.parse(c)};b.col or.parse=function(c){var d,f=b.color.make;if(d=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9 ]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c)){return f(parseInt(d[1],10),parseInt(d[ 2],10),parseInt(d[3],10))}if(d=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*( [0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c)){return f(parseInt(d[1],10 ),parseInt(d[2],10),parseInt(d[3],10),parseFloat(d[4]))}if(d=/rgb\(\s*([0-9]+(?: \.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/. exec(c)){return f(parseFloat(d[1])*2.55,parseFloat(d[2])*2.55,parseFloat(d[3])*2 .55)}if(d=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s* ([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c)){return f(pars eFloat(d[1])*2.55,parseFloat(d[2])*2.55,parseFloat(d[3])*2.55,parseFloat(d[4]))} if(d=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c)){return f(parse Int(d[1],16),parseInt(d[2],16),parseInt(d[3],16))}if(d=/#([a-fA-F0-9])([a-fA-F0- 9])([a-fA-F0-9])/.exec(c)){return f(parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16 ),parseInt(d[3]+d[3],16))}var e=b.trim(c).toLowerCase();if(e=="transparent"){ret urn f(255,255,255,0)}else{d=a[e]||[0,0,0];return f(d[0],d[1],d[2])}};var a={aqua :[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255 ],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],dar kgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139 ,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204 ],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255 ,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],l ightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgre y:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0] ,magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[2 55,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0] ,silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);(functio n(c){function b(av,ai,J,af){var Q=[],O={colors:["#edc240","#afd8f8","#cb4b4b","# 4da74d","#9440ed"],legend:{show:true,noColumns:1,labelFormatter:null,labelBoxBor derColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backg roundOpacity:0.85},xaxis:{show:null,position:"bottom",mode:null,color:null,tickC olor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin :null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpac e:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,m inTickSize:null,monthNames:null,timeformat:null,twelveHourClock:false},yaxis:{au toscaleMargin:0.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:false ,radius:3,lineWidth:2,fill:true,fillColor:"#ffffff",symbol:"circle"},lines:{line Width:2,fill:false,fillColor:null,steps:false},bars:{show:false,lineWidth:2,barW idth:1,fill:true,fillColor:null,align:"left",horizontal:false},shadowSize:3},gri d:{show:true,aboveData:false,color:"#545454",backgroundColor:null,borderColor:nu ll,tickColor:null,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null, markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:false,hovera ble:false,autoHighlight:true,mouseActiveRadius:10},hooks:{}},az=null,ad=null,y=n ull,H=null,A=null,p=[],aw=[],q={left:0,right:0,top:0,bottom:0},G=0,I=0,h=0,w=0,a k={processOptions:[],processRawData:[],processDatapoints:[],drawSeries:[],draw:[ ],bindEvents:[],drawOverlay:[],shutdown:[]},aq=this;aq.setData=aj;aq.setupGrid=t ;aq.draw=W;aq.getPlaceholder=function(){return av};aq.getCanvas=function(){retur n az};aq.getPlotOffset=function(){return q};aq.width=function(){return h};aq.hei ght=function(){return w};aq.offset=function(){var aB=y.offset();aB.left+=q.left; aB.top+=q.top;return aB};aq.getData=function(){return Q};aq.getAxes=function(){v ar aC={},aB;c.each(p.concat(aw),function(aD,aE){if(aE){aC[aE.direction+(aE.n!=1? aE.n:"")+"axis"]=aE}});return aC};aq.getXAxes=function(){return p};aq.getYAxes=f unction(){return aw};aq.c2p=C;aq.p2c=ar;aq.getOptions=function(){return O};aq.hi ghlight=x;aq.unhighlight=T;aq.triggerRedrawOverlay=f;aq.pointOffset=function(aB) {return{left:parseInt(p[aA(aB,"x")-1].p2c(+aB.x)+q.left),top:parseInt(aw[aA(aB," y")-1].p2c(+aB.y)+q.top)}};aq.shutdown=ag;aq.resize=function(){B();g(az);g(ad)}; aq.hooks=ak;F(aq);Z(J);X();aj(ai);t();W();ah();function an(aD,aB){aB=[aq].concat (aB);for(var aC=0;aC<aD.length;++aC){aD[aC].apply(this,aB)}}function F(){for(var aB=0;aB<af.length;++aB){var aC=af[aB];aC.init(aq);if(aC.options){c.extend(true, O,aC.options)}}}function Z(aC){var aB;c.extend(true,O,aC);if(O.xaxis.color==null ){O.xaxis.color=O.grid.color}if(O.yaxis.color==null){O.yaxis.color=O.grid.color} if(O.xaxis.tickColor==null){O.xaxis.tickColor=O.grid.tickColor}if(O.yaxis.tickCo lor==null){O.yaxis.tickColor=O.grid.tickColor}if(O.grid.borderColor==null){O.gri d.borderColor=O.grid.color}if(O.grid.tickColor==null){O.grid.tickColor=c.color.p arse(O.grid.color).scale("a",0.22).toString()}for(aB=0;aB<Math.max(1,O.xaxes.len gth);++aB){O.xaxes[aB]=c.extend(true,{},O.xaxis,O.xaxes[aB])}for(aB=0;aB<Math.ma x(1,O.yaxes.length);++aB){O.yaxes[aB]=c.extend(true,{},O.yaxis,O.yaxes[aB])}if(O .xaxis.noTicks&&O.xaxis.ticks==null){O.xaxis.ticks=O.xaxis.noTicks}if(O.yaxis.no Ticks&&O.yaxis.ticks==null){O.yaxis.ticks=O.yaxis.noTicks}if(O.x2axis){O.xaxes[1 ]=c.extend(true,{},O.xaxis,O.x2axis);O.xaxes[1].position="top"}if(O.y2axis){O.ya xes[1]=c.extend(true,{},O.yaxis,O.y2axis);O.yaxes[1].position="right"}if(O.grid. coloredAreas){O.grid.markings=O.grid.coloredAreas}if(O.grid.coloredAreasColor){O .grid.markingsColor=O.grid.coloredAreasColor}if(O.lines){c.extend(true,O.series. lines,O.lines)}if(O.points){c.extend(true,O.series.points,O.points)}if(O.bars){c .extend(true,O.series.bars,O.bars)}if(O.shadowSize!=null){O.series.shadowSize=O. shadowSize}for(aB=0;aB<O.xaxes.length;++aB){V(p,aB+1).options=O.xaxes[aB]}for(aB =0;aB<O.yaxes.length;++aB){V(aw,aB+1).options=O.yaxes[aB]}for(var aD in ak){if(O .hooks[aD]&&O.hooks[aD].length){ak[aD]=ak[aD].concat(O.hooks[aD])}}an(ak.process Options,[O])}function aj(aB){Q=Y(aB);ax();z()}function Y(aE){var aC=[];for(var a B=0;aB<aE.length;++aB){var aD=c.extend(true,{},O.series);if(aE[aB].data!=null){a D.data=aE[aB].data;delete aE[aB].data;c.extend(true,aD,aE[aB]);aE[aB].data=aD.da ta}else{aD.data=aE[aB]}aC.push(aD)}return aC}function aA(aC,aD){var aB=aC[aD+"ax is"];if(typeof aB=="object"){aB=aB.n}if(typeof aB!="number"){aB=1}return aB}func tion m(){return c.grep(p.concat(aw),function(aB){return aB})}function C(aE){var aC={},aB,aD;for(aB=0;aB<p.length;++aB){aD=p[aB];if(aD&&aD.used){aC["x"+aD.n]=aD. c2p(aE.left)}}for(aB=0;aB<aw.length;++aB){aD=aw[aB];if(aD&&aD.used){aC["y"+aD.n] =aD.c2p(aE.top)}}if(aC.x1!==undefined){aC.x=aC.x1}if(aC.y1!==undefined){aC.y=aC. y1}return aC}function ar(aF){var aD={},aC,aE,aB;for(aC=0;aC<p.length;++aC){aE=p[ aC];if(aE&&aE.used){aB="x"+aE.n;if(aF[aB]==null&&aE.n==1){aB="x"}if(aF[aB]!=null ){aD.left=aE.p2c(aF[aB]);break}}}for(aC=0;aC<aw.length;++aC){aE=aw[aC];if(aE&&aE .used){aB="y"+aE.n;if(aF[aB]==null&&aE.n==1){aB="y"}if(aF[aB]!=null){aD.top=aE.p 2c(aF[aB]);break}}}return aD}function V(aC,aB){if(!aC[aB-1]){aC[aB-1]={n:aB,dire ction:aC==p?"x":"y",options:c.extend(true,{},aC==p?O.xaxis:O.yaxis)}}return aC[a B-1]}function ax(){var aG;var aM=Q.length,aB=[],aE=[];for(aG=0;aG<Q.length;++aG) {var aJ=Q[aG].color;if(aJ!=null){--aM;if(typeof aJ=="number"){aE.push(aJ)}else{a B.push(c.color.parse(Q[aG].color))}}}for(aG=0;aG<aE.length;++aG){aM=Math.max(aM, aE[aG]+1)}var aC=[],aF=0;aG=0;while(aC.length<aM){var aI;if(O.colors.length==aG) {aI=c.color.make(100,100,100)}else{aI=c.color.parse(O.colors[aG])}var aD=aF%2==1 ?-1:1;aI.scale("rgb",1+aD*Math.ceil(aF/2)*0.2);aC.push(aI);++aG;if(aG>=O.colors. length){aG=0;++aF}}var aH=0,aN;for(aG=0;aG<Q.length;++aG){aN=Q[aG];if(aN.color== null){aN.color=aC[aH].toString();++aH}else{if(typeof aN.color=="number"){aN.colo r=aC[aN.color].toString()}}if(aN.lines.show==null){var aL,aK=true;for(aL in aN){ if(aN[aL]&&aN[aL].show){aK=false;break}}if(aK){aN.lines.show=true}}aN.xaxis=V(p, aA(aN,"x"));aN.yaxis=V(aw,aA(aN,"y"))}}function z(){var aO=Number.POSITIVE_INFIN ITY,aI=Number.NEGATIVE_INFINITY,aB=Number.MAX_VALUE,aU,aS,aR,aN,aD,aJ,aT,aP,aH,a G,aC,a0,aX,aL;function aF(a3,a2,a1){if(a2<a3.datamin&&a2!=-aB){a3.datamin=a2}if( a1>a3.datamax&&a1!=aB){a3.datamax=a1}}c.each(m(),function(a1,a2){a2.datamin=aO;a 2.datamax=aI;a2.used=false});for(aU=0;aU<Q.length;++aU){aJ=Q[aU];aJ.datapoints={ points:[]};an(ak.processRawData,[aJ,aJ.data,aJ.datapoints])}for(aU=0;aU<Q.length ;++aU){aJ=Q[aU];var aZ=aJ.data,aW=aJ.datapoints.format;if(!aW){aW=[];aW.push({x: true,number:true,required:true});aW.push({y:true,number:true,required:true});if( aJ.bars.show||(aJ.lines.show&&aJ.lines.fill)){aW.push({y:true,number:true,requir ed:false,defaultValue:0});if(aJ.bars.horizontal){delete aW[aW.length-1].y;aW[aW. length-1].x=true}}aJ.datapoints.format=aW}if(aJ.datapoints.pointsize!=null){cont inue}aJ.datapoints.pointsize=aW.length;aP=aJ.datapoints.pointsize;aT=aJ.datapoin ts.points;insertSteps=aJ.lines.show&&aJ.lines.steps;aJ.xaxis.used=aJ.yaxis.used= true;for(aS=aR=0;aS<aZ.length;++aS,aR+=aP){aL=aZ[aS];var aE=aL==null;if(!aE){for (aN=0;aN<aP;++aN){a0=aL[aN];aX=aW[aN];if(aX){if(aX.number&&a0!=null){a0=+a0;if(i sNaN(a0)){a0=null}else{if(a0==Infinity){a0=aB}else{if(a0==-Infinity){a0=-aB}}}}i f(a0==null){if(aX.required){aE=true}if(aX.defaultValue!=null){a0=aX.defaultValue }}}aT[aR+aN]=a0}}if(aE){for(aN=0;aN<aP;++aN){a0=aT[aR+aN];if(a0!=null){aX=aW[aN] ;if(aX.x){aF(aJ.xaxis,a0,a0)}if(aX.y){aF(aJ.yaxis,a0,a0)}}aT[aR+aN]=null}}else{i f(insertSteps&&aR>0&&aT[aR-aP]!=null&&aT[aR-aP]!=aT[aR]&&aT[aR-aP+1]!=aT[aR+1]){ for(aN=0;aN<aP;++aN){aT[aR+aP+aN]=aT[aR+aN]}aT[aR+1]=aT[aR-aP+1];aR+=aP}}}}for(a U=0;aU<Q.length;++aU){aJ=Q[aU];an(ak.processDatapoints,[aJ,aJ.datapoints])}for(a U=0;aU<Q.length;++aU){aJ=Q[aU];aT=aJ.datapoints.points,aP=aJ.datapoints.pointsiz e;var aK=aO,aQ=aO,aM=aI,aV=aI;for(aS=0;aS<aT.length;aS+=aP){if(aT[aS]==null){con tinue}for(aN=0;aN<aP;++aN){a0=aT[aS+aN];aX=aW[aN];if(!aX||a0==aB||a0==-aB){conti nue}if(aX.x){if(a0<aK){aK=a0}if(a0>aM){aM=a0}}if(aX.y){if(a0<aQ){aQ=a0}if(a0>aV) {aV=a0}}}}if(aJ.bars.show){var aY=aJ.bars.align=="left"?0:-aJ.bars.barWidth/2;if (aJ.bars.horizontal){aQ+=aY;aV+=aY+aJ.bars.barWidth}else{aK+=aY;aM+=aY+aJ.bars.b arWidth}}aF(aJ.xaxis,aK,aM);aF(aJ.yaxis,aQ,aV)}c.each(m(),function(a1,a2){if(a2. datamin==aO){a2.datamin=null}if(a2.datamax==aI){a2.datamax=null}})}function j(aB ,aC){var aD=document.createElement("canvas");aD.className=aC;aD.width=G;aD.heigh t=I;if(!aB){c(aD).css({position:"absolute",left:0,top:0})}c(aD).appendTo(av);if( !aD.getContext){aD=window.G_vmlCanvasManager.initElement(aD)}aD.getContext("2d") .save();return aD}function B(){G=av.width();I=av.height();if(G<=0||I<=0){throw"I nvalid dimensions for plot, width = "+G+", height = "+I}}function g(aC){if(aC.wi dth!=G){aC.width=G}if(aC.height!=I){aC.height=I}var aB=aC.getContext("2d");aB.re store();aB.save()}function X(){var aC,aB=av.children("canvas.base"),aD=av.childr en("canvas.overlay");if(aB.length==0||aD==0){av.html("");av.css({padding:0});if( av.css("position")=="static"){av.css("position","relative")}B();az=j(true,"base" );ad=j(false,"overlay");aC=false}else{az=aB.get(0);ad=aD.get(0);aC=true}H=az.get Context("2d");A=ad.getContext("2d");y=c([ad,az]);if(aC){av.data("plot").shutdown ();aq.resize();A.clearRect(0,0,G,I);y.unbind();av.children().not([az,ad]).remove ()}av.data("plot",aq)}function ah(){if(O.grid.hoverable){y.mousemove(aa);y.mouse leave(l)}if(O.grid.clickable){y.click(R)}an(ak.bindEvents,[y])}function ag(){if( M){clearTimeout(M)}y.unbind("mousemove",aa);y.unbind("mouseleave",l);y.unbind("c lick",R);an(ak.shutdown,[y])}function r(aG){function aC(aH){return aH}var aF,aB, aD=aG.options.transform||aC,aE=aG.options.inverseTransform;if(aG.direction=="x") {aF=aG.scale=h/Math.abs(aD(aG.max)-aD(aG.min));aB=Math.min(aD(aG.max),aD(aG.min) )}else{aF=aG.scale=w/Math.abs(aD(aG.max)-aD(aG.min));aF=-aF;aB=Math.max(aD(aG.ma x),aD(aG.min))}if(aD==aC){aG.p2c=function(aH){return(aH-aB)*aF}}else{aG.p2c=func tion(aH){return(aD(aH)-aB)*aF}}if(!aE){aG.c2p=function(aH){return aB+aH/aF}}else {aG.c2p=function(aH){return aE(aB+aH/aF)}}}function L(aD){var aB=aD.options,aF,a J=aD.ticks||[],aI=[],aE,aK=aB.labelWidth,aG=aB.labelHeight,aC;function aH(aM,aL) {return c('<div style="position:absolute;top:-10000px;'+aL+'font-size:smaller">< div class="'+aD.direction+"Axis "+aD.direction+aD.n+'Axis">'+aM.join("")+"</div> </div>").appendTo(av)}if(aD.direction=="x"){if(aK==null){aK=Math.floor(G/(aJ.len gth>0?aJ.length:1))}if(aG==null){aI=[];for(aF=0;aF<aJ.length;++aF){aE=aJ[aF].lab el;if(aE){aI.push('<div class="tickLabel" style="float:left;width:'+aK+'px">'+aE +"</div>")}}if(aI.length>0){aI.push('<div style="clear:left"></div>');aC=aH(aI," width:10000px;");aG=aC.height();aC.remove()}}}else{if(aK==null||aG==null){for(aF =0;aF<aJ.length;++aF){aE=aJ[aF].label;if(aE){aI.push('<div class="tickLabel">'+a E+"</div>")}}if(aI.length>0){aC=aH(aI,"");if(aK==null){aK=aC.children().width()} if(aG==null){aG=aC.find("div.tickLabel").height()}aC.remove()}}}if(aK==null){aK= 0}if(aG==null){aG=0}aD.labelWidth=aK;aD.labelHeight=aG}function au(aD){var aC=aD .labelWidth,aL=aD.labelHeight,aH=aD.options.position,aF=aD.options.tickLength,aG =O.grid.axisMargin,aJ=O.grid.labelMargin,aK=aD.direction=="x"?p:aw,aE;var aB=c.g rep(aK,function(aN){return aN&&aN.options.position==aH&&aN.reserveSpace});if(c.i nArray(aD,aB)==aB.length-1){aG=0}if(aF==null){aF="full"}var aI=c.grep(aK,functio n(aN){return aN&&aN.reserveSpace});var aM=c.inArray(aD,aI)==0;if(!aM&&aF=="full" ){aF=5}if(!isNaN(+aF)){aJ+=+aF}if(aD.direction=="x"){aL+=aJ;if(aH=="bottom"){q.b ottom+=aL+aG;aD.box={top:I-q.bottom,height:aL}}else{aD.box={top:q.top+aG,height: aL};q.top+=aL+aG}}else{aC+=aJ;if(aH=="left"){aD.box={left:q.left+aG,width:aC};q. left+=aC+aG}else{q.right+=aC+aG;aD.box={left:G-q.right,width:aC}}}aD.position=aH ;aD.tickLength=aF;aD.box.padding=aJ;aD.innermost=aM}function U(aB){if(aB.directi on=="x"){aB.box.left=q.left;aB.box.width=h}else{aB.box.top=q.top;aB.box.height=w }}function t(){var aC,aE=m();c.each(aE,function(aF,aG){aG.show=aG.options.show;i f(aG.show==null){aG.show=aG.used}aG.reserveSpace=aG.show||aG.options.reserveSpac e;n(aG)});allocatedAxes=c.grep(aE,function(aF){return aF.reserveSpace});q.left=q .right=q.top=q.bottom=0;if(O.grid.show){c.each(allocatedAxes,function(aF,aG){S(a G);P(aG);ap(aG,aG.ticks);L(aG)});for(aC=allocatedAxes.length-1;aC>=0;--aC){au(al locatedAxes[aC])}var aD=O.grid.minBorderMargin;if(aD==null){aD=0;for(aC=0;aC<Q.l ength;++aC){aD=Math.max(aD,Q[aC].points.radius+Q[aC].points.lineWidth/2)}}for(va r aB in q){q[aB]+=O.grid.borderWidth;q[aB]=Math.max(aD,q[aB])}}h=G-q.left-q.righ t;w=I-q.bottom-q.top;c.each(aE,function(aF,aG){r(aG)});if(O.grid.show){c.each(al locatedAxes,function(aF,aG){U(aG)});k()}o()}function n(aE){var aF=aE.options,aD= +(aF.min!=null?aF.min:aE.datamin),aB=+(aF.max!=null?aF.max:aE.datamax),aH=aB-aD; if(aH==0){var aC=aB==0?1:0.01;if(aF.min==null){aD-=aC}if(aF.max==null||aF.min!=n ull){aB+=aC}}else{var aG=aF.autoscaleMargin;if(aG!=null){if(aF.min==null){aD-=aH *aG;if(aD<0&&aE.datamin!=null&&aE.datamin>=0){aD=0}}if(aF.max==null){aB+=aH*aG;i f(aB>0&&aE.datamax!=null&&aE.datamax<=0){aB=0}}}}aE.min=aD;aE.max=aB}function S( aG){var aM=aG.options;var aH;if(typeof aM.ticks=="number"&&aM.ticks>0){aH=aM.tic ks}else{aH=0.3*Math.sqrt(aG.direction=="x"?G:I)}var aT=(aG.max-aG.min)/aH,aO,aB, aN,aR,aS,aQ,aI;if(aM.mode=="time"){var aJ={second:1000,minute:60*1000,hour:60*60 *1000,day:24*60*60*1000,month:30*24*60*60*1000,year:365.2425*24*60*60*1000};var aK=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minut e"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"], [4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[ 0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]];var aC= 0;if(aM.minTickSize!=null){if(typeof aM.tickSize=="number"){aC=aM.tickSize}else{ aC=aM.minTickSize[0]*aJ[aM.minTickSize[1]]}}for(var aS=0;aS<aK.length-1;++aS){if (aT<(aK[aS][0]*aJ[aK[aS][1]]+aK[aS+1][0]*aJ[aK[aS+1][1]])/2&&aK[aS][0]*aJ[aK[aS] [1]]>=aC){break}}aO=aK[aS][0];aN=aK[aS][1];if(aN=="year"){aQ=Math.pow(10,Math.fl oor(Math.log(aT/aJ.year)/Math.LN10));aI=(aT/aJ.year)/aQ;if(aI<1.5){aO=1}else{if( aI<3){aO=2}else{if(aI<7.5){aO=5}else{aO=10}}}aO*=aQ}aG.tickSize=aM.tickSize||[aO ,aN];aB=function(aX){var a2=[],a0=aX.tickSize[0],a3=aX.tickSize[1],a1=new Date(a X.min);var aW=a0*aJ[a3];if(a3=="second"){a1.setUTCSeconds(a(a1.getUTCSeconds(),a 0))}if(a3=="minute"){a1.setUTCMinutes(a(a1.getUTCMinutes(),a0))}if(a3=="hour"){a 1.setUTCHours(a(a1.getUTCHours(),a0))}if(a3=="month"){a1.setUTCMonth(a(a1.getUTC Month(),a0))}if(a3=="year"){a1.setUTCFullYear(a(a1.getUTCFullYear(),a0))}a1.setU TCMilliseconds(0);if(aW>=aJ.minute){a1.setUTCSeconds(0)}if(aW>=aJ.hour){a1.setUT CMinutes(0)}if(aW>=aJ.day){a1.setUTCHours(0)}if(aW>=aJ.day*4){a1.setUTCDate(1)}i f(aW>=aJ.year){a1.setUTCMonth(0)}var a5=0,a4=Number.NaN,aY;do{aY=a4;a4=a1.getTim e();a2.push(a4);if(a3=="month"){if(a0<1){a1.setUTCDate(1);var aV=a1.getTime();a1 .setUTCMonth(a1.getUTCMonth()+1);var aZ=a1.getTime();a1.setTime(a4+a5*aJ.hour+(a Z-aV)*a0);a5=a1.getUTCHours();a1.setUTCHours(0)}else{a1.setUTCMonth(a1.getUTCMon th()+a0)}}else{if(a3=="year"){a1.setUTCFullYear(a1.getUTCFullYear()+a0)}else{a1. setTime(a4+aW)}}}while(a4<aX.max&&a4!=aY);return a2};aR=function(aV,aY){var a0=n ew Date(aV);if(aM.timeformat!=null){return c.plot.formatDate(a0,aM.timeformat,aM .monthNames)}var aW=aY.tickSize[0]*aJ[aY.tickSize[1]];var aX=aY.max-aY.min;var a Z=(aM.twelveHourClock)?" %p":"";if(aW<aJ.minute){fmt="%h:%M:%S"+aZ}else{if(aW<aJ .day){if(aX<2*aJ.day){fmt="%h:%M"+aZ}else{fmt="%b %d %h:%M"+aZ}}else{if(aW<aJ.mo nth){fmt="%b %d"}else{if(aW<aJ.year){if(aX<aJ.year){fmt="%b"}else{fmt="%b %y"}}e lse{fmt="%y"}}}}return c.plot.formatDate(a0,fmt,aM.monthNames)}}else{var aU=aM.t ickDecimals;var aP=-Math.floor(Math.log(aT)/Math.LN10);if(aU!=null&&aP>aU){aP=aU }aQ=Math.pow(10,-aP);aI=aT/aQ;if(aI<1.5){aO=1}else{if(aI<3){aO=2;if(aI>2.25&&(aU ==null||aP+1<=aU)){aO=2.5;++aP}}else{if(aI<7.5){aO=5}else{aO=10}}}aO*=aQ;if(aM.m inTickSize!=null&&aO<aM.minTickSize){aO=aM.minTickSize}aG.tickDecimals=Math.max( 0,aU!=null?aU:aP);aG.tickSize=aM.tickSize||aO;aB=function(aX){var aZ=[];var a0=a (aX.min,aX.tickSize),aW=0,aV=Number.NaN,aY;do{aY=aV;aV=a0+aW*aX.tickSize;aZ.push (aV);++aW}while(aV<aX.max&&aV!=aY);return aZ};aR=function(aV,aW){return aV.toFix ed(aW.tickDecimals)}}if(aM.alignTicksWithAxis!=null){var aF=(aG.direction=="x"?p :aw)[aM.alignTicksWithAxis-1];if(aF&&aF.used&&aF!=aG){var aL=aB(aG);if(aL.length >0){if(aM.min==null){aG.min=Math.min(aG.min,aL[0])}if(aM.max==null&&aL.length>1) {aG.max=Math.max(aG.max,aL[aL.length-1])}}aB=function(aX){var aY=[],aV,aW;for(aW =0;aW<aF.ticks.length;++aW){aV=(aF.ticks[aW].v-aF.min)/(aF.max-aF.min);aV=aX.min +aV*(aX.max-aX.min);aY.push(aV)}return aY};if(aG.mode!="time"&&aM.tickDecimals== null){var aE=Math.max(0,-Math.floor(Math.log(aT)/Math.LN10)+1),aD=aB(aG);if(!(aD .length>1&&/\..*0$/.test((aD[1]-aD[0]).toFixed(aE)))){aG.tickDecimals=aE}}}}aG.t ickGenerator=aB;if(c.isFunction(aM.tickFormatter)){aG.tickFormatter=function(aV, aW){return""+aM.tickFormatter(aV,aW)}}else{aG.tickFormatter=aR}}function P(aF){v ar aH=aF.options.ticks,aG=[];if(aH==null||(typeof aH=="number"&&aH>0)){aG=aF.tic kGenerator(aF)}else{if(aH){if(c.isFunction(aH)){aG=aH({min:aF.min,max:aF.max})}e lse{aG=aH}}}var aE,aB;aF.ticks=[];for(aE=0;aE<aG.length;++aE){var aC=null;var aD =aG[aE];if(typeof aD=="object"){aB=+aD[0];if(aD.length>1){aC=aD[1]}}else{aB=+aD} if(aC==null){aC=aF.tickFormatter(aB,aF)}if(!isNaN(aB)){aF.ticks.push({v:aB,label :aC})}}}function ap(aB,aC){if(aB.options.autoscaleMargin&&aC.length>0){if(aB.opt ions.min==null){aB.min=Math.min(aB.min,aC[0].v)}if(aB.options.max==null&&aC.leng th>1){aB.max=Math.max(aB.max,aC[aC.length-1].v)}}}function W(){H.clearRect(0,0,G ,I);var aC=O.grid;if(aC.show&&aC.backgroundColor){N()}if(aC.show&&!aC.aboveData) {ac()}for(var aB=0;aB<Q.length;++aB){an(ak.drawSeries,[H,Q[aB]]);d(Q[aB])}an(ak. draw,[H]);if(aC.show&&aC.aboveData){ac()}}function D(aB,aI){var aE,aH,aG,aD,aF=m ();for(i=0;i<aF.length;++i){aE=aF[i];if(aE.direction==aI){aD=aI+aE.n+"axis";if(! aB[aD]&&aE.n==1){aD=aI+"axis"}if(aB[aD]){aH=aB[aD].from;aG=aB[aD].to;break}}}if( !aB[aD]){aE=aI=="x"?p[0]:aw[0];aH=aB[aI+"1"];aG=aB[aI+"2"]}if(aH!=null&&aG!=null &&aH>aG){var aC=aH;aH=aG;aG=aC}return{from:aH,to:aG,axis:aE}}function N(){H.save ();H.translate(q.left,q.top);H.fillStyle=am(O.grid.backgroundColor,w,0,"rgba(255 , 255, 255, 0)");H.fillRect(0,0,h,w);H.restore()}function ac(){var aF;H.save();H .translate(q.left,q.top);var aH=O.grid.markings;if(aH){if(c.isFunction(aH)){var aK=aq.getAxes();aK.xmin=aK.xaxis.min;aK.xmax=aK.xaxis.max;aK.ymin=aK.yaxis.min;a K.ymax=aK.yaxis.max;aH=aH(aK)}for(aF=0;aF<aH.length;++aF){var aD=aH[aF],aC=D(aD, "x"),aI=D(aD,"y");if(aC.from==null){aC.from=aC.axis.min}if(aC.to==null){aC.to=aC .axis.max}if(aI.from==null){aI.from=aI.axis.min}if(aI.to==null){aI.to=aI.axis.ma x}if(aC.to<aC.axis.min||aC.from>aC.axis.max||aI.to<aI.axis.min||aI.from>aI.axis. max){continue}aC.from=Math.max(aC.from,aC.axis.min);aC.to=Math.min(aC.to,aC.axis .max);aI.from=Math.max(aI.from,aI.axis.min);aI.to=Math.min(aI.to,aI.axis.max);if (aC.from==aC.to&&aI.from==aI.to){continue}aC.from=aC.axis.p2c(aC.from);aC.to=aC. axis.p2c(aC.to);aI.from=aI.axis.p2c(aI.from);aI.to=aI.axis.p2c(aI.to);if(aC.from ==aC.to||aI.from==aI.to){H.beginPath();H.strokeStyle=aD.color||O.grid.markingsCo lor;H.lineWidth=aD.lineWidth||O.grid.markingsLineWidth;H.moveTo(aC.from,aI.from) ;H.lineTo(aC.to,aI.to);H.stroke()}else{H.fillStyle=aD.color||O.grid.markingsColo r;H.fillRect(aC.from,aI.to,aC.to-aC.from,aI.from-aI.to)}}}var aK=m(),aM=O.grid.b orderWidth;for(var aE=0;aE<aK.length;++aE){var aB=aK[aE],aG=aB.box,aQ=aB.tickLen gth,aN,aL,aP,aJ;if(!aB.show||aB.ticks.length==0){continue}H.strokeStyle=aB.optio ns.tickColor||c.color.parse(aB.options.color).scale("a",0.22).toString();H.lineW idth=1;if(aB.direction=="x"){aN=0;if(aQ=="full"){aL=(aB.position=="top"?0:w)}els e{aL=aG.top-q.top+(aB.position=="top"?aG.height:0)}}else{aL=0;if(aQ=="full"){aN= (aB.position=="left"?0:h)}else{aN=aG.left-q.left+(aB.position=="left"?aG.width:0 )}}if(!aB.innermost){H.beginPath();aP=aJ=0;if(aB.direction=="x"){aP=h}else{aJ=w} if(H.lineWidth==1){aN=Math.floor(aN)+0.5;aL=Math.floor(aL)+0.5}H.moveTo(aN,aL);H .lineTo(aN+aP,aL+aJ);H.stroke()}H.beginPath();for(aF=0;aF<aB.ticks.length;++aF){ var aO=aB.ticks[aF].v;aP=aJ=0;if(aO<aB.min||aO>aB.max||(aQ=="full"&&aM>0&&(aO==a B.min||aO==aB.max))){continue}if(aB.direction=="x"){aN=aB.p2c(aO);aJ=aQ=="full"? -w:aQ;if(aB.position=="top"){aJ=-aJ}}else{aL=aB.p2c(aO);aP=aQ=="full"?-h:aQ;if(a B.position=="left"){aP=-aP}}if(H.lineWidth==1){if(aB.direction=="x"){aN=Math.flo or(aN)+0.5}else{aL=Math.floor(aL)+0.5}}H.moveTo(aN,aL);H.lineTo(aN+aP,aL+aJ)}H.s troke()}if(aM){H.lineWidth=aM;H.strokeStyle=O.grid.borderColor;H.strokeRect(-aM/ 2,-aM/2,h+aM,w+aM)}H.restore()}function k(){av.find(".tickLabels").remove();var aG=['<div class="tickLabels" style="font-size:smaller">'];var aJ=m();for(var aD= 0;aD<aJ.length;++aD){var aC=aJ[aD],aF=aC.box;if(!aC.show){continue}aG.push('<div class="'+aC.direction+"Axis "+aC.direction+aC.n+'Axis" style="color:'+aC.option s.color+'">');for(var aE=0;aE<aC.ticks.length;++aE){var aH=aC.ticks[aE];if(!aH.l abel||aH.v<aC.min||aH.v>aC.max){continue}var aK={},aI;if(aC.direction=="x"){aI=" center";aK.left=Math.round(q.left+aC.p2c(aH.v)-aC.labelWidth/2);if(aC.position== "bottom"){aK.top=aF.top+aF.padding}else{aK.bottom=I-(aF.top+aF.height-aF.padding )}}else{aK.top=Math.round(q.top+aC.p2c(aH.v)-aC.labelHeight/2);if(aC.position==" left"){aK.right=G-(aF.left+aF.width-aF.padding);aI="right"}else{aK.left=aF.left+ aF.padding;aI="left"}}aK.width=aC.labelWidth;var aB=["position:absolute","text-a lign:"+aI];for(var aL in aK){aB.push(aL+":"+aK[aL]+"px")}aG.push('<div class="ti ckLabel" style="'+aB.join(";")+'">'+aH.label+"</div>")}aG.push("</div>")}aG.push ("</div>");av.append(aG.join(""))}function d(aB){if(aB.lines.show){at(aB)}if(aB. bars.show){e(aB)}if(aB.points.show){ao(aB)}}function at(aE){function aD(aP,aQ,aI ,aU,aT){var aV=aP.points,aJ=aP.pointsize,aN=null,aM=null;H.beginPath();for(var a O=aJ;aO<aV.length;aO+=aJ){var aL=aV[aO-aJ],aS=aV[aO-aJ+1],aK=aV[aO],aR=aV[aO+1]; if(aL==null||aK==null){continue}if(aS<=aR&&aS<aT.min){if(aR<aT.min){continue}aL= (aT.min-aS)/(aR-aS)*(aK-aL)+aL;aS=aT.min}else{if(aR<=aS&&aR<aT.min){if(aS<aT.min ){continue}aK=(aT.min-aS)/(aR-aS)*(aK-aL)+aL;aR=aT.min}}if(aS>=aR&&aS>aT.max){if (aR>aT.max){continue}aL=(aT.max-aS)/(aR-aS)*(aK-aL)+aL;aS=aT.max}else{if(aR>=aS& &aR>aT.max){if(aS>aT.max){continue}aK=(aT.max-aS)/(aR-aS)*(aK-aL)+aL;aR=aT.max}} if(aL<=aK&&aL<aU.min){if(aK<aU.min){continue}aS=(aU.min-aL)/(aK-aL)*(aR-aS)+aS;a L=aU.min}else{if(aK<=aL&&aK<aU.min){if(aL<aU.min){continue}aR=(aU.min-aL)/(aK-aL )*(aR-aS)+aS;aK=aU.min}}if(aL>=aK&&aL>aU.max){if(aK>aU.max){continue}aS=(aU.max- aL)/(aK-aL)*(aR-aS)+aS;aL=aU.max}else{if(aK>=aL&&aK>aU.max){if(aL>aU.max){contin ue}aR=(aU.max-aL)/(aK-aL)*(aR-aS)+aS;aK=aU.max}}if(aL!=aN||aS!=aM){H.moveTo(aU.p 2c(aL)+aQ,aT.p2c(aS)+aI)}aN=aK;aM=aR;H.lineTo(aU.p2c(aK)+aQ,aT.p2c(aR)+aI)}H.str oke()}function aF(aI,aQ,aP){var aW=aI.points,aV=aI.pointsize,aN=Math.min(Math.ma x(0,aP.min),aP.max),aX=0,aU,aT=false,aM=1,aL=0,aR=0;while(true){if(aV>0&&aX>aW.l ength+aV){break}aX+=aV;var aZ=aW[aX-aV],aK=aW[aX-aV+aM],aY=aW[aX],aJ=aW[aX+aM];i f(aT){if(aV>0&&aZ!=null&&aY==null){aR=aX;aV=-aV;aM=2;continue}if(aV<0&&aX==aL+aV ){H.fill();aT=false;aV=-aV;aM=1;aX=aL=aR+aV;continue}}if(aZ==null||aY==null){con tinue}if(aZ<=aY&&aZ<aQ.min){if(aY<aQ.min){continue}aK=(aQ.min-aZ)/(aY-aZ)*(aJ-aK )+aK;aZ=aQ.min}else{if(aY<=aZ&&aY<aQ.min){if(aZ<aQ.min){continue}aJ=(aQ.min-aZ)/ (aY-aZ)*(aJ-aK)+aK;aY=aQ.min}}if(aZ>=aY&&aZ>aQ.max){if(aY>aQ.max){continue}aK=(a Q.max-aZ)/(aY-aZ)*(aJ-aK)+aK;aZ=aQ.max}else{if(aY>=aZ&&aY>aQ.max){if(aZ>aQ.max){ continue}aJ=(aQ.max-aZ)/(aY-aZ)*(aJ-aK)+aK;aY=aQ.max}}if(!aT){H.beginPath();H.mo veTo(aQ.p2c(aZ),aP.p2c(aN));aT=true}if(aK>=aP.max&&aJ>=aP.max){H.lineTo(aQ.p2c(a Z),aP.p2c(aP.max));H.lineTo(aQ.p2c(aY),aP.p2c(aP.max));continue}else{if(aK<=aP.m in&&aJ<=aP.min){H.lineTo(aQ.p2c(aZ),aP.p2c(aP.min));H.lineTo(aQ.p2c(aY),aP.p2c(a P.min));continue}}var aO=aZ,aS=aY;if(aK<=aJ&&aK<aP.min&&aJ>=aP.min){aZ=(aP.min-a K)/(aJ-aK)*(aY-aZ)+aZ;aK=aP.min}else{if(aJ<=aK&&aJ<aP.min&&aK>=aP.min){aY=(aP.mi n-aK)/(aJ-aK)*(aY-aZ)+aZ;aJ=aP.min}}if(aK>=aJ&&aK>aP.max&&aJ<=aP.max){aZ=(aP.max -aK)/(aJ-aK)*(aY-aZ)+aZ;aK=aP.max}else{if(aJ>=aK&&aJ>aP.max&&aK<=aP.max){aY=(aP. max-aK)/(aJ-aK)*(aY-aZ)+aZ;aJ=aP.max}}if(aZ!=aO){H.lineTo(aQ.p2c(aO),aP.p2c(aK)) }H.lineTo(aQ.p2c(aZ),aP.p2c(aK));H.lineTo(aQ.p2c(aY),aP.p2c(aJ));if(aY!=aS){H.li neTo(aQ.p2c(aY),aP.p2c(aJ));H.lineTo(aQ.p2c(aS),aP.p2c(aJ))}}}H.save();H.transla te(q.left,q.top);H.lineJoin="round";var aG=aE.lines.lineWidth,aB=aE.shadowSize;i f(aG>0&&aB>0){H.lineWidth=aB;H.strokeStyle="rgba(0,0,0,0.1)";var aH=Math.PI/18;a D(aE.datapoints,Math.sin(aH)*(aG/2+aB/2),Math.cos(aH)*(aG/2+aB/2),aE.xaxis,aE.ya xis);H.lineWidth=aB/2;aD(aE.datapoints,Math.sin(aH)*(aG/2+aB/4),Math.cos(aH)*(aG /2+aB/4),aE.xaxis,aE.yaxis)}H.lineWidth=aG;H.strokeStyle=aE.color;var aC=ae(aE.l ines,aE.color,0,w);if(aC){H.fillStyle=aC;aF(aE.datapoints,aE.xaxis,aE.yaxis)}if( aG>0){aD(aE.datapoints,0,0,aE.xaxis,aE.yaxis)}H.restore()}function ao(aE){functi on aH(aN,aM,aU,aK,aS,aT,aQ,aJ){var aR=aN.points,aI=aN.pointsize;for(var aL=0;aL< aR.length;aL+=aI){var aP=aR[aL],aO=aR[aL+1];if(aP==null||aP<aT.min||aP>aT.max||a O<aQ.min||aO>aQ.max){continue}H.beginPath();aP=aT.p2c(aP);aO=aQ.p2c(aO)+aK;if(aJ =="circle"){H.arc(aP,aO,aM,0,aS?Math.PI:Math.PI*2,false)}else{aJ(H,aP,aO,aM,aS)} H.closePath();if(aU){H.fillStyle=aU;H.fill()}H.stroke()}}H.save();H.translate(q. left,q.top);var aG=aE.points.lineWidth,aC=aE.shadowSize,aB=aE.points.radius,aF=a E.points.symbol;if(aG>0&&aC>0){var aD=aC/2;H.lineWidth=aD;H.strokeStyle="rgba(0, 0,0,0.1)";aH(aE.datapoints,aB,null,aD+aD/2,true,aE.xaxis,aE.yaxis,aF);H.strokeSt yle="rgba(0,0,0,0.2)";aH(aE.datapoints,aB,null,aD/2,true,aE.xaxis,aE.yaxis,aF)}H .lineWidth=aG;H.strokeStyle=aE.color;aH(aE.datapoints,aB,ae(aE.points,aE.color), 0,false,aE.xaxis,aE.yaxis,aF);H.restore()}function E(aN,aM,aV,aI,aQ,aF,aD,aL,aK, aU,aR,aC){var aE,aT,aJ,aP,aG,aB,aO,aH,aS;if(aR){aH=aB=aO=true;aG=false;aE=aV;aT= aN;aP=aM+aI;aJ=aM+aQ;if(aT<aE){aS=aT;aT=aE;aE=aS;aG=true;aB=false}}else{aG=aB=aO =true;aH=false;aE=aN+aI;aT=aN+aQ;aJ=aV;aP=aM;if(aP<aJ){aS=aP;aP=aJ;aJ=aS;aH=true ;aO=false}}if(aT<aL.min||aE>aL.max||aP<aK.min||aJ>aK.max){return}if(aE<aL.min){a E=aL.min;aG=false}if(aT>aL.max){aT=aL.max;aB=false}if(aJ<aK.min){aJ=aK.min;aH=fa lse}if(aP>aK.max){aP=aK.max;aO=false}aE=aL.p2c(aE);aJ=aK.p2c(aJ);aT=aL.p2c(aT);a P=aK.p2c(aP);if(aD){aU.beginPath();aU.moveTo(aE,aJ);aU.lineTo(aE,aP);aU.lineTo(a T,aP);aU.lineTo(aT,aJ);aU.fillStyle=aD(aJ,aP);aU.fill()}if(aC>0&&(aG||aB||aO||aH )){aU.beginPath();aU.moveTo(aE,aJ+aF);if(aG){aU.lineTo(aE,aP+aF)}else{aU.moveTo( aE,aP+aF)}if(aO){aU.lineTo(aT,aP+aF)}else{aU.moveTo(aT,aP+aF)}if(aB){aU.lineTo(a T,aJ+aF)}else{aU.moveTo(aT,aJ+aF)}if(aH){aU.lineTo(aE,aJ+aF)}else{aU.moveTo(aE,a J+aF)}aU.stroke()}}function e(aD){function aC(aJ,aI,aL,aG,aK,aN,aM){var aO=aJ.po ints,aF=aJ.pointsize;for(var aH=0;aH<aO.length;aH+=aF){if(aO[aH]==null){continue }E(aO[aH],aO[aH+1],aO[aH+2],aI,aL,aG,aK,aN,aM,H,aD.bars.horizontal,aD.bars.lineW idth)}}H.save();H.translate(q.left,q.top);H.lineWidth=aD.bars.lineWidth;H.stroke Style=aD.color;var aB=aD.bars.align=="left"?0:-aD.bars.barWidth/2;var aE=aD.bars .fill?function(aF,aG){return ae(aD.bars,aD.color,aF,aG)}:null;aC(aD.datapoints,a B,aB+aD.bars.barWidth,0,aE,aD.xaxis,aD.yaxis);H.restore()}function ae(aD,aB,aC,a F){var aE=aD.fill;if(!aE){return null}if(aD.fillColor){return am(aD.fillColor,aC ,aF,aB)}var aG=c.color.parse(aB);aG.a=typeof aE=="number"?aE:0.4;aG.normalize(); return aG.toString()}function o(){av.find(".legend").remove();if(!O.legend.show) {return}var aH=[],aF=false,aN=O.legend.labelFormatter,aM,aJ;for(var aE=0;aE<Q.le ngth;++aE){aM=Q[aE];aJ=aM.label;if(!aJ){continue}if(aE%O.legend.noColumns==0){if (aF){aH.push("</tr>")}aH.push("<tr>");aF=true}if(aN){aJ=aN(aJ,aM)}aH.push('<td c lass="legendColorBox"><div style="border:1px solid '+O.legend.labelBoxBorderColo r+';padding:1px"><div style="width:4px;height:0;border:5px solid '+aM.color+';ov erflow:hidden"></div></div></td><td class="legendLabel">'+aJ+"</td>")}if(aF){aH. push("</tr>")}if(aH.length==0){return}var aL='<table style="font-size:smaller;co lor:'+O.grid.color+'">'+aH.join("")+"</table>";if(O.legend.container!=null){c(O. legend.container).html(aL)}else{var aI="",aC=O.legend.position,aD=O.legend.margi n;if(aD[0]==null){aD=[aD,aD]}if(aC.charAt(0)=="n"){aI+="top:"+(aD[1]+q.top)+"px; "}else{if(aC.charAt(0)=="s"){aI+="bottom:"+(aD[1]+q.bottom)+"px;"}}if(aC.charAt( 1)=="e"){aI+="right:"+(aD[0]+q.right)+"px;"}else{if(aC.charAt(1)=="w"){aI+="left :"+(aD[0]+q.left)+"px;"}}var aK=c('<div class="legend">'+aL.replace('style="','s tyle="position:absolute;'+aI+";")+"</div>").appendTo(av);if(O.legend.backgroundO pacity!=0){var aG=O.legend.backgroundColor;if(aG==null){aG=O.grid.backgroundColo r;if(aG&&typeof aG=="string"){aG=c.color.parse(aG)}else{aG=c.color.extract(aK,"b ackground-color")}aG.a=1;aG=aG.toString()}var aB=aK.children();c('<div style="po sition:absolute;width:'+aB.width()+"px;height:"+aB.height()+"px;"+aI+"background -color:"+aG+';"> </div>').prependTo(aK).css("opacity",O.legend.backgroundOpacity )}}}var ab=[],M=null;function K(aI,aG,aD){var aO=O.grid.mouseActiveRadius,a0=aO* aO+1,aY=null,aR=false,aW,aU;for(aW=Q.length-1;aW>=0;--aW){if(!aD(Q[aW])){continu e}var aP=Q[aW],aH=aP.xaxis,aF=aP.yaxis,aV=aP.datapoints.points,aT=aP.datapoints. pointsize,aQ=aH.c2p(aI),aN=aF.c2p(aG),aC=aO/aH.scale,aB=aO/aF.scale;if(aH.option s.inverseTransform){aC=Number.MAX_VALUE}if(aF.options.inverseTransform){aB=Numbe r.MAX_VALUE}if(aP.lines.show||aP.points.show){for(aU=0;aU<aV.length;aU+=aT){var aK=aV[aU],aJ=aV[aU+1];if(aK==null){continue}if(aK-aQ>aC||aK-aQ<-aC||aJ-aN>aB||aJ -aN<-aB){continue}var aM=Math.abs(aH.p2c(aK)-aI),aL=Math.abs(aF.p2c(aJ)-aG),aS=a M*aM+aL*aL;if(aS<a0){a0=aS;aY=[aW,aU/aT]}}}if(aP.bars.show&&!aY){var aE=aP.bars. align=="left"?0:-aP.bars.barWidth/2,aX=aE+aP.bars.barWidth;for(aU=0;aU<aV.length ;aU+=aT){var aK=aV[aU],aJ=aV[aU+1],aZ=aV[aU+2];if(aK==null){continue}if(Q[aW].ba rs.horizontal?(aQ<=Math.max(aZ,aK)&&aQ>=Math.min(aZ,aK)&&aN>=aJ+aE&&aN<=aJ+aX):( aQ>=aK+aE&&aQ<=aK+aX&&aN>=Math.min(aZ,aJ)&&aN<=Math.max(aZ,aJ))){aY=[aW,aU/aT]}} }}if(aY){aW=aY[0];aU=aY[1];aT=Q[aW].datapoints.pointsize;return{datapoint:Q[aW]. datapoints.points.slice(aU*aT,(aU+1)*aT),dataIndex:aU,series:Q[aW],seriesIndex:a W}}return null}function aa(aB){if(O.grid.hoverable){u("plothover",aB,function(aC ){return aC.hoverable!=false})}}function l(aB){if(O.grid.hoverable){u("plothover ",aB,function(aC){return false})}}function R(aB){u("plotclick",aB,function(aC){r eturn aC.clickable!=false})}function u(aC,aB,aD){var aE=y.offset(),aH=aB.pageX-a E.left-q.left,aF=aB.pageY-aE.top-q.top,aJ=C({left:aH,top:aF});aJ.pageX=aB.pageX; aJ.pageY=aB.pageY;var aK=K(aH,aF,aD);if(aK){aK.pageX=parseInt(aK.series.xaxis.p2 c(aK.datapoint[0])+aE.left+q.left);aK.pageY=parseInt(aK.series.yaxis.p2c(aK.data point[1])+aE.top+q.top)}if(O.grid.autoHighlight){for(var aG=0;aG<ab.length;++aG) {var aI=ab[aG];if(aI.auto==aC&&!(aK&&aI.series==aK.series&&aI.point[0]==aK.datap oint[0]&&aI.point[1]==aK.datapoint[1])){T(aI.series,aI.point)}}if(aK){x(aK.serie s,aK.datapoint,aC)}}av.trigger(aC,[aJ,aK])}function f(){if(!M){M=setTimeout(s,30 )}}function s(){M=null;A.save();A.clearRect(0,0,G,I);A.translate(q.left,q.top);v ar aC,aB;for(aC=0;aC<ab.length;++aC){aB=ab[aC];if(aB.series.bars.show){v(aB.seri es,aB.point)}else{ay(aB.series,aB.point)}}A.restore();an(ak.drawOverlay,[A])}fun ction x(aD,aB,aF){if(typeof aD=="number"){aD=Q[aD]}if(typeof aB=="number"){var a E=aD.datapoints.pointsize;aB=aD.datapoints.points.slice(aE*aB,aE*(aB+1))}var aC= al(aD,aB);if(aC==-1){ab.push({series:aD,point:aB,auto:aF});f()}else{if(!aF){ab[a C].auto=false}}}function T(aD,aB){if(aD==null&&aB==null){ab=[];f()}if(typeof aD= ="number"){aD=Q[aD]}if(typeof aB=="number"){aB=aD.data[aB]}var aC=al(aD,aB);if(a C!=-1){ab.splice(aC,1);f()}}function al(aD,aE){for(var aB=0;aB<ab.length;++aB){v ar aC=ab[aB];if(aC.series==aD&&aC.point[0]==aE[0]&&aC.point[1]==aE[1]){return aB }}return -1}function ay(aE,aD){var aC=aD[0],aI=aD[1],aH=aE.xaxis,aG=aE.yaxis;if( aC<aH.min||aC>aH.max||aI<aG.min||aI>aG.max){return}var aF=aE.points.radius+aE.po ints.lineWidth/2;A.lineWidth=aF;A.strokeStyle=c.color.parse(aE.color).scale("a", 0.5).toString();var aB=1.5*aF,aC=aH.p2c(aC),aI=aG.p2c(aI);A.beginPath();if(aE.po ints.symbol=="circle"){A.arc(aC,aI,aB,0,2*Math.PI,false)}else{aE.points.symbol(A ,aC,aI,aB,false)}A.closePath();A.stroke()}function v(aE,aB){A.lineWidth=aE.bars. lineWidth;A.strokeStyle=c.color.parse(aE.color).scale("a",0.5).toString();var aD =c.color.parse(aE.color).scale("a",0.5).toString();var aC=aE.bars.align=="left"? 0:-aE.bars.barWidth/2;E(aB[0],aB[1],aB[2]||0,aC,aC+aE.bars.barWidth,0,function() {return aD},aE.xaxis,aE.yaxis,A,aE.bars.horizontal,aE.bars.lineWidth)}function a m(aJ,aB,aH,aC){if(typeof aJ=="string"){return aJ}else{var aI=H.createLinearGradi ent(0,aH,0,aB);for(var aE=0,aD=aJ.colors.length;aE<aD;++aE){var aF=aJ.colors[aE] ;if(typeof aF!="string"){var aG=c.color.parse(aC);if(aF.brightness!=null){aG=aG. scale("rgb",aF.brightness)}if(aF.opacity!=null){aG.a*=aF.opacity}aF=aG.toString( )}aI.addColorStop(aE/(aD-1),aF)}return aI}}}c.plot=function(g,e,d){var f=new b(c (g),e,d,c.plot.plugins);return f};c.plot.version="0.7";c.plot.plugins=[];c.plot. formatDate=function(l,f,h){var o=function(d){d=""+d;return d.length==1?"0"+d:d}; var e=[];var p=false,j=false;var n=l.getUTCHours();var k=n<12;if(h==null){h=["Ja n","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}if(f.searc h(/%p|%P/)!=-1){if(n>12){n=n-12}else{if(n==0){n=12}}}for(var g=0;g<f.length;++g) {var m=f.charAt(g);if(p){switch(m){case"h":m=""+n;break;case"H":m=o(n);break;cas e"M":m=o(l.getUTCMinutes());break;case"S":m=o(l.getUTCSeconds());break;case"d":m =""+l.getUTCDate();break;case"m":m=""+(l.getUTCMonth()+1);break;case"y":m=""+l.g etUTCFullYear();break;case"b":m=""+h[l.getUTCMonth()];break;case"p":m=(k)?("am") :("pm");break;case"P":m=(k)?("AM"):("PM");break;case"0":m="";j=true;break}if(m&& j){m=o(m);j=false}e.push(m);if(!j){p=false}}else{if(m=="%"){p=true}else{e.push(m )}}}return e.join("")};function a(e,d){return d*Math.floor(e/d)}})(jQuery);
/* End of flot */ /* End of flot */
skipping to change at line 2772 skipping to change at line 2248
* *
* Date: Sun, May 5th, 2010 * Date: Sun, May 5th, 2010
* Version: 0.9.2 * Version: 0.9.2
*/ */
(function($){var A='[object Array]',F='[object Function]',S='[object String]',n= 0,c='%',ts=Object.prototype.toString;$.fn.extend({jqote:function(x,y){var x=ts.c all(x)===A?x:[x],d='';this.each(function(i){var f=(l=$.jqotecache[this.jqote])?l :$.jqotec(this,y||c);for(var j=0;j<x.length;j++)d+=f.call(x[j],i,j,x,f);});retur n d},jqoteapp:function(e,x,y){var d=$.jqote(e,x,y);return this.each(function(){$ (this).append(d)})},jqotepre:function(e,x,y){var d=$.jqote(e,x,y);return this.ea ch(function(){$(this).prepend(d)})},jqotesub:function(e,x,y){var d=$.jqote(e,x,y );return this.each(function(){$(this).html(d)})}});$.extend({jqote:function(e,x, y){var d='',l=[],y=y||c,t=ts.call(e),x=ts.call(x)===A?x:[x];if(t===F)l=[e];else if(t===A)l=ts.call(e[0])===F?e:$.map(e,function(u){return $.jqotec(u,y)});else i f(t===S)l.push(e.indexOf('<'+y)<0?$.jqotec($(e),y):$.jqotec(e,y));else l=$.map($ (e),function(u){return $.jqotec(u,y)});for(var i=0,q=l.length;i<q;i++)for(var j= 0;j<x.length;j++)d+=l[i].call(x[j],i,j,x,l[i]);return d},jqotec: function(e, y) {var l,s='',y=y||c,t=ts.call(e),h=(t===S&&e.indexOf('<'+y)>=0)?e:(e=(t===S||e in stanceof jQuery)?$(e)[0]:e).innerHTML;var a=h.replace(/\s*<!\[CDATA\[\s*|\s*\]\] >\s*|[\r\n\t]/g,'').split('<'+y).join(y+'>\x1b').split(y+'>');for(var i=0,q=a.le ngth;i<q;i++)s+=a[i].charAt(0)!=='\x1b'?"out+='"+a[i].replace(/([^\\])?(["'])/g, '$1\\$2')+"'":(a[i].charAt(1)==='='?'+'+a[i].substr(2)+';':';'+a[i].substr(1));l =new Function('i, j, data, fn','var out="";'+s+'; return out;');return ts.call(e )===S?l:$.jqotecache[e.jqote=e.jqote||n++]=l},jqotefn:function(e){return $.jqote cache[$(e)[0].jqote]||false},jqotetag:function(s){c=s},jqotecache:[]});})(jQuery ); (function($){var A='[object Array]',F='[object Function]',S='[object String]',n= 0,c='%',ts=Object.prototype.toString;$.fn.extend({jqote:function(x,y){var x=ts.c all(x)===A?x:[x],d='';this.each(function(i){var f=(l=$.jqotecache[this.jqote])?l :$.jqotec(this,y||c);for(var j=0;j<x.length;j++)d+=f.call(x[j],i,j,x,f);});retur n d},jqoteapp:function(e,x,y){var d=$.jqote(e,x,y);return this.each(function(){$ (this).append(d)})},jqotepre:function(e,x,y){var d=$.jqote(e,x,y);return this.ea ch(function(){$(this).prepend(d)})},jqotesub:function(e,x,y){var d=$.jqote(e,x,y );return this.each(function(){$(this).html(d)})}});$.extend({jqote:function(e,x, y){var d='',l=[],y=y||c,t=ts.call(e),x=ts.call(x)===A?x:[x];if(t===F)l=[e];else if(t===A)l=ts.call(e[0])===F?e:$.map(e,function(u){return $.jqotec(u,y)});else i f(t===S)l.push(e.indexOf('<'+y)<0?$.jqotec($(e),y):$.jqotec(e,y));else l=$.map($ (e),function(u){return $.jqotec(u,y)});for(var i=0,q=l.length;i<q;i++)for(var j= 0;j<x.length;j++)d+=l[i].call(x[j],i,j,x,l[i]);return d},jqotec: function(e, y) {var l,s='',y=y||c,t=ts.call(e),h=(t===S&&e.indexOf('<'+y)>=0)?e:(e=(t===S||e in stanceof jQuery)?$(e)[0]:e).innerHTML;var a=h.replace(/\s*<!\[CDATA\[\s*|\s*\]\] >\s*|[\r\n\t]/g,'').split('<'+y).join(y+'>\x1b').split(y+'>');for(var i=0,q=a.le ngth;i<q;i++)s+=a[i].charAt(0)!=='\x1b'?"out+='"+a[i].replace(/([^\\])?(["'])/g, '$1\\$2')+"'":(a[i].charAt(1)==='='?'+'+a[i].substr(2)+';':';'+a[i].substr(1));l =new Function('i, j, data, fn','var out="";'+s+'; return out;');return ts.call(e )===S?l:$.jqotecache[e.jqote=e.jqote||n++]=l},jqotefn:function(e){return $.jqote cache[$(e)[0].jqote]||false},jqotetag:function(s){c=s},jqotecache:[]});})(jQuery );
/* End of jqote */ /* End of jqote */
/* Start of owa */ /* Start of owa */
var OWA={items:{},loadedJsLibs:{},overlay:'',config:{ns:'owa_',baseUrl:'',hashCo var OWA={items:{},hooks:{actions:{},filters:{}},loadedJsLibs:{},overlay:'',confi
okiesToDomain:true},state:{},overlayActive:false,setSetting:function(name,value) g:{ns:'owa_',baseUrl:'',hashCookiesToDomain:true,debug:false},state:{},overlayAc
{return this.setOption(name,value);},getSetting:function(name){return this.getOp tive:false,setSetting:function(name,value){return this.setOption(name,value);},g
tion(name);},setOption:function(name,value){this.config[name]=value;},getOption: etSetting:function(name){return this.getOption(name);},setOption:function(name,v
function(name){return this.config[name];},l:function(string){return string;},req alue){this.config[name]=value;},getOption:function(name){return this.config[name
uireJs:function(name,url,callback){if(!this.isJsLoaded(name)){OWA.util.loadScrip ];},l:function(string){return string;},requireJs:function(name,url,callback){if(
t(url,callback);} !this.isJsLoaded(name)){OWA.util.loadScript(url,callback);}
this.loadedJsLibs[name]=url;},isJsLoaded:function(name){if(this.loadedJsLibs.has this.loadedJsLibs[name]=url;},isJsLoaded:function(name){if(this.loadedJsLibs.has
OwnProperty(name)){return true;}},initializeStateManager:function(){if(!this.sta OwnProperty(name)){return true;}},initializeStateManager:function(){if(!this.sta
te.hasOwnProperty('init')){OWA.debug('initializing state manager...');this.state te.hasOwnProperty('init')){OWA.debug('initializing state manager...');this.state
=new OWA.stateManager();}},registerStateStore:function(name,expiration,length,fo =new OWA.stateManager();}},registerStateStore:function(name,expiration,length,fo
rmat){this.initializeStateManager();return this.state.registerStore(name,expirat rmat){this.initializeStateManager();return this.state.registerStore(name,expirat
ion,length,format);},checkForState:function(store_name){this.initializeStateMana ion,length,format);},checkForState:function(store_name){this.initializeStateMana
ger();return this.state.isPresent(store_name);},setState:function(store_name,key ger();return this.state.isPresent(store_name);},setState:function(store_name,key
,value,is_perminant,format,expiration_days){this.initializeStateManager();return ,value,is_perminant,format,expiration_days){this.initializeStateManager();return
this.state.set(store_name,key,value,is_perminant,format,expiration_days);},repl this.state.set(store_name,key,value,is_perminant,format,expiration_days);},repl
aceState:function(store_name,value,is_perminant,format,expiration_days){this.ini aceState:function(store_name,value,is_perminant,format,expiration_days){this.ini
tializeStateManager();return this.state.replaceStore(store_name,value,is_permina tializeStateManager();return this.state.replaceStore(store_name,value,is_permina
nt,format,expiration_days);},getStateFromCookie:function(store_name){this.initia nt,format,expiration_days);},getStateFromCookie:function(store_name){this.initia
lizeStateManager();return this.state.getStateFromCookie(store_name);},getState:f lizeStateManager();return this.state.getStateFromCookie(store_name);},getState:f
unction(store_name,key){this.initializeStateManager();return this.state.get(stor unction(store_name,key){this.initializeStateManager();return this.state.get(stor
e_name,key);},clearState:function(store_name,key){this.initializeStateManager(); e_name,key);},clearState:function(store_name,key){this.initializeStateManager();
return this.state.clear(store_name,key);},getStateStoreFormat:function(store_nam return this.state.clear(store_name,key);},getStateStoreFormat:function(store_nam
e){this.initializeStateManager();return this.state.getStoreFormat(store_name);}, e){this.initializeStateManager();return this.state.getStoreFormat(store_name);},
setStateStoreFormat:function(store_name,format){this.initializeStateManager();re setStateStoreFormat:function(store_name,format){this.initializeStateManager();re
turn this.state.setStoreFormat(store_name,format);},debug:function(){var debuggi turn this.state.setStoreFormat(store_name,format);},debug:function(){var debuggi
ng=OWA.getSetting('debug')||false;if(debugging){if(window.console){if(console.lo ng=OWA.getSetting('debug')||false;if(debugging){if(window.console){if(console.lo
g.apply){if(window.console.firebug){console.log.apply(this,arguments);}else{cons g.apply){if(window.console.firebug){console.log.apply(this,arguments);}else{cons
ole.log.apply(console,arguments);}}}}},setApiEndpoint:function(endpoint){this.co ole.log.apply(console,arguments);}}}}},setApiEndpoint:function(endpoint){this.co
nfig['api_endpoint']=endpoint;},getApiEndpoint:function(){return this.config['ap nfig['rest_api_endpoint']=endpoint;},getApiEndpoint:function(){return this.confi
i_endpoint']||this.getSetting('baseUrl')+'api.php';},loadHeatmap:function(p){var g['rest_api_endpoint']||this.getSetting('baseUrl')+'api/';},loadHeatmap:function
that=this;OWA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/js/inclu (p){var that=this;OWA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/j
des/jquery/jquery-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSetting('b s/includes/jquery/jquery-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSet
aseUrl')+'/modules/base/css/owa.overlay.css',function(){});OWA.util.loadScript(O ting('baseUrl')+'/modules/base/css/owa.overlay.css',function(){});OWA.util.loadS
WA.getSetting('baseUrl')+'/modules/base/js/owa.heatmap.js',function(){that.overl cript(OWA.getSetting('baseUrl')+'/modules/base/js/owa.heatmap.js',function(){tha
ay=new OWA.heatmap();that.overlay.options.liveMode=true;that.overlay.generate(); t.overlay=new OWA.heatmap();that.overlay.options.liveMode=true;that.overlay.gene
});},loadPlayer:function(){var that=this;OWA.debug("Loading Domstream Player");O rate();});},loadPlayer:function(){var that=this;OWA.debug("Loading Domstream Pla
WA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/js/includes/jquery/j yer");OWA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/js/includes/j
query-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSetting('baseUrl')+'/m query/jquery-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSetting('baseUr
odules/base/css/owa.overlay.css',function(){});OWA.util.loadScript(OWA.getSettin l')+'/modules/base/css/owa.overlay.css',function(){});OWA.util.loadScript(OWA.ge
g('baseUrl')+'/modules/base/js/owa.player.js',function(){that.overlay=new OWA.pl tSetting('baseUrl')+'/modules/base/js/owa.player.js',function(){that.overlay=new
ayer();});},startOverlaySession:function(p){OWA.overlayActive=true;if(p.hasOwnPr OWA.player();});},startOverlaySession:function(p){OWA.overlayActive=true;if(p.h
operty('api_url')){OWA.setApiEndpoint(p.api_url);} asOwnProperty('api_url')){OWA.setApiEndpoint(p.api_url);}
var params=p;if(params.action==='loadHeatmap'){this.loadHeatmap(p);}else if(para var params=p;if(params.action==='loadHeatmap'){this.loadHeatmap(p);}else if(para
ms.action==='loadPlayer'){this.loadPlayer(p);}},endOverlaySession:function(){OWA ms.action==='loadPlayer'){this.loadPlayer(p);}},endOverlaySession:function(){OWA
.util.eraseCookie(OWA.getSetting('ns')+'overlay',document.domain);OWA.overlayAct .util.eraseCookie(OWA.getSetting('ns')+'overlay',document.domain);OWA.overlayAct
ive=false;}} ive=false;},addFilter:function(tag,callback,priority){if("undefined"===typeof pr
iority){priority=10;}
this.hooks.filters[tag]=this.hooks.filters[tag]||[];this.hooks.filters[tag].push
({priority:priority,callback:callback});},addAction:function(tag,callback,priori
ty){OWA.debug('Adding Action callback for: '+tag);if(typeof priority==="undefine
d"){priority=10;}
this.hooks.actions[tag]=this.hooks.actions[tag]||[];this.hooks.actions[tag].push
({priority:priority,callback:callback});},applyFilters:function(tag,value,option
s){OWA.debug('Filtering '+tag+' with value:');OWA.debug(value);var filters=[];if
("undefined"!==typeof this.hooks.filters[tag]&&this.hooks.filters[tag].length>0)
{OWA.debug('Applying filters for '+tag);this.hooks.filters[tag].forEach(function
(hook){filters[hook.priority]=filters[hook.priority]||[];filters[hook.priority].
push(hook.callback);});filters.forEach(function(hooks){hooks.forEach(function(ca
llback){value=callback(value,options);OWA.debug('Filter returned value: ');OWA.d
ebug(value);});});}
return value;},doAction:function(tag,options){OWA.debug('Doing Action: '+tag);va
r actions=[];if("undefined"!==typeof this.hooks.actions[tag]&&this.hooks.actions
[tag].length>0){OWA.debug(this.hooks.actions[tag]);this.hooks.actions[tag].forEa
ch(function(hook){actions[hook.priority]=actions[hook.priority]||[];actions[hook
.priority].push(hook.callback);});actions.forEach(function(hooks){OWA.debug('Exe
cuting Action callabck for: '+tag);hooks.forEach(function(callback){callback(opt
ions);});});}},removeAction:function(tag,callback){this.hooks.actions[tag]=this.
hooks.actions[tag]||[];this.hooks.actions[tag].forEach(function(filter,i){if(fil
ter.callback===callback){this.hooks.actions[tag].splice(i,1);}});},removeFilter:
function(tag,callabck){this.hooks.filters[tag]=this.hooks.filters[tag]||[];this.
hooks.filters[tag].forEach(function(filter,i){if(filter.callback===callback){thi
s.hooks.filters[tag].splice(i,1);}});}}
OWA.stateManager=function(){this.cookies=OWA.util.readAllCookies();this.init=tru e;};OWA.stateManager.prototype={init:false,cookies:'',stores:{},storeFormats:{}, storeMeta:{},registerStore:function(name,expiration,length,format){this.storeMet a[name]={'expiration':expiration,'length':length,'format':format};},getExpiratio nDays:function(store_name){if(this.storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].expiration;}},getFormat:function(store_name){if(this. storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].format;} },isPresent:function(store_name){if(this.stores.hasOwnProperty(store_name)){retu rn true;}},set:function(store_name,key,value,is_perminant,format,expiration_days ){if(!this.isPresent(store_name)){this.load(store_name);} OWA.stateManager=function(){this.cookies=OWA.util.readAllCookies();this.init=tru e;};OWA.stateManager.prototype={init:false,cookies:'',stores:{},storeFormats:{}, storeMeta:{},registerStore:function(name,expiration,length,format){this.storeMet a[name]={'expiration':expiration,'length':length,'format':format};},getExpiratio nDays:function(store_name){if(this.storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].expiration;}},getFormat:function(store_name){if(this. storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].format;} },isPresent:function(store_name){if(this.stores.hasOwnProperty(store_name)){retu rn true;}},set:function(store_name,key,value,is_perminant,format,expiration_days ){if(!this.isPresent(store_name)){this.load(store_name);}
if(!this.isPresent(store_name)){OWA.debug('Creating state store (%s)',store_name );this.stores[store_name]={};if(OWA.getSetting('hashCookiesToDomain')){this.stor es[store_name].cdh=OWA.util.getCookieDomainHash(OWA.getSetting('cookie_domain')) ;}} if(!this.isPresent(store_name)){OWA.debug('Creating state store (%s)',store_name );this.stores[store_name]={};if(OWA.getSetting('hashCookiesToDomain')){this.stor es[store_name].cdh=OWA.util.getCookieDomainHash(OWA.getSetting('cookie_domain')) ;}}
if(key){this.stores[store_name][key]=value;}else{this.stores[store_name]=value;} if(key){this.stores[store_name][key]=value;}else{this.stores[store_name]=value;}
format=this.getFormat(store_name);if(!format){if(this.storeFormats.hasOwnPropert y(store_name)){format=this.storeFormats[store_name];}} format=this.getFormat(store_name);if(!format){if(this.storeFormats.hasOwnPropert y(store_name)){format=this.storeFormats[store_name];}}
var state_value='';if(format==='json'){state_value=JSON.stringify(this.stores[st ore_name]);}else{state_value=OWA.util.assocStringFromJson(this.stores[store_name ]);} var state_value='';if(format==='json'){state_value=JSON.stringify(this.stores[st ore_name]);}else{state_value=OWA.util.assocStringFromJson(this.stores[store_name ]);}
expiration_days=this.getExpirationDays(store_name);if(!expiration_days){if(is_pe rminant){expiration_days=364;}} expiration_days=this.getExpirationDays(store_name);if(!expiration_days){if(is_pe rminant){expiration_days=364;}}
OWA.debug('Populating state store (%s) with value: %s',store_name,state_value);v ar domain=OWA.getSetting('cookie_domain')||document.domain;OWA.util.setCookie(OW A.getSetting('ns')+store_name,state_value,expiration_days,'/',domain);},replaceS tore:function(store_name,value,is_perminant,format,expiration_days){OWA.debug('r eplace state format: %s, value: %s',format,JSON.stringify(value));if(store_name) {if(value){format=this.getFormat(store_name);this.stores[store_name]=value;this. storeFormats[store_name]=format;if(format==='json'){cookie_value=JSON.stringify( value);}else{cookie_value=OWA.util.assocStringFromJson(value);}} OWA.debug('Populating state store (%s) with value: %s',store_name,state_value);v ar domain=OWA.getSetting('cookie_domain')||document.domain;OWA.util.setCookie(OW A.getSetting('ns')+store_name,state_value,expiration_days,'/',domain);},replaceS tore:function(store_name,value,is_perminant,format,expiration_days){OWA.debug('r eplace state format: %s, value: %s',format,JSON.stringify(value));if(store_name) {if(value){format=this.getFormat(store_name);this.stores[store_name]=value;this. storeFormats[store_name]=format;if(format==='json'){cookie_value=JSON.stringify( value);}else{cookie_value=OWA.util.assocStringFromJson(value);}}
var domain=OWA.getSetting('cookie_domain')||document.domain;expiration_days=this .getExpirationDays(store_name);OWA.debug('About to replace state store (%s) with : %s',store_name,cookie_value);OWA.util.setCookie(OWA.getSetting('ns')+store_nam e,cookie_value,expiration_days,'/',domain);}},getStateFromCookie:function(store_ name){var store=unescape(OWA.util.readCookie(OWA.getSetting('ns')+store_name));i f(store){return store;}},get:function(store_name,key){if(!this.isPresent(store_n ame)){this.load(store_name);} var domain=OWA.getSetting('cookie_domain')||document.domain;expiration_days=this .getExpirationDays(store_name);OWA.debug('About to replace state store (%s) with : %s',store_name,cookie_value);OWA.util.setCookie(OWA.getSetting('ns')+store_nam e,cookie_value,expiration_days,'/',domain);}},getStateFromCookie:function(store_ name){var store=unescape(OWA.util.readCookie(OWA.getSetting('ns')+store_name));i f(store){return store;}},get:function(store_name,key){if(!this.isPresent(store_n ame)){this.load(store_name);}
if(this.isPresent(store_name)){if(key){if(this.stores[store_name].hasOwnProperty (key)){return this.stores[store_name][key];}}else{return this.stores[store_name] ;}}else{OWA.debug('No state store (%s) was found',store_name);return'';}},getCoo kieValues:function(cookie_name){if(this.cookies.hasOwnProperty(cookie_name)){ret urn this.cookies[cookie_name];}},load:function(store_name){var state='';var cook ie_values=this.getCookieValues(OWA.getSetting('ns')+store_name);if(cookie_values ){for(var i=0;i<cookie_values.length;i++){var raw_cookie_value=unescape(cookie_v alues[i]);var cookie_value=OWA.util.decodeCookieValue(raw_cookie_value);var form at=OWA.util.getCookieValueFormat(raw_cookie_value);if(OWA.getSetting('hashCookie sToDomain')){var domain=OWA.getSetting('cookie_domain');var dhash=OWA.util.getCo okieDomainHash(domain);if(cookie_value.hasOwnProperty('cdh')){OWA.debug('Cookie value cdh: %s, domain hash: %s',cookie_value.cdh,dhash);if(cookie_value.cdh==dha sh){OWA.debug('Cookie: %s, index: %s domain hash matches current cookie domain. Loading...',store_name,i);state=cookie_value;break;}else{OWA.debug('Cookie: %s, index: %s domain hash does not match current cookie domain. Not loading.',store_ name,i);}}else{OWA.debug('Cookie: %s, index: %s has no domain hash. Not going to Load it.',store_name,i);}}else{var lastIndex=cookie_values.length-1;if(i===last Index){state=cookie_value;}}}} if(this.isPresent(store_name)){if(key){if(this.stores[store_name].hasOwnProperty (key)){return this.stores[store_name][key];}}else{return this.stores[store_name] ;}}else{OWA.debug('No state store (%s) was found',store_name);return'';}},getCoo kieValues:function(cookie_name){if(this.cookies.hasOwnProperty(cookie_name)){ret urn this.cookies[cookie_name];}},load:function(store_name){var state='';var cook ie_values=this.getCookieValues(OWA.getSetting('ns')+store_name);if(cookie_values ){for(var i=0;i<cookie_values.length;i++){var raw_cookie_value=unescape(cookie_v alues[i]);var cookie_value=OWA.util.decodeCookieValue(raw_cookie_value);var form at=OWA.util.getCookieValueFormat(raw_cookie_value);if(OWA.getSetting('hashCookie sToDomain')){var domain=OWA.getSetting('cookie_domain');var dhash=OWA.util.getCo okieDomainHash(domain);if(cookie_value.hasOwnProperty('cdh')){OWA.debug('Cookie value cdh: %s, domain hash: %s',cookie_value.cdh,dhash);if(cookie_value.cdh==dha sh){OWA.debug('Cookie: %s, index: %s domain hash matches current cookie domain. Loading...',store_name,i);state=cookie_value;break;}else{OWA.debug('Cookie: %s, index: %s domain hash does not match current cookie domain. Not loading.',store_ name,i);}}else{OWA.debug('Cookie: %s, index: %s has no domain hash. Not going to Load it.',store_name,i);}}else{var lastIndex=cookie_values.length-1;if(i===last Index){state=cookie_value;}}}}
if(state){this.stores[store_name]=state;this.storeFormats[store_name]=format;OWA .debug('Loaded state store: %s with: %s',store_name,JSON.stringify(state));}else {OWA.debug('No state for store: %s was found. Nothing to Load.',store_name);}},c lear:function(store_name,key){if(!key){delete this.stores[store_name];OWA.util.e raseCookie(OWA.getSetting('ns')+store_name);this.cookies=OWA.util.readAllCookies ();}else{var state=this.get(store_name);if(state&&state.hasOwnProperty(key)){del ete state['key'];this.replaceStore(store_name,state,true,this.getFormat(store_na me),this.getExpirationDays(store_name));}}},getStoreFormat:function(store_name){ return this.getFormat(store_name);},setStoreFormat:function(store_name,format){t his.storeFormats[store_name]=format;}};OWA.uri=function(str){this.components={}; this.dirty=false;this.options={strictMode:false,key:["source","protocol","author ity","userInfo","user","password","host","port","relative","path","directory","f ile","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},pa rser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#] *)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^( ?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([ ^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\ /]*))(?:\?([^#]*))?(?:#(.*))?)/}};if(str){this.components=this.parseUri(str);}}; OWA.uri.prototype={parseUri:function(str){var o=this.options;var m=o.parser[o.st rictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--)uri[o.key[i]] =m[i]||"";uri[o.q.name]={};uri[o.key[12]].replace(o.q.parser,function($0,$1,$2){ if($1)uri[o.q.name][$1]=$2;});return uri;},getHost:function(){if(this.components .hasOwnProperty('host')){return this.components.host;}},getQueryParam:function(n ame){if(this.components.hasOwnProperty('queryKey')&&this.components.queryKey.has OwnProperty(name)){return OWA.util.urldecode(this.components.queryKey[name]);}}, isQueryParam:function(name){if(this.components.hasOwnProperty('queryKey')&&this. components.queryKey.hasOwnProperty(name)){return true;}else{return false;}},getC omponent:function(name){if(this.components.hasOwnProperty(name)){return this.com ponents[name];}},getProtocol:function(){return this.getComponent('protocol');},g etAnchor:function(){return this.getComponent('anchor');},getQuery:function(){ret urn this.getComponent('query');},getFile:function(){return this.getComponent('fi le');},getRelative:function(){return this.getComponent('relative');},getDirector y:function(){return this.getComponent('directory');},getPath:function(){return t his.getComponent('path');},getPort:function(){return this.getComponent('port');} ,getPassword:function(){return this.getComponent('password');},getUser:function( ){return this.getComponent('user');},getUserInfo:function(){return this.getCompo nent('userInfo');},getQueryParams:function(){return this.getComponent('queryKey' );},getSource:function(){return this.getComponent('source');},setQueryParam:func tion(name,value){if(!this.components.hasOwnProperty('queryKey')){this.components .queryKey={};} if(state){this.stores[store_name]=state;this.storeFormats[store_name]=format;OWA .debug('Loaded state store: %s with: %s',store_name,JSON.stringify(state));}else {OWA.debug('No state for store: %s was found. Nothing to Load.',store_name);}},c lear:function(store_name,key){if(!key){delete this.stores[store_name];OWA.util.e raseCookie(OWA.getSetting('ns')+store_name);this.cookies=OWA.util.readAllCookies ();}else{var state=this.get(store_name);if(state&&state.hasOwnProperty(key)){del ete state['key'];this.replaceStore(store_name,state,true,this.getFormat(store_na me),this.getExpirationDays(store_name));}}},getStoreFormat:function(store_name){ return this.getFormat(store_name);},setStoreFormat:function(store_name,format){t his.storeFormats[store_name]=format;}};OWA.uri=function(str){this.components={}; this.dirty=false;this.options={strictMode:false,key:["source","protocol","author ity","userInfo","user","password","host","port","relative","path","directory","f ile","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},pa rser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#] *)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^( ?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([ ^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\ /]*))(?:\?([^#]*))?(?:#(.*))?)/}};if(str){this.components=this.parseUri(str);}}; OWA.uri.prototype={parseUri:function(str){var o=this.options;var m=o.parser[o.st rictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--)uri[o.key[i]] =m[i]||"";uri[o.q.name]={};uri[o.key[12]].replace(o.q.parser,function($0,$1,$2){ if($1)uri[o.q.name][$1]=$2;});return uri;},getHost:function(){if(this.components .hasOwnProperty('host')){return this.components.host;}},getQueryParam:function(n ame){if(this.components.hasOwnProperty('queryKey')&&this.components.queryKey.has OwnProperty(name)){return OWA.util.urldecode(this.components.queryKey[name]);}}, isQueryParam:function(name){if(this.components.hasOwnProperty('queryKey')&&this. components.queryKey.hasOwnProperty(name)){return true;}else{return false;}},getC omponent:function(name){if(this.components.hasOwnProperty(name)){return this.com ponents[name];}},getProtocol:function(){return this.getComponent('protocol');},g etAnchor:function(){return this.getComponent('anchor');},getQuery:function(){ret urn this.getComponent('query');},getFile:function(){return this.getComponent('fi le');},getRelative:function(){return this.getComponent('relative');},getDirector y:function(){return this.getComponent('directory');},getPath:function(){return t his.getComponent('path');},getPort:function(){return this.getComponent('port');} ,getPassword:function(){return this.getComponent('password');},getUser:function( ){return this.getComponent('user');},getUserInfo:function(){return this.getCompo nent('userInfo');},getQueryParams:function(){return this.getComponent('queryKey' );},getSource:function(){return this.getComponent('source');},setQueryParam:func tion(name,value){if(!this.components.hasOwnProperty('queryKey')){this.components .queryKey={};}
skipping to change at line 2800 skipping to change at line 2279
var anchor=this.getAnchor();if(anchor){url+='#'+anchor;} var anchor=this.getAnchor();if(anchor){url+='#'+anchor;}
url+=this.getAnchor();return url;}};OWA.util={ns:function(string){return OWA.con fig.ns+string;},nsAll:function(obj){var nsObj=new Object();for(param in obj){if( obj.hasOwnProperty(param)){nsObj[OWA.config.ns+param]=obj[param];}} url+=this.getAnchor();return url;}};OWA.util={ns:function(string){return OWA.con fig.ns+string;},nsAll:function(obj){var nsObj=new Object();for(param in obj){if( obj.hasOwnProperty(param)){nsObj[OWA.config.ns+param]=obj[param];}}
return nsObj;},getScript:function(file,path){jQuery.getScript(path+file);return; },makeUrl:function(template,uri,params){var url=jQuery.sprintf(template,uri,jQue ry.param(OWA.util.nsAll(params)));return url;},createCookie:function(name,value, days,domain){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*6 0*60*1000));var expires="; expires="+date.toGMTString();} return nsObj;},getScript:function(file,path){jQuery.getScript(path+file);return; },makeUrl:function(template,uri,params){var url=jQuery.sprintf(template,uri,jQue ry.param(OWA.util.nsAll(params)));return url;},createCookie:function(name,value, days,domain){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*6 0*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";},setCooki e:function(name,value,days,path,domain,secure){var date=new Date();date.setTime( date.getTime()+(days*24*60*60*1000));document.cookie=name+"="+escape(value)+ else var expires="";document.cookie=name+"="+value+expires+"; path=/";},setCooki e:function(name,value,days,path,domain,secure){var date=new Date();date.setTime( date.getTime()+(days*24*60*60*1000));document.cookie=name+"="+escape(value)+
((days)?"; expires="+date.toGMTString():"")+ ((days)?"; expires="+date.toGMTString():"")+
((path)?"; path="+path:"")+ ((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+ ((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");},readAllCookies:function(){OWA.debug('Reading all cook ies...');var jar={};var ca=document.cookie.split(';');if(ca){OWA.debug(document. cookie);for(var i=0;i<ca.length;i++){var cat=OWA.util.trim(ca[i]);var pos=OWA.ut il.strpos(cat,'=');var key=cat.substring(0,pos);var value=cat.substring(pos+1,ca t.length);if(!jar.hasOwnProperty(key)){jar[key]=[];} ((secure)?"; secure":"");},readAllCookies:function(){OWA.debug('Reading all cook ies...');var jar={};var ca=document.cookie.split(';');if(ca){OWA.debug(document. cookie);for(var i=0;i<ca.length;i++){var cat=OWA.util.trim(ca[i]);var pos=OWA.ut il.strpos(cat,'=');var key=cat.substring(0,pos);var value=cat.substring(pos+1,ca t.length);if(!jar.hasOwnProperty(key)){jar[key]=[];}
jar[key].push(value);} jar[key].push(value);}
OWA.debug(JSON.stringify(jar));return jar;}},readCookie:function(name){OWA.debug ('Attempting to read cookie: %s',name);var jar=OWA.util.readAllCookies();if(jar) {if(jar.hasOwnProperty(name)){return jar[name];}else{return'';}}},eraseCookie:fu nction(name,domain){OWA.debug(document.cookie);if(!domain){domain=OWA.getSetting ('cookie_domain')||document.domain;} OWA.debug(JSON.stringify(jar));return jar;}},readCookie:function(name){OWA.debug ('Attempting to read cookie: %s',name);var jar=OWA.util.readAllCookies();if(jar) {if(jar.hasOwnProperty(name)){return jar[name];}else{return'';}}},eraseCookie:fu nction(name,domain){OWA.debug(document.cookie);if(!domain){domain=OWA.getSetting ('cookie_domain')||document.domain;}
OWA.debug("erasing cookie: "+name+" in domain: "+domain);this.setCookie(name,"", -1,"/",domain);var test=OWA.util.readCookie(name);if(test){var period=domain.sub str(0,1);OWA.debug('period: '+period);if(period==='.'){var domain2=domain.substr (1);OWA.debug("erasing "+name+" in domain2: "+domain2);this.setCookie(name,"",-2 ,"/",domain2);}else{OWA.debug("erasing "+name+" in domain3: "+domain);this.setCo okie(name,"",-2,"/",domain);}}},eraseMultipleCookies:function(names,domain){for( var i=0;i<names.length;i++){this.eraseCookie(names[i],domain);}},loadScript:func tion(url,callback){return LazyLoad.js(url,callback);},loadCss:function(url,callb ack){return LazyLoad.css(url,callback);},parseCookieString:function parseQuery(v ){var queryAsAssoc=new Array();var queryString=unescape(v);var keyValues=querySt ring.split("|||");for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var ke y=keyValues[i].split("=>");queryAsAssoc[key[0]]=key[1];}} OWA.debug("erasing cookie: "+name+" in domain: "+domain);this.setCookie(name,"", -1,"/",domain);var test=OWA.util.readCookie(name);if(test){var period=domain.sub str(0,1);OWA.debug('period: '+period);if(period==='.'){var domain2=domain.substr (1);OWA.debug("erasing "+name+" in domain2: "+domain2);this.setCookie(name,"",-2 ,"/",domain2);}else{OWA.debug("erasing "+name+" in domain3: "+domain);this.setCo okie(name,"",-2,"/",domain);}}},eraseMultipleCookies:function(names,domain){for( var i=0;i<names.length;i++){this.eraseCookie(names[i],domain);}},loadScript:func tion(url,callback){return jQuery.getScript(url,callback);},loadCss:function(url, callback){jQuery('head').append('<link rel="stylesheet" rel="nofollow" href="'+u rl+'" type="text/css" />');},parseCookieString:function parseQuery(v){var queryA sAssoc=new Array();var queryString=unescape(v);var keyValues=queryString.split(" |||");for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var key=keyValues[ i].split("=>");queryAsAssoc[key[0]]=key[1];}}
return queryAsAssoc;},parseCookieStringToJson:function parseQuery(v){var queryAs Obj=new Object;var queryString=unescape(v);var keyValues=queryString.split("|||" );for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var key=keyValues[i].s plit("=>");queryAsObj[key[0]]=key[1];}} return queryAsAssoc;},parseCookieStringToJson:function parseQuery(v){var queryAs Obj=new Object;var queryString=unescape(v);var keyValues=queryString.split("|||" );for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var key=keyValues[i].s plit("=>");queryAsObj[key[0]]=key[1];}}
return queryAsObj;},nsParams:function(obj){var new_obj=new Object;for(param in o bj){if(obj.hasOwnProperty(param)){new_obj[OWA.getSetting('ns')+param]=obj[param] ;}} return queryAsObj;},nsParams:function(obj){var new_obj=new Object;for(param in o bj){if(obj.hasOwnProperty(param)){new_obj[OWA.getSetting('ns')+param]=obj[param] ;}}
return new_obj;},urlEncode:function(str){str=(str+'').toString();return encodeUR IComponent(str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').rep lace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+');},urldecode:function( str){return decodeURIComponent(str.replace(/\+/g,'%20'));},parseUrlParams:functi on(url){var _GET={};for(var i,a,m,n,o,v,p=location.href.split(/[?&]/),l=p.length ,k=1;k<l;k++) return new_obj;},urlEncode:function(str){str=(str+'').toString();return encodeUR IComponent(str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').rep lace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+');},urldecode:function( str){return decodeURIComponent(str.replace(/\+/g,'%20'));},parseUrlParams:functi on(url){var _GET={};for(var i,a,m,n,o,v,p=location.href.split(/[?&]/),l=p.length ,k=1;k<l;k++)
if((m=p[k].match(/(.*?)(\..*?|\[.*?\])?=([^#]*)/))&&m.length==4){n=decodeURI(m[1 ]).toLowerCase(),o=_GET,v=decodeURI(m[3]);if(m[2]) if((m=p[k].match(/(.*?)(\..*?|\[.*?\])?=([^#]*)/))&&m.length==4){n=decodeURI(m[1 ]).toLowerCase(),o=_GET,v=decodeURI(m[3]);if(m[2])
for(a=decodeURI(m[2]).replace(/\[\s*\]/g,"[-1]").split(/[\.\[\]]/),i=0;i<a.lengt h;i++) for(a=decodeURI(m[2]).replace(/\[\s*\]/g,"[-1]").split(/[\.\[\]]/),i=0;i<a.lengt h;i++)
o=o[n]?o[n]:o[n]=(parseInt(a[i])==a[i])?[]:{},n=a[i].replace(/^["\'](.*)["\']$/, "$1");n!='-1'?o[n]=v:o[o.length]=v;} o=o[n]?o[n]:o[n]=(parseInt(a[i])==a[i])?[]:{},n=a[i].replace(/^["\'](.*)["\']$/, "$1");n!='-1'?o[n]=v:o[o.length]=v;}
return _GET;},strpos:function(haystack,needle,offset){var i=(haystack+'').indexO f(needle,(offset||0));return i===-1?false:i;},strCountOccurances:function(haysta ck,needle){return haystack.split(needle).length-1;},implode:function(glue,pieces ){var i='',retVal='',tGlue='';if(arguments.length===1){pieces=glue;glue='';} return _GET;},strpos:function(haystack,needle,offset){var i=(haystack+'').indexO f(needle,(offset||0));return i===-1?false:i;},strCountOccurances:function(haysta ck,needle){return haystack.split(needle).length-1;},implode:function(glue,pieces ){var i='',retVal='',tGlue='';if(arguments.length===1){pieces=glue;glue='';}
if(typeof(pieces)==='object'){if(pieces instanceof Array){return pieces.join(glu e);} if(typeof(pieces)==='object'){if(pieces instanceof Array){return pieces.join(glu e);}
else{for(i in pieces){retVal+=tGlue+pieces[i];tGlue=glue;} else{for(i in pieces){retVal+=tGlue+pieces[i];tGlue=glue;}
return retVal;}} return retVal;}}
skipping to change at line 2993 skipping to change at line 2472
var flot_options={series:{pie:{show:true,showLabel:true}},legend:{show:false,pos ition:"ne",margin:[-160,50]},colors:["#6BAED6","#FD8D3C","#dba255","#919733"]};O WA.debug(JSON.stringify(data));jQuery.plot(jQuery(selector),data,flot_options);t his.init=true;},getContainerWidth:function(){var that=this;if(this.getOption('au toSizeWidth')){return jQuery("#"+that.dom_id).width();}else{return this.option.w idth;}},getContainerHeight:function(){var that=this;var h=jQuery("#"+that.dom_id ).height();return h;}} var flot_options={series:{pie:{show:true,showLabel:true}},legend:{show:false,pos ition:"ne",margin:[-160,50]},colors:["#6BAED6","#FD8D3C","#dba255","#919733"]};O WA.debug(JSON.stringify(data));jQuery.plot(jQuery(selector),data,flot_options);t his.init=true;},getContainerWidth:function(){var that=this;if(this.getOption('au toSizeWidth')){return jQuery("#"+that.dom_id).width();}else{return this.option.w idth;}},getContainerHeight:function(){var that=this;var h=jQuery("#"+that.dom_id ).height();return h;}}
/* End of owa.pieChart */ /* End of owa.pieChart */
/* Start of owa.kpibox */ /* Start of owa.kpibox */
OWA.kpiBox=function(options){this.options={template:'#metricInfobox',width:''};i f(options){this.mergeOptions(options);} OWA.kpiBox=function(options){this.options={template:'#metricInfobox',width:''};i f(options){this.mergeOptions(options);}
this.dom_id='';this.domSelector='';} this.dom_id='';this.domSelector='';}
OWA.kpiBox.prototype={mergeOptions:function(options){for(option in options){if(o ptions.hasOwnProperty(option)){this.options[option]=options[option];}}},setDomId :function(dom_id){this.dom_id=dom_id;this.domSelector=this.dom_id+' > .metricInf oboxesContainer';var that=this;jQuery('#'+that.dom_id).bind('new_result_set',fun ction(event,resultSet){jQuery(that.domSelector).remove();that.generate(resultSet );});},getOption:function(name){if(this.options.hasOwnProperty(name)){return thi s.options[name];}},setOption:function(name,value){this.options[name]=value;},gen erate:function(resultSet,dom_id,options){OWA.debug('Generating KPI box for: '+do m_id+' with options: '+JSON.stringify(options));if(dom_id){this.setDomId(dom_id) ;} OWA.kpiBox.prototype={mergeOptions:function(options){for(option in options){if(o ptions.hasOwnProperty(option)){this.options[option]=options[option];}}},setDomId :function(dom_id){this.dom_id=dom_id;this.domSelector=this.dom_id+' > .metricInf oboxesContainer';var that=this;jQuery('#'+that.dom_id).bind('new_result_set',fun ction(event,resultSet){jQuery(that.domSelector).remove();that.generate(resultSet );});},getOption:function(name){if(this.options.hasOwnProperty(name)){return thi s.options[name];}},setOption:function(name,value){this.options[name]=value;},gen erate:function(resultSet,dom_id,options){OWA.debug('Generating KPI box for: '+do m_id+' with options: '+JSON.stringify(options));if(dom_id){this.setDomId(dom_id) ;}
dom_id=this.dom_id;if(options){this.mergeOptions(options);} dom_id=this.dom_id;if(options){this.mergeOptions(options);}
var html='';var con_id='kpiContainer-'+resultSet.guid;jQuery('#'+dom_id).html(OW A.util.sprintf('<div id="%s" class="metricInfoboxesContainer" style="width:auto; "></div><div style="clear:both;"></div>',con_id));for(var i in resultSet.aggrega tes){if(resultSet.aggregates.hasOwnProperty(i)){var item=resultSet.aggregates[i] ;item.dom_id=dom_id+'-'+resultSet.aggregates[i].name+'-'+resultSet.guid;if(this. options.label){item.label=this.options.label;} var html='';var con_id='kpiContainer-'+resultSet.guid;jQuery('#'+dom_id).append( OWA.util.sprintf('<div id="%s" class="metricInfoboxesContainer" style="width:aut o;"></div><div style="clear:both;"></div>',con_id));for(var i in resultSet.aggre gates){if(resultSet.aggregates.hasOwnProperty(i)){var item=resultSet.aggregates[ i];item.dom_id=dom_id+'-'+resultSet.aggregates[i].name+'-'+resultSet.guid;if(thi s.options.label){item.label=this.options.label;}
if(this.options.width){item.width=this.options.width;} if(this.options.width){item.width=this.options.width;}
var selector='#'+this.domSelector;var width=item.width||'auto';var html=OWA.util .sprintf('<div id ="%s" class="owa_metricInfobox" style="min-width:135px;width:% s">',item.dom_id,width);html+=OWA.util.sprintf('<p class="owa_metricInfoboxLabel ">%s</p>',item.label);html+=OWA.util.sprintf('<p class="owa_metricInfoboxLargeNu mber">%s</p>',item.formatted_value);html+='</div>';jQuery('#'+con_id).append(htm l);var spark_options={metric:resultSet.aggregates[i].name,filter:''};if(this.opt ions.filter){spark_options.filter=this.options.filter;} var selector='#'+this.domSelector;var width=item.width||'auto';var html=OWA.util .sprintf('<div id ="%s" class="owa_metricInfobox" style="min-width:135px;width:% s">',item.dom_id,width);html+=OWA.util.sprintf('<p class="owa_metricInfoboxLabel ">%s</p>',item.label);html+=OWA.util.sprintf('<p class="owa_metricInfoboxLargeNu mber">%s</p>',item.formatted_value);html+='</div>';jQuery('#'+con_id).append(htm l);var spark_options={metric:resultSet.aggregates[i].name,filter:''};if(this.opt ions.filter){spark_options.filter=this.options.filter;}
var sl=new OWA.sparkline();sl.generate(resultSet,item.dom_id,spark_options);}}}} var sl=new OWA.sparkline();sl.generate(resultSet,item.dom_id,spark_options);}}}}
/* End of owa.kpibox */ /* End of owa.kpibox */
 End of changes. 5 change blocks. 
722 lines changed or deleted 76 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)