jquery.js   jquery.js 
skipping to change at line 16 skipping to change at line 16
* Dual licensed under the MIT or GPL Version 2 licenses. * Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license * http://jquery.org/license
* *
* Includes Sizzle.js * Includes Sizzle.js
* http://sizzlejs.com/ * http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation * Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses. * Released under the MIT, BSD, and GPL Licenses.
* *
* Date: Mon Nov 21 21:11:03 2011 -0500 * Date: Mon Nov 21 21:11:03 2011 -0500
*/ */
(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(fu (function( window, undefined ) {
nction(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQue
ry,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s // Use the correct document accordingly with window argument (sandbox)
+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=/^[\],:{}\s]*$/,bW=/\\(?:[" var document = window.document,
\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bP=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\ navigator = window.navigator,
d*)?(?:[eE][+\-]?\d+)?/g,bJ=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+ location = window.location;
)/,bR=/(opera)(?:.*version)?[ \/]([\w.]+)/,bQ=/(msie) ([\w.]+)/,bS=/(mozill var jQuery = (function() {
a)(?:.*? rv:([\w.]+))?/,bB=/-([a-z]|[0-9])/ig,bZ=/^-ms-/,bT=function(b0,b1)
{return(b1+"").toUpperCase()},bX=bu.userAgent,bV,bC,e,bL=Object.prototype.t // Define a local copy of jQuery
oString,bG=Object.prototype.hasOwnProperty,bz=Array.prototype.push,bK=Array var jQuery = function( selector, context ) {
.prototype.slice,bO=String.prototype.trim,bv=Array.prototype.indexOf,bx={}; // The jQuery object is actually just the init constructor '
bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2,b5,b1,b6; enhanced'
if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;r return new jQuery.fn.init( selector, context, rootjQuery );
eturn this}if(b0==="body"&&!b4&&av.body){this.context=av;this[0]=av.body;th },
is.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.cha
rAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null] // Map over jQuery in case of overwrite
}else{b2=bY.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bF?b4[ _jQuery = window.jQuery,
0]:b4;b6=(b4?b4.ownerDocument||b4:av);b1=bA.exec(b0);if(b1){if(bF.isPlainOb
ject(b4)){b0=[av.createElement(b1[1])];bF.fn.attr.call(b0,b4,true)}else{b0= // Map over the $ in case of overwrite
[b6.createElement(b1[1])]}}else{b1=bF.buildFragment([b2[1]],[b6]);b0=(b1.ca _$ = window.$,
cheable?bF.clone(b1.fragment):b1.fragment).childNodes}return bF.merge(this,
b0)}else{b5=av.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2] // A central reference to the root jQuery(document)
){return b3.find(b0)}this.length=1;this[0]=b5}this.context=av;this.selector rootjQuery,
=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{retur
n this.constructor(b4).find(b0)}}}else{if(bF.isFunction(b0)){return b3.read // A simple way to check for HTML strings or ID strings
y(b0)}}if(b0.selector!==L){this.selector=b0.selector;this.context=b0.contex // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
t}return bF.makeArray(b0,this)},selector:"",jquery:"1.7.1",length:0,size:fu quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
nction(){return this.length},toArray:function(){return bK.call(this,0)},get
:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:thi // Check if a string has a non-whitespace character in it
s[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bF.isArra rnotwhite = /\S/,
y(b1)){bz.apply(b2,b1)}else{bF.merge(b2,b1)}b2.prevObject=this;b2.context=t
his.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"" // Used for trimming whitespace
)+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},ea trimLeft = /^\s+/,
ch:function(b1,b0){return bF.each(this,b1,b0)},ready:function(b0){bF.bindRe trimRight = /\s+$/,
ady();bC.add(b0);return this},eq:function(b0){b0=+b0;return b0===-1?this.sl
ice(b0):this.slice(b0,b0+1)},first:function(){return this.eq(0)},last:funct // Match a standalone tag
ion(){return this.eq(-1)},slice:function(){return this.pushStack(bK.apply(t rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
his,arguments),"slice",bK.call(arguments).join(","))},map:function(b0){retu
rn this.pushStack(bF.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))}, // JSON RegExp
end:function(){return this.prevObject||this.constructor(null)},push:bz,sort rvalidchars = /^[\],:{}\s]*$/,
:[].sort,splice:[].splice};bF.fn.init.prototype=bF.fn;bF.extend=bF.fn.exten rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
d=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.le rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE]
ngth,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(t [+\-]?\d+)?/g,
ypeof b5!=="object"&&!bF.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
(;b4<b3;b4++){if((b9=arguments[b4])!=null){for(b2 in b9){b0=b5[b2];b1=b9[b2
];if(b5===b1){continue}if(b8&&b1&&(bF.isPlainObject(b1)||(b6=bF.isArray(b1) // Useragent RegExp
))){if(b6){b6=false;b7=b0&&bF.isArray(b0)?b0:[]}else{b7=b0&&bF.isPlainObjec rwebkit = /(webkit)[ \/]([\w.]+)/,
t(b0)?b0:{}}b5[b2]=bF.extend(b8,b7,b1)}else{if(b1!==L){b5[b2]=b1}}}}}return ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
b5};bF.extend({noConflict:function(b0){if(bb.$===bF){bb.$=bH}if(b0&&bb.jQu rmsie = /(msie) ([\w.]+)/,
ery===bF){bb.jQuery=bU}return bF},isReady:false,readyWait:1,holdReady:funct rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
ion(b0){if(b0){bF.readyWait++}else{bF.ready(true)}},ready:function(b0){if((
b0===true&&!--bF.readyWait)||(b0!==true&&!bF.isReady)){if(!av.body){return // Matches dashed string for camelizing
setTimeout(bF.ready,1)}bF.isReady=true;if(b0!==true&&--bF.readyWait>0){retu rdashAlpha = /-([a-z]|[0-9])/ig,
rn}bC.fireWith(av,[bF]);if(bF.fn.trigger){bF(av).trigger("ready").off("read rmsPrefix = /^-ms-/,
y")}}},bindReady:function(){if(bC){return}bC=bF.Callbacks("once memory");if
(av.readyState==="complete"){return setTimeout(bF.ready,1)}if(av.addEventLi // Used by jQuery.camelCase as callback to replace()
stener){av.addEventListener("DOMContentLoaded",e,false);bb.addEventListener fcamelCase = function( all, letter ) {
("load",bF.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystat return ( letter + "" ).toUpperCase();
echange",e);bb.attachEvent("onload",bF.ready);var b0=false;try{b0=bb.frameE },
lement==null}catch(b1){}if(av.documentElement.doScroll&&b0){bw()}}}},isFunc
tion:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||f // Keep a UserAgent string for use with jQuery.browser
unction(b0){return bF.type(b0)==="array"},isWindow:function(b0){return b0&& userAgent = navigator.userAgent,
typeof b0==="object"&&"setInterval" in b0},isNumeric:function(b0){return !i
sNaN(parseFloat(b0))&&isFinite(b0)},type:function(b0){return b0==null?Strin // For matching the engine and version of the browser
g(b0):bx[bL.call(b0)]||"object"},isPlainObject:function(b2){if(!b2||bF.type browserMatch,
(b2)!=="object"||b2.nodeType||bF.isWindow(b2)){return false}try{if(b2.const
ructor&&!bG.call(b2,"constructor")&&!bG.call(b2.constructor.prototype,"isPr // The deferred used on DOM ready
ototypeOf")){return false}}catch(b1){return false}var b0;for(b0 in b2){}ret readyList,
urn b0===L||bG.call(b2,b0)},isEmptyObject:function(b1){for(var b0 in b1){re
turn false}return true},error:function(b0){throw new Error(b0)},parseJSON:f // The ready event handler
unction(b0){if(typeof b0!=="string"||!b0){return null}b0=bF.trim(b0);if(bb. DOMContentLoaded,
JSON&&bb.JSON.parse){return bb.JSON.parse(b0)}if(bN.test(b0.replace(bW,"@")
.replace(bP,"]").replace(bJ,""))){return(new Function("return "+b0))()}bF.e // Save a reference to some core methods
rror("Invalid JSON: "+b0)},parseXML:function(b2){var b0,b1;try{if(bb.DOMPar toString = Object.prototype.toString,
ser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new Ac hasOwn = Object.prototype.hasOwnProperty,
tiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}}catch(b3){ push = Array.prototype.push,
b0=L}if(!b0||!b0.documentElement||b0.getElementsByTagName("parsererror").le slice = Array.prototype.slice,
ngth){bF.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval: trim = String.prototype.trim,
function(b0){if(b0&&bM.test(b0)){(bb.execScript||function(b1){bb["eval"].ca indexOf = Array.prototype.indexOf,
ll(bb,b1)})(b0)}},camelCase:function(b0){return b0.replace(bZ,"ms-").replac
e(bB,bT)},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperC // [[Class]] -> type pairs
ase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length, class2type = {};
b0=b5===L||bF.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1]
,b2)===false){break}}}else{for(;b4<b5;){if(b6.apply(b3[b4++],b2)===false){b jQuery.fn = jQuery.prototype = {
reak}}}}else{if(b0){for(b1 in b3){if(b6.call(b3[b1],b1,b3[b1])===false){bre constructor: jQuery,
ak}}}else{for(;b4<b5;){if(b6.call(b3[b4],b4,b3[b4++])===false){break}}}}ret init: function( selector, context, rootjQuery ) {
urn b3},trim:bO?function(b0){return b0==null?"":bO.call(b0)}:function(b0){r var match, elem, ret, doc;
eturn b0==null?"":b0.toString().replace(bI,"").replace(bE,"")},makeArray:fu
nction(b3,b1){var b0=b1||[];if(b3!=null){var b2=bF.type(b3);if(b3.length==n // Handle $(""), $(null), or $(undefined)
ull||b2==="string"||b2==="function"||b2==="regexp"||bF.isWindow(b3)){bz.cal if ( !selector ) {
l(b0,b3)}else{bF.merge(b0,b3)}}return b0},inArray:function(b2,b3,b1){var b0 return this;
;if(b3){if(bv){return bv.call(b3,b2,b1)}b0=b3.length;b1=b1?b1<0?Math.max(0, }
b0+b1):b1:0;for(;b1<b0;b1++){if(b1 in b3&&b3[b1]===b2){return b1}}}return -
1},merge:function(b4,b2){var b3=b4.length,b1=0;if(typeof b2.length==="numbe // Handle $(DOMElement)
r"){for(var b0=b2.length;b1<b0;b1++){b4[b3++]=b2[b1]}}else{while(b2[b1]!==L if ( selector.nodeType ) {
){b4[b3++]=b2[b1++]}}b4.length=b3;return b4},grep:function(b1,b6,b0){var b2 this.context = this[0] = selector;
=[],b5;b0=!!b0;for(var b3=0,b4=b1.length;b3<b4;b3++){b5=!!b6(b1[b3],b3);if( this.length = 1;
b0!==b5){b2.push(b1[b3])}}return b2},map:function(b0,b7,b8){var b5,b6,b4=[] return this;
,b2=0,b1=b0.length,b3=b0 instanceof bF||b1!==L&&typeof b1==="number"&&((b1> }
0&&b0[0]&&b0[b1-1])||b1===0||bF.isArray(b0));if(b3){for(;b2<b1;b2++){b5=b7(
b0[b2],b2,b8);if(b5!=null){b4[b4.length]=b5}}}else{for(b6 in b0){b5=b7(b0[b // The body element only exists once, optimize finding it
6],b6,b8);if(b5!=null){b4[b4.length]=b5}}}return b4.concat.apply([],b4)},gu if ( selector === "body" && !context && document.body ) {
id:1,proxy:function(b4,b3){if(typeof b3==="string"){var b2=b4[b3];b3=b4;b4= this.context = document;
b2}if(!bF.isFunction(b4)){return L}var b0=bK.call(arguments,2),b1=function( this[0] = document.body;
){return b4.apply(b3,b0.concat(bK.call(arguments)))};b1.guid=b4.guid=b4.gui this.selector = selector;
d||b1.guid||bF.guid++;return b1},access:function(b0,b8,b6,b2,b5,b7){var b1= this.length = 1;
b0.length;if(typeof b8==="object"){for(var b3 in b8){bF.access(b0,b3,b8[b3] return this;
,b2,b5,b6)}return b0}if(b6!==L){b2=!b7&&b2&&bF.isFunction(b6);for(var b4=0; }
b4<b1;b4++){b5(b0[b4],b8,b2?b6.call(b0[b4],b4,b5(b0[b4],b8)):b6,b7)}return
b0}return b1?b5(b0[0],b8):L},now:function(){return(new Date()).getTime()},u // Handle HTML strings
aMatch:function(b1){b1=b1.toLowerCase();var b0=by.exec(b1)||bR.exec(b1)||bQ if ( typeof selector === "string" ) {
.exec(b1)||b1.indexOf("compatible")<0&&bS.exec(b1)||[];return{browser:b0[1] // Are we dealing with HTML string or an ID?
||"",version:b0[2]||"0"}},sub:function(){function b0(b3,b4){return new b0.f if ( selector.charAt(0) === "<" && selector.charAt(
n.init(b3,b4)}bF.extend(true,b0,this);b0.superclass=this;b0.fn=b0.prototype selector.length - 1 ) === ">" && selector.length >= 3 ) {
=this();b0.fn.constructor=b0;b0.sub=this.sub;b0.fn.init=function b2(b3,b4){ // Assume that strings that start and end wi
if(b4&&b4 instanceof bF&&!(b4 instanceof b0)){b4=b0(b4)}return bF.fn.init.c th <> are HTML and skip the regex check
all(this,b3,b4,b1)};b0.fn.init.prototype=b0.fn;var b1=b0(av);return b0},bro match = [ null, selector, null ];
wser:{}});bF.each("Boolean Number String Function Array Date RegExp Object"
.split(" "),function(b1,b0){bx["[object "+b0+"]"]=b0.toLowerCase()});bV=bF. } else {
uaMatch(bX);if(bV.browser){bF.browser[bV.browser]=true;bF.browser.version=b match = quickExpr.exec( selector );
V.version}if(bF.browser.webkit){bF.browser.safari=true}if(bM.test("\xA0")){ }
bI=/^[\s\xA0]+/;bE=/[\s\xA0]+$/}bD=bF(av);if(av.addEventListener){e=functio
n(){av.removeEventListener("DOMContentLoaded",e,false);bF.ready()}}else{if( // Verify a match, and that no context was specified
av.attachEvent){e=function(){if(av.readyState==="complete"){av.detachEvent( for #id
"onreadystatechange",e);bF.ready()}}}}function bw(){if(bF.isReady){return}t if ( match && (match[1] || !context) ) {
ry{av.documentElement.doScroll("left")}catch(b0){setTimeout(bw,1);return}bF
.ready()}return bF})();var a2={};function X(e){var bv=a2[e]={},bw,bx;e=e.sp // HANDLE: $(html) -> $(array)
lit(/\s+/);for(bw=0,bx=e.length;bw<bx;bw++){bv[e[bw]]=true}return bv}b.Call if ( match[1] ) {
backs=function(bw){bw=bw?(a2[bw]||X(bw)):{};var bB=[],bC=[],bx,by,bv,bz,bA, context = context instanceof jQuery
bE=function(bF){var bG,bJ,bI,bH,bK;for(bG=0,bJ=bF.length;bG<bJ;bG++){bI=bF[ ? context[0] : context;
bG];bH=b.type(bI);if(bH==="array"){bE(bI)}else{if(bH==="function"){if(!bw.u doc = ( context ? context.ownerDocum
nique||!bD.has(bI)){bB.push(bI)}}}}},e=function(bG,bF){bF=bF||[];bx=!bw.mem ent || context : document );
ory||[bG,bF];by=true;bA=bv||0;bv=0;bz=bB.length;for(;bB&&bA<bz;bA++){if(bB[
bA].apply(bG,bF)===false&&bw.stopOnFalse){bx=true;break}}by=false;if(bB){if // If a single string is passed in a
(!bw.once){if(bC&&bC.length){bx=bC.shift();bD.fireWith(bx[0],bx[1])}}else{i nd it's a single tag
f(bx===true){bD.disable()}else{bB=[]}}}},bD={add:function(){if(bB){var bF=b // just do a createElement and skip
B.length;bE(arguments);if(by){bz=bB.length}else{if(bx&&bx!==true){bv=bF;e(b the rest
x[0],bx[1])}}}return this},remove:function(){if(bB){var bF=arguments,bH=0,b ret = rsingleTag.exec( selector );
I=bF.length;for(;bH<bI;bH++){for(var bG=0;bG<bB.length;bG++){if(bF[bH]===bB
[bG]){if(by){if(bG<=bz){bz--;if(bG<=bA){bA--}}}bB.splice(bG--,1);if(bw.uniq if ( ret ) {
ue){break}}}}}return this},has:function(bG){if(bB){var bF=0,bH=bB.length;fo if ( jQuery.isPlainObject( c
r(;bF<bH;bF++){if(bG===bB[bF]){return true}}}return false},empty:function() ontext ) ) {
{bB=[];return this},disable:function(){bB=bC=bx=L;return this},disabled:fun selector = [ documen
ction(){return !bB},lock:function(){bC=L;if(!bx||bx===true){bD.disable()}re t.createElement( ret[1] ) ];
turn this},locked:function(){return !bC},fireWith:function(bG,bF){if(bC){if jQuery.fn.attr.call(
(by){if(!bw.once){bC.push([bG,bF])}}else{if(!(bw.once&&bx)){e(bG,bF)}}}retu selector, context, true );
rn this},fire:function(){bD.fireWith(this,arguments);return this},fired:fun
ction(){return !!bx}};return bD};var aJ=[].slice;b.extend({Deferred:functio } else {
n(by){var bx=b.Callbacks("once memory"),bw=b.Callbacks("once memory"),bv=b. selector = [ doc.cre
Callbacks("memory"),e="pending",bA={resolve:bx,reject:bw,notify:bv},bC={don ateElement( ret[1] ) ];
e:bx.add,fail:bw.add,progress:bv.add,state:function(){return e},isResolved: }
bx.fired,isRejected:bw.fired,then:function(bE,bD,bF){bB.done(bE).fail(bD).p
rogress(bF);return this},always:function(){bB.done.apply(bB,arguments).fail } else {
.apply(bB,arguments);return this},pipe:function(bF,bE,bD){return b.Deferred ret = jQuery.buildFragment(
(function(bG){b.each({done:[bF,"resolve"],fail:[bE,"reject"],progress:[bD," [ match[1] ], [ doc ] );
notify"]},function(bI,bL){var bH=bL[0],bK=bL[1],bJ;if(b.isFunction(bH)){bB[ selector = ( ret.cacheable ?
bI](function(){bJ=bH.apply(this,arguments);if(bJ&&b.isFunction(bJ.promise)) jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
{bJ.promise().then(bG.resolve,bG.reject,bG.notify)}else{bG[bK+"With"](this= }
==bB?bG:this,[bJ])}})}else{bB[bI](bG[bK])}})}).promise()},promise:function(
bE){if(bE==null){bE=bC}else{for(var bD in bC){bE[bD]=bC[bD]}}return bE}},bB return jQuery.merge( this, selector
=bC.promise({}),bz;for(bz in bA){bB[bz]=bA[bz].fire;bB[bz+"With"]=bA[bz].fi );
reWith}bB.done(function(){e="resolved"},bw.disable,bv.lock).fail(function()
{e="rejected"},bx.disable,bv.lock);if(by){by.call(bB,bB)}return bB},when:fu // HANDLE: $("#id")
nction(bA){var bx=aJ.call(arguments,0),bv=0,e=bx.length,bB=new Array(e),bw= } else {
e,by=e,bC=e<=1&&bA&&b.isFunction(bA.promise)?bA:b.Deferred(),bE=bC.promise( elem = document.getElementById( matc
);function bD(bF){return function(bG){bx[bF]=arguments.length>1?aJ.call(arg h[2] );
uments,0):bG;if(!(--bw)){bC.resolveWith(bC,bx)}}}function bz(bF){return fun
ction(bG){bB[bF]=arguments.length>1?aJ.call(arguments,0):bG;bC.notifyWith(b // Check parentNode to catch when Bl
E,bB)}}if(e>1){for(;bv<e;bv++){if(bx[bv]&&bx[bv].promise&&b.isFunction(bx[b ackberry 4.6 returns
v].promise)){bx[bv].promise().then(bD(bv),bC.reject,bz(bv))}else{--bw}}if(! // nodes that are no longer in the d
bw){bC.resolveWith(bC,bx)}}else{if(bC!==bA){bC.resolveWith(bC,e?[bA]:[])}}r ocument #6963
eturn bE}});b.support=(function(){var bJ,bI,bF,bG,bx,bE,bA,bD,bz,bK,bB,by,b if ( elem && elem.parentNode ) {
w,bv=av.createElement("div"),bH=av.documentElement;bv.setAttribute("classNa // Handle the case where IE
me","t");bv.innerHTML=" <link/><table></table><a href='/a' style='top:1px and Opera return items
;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bI=bv.getElementsB // by name instead of ID
yTagName("*");bF=bv.getElementsByTagName("a")[0];if(!bI||!bI.length||!bF){r if ( elem.id !== match[2] )
eturn{}}bG=av.createElement("select");bx=bG.appendChild(av.createElement("o {
ption"));bE=bv.getElementsByTagName("input")[0];bJ={leadingWhitespace:(bv.f return rootjQuery.fi
irstChild.nodeType===3),tbody:!bv.getElementsByTagName("tbody").length,html nd( selector );
Serialize:!!bv.getElementsByTagName("link").length,style:/top/.test(bF.getA }
ttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:
/^0.55/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.val // Otherwise, we inject the
ue==="on"),optSelected:bx.selected,getSetAttribute:bv.className!=="t",encty element directly into the jQuery object
pe:!!av.createElement("form").enctype,html5Clone:av.createElement("nav").cl this.length = 1;
oneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles: this[0] = elem;
true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockN }
eedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bE.checke
d=true;bJ.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bJ.opt this.context = document;
Disabled=!bx.disabled;try{delete bv.test}catch(bC){bJ.deleteExpando=false}i this.selector = selector;
f(!bv.addEventListener&&bv.attachEvent&&bv.fireEvent){bv.attachEvent("oncli return this;
ck",function(){bJ.noCloneEvent=false});bv.cloneNode(true).fireEvent("onclic }
k")}bE=av.createElement("input");bE.value="t";bE.setAttribute("type","radio
");bJ.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bv.app // HANDLE: $(expr, $(...))
endChild(bE);bD=av.createDocumentFragment();bD.appendChild(bv.lastChild);bJ } else if ( !context || context.jquery ) {
.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bJ.appendC return ( context || rootjQuery ).find( selec
hecked=bE.checked;bD.removeChild(bE);bD.appendChild(bv);bv.innerHTML="";if( tor );
bb.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style
.marginRight="0";bv.style.width="2px";bv.appendChild(bA);bJ.reliableMarginR // HANDLE: $(expr, context)
ight=(parseInt((bb.getComputedStyle(bA,null)||{marginRight:0}).marginRight, // (which is just equivalent to: $(context).find(exp
10)||0)===0}if(bv.attachEvent){for(by in {submit:1,change:1,focusin:1}){bB= r)
"on"+by;bw=(bB in bv);if(!bw){bv.setAttribute(bB,"return;");bw=(typeof bv[b } else {
B]==="function")}bJ[by+"Bubbles"]=bw}}bD.removeChild(bv);bD=bG=bx=bA=bv=bE= return this.constructor( context ).find( sel
null;b(function(){var bM,bU,bV,bT,bN,bO,bL,bS,bR,e,bP,bQ=av.getElementsByTa ector );
gName("body")[0];if(!bQ){return}bL=1;bS="position:absolute;top:0;left:0;wid }
th:1px;height:1px;margin:0;";bR="visibility:hidden;border:0;";e="style='"+b
S+"border:5px solid #000;padding:0;'";bP="<div "+e+"><div></div></div><tabl // HANDLE: $(function)
e "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bM=av.c // Shortcut for document ready
reateElement("div");bM.style.cssText=bR+"width:0;height:0;position:static;t } else if ( jQuery.isFunction( selector ) ) {
op:0;margin-top:"+bL+"px";bQ.insertBefore(bM,bQ.firstChild);bv=av.createEle return rootjQuery.ready( selector );
ment("div");bM.appendChild(bv);bv.innerHTML="<table><tr><td style='padding: }
0;border:0;display:none'></td><td>t</td></tr></table>";bz=bv.getElementsByT
agName("td");bw=(bz[0].offsetHeight===0);bz[0].style.display="";bz[1].style if ( selector.selector !== undefined ) {
.display="none";bJ.reliableHiddenOffsets=bw&&(bz[0].offsetHeight===0);bv.in this.selector = selector.selector;
nerHTML="";bv.style.width=bv.style.paddingLeft="1px";b.boxModel=bJ.boxModel this.context = selector.context;
=bv.offsetWidth===2;if(typeof bv.style.zoom!=="undefined"){bv.style.display }
="inline";bv.style.zoom=1;bJ.inlineBlockNeedsLayout=(bv.offsetWidth===2);bv
.style.display="";bv.innerHTML="<div style='width:4px;'></div>";bJ.shrinkWr return jQuery.makeArray( selector, this );
apBlocks=(bv.offsetWidth!==2)}bv.style.cssText=bS+bR;bv.innerHTML=bP;bU=bv. },
firstChild;bV=bU.firstChild;bN=bU.nextSibling.firstChild.firstChild;bO={doe
sNotAddBorder:(bV.offsetTop!==5),doesAddBorderForTableAndCells:(bN.offsetTo // Start with an empty selector
p===5)};bV.style.position="fixed";bV.style.top="20px";bO.fixedPosition=(bV. selector: "",
offsetTop===20||bV.offsetTop===15);bV.style.position=bV.style.top="";bU.sty
le.overflow="hidden";bU.style.position="relative";bO.subtractsBorderForOver // The current version of jQuery being used
flowNotVisible=(bV.offsetTop===-5);bO.doesNotIncludeMarginInBodyOffset=(bQ. jquery: "1.7.1",
offsetTop!==bL);bQ.removeChild(bM);bv=bM=null;b.extend(bJ,bO)});return bJ})
();var aS=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,exp // The default length of a jQuery object is 0
ando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:t length: 0,
rue,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasDat
a:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&! // The number of elements contained in the matched element set
S(e)},data:function(bx,bv,bz,by){if(!b.acceptData(bx)){return}var bG,bA,bD, size: function() {
bE=b.expando,bC=typeof bv==="string",bF=bx.nodeType,e=bF?b.cache:bx,bw=bF?b return this.length;
x[bE]:bx[bE]&&bE,bB=bv==="events";if((!bw||!e[bw]||(!bB&&!by&&!e[bw].data)) },
&&bC&&bz===L){return}if(!bw){if(bF){bx[bE]=bw=++b.uuid}else{bw=bE}}if(!e[bw
]){e[bw]={};if(!bF){e[bw].toJSON=b.noop}}if(typeof bv==="object"||typeof bv toArray: function() {
==="function"){if(by){e[bw]=b.extend(e[bw],bv)}else{e[bw].data=b.extend(e[b return slice.call( this, 0 );
w].data,bv)}}bG=bA=e[bw];if(!by){if(!bA.data){bA.data={}}bA=bA.data}if(bz!= },
=L){bA[b.camelCase(bv)]=bz}if(bB&&!bA[bv]){return bG.events}if(bC){bD=bA[bv
];if(bD==null){bD=bA[b.camelCase(bv)]}}else{bD=bA}return bD},removeData:fun // Get the Nth element in the matched element set OR
ction(bx,bv,by){if(!b.acceptData(bx)){return}var bB,bA,bz,bC=b.expando,bD=b // Get the whole matched element set as a clean array
x.nodeType,e=bD?b.cache:bx,bw=bD?bx[bC]:bC;if(!e[bw]){return}if(bv){bB=by?e get: function( num ) {
[bw]:e[bw].data;if(bB){if(!b.isArray(bv)){if(bv in bB){bv=[bv]}else{bv=b.ca return num == null ?
melCase(bv);if(bv in bB){bv=[bv]}else{bv=bv.split(" ")}}}for(bA=0,bz=bv.len
gth;bA<bz;bA++){delete bB[bv[bA]]}if(!(by?S:b.isEmptyObject)(bB)){return}}} // Return a 'clean' array
if(!by){delete e[bw].data;if(!S(e[bw])){return}}if(b.support.deleteExpando| this.toArray() :
|!e.setInterval){delete e[bw]}else{e[bw]=null}if(bD){if(b.support.deleteExp
ando){delete bx[bC]}else{if(bx.removeAttribute){bx.removeAttribute(bC)}else // Return just the object
{bx[bC]=null}}}},_data:function(bv,e,bw){return b.data(bv,e,bw,true)},accep ( num < 0 ? this[ this.length + num ] : this[ num ]
tData:function(bv){if(bv.nodeName){var e=b.noData[bv.nodeName.toLowerCase() );
];if(e){return !(e===true||bv.getAttribute("classid")!==e)}}return true}}); },
b.fn.extend({data:function(by,bA){var bB,e,bw,bz=null;if(typeof by==="undef
ined"){if(this.length){bz=b.data(this[0]);if(this[0].nodeType===1&&!b._data // Take an array of elements and push it onto the stack
(this[0],"parsedAttrs")){e=this[0].attributes;for(var bx=0,bv=e.length;bx<b // (returning the new matched element set)
v;bx++){bw=e[bx].name;if(bw.indexOf("data-")===0){bw=b.camelCase(bw.substri pushStack: function( elems, name, selector ) {
ng(5));a5(this[0],bw,bz[bw])}}b._data(this[0],"parsedAttrs",true)}}return b // Build a new jQuery matched element set
z}else{if(typeof by==="object"){return this.each(function(){b.data(this,by) var ret = this.constructor();
})}}bB=by.split(".");bB[1]=bB[1]?"."+bB[1]:"";if(bA===L){bz=this.triggerHan
dler("getData"+bB[1]+"!",[bB[0]]);if(bz===L&&this.length){bz=b.data(this[0] if ( jQuery.isArray( elems ) ) {
,by);bz=a5(this[0],by,bz)}return bz===L&&bB[1]?this.data(bB[0]):bz}else{ret push.apply( ret, elems );
urn this.each(function(){var bC=b(this),bD=[bB[0],bA];bC.triggerHandler("se
tData"+bB[1]+"!",bD);b.data(this,by,bA);bC.triggerHandler("changeData"+bB[1 } else {
]+"!",bD)})}},removeData:function(e){return this.each(function(){b.removeDa jQuery.merge( ret, elems );
ta(this,e)})}});function a5(bx,bw,by){if(by===L&&bx.nodeType===1){var bv="d }
ata-"+bw.replace(aA,"-$1").toLowerCase();by=bx.getAttribute(bv);if(typeof b
y==="string"){try{by=by==="true"?true:by==="false"?false:by==="null"?null:b // Add the old object onto the stack (as a reference)
.isNumeric(by)?parseFloat(by):aS.test(by)?b.parseJSON(by):by}catch(bz){}b.d ret.prevObject = this;
ata(bx,bw,by)}else{by=L}}return by}function S(bv){for(var e in bv){if(e==="
data"&&b.isEmptyObject(bv[e])){continue}if(e!=="toJSON"){return false}}retu ret.context = this.context;
rn true}function bi(by,bx,bA){var bw=bx+"defer",bv=bx+"queue",e=bx+"mark",b
z=b._data(by,bw);if(bz&&(bA==="queue"||!b._data(by,bv))&&(bA==="mark"||!b._ if ( name === "find" ) {
data(by,e))){setTimeout(function(){if(!b._data(by,bv)&&!b._data(by,e)){b.re ret.selector = this.selector + ( this.selector ? " "
moveData(by,bw,true);bz.fire()}},0)}}b.extend({_mark:function(bv,e){if(bv){ : "" ) + selector;
e=(e||"fx")+"mark";b._data(bv,e,(b._data(bv,e)||0)+1)}},_unmark:function(by } else if ( name ) {
,bx,bv){if(by!==true){bv=bx;bx=by;by=false}if(bx){bv=bv||"fx";var e=bv+"mar ret.selector = this.selector + "." + name + "(" + se
k",bw=by?0:((b._data(bx,e)||1)-1);if(bw){b._data(bx,e,bw)}else{b.removeData lector + ")";
(bx,e,true);bi(bx,bv,"mark")}}},queue:function(bv,e,bx){var bw;if(bv){e=(e| }
|"fx")+"queue";bw=b._data(bv,e);if(bx){if(!bw||b.isArray(bx)){bw=b._data(bv
,e,b.makeArray(bx))}else{bw.push(bx)}}return bw||[]}},dequeue:function(by,b // Return the newly-formed element set
x){bx=bx||"fx";var bv=b.queue(by,bx),bw=bv.shift(),e={};if(bw==="inprogress return ret;
"){bw=bv.shift()}if(bw){if(bx==="fx"){bv.unshift("inprogress")}b._data(by,b },
x+".run",e);bw.call(by,function(){b.dequeue(by,bx)},e)}if(!bv.length){b.rem
oveData(by,bx+"queue "+bx+".run",true);bi(by,bx,"queue")}}});b.fn.extend({q // Execute a callback for every element in the matched set.
ueue:function(e,bv){if(typeof e!=="string"){bv=e;e="fx"}if(bv===L){return b // (You can seed the arguments with an array of args, but this is
.queue(this[0],e)}return this.each(function(){var bw=b.queue(this,e,bv);if( // only used internally.)
e==="fx"&&bw[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){r each: function( callback, args ) {
eturn this.each(function(){b.dequeue(this,e)})},delay:function(bv,e){bv=b.f return jQuery.each( this, callback, args );
x?b.fx.speeds[bv]||bv:bv;e=e||"fx";return this.queue(e,function(bx,bw){var },
by=setTimeout(bx,bv);bw.stop=function(){clearTimeout(by)}})},clearQueue:fun
ction(e){return this.queue(e||"fx",[])},promise:function(bD,bw){if(typeof b ready: function( fn ) {
D!=="string"){bw=bD;bD=L}bD=bD||"fx";var e=b.Deferred(),bv=this,by=bv.lengt // Attach the listeners
h,bB=1,bz=bD+"defer",bA=bD+"queue",bC=bD+"mark",bx;function bE(){if(!(--bB) jQuery.bindReady();
){e.resolveWith(bv,[bv])}}while(by--){if((bx=b.data(bv[by],bz,L,true)||(b.d
ata(bv[by],bA,L,true)||b.data(bv[by],bC,L,true))&&b.data(bv[by],bz,b.Callba // Add the callback
cks("once memory"),true))){bB++;bx.add(bE)}}bE();return e.promise()}});var readyList.add( fn );
aP=/[\n\t\r]/g,af=/\s+/,aU=/\r/g,g=/^(?:button|input)$/i,D=/^(?:button|inpu
t|object|select|textarea)$/i,l=/^a(?:rea)?$/i,ao=/^(?:autofocus|autoplay|as return this;
ync|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|requ },
ired|scoped|selected)$/i,F=b.support.getSetAttribute,be,aY,aF;b.fn.extend({
attr:function(e,bv){return b.access(this,e,bv,true,b.attr)},removeAttr:func eq: function( i ) {
tion(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e i = +i;
,bv){return b.access(this,e,bv,true,b.prop)},removeProp:function(e){e=b.pro return i === -1 ?
pFix[e]||e;return this.each(function(){try{this[e]=L;delete this[e]}catch(b this.slice( i ) :
v){}})},addClass:function(by){var bA,bw,bv,bx,bz,bB,e;if(b.isFunction(by)){ this.slice( i, i + 1 );
return this.each(function(bC){b(this).addClass(by.call(this,bC,this.classNa },
me))})}if(by&&typeof by==="string"){bA=by.split(af);for(bw=0,bv=this.length
;bw<bv;bw++){bx=this[bw];if(bx.nodeType===1){if(!bx.className&&bA.length=== first: function() {
1){bx.className=by}else{bz=" "+bx.className+" ";for(bB=0,e=bA.length;bB<e;b return this.eq( 0 );
B++){if(!~bz.indexOf(" "+bA[bB]+" ")){bz+=bA[bB]+" "}}bx.className=b.trim(b },
z)}}}}return this},removeClass:function(bz){var bA,bw,bv,by,bx,bB,e;if(b.is
Function(bz)){return this.each(function(bC){b(this).removeClass(bz.call(thi last: function() {
s,bC,this.className))})}if((bz&&typeof bz==="string")||bz===L){bA=(bz||""). return this.eq( -1 );
split(af);for(bw=0,bv=this.length;bw<bv;bw++){by=this[bw];if(by.nodeType=== },
1&&by.className){if(bz){bx=(" "+by.className+" ").replace(aP," ");for(bB=0,
e=bA.length;bB<e;bB++){bx=bx.replace(" "+bA[bB]+" "," ")}by.className=b.tri slice: function() {
m(bx)}else{by.className=""}}}}return this},toggleClass:function(bx,bv){var return this.pushStack( slice.apply( this, arguments ),
bw=typeof bx,e=typeof bv==="boolean";if(b.isFunction(bx)){return this.each( "slice", slice.call(arguments).join(",") );
function(by){b(this).toggleClass(bx.call(this,by,this.className,bv),bv)})}r },
eturn this.each(function(){if(bw==="string"){var bA,bz=0,by=b(this),bB=bv,b
C=bx.split(af);while((bA=bC[bz++])){bB=e?bB:!by.hasClass(bA);by[bB?"addClas map: function( callback ) {
s":"removeClass"](bA)}}else{if(bw==="undefined"||bw==="boolean"){if(this.cl return this.pushStack( jQuery.map(this, function( elem, i )
assName){b._data(this,"__className__",this.className)}this.className=this.c {
lassName||bx===false?"":b._data(this,"__className__")||""}}})},hasClass:fun return callback.call( elem, i, elem );
ction(e){var bx=" "+e+" ",bw=0,bv=this.length;for(;bw<bv;bw++){if(this[bw]. }));
nodeType===1&&(" "+this[bw].className+" ").replace(aP," ").indexOf(bx)>-1){ },
return true}}return false},val:function(bx){var e,bv,by,bw=this[0];if(!argu
ments.length){if(bw){e=b.valHooks[bw.nodeName.toLowerCase()]||b.valHooks[bw end: function() {
.type];if(e&&"get" in e&&(bv=e.get(bw,"value"))!==L){return bv}bv=bw.value; return this.prevObject || this.constructor(null);
return typeof bv==="string"?bv.replace(aU,""):bv==null?"":bv}return}by=b.is },
Function(bx);return this.each(function(bA){var bz=b(this),bB;if(this.nodeTy
pe!==1){return}if(by){bB=bx.call(this,bA,bz.val())}else{bB=bx}if(bB==null){ // For internal use only.
bB=""}else{if(typeof bB==="number"){bB+=""}else{if(b.isArray(bB)){bB=b.map( // Behaves like an Array's method, not like a jQuery method.
bB,function(bC){return bC==null?"":bC+""})}}}e=b.valHooks[this.nodeName.toL push: push,
owerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bB,"val sort: [].sort,
ue")===L){this.value=bB}})}});b.extend({valHooks:{option:{get:function(e){v splice: [].splice
ar bv=e.attributes.value;return !bv||bv.specified?e.value:e.text}},select:{ };
get:function(e){var bA,bv,bz,bx,by=e.selectedIndex,bB=[],bC=e.options,bw=e.
type==="select-one";if(by<0){return null}bv=bw?by:0;bz=bw?by+1:bC.length;fo // Give the init function the jQuery prototype for later instantiation
r(;bv<bz;bv++){bx=bC[bv];if(bx.selected&&(b.support.optDisabled?!bx.disable jQuery.fn.init.prototype = jQuery.fn;
d:bx.getAttribute("disabled")===null)&&(!bx.parentNode.disabled||!b.nodeNam
e(bx.parentNode,"optgroup"))){bA=b(bx).val();if(bw){return bA}bB.push(bA)}} jQuery.extend = jQuery.fn.extend = function() {
if(bw&&!bB.length&&bC.length){return b(bC[by]).val()}return bB},set:functio var options, name, src, copy, copyIsArray, clone,
n(bv,bw){var e=b.makeArray(bw);b(bv).find("option").each(function(){this.se target = arguments[0] || {},
lected=b.inArray(b(this).val(),e)>=0});if(!e.length){bv.selectedIndex=-1}re i = 1,
turn e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:tru length = arguments.length,
e,height:true,offset:true},attr:function(bA,bx,bB,bz){var bw,e,by,bv=bA.nod deep = false;
eType;if(!bA||bv===3||bv===8||bv===2){return}if(bz&&bx in b.attrFn){return
b(bA)[bx](bB)}if(typeof bA.getAttribute==="undefined"){return b.prop(bA,bx, // Handle a deep copy situation
bB)}by=bv!==1||!b.isXMLDoc(bA);if(by){bx=bx.toLowerCase();e=b.attrHooks[bx] if ( typeof target === "boolean" ) {
||(ao.test(bx)?aY:be)}if(bB!==L){if(bB===null){b.removeAttr(bA,bx);return}e deep = target;
lse{if(e&&"set" in e&&by&&(bw=e.set(bA,bB,bx))!==L){return bw}else{bA.setAt target = arguments[1] || {};
tribute(bx,""+bB);return bB}}}else{if(e&&"get" in e&&by&&(bw=e.get(bA,bx))! // skip the boolean and the target
==null){return bw}else{bw=bA.getAttribute(bx);return bw===null?L:bw}}},remo i = 2;
veAttr:function(bx,bz){var by,bA,bv,e,bw=0;if(bz&&bx.nodeType===1){bA=bz.to }
LowerCase().split(af);e=bA.length;for(;bw<e;bw++){bv=bA[bw];if(bv){by=b.pro
pFix[bv]||bv;b.attr(bx,bv,"");bx.removeAttribute(F?bv:by);if(ao.test(bv)&&b // Handle case when target is a string or something (possible in dee
y in bx){bx[by]=false}}}}},attrHooks:{type:{set:function(e,bv){if(g.test(e. p copy)
nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if( if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
!b.support.radioValue&&bv==="radio"&&b.nodeName(e,"input")){var bw=e.value; target = {};
e.setAttribute("type",bv);if(bw){e.value=bw}return bv}}}},value:{get:functi }
on(bv,e){if(be&&b.nodeName(bv,"button")){return be.get(bv,e)}return e in bv
?bv.value:null},set:function(bv,bw,e){if(be&&b.nodeName(bv,"button")){retur // extend jQuery itself if only one argument is passed
n be.set(bv,bw,e)}bv.value=bw}}},propFix:{tabindex:"tabIndex",readonly:"rea if ( length === i ) {
dOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacin target = this;
g:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpa --i;
n",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditab }
le"},prop:function(bz,bx,bA){var bw,e,by,bv=bz.nodeType;if(!bz||bv===3||bv=
==8||bv===2){return}by=bv!==1||!b.isXMLDoc(bz);if(by){bx=b.propFix[bx]||bx; for ( ; i < length; i++ ) {
e=b.propHooks[bx]}if(bA!==L){if(e&&"set" in e&&(bw=e.set(bz,bA,bx))!==L){re // Only deal with non-null/undefined values
turn bw}else{return(bz[bx]=bA)}}else{if(e&&"get" in e&&(bw=e.get(bz,bx))!== if ( (options = arguments[ i ]) != null ) {
null){return bw}else{return bz[bx]}}},propHooks:{tabIndex:{get:function(bv) // Extend the base object
{var e=bv.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.val for ( name in options ) {
ue,10):D.test(bv.nodeName)||l.test(bv.nodeName)&&bv.href?0:L}}}});b.attrHoo src = target[ name ];
ks.tabindex=b.propHooks.tabIndex;aY={get:function(bv,e){var bx,bw=b.prop(bv copy = options[ name ];
,e);return bw===true||typeof bw!=="boolean"&&(bx=bv.getAttributeNode(e))&&b
x.nodeValue!==false?e.toLowerCase():L},set:function(bv,bx,e){var bw;if(bx== // Prevent never-ending loop
=false){b.removeAttr(bv,e)}else{bw=b.propFix[e]||e;if(bw in bv){bv[bw]=true if ( target === copy ) {
}bv.setAttribute(e,e.toLowerCase())}return e}};if(!F){aF={name:true,id:true continue;
};be=b.valHooks.button={get:function(bw,bv){var e;e=bw.getAttributeNode(bv) }
;return e&&(aF[bv]?e.nodeValue!=="":e.specified)?e.nodeValue:L},set:functio
n(bw,bx,bv){var e=bw.getAttributeNode(bv);if(!e){e=av.createAttribute(bv);b // Recurse if we're merging plain objects or
w.setAttributeNode(e)}return(e.nodeValue=bx+"")}};b.attrHooks.tabindex.set= arrays
be.set;b.each(["width","height"],function(bv,e){b.attrHooks[e]=b.extend(b.a if ( deep && copy && ( jQuery.isPlainObject(
ttrHooks[e],{set:function(bw,bx){if(bx===""){bw.setAttribute(e,"auto");retu copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
rn bx}}})});b.attrHooks.contenteditable={get:be.get,set:function(bv,bw,e){i if ( copyIsArray ) {
f(bw===""){bw="false"}be.set(bv,bw,e)}}}if(!b.support.hrefNormalized){b.eac copyIsArray = false;
h(["href","src","width","height"],function(bv,e){b.attrHooks[e]=b.extend(b. clone = src && jQuery.isArra
attrHooks[e],{get:function(bx){var bw=bx.getAttribute(e,2);return bw===null y(src) ? src : [];
?L:bw}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e
.style.cssText.toLowerCase()||L},set:function(e,bv){return(e.style.cssText= } else {
""+bv)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHoo clone = src && jQuery.isPlai
ks.selected,{get:function(bv){var e=bv.parentNode;if(e){e.selectedIndex;if( nObject(src) ? src : {};
e.parentNode){e.parentNode.selectedIndex}}return null}})}if(!b.support.enct }
ype){b.propFix.enctype="encoding"}if(!b.support.checkOn){b.each(["radio","c
heckbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribut // Never move original objects, clon
e("value")===null?"on":e.value}}})}b.each(["radio","checkbox"],function(){b e them
.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bv){if(b.isArray( target[ name ] = jQuery.extend( deep
bv)){return(e.checked=b.inArray(b(e).val(),bv)>=0)}}})});var bd=/^(?:textar , clone, copy );
ea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aO=/^k
ey/,bf=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U // Don't bring in undefined values
=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bv=U.exec(e);if } else if ( copy !== undefined ) {
(bv){bv[1]=(bv[1]||"").toLowerCase();bv[3]=bv[3]&&new RegExp("(?:^|\\s)"+bv target[ name ] = copy;
[3]+"(?:\\s|$)")}return bv},j=function(bw,e){var bv=bw.attributes||{};retur }
n((!e[1]||bw.nodeName.toLowerCase()===e[1])&&(!e[2]||(bv.id||{}).value===e[ }
2])&&(!e[3]||e[3].test((bv["class"]||{}).value)))},bt=function(e){return b. }
event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={ad }
d:function(bx,bC,bJ,bA,by){var bD,bB,bK,bI,bH,bF,e,bG,bv,bz,bw,bE;if(bx.nod
eType===3||bx.nodeType===8||!bC||!bJ||!(bD=b._data(bx))){return}if(bJ.handl // Return the modified object
er){bv=bJ;bJ=bv.handler}if(!bJ.guid){bJ.guid=b.guid++}bK=bD.events;if(!bK){ return target;
bD.events=bK={}}bB=bD.handle;if(!bB){bD.handle=bB=function(bL){return typeo };
f b!=="undefined"&&(!bL||b.event.triggered!==bL.type)?b.event.dispatch.appl
y(bB.elem,arguments):L};bB.elem=bx}bC=b.trim(bt(bC)).split(" ");for(bI=0;bI jQuery.extend({
<bC.length;bI++){bH=n.exec(bC[bI])||[];bF=bH[1];e=(bH[2]||"").split(".").so noConflict: function( deep ) {
rt();bE=b.event.special[bF]||{};bF=(by?bE.delegateType:bE.bindType)||bF;bE= if ( window.$ === jQuery ) {
b.event.special[bF]||{};bG=b.extend({type:bF,origType:bH[1],data:bA,handler window.$ = _$;
:bJ,guid:bJ.guid,selector:by,quick:Y(by),namespace:e.join(".")},bv);bw=bK[b }
F];if(!bw){bw=bK[bF]=[];bw.delegateCount=0;if(!bE.setup||bE.setup.call(bx,b
A,e,bB)===false){if(bx.addEventListener){bx.addEventListener(bF,bB,false)}e if ( deep && window.jQuery === jQuery ) {
lse{if(bx.attachEvent){bx.attachEvent("on"+bF,bB)}}}}if(bE.add){bE.add.call window.jQuery = _jQuery;
(bx,bG);if(!bG.handler.guid){bG.handler.guid=bJ.guid}}if(by){bw.splice(bw.d }
elegateCount++,0,bG)}else{bw.push(bG)}b.event.global[bF]=true}bx=null},glob
al:{},remove:function(bJ,bE,bv,bH,bB){var bI=b.hasData(bJ)&&b._data(bJ),bF, return jQuery;
bx,bz,bL,bC,bA,bG,bw,by,bK,bD,e;if(!bI||!(bw=bI.events)){return}bE=b.trim(b },
t(bE||"")).split(" ");for(bF=0;bF<bE.length;bF++){bx=n.exec(bE[bF])||[];bz=
bL=bx[1];bC=bx[2];if(!bz){for(bz in bw){b.event.remove(bJ,bz+bE[bF],bv,bH,t // Is the DOM ready to be used? Set to true once it occurs.
rue)}continue}by=b.event.special[bz]||{};bz=(bH?by.delegateType:by.bindType isReady: false,
)||bz;bD=bw[bz]||[];bA=bD.length;bC=bC?new RegExp("(^|\\.)"+bC.split(".").s
ort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(bG=0;bG<bD.length;bG++){e=b // A counter to track how many items to wait for before
D[bG];if((bB||bL===e.origType)&&(!bv||bv.guid===e.guid)&&(!bC||bC.test(e.na // the ready event fires. See #6781
mespace))&&(!bH||bH===e.selector||bH==="**"&&e.selector)){bD.splice(bG--,1) readyWait: 1,
;if(e.selector){bD.delegateCount--}if(by.remove){by.remove.call(bJ,e)}}}if(
bD.length===0&&bA!==bD.length){if(!by.teardown||by.teardown.call(bJ,bC)===f // Hold (or release) the ready event
alse){b.removeEvent(bJ,bz,bI.handle)}delete bw[bz]}}if(b.isEmptyObject(bw)) holdReady: function( hold ) {
{bK=bI.handle;if(bK){bK.elem=null}b.removeData(bJ,["events","handle"],true) if ( hold ) {
}},customEvent:{getData:true,setData:true,changeData:true},trigger:function jQuery.readyWait++;
(bv,bD,bA,bJ){if(bA&&(bA.nodeType===3||bA.nodeType===8)){return}var bG=bv.t } else {
ype||bv,bx=[],e,bw,bC,bH,bz,by,bF,bE,bB,bI;if(T.test(bG+b.event.triggered)) jQuery.ready( true );
{return}if(bG.indexOf("!")>=0){bG=bG.slice(0,-1);bw=true}if(bG.indexOf(".") }
>=0){bx=bG.split(".");bG=bx.shift();bx.sort()}if((!bA||b.event.customEvent[ },
bG])&&!b.event.global[bG]){return}bv=typeof bv==="object"?bv[b.expando]?bv:
new b.Event(bG,bv):new b.Event(bG);bv.type=bG;bv.isTrigger=true;bv.exclusiv // Handle when the DOM is ready
e=bw;bv.namespace=bx.join(".");bv.namespace_re=bv.namespace?new RegExp("(^| ready: function( wait ) {
\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;by=bG.indexOf(":")<0?"on"+bG // Either a released hold or an DOMready/load event and not
:"";if(!bA){e=b.cache;for(bC in e){if(e[bC].events&&e[bC].events[bG]){b.eve yet ready
nt.trigger(bv,bD,e[bC].handle.elem,true)}}return}bv.result=L;if(!bv.target) if ( (wait === true && !--jQuery.readyWait) || (wait !== tru
{bv.target=bA}bD=bD!=null?b.makeArray(bD):[];bD.unshift(bv);bF=b.event.spec e && !jQuery.isReady) ) {
ial[bG]||{};if(bF.trigger&&bF.trigger.apply(bA,bD)===false){return}bB=[[bA, // Make sure body exists, at least, in case IE gets
bF.bindType||bG]];if(!bJ&&!bF.noBubble&&!b.isWindow(bA)){bI=bF.delegateType a little overzealous (ticket #5443).
||bG;bH=T.test(bI+bG)?bA:bA.parentNode;bz=null;for(;bH;bH=bH.parentNode){bB if ( !document.body ) {
.push([bH,bI]);bz=bH}if(bz&&bz===bA.ownerDocument){bB.push([bz.defaultView| return setTimeout( jQuery.ready, 1 );
|bz.parentWindow||bb,bI])}}for(bC=0;bC<bB.length&&!bv.isPropagationStopped( }
);bC++){bH=bB[bC][0];bv.type=bB[bC][1];bE=(b._data(bH,"events")||{})[bv.typ
e]&&b._data(bH,"handle");if(bE){bE.apply(bH,bD)}bE=by&&bH[by];if(bE&&b.acce // Remember that the DOM is ready
ptData(bH)&&bE.apply(bH,bD)===false){bv.preventDefault()}}bv.type=bG;if(!bJ jQuery.isReady = true;
&&!bv.isDefaultPrevented()){if((!bF._default||bF._default.apply(bA.ownerDoc
ument,bD)===false)&&!(bG==="click"&&b.nodeName(bA,"a"))&&b.acceptData(bA)){ // If a normal DOM Ready event fired, decrement, and
if(by&&bA[bG]&&((bG!=="focus"&&bG!=="blur")||bv.target.offsetWidth!==0)&&!b wait if need be
.isWindow(bA)){bz=bA[by];if(bz){bA[by]=null}b.event.triggered=bG;bA[bG]();b if ( wait !== true && --jQuery.readyWait > 0 ) {
.event.triggered=L;if(bz){bA[by]=bz}}}}return bv.result},dispatch:function( return;
e){e=b.event.fix(e||bb.event);var bz=((b._data(this,"events")||{})[e.type]| }
|[]),bA=bz.delegateCount,bG=[].slice.call(arguments,0),by=!e.exclusive&&!e.
namespace,bH=[],bC,bB,bK,bx,bF,bE,bv,bD,bI,bw,bJ;bG[0]=e;e.delegateTarget=t // If there are functions bound, to execute
his;if(bA&&!e.target.disabled&&!(e.button&&e.type==="click")){bx=b(this);bx readyList.fireWith( document, [ jQuery ] );
.context=this.ownerDocument||this;for(bK=e.target;bK!=this;bK=bK.parentNode
||this){bE={};bD=[];bx[0]=bK;for(bC=0;bC<bA;bC++){bI=bz[bC];bw=bI.selector; // Trigger any bound ready events
if(bE[bw]===L){bE[bw]=(bI.quick?j(bK,bI.quick):bx.is(bw))}if(bE[bw]){bD.pus if ( jQuery.fn.trigger ) {
h(bI)}}if(bD.length){bH.push({elem:bK,matches:bD})}}}if(bz.length>bA){bH.pu jQuery( document ).trigger( "ready" ).off( "
sh({elem:this,matches:bz.slice(bA)})}for(bC=0;bC<bH.length&&!e.isPropagatio ready" );
nStopped();bC++){bv=bH[bC];e.currentTarget=bv.elem;for(bB=0;bB<bv.matches.l }
ength&&!e.isImmediatePropagationStopped();bB++){bI=bv.matches[bB];if(by||(! }
e.namespace&&!bI.namespace)||e.namespace_re&&e.namespace_re.test(bI.namespa },
ce)){e.data=bI.data;e.handleObj=bI;bF=((b.event.special[bI.origType]||{}).h
andle||bI.handler).apply(bv.elem,bG);if(bF!==L){e.result=bF;if(bF===false){ bindReady: function() {
e.preventDefault();e.stopPropagation()}}}}}return e.result},props:"attrChan if ( readyList ) {
ge attrName relatedNode srcElement altKey bubbles cancelable ctrlKey curren return;
tTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view whi }
ch".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".spli
t(" "),filter:function(bv,e){if(bv.which==null){bv.which=e.charCode!=null?e readyList = jQuery.Callbacks( "once memory" );
.charCode:e.keyCode}return bv}},mouseHooks:{props:"button buttons clientX c
lientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".s // Catch cases where $(document).ready() is called after the
plit(" "),filter:function(bx,bw){var by,bz,e,bv=bw.button,bA=bw.fromElement // browser event has already occurred.
;if(bx.pageX==null&&bw.clientX!=null){by=bx.target.ownerDocument||av;bz=by. if ( document.readyState === "complete" ) {
documentElement;e=by.body;bx.pageX=bw.clientX+(bz&&bz.scrollLeft||e&&e.scro // Handle it asynchronously to allow scripts the opp
llLeft||0)-(bz&&bz.clientLeft||e&&e.clientLeft||0);bx.pageY=bw.clientY+(bz& ortunity to delay ready
&bz.scrollTop||e&&e.scrollTop||0)-(bz&&bz.clientTop||e&&e.clientTop||0)}if( return setTimeout( jQuery.ready, 1 );
!bx.relatedTarget&&bA){bx.relatedTarget=bA===bx.target?bw.toElement:bA}if(! }
bx.which&&bv!==L){bx.which=(bv&1?1:(bv&2?3:(bv&4?2:0)))}return bx}},fix:fun
ction(bw){if(bw[b.expando]){return bw}var bv,bz,e=bw,bx=b.event.fixHooks[bw // Mozilla, Opera and webkit nightlies currently support thi
.type]||{},by=bx.props?this.props.concat(bx.props):this.props;bw=b.Event(e) s event
;for(bv=by.length;bv;){bz=by[--bv];bw[bz]=e[bz]}if(!bw.target){bw.target=e. if ( document.addEventListener ) {
srcElement||av}if(bw.target.nodeType===3){bw.target=bw.target.parentNode}if // Use the handy event callback
(bw.metaKey===L){bw.metaKey=bw.ctrlKey}return bx.filter?bx.filter(bw,e):bw} document.addEventListener( "DOMContentLoaded", DOMCo
,special:{ready:{setup:b.bindReady},load:{noBubble:true},focus:{delegateTyp ntentLoaded, false );
e:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(bw
,bv,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bv,e) // A fallback to window.onload, that will always wor
{if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function k
(bw,by,bx,bv){var bz=b.extend(new b.Event(),bx,{type:bw,isSimulated:true,or window.addEventListener( "load", jQuery.ready, false
iginalEvent:{}});if(bv){b.event.trigger(bz,null,by)}else{b.event.dispatch.c );
all(by,bz)}if(bz.isDefaultPrevented()){bx.preventDefault()}}};b.event.handl
e=b.event.dispatch;b.removeEvent=av.removeEventListener?function(bv,e,bw){i // If IE event model is used
f(bv.removeEventListener){bv.removeEventListener(e,bw,false)}}:function(bv, } else if ( document.attachEvent ) {
e,bw){if(bv.detachEvent){bv.detachEvent("on"+e,bw)}};b.Event=function(bv,e) // ensure firing before onload,
{if(!(this instanceof b.Event)){return new b.Event(bv,e)}if(bv&&bv.type){th // maybe late but safe also for iframes
is.originalEvent=bv;this.type=bv.type;this.isDefaultPrevented=(bv.defaultPr document.attachEvent( "onreadystatechange", DOMConte
evented||bv.returnValue===false||bv.getPreventDefault&&bv.getPreventDefault ntLoaded );
())?i:bk}else{this.type=bv}if(e){b.extend(this,e)}this.timeStamp=bv&&bv.tim
eStamp||b.now();this[b.expando]=true};function bk(){return false}function i // A fallback to window.onload, that will always wor
(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultP k
revented=i;var bv=this.originalEvent;if(!bv){return}if(bv.preventDefault){b window.attachEvent( "onload", jQuery.ready );
v.preventDefault()}else{bv.returnValue=false}},stopPropagation:function(){t
his.isPropagationStopped=i;var bv=this.originalEvent;if(!bv){return}if(bv.s // If IE and not a frame
topPropagation){bv.stopPropagation()}bv.cancelBubble=true},stopImmediatePro // continually check to see if the document is ready
pagation:function(){this.isImmediatePropagationStopped=i;this.stopPropagati var toplevel = false;
on()},isDefaultPrevented:bk,isPropagationStopped:bk,isImmediatePropagationS
topped:bk};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b try {
v,e){b.event.special[bv]={delegateType:e,bindType:e,handle:function(bz){var toplevel = window.frameElement == null;
bB=this,bA=bz.relatedTarget,by=bz.handleObj,bw=by.selector,bx;if(!bA||(bA! } catch(e) {}
==bB&&!b.contains(bB,bA))){bz.type=by.origType;bx=by.handler.apply(this,arg
uments);bz.type=e}return bx}}});if(!b.support.submitBubbles){b.event.specia if ( document.documentElement.doScroll && toplevel )
l.submit={setup:function(){if(b.nodeName(this,"form")){return false}b.event {
.add(this,"click._submit keypress._submit",function(bx){var bw=bx.target,bv doScrollCheck();
=b.nodeName(bw,"input")||b.nodeName(bw,"button")?bw.form:L;if(bv&&!bv._subm }
it_attached){b.event.add(bv,"submit._submit",function(e){if(this.parentNode }
&&!e.isTrigger){b.event.simulate("submit",this.parentNode,e,true)}});bv._su },
bmit_attached=true}})},teardown:function(){if(b.nodeName(this,"form")){retu
rn false}b.event.remove(this,"._submit")}}}if(!b.support.changeBubbles){b.e // See test/unit/core.js for details concerning isFunction.
vent.special.change={setup:function(){if(bd.test(this.nodeName)){if(this.ty // Since version 1.3, DOM methods and functions like alert
pe==="checkbox"||this.type==="radio"){b.event.add(this,"propertychange._cha // aren't supported. They return false on IE (#2968).
nge",function(e){if(e.originalEvent.propertyName==="checked"){this._just_ch isFunction: function( obj ) {
anged=true}});b.event.add(this,"click._change",function(e){if(this._just_ch return jQuery.type(obj) === "function";
anged&&!e.isTrigger){this._just_changed=false;b.event.simulate("change",thi },
s,e,true)}})}return false}b.event.add(this,"beforeactivate._change",functio
n(bw){var bv=bw.target;if(bd.test(bv.nodeName)&&!bv._change_attached){b.eve isArray: Array.isArray || function( obj ) {
nt.add(bv,"change._change",function(e){if(this.parentNode&&!e.isSimulated&& return jQuery.type(obj) === "array";
!e.isTrigger){b.event.simulate("change",this.parentNode,e,true)}});bv._chan },
ge_attached=true}})},handle:function(bv){var e=bv.target;if(this!==e||bv.is
Simulated||bv.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return bv // A crude way of determining if an object is a window
.handleObj.handler.apply(this,arguments)}},teardown:function(){b.event.remo isWindow: function( obj ) {
ve(this,"._change");return bd.test(this.nodeName)}}}if(!b.support.focusinBu return obj && typeof obj === "object" && "setInterval" in ob
bbles){b.each({focus:"focusin",blur:"focusout"},function(bx,e){var bv=0,bw= j;
function(by){b.event.simulate(e,by.target,b.event.fix(by),true)};b.event.sp },
ecial[e]={setup:function(){if(bv++===0){av.addEventListener(bx,bw,true)}},t
eardown:function(){if(--bv===0){av.removeEventListener(bx,bw,true)}}}})}b.f isNumeric: function( obj ) {
n.extend({on:function(bw,e,bz,by,bv){var bA,bx;if(typeof bw==="object"){if( return !isNaN( parseFloat(obj) ) && isFinite( obj );
typeof e!=="string"){bz=e;e=L}for(bx in bw){this.on(bx,e,bz,bw[bx],bv)}retu },
rn this}if(bz==null&&by==null){by=e;bz=e=L}else{if(by==null){if(typeof e===
"string"){by=bz;bz=L}else{by=bz;bz=e;e=L}}}if(by===false){by=bk}else{if(!by type: function( obj ) {
){return this}}if(bv===1){bA=by;by=function(bB){b().off(bB);return bA.apply return obj == null ?
(this,arguments)};by.guid=bA.guid||(bA.guid=b.guid++)}return this.each(func String( obj ) :
tion(){b.event.add(this,bw,by,bz,e)})},one:function(bv,e,bx,bw){return this class2type[ toString.call(obj) ] || "object";
.on.call(this,bv,e,bx,bw,1)},off:function(bw,e,by){if(bw&&bw.preventDefault },
&&bw.handleObj){var bv=bw.handleObj;b(bw.delegateTarget).off(bv.namespace?b
v.type+"."+bv.namespace:bv.type,bv.selector,bv.handler);return this}if(type isPlainObject: function( obj ) {
of bw==="object"){for(var bx in bw){this.off(bx,e,bw[bx])}return this}if(e= // Must be an Object.
==false||typeof e==="function"){by=e;e=L}if(by===false){by=bk}return this.e // Because of IE, we also have to check the presence of the
ach(function(){b.event.remove(this,bw,by,e)})},bind:function(e,bw,bv){retur constructor property.
n this.on(e,null,bw,bv)},unbind:function(e,bv){return this.off(e,null,bv)}, // Make sure that DOM nodes and window objects don't pass th
live:function(e,bw,bv){b(this.context).on(e,this.selector,bw,bv);return thi rough, as well
s},die:function(e,bv){b(this.context).off(e,this.selector||"**",bv);return if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType |
this},delegate:function(e,bv,bx,bw){return this.on(bv,e,bx,bw)},undelegate: | jQuery.isWindow( obj ) ) {
function(e,bv,bw){return arguments.length==1?this.off(e,"**"):this.off(bv,e return false;
,bw)},trigger:function(e,bv){return this.each(function(){b.event.trigger(e, }
bv,this)})},triggerHandler:function(e,bv){if(this[0]){return b.event.trigge
r(e,bv,this[0],true)}},toggle:function(bx){var bv=arguments,e=bx.guid||b.gu try {
id++,bw=0,by=function(bz){var bA=(b._data(this,"lastToggle"+bx.guid)||0)%bw // Not own constructor property must be Object
;b._data(this,"lastToggle"+bx.guid,bA+1);bz.preventDefault();return bv[bA]. if ( obj.constructor &&
apply(this,arguments)||false};by.guid=e;while(bw<bv.length){bv[bw++].guid=e !hasOwn.call(obj, "constructor") &&
}return this.click(by)},hover:function(e,bv){return this.mouseenter(e).mous !hasOwn.call(obj.constructor.prototype, "isP
eleave(bv||e)}});b.each(("blur focus focusin focusout load resize scroll un rototypeOf") ) {
load click dblclick mousedown mouseup mousemove mouseover mouseout mouseent return false;
er mouseleave change select submit keydown keypress keyup error contextmenu }
").split(" "),function(bv,e){b.fn[e]=function(bx,bw){if(bw==null){bw=bx;bx= } catch ( e ) {
null}return arguments.length>0?this.on(e,null,bx,bw):this.trigger(e)};if(b. // IE8,9 Will throw exceptions on certain host objec
attrFn){b.attrFn[e]=true}if(aO.test(e)){b.event.fixHooks[e]=b.event.keyHook ts #9897
s}if(bf.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}}); return false;
/*! }
* Sizzle CSS Selector Engine
* Copyright 2011, The Dojo Foundation // Own properties are enumerated firstly, so to speed up,
* Released under the MIT, BSD, and GPL Licenses. // if last one is own, then all properties are own.
* More information: http://sizzlejs.com/
*/ var key;
(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^ for ( key in obj ) {}
'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)
/g,bC="sizcache"+(Math.random()+"").replace(".",""),bI=0,bL=Object.prototyp return key === undefined || hasOwn.call( obj, key );
e.toString,bB=false,bA=true,bK=/\\/g,bO=/\r\n/g,bQ=/\W/;[0,0].sort(function },
(){bA=false;return 0});var by=function(bV,e,bY,bZ){bY=bY||[];e=e||av;var b1
=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string" isEmptyObject: function( obj ) {
){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=by.isXML(e),bW=[],b0=bV; for ( var name in obj ) {
do{bH.exec("");bS=bH.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=b return false;
S[3];break}}}while(bS);if(bW.length>1&&bD.exec(bV)){if(bW.length===2&&bE.re }
lative[bW[0]]){b3=bM(bW[0]+bW[1],e,bZ)}else{b3=bE.relative[bW[0]]?[e]:by(bW return true;
.shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift },
()}b3=bM(bV,b3,bZ)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bE.matc
h.ID.test(bW[0])&&!bE.match.ID.test(bW[bW.length-1])){b2=by.find(bW.shift() error: function( msg ) {
,e,bT);e=b2.expr?by.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:b throw new Error( msg );
W.pop(),set:bF(bZ)}:by.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]===" },
+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?by.filter(b2.expr,b2.set):b
2.set;if(bW.length>0){b6=bF(b3)}else{bU=false}while(bW.length){b5=bW.pop(); parseJSON: function( data ) {
b4=b5;if(!bE.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bE.rela if ( typeof data !== "string" || !data ) {
tive[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){by.error(b5||bV)}i return null;
f(bL.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e }
.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX
].nodeType===1&&by.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[ // Make sure leading/trailing whitespace is removed (IE can'
bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bF t handle it)
(b6,bY)}if(bR){by(bR,b1,bY,bZ);by.uniqueSort(bY)}return bY};by.uniqueSort=f data = jQuery.trim( data );
unction(bR){if(bJ){bB=bA;bR.sort(bJ);if(bB){for(var e=1;e<bR.length;e++){if
(bR[e]===bR[e-1]){bR.splice(e--,1)}}}}return bR};by.matches=function(e,bR){ // Attempt to parse using the native JSON parser first
return by(e,null,null,bR)};by.matchesSelector=function(e,bR){return by(bR,n if ( window.JSON && window.JSON.parse ) {
ull,null,[e]).length>0};by.find=function(bX,e,bY){var bW,bS,bU,bT,bV,bR;if( return window.JSON.parse( data );
!bX){return[]}for(bS=0,bU=bE.order.length;bS<bU;bS++){bV=bE.order[bS];if((b }
T=bE.leftMatch[bV].exec(bX))){bR=bT[1];bT.splice(1,1);if(bR.substr(bR.lengt
h-1)!=="\\"){bT[1]=(bT[1]||"").replace(bK,"");bW=bE.find[bV](bT,e,bY);if(bW // Make sure the incoming data is actual JSON
!=null){bX=bX.replace(bE.match[bV],"");break}}}}if(!bW){bW=typeof e.getElem // Logic borrowed from http://json.org/json2.js
entsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bW,ex if ( rvalidchars.test( data.replace( rvalidescape, "@" )
pr:bX}};by.filter=function(b1,b0,b4,bU){var bW,e,bZ,b6,b3,bR,bT,bV,b2,bS=b1 .replace( rvalidtokens, "]" )
,b5=[],bY=b0,bX=b0&&b0[0]&&by.isXML(b0[0]);while(b1&&b0.length){for(bZ in b .replace( rvalidbraces, "")) ) {
E.filter){if((bW=bE.leftMatch[bZ].exec(b1))!=null&&bW[2]){bR=bE.filter[bZ];
bT=bW[1];e=false;bW.splice(1,1);if(bT.substr(bT.length-1)==="\\"){continue} return ( new Function( "return " + data ) )();
if(bY===b5){b5=[]}if(bE.preFilter[bZ]){bW=bE.preFilter[bZ](bW,bY,b4,b5,bU,b
X);if(!bW){e=b6=true}else{if(bW===true){continue}}}if(bW){for(bV=0;(b3=bY[b }
V])!=null;bV++){if(b3){b6=bR(b3,bW,bV,bY);b2=bU^b6;if(b4&&b6!=null){if(b2){ jQuery.error( "Invalid JSON: " + data );
e=true}else{bY[bV]=false}}else{if(b2){b5.push(b3);e=true}}}}}if(b6!==L){if( },
!b4){bY=b5}b1=b1.replace(bE.match[bZ],"");if(!e){return[]}break}}}if(b1===b
S){if(e==null){by.error(b1)}else{break}}bS=b1}return bY};by.error=function( // Cross-browser xml parsing
e){throw new Error("Syntax error, unrecognized expression: "+e)};var bw=by. parseXML: function( data ) {
getText=function(bU){var bS,bT,e=bU.nodeType,bR="";if(e){if(e===1||e===9){i var xml, tmp;
f(typeof bU.textContent==="string"){return bU.textContent}else{if(typeof bU try {
.innerText==="string"){return bU.innerText.replace(bO,"")}else{for(bU=bU.fi if ( window.DOMParser ) { // Standard
rstChild;bU;bU=bU.nextSibling){bR+=bw(bU)}}}}else{if(e===3||e===4){return b tmp = new DOMParser();
U.nodeValue}}}else{for(bS=0;(bT=bU[bS]);bS++){if(bT.nodeType!==8){bR+=bw(bT xml = tmp.parseFromString( data , "text/xml"
)}}}return bR};var bE=by.selectors={order:["ID","NAME","TAG"],match:{ID:/#( );
(?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAM } else { // IE
E:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u0 xml = new ActiveXObject( "Microsoft.XMLDOM"
0c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\ );
-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|n xml.async = "false";
th|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\ xml.loadXML( data );
-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))? }
(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)] } catch( e ) {
+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"ht xml = undefined;
mlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:fu }
nction(e){return e.getAttribute("type")}},relative:{"+":function(bW,bR){var if ( !xml || !xml.documentElement || xml.getElementsByTagNam
bT=typeof bR==="string",bV=bT&&!bQ.test(bR),bX=bT&&!bV;if(bV){bR=bR.toLowe e( "parsererror" ).length ) {
rCase()}for(var bS=0,e=bW.length,bU;bS<e;bS++){if((bU=bW[bS])){while((bU=bU jQuery.error( "Invalid XML: " + data );
.previousSibling)&&bU.nodeType!==1){}bW[bS]=bX||bU&&bU.nodeName.toLowerCase }
()===bR?bU||false:bU===bR}}if(bX){by.filter(bR,bW,true)}},">":function(bW,b return xml;
R){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR= },
bR.toLowerCase();for(;bS<e;bS++){bV=bW[bS];if(bV){var bT=bV.parentNode;bW[b
S]=bT.nodeName.toLowerCase()===bR?bT:false}}}else{for(;bS<e;bS++){bV=bW[bS] noop: function() {},
;if(bV){bW[bS]=bU?bV.parentNode:bV.parentNode===bR}}if(bU){by.filter(bR,bW,
true)}}},"":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"& // Evaluates a script in a global context
&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("parentNode",bR,bS,bT,bU,bV // Workarounds based on findings by Jim Driscoll
)},"~":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"&&!bQ. // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-jav
test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("previousSibling",bR,bS,bT,bU,bV ascript-global-context
)}},find:{ID:function(bR,bS,bT){if(typeof bS.getElementById!=="undefined"&& globalEval: function( data ) {
!bT){var e=bS.getElementById(bR[1]);return e&&e.parentNode?[e]:[]}},NAME:fu if ( data && rnotwhite.test( data ) ) {
nction(bS,bV){if(typeof bV.getElementsByName!=="undefined"){var bR=[],bU=bV // We use execScript on Internet Explorer
.getElementsByName(bS[1]);for(var bT=0,e=bU.length;bT<e;bT++){if(bU[bT].get // We use an anonymous function so that context is w
Attribute("name")===bS[1]){bR.push(bU[bT])}}return bR.length===0?null:bR}}, indow
TAG:function(e,bR){if(typeof bR.getElementsByTagName!=="undefined"){return // rather than jQuery in Firefox
bR.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bT,bR,bS,e,bW,bX ( window.execScript || function( data ) {
){bT=" "+bT[1].replace(bK,"")+" ";if(bX){return bT}for(var bU=0,bV;(bV=bR[b window[ "eval" ].call( window, data );
U])!=null;bU++){if(bV){if(bW^(bV.className&&(" "+bV.className+" ").replace( } )( data );
/[\t\n\r]/g," ").indexOf(bT)>=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=fa }
lse}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:functio },
n(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1
]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR // Convert dashed to camelCase; used by the css and data modules
=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1 // Microsoft forgot to hump their vendor prefix (#9572)
"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3] camelCase: function( string ) {
-0}else{if(e[2]){by.error(e[0])}}e[0]=bI++;return e},ATTR:function(bU,bR,bS return string.replace( rmsPrefix, "ms-" ).replace( rdashAlph
,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bE.attrMap[bT]){bU[1]=b a, fcamelCase );
E.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4 },
]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not")
{if((bH.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=by(bU[3],null,n nodeName: function( elem, name ) {
ull,bR)}else{var bT=by.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,b return elem.nodeName && elem.nodeName.toUpperCase() === name
T)}return false}}else{if(bE.match.POS.test(bU[0])||bE.match.CHILD.test(bU[0 .toUpperCase();
])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filt },
ers:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disa
bled:function(e){return e.disabled===true},checked:function(e){return e.che // args is for internal usage only
cked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedInd each: function( object, callback, args ) {
ex}return e.selected===true},parent:function(e){return !!e.firstChild},empt var name, i = 0,
y:function(e){return !e.firstChild},has:function(bS,bR,e){return !!by(e[3], length = object.length,
bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:functi isObj = length === undefined || jQuery.isFunction( o
on(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerC bject );
ase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return
e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){ if ( args ) {
return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:functi if ( isObj ) {
on(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password: for ( name in object ) {
function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type} if ( callback.apply( object[ name ],
,submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e= args ) === false ) {
=="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowe break;
rCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.t }
oLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:f }
unction(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"=== } else {
bR.type||e==="button"},input:function(e){return(/input|select|textarea|butt for ( ; i < length; ) {
on/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.active if ( callback.apply( object[ i++ ],
Element}},setFilters:{first:function(bR,e){return e===0},last:function(bS,b args ) === false ) {
R,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:fu break;
nction(bR,e){return e%2===1},lt:function(bS,bR,e){return bR<e[3]-0},gt:func }
tion(bS,bR,e){return bR>e[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},e }
q:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,b }
Y){var e=bX[1],bR=bE.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="
contains"){return(bS.textContent||bS.innerText||bw([bS])||"").indexOf(bX[3] // A special, fast, case for the most common use of each
)>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV<bU;bV++){ } else {
if(bT[bV]===bS){return false}}return true}else{by.error(e)}}}},CHILD:functi if ( isObj ) {
on(bS,bU){var bT,b0,bW,bZ,e,bV,bY,bX=bU[1],bR=bS;switch(bX){case"only":case for ( name in object ) {
"first":while((bR=bR.previousSibling)){if(bR.nodeType===1){return false}}if if ( callback.call( object[ name ],
(bX==="first"){return true}bR=bS;case"last":while((bR=bR.nextSibling)){if(b name, object[ name ] ) === false ) {
R.nodeType===1){return false}}return true;case"nth":bT=bU[2];b0=bU[3];if(bT break;
===1&&b0===0){return true}bW=bU[0];bZ=bS.parentNode;if(bZ&&(bZ[bC]!==bW||!b }
S.nodeIndex)){bV=0;for(bR=bZ.firstChild;bR;bR=bR.nextSibling){if(bR.nodeTyp }
e===1){bR.nodeIndex=++bV}}bZ[bC]=bW}bY=bS.nodeIndex-b0;if(bT===0){return bY } else {
===0}else{return(bY%bT===0&&bY/bT>=0)}}},ID:function(bR,e){return bR.nodeTy for ( ; i < length; ) {
pe===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.no if ( callback.call( object[ i ], i,
deType===1)||!!bR.nodeName&&bR.nodeName.toLowerCase()===e},CLASS:function(b object[ i++ ] ) === false ) {
R,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1 break;
},ATTR:function(bV,bT){var bS=bT[1],e=by.attr?by.attr(bV,bS):bE.attrHandle[ }
bS]?bE.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",b }
U=bT[2],bR=bT[4];return e==null?bU==="!=":!bU&&by.attr?e!=null:bU==="="?bW= }
==bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR? }
bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.s
ubstr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1) return object;
===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bE.setFilters[e]; },
if(bT){return bT(bU,bS,bR,bV)}}}};var bD=bE.match.POS,bx=function(bR,e){ret
urn"\\"+(e-0+1)};for(var bz in bE.match){bE.match[bz]=new RegExp(bE.match[b // Use native String.trim function wherever possible
z].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bz]=new RegExp( trim: trim ?
/(^(?:.|\r|\n)*?)/.source+bE.match[bz].source.replace(/\\(\d+)/g,bx))}var b function( text ) {
F=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,b return text == null ?
R);return e}return bR};try{Array.prototype.slice.call(av.documentElement.ch "" :
ildNodes,0)[0].nodeType}catch(bP){bF=function(bU,bT){var bS=0,bR=bT||[];if( trim.call( text );
bL.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(t } :
ypeof bU.length==="number"){for(var e=bU.length;bS<e;bS++){bR.push(bU[bS])}
}else{for(;bU[bS];bS++){bR.push(bU[bS])}}}return bR}}var bJ,bG;if(av.docume // Otherwise use our own trimming functionality
ntElement.compareDocumentPosition){bJ=function(bR,e){if(bR===e){bB=true;ret function( text ) {
urn 0}if(!bR.compareDocumentPosition||!e.compareDocumentPosition){return bR return text == null ?
.compareDocumentPosition?-1:1}return bR.compareDocumentPosition(e)&4?-1:1}} "" :
else{bJ=function(bY,bX){if(bY===bX){bB=true;return 0}else{if(bY.sourceIndex text.toString().replace( trimLeft, "" ).repl
&&bX.sourceIndex){return bY.sourceIndex-bX.sourceIndex}}var bV,bR,bS=[],e=[ ace( trimRight, "" );
],bU=bY.parentNode,bW=bX.parentNode,bZ=bU;if(bU===bW){return bG(bY,bX)}else },
{if(!bU){return -1}else{if(!bW){return 1}}}while(bZ){bS.unshift(bZ);bZ=bZ.p
arentNode}bZ=bW;while(bZ){e.unshift(bZ);bZ=bZ.parentNode}bV=bS.length;bR=e. // results is for internal usage only
length;for(var bT=0;bT<bV&&bT<bR;bT++){if(bS[bT]!==e[bT]){return bG(bS[bT], makeArray: function( array, results ) {
e[bT])}}return bT===bV?bG(bY,e[bT],-1):bG(bS[bT],bX,1)};bG=function(bR,e,bS var ret = results || [];
){if(bR===e){return bS}var bT=bR.nextSibling;while(bT){if(bT===e){return -1
}bT=bT.nextSibling}return 1}}(function(){var bR=av.createElement("div"),bS= if ( array != null ) {
"script"+(new Date()).getTime(),e=av.documentElement;bR.innerHTML="<a name= // The window, strings (and functions) also have 'le
'"+bS+"'/>";e.insertBefore(bR,e.firstChild);if(av.getElementById(bS)){bE.fi ngth'
nd.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){va // Tweaked logic slightly to handle Blackberry 4.7 R
r bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttribu egExp issues #6930
teNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:L:[] var type = jQuery.type( array );
}};bE.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefi
ned"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue=== if ( array.length == null || type === "string" || ty
bT}}e.removeChild(bR);e=bR=null})();(function(){var e=av.createElement("div pe === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").lengt push.call( ret, array );
h>0){bE.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(b } else {
R[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT. jQuery.merge( ret, array );
push(bU[bS])}}bU=bT}return bU}}e.innerHTML="<a href='#'></a>";if(e.firstChi }
ld&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribu }
te("href")!=="#"){bE.attrHandle.href=function(bR){return bR.getAttribute("h
ref",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bT=av.crea return ret;
teElement("div"),bS="__sizzle__";bT.innerHTML="<p class='TEST'></p>";if(bT. },
querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}by=functi
on(b4,bV,bZ,b3){bV=bV||av;if(!b3&&!by.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-] inArray: function( elem, array, i ) {
+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2 var len;
[1]){return bF(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bE.find.CLASS
&&bV.getElementsByClassName){return bF(bV.getElementsByClassName(b2[2]),bZ) if ( array ) {
}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bF([bV.body],bZ)}els if ( indexOf ) {
e{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY return indexOf.call( array, elem, i );
.id===b2[3]){return bF([bY],bZ)}}else{return bF([],bZ)}}}try{return bF(bV.q }
uerySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.to
LowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV. len = array.length;
parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU= i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return
bF(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX) for ( ; i < len; i++ ) {
{bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){by[bR // Skip accessing in sparse arrays
]=e[bR]}bT=null})()}(function(){var e=av.documentElement,bS=e.matchesSelect if ( i in array && array[ i ] === elem ) {
or||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(b return i;
S){var bU=!bS.call(av.createElement("div"),"div"),bR=false;try{bS.call(av.d }
ocumentElement,"[test!='']:sizzle")}catch(bT){bR=true}by.matchesSelector=fu }
nction(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML( }
bW)){try{if(bR||!bE.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(b
W,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch return -1;
(bX){}}return by(bY,null,null,[bW]).length>0}}})();(function(){var e=av.cre },
ateElement("div");e.innerHTML="<div class='test e'></div><div class='test'>
</div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length= merge: function( first, second ) {
==0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").leng var i = first.length,
th===1){return}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bR,bS,bT j = 0;
){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElem
entsByClassName(bR[1])}};e=null})();function bv(bR,bW,bV,bZ,bX,bY){for(var if ( typeof second.length === "number" ) {
bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while for ( var l = second.length; j < l; j++ ) {
(e){if(e[bC]===bV){bU=bZ[e.sizset];break}if(e.nodeType===1&&!bY){e[bC]=bV;e first[ i++ ] = second[ j ];
.sizset=bT}if(e.nodeName.toLowerCase()===bW){bU=e;break}e=e[bR]}bZ[bT]=bU}} }
}function bN(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e
=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e[bC]===bV){bU=bZ[e.sizset]; } else {
break}if(e.nodeType===1){if(!bY){e[bC]=bV;e.sizset=bT}if(typeof bW!=="strin while ( second[j] !== undefined ) {
g"){if(e===bW){bU=true;break}}else{if(by.filter(bW,[e]).length>0){bU=e;brea first[ i++ ] = second[ j++ ];
k}}}e=e[bR]}bZ[bT]=bU}}}if(av.documentElement.contains){by.contains=functio }
n(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(av.docume }
ntElement.compareDocumentPosition){by.contains=function(bR,e){return !!(bR.
compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}} first.length = i;
by.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return
bR?bR.nodeName!=="HTML":false};var bM=function(bS,e,bW){var bV,bX=[],bU="" return first;
,bY=e.nodeType?[e]:e;while((bV=bE.match.PSEUDO.exec(bS))){bU+=bV[0];bS=bS.r },
eplace(bE.match.PSEUDO,"")}bS=bE.relative[bS]?bS+"*":bS;for(var bT=0,bR=bY.
length;bT<bR;bT++){by(bS,bY[bT],bX,bW)}return by.filter(bU,bX)};by.attr=b.a grep: function( elems, callback, inv ) {
ttr;by.selectors.attrMap={};b.find=by;b.expr=by.selectors;b.expr[":"]=b.exp var ret = [], retVal;
r.filters;b.unique=by.uniqueSort;b.text=by.getText;b.isXMLDoc=by.isXML;b.co inv = !!inv;
ntains=by.contains})();var ab=/Until$/,aq=/^(?:parents|prevUntil|prevAll)/,
a9=/,/,bp=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,H=b.expr.match.POS,ay={c // Go through the array, only saving the items
hildren:true,contents:true,next:true,prev:true};b.fn.extend({find:function( // that pass the validator function
e){var bw=this,by,bv;if(typeof e!=="string"){return b(e).filter(function(){ for ( var i = 0, length = elems.length; i < length; i++ ) {
for(by=0,bv=bw.length;by<bv;by++){if(b.contains(bw[by],this)){return true}} retVal = !!callback( elems[ i ], i );
})}var bx=this.pushStack("","find",e),bA,bB,bz;for(by=0,bv=this.length;by<b if ( inv !== retVal ) {
v;by++){bA=bx.length;b.find(e,this[by],bx);if(by>0){for(bB=bA;bB<bx.length; ret.push( elems[ i ] );
bB++){for(bz=0;bz<bA;bz++){if(bx[bz]===bx[bB]){bx.splice(bB--,1);break}}}}} }
return bx},has:function(bv){var e=b(bv);return this.filter(function(){for(v }
ar bx=0,bw=e.length;bx<bw;bx++){if(b.contains(this,e[bx])){return true}}})}
,not:function(e){return this.pushStack(aG(this,e,false),"not",e)},filter:fu return ret;
nction(e){return this.pushStack(aG(this,e,true),"filter",e)},is:function(e) },
{return !!e&&(typeof e==="string"?H.test(e)?b(e,this.context).index(this[0]
)>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(b // arg is for internal usage only
y,bx){var bv=[],bw,e,bz=this[0];if(b.isArray(by)){var bB=1;while(bz&&bz.own map: function( elems, callback, arg ) {
erDocument&&bz!==bx){for(bw=0;bw<by.length;bw++){if(b(bz).is(by[bw])){bv.pu var value, key, ret = [],
sh({selector:by[bw],elem:bz,level:bB})}}bz=bz.parentNode;bB++}return bv}var i = 0,
bA=H.test(by)||typeof by!=="string"?b(by,bx||this.context):0;for(bw=0,e=th length = elems.length,
is.length;bw<e;bw++){bz=this[bw];while(bz){if(bA?bA.index(bz)>-1:b.find.mat // jquery objects are treated as arrays
chesSelector(bz,by)){bv.push(bz);break}else{bz=bz.parentNode;if(!bz||!bz.ow isArray = elems instanceof jQuery || length !== unde
nerDocument||bz===bx||bz.nodeType===11){break}}}}bv=bv.length>1?b.unique(bv fined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elem
):bv;return this.pushStack(bv,"closest",by)},index:function(e){if(!e){retur s[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
n(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="stri
ng"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)} // Go through the array, translating each of the items to th
,add:function(e,bv){var bx=typeof e==="string"?b(e,bv):b.makeArray(e&&e.nod eir
eType?[e]:e),bw=b.merge(this.get(),bx);return this.pushStack(C(bx[0])||C(bw if ( isArray ) {
[0])?bw:b.unique(bw))},andSelf:function(){return this.add(this.prevObject)} for ( ; i < length; i++ ) {
});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.eac value = callback( elems[ i ], i, arg );
h({parent:function(bv){var e=bv.parentNode;return e&&e.nodeType!==11?e:null
},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(b if ( value != null ) {
v,e,bw){return b.dir(bv,"parentNode",bw)},next:function(e){return b.nth(e,2 ret[ ret.length ] = value;
,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},next }
All:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b }
.dir(e,"previousSibling")},nextUntil:function(bv,e,bw){return b.dir(bv,"nex
tSibling",bw)},prevUntil:function(bv,e,bw){return b.dir(bv,"previousSibling // Go through every key on the object,
",bw)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},ch } else {
ildren:function(e){return b.sibling(e.firstChild)},contents:function(e){ret for ( key in elems ) {
urn b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.ma value = callback( elems[ key ], key, arg );
keArray(e.childNodes)}},function(e,bv){b.fn[e]=function(by,bw){var bx=b.map
(this,bv,by);if(!ab.test(e)){bw=by}if(bw&&typeof bw==="string"){bx=b.filter if ( value != null ) {
(bw,bx)}bx=this.length>1&&!ay[e]?b.unique(bx):bx;if((this.length>1||a9.test ret[ ret.length ] = value;
(bw))&&aq.test(e)){bx=bx.reverse()}return this.pushStack(bx,e,P.call(argume }
nts).join(","))}});b.extend({filter:function(bw,e,bv){if(bv){bw=":not("+bw+ }
")"}return e.length===1?b.find.matchesSelector(e[0],bw)?[e[0]]:[]:b.find.ma }
tches(bw,e)},dir:function(bw,bv,by){var e=[],bx=bw[bv];while(bx&&bx.nodeTyp
e!==9&&(by===L||bx.nodeType!==1||!b(bx).is(by))){if(bx.nodeType===1){e.push // Flatten any nested arrays
(bx)}bx=bx[bv]}return e},nth:function(by,e,bw,bx){e=e||1;var bv=0;for(;by;b return ret.concat.apply( [], ret );
y=by[bw]){if(by.nodeType===1&&++bv===e){break}}return by},sibling:function( },
bw,bv){var e=[];for(;bw;bw=bw.nextSibling){if(bw.nodeType===1&&bw!==bv){e.p
ush(bw)}}return e}});function aG(bx,bw,e){bw=bw||0;if(b.isFunction(bw)){ret // A global GUID counter for objects
urn b.grep(bx,function(bz,by){var bA=!!bw.call(bz,by,bz);return bA===e})}el guid: 1,
se{if(bw.nodeType){return b.grep(bx,function(bz,by){return(bz===bw)===e})}e
lse{if(typeof bw==="string"){var bv=b.grep(bx,function(by){return by.nodeTy // Bind a function to a context, optionally partially applying any
pe===1});if(bp.test(bw)){return b.filter(bw,bv,!e)}else{bw=b.filter(bw,bv)} // arguments.
}}}return b.grep(bx,function(bz,by){return(b.inArray(bz,bw)>=0)===e})}funct proxy: function( fn, context ) {
ion a(e){var bw=aR.split("|"),bv=e.createDocumentFragment();if(bv.createEle if ( typeof context === "string" ) {
ment){while(bw.length){bv.createElement(bw.pop())}}return bv}var aR="abbr|a var tmp = fn[ context ];
rticle|aside|audio|canvas|datalist|details|figcaption|figure|footer|header| context = fn;
hgroup|mark|meter|nav|output|progress|section|summary|time|video",ag=/ jQue fn = tmp;
ry\d+="(?:\d+|null)"/g,ar=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link }
|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/<tbody/i,W=/<|&#?\w+;/,a
e=/<(?:script|style)/i,O=/<(?:script|object|embed|option|style)/i,ah=new Re // Quick check to determine if target is callable, in the sp
gExp("<(?:"+aR+")","i"),o=/checked\s*(?:[^=]|=\s*.checked.)/i,bm=/\/(java|e ec
cma)script/i,aN=/^\s*<!(?:\[CDATA\[|\-\-)/,ax={option:[1,"<select multiple= // this throws a TypeError, but we will just return undefine
'multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"< d.
table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<tabl if ( !jQuery.isFunction( fn ) ) {
e><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colg return undefined;
roup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]} }
,ac=a(av);ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax
.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div<div>"," // Simulated bind
</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each var args = slice.call( arguments, 2 ),
(function(bw){var bv=b(this);bv.text(e.call(this,bw,bv.text()))})}if(typeof proxy = function() {
e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDoc return fn.apply( context, args.concat( slice
ument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b .call( arguments ) ) );
.isFunction(e)){return this.each(function(bw){b(this).wrapAll(e.call(this,b };
w))})}if(this[0]){var bv=b(e,this[0].ownerDocument).eq(0).clone(true);if(th
is[0].parentNode){bv.insertBefore(this[0])}bv.map(function(){var bw=this;wh // Set the guid of unique handler to the same of original ha
ile(bw.firstChild&&bw.firstChild.nodeType===1){bw=bw.firstChild}return bw}) ndler, so it can be removed
.append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid+
this.each(function(bv){b(this).wrapInner(e.call(this,bv))})}return this.ea +;
ch(function(){var bv=b(this),bw=bv.contents();if(bw.length){bw.wrapAll(e)}e
lse{bv.append(e)}})},wrap:function(e){var bv=b.isFunction(e);return this.ea return proxy;
ch(function(bw){b(this).wrapAll(bv?e.call(this,bw):e)})},unwrap:function(){ },
return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).r
eplaceWith(this.childNodes)}}).end()},append:function(){return this.domMani // Mutifunctional method to get and set values to a collection
p(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})}, // The value/s can optionally be executed if it's a function
prepend:function(){return this.domManip(arguments,true,function(e){if(this. access: function( elems, key, value, exec, fn, pass ) {
nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if var length = elems.length;
(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function
(bv){this.parentNode.insertBefore(bv,this)})}else{if(arguments.length){var // Setting many attributes
e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e if ( typeof key === "object" ) {
,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){re for ( var k in key ) {
turn this.domManip(arguments,false,function(bv){this.parentNode.insertBefor jQuery.access( elems, k, key[k], exec, fn, v
e(bv,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(thi alue );
s,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove: }
function(e,bx){for(var bv=0,bw;(bw=this[bv])!=null;bv++){if(!e||b.filter(e, return elems;
[bw]).length){if(!bx&&bw.nodeType===1){b.cleanData(bw.getElementsByTagName( }
"*"));b.cleanData([bw])}if(bw.parentNode){bw.parentNode.removeChild(bw)}}}r
eturn this},empty:function(){for(var e=0,bv;(bv=this[e])!=null;e++){if(bv.n // Setting one attribute
odeType===1){b.cleanData(bv.getElementsByTagName("*"))}while(bv.firstChild) if ( value !== undefined ) {
{bv.removeChild(bv.firstChild)}}return this},clone:function(bv,e){bv=bv==nu // Optionally, function values get executed if exec
ll?false:bv;e=e==null?bv:e;return this.map(function(){return b.clone(this,b is true
v,e)})},html:function(bx){if(bx===L){return this[0]&&this[0].nodeType===1?t exec = !pass && exec && jQuery.isFunction(value);
his[0].innerHTML.replace(ag,""):null}else{if(typeof bx==="string"&&!ae.test
(bx)&&(b.support.leadingWhitespace||!ar.test(bx))&&!ax[(d.exec(bx)||["",""] for ( var i = 0; i < length; i++ ) {
)[1].toLowerCase()]){bx=bx.replace(R,"<$1></$2>");try{for(var bw=0,bv=this. fn( elems[i], key, exec ? value.call( elems[
length;bw<bv;bw++){if(this[bw].nodeType===1){b.cleanData(this[bw].getElemen i], i, fn( elems[i], key ) ) : value, pass );
tsByTagName("*"));this[bw].innerHTML=bx}}}catch(by){this.empty().append(bx) }
}}else{if(b.isFunction(bx)){this.each(function(bz){var e=b(this);e.html(bx.
call(this,bz,e.html()))})}else{this.empty().append(bx)}}}return this},repla return elems;
ceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){retu }
rn this.each(function(bx){var bw=b(this),bv=bw.html();bw.replaceWith(e.call
(this,bx,bv))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(fu // Getting an attribute
nction(){var bw=this.nextSibling,bv=this.parentNode;b(this).remove();if(bw) return length ? fn( elems[0], key ) : undefined;
{b(bw).before(e)}else{b(bv).append(e)}})}else{return this.length?this.pushS },
tack(b(b.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){re
turn this.remove(e,true)},domManip:function(bB,bF,bE){var bx,by,bA,bD,bC=bB now: function() {
[0],bv=[];if(!b.support.checkClone&&arguments.length===3&&typeof bC==="stri return ( new Date() ).getTime();
ng"&&o.test(bC)){return this.each(function(){b(this).domManip(bB,bF,bE,true },
)})}if(b.isFunction(bC)){return this.each(function(bH){var bG=b(this);bB[0]
=bC.call(this,bH,bF?bG.html():L);bG.domManip(bB,bF,bE)})}if(this[0]){bD=bC& // Use of jQuery.browser is frowned upon.
&bC.parentNode;if(b.support.parentNode&&bD&&bD.nodeType===11&&bD.childNodes // More details: http://docs.jquery.com/Utilities/jQuery.browser
.length===this.length){bx={fragment:bD}}else{bx=b.buildFragment(bB,this,bv) uaMatch: function( ua ) {
}bA=bx.fragment;if(bA.childNodes.length===1){by=bA=bA.firstChild}else{by=bA ua = ua.toLowerCase();
.firstChild}if(by){bF=bF&&b.nodeName(by,"tr");for(var bw=0,e=this.length,bz
=e-1;bw<e;bw++){bE.call(bF?ba(this[bw],by):this[bw],bx.cacheable||(e>1&&bw< var match = rwebkit.exec( ua ) ||
bz)?b.clone(bA,true,true):bA)}}if(bv.length){b.each(bv,bo)}}return this}}); ropera.exec( ua ) ||
function ba(e,bv){return b.nodeName(e,"table")?(e.getElementsByTagName("tbo rmsie.exec( ua ) ||
dy")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function ua.indexOf("compatible") < 0 && rmozilla.exec( ua )
t(bB,bv){if(bv.nodeType!==1||!b.hasData(bB)){return}var by,bx,e,bA=b._data( ||
bB),bz=b._data(bv,bA),bw=bA.events;if(bw){delete bz.handle;bz.events={};for [];
(by in bw){for(bx=0,e=bw[by].length;bx<e;bx++){b.event.add(bv,by+(bw[by][bx
].namespace?".":"")+bw[by][bx].namespace,bw[by][bx],bw[by][bx].data)}}}if(b return { browser: match[1] || "", version: match[2] || "0" }
z.data){bz.data=b.extend({},bz.data)}}function ai(bv,e){var bw;if(e.nodeTyp ;
e!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttribute },
s){e.mergeAttributes(bv)}bw=e.nodeName.toLowerCase();if(bw==="object"){e.ou
terHTML=bv.outerHTML}else{if(bw==="input"&&(bv.type==="checkbox"||bv.type== sub: function() {
="radio")){if(bv.checked){e.defaultChecked=e.checked=bv.checked}if(e.value! function jQuerySub( selector, context ) {
==bv.value){e.value=bv.value}}else{if(bw==="option"){e.selected=bv.defaultS return new jQuerySub.fn.init( selector, context );
elected}else{if(bw==="input"||bw==="textarea"){e.defaultValue=bv.defaultVal }
ue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bz,bx,bv){var b jQuery.extend( true, jQuerySub, this );
y,e,bw,bA,bB=bz[0];if(bx&&bx[0]){bA=bx[0].ownerDocument||bx[0]}if(!bA.creat jQuerySub.superclass = this;
eDocumentFragment){bA=av}if(bz.length===1&&typeof bB==="string"&&bB.length< jQuerySub.fn = jQuerySub.prototype = this();
512&&bA===av&&bB.charAt(0)==="<"&&!O.test(bB)&&(b.support.checkClone||!o.te jQuerySub.fn.constructor = jQuerySub;
st(bB))&&(b.support.html5Clone||!ah.test(bB))){e=true;bw=b.fragments[bB];if jQuerySub.sub = this.sub;
(bw&&bw!==1){by=bw}}if(!by){by=bA.createDocumentFragment();b.clean(bz,bA,by jQuerySub.fn.init = function init( selector, context ) {
,bv)}if(e){b.fragments[bB]=bw?by:1}return{fragment:by,cacheable:e}};b.fragm if ( context && context instanceof jQuery && !(conte
ents={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before" xt instanceof jQuerySub) ) {
,insertAfter:"after",replaceAll:"replaceWith"},function(e,bv){b.fn[e]=funct context = jQuerySub( context );
ion(bw){var bz=[],bC=b(bw),bB=this.length===1&&this[0].parentNode;if(bB&&bB }
.nodeType===11&&bB.childNodes.length===1&&bC.length===1){bC[bv](this[0]);re
turn this}else{for(var bA=0,bx=bC.length;bA<bx;bA++){var by=(bA>0?this.clon return jQuery.fn.init.call( this, selector, context,
e(true):this).get();b(bC[bA])[bv](by);bz=bz.concat(by)}return this.pushStac rootjQuerySub );
k(bz,e,bC.selector)}}});function bg(e){if(typeof e.getElementsByTagName!==" };
undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelect jQuerySub.fn.init.prototype = jQuerySub.fn;
orAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}functio var rootjQuerySub = jQuerySub(document);
n az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checke return jQuerySub;
d}}function E(e){var bv=(e.nodeName||"").toLowerCase();if(bv==="input"){az( },
e)}else{if(bv!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.gr
ep(e.getElementsByTagName("input"),az)}}}function al(e){var bv=av.createEle browser: {}
ment("div");ac.appendChild(bv);bv.innerHTML=e.outerHTML;return bv.firstChil });
d}b.extend({clone:function(by,bA,bw){var e,bv,bx,bz=b.support.html5Clone||!
ah.test("<"+by.nodeName)?by.cloneNode(true):al(by);if((!b.support.noCloneEv // Populate the class2type map
ent||!b.support.noCloneChecked)&&(by.nodeType===1||by.nodeType===11)&&!b.is jQuery.each("Boolean Number String Function Array Date RegExp Object".split
XMLDoc(by)){ai(by,bz);e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){if(bv[bx]){ai (" "), function(i, name) {
(e[bx],bv[bx])}}}if(bA){t(by,bz);if(bw){e=bg(by);bv=bg(bz);for(bx=0;e[bx];+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
+bx){t(e[bx],bv[bx])}}}e=bv=null;return bz},clean:function(bw,by,bH,bA){var });
bF;by=by||av;if(typeof by.createElement==="undefined"){by=by.ownerDocument
||by[0]&&by[0].ownerDocument||av}var bI=[],bB;for(var bE=0,bz;(bz=bw[bE])!= browserMatch = jQuery.uaMatch( userAgent );
null;bE++){if(typeof bz==="number"){bz+=""}if(!bz){continue}if(typeof bz=== if ( browserMatch.browser ) {
"string"){if(!W.test(bz)){bz=by.createTextNode(bz)}else{bz=bz.replace(R,"<$ jQuery.browser[ browserMatch.browser ] = true;
1></$2>");var bK=(d.exec(bz)||["",""])[1].toLowerCase(),bx=ax[bK]||ax._defa jQuery.browser.version = browserMatch.version;
ult,bD=bx[0],bv=by.createElement("div");if(by===av){ac.appendChild(bv)}else }
{a(by).appendChild(bv)}bv.innerHTML=bx[1]+bz+bx[2];while(bD--){bv=bv.lastCh
ild}if(!b.support.tbody){var e=w.test(bz),bC=bK==="table"&&!e?bv.firstChild // Deprecated, use jQuery.browser.webkit instead
&&bv.firstChild.childNodes:bx[1]==="<table>"&&!e?bv.childNodes:[];for(bB=bC if ( jQuery.browser.webkit ) {
.length-1;bB>=0;--bB){if(b.nodeName(bC[bB],"tbody")&&!bC[bB].childNodes.len jQuery.browser.safari = true;
gth){bC[bB].parentNode.removeChild(bC[bB])}}}if(!b.support.leadingWhitespac }
e&&ar.test(bz)){bv.insertBefore(by.createTextNode(ar.exec(bz)[0]),bv.firstC
hild)}bz=bv.childNodes}}var bG;if(!b.support.appendChecked){if(bz[0]&&typeo // IE doesn't match non-breaking spaces with \s
f(bG=bz.length)==="number"){for(bB=0;bB<bG;bB++){E(bz[bB])}}else{E(bz)}}if( if ( rnotwhite.test( "\xA0" ) ) {
bz.nodeType){bI.push(bz)}else{bI=b.merge(bI,bz)}}if(bH){bF=function(bL){ret trimLeft = /^[\s\xA0]+/;
urn !bL.type||bm.test(bL.type)};for(bE=0;bI[bE];bE++){if(bA&&b.nodeName(bI[ trimRight = /[\s\xA0]+$/;
bE],"script")&&(!bI[bE].type||bI[bE].type.toLowerCase()==="text/javascript" }
)){bA.push(bI[bE].parentNode?bI[bE].parentNode.removeChild(bI[bE]):bI[bE])}
else{if(bI[bE].nodeType===1){var bJ=b.grep(bI[bE].getElementsByTagName("scr // All jQuery objects should point back to these
ipt"),bF);bI.splice.apply(bI,[bE+1,0].concat(bJ))}bH.appendChild(bI[bE])}}} rootjQuery = jQuery(document);
return bI},cleanData:function(bv){var by,bw,e=b.cache,bB=b.event.special,bA
=b.support.deleteExpando;for(var bz=0,bx;(bx=bv[bz])!=null;bz++){if(bx.node // Cleanup functions for the document ready method
Name&&b.noData[bx.nodeName.toLowerCase()]){continue}bw=bx[b.expando];if(bw) if ( document.addEventListener ) {
{by=e[bw];if(by&&by.events){for(var bC in by.events){if(bB[bC]){b.event.rem DOMContentLoaded = function() {
ove(bx,bC)}else{b.removeEvent(bx,bC,by.handle)}}if(by.handle){by.handle.ele document.removeEventListener( "DOMContentLoaded", DOMContent
m=null}}if(bA){delete bx[b.expando]}else{if(bx.removeAttribute){bx.removeAt Loaded, false );
tribute(b.expando)}}delete e[bw]}}}});function bo(e,bv){if(bv.src){b.ajax({ jQuery.ready();
url:bv.src,async:false,dataType:"script"})}else{b.globalEval((bv.text||bv.t };
extContent||bv.innerHTML||"").replace(aN,"/*$0*/"))}if(bv.parentNode){bv.pa
rentNode.removeChild(bv)}}var ak=/alpha\([^)]*\)/i,au=/opacity=([^)]*)/,z=/ } else if ( document.attachEvent ) {
([A-Z]|^ms)/g,bc=/^-?\d+(?:px)?$/i,bn=/^-?\d/,I=/^([\-+])=([\-+.\de]+)/,a7= DOMContentLoaded = function() {
{position:"absolute",visibility:"hidden",display:"block"},an=["Left","Right // Make sure body exists, at least, in case IE gets a little
"],a1=["Top","Bottom"],Z,aI,aX;b.fn.css=function(e,bv){if(arguments.length= overzealous (ticket #5443).
==2&&bv===L){return this}return b.access(this,e,bv,true,function(bx,bw,by){ if ( document.readyState === "complete" ) {
return by!==L?b.style(bx,bw,by):b.css(bx,bw)})};b.extend({cssHooks:{opacity document.detachEvent( "onreadystatechange", DOMConte
:{get:function(bw,bv){if(bv){var e=Z(bw,"opacity","opacity");return e===""? ntLoaded );
"1":e}else{return bw.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeig jQuery.ready();
ht:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,z }
oom:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},sty };
le:function(bx,bw,bD,by){if(!bx||bx.nodeType===3||bx.nodeType===8||!bx.styl }
e){return}var bB,bC,bz=b.camelCase(bw),bv=bx.style,bE=b.cssHooks[bz];bw=b.c
ssProps[bz]||bz;if(bD!==L){bC=typeof bD;if(bC==="string"&&(bB=I.exec(bD))){ // The DOM ready check for Internet Explorer
bD=(+(bB[1]+1)*+bB[2])+parseFloat(b.css(bx,bw));bC="number"}if(bD==null||bC function doScrollCheck() {
==="number"&&isNaN(bD)){return}if(bC==="number"&&!b.cssNumber[bz]){bD+="px" if ( jQuery.isReady ) {
}if(!bE||!("set" in bE)||(bD=bE.set(bx,bD))!==L){try{bv[bw]=bD}catch(bA){}} return;
}else{if(bE&&"get" in bE&&(bB=bE.get(bx,false,by))!==L){return bB}return bv }
[bw]}},css:function(by,bx,bv){var bw,e;bx=b.camelCase(bx);e=b.cssHooks[bx];
bx=b.cssProps[bx]||bx;if(bx==="cssFloat"){bx="float"}if(e&&"get" in e&&(bw= try {
e.get(by,true,bv))!==L){return bw}else{if(Z){return Z(by,bx)}}},swap:functi // If IE is used, use the trick by Diego Perini
on(bx,bw,by){var e={};for(var bv in bw){e[bv]=bx.style[bv];bx.style[bv]=bw[ // http://javascript.nwbox.com/IEContentLoaded/
bv]}by.call(bx);for(bv in bw){bx.style[bv]=e[bv]}}});b.curCSS=b.css;b.each( document.documentElement.doScroll("left");
["height","width"],function(bv,e){b.cssHooks[e]={get:function(by,bx,bw){var } catch(e) {
bz;if(bx){if(by.offsetWidth!==0){return p(by,e,bw)}else{b.swap(by,a7,funct setTimeout( doScrollCheck, 1 );
ion(){bz=p(by,e,bw)})}return bz}},set:function(bw,bx){if(bc.test(bx)){bx=pa return;
rseFloat(bx);if(bx>=0){return bx+"px"}}else{return bx}}}});if(!b.support.op }
acity){b.cssHooks.opacity={get:function(bv,e){return au.test((e&&bv.current
Style?bv.currentStyle.filter:bv.style.filter)||"")?(parseFloat(RegExp.$1)/1 // and execute any waiting functions
00)+"":e?"1":""},set:function(by,bz){var bx=by.style,bv=by.currentStyle,e=b jQuery.ready();
.isNumeric(bz)?"alpha(opacity="+bz*100+")":"",bw=bv&&bv.filter||bx.filter|| }
"";bx.zoom=1;if(bz>=1&&b.trim(bw.replace(ak,""))===""){bx.removeAttribute("
filter");if(bv&&!bv.filter){return}}bx.filter=ak.test(bw)?bw.replace(ak,e): return jQuery;
bw+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.margi
nRight={get:function(bw,bv){var e;b.swap(bw,{display:"inline-block"},functi })();
on(){if(bv){e=Z(bw,"margin-right","marginRight")}else{e=bw.style.marginRigh
t}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=f // String to Object flags format cache
unction(by,bw){var bv,bx,e;bw=bw.replace(z,"-$1").toLowerCase();if((bx=by.o var flagsCache = {};
wnerDocument.defaultView)&&(e=bx.getComputedStyle(by,null))){bv=e.getProper
tyValue(bw);if(bv===""&&!b.contains(by.ownerDocument.documentElement,by)){b // Convert String-formatted flags into Object-formatted ones and store in c
v=b.style(by,bw)}}return bv}}if(av.documentElement.currentStyle){aX=functio ache
n(bz,bw){var bA,e,by,bv=bz.currentStyle&&bz.currentStyle[bw],bx=bz.style;if function createFlags( flags ) {
(bv===null&&bx&&(by=bx[bw])){bv=by}if(!bc.test(bv)&&bn.test(bv)){bA=bx.left var object = flagsCache[ flags ] = {},
;e=bz.runtimeStyle&&bz.runtimeStyle.left;if(e){bz.runtimeStyle.left=bz.curr i, length;
entStyle.left}bx.left=bw==="fontSize"?"1em":(bv||0);bv=bx.pixelLeft+"px";bx flags = flags.split( /\s+/ );
.left=bA;if(e){bz.runtimeStyle.left=e}}return bv===""?"auto":bv}}Z=aI||aX;f for ( i = 0, length = flags.length; i < length; i++ ) {
unction p(by,bw,bv){var bA=bw==="width"?by.offsetWidth:by.offsetHeight,bz=b object[ flags[i] ] = true;
w==="width"?an:a1,bx=0,e=bz.length;if(bA>0){if(bv!=="border"){for(;bx<e;bx+ }
+){if(!bv){bA-=parseFloat(b.css(by,"padding"+bz[bx]))||0}if(bv==="margin"){ return object;
bA+=parseFloat(b.css(by,bv+bz[bx]))||0}else{bA-=parseFloat(b.css(by,"border }
"+bz[bx]+"Width"))||0}}}return bA+"px"}bA=Z(by,bw,bw);if(bA<0||bA==null){bA
=by.style[bw]||0}bA=parseFloat(bA)||0;if(bv){for(;bx<e;bx++){bA+=parseFloat /*
(b.css(by,"padding"+bz[bx]))||0;if(bv!=="padding"){bA+=parseFloat(b.css(by, * Create a callback list using the following parameters:
"border"+bz[bx]+"Width"))||0}if(bv==="margin"){bA+=parseFloat(b.css(by,bv+b
z[bx]))||0}}}return bA+"px"}if(b.expr&&b.expr.filters){b.expr.filters.hidde
n=function(bw){var bv=bw.offsetWidth,e=bw.offsetHeight;return(bv===0&&e===0
)||(!b.support.reliableHiddenOffsets&&((bw.style&&bw.style.display)||b.css(
bw,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr
.filters.hidden(e)}}var k=/%20/g,ap=/\[\]$/,bs=/\r?\n/g,bq=/#.*$/,aD=/^(.*?
):[ \t]*([^\r\n]*)\r?$/mg,aZ=/^(?:color|date|datetime|datetime-local|email|
hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aM=/^(
?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aQ=/^(?:GET|HEAD
)$/,c=/^\/\//,M=/\?/,a6=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/
gi,q=/^(?:select|textarea)/i,h=/\s+/,br=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(
?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,aa={},r={},aE,s,aV=["*/"]+["*"]
;try{aE=bl.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=
K.exec(aE.toLowerCase())||[];function f(e){return function(by,bA){if(typeof
by!=="string"){bA=by;by="*"}if(b.isFunction(bA)){var bx=by.toLowerCase().s
plit(h),bw=0,bz=bx.length,bv,bB,bC;for(;bw<bz;bw++){bv=bx[bw];bC=/^\+/.test
(bv);if(bC){bv=bv.substr(1)||"*"}bB=e[bv]=e[bv]||[];bB[bC?"unshift":"push"]
(bA)}}}}function aW(bv,bE,bz,bD,bB,bx){bB=bB||bE.dataTypes[0];bx=bx||{};bx[
bB]=true;var bA=bv[bB],bw=0,e=bA?bA.length:0,by=(bv===aa),bC;for(;bw<e&&(by
||!bC);bw++){bC=bA[bw](bE,bz,bD);if(typeof bC==="string"){if(!by||bx[bC]){b
C=L}else{bE.dataTypes.unshift(bC);bC=aW(bv,bE,bz,bD,bC,bx)}}}if((by||!bC)&&
!bx["*"]){bC=aW(bv,bE,bz,bD,"*",bx)}return bC}function am(bw,bx){var bv,e,b
y=b.ajaxSettings.flatOptions||{};for(bv in bx){if(bx[bv]!==L){(by[bv]?bw:(e
||(e={})))[bv]=bx[bv]}}if(e){b.extend(true,bw,e)}}b.fn.extend({load:functio
n(bw,bz,bA){if(typeof bw!=="string"&&A){return A.apply(this,arguments)}else
{if(!this.length){return this}}var by=bw.indexOf(" ");if(by>=0){var e=bw.sl
ice(by,bw.length);bw=bw.slice(0,by)}var bx="GET";if(bz){if(b.isFunction(bz)
){bA=bz;bz=L}else{if(typeof bz==="object"){bz=b.param(bz,b.ajaxSettings.tra
ditional);bx="POST"}}}var bv=this;b.ajax({url:bw,type:bx,dataType:"html",da
ta:bz,complete:function(bC,bB,bD){bD=bC.responseText;if(bC.isResolved()){bC
.done(function(bE){bD=bE});bv.html(e?b("<div>").append(bD.replace(a6,"")).f
ind(e):bD)}if(bA){bv.each(bA,[bD,bB,bC])}}});return this},serialize:functio
n(){return b.param(this.serializeArray())},serializeArray:function(){return
this.map(function(){return this.elements?b.makeArray(this.elements):this})
.filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(
this.nodeName)||aZ.test(this.type))}).map(function(e,bv){var bw=b(this).val
();return bw==null?null:b.isArray(bw)?b.map(bw,function(by,bx){return{name:
bv.name,value:by.replace(bs,"\r\n")}}):{name:bv.name,value:bw.replace(bs,"\
r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuc
cess ajaxSend".split(" "),function(e,bv){b.fn[bv]=function(bw){return this.
on(bv,bw)}});b.each(["get","post"],function(e,bv){b[bv]=function(bw,by,bz,b
x){if(b.isFunction(by)){bx=bx||bz;bz=by;by=L}return b.ajax({type:bv,url:bw,
data:by,success:bz,dataType:bx})}});b.extend({getScript:function(e,bv){retu
rn b.get(e,L,bv,"script")},getJSON:function(e,bv,bw){return b.get(e,bv,bw,"
json")},ajaxSetup:function(bv,e){if(e){am(bv,b.ajaxSettings)}else{e=bv;bv=b
.ajaxSettings}am(bv,e);return bv},ajaxSettings:{url:aE,isLocal:aM.test(s[1]
),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",pr
ocessData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"te
xt/html",text:"text/plain",json:"application/json, text/javascript","*":aV}
,contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"response
XML",text:"responseText"},converters:{"* text":bb.String,"text html":true,"
text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url
:true}},ajaxPrefilter:f(aa),ajaxTransport:f(r),ajax:function(bz,bx){if(type
of bz==="object"){bx=bz;bz=L}bx=bx||{};var bD=b.ajaxSetup({},bx),bS=bD.cont
ext||bD,bG=bS!==bD&&(bS.nodeType||bS instanceof b)?b(bS):b.event,bR=b.Defer
red(),bN=b.Callbacks("once memory"),bB=bD.statusCode||{},bC,bH={},bO={},bQ,
by,bL,bE,bI,bA=0,bw,bK,bJ={readyState:0,setRequestHeader:function(bT,bU){if
(!bA){var e=bT.toLowerCase();bT=bO[e]=bO[e]||bT;bH[bT]=bU}return this},getA
llResponseHeaders:function(){return bA===2?bQ:null},getResponseHeader:funct
ion(bT){var e;if(bA===2){if(!by){by={};while((e=aD.exec(bQ))){by[e[1].toLow
erCase()]=e[2]}}e=by[bT.toLowerCase()]}return e===L?null:e},overrideMimeTyp
e:function(e){if(!bA){bD.mimeType=e}return this},abort:function(e){e=e||"ab
ort";if(bL){bL.abort(e)}bF(0,e);return this}};function bF(bZ,bU,b0,bW){if(b
A===2){return}bA=2;if(bE){clearTimeout(bE)}bL=L;bQ=bW||"";bJ.readyState=bZ>
0?4:0;var bT,b4,b3,bX=bU,bY=b0?bj(bD,bJ,b0):L,bV,b2;if(bZ>=200&&bZ<300||bZ=
==304){if(bD.ifModified){if((bV=bJ.getResponseHeader("Last-Modified"))){b.l
astModified[bC]=bV}if((b2=bJ.getResponseHeader("Etag"))){b.etag[bC]=b2}}if(
bZ===304){bX="notmodified";bT=true}else{try{b4=G(bD,bY);bX="success";bT=tru
e}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(b
Z<0){bZ=0}}}bJ.status=bZ;bJ.statusText=""+(bU||bX);if(bT){bR.resolveWith(bS
,[b4,bX,bJ])}else{bR.rejectWith(bS,[bJ,bX,b3])}bJ.statusCode(bB);bB=L;if(bw
){bG.trigger("ajax"+(bT?"Success":"Error"),[bJ,bD,bT?b4:b3])}bN.fireWith(bS
,[bJ,bX]);if(bw){bG.trigger("ajaxComplete",[bJ,bD]);if(!(--b.active)){b.eve
nt.trigger("ajaxStop")}}}bR.promise(bJ);bJ.success=bJ.done;bJ.error=bJ.fail
;bJ.complete=bN.add;bJ.statusCode=function(bT){if(bT){var e;if(bA<2){for(e
in bT){bB[e]=[bB[e],bT[e]]}}else{e=bT[bJ.status];bJ.then(e,e)}}return this}
;bD.url=((bz||bD.url)+"").replace(bq,"").replace(c,s[1]+"//");bD.dataTypes=
b.trim(bD.dataType||"*").toLowerCase().split(h);if(bD.crossDomain==null){bI
=K.exec(bD.url.toLowerCase());bD.crossDomain=!!(bI&&(bI[1]!=s[1]||bI[2]!=s[
2]||(bI[3]||(bI[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if
(bD.data&&bD.processData&&typeof bD.data!=="string"){bD.data=b.param(bD.dat
a,bD.traditional)}aW(aa,bD,bx,bJ);if(bA===2){return false}bw=bD.global;bD.t
ype=bD.type.toUpperCase();bD.hasContent=!aQ.test(bD.type);if(bw&&b.active++
===0){b.event.trigger("ajaxStart")}if(!bD.hasContent){if(bD.data){bD.url+=(
M.test(bD.url)?"&":"?")+bD.data;delete bD.data}bC=bD.url;if(bD.cache===fals
e){var bv=b.now(),bP=bD.url.replace(br,"$1_="+bv);bD.url=bP+((bP===bD.url)?
(M.test(bD.url)?"&":"?")+"_="+bv:"")}}if(bD.data&&bD.hasContent&&bD.content
Type!==false||bx.contentType){bJ.setRequestHeader("Content-Type",bD.content
Type)}if(bD.ifModified){bC=bC||bD.url;if(b.lastModified[bC]){bJ.setRequestH
eader("If-Modified-Since",b.lastModified[bC])}if(b.etag[bC]){bJ.setRequestH
eader("If-None-Match",b.etag[bC])}}bJ.setRequestHeader("Accept",bD.dataType
s[0]&&bD.accepts[bD.dataTypes[0]]?bD.accepts[bD.dataTypes[0]]+(bD.dataTypes
[0]!=="*"?", "+aV+"; q=0.01":""):bD.accepts["*"]);for(bK in bD.headers){bJ.
setRequestHeader(bK,bD.headers[bK])}if(bD.beforeSend&&(bD.beforeSend.call(b
S,bJ,bD)===false||bA===2)){bJ.abort();return false}for(bK in {success:1,err
or:1,complete:1}){bJ[bK](bD[bK])}bL=aW(r,bD,bx,bJ);if(!bL){bF(-1,"No Transp
ort")}else{bJ.readyState=1;if(bw){bG.trigger("ajaxSend",[bJ,bD])}if(bD.asyn
c&&bD.timeout>0){bE=setTimeout(function(){bJ.abort("timeout")},bD.timeout)}
try{bA=1;bL.send(bH,bF)}catch(bM){if(bA<2){bF(-1,bM)}else{throw bM}}}return
bJ},param:function(e,bw){var bv=[],by=function(bz,bA){bA=b.isFunction(bA)?
bA():bA;bv[bv.length]=encodeURIComponent(bz)+"="+encodeURIComponent(bA)};if
(bw===L){bw=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPla
inObject(e))){b.each(e,function(){by(this.name,this.value)})}else{for(var b
x in e){v(bx,e[bx],bw,by)}}return bv.join("&").replace(k,"+")}});function v
(bw,by,bv,bx){if(b.isArray(by)){b.each(by,function(bA,bz){if(bv||ap.test(bw
)){bx(bw,bz)}else{v(bw+"["+(typeof bz==="object"||b.isArray(bz)?bA:"")+"]",
bz,bv,bx)}})}else{if(!bv&&by!=null&&typeof by==="object"){for(var e in by){
v(bw+"["+e+"]",by[e],bv,bx)}}else{bx(bw,by)}}}b.extend({active:0,lastModifi
ed:{},etag:{}});function bj(bD,bC,bz){var bv=bD.contents,bB=bD.dataTypes,bw
=bD.responseFields,by,bA,bx,e;for(bA in bw){if(bA in bz){bC[bw[bA]]=bz[bA]}
}while(bB[0]==="*"){bB.shift();if(by===L){by=bD.mimeType||bC.getResponseHea
der("content-type")}}if(by){for(bA in bv){if(bv[bA]&&bv[bA].test(by)){bB.un
shift(bA);break}}}if(bB[0] in bz){bx=bB[0]}else{for(bA in bz){if(!bB[0]||bD
.converters[bA+" "+bB[0]]){bx=bA;break}if(!e){e=bA}}bx=bx||e}if(bx){if(bx!=
=bB[0]){bB.unshift(bx)}return bz[bx]}}function G(bH,bz){if(bH.dataFilter){b
z=bH.dataFilter(bz,bH.dataType)}var bD=bH.dataTypes,bG={},bA,bE,bw=bD.lengt
h,bB,bC=bD[0],bx,by,bF,bv,e;for(bA=1;bA<bw;bA++){if(bA===1){for(bE in bH.co
nverters){if(typeof bE==="string"){bG[bE.toLowerCase()]=bH.converters[bE]}}
}bx=bC;bC=bD[bA];if(bC==="*"){bC=bx}else{if(bx!=="*"&&bx!==bC){by=bx+" "+bC
;bF=bG[by]||bG["* "+bC];if(!bF){e=L;for(bv in bG){bB=bv.split(" ");if(bB[0]
===bx||bB[0]==="*"){e=bG[bB[1]+" "+bC];if(e){bv=bG[bv];if(bv===true){bF=e}e
lse{if(e===true){bF=bv}}break}}}}if(!(bF||e)){b.error("No conversion from "
+by.replace(" "," to "))}if(bF!==true){bz=bF?bF(bz):e(bv(bz))}}}}return bz}
var aC=b.now(),u=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCal
lback:function(){return b.expando+"_"+(aC++)}});b.ajaxPrefilter("json jsonp
",function(bD,bA,bC){var bx=bD.contentType==="application/x-www-form-urlenc
oded"&&(typeof bD.data==="string");if(bD.dataTypes[0]==="jsonp"||bD.jsonp!=
=false&&(u.test(bD.url)||bx&&u.test(bD.data))){var bB,bw=bD.jsonpCallback=b
.isFunction(bD.jsonpCallback)?bD.jsonpCallback():bD.jsonpCallback,bz=bb[bw]
,e=bD.url,by=bD.data,bv="$1"+bw+"$2";if(bD.jsonp!==false){e=e.replace(u,bv)
;if(bD.url===e){if(bx){by=by.replace(u,bv)}if(bD.data===by){e+=(/\?/.test(e
)?"&":"?")+bD.jsonp+"="+bw}}}bD.url=e;bD.data=by;bb[bw]=function(bE){bB=[bE
]};bC.always(function(){bb[bw]=bz;if(bB&&b.isFunction(bz)){bb[bw](bB[0])}})
;bD.converters["script json"]=function(){if(!bB){b.error(bw+" was not calle
d")}return bB[0]};bD.dataTypes[0]="json";return"script"}});b.ajaxSetup({acc
epts:{script:"text/javascript, application/javascript, application/ecmascri
pt, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},co
nverters:{"text script":function(e){b.globalEval(e);return e}}});b.ajaxPref
ilter("script",function(e){if(e.cache===L){e.cache=false}if(e.crossDomain){
e.type="GET";e.global=false}});b.ajaxTransport("script",function(bw){if(bw.
crossDomain){var e,bv=av.head||av.getElementsByTagName("head")[0]||av.docum
entElement;return{send:function(bx,by){e=av.createElement("script");e.async
="async";if(bw.scriptCharset){e.charset=bw.scriptCharset}e.src=bw.url;e.onl
oad=e.onreadystatechange=function(bA,bz){if(bz||!e.readyState||/loaded|comp
lete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bv&&e.paren
tNode){bv.removeChild(e)}e=L;if(!bz){by(200,"success")}}};bv.insertBefore(e
,bv.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var B=bb.Active
XObject?function(){for(var e in N){N[e](0,1)}}:false,y=0,N;function aL(){tr
y{return new bb.XMLHttpRequest()}catch(bv){}}function aj(){try{return new b
b.ActiveXObject("Microsoft.XMLHTTP")}catch(bv){}}b.ajaxSettings.xhr=bb.Acti
veXObject?function(){return !this.isLocal&&aL()||aj()}:aL;(function(e){b.ex
tend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(b.ajaxSetti
ngs.xhr());if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain
||b.support.cors){var bv;return{send:function(bB,bw){var bA=e.xhr(),bz,by;i
f(e.username){bA.open(e.type,e.url,e.async,e.username,e.password)}else{bA.o
pen(e.type,e.url,e.async)}if(e.xhrFields){for(by in e.xhrFields){bA[by]=e.x
hrFields[by]}}if(e.mimeType&&bA.overrideMimeType){bA.overrideMimeType(e.mim
eType)}if(!e.crossDomain&&!bB["X-Requested-With"]){bB["X-Requested-With"]="
XMLHttpRequest"}try{for(by in bB){bA.setRequestHeader(by,bB[by])}}catch(bx)
{}bA.send((e.hasContent&&e.data)||null);bv=function(bK,bE){var bF,bD,bC,bI,
bH;try{if(bv&&(bE||bA.readyState===4)){bv=L;if(bz){bA.onreadystatechange=b.
noop;if(B){delete N[bz]}}if(bE){if(bA.readyState!==4){bA.abort()}}else{bF=b
A.status;bC=bA.getAllResponseHeaders();bI={};bH=bA.responseXML;if(bH&&bH.do
cumentElement){bI.xml=bH}bI.text=bA.responseText;try{bD=bA.statusText}catch
(bJ){bD=""}if(!bF&&e.isLocal&&!e.crossDomain){bF=bI.text?200:404}else{if(bF
===1223){bF=204}}}}}catch(bG){if(!bE){bw(-1,bG)}}if(bI){bw(bF,bD,bI,bC)}};i
f(!e.async||bA.readyState===4){bv()}else{bz=++y;if(B){if(!N){N={};b(bb).unl
oad(B)}N[bz]=bv}bA.onreadystatechange=bv}},abort:function(){if(bv){bv(0,1)}
}}}})}var Q={},a8,m,aB=/^(?:toggle|show|hide)$/,aT=/^([+\-]=)?([\d+.\-]+)([
a-z%]*)$/i,a3,aH=[["height","marginTop","marginBottom","paddingTop","paddin
gBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"]
,["opacity"]],a4;b.fn.extend({show:function(bx,bA,bz){var bw,by;if(bx||bx==
=0){return this.animate(a0("show",3),bx,bA,bz)}else{for(var bv=0,e=this.len
gth;bv<e;bv++){bw=this[bv];if(bw.style){by=bw.style.display;if(!b._data(bw,
"olddisplay")&&by==="none"){by=bw.style.display=""}if(by===""&&b.css(bw,"di
splay")==="none"){b._data(bw,"olddisplay",x(bw.nodeName))}}}for(bv=0;bv<e;b
v++){bw=this[bv];if(bw.style){by=bw.style.display;if(by===""||by==="none"){
bw.style.display=b._data(bw,"olddisplay")||""}}}return this}},hide:function
(bx,bA,bz){if(bx||bx===0){return this.animate(a0("hide",3),bx,bA,bz)}else{v
ar bw,by,bv=0,e=this.length;for(;bv<e;bv++){bw=this[bv];if(bw.style){by=b.c
ss(bw,"display");if(by!=="none"&&!b._data(bw,"olddisplay")){b._data(bw,"old
display",by)}}}for(bv=0;bv<e;bv++){if(this[bv].style){this[bv].style.displa
y="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bw,bv,bx){var e
=typeof bw==="boolean";if(b.isFunction(bw)&&b.isFunction(bv)){this._toggle.
apply(this,arguments)}else{if(bw==null||e){this.each(function(){var by=e?bw
:b(this).is(":hidden");b(this)[by?"show":"hide"]()})}else{this.animate(a0("
toggle",3),bw,bv,bx)}}return this},fadeTo:function(e,bx,bw,bv){return this.
filter(":hidden").css("opacity",0).show().end().animate({opacity:bx},e,bw,b
v)},animate:function(bz,bw,by,bx){var e=b.speed(bw,by,bx);if(b.isEmptyObjec
t(bz)){return this.each(e.complete,[false])}bz=b.extend({},bz);function bv(
){if(e.queue===false){b._mark(this)}var bE=b.extend({},e),bK=this.nodeType=
==1,bI=bK&&b(this).is(":hidden"),bB,bF,bD,bJ,bH,bC,bG,bL,bA;bE.animatedProp
erties={};for(bD in bz){bB=b.camelCase(bD);if(bD!==bB){bz[bB]=bz[bD];delete
bz[bD]}bF=bz[bB];if(b.isArray(bF)){bE.animatedProperties[bB]=bF[1];bF=bz[b
B]=bF[0]}else{bE.animatedProperties[bB]=bE.specialEasing&&bE.specialEasing[
bB]||bE.easing||"swing"}if(bF==="hide"&&bI||bF==="show"&&!bI){return bE.com
plete.call(this)}if(bK&&(bB==="height"||bB==="width")){bE.overflow=[this.st
yle.overflow,this.style.overflowX,this.style.overflowY];if(b.css(this,"disp
lay")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNe
edsLayout||x(this.nodeName)==="inline"){this.style.display="inline-block"}e
lse{this.style.zoom=1}}}}if(bE.overflow!=null){this.style.overflow="hidden"
}for(bD in bz){bJ=new b.fx(this,bE,bD);bF=bz[bD];if(aB.test(bF)){bA=b._data
(this,"toggle"+bD)||(bF==="toggle"?bI?"show":"hide":0);if(bA){b._data(this,
"toggle"+bD,bA==="show"?"hide":"show");bJ[bA]()}else{bJ[bF]()}}else{bH=aT.e
xec(bF);bC=bJ.cur();if(bH){bG=parseFloat(bH[2]);bL=bH[3]||(b.cssNumber[bD]?
"":"px");if(bL!=="px"){b.style(this,bD,(bG||1)+bL);bC=((bG||1)/bJ.cur())*bC
;b.style(this,bD,bC+bL)}if(bH[1]){bG=((bH[1]==="-="?-1:1)*bG)+bC}bJ.custom(
bC,bG,bL)}else{bJ.custom(bC,bF,"")}}}return true}return e.queue===false?thi
s.each(bv):this.queue(e.queue,bv)},stop:function(bw,bv,e){if(typeof bw!=="s
tring"){e=bv;bv=bw;bw=L}if(bv&&bw!==false){this.queue(bw||"fx",[])}return t
his.each(function(){var bx,by=false,bA=b.timers,bz=b._data(this);if(!e){b._
unmark(true,this)}function bB(bE,bF,bD){var bC=bF[bD];b.removeData(bE,bD,tr
ue);bC.stop(e)}if(bw==null){for(bx in bz){if(bz[bx]&&bz[bx].stop&&bx.indexO
f(".run")===bx.length-4){bB(this,bz,bx)}}}else{if(bz[bx=bw+".run"]&&bz[bx].
stop){bB(this,bz,bx)}}for(bx=bA.length;bx--;){if(bA[bx].elem===this&&(bw==n
ull||bA[bx].queue===bw)){if(e){bA[bx](true)}else{bA[bx].saveState()}by=true
;bA.splice(bx,1)}}if(!(e&&by)){b.dequeue(this,bw)}})}});function bh(){setTi
meout(at,0);return(a4=b.now())}function at(){a4=L}function a0(bv,e){var bw=
{};b.each(aH.concat.apply([],aH.slice(0,e)),function(){bw[this]=bv});return
bw}b.each({slideDown:a0("show",1),slideUp:a0("hide",1),slideToggle:a0("tog
gle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacit
y:"toggle"}},function(e,bv){b.fn[e]=function(bw,by,bx){return this.animate(
bv,bw,by,bx)}});b.extend({speed:function(bw,bx,bv){var e=bw&&typeof bw==="o
bject"?b.extend({},bw):{complete:bv||!bv&&bx||b.isFunction(bw)&&bw,duration
:bw,easing:bv&&bx||bx&&!b.isFunction(bx)&&bx};e.duration=b.fx.off?0:typeof
e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.du
ration]:b.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"
}e.old=e.complete;e.complete=function(by){if(b.isFunction(e.old)){e.old.cal
l(this)}if(e.queue){b.dequeue(this,e.queue)}else{if(by!==false){b._unmark(t
his)}}};return e},easing:{linear:function(bw,bx,e,bv){return e+bv*bw},swing
:function(bw,bx,e,bv){return((-Math.cos(bw*Math.PI)/2)+0.5)*bv+e}},timers:[
],fx:function(bv,e,bw){this.options=e;this.elem=bv;this.prop=bw;e.orig=e.or
ig||{}}});b.fx.prototype={update:function(){if(this.options.step){this.opti
ons.step.call(this.elem,this.now,this)}(b.fx.step[this.prop]||b.fx.step._de
fault)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.sty
le||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e,bv
=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bv))?!bv||bv==="auto"
?0:bv:e},custom:function(bz,by,bx){var e=this,bw=b.fx;this.startTime=a4||bh
();this.end=by;this.now=this.start=bz;this.pos=this.state=0;this.unit=bx||t
his.unit||(b.cssNumber[this.prop]?"":"px");function bv(bA){return e.step(bA
)}bv.queue=this.options.queue;bv.elem=this.elem;bv.saveState=function(){if(
e.options.hide&&b._data(e.elem,"fxshow"+e.prop)===L){b._data(e.elem,"fxshow
"+e.prop,e.start)}};if(bv()&&b.timers.push(bv)&&!a3){a3=setInterval(bw.tick
,bw.interval)}},show:function(){var e=b._data(this.elem,"fxshow"+this.prop)
;this.options.orig[this.prop]=e||b.style(this.elem,this.prop);this.options.
show=true;if(e!==L){this.custom(this.cur(),e)}else{this.custom(this.prop===
"width"||this.prop==="height"?1:0,this.cur())}b(this.elem).show()},hide:fun
ction(){this.options.orig[this.prop]=b._data(this.elem,"fxshow"+this.prop)|
|b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur()
,0)},step:function(by){var bA,bB,bv,bx=a4||bh(),e=true,bz=this.elem,bw=this
.options;if(by||bx>=bw.duration+this.startTime){this.now=this.end;this.pos=
this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bA in
bw.animatedProperties){if(bw.animatedProperties[bA]!==true){e=false}}if(e){
if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],func
tion(bC,bD){bz.style["overflow"+bD]=bw.overflow[bC]})}if(bw.hide){b(bz).hid
e()}if(bw.hide||bw.show){for(bA in bw.animatedProperties){b.style(bz,bA,bw.
orig[bA]);b.removeData(bz,"fxshow"+bA,true);b.removeData(bz,"toggle"+bA,tru
e)}}bv=bw.complete;if(bv){bw.complete=false;bv.call(bz)}}return false}else{
if(bw.duration==Infinity){this.now=bx}else{bB=bx-this.startTime;this.state=
bB/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.sta
te,bB,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)
}this.update()}return true}};b.extend(b.fx,{tick:function(){var bw,bv=b.tim
ers,e=0;for(;e<bv.length;e++){bw=bv[e];if(!bw()&&bv[e]===bw){bv.splice(e--,
1)}}if(!bv.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(
a3);a3=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function
(e){b.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&
e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e
.prop]=e.now}}}});b.each(["width","height"],function(e,bv){b.fx.step[bv]=fu
nction(bw){b.style(bw.elem,bv,Math.max(0,bw.now)+bw.unit)}});if(b.expr&&b.e
xpr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,fun
ction(bv){return e===bv.elem}).length}}function x(bx){if(!Q[bx]){var e=av.b
ody,bv=b("<"+bx+">").appendTo(e),bw=bv.css("display");bv.remove();if(bw==="
none"||bw===""){if(!a8){a8=av.createElement("iframe");a8.frameBorder=a8.wid
th=a8.height=0}e.appendChild(a8);if(!m||!a8.createElement){m=(a8.contentWin
dow||a8.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"<!
doctype html>":"")+"<html><body>");m.close()}bv=m.createElement(bx);m.body.
appendChild(bv);bw=b.css(bv,"display");e.removeChild(a8)}Q[bx]=bw}return Q[
bx]}var V=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRec
t" in av.documentElement){b.fn.offset=function(bI){var by=this[0],bB;if(bI)
{return this.each(function(e){b.offset.setOffset(this,bI,e)})}if(!by||!by.o
wnerDocument){return null}if(by===by.ownerDocument.body){return b.offset.bo
dyOffset(by)}try{bB=by.getBoundingClientRect()}catch(bF){}var bH=by.ownerDo
cument,bw=bH.documentElement;if(!bB||!b.contains(bw,by)){return bB?{top:bB.
top,left:bB.left}:{top:0,left:0}}var bC=bH.body,bD=aK(bH),bA=bw.clientTop||
bC.clientTop||0,bE=bw.clientLeft||bC.clientLeft||0,bv=bD.pageYOffset||b.sup
port.boxModel&&bw.scrollTop||bC.scrollTop,bz=bD.pageXOffset||b.support.boxM
odel&&bw.scrollLeft||bC.scrollLeft,bG=bB.top+bv-bA,bx=bB.left+bz-bE;return{
top:bG,left:bx}}}else{b.fn.offset=function(bF){var bz=this[0];if(bF){return
this.each(function(bG){b.offset.setOffset(this,bF,bG)})}if(!bz||!bz.ownerD
ocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOff
set(bz)}var bC,bw=bz.offsetParent,bv=bz,bE=bz.ownerDocument,bx=bE.documentE
lement,bA=bE.body,bB=bE.defaultView,e=bB?bB.getComputedStyle(bz,null):bz.cu
rrentStyle,bD=bz.offsetTop,by=bz.offsetLeft;while((bz=bz.parentNode)&&bz!==
bA&&bz!==bx){if(b.support.fixedPosition&&e.position==="fixed"){break}bC=bB?
bB.getComputedStyle(bz,null):bz.currentStyle;bD-=bz.scrollTop;by-=bz.scroll
Left;if(bz===bw){bD+=bz.offsetTop;by+=bz.offsetLeft;if(b.support.doesNotAdd
Border&&!(b.support.doesAddBorderForTableAndCells&&V.test(bz.nodeName))){bD
+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}bv
=bw;bw=bz.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&b
C.overflow!=="visible"){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat
(bC.borderLeftWidth)||0}e=bC}if(e.position==="relative"||e.position==="stat
ic"){bD+=bA.offsetTop;by+=bA.offsetLeft}if(b.support.fixedPosition&&e.posit
ion==="fixed"){bD+=Math.max(bx.scrollTop,bA.scrollTop);by+=Math.max(bx.scro
llLeft,bA.scrollLeft)}return{top:bD,left:by}}}b.offset={bodyOffset:function
(e){var bw=e.offsetTop,bv=e.offsetLeft;if(b.support.doesNotIncludeMarginInB
odyOffset){bw+=parseFloat(b.css(e,"marginTop"))||0;bv+=parseFloat(b.css(e,"
marginLeft"))||0}return{top:bw,left:bv}},setOffset:function(bx,bG,bA){var b
B=b.css(bx,"position");if(bB==="static"){bx.style.position="relative"}var b
z=b(bx),bv=bz.offset(),e=b.css(bx,"top"),bE=b.css(bx,"left"),bF=(bB==="abso
lute"||bB==="fixed")&&b.inArray("auto",[e,bE])>-1,bD={},bC={},bw,by;if(bF){
bC=bz.position();bw=bC.top;by=bC.left}else{bw=parseFloat(e)||0;by=parseFloa
t(bE)||0}if(b.isFunction(bG)){bG=bG.call(bx,bA,bv)}if(bG.top!=null){bD.top=
(bG.top-bv.top)+bw}if(bG.left!=null){bD.left=(bG.left-bv.left)+by}if("using
" in bG){bG.using.call(bx,bD)}else{bz.css(bD)}}};b.fn.extend({position:func
tion(){if(!this[0]){return null}var bw=this[0],bv=this.offsetParent(),bx=th
is.offset(),e=ad.test(bv[0].nodeName)?{top:0,left:0}:bv.offset();bx.top-=pa
rseFloat(b.css(bw,"marginTop"))||0;bx.left-=parseFloat(b.css(bw,"marginLeft
"))||0;e.top+=parseFloat(b.css(bv[0],"borderTopWidth"))||0;e.left+=parseFlo
at(b.css(bv[0],"borderLeftWidth"))||0;return{top:bx.top-e.top,left:bx.left-
e.left}},offsetParent:function(){return this.map(function(){var e=this.offs
etParent||av.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="st
atic")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bv,e)
{var bw="scroll"+e;b.fn[bw]=function(bz){var bx,by;if(bz===L){bx=this[0];if
(!bx){return null}by=aK(bx);return by?("pageXOffset" in by)?by[bv?"pageYOff
set":"pageXOffset"]:b.support.boxModel&&by.document.documentElement[bw]||by
.document.body[bw]:bx[bw]}return this.each(function(){by=aK(this);if(by){by
.scrollTo(!bv?bz:b(by).scrollLeft(),bv?bz:b(by).scrollTop())}else{this[bw]=
bz}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView
||e.parentWindow:false}b.each(["Height","Width"],function(bv,e){var bw=e.to
LowerCase();b.fn["inner"+e]=function(){var bx=this[0];return bx?bx.style?pa
rseFloat(b.css(bx,bw,"padding")):this[bw]():null};b.fn["outer"+e]=function(
by){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,by?"margin":"b
order")):this[bw]():null};b.fn[bw]=function(bz){var bA=this[0];if(!bA){retu
rn bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){va
r bD=b(this);bD[bw](bz.call(this,bE,bD[bw]()))})}if(b.isWindow(bA)){var bB=
bA.document.documentElement["client"+e],bx=bA.document.body;return bA.docum
ent.compatMode==="CSS1Compat"&&bB||bx&&bx["client"+e]||bB}else{if(bA.nodeTy
pe===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],
bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offs
et"+e])}else{if(bz===L){var bC=b.css(bA,bw),by=parseFloat(bC);return b.isNu
meric(by)?by:bC}else{return this.css(bw,typeof bz==="string"?bz:bz+"px")}}}
}});bb.jQuery=bb.$=b;if(typeof define==="function"&&define.amd&&define.amd.
jQuery){define("jquery",[],function(){return b})}})(window);/*!
* jQuery UI 1.8.18
* *
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * flags: an optional list of space-separated flags that will change h
* Dual licensed under the MIT or GPL Version 2 licenses. ow
* http://jquery.org/license * the callback list behaves
* *
* http://docs.jquery.com/UI * By default a callback list will act like an event callback list and can
*/ be
(function(a,d){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version * "fired" multiple times.
:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COM
MAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,
ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:1
10,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:1
09,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:3
8,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focu
s,focus:function(e,f){return typeof e==="number"?this.each(function(){var g
=this;setTimeout(function(){a(g).focus();if(f){f.call(g)}},e)}):this._focus
.apply(this,arguments)},scrollParent:function(){var e;if((a.browser.msie&&(
/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.cs
s("position"))){e=this.parents().filter(function(){return(/(relative|absolu
te|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.cur
CSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflo
w-x",1))}).eq(0)}else{e=this.parents().filter(function(){return(/(auto|scro
ll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curC
SS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))
||!e.length?a(document):e},zIndex:function(h){if(h!==d){return this.css("zI
ndex",h)}if(this.length){var f=a(this[0]),e,g;while(f.length&&f[0]!==docume
nt){e=f.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){g=p
arseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}f=f.parent()}}re
turn 0},disableSelection:function(){return this.bind((a.support.selectstart
?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDef
ault()})},enableSelection:function(){return this.unbind(".ui-disableSelecti
on")}});a.each(["Width","Height"],function(g,e){var f=e==="Width"?["Left","
Right"]:["Top","Bottom"],h=e.toLowerCase(),k={innerWidth:a.fn.innerWidth,in
nerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.oute
rHeight};function j(m,l,i,n){a.each(f,function(){l-=parseFloat(a.curCSS(m,"
padding"+this,true))||0;if(i){l-=parseFloat(a.curCSS(m,"border"+this+"Width
",true))||0}if(n){l-=parseFloat(a.curCSS(m,"margin"+this,true))||0}});retur
n l}a.fn["inner"+e]=function(i){if(i===d){return k["inner"+e].call(this)}re
turn this.each(function(){a(this).css(h,j(this,i)+"px")})};a.fn["outer"+e]=
function(i,l){if(typeof i!=="number"){return k["outer"+e].call(this,i)}retu
rn this.each(function(){a(this).css(h,j(this,i,true,l)+"px")})}});function
c(g,e){var j=g.nodeName.toLowerCase();if("area"===j){var i=g.parentNode,h=i
.name,f;if(!g.href||!h||i.nodeName.toLowerCase()!=="map"){return false}f=a(
"img[usemap=#"+h+"]")[0];return !!f&&b(f)}return(/input|select|textarea|but
ton|object/.test(j)?!g.disabled:"a"==j?g.href||e:e)&&b(g)}function b(e){ret
urn !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visib
ility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":
"],{data:function(g,f,e){return !!a.data(g,e[3])},focusable:function(e){ret
urn c(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(g){var e=a.attr(g,
"tabindex"),f=isNaN(e);return(f||e>=0)&&c(g,!f)}});a(function(){var e=docum
ent.body,f=e.appendChild(f=document.createElement("div"));f.offsetHeight;a.
extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a
.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstar
t" in f;e.removeChild(f).style.display="none"});a.extend(a.ui,{plugin:{add:
function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plug
ins[e]||[];h.plugins[e].push([g,j[e]])}},call:function(e,g,f){var j=e.plugi
ns[g];if(!j||!e.element[0].parentNode){return}for(var h=0;h<j.length;h++){i
f(e.options[j[h][0]]){j[h][1].apply(e.element,f)}}}},contains:function(f,e)
{return document.compareDocumentPosition?f.compareDocumentPosition(e)&16:f!
==e&&f.contains(e)},hasScroll:function(h,f){if(a(h).css("overflow")==="hidd
en"){return false}var e=(f&&f==="left")?"scrollLeft":"scrollTop",g=false;if
(h[e]>0){return true}h[e]=1;g=(h[e]>0);h[e]=0;return g},isOverAxis:function
(f,e,g){return(f>e)&&(f<(e+g))},isOver:function(j,f,i,h,e,g){return a.ui.is
OverAxis(j,i,e)&&a.ui.isOverAxis(f,h,g)}})})(jQuery);/*!
* jQuery UI Widget 1.8.18
* *
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Possible flags:
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
* *
* http://docs.jquery.com/UI/Widget * once: will ensure the callback list can only be fi
*/ red once (like a Deferred)
(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(f){fo
r(var g=0,h;(h=f[g])!=null;g++){try{b(h).triggerHandler("remove")}catch(j){
}}c(f)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(f
unction(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).
each(function(){try{b(this).triggerHandler("remove")}catch(g){}})}}return a
.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.
split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){re
turn !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length
){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.opti
ons);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEven
tPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widg
et.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var
g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!
g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="
_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunct
ion(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.
each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.d
ata(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments
.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",
widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b
.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,
{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("r
emove."+this.widgetName,function(){e.destroy()});this._create();this._trigg
er("create");this._init()},_getCreateOptions:function(){return b.metadata&&
b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_ini
t:function(){},destroy:function(){this.element.unbind("."+this.widgetName).
removeData(this.widgetName);this.widget().unbind("."+this.widgetName).remov
eAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state
-disabled")},widget:function(){return this.element},option:function(f,g){va
r e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f
==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(
e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e
._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;
if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBas
eClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},
enable:function(){return this._setOption("disabled",false)},disable:functio
n(){return this._setOption("disabled",true)},_trigger:function(e,f,g){var j
,i,h=this.options[e];g=g||{};f=b.Event(f);f.type=(e===this.widgetEventPrefi
x?e:this.widgetEventPrefix+e).toLowerCase();f.target=this.element[0];i=f.or
iginalEvent;if(i){for(j in i){if(!(j in f)){f[j]=i[j]}}}this.element.trigge
r(f,g);return !(b.isFunction(h)&&h.call(this.element[0],f,g)===false||f.isD
efaultPrevented())}}})(jQuery);/*!
* jQuery UI Mouse 1.8.18
* *
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * memory: will keep track of previous values and will
* Dual licensed under the MIT or GPL Version 2 licenses. call any callback added
* http://jquery.org/license * after the list has been fired right
away with the latest "memorized"
* values (like a Deferred)
*
* unique: will ensure a callback can only be added onc
e (no duplicate in the list)
* *
* http://docs.jquery.com/UI/Mouse * stopOnFalse: interrupt callings when a callback returns false
* *
* Depends:
* jquery.ui.widget.js
*/ */
(function(b,c){var a=false;b(document).mouseup(function(d){a=false});b.widg jQuery.Callbacks = function( flags ) {
et("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseIn
it:function(){var d=this;this.element.bind("mousedown."+this.widgetName,fun // Convert flags from String-formatted to Object-formatted
ction(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e) // (we check in cache first)
{if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {}
(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();r ;
eturn false}});this.started=false},_mouseDestroy:function(){this.element.un
bind("."+this.widgetName)},_mouseDown:function(f){if(a){return}(this._mouse var // Actual callback list
Started&&this._mouseUp(f));this._mouseDownEvent=f;var e=this,g=(f.which==1) list = [],
,d=(typeof this.options.cancel=="string"&&f.target.nodeName?b(f.target).clo // Stack of fire calls for repeatable lists
sest(this.options.cancel).length:false);if(!g||d||!this._mouseCapture(f)){r stack = [],
eturn true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){t // Last fire value (for non-forgettable lists)
his._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.optio memory,
ns.delay)}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouse // Flag to know if list is currently firing
Started=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefa firing,
ult();return true}}if(true===b.data(f.target,this.widgetName+".preventClick // First callback to fire (used internally by add and fireWi
Event")){b.removeData(f.target,this.widgetName+".preventClickEvent")}this._ th)
mouseMoveDelegate=function(h){return e._mouseMove(h)};this._mouseUpDelegate firingStart,
=function(h){return e._mouseUp(h)};b(document).bind("mousemove."+this.widge // End of the loop when firing
tName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseU firingLength,
pDelegate);f.preventDefault();a=true;return true},_mouseMove:function(d){if // Index of currently firing callback (modified by remove if
(b.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouse needed)
Up(d)}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}i firingIndex,
f(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(th // Add one or several callbacks to the list
is._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._m add = function( args ) {
ouseDrag(d):this._mouseUp(d))}return !this._mouseStarted},_mouseUp:function var i,
(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate length,
).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseSt elem,
arted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){b type,
.data(d.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(d actual;
)}return false},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this for ( i = 0, length = args.length; i < length; i++ )
._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY {
))>=this.options.distance)},_mouseDelayMet:function(d){return this.mouseDel elem = args[ i ];
ayMet},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:functi type = jQuery.type( elem );
on(d){},_mouseCapture:function(d){return true}})})(jQuery);(function(c,d){c if ( type === "array" ) {
.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{also // Inspect recursively
Resize:false,animate:false,animateDuration:"slow",animateEasing:"swing",asp add( elem );
ectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,hand } else if ( type === "function" ) {
les:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidt // Add if not in unique mode and cal
h:10,zIndex:1000},_create:function(){var f=this,k=this.options;this.element lback is not in
.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(k.aspectRatio),asp if ( !flags.unique || !self.has( ele
ectRatio:k.aspectRatio,originalElement:this.element,_proportionallyResizeEl m ) ) {
ements:[],_helper:k.helper||k.ghost||k.animate?k.helper||"ui-resizable-help list.push( elem );
er":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select| }
button|img/i)){this.element.wrap(c('<div class="ui-wrapper" style="overflow }
: hidden;"></div>').css({position:this.element.css("position"),width:this.e }
lement.outerWidth(),height:this.element.outerHeight(),top:this.element.css( },
"top"),left:this.element.css("left")}));this.element=this.element.parent(). // Fire callbacks
data("resizable",this.element.data("resizable"));this.elementIsWrapper=true fire = function( context, args ) {
;this.element.css({marginLeft:this.originalElement.css("marginLeft"),margin args = args || [];
Top:this.originalElement.css("marginTop"),marginRight:this.originalElement. memory = !flags.memory || [ context, args ];
css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}); firing = true;
this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBott firingIndex = firingStart || 0;
om:0});this.originalResizeStyle=this.originalElement.css("resize");this.ori firingStart = 0;
ginalElement.css("resize","none");this._proportionallyResizeElements.push(t firingLength = list.length;
his.originalElement.css({position:"static",zoom:1,display:"block"}));this.o for ( ; list && firingIndex < firingLength; firingIn
riginalElement.css({margin:this.originalElement.css("margin")});this._propo dex++ ) {
rtionallyResize()}this.handles=k.handles||(!c(".ui-resizable-handle",this.e if ( list[ firingIndex ].apply( context, arg
lement).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-res s ) === false && flags.stopOnFalse ) {
izable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",n memory = true; // Mark as halted
e:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==S break;
tring){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var l=thi }
s.handles.split(",");this.handles={};for(var g=0;g<l.length;g++){var j=c.tr }
im(l[g]),e="ui-resizable-"+j;var h=c('<div class="ui-resizable-handle '+e+' firing = false;
"></div>');if(/sw|se|ne|nw/.test(j)){h.css({zIndex:++k.zIndex})}if("se"==j) if ( list ) {
{h.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[j]=".ui-r if ( !flags.once ) {
esizable-"+j;this.element.append(h)}}this._renderAxis=function(q){q=q||this if ( stack && stack.length ) {
.element;for(var n in this.handles){if(this.handles[n].constructor==String) memory = stack.shift();
{this.handles[n]=c(this.handles[n],this.element).show()}if(this.elementIsWr self.fireWith( memory[ 0 ],
apper&&this.originalElement[0].nodeName.match(/textarea|input|select|button memory[ 1 ] );
/i)){var o=c(this.handles[n],this.element),p=0;p=/sw|ne|nw|se|n|s/.test(n)? }
o.outerHeight():o.outerWidth();var m=["padding",/ne|nw|n/.test(n)?"Top":/se } else if ( memory === true ) {
|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");q.css(m,p);t self.disable();
his._proportionallyResize()}if(!c(this.handles[n]).length){continue}}};this } else {
._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.elem list = [];
ent).disableSelection();this._handles.mouseover(function(){if(!f.resizing){ }
if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n| }
e|s|w)/i)}f.axis=i&&i[1]?i[1]:"se"}});if(k.autoHide){this._handles.hide();c },
(this.element).addClass("ui-resizable-autohide").hover(function(){if(k.disa // Actual Callbacks object
bled){return}c(this).removeClass("ui-resizable-autohide");f._handles.show() self = {
},function(){if(k.disabled){return}if(!f.resizing){c(this).addClass("ui-res // Add a callback or a collection of callbacks to th
izable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function( e list
){this._mouseDestroy();var e=function(g){c(g).removeClass("ui-resizable ui- add: function() {
resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(" if ( list ) {
.resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrappe var length = list.length;
r){e(this.element);var f=this.element;f.after(this.originalElement.css({pos add( arguments );
ition:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.c // Do we need to add the callbacks t
ss("top"),left:f.css("left")})).remove()}this.originalElement.css("resize", o the
this.originalResizeStyle);e(this.originalElement);return this},_mouseCaptur // current firing batch?
e:function(f){var g=false;for(var e in this.handles){if(c(this.handles[e])[ if ( firing ) {
0]==f.target){g=true}}return !this.options.disabled&&g},_mouseStart:functio firingLength = list.length;
n(g){var j=this.options,f=this.element.position(),e=this.element;this.resiz // With memory, if we're not firing
ing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document). then
scrollLeft()};if(e.is(".ui-draggable")||(/absolute/).test(e.css("position") // we should call right away, unless
)){e.css({position:"absolute",top:f.top,left:f.left})}this._renderProxy();v previous
ar k=b(this.helper.css("left")),h=b(this.helper.css("top"));if(j.containmen // firing was halted (stopOnFalse)
t){k+=c(j.containment).scrollLeft()||0;h+=c(j.containment).scrollTop()||0}t } else if ( memory && memory !== tru
his.offset=this.helper.offset();this.position={left:k,top:h};this.size=this e ) {
._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),hei firingStart = length;
ght:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height fire( memory[ 0 ], memory[ 1
:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition ] );
={left:k,top:h};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.oute }
rHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY} }
;this.aspectRatio=(typeof j.aspectRatio=="number")?j.aspectRatio:((this.ori return this;
ginalSize.width/this.originalSize.height)||1);var i=c(".ui-resizable-"+this },
.axis).css("cursor");c("body").css("cursor",i=="auto"?this.axis+"-resize":i // Remove a callback from the list
);e.addClass("ui-resizable-resizing");this._propagate("start",g);return tru remove: function() {
e},_mouseDrag:function(e){var h=this.helper,g=this.options,m={},q=this,j=th if ( list ) {
is.originalMousePosition,n=this.axis;var r=(e.pageX-j.left)||0,p=(e.pageY-j var args = arguments,
.top)||0;var i=this._change[n];if(!i){return false}var l=i.apply(this,[e,r, argIndex = 0,
p]),k=c.browser.msie&&c.browser.version<7,f=this.sizeDiff;this._updateVirtu argLength = args.length;
alBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey){l=this._updateRa for ( ; argIndex < argLength ; argIn
tio(l,e)}l=this._respectSize(l,e);this._propagate("resize",e);h.css({top:th dex++ ) {
is.position.top+"px",left:this.position.left+"px",width:this.size.width+"px for ( var i = 0; i < list.le
",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResi ngth; i++ ) {
zeElements.length){this._proportionallyResize()}this._updateCache(l);this._ if ( args[ argIndex
trigger("resize",e,this.ui());return false},_mouseStop:function(h){this.res ] === list[ i ] ) {
izing=false;var i=this.options,m=this;if(this._helper){var g=this._proporti // Handle fi
onallyResizeElements,e=g.length&&(/textarea/i).test(g[0].nodeName),f=e&&c.u ringIndex and firingLength
i.hasScroll(g[0],"left")?0:m.sizeDiff.height,k=e?0:m.sizeDiff.width;var n={ if ( firing
width:(m.helper.width()-k),height:(m.helper.height()-f)},j=(parseInt(m.elem ) {
ent.css("left"),10)+(m.position.left-m.originalPosition.left))||null,l=(par if (
seInt(m.element.css("top"),10)+(m.position.top-m.originalPosition.top))||nu i <= firingLength ) {
ll;if(!i.animate){this.element.css(c.extend(n,{top:l,left:j}))}m.helper.hei
ght(m.size.height);m.helper.width(m.size.width);if(this._helper&&!i.animate firingLength--;
){this._proportionallyResize()}}c("body").css("cursor","auto");this.element
.removeClass("ui-resizable-resizing");this._propagate("stop",h);if(this._he if ( i <= firingIndex ) {
lper){this.helper.remove()}return false},_updateVirtualBoundaries:function(
g){var j=this.options,i,h,f,k,e;e={minWidth:a(j.minWidth)?j.minWidth:0,maxW firingIndex--;
idth:a(j.maxWidth)?j.maxWidth:Infinity,minHeight:a(j.minHeight)?j.minHeight
:0,maxHeight:a(j.maxHeight)?j.maxHeight:Infinity};if(this._aspectRatio||g){ }
i=e.minHeight*this.aspectRatio;f=e.minWidth/this.aspectRatio;h=e.maxHeight* }
this.aspectRatio;k=e.maxWidth/this.aspectRatio;if(i>e.minWidth){e.minWidth= }
i}if(f>e.minHeight){e.minHeight=f}if(h<e.maxWidth){e.maxWidth=h}if(k<e.maxH // Remove th
eight){e.maxHeight=k}}this._vBoundaries=e},_updateCache:function(e){var f=t e element
his.options;this.offset=this.helper.offset();if(a(e.left)){this.position.le list.splice(
ft=e.left}if(a(e.top)){this.position.top=e.top}if(a(e.height)){this.size.he i--, 1 );
ight=e.height}if(a(e.width)){this.size.width=e.width}},_updateRatio:functio // If we hav
n(h,g){var i=this.options,j=this.position,f=this.size,e=this.axis;if(a(h.he e some unicity property then
ight)){h.width=(h.height*this.aspectRatio)}else{if(a(h.width)){h.height=(h. // we only n
width/this.aspectRatio)}}if(e=="sw"){h.left=j.left+(f.width-h.width);h.top= eed to do this once
null}if(e=="nw"){h.top=j.top+(f.height-h.height);h.left=j.left+(f.width-h.w if ( flags.u
idth)}return h},_respectSize:function(l,g){var j=this.helper,i=this._vBound nique ) {
aries,r=this._aspectRatio||g.shiftKey,q=this.axis,t=a(l.width)&&i.maxWidth& brea
&(i.maxWidth<l.width),m=a(l.height)&&i.maxHeight&&(i.maxHeight<l.height),h= k;
a(l.width)&&i.minWidth&&(i.minWidth>l.width),s=a(l.height)&&i.minHeight&&(i }
.minHeight>l.height);if(h){l.width=i.minWidth}if(s){l.height=i.minHeight}if }
(t){l.width=i.maxWidth}if(m){l.height=i.maxHeight}var f=this.originalPositi }
on.left+this.originalSize.width,p=this.position.top+this.size.height;var k= }
/sw|nw|w/.test(q),e=/nw|ne|n/.test(q);if(h&&k){l.left=f-i.minWidth}if(t&&k) }
{l.left=f-i.maxWidth}if(s&&e){l.top=p-i.minHeight}if(m&&e){l.top=p-i.maxHei return this;
ght}var n=!l.width&&!l.height;if(n&&!l.left&&l.top){l.top=null}else{if(n&&! },
l.top&&l.left){l.left=null}}return l},_proportionallyResize:function(){var // Control if a given callback is in the list
k=this.options;if(!this._proportionallyResizeElements.length){return}var g= has: function( fn ) {
this.helper||this.element;for(var f=0;f<this._proportionallyResizeElements. if ( list ) {
length;f++){var h=this._proportionallyResizeElements[f];if(!this.borderDif) var i = 0,
{var e=[h.css("borderTopWidth"),h.css("borderRightWidth"),h.css("borderBott length = list.length;
omWidth"),h.css("borderLeftWidth")],j=[h.css("paddingTop"),h.css("paddingRi for ( ; i < length; i++ ) {
ght"),h.css("paddingBottom"),h.css("paddingLeft")];this.borderDif=c.map(e,f if ( fn === list[ i ] ) {
unction(l,n){var m=parseInt(l,10)||0,o=parseInt(j[n],10)||0;return m+o})}if return true;
(c.browser.msie&&!(!(c(g).is(":hidden")||c(g).parents(":hidden").length))){ }
continue}h.css({height:(g.height()-this.borderDif[0]-this.borderDif[2])||0, }
width:(g.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:f }
unction(){var f=this.element,i=this.options;this.elementOffset=f.offset();i return false;
f(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;">< },
/div>');var e=c.browser.msie&&c.browser.version<7,g=(e?1:0),h=(e?2:-1);this // Remove all callbacks from the list
.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,heigh empty: function() {
t:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset. list = [];
left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++i.zIndex});this.help return this;
er.appendTo("body").disableSelection()}else{this.helper=this.element}},_cha },
nge:{e:function(g,f,e){return{width:this.originalSize.width+f}},w:function( // Have the list do nothing anymore
h,f,e){var j=this.options,g=this.originalSize,i=this.originalPosition;retur disable: function() {
n{left:i.left+f,width:g.width-f}},n:function(h,f,e){var j=this.options,g=th list = stack = memory = undefined;
is.originalSize,i=this.originalPosition;return{top:i.top+e,height:g.height- return this;
e}},s:function(g,f,e){return{height:this.originalSize.height+e}},se:functio },
n(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change. // Is it disabled?
e.apply(this,[g,f,e]))},sw:function(g,f,e){return c.extend(this._change.s.a disabled: function() {
pply(this,arguments),this._change.w.apply(this,[g,f,e]))},ne:function(g,f,e return !list;
){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply },
(this,[g,f,e]))},nw:function(g,f,e){return c.extend(this._change.n.apply(th // Lock the list in its current state
is,arguments),this._change.w.apply(this,[g,f,e]))}},_propagate:function(f,e lock: function() {
){c.ui.plugin.call(this,f,[e,this.ui()]);(f!="resize"&&this._trigger(f,e,th stack = undefined;
is.ui()))},plugins:{},ui:function(){return{originalElement:this.originalEle if ( !memory || memory === true ) {
ment,element:this.element,helper:this.helper,position:this.position,size:th self.disable();
is.size,originalSize:this.originalSize,originalPosition:this.originalPositi }
on}}});c.extend(c.ui.resizable,{version:"1.8.18"});c.ui.plugin.add("resizab return this;
le","alsoResize",{start:function(f,g){var e=c(this).data("resizable"),i=e.o },
ptions;var h=function(j){c(j).each(function(){var k=c(this);k.data("resizab // Is it locked?
le-alsoresize",{width:parseInt(k.width(),10),height:parseInt(k.height(),10) locked: function() {
,left:parseInt(k.css("left"),10),top:parseInt(k.css("top"),10)})})};if(type return !stack;
of(i.alsoResize)=="object"&&!i.alsoResize.parentNode){if(i.alsoResize.lengt },
h){i.alsoResize=i.alsoResize[0];h(i.alsoResize)}else{c.each(i.alsoResize,fu // Call all callbacks with the given context and arg
nction(j){h(j)})}}else{h(i.alsoResize)}},resize:function(g,i){var f=c(this) uments
.data("resizable"),j=f.options,h=f.originalSize,l=f.originalPosition;var k= fireWith: function( context, args ) {
{height:(f.size.height-h.height)||0,width:(f.size.width-h.width)||0,top:(f. if ( stack ) {
position.top-l.top)||0,left:(f.position.left-l.left)||0},e=function(m,n){c( if ( firing ) {
m).each(function(){var q=c(this),r=c(this).data("resizable-alsoresize"),p={ if ( !flags.once ) {
},o=n&&n.length?n:q.parents(i.originalElement[0]).length?["width","height"] stack.push( [ contex
:["width","height","top","left"];c.each(o,function(s,u){var t=(r[u]||0)+(k[ t, args ] );
u]||0);if(t&&t>=0){p[u]=t||null}});q.css(p)})};if(typeof(j.alsoResize)=="ob }
ject"&&!j.alsoResize.nodeType){c.each(j.alsoResize,function(m,n){e(m,n)})}e } else if ( !( flags.once && memory
lse{e(j.alsoResize)}},stop:function(e,f){c(this).removeData("resizable-also ) ) {
resize")}});c.ui.plugin.add("resizable","animate",{stop:function(i,n){var p fire( context, args );
=c(this).data("resizable"),j=p.options;var h=p._proportionallyResizeElement }
s,e=h.length&&(/textarea/i).test(h[0].nodeName),f=e&&c.ui.hasScroll(h[0],"l }
eft")?0:p.sizeDiff.height,l=e?0:p.sizeDiff.width;var g={width:(p.size.width return this;
-l),height:(p.size.height-f)},k=(parseInt(p.element.css("left"),10)+(p.posi },
tion.left-p.originalPosition.left))||null,m=(parseInt(p.element.css("top"), // Call all the callbacks with the given arguments
10)+(p.position.top-p.originalPosition.top))||null;p.element.animate(c.exte fire: function() {
nd(g,m&&k?{top:m,left:k}:{}),{duration:j.animateDuration,easing:j.animateEa self.fireWith( this, arguments );
sing,step:function(){var o={width:parseInt(p.element.css("width"),10),heigh return this;
t:parseInt(p.element.css("height"),10),top:parseInt(p.element.css("top"),10 },
),left:parseInt(p.element.css("left"),10)};if(h&&h.length){c(h[0]).css({wid // To know if the callbacks have already been called
th:o.width,height:o.height})}p._updateCache(o);p._propagate("resize",i)}})} at least once
});c.ui.plugin.add("resizable","containment",{start:function(f,r){var t=c(t fired: function() {
his).data("resizable"),j=t.options,l=t.element;var g=j.containment,k=(g ins return !!memory;
tanceof c)?g.get(0):(/parent/.test(g))?l.parent().get(0):g;if(!k){return}t. }
containerElement=c(k);if(/document/.test(g)||g==document){t.containerOffset };
={left:0,top:0};t.containerPosition={left:0,top:0};t.parentData={element:c(
document),left:0,top:0,width:c(document).width(),height:c(document).height( return self;
)||document.body.parentNode.scrollHeight}}else{var n=c(k),i=[];c(["Top","Ri };
ght","Left","Bottom"]).each(function(p,o){i[p]=b(n.css("padding"+o))});t.co
ntainerOffset=n.offset();t.containerPosition=n.position();t.containerSize={ var // Static reference to slice
height:(n.innerHeight()-i[3]),width:(n.innerWidth()-i[1])};var q=t.containe sliceDeferred = [].slice;
rOffset,e=t.containerSize.height,m=t.containerSize.width,h=(c.ui.hasScroll(
k,"left")?k.scrollWidth:m),s=(c.ui.hasScroll(k)?k.scrollHeight:e);t.parentD jQuery.extend({
ata={element:k,left:q.left,top:q.top,width:h,height:s}}},resize:function(g,
q){var t=c(this).data("resizable"),i=t.options,f=t.containerSize,p=t.contai Deferred: function( func ) {
nerOffset,m=t.size,n=t.position,r=t._aspectRatio||g.shiftKey,e={top:0,left: var doneList = jQuery.Callbacks( "once memory" ),
0},h=t.containerElement;if(h[0]!=document&&(/static/).test(h.css("position" failList = jQuery.Callbacks( "once memory" ),
))){e=p}if(n.left<(t._helper?p.left:0)){t.size.width=t.size.width+(t._helpe progressList = jQuery.Callbacks( "memory" ),
r?(t.position.left-p.left):(t.position.left-e.left));if(r){t.size.height=t. state = "pending",
size.width/i.aspectRatio}t.position.left=i.helper?p.left:0}if(n.top<(t._hel lists = {
per?p.top:0)){t.size.height=t.size.height+(t._helper?(t.position.top-p.top) resolve: doneList,
:t.position.top);if(r){t.size.width=t.size.height*i.aspectRatio}t.position. reject: failList,
top=t._helper?p.top:0}t.offset.left=t.parentData.left+t.position.left;t.off notify: progressList
set.top=t.parentData.top+t.position.top;var l=Math.abs((t._helper?t.offset. },
left-e.left:(t.offset.left-e.left))+t.sizeDiff.width),s=Math.abs((t._helper promise = {
?t.offset.top-e.top:(t.offset.top-p.top))+t.sizeDiff.height);var k=t.contai done: doneList.add,
nerElement.get(0)==t.element.parent().get(0),j=/relative|absolute/.test(t.c fail: failList.add,
ontainerElement.css("position"));if(k&&j){l-=t.parentData.left}if(l+t.size. progress: progressList.add,
width>=t.parentData.width){t.size.width=t.parentData.width-l;if(r){t.size.h
eight=t.size.width/t.aspectRatio}}if(s+t.size.height>=t.parentData.height){ state: function() {
t.size.height=t.parentData.height-s;if(r){t.size.width=t.size.height*t.aspe return state;
ctRatio}}},stop:function(f,n){var q=c(this).data("resizable"),g=q.options,l },
=q.position,m=q.containerOffset,e=q.containerPosition,i=q.containerElement;
var j=c(q.helper),r=j.offset(),p=j.outerWidth()-q.sizeDiff.width,k=j.outerH // Deprecated
eight()-q.sizeDiff.height;if(q._helper&&!g.animate&&(/relative/).test(i.css isResolved: doneList.fired,
("position"))){c(this).css({left:r.left-e.left-m.left,width:p,height:k})}if isRejected: failList.fired,
(q._helper&&!g.animate&&(/static/).test(i.css("position"))){c(this).css({le
ft:r.left-e.left-m.left,width:p,height:k})}}});c.ui.plugin.add("resizable", then: function( doneCallbacks, failCallbacks
"ghost",{start:function(g,h){var e=c(this).data("resizable"),i=e.options,f= , progressCallbacks ) {
e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display: deferred.done( doneCallbacks ).fail(
"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,t failCallbacks ).progress( progressCallbacks );
op:0}).addClass("ui-resizable-ghost").addClass(typeof i.ghost=="string"?i.g return this;
host:"");e.ghost.appendTo(e.helper)},resize:function(f,g){var e=c(this).dat },
a("resizable"),h=e.options;if(e.ghost){e.ghost.css({position:"relative",hei always: function() {
ght:e.size.height,width:e.size.width})}},stop:function(f,g){var e=c(this).d deferred.done.apply( deferred, argum
ata("resizable"),h=e.options;if(e.ghost&&e.helper){e.helper.get(0).removeCh ents ).fail.apply( deferred, arguments );
ild(e.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function return this;
(e,m){var p=c(this).data("resizable"),h=p.options,k=p.size,i=p.originalSize },
,j=p.originalPosition,n=p.axis,l=h._aspectRatio||e.shiftKey;h.grid=typeof h pipe: function( fnDone, fnFail, fnProgress )
.grid=="number"?[h.grid,h.grid]:h.grid;var g=Math.round((k.width-i.width)/( {
h.grid[0]||1))*(h.grid[0]||1),f=Math.round((k.height-i.height)/(h.grid[1]|| return jQuery.Deferred(function( new
1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(n)){p.size.width=i.width+g;p.size.h Defer ) {
eight=i.height+f}else{if(/^(ne)$/.test(n)){p.size.width=i.width+g;p.size.he jQuery.each( {
ight=i.height+f;p.position.top=j.top-f}else{if(/^(sw)$/.test(n)){p.size.wid done: [ fnDone, "res
th=i.width+g;p.size.height=i.height+f;p.position.left=j.left-g}else{p.size. olve" ],
width=i.width+g;p.size.height=i.height+f;p.position.top=j.top-f;p.position. fail: [ fnFail, "rej
left=j.left-g}}}}});var b=function(e){return parseInt(e,10)||0};var a=funct ect" ],
ion(e){return !isNaN(parseInt(e,10))}})(jQuery);/*! progress: [ fnProgre
* jQuery hashchange event - v1.3 - 7/21/2010 ss, "notify" ]
* http://benalman.com/projects/jquery-hashchange-plugin/ }, function( handler, data )
* {
* Copyright (c) 2010 "Cowboy" Ben Alman var fn = data[ 0 ],
* Dual licensed under the MIT and GPL licenses. action = dat
* http://benalman.com/about/license/ a[ 1 ],
*/ returned;
(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.docu if ( jQuery.isFuncti
mentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;retur on( fn ) ) {
n"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind deferred[ ha
(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function( ndler ](function() {
){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f retu
.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j. rned = fn.apply( this, arguments );
start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function if (
n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){loc returned && jQuery.isFunction( returned.promise ) ) {
ation.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)
}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.no
].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("l tify );
oad",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter(" } el
body")[0].contentWindow;h.onpropertychange=function(){try{if(event.property se {
Name==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function
(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].do newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ ret
main;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain urned ] );
="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuer }
y,this);(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f, });
e,d)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.wi } else {
ndow=function(d){return c(window)._scrollable()};c.fn._scrollable=function( deferred[ ha
){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName ndler ]( newDefer[ action ] );
.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return e}va }
r f=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safa });
ri||f.compatMode=="BackCompat"?f.body:f.documentElement})};c.fn.scrollTo=fu }).promise();
nction(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={on },
After:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed // Get a promise for this deferred
||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d // If obj is provided, the promise aspect is
.offset);d.over=b(d.over);return this._scrollable().each(function(){var l=t added to the object
his,j=c(l),k=f,i,g={},m=j.is("html,body");switch(typeof k){case"number":cas promise: function( obj ) {
e"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(k)){k=b(k);break}k=c(k,thi if ( obj == null ) {
s);case"object":if(k.is||k.style){i=(k=c(k)).offset()}}c.each(d.axis.split( obj = promise;
""),function(q,r){var s=r=="x"?"Left":"Top",u=s.toLowerCase(),p="scroll"+s, } else {
o=l[p],n=a.max(l,r);if(i){g[p]=i[u]+(m?0:o-j.offset()[u]);if(d.margin){g[p] for ( var key in promise ) {
-=parseInt(k.css("margin"+s))||0;g[p]-=parseInt(k.css("border"+s+"Width"))| obj[ key ] = promise
|0}g[p]+=d.offset[u]||0;if(d.over[u]){g[p]+=k[r=="x"?"width":"height"]()*d. [ key ];
over[u]}}else{var t=k[u];g[p]=t.slice&&t.slice(-1)=="%"?parseFloat(t)/100*n }
:t}if(/^\d+$/.test(g[p])){g[p]=g[p]<=0?0:Math.min(g[p],n)}if(!q&&d.queue){i }
f(o!=g[p]){h(d.onAfterFirst)}delete g[p]}});h(d.onAfter);function h(n){j.an return obj;
imate(g,e,d.easing,n&&function(){n.call(this,f,d)})}}).end()};a.max=functio }
n(j,i){var h=i=="x"?"Width":"Height",e="scroll"+h;if(!c(j).is("html,body")) },
{return j[e]-c(j)[h.toLowerCase()]()}var g="client"+h,f=j.ownerDocument.doc deferred = promise.promise({}),
umentElement,d=j.ownerDocument.body;return Math.max(f[e],d[e])-Math.min(f[g key;
],d[g])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery
);/*! for ( key in lists ) {
PowerTip - v1.2.0 - 2013-04-03 deferred[ key ] = lists[ key ].fire;
http://stevenbenner.github.com/jquery-powertip/ deferred[ key + "With" ] = lists[ key ].fireWith;
Copyright (c) 2013 Steven Benner (http://stevenbenner.com/). }
Released under MIT license.
https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt // Handle state
*/ deferred.done( function() {
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a state = "resolved";
)}else{a(jQuery)}}(function(k){var A=k(document),s=k(window),w=k("body");va }, failList.disable, progressList.lock ).fail( function() {
r n="displayController",e="hasActiveHover",d="forcedOpen",u="hasMouseMove", state = "rejected";
f="mouseOnToPopup",g="originalTitle",y="powertip",o="powertipjq",l="powerti }, doneList.disable, progressList.lock );
ptarget",E=180/Math.PI;var c={isTipOpen:false,isFixedTipOpen:false,isClosin
g:false,tipOpenImminent:false,activeHover:null,currentX:0,currentY:0,previo // Call given func if any
usX:0,previousY:0,desyncTimeout:null,mouseTrackingActive:false,delayInProgr if ( func ) {
ess:false,windowWidth:0,windowHeight:0,scrollTop:0,scrollLeft:0};var p={non func.call( deferred, deferred );
e:0,top:1,bottom:2,left:4,right:8};k.fn.powerTip=function(F,N){if(!this.len }
gth){return this}if(k.type(F)==="string"&&k.powerTip[F]){return k.powerTip[
F].call(this,this,N)}var O=k.extend({},k.fn.powerTip.defaults,F),G=new x(O) // All done!
;h();this.each(function M(){var R=k(this),Q=R.data(y),P=R.data(o),T=R.data( return deferred;
l),S;if(R.data(n)){k.powerTip.destroy(R)}S=R.attr("title");if(!Q&&!T&&!P&&S },
){R.data(y,S);R.data(g,S);R.removeAttr("title")}R.data(n,new t(R,O,G))});if
(!O.manual){this.on({"mouseenter.powertip":function J(P){k.powerTip.show(th // Deferred helper
is,P)},"mouseleave.powertip":function L(){k.powerTip.hide(this)},"focus.pow when: function( firstParam ) {
ertip":function K(){k.powerTip.show(this)},"blur.powertip":function H(){k.p var args = sliceDeferred.call( arguments, 0 ),
owerTip.hide(this,true)},"keydown.powertip":function I(P){if(P.keyCode===27 i = 0,
){k.powerTip.hide(this,true)}}})}return this};k.fn.powerTip.defaults={fadeI length = args.length,
nTime:200,fadeOutTime:100,followMouse:false,popupId:"powerTip",intentSensit pValues = new Array( length ),
ivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement: count = length,
false,offset:10,mouseOnToPopup:false,manual:false};k.fn.powerTip.smartPlace pCount = length,
mentLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e" deferred = length <= 1 && firstParam && jQuery.isFun
],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw ction( firstParam.promise ) ?
","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw" firstParam :
,"w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt": jQuery.Deferred(),
["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n promise = deferred.promise();
","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt"," function resolveFunc( i ) {
nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n", return function( value ) {
"nw-alt","e","w"]};k.powerTip={show:function z(F,G){if(G){i(G);c.previousX= args[ i ] = arguments.length > 1 ? sliceDefe
G.pageX;c.previousY=G.pageY;k(F).data(n).show()}else{k(F).first().data(n).s rred.call( arguments, 0 ) : value;
how(true,true)}return F},reposition:function r(F){k(F).first().data(n).rese if ( !( --count ) ) {
tPosition();return F},hide:function D(G,F){if(G){k(G).first().data(n).hide( deferred.resolveWith( deferred, args
F)}else{if(c.activeHover){c.activeHover.data(n).hide(true)}}return G},destr );
oy:function C(G){k(G).off(".powertip").each(function F(){var I=k(this),H=[g }
,n,e,d];if(I.data(g)){I.attr("title",I.data(g));H.push(y)}I.removeData(H)}) };
;return G}};k.powerTip.showTip=k.powerTip.show;k.powerTip.closeTip=k.powerT }
ip.hide;function b(){var F=this;F.top="auto";F.left="auto";F.right="auto";F function progressFunc( i ) {
.bottom="auto";F.set=function(H,G){if(k.isNumeric(G)){F[H]=Math.round(G)}}} return function( value ) {
function t(K,N,F){var J=null;function L(P,Q){M();if(!K.data(e)){if(!P){c.ti pValues[ i ] = arguments.length > 1 ? sliceD
pOpenImminent=true;J=setTimeout(function O(){J=null;I()},N.intentPollInterv eferred.call( arguments, 0 ) : value;
al)}else{if(Q){K.data(d,true)}F.showTip(K)}}}function G(P){M();c.tipOpenImm deferred.notifyWith( promise, pValues );
inent=false;if(K.data(e)){K.data(d,false);if(!P){c.delayInProgress=true;J=s };
etTimeout(function O(){J=null;F.hideTip(K);c.delayInProgress=false},N.close }
Delay)}else{F.hideTip(K)}}}function I(){var Q=Math.abs(c.previousX-c.curren if ( length > 1 ) {
tX),O=Math.abs(c.previousY-c.currentY),P=Q+O;if(P<N.intentSensitivity){F.sh for ( ; i < length; i++ ) {
owTip(K)}else{c.previousX=c.currentX;c.previousY=c.currentY;L()}}function M if ( args[ i ] && args[ i ].promise && jQuer
(){J=clearTimeout(J);c.delayInProgress=false}function H(){F.resetPosition(K y.isFunction( args[ i ].promise ) ) {
)}this.show=L;this.hide=G;this.cancel=M;this.resetPosition=H}function j(){f args[ i ].promise().then( resolveFun
unction G(M,L,J,O,P){var K=L.split("-")[0],N=new b(),I;if(q(M)){I=H(M,K)}el c(i), deferred.reject, progressFunc(i) );
se{I=F(M,K)}switch(L){case"n":N.set("left",I.left-(J/2));N.set("bottom",c.w } else {
indowHeight-I.top+P);break;case"e":N.set("left",I.left+P);N.set("top",I.top --count;
-(O/2));break;case"s":N.set("left",I.left-(J/2));N.set("top",I.top+P);break }
;case"w":N.set("top",I.top-(O/2));N.set("right",c.windowWidth-I.left+P);bre }
ak;case"nw":N.set("bottom",c.windowHeight-I.top+P);N.set("right",c.windowWi if ( !count ) {
dth-I.left-20);break;case"nw-alt":N.set("left",I.left);N.set("bottom",c.win deferred.resolveWith( deferred, args );
dowHeight-I.top+P);break;case"ne":N.set("left",I.left-20);N.set("bottom",c. }
windowHeight-I.top+P);break;case"ne-alt":N.set("bottom",c.windowHeight-I.to } else if ( deferred !== firstParam ) {
p+P);N.set("right",c.windowWidth-I.left);break;case"sw":N.set("top",I.top+P deferred.resolveWith( deferred, length ? [ firstPara
);N.set("right",c.windowWidth-I.left-20);break;case"sw-alt":N.set("left",I. m ] : [] );
left);N.set("top",I.top+P);break;case"se":N.set("left",I.left-20);N.set("to }
p",I.top+P);break;case"se-alt":N.set("top",I.top+P);N.set("right",c.windowW return promise;
idth-I.left);break}return N}function F(K,J){var O=K.offset(),N=K.outerWidth }
(),I=K.outerHeight(),M,L;switch(J){case"n":M=O.left+N/2;L=O.top;break;case" });
e":M=O.left+N;L=O.top+I/2;break;case"s":M=O.left+N/2;L=O.top+I;break;case"w
":M=O.left;L=O.top+I/2;break;case"nw":M=O.left;L=O.top;break;case"ne":M=O.l jQuery.support = (function() {
eft+N;L=O.top;break;case"sw":M=O.left;L=O.top+I;break;case"se":M=O.left+N;L
=O.top+I;break}return{top:L,left:M}}function H(O,K){var S=O.closest("svg")[ var support,
0],N=O[0],W=S.createSVGPoint(),L=N.getBBox(),V=N.getScreenCTM(),M=L.width/2 all,
,Q=L.height/2,P=[],I=["nw","n","ne","e","se","s","sw","w"],U,X,R,T;function a,
J(){P.push(W.matrixTransform(V))}W.x=L.x;W.y=L.y;J();W.x+=M;J();W.x+=M;J() select,
;W.y+=Q;J();W.y+=Q;J();W.x-=M;J();W.x-=M;J();W.y-=Q;J();if(P[0].y!==P[1].y| opt,
|P[0].x!==P[7].x){X=Math.atan2(V.b,V.a)*E;R=Math.ceil(((X%360)-22.5)/45);if input,
(R<1){R+=8}while(R--){I.push(I.shift())}}for(T=0;T<P.length;T++){if(I[T]=== marginDiv,
K){U=P[T];break}}return{top:U.y+c.scrollTop,left:U.x+c.scrollLeft}}this.com fragment,
pute=G}function x(Q){var P=new j(),O=k("#"+Q.popupId);if(O.length===0){O=k( tds,
"<div/>",{id:Q.popupId});if(w.length===0){w=k("body")}w.append(O)}if(Q.foll events,
owMouse){if(!O.data(u)){A.on("mousemove",M);s.on("scroll",M);O.data(u,true) eventName,
}}if(Q.mouseOnToPopup){O.on({mouseenter:function L(){if(O.data(f)){if(c.act i,
iveHover){c.activeHover.data(n).cancel()}}},mouseleave:function N(){if(c.ac isSupported,
tiveHover){c.activeHover.data(n).hide()}}})}function I(S){S.data(e,true);O. div = document.createElement( "div" ),
queue(function R(T){H(S);T()})}function H(S){var U;if(!S.data(e)){return}if documentElement = document.documentElement;
(c.isTipOpen){if(!c.isClosing){K(c.activeHover)}O.delay(100).queue(function
R(V){H(S);V()});return}S.trigger("powerTipPreRender");U=B(S);if(U){O.empty // Preliminary tests
().append(U)}else{return}S.trigger("powerTipRender");c.activeHover=S;c.isTi div.setAttribute("className", "t");
pOpen=true;O.data(f,Q.mouseOnToPopup);if(!Q.followMouse){G(S);c.isFixedTipO div.innerHTML = " <link/><table></table><a href='/a' style='top:1p
pen=true}else{M()}O.fadeIn(Q.fadeInTime,function T(){if(!c.desyncTimeout){c x;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
.desyncTimeout=setInterval(J,500)}S.trigger("powerTipOpen")})}function K(R)
{c.isClosing=true;c.activeHover=null;c.isTipOpen=false;c.desyncTimeout=clea all = div.getElementsByTagName( "*" );
rInterval(c.desyncTimeout);R.data(e,false);R.data(d,false);O.fadeOut(Q.fade a = div.getElementsByTagName( "a" )[ 0 ];
OutTime,function S(){var T=new b();c.isClosing=false;c.isFixedTipOpen=false
;O.removeClass();T.set("top",c.currentY+Q.offset);T.set("left",c.currentX+Q // Can't get basic test support
.offset);O.css(T);R.trigger("powerTipClose")})}function M(){if(!c.isFixedTi if ( !all || !all.length || !a ) {
pOpen&&(c.isTipOpen||(c.tipOpenImminent&&O.data(u)))){var R=O.outerWidth(), return {};
V=O.outerHeight(),U=new b(),S,T;U.set("top",c.currentY+Q.offset);U.set("lef }
t",c.currentX+Q.offset);S=m(U,R,V);if(S!==p.none){T=a(S);if(T===1){if(S===p
.right){U.set("left",c.windowWidth-R)}else{if(S===p.bottom){U.set("top",c.s // First batch of supports tests
crollTop+c.windowHeight-V)}}}else{U.set("left",c.currentX-R-Q.offset);U.set select = document.createElement( "select" );
("top",c.currentY-V-Q.offset)}}O.css(U)}}function G(S){var R,T;if(Q.smartPl opt = select.appendChild( document.createElement("option") );
acement){R=k.fn.powerTip.smartPlacementLists[Q.placement];k.each(R,function input = div.getElementsByTagName( "input" )[ 0 ];
(U,W){var V=m(F(S,W),O.outerWidth(),O.outerHeight());T=W;if(V===p.none){ret
urn false}})}else{F(S,Q.placement);T=Q.placement}O.addClass(T)}function F(U support = {
,T){var R=0,S,W,V=new b();V.set("top",0);V.set("left",0);O.css(V);do{S=O.ou // IE strips leading whitespace when .innerHTML is used
terWidth();W=O.outerHeight();V=P.compute(U,T,S,W,Q.offset);O.css(V)}while(+ leadingWhitespace: ( div.firstChild.nodeType === 3 ),
+R<=5&&(S!==O.outerWidth()||W!==O.outerHeight()));return V}function J(){var
R=false;if(c.isTipOpen&&!c.isClosing&&!c.delayInProgress){if(c.activeHover // Make sure that tbody elements aren't automatically insert
.data(e)===false||c.activeHover.is(":disabled")){R=true}else{if(!v(c.active ed
Hover)&&!c.activeHover.is(":focus")&&!c.activeHover.data(d)){if(O.data(f)){ // IE will insert them into empty tables
if(!v(O)){R=true}}else{R=true}}}if(R){K(c.activeHover)}}}this.showTip=I;thi tbody: !div.getElementsByTagName("tbody").length,
s.hideTip=K;this.resetPosition=G}function q(F){return window.SVGElement&&F[
0] instanceof SVGElement}function h(){if(!c.mouseTrackingActive){c.mouseTra // Make sure that link elements get serialized correctly by
ckingActive=true;k(function H(){c.scrollLeft=s.scrollLeft();c.scrollTop=s.s innerHTML
crollTop();c.windowWidth=s.width();c.windowHeight=s.height()});A.on("mousem // This requires a wrapper element in IE
ove",i);s.on({resize:function G(){c.windowWidth=s.width();c.windowHeight=s. htmlSerialize: !!div.getElementsByTagName("link").length,
height()},scroll:function F(){var I=s.scrollLeft(),J=s.scrollTop();if(I!==c
.scrollLeft){c.currentX+=I-c.scrollLeft;c.scrollLeft=I}if(J!==c.scrollTop){ // Get the style information from getAttribute
c.currentY+=J-c.scrollTop;c.scrollTop=J}}})}}function i(F){c.currentX=F.pag // (IE uses .cssText instead)
eX;c.currentY=F.pageY}function v(F){var H=F.offset(),J=F[0].getBoundingClie style: /top/.test( a.getAttribute("style") ),
ntRect(),I=J.right-J.left,G=J.bottom-J.top;return c.currentX>=H.left&&c.cur
rentX<=H.left+I&&c.currentY>=H.top&&c.currentY<=H.top+G}function B(I){var G // Make sure that URLs aren't manipulated
=I.data(y),F=I.data(o),K=I.data(l),H,J;if(G){if(k.isFunction(G)){G=G.call(I // (IE normalizes it by default)
[0])}J=G}else{if(F){if(k.isFunction(F)){F=F.call(I[0])}if(F.length>0){J=F.c hrefNormalized: ( a.getAttribute("href") === "/a" ),
lone(true,true)}}else{if(K){H=k("#"+K);if(H.length>0){J=H.html()}}}}return
J}function m(M,L,K){var G=c.scrollTop,J=c.scrollLeft,I=G+c.windowHeight,F=J // Make sure that element opacity exists
+c.windowWidth,H=p.none;if(M.top<G||Math.abs(M.bottom-c.windowHeight)-K<G){ // (IE uses filter instead)
H|=p.top}if(M.top+K>I||Math.abs(M.bottom-c.windowHeight)>I){H|=p.bottom}if( // Use a regex to work around a WebKit issue. See #5145
M.left<J||M.right+L>F){H|=p.left}if(M.left+L>F||M.right<J){H|=p.right}retur opacity: /^0.55/.test( a.style.opacity ),
n H}function a(G){var F=0;while(G){G&=G-1;F++}return F}}));
// Verify style float existence
// (IE uses styleFloat instead of cssFloat)
cssFloat: !!a.style.cssFloat,
// Make sure that if no value is specified for a checkbox
// that it defaults to "on".
// (WebKit defaults to "" instead)
checkOn: ( input.value === "on" ),
// Make sure that a selected-by-default option has a working
selected property.
// (WebKit defaults to false instead of true, IE too, if it'
s in an optgroup)
optSelected: opt.selected,
// Test setAttribute on camelCase class. If it works, we nee
d attrFixes when doing get/setAttribute (ie6/7)
getSetAttribute: div.className !== "t",
// Tests for enctype support on a form(#6743)
enctype: !!document.createElement("form").enctype,
// Makes sure cloning an html5 element does not cause proble
ms
// Where outerHTML is undefined, this still works
html5Clone: document.createElement("nav").cloneNode( true ).
outerHTML !== "<:nav></:nav>",
// Will be defined later
submitBubbles: true,
changeBubbles: true,
focusinBubbles: false,
deleteExpando: true,
noCloneEvent: true,
inlineBlockNeedsLayout: false,
shrinkWrapBlocks: false,
reliableMarginRight: true
};
// Make sure checked status is properly cloned
input.checked = true;
support.noCloneChecked = input.cloneNode( true ).checked;
// Make sure that the options inside disabled selects aren't marked
as disabled
// (WebKit marks them as disabled)
select.disabled = true;
support.optDisabled = !opt.disabled;
// Test to see if it's possible to delete an expando from an element
// Fails in Internet Explorer
try {
delete div.test;
} catch( e ) {
support.deleteExpando = false;
}
if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
div.attachEvent( "onclick", function() {
// Cloning a node shouldn't copy over any
// bound event handlers (IE does this)
support.noCloneEvent = false;
});
div.cloneNode( true ).fireEvent( "onclick" );
}
// Check if a radio maintains its value
// after being appended to the DOM
input = document.createElement("input");
input.value = "t";
input.setAttribute("type", "radio");
support.radioValue = input.value === "t";
input.setAttribute("checked", "checked");
div.appendChild( input );
fragment = document.createDocumentFragment();
fragment.appendChild( div.lastChild );
// WebKit doesn't clone checked state correctly in fragments
support.checkClone = fragment.cloneNode( true ).cloneNode( true ).la
stChild.checked;
// Check if a disconnected checkbox will retain its checked
// value of true after appended to the DOM (IE6/7)
support.appendChecked = input.checked;
fragment.removeChild( input );
fragment.appendChild( div );
div.innerHTML = "";
// Check if div with explicit width and no margin-right incorrectly
// gets computed margin-right based on width of container. For more
// info see bug #3333
// Fails in WebKit before Feb 2011 nightlies
// WebKit Bug 13343 - getComputedStyle returns wrong value for margi
n-right
if ( window.getComputedStyle ) {
marginDiv = document.createElement( "div" );
marginDiv.style.width = "0";
marginDiv.style.marginRight = "0";
div.style.width = "2px";
div.appendChild( marginDiv );
support.reliableMarginRight =
( parseInt( ( window.getComputedStyle( marginDiv, nu
ll ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
}
// Technique from Juriy Zaytsev
// http://perfectionkills.com/detecting-event-support-without-browse
r-sniffing/
// We only care about the case where non-standard event systems
// are used, namely in IE. Short-circuiting here helps us to
// avoid an eval call (in setAttribute) which can cause CSP
// to go haywire. See: https://developer.mozilla.org/en/Security/CSP
if ( div.attachEvent ) {
for( i in {
submit: 1,
change: 1,
focusin: 1
}) {
eventName = "on" + i;
isSupported = ( eventName in div );
if ( !isSupported ) {
div.setAttribute( eventName, "return;" );
isSupported = ( typeof div[ eventName ] ===
"function" );
}
support[ i + "Bubbles" ] = isSupported;
}
}
fragment.removeChild( div );
// Null elements to avoid leaks in IE
fragment = select = opt = marginDiv = div = input = null;
// Run tests that need a body at doc ready
jQuery(function() {
var container, outer, inner, table, td, offsetSupport,
conMarginTop, ptlm, vb, style, html,
body = document.getElementsByTagName("body")[0];
if ( !body ) {
// Return for frameset docs that don't have a body
return;
}
conMarginTop = 1;
ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;
margin:0;";
vb = "visibility:hidden;border:0;";
style = "style='" + ptlm + "border:5px solid #000;padding:0;
'";
html = "<div " + style + "><div></div></div>" +
"<table " + style + " cellpadding='0' cellspacing='0
'>" +
"<tr><td></td></tr></table>";
container = document.createElement("div");
container.style.cssText = vb + "width:0;height:0;position:st
atic;top:0;margin-top:" + conMarginTop + "px";
body.insertBefore( container, body.firstChild );
// Construct the test element
div = document.createElement("div");
container.appendChild( div );
// Check if table cells still have offsetWidth/Height when t
hey are set
// to display:none and there are still other visible table c
ells in a
// table row; if so, offsetWidth/Height are not reliable for
use when
// determining if an element has been hidden directly using
// display:none (it is still safe to use offsets if a parent
element is
// hidden; don safety goggles and see bug #4512 for more inf
ormation).
// (only IE 8 fails this test)
div.innerHTML = "<table><tr><td style='padding:0;border:0;di
splay:none'></td><td>t</td></tr></table>";
tds = div.getElementsByTagName( "td" );
isSupported = ( tds[ 0 ].offsetHeight === 0 );
tds[ 0 ].style.display = "";
tds[ 1 ].style.display = "none";
// Check if empty table cells still have offsetWidth/Height
// (IE <= 8 fail this test)
support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].of
fsetHeight === 0 );
// Figure out if the W3C box model works as expected
div.innerHTML = "";
div.style.width = div.style.paddingLeft = "1px";
jQuery.boxModel = support.boxModel = div.offsetWidth === 2;
if ( typeof div.style.zoom !== "undefined" ) {
// Check if natively block-level elements act like i
nline-block
// elements when setting their display to 'inline' a
nd giving
// them layout
// (IE < 8 does this)
div.style.display = "inline";
div.style.zoom = 1;
support.inlineBlockNeedsLayout = ( div.offsetWidth =
== 2 );
// Check if elements with layout shrink-wrap their c
hildren
// (IE 6 does this)
div.style.display = "";
div.innerHTML = "<div style='width:4px;'></div>";
support.shrinkWrapBlocks = ( div.offsetWidth !== 2 )
;
}
div.style.cssText = ptlm + vb;
div.innerHTML = html;
outer = div.firstChild;
inner = outer.firstChild;
td = outer.nextSibling.firstChild.firstChild;
offsetSupport = {
doesNotAddBorder: ( inner.offsetTop !== 5 ),
doesAddBorderForTableAndCells: ( td.offsetTop === 5
)
};
inner.style.position = "fixed";
inner.style.top = "20px";
// safari subtracts parent border width here which is 5px
offsetSupport.fixedPosition = ( inner.offsetTop === 20 || in
ner.offsetTop === 15 );
inner.style.position = inner.style.top = "";
outer.style.overflow = "hidden";
outer.style.position = "relative";
offsetSupport.subtractsBorderForOverflowNotVisible = ( inner
.offsetTop === -5 );
offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offs
etTop !== conMarginTop );
body.removeChild( container );
div = container = null;
jQuery.extend( support, offsetSupport );
});
return support;
})();
var rbrace = /^(?:\{.*\}|\[.*\])$/,
rmultiDash = /([A-Z])/g;
jQuery.extend({
cache: {},
// Please use with caution
uuid: 0,
// Unique for each copy of jQuery on the page
// Non-digits removed to match rinlinejQuery
expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\
D/g, "" ),
// The following elements throw uncatchable exceptions if you
// attempt to add expando properties to them.
noData: {
"embed": true,
// Ban all objects except for Flash (which handle expandos)
"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
"applet": true
},
hasData: function( elem ) {
elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ]
: elem[ jQuery.expando ];
return !!elem && !isEmptyDataObject( elem );
},
data: function( elem, name, data, pvt /* Internal Use Only */ ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
var privateCache, thisCache, ret,
internalKey = jQuery.expando,
getByName = typeof name === "string",
// We have to handle DOM nodes and JS objects differ
ently because IE6-7
// can't GC object references properly across the DO
M-JS boundary
isNode = elem.nodeType,
// Only DOM nodes need the global jQuery cache; JS o
bject data is
// attached directly to the object so GC can occur a
utomatically
cache = isNode ? jQuery.cache : elem,
// Only defining an ID for JS objects if its cache a
lready exists allows
// the code to shortcut on the same path as a DOM no
de with no cache
id = isNode ? elem[ internalKey ] : elem[ internalKe
y ] && internalKey,
isEvents = name === "events";
// Avoid doing any more work than we need to when trying to
get data on an
// object that has no data at all
if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].
data)) && getByName && data === undefined ) {
return;
}
if ( !id ) {
// Only DOM nodes need a new unique ID for each elem
ent since their data
// ends up in the global cache
if ( isNode ) {
elem[ internalKey ] = id = ++jQuery.uuid;
} else {
id = internalKey;
}
}
if ( !cache[ id ] ) {
cache[ id ] = {};
// Avoids exposing jQuery metadata on plain JS objec
ts when the object
// is serialized using JSON.stringify
if ( !isNode ) {
cache[ id ].toJSON = jQuery.noop;
}
}
// An object can be passed to jQuery.data instead of a key/v
alue pair; this gets
// shallow copied over onto the existing cache
if ( typeof name === "object" || typeof name === "function"
) {
if ( pvt ) {
cache[ id ] = jQuery.extend( cache[ id ], na
me );
} else {
cache[ id ].data = jQuery.extend( cache[ id
].data, name );
}
}
privateCache = thisCache = cache[ id ];
// jQuery data() is stored in a separate object inside the o
bject's internal data
// cache in order to avoid key collisions between internal d
ata and user-defined
// data.
if ( !pvt ) {
if ( !thisCache.data ) {
thisCache.data = {};
}
thisCache = thisCache.data;
}
if ( data !== undefined ) {
thisCache[ jQuery.camelCase( name ) ] = data;
}
// Users should not attempt to inspect the internal events o
bject using jQuery.data,
// it is undocumented and subject to change. But does anyone
listen? No.
if ( isEvents && !thisCache[ name ] ) {
return privateCache.events;
}
// Check for both converted-to-camel and non-converted data
property names
// If a data property was specified
if ( getByName ) {
// First Try to find as-is property data
ret = thisCache[ name ];
// Test for null|undefined property data
if ( ret == null ) {
// Try to find the camelCased property
ret = thisCache[ jQuery.camelCase( name ) ];
}
} else {
ret = thisCache;
}
return ret;
},
removeData: function( elem, name, pvt /* Internal Use Only */ ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
var thisCache, i, l,
// Reference to internal data cache key
internalKey = jQuery.expando,
isNode = elem.nodeType,
// See jQuery.data for more information
cache = isNode ? jQuery.cache : elem,
// See jQuery.data for more information
id = isNode ? elem[ internalKey ] : internalKey;
// If there is already no cache entry for this object, there
is no
// purpose in continuing
if ( !cache[ id ] ) {
return;
}
if ( name ) {
thisCache = pvt ? cache[ id ] : cache[ id ].data;
if ( thisCache ) {
// Support array or space separated string n
ames for data keys
if ( !jQuery.isArray( name ) ) {
// try the string as a key before an
y manipulation
if ( name in thisCache ) {
name = [ name ];
} else {
// split the camel cased ver
sion by spaces unless a key with the spaces exists
name = jQuery.camelCase( nam
e );
if ( name in thisCache ) {
name = [ name ];
} else {
name = name.split( "
" );
}
}
}
for ( i = 0, l = name.length; i < l; i++ ) {
delete thisCache[ name[i] ];
}
// If there is no data left in the cache, we
want to continue
// and let the cache object itself get destr
oyed
if ( !( pvt ? isEmptyDataObject : jQuery.isE
mptyObject )( thisCache ) ) {
return;
}
}
}
// See jQuery.data for more information
if ( !pvt ) {
delete cache[ id ].data;
// Don't destroy the parent cache unless the interna
l data object
// had been the only thing left in it
if ( !isEmptyDataObject(cache[ id ]) ) {
return;
}
}
// Browsers that fail expando deletion also refuse to delete
expandos on
// the window, but it will allow it on all other JS objects;
other browsers
// don't care
// Ensure that `cache` is not a window object #10080
if ( jQuery.support.deleteExpando || !cache.setInterval ) {
delete cache[ id ];
} else {
cache[ id ] = null;
}
// We destroyed the cache and need to eliminate the expando
on the node to avoid
// false lookups in the cache for entries that no longer exi
st
if ( isNode ) {
// IE does not allow us to delete expando properties
from nodes,
// nor does it have a removeAttribute function on Do
cument nodes;
// we must handle all of these cases
if ( jQuery.support.deleteExpando ) {
delete elem[ internalKey ];
} else if ( elem.removeAttribute ) {
elem.removeAttribute( internalKey );
} else {
elem[ internalKey ] = null;
}
}
},
// For internal use only.
_data: function( elem, name, data ) {
return jQuery.data( elem, name, data, true );
},
// A method for determining if a DOM node can handle the data expand
o
acceptData: function( elem ) {
if ( elem.nodeName ) {
var match = jQuery.noData[ elem.nodeName.toLowerCase
() ];
if ( match ) {
return !(match === true || elem.getAttribute
("classid") !== match);
}
}
return true;
}
});
jQuery.fn.extend({
data: function( key, value ) {
var parts, attr, name,
data = null;
if ( typeof key === "undefined" ) {
if ( this.length ) {
data = jQuery.data( this[0] );
if ( this[0].nodeType === 1 && !jQuery._data
( this[0], "parsedAttrs" ) ) {
attr = this[0].attributes;
for ( var i = 0, l = attr.length; i
< l; i++ ) {
name = attr[i].name;
if ( name.indexOf( "data-" )
=== 0 ) {
name = jQuery.camelC
ase( name.substring(5) );
dataAttr( this[0], n
ame, data[ name ] );
}
}
jQuery._data( this[0], "parsedAttrs"
, true );
}
}
return data;
} else if ( typeof key === "object" ) {
return this.each(function() {
jQuery.data( this, key );
});
}
parts = key.split(".");
parts[1] = parts[1] ? "." + parts[1] : "";
if ( value === undefined ) {
data = this.triggerHandler("getData" + parts[1] + "!
", [parts[0]]);
// Try to fetch any internally stored data first
if ( data === undefined && this.length ) {
data = jQuery.data( this[0], key );
data = dataAttr( this[0], key, data );
}
return data === undefined && parts[1] ?
this.data( parts[0] ) :
data;
} else {
return this.each(function() {
var self = jQuery( this ),
args = [ parts[0], value ];
self.triggerHandler( "setData" + parts[1] +
"!", args );
jQuery.data( this, key, value );
self.triggerHandler( "changeData" + parts[1]
+ "!", args );
});
}
},
removeData: function( key ) {
return this.each(function() {
jQuery.removeData( this, key );
});
}
});
function dataAttr( elem, key, data ) {
// If nothing was found internally, try to fetch any
// data from the HTML5 data-* attribute
if ( data === undefined && elem.nodeType === 1 ) {
var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowe
rCase();
data = elem.getAttribute( name );
if ( typeof data === "string" ) {
try {
data = data === "true" ? true :
data === "false" ? false :
data === "null" ? null :
jQuery.isNumeric( data ) ? parseFloat( data
) :
rbrace.test( data ) ? jQuery.parseJS
ON( data ) :
data;
} catch( e ) {}
// Make sure we set the data so it isn't changed lat
er
jQuery.data( elem, key, data );
} else {
data = undefined;
}
}
return data;
}
// checks a cache object for emptiness
function isEmptyDataObject( obj ) {
for ( var name in obj ) {
// if the public data object is empty, the private is still
empty
if ( name === "data" && jQuery.isEmptyObject( obj[name] ) )
{
continue;
}
if ( name !== "toJSON" ) {
return false;
}
}
return true;
}
function handleQueueMarkDefer( elem, type, src ) {
var deferDataKey = type + "defer",
queueDataKey = type + "queue",
markDataKey = type + "mark",
defer = jQuery._data( elem, deferDataKey );
if ( defer &&
( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
// Give room for hard-coded callbacks to fire first
// and eventually mark/queue something else on the element
setTimeout( function() {
if ( !jQuery._data( elem, queueDataKey ) &&
!jQuery._data( elem, markDataKey ) ) {
jQuery.removeData( elem, deferDataKey, true
);
defer.fire();
}
}, 0 );
}
}
jQuery.extend({
_mark: function( elem, type ) {
if ( elem ) {
type = ( type || "fx" ) + "mark";
jQuery._data( elem, type, (jQuery._data( elem, type
) || 0) + 1 );
}
},
_unmark: function( force, elem, type ) {
if ( force !== true ) {
type = elem;
elem = force;
force = false;
}
if ( elem ) {
type = type || "fx";
var key = type + "mark",
count = force ? 0 : ( (jQuery._data( elem, k
ey ) || 1) - 1 );
if ( count ) {
jQuery._data( elem, key, count );
} else {
jQuery.removeData( elem, key, true );
handleQueueMarkDefer( elem, type, "mark" );
}
}
},
queue: function( elem, type, data ) {
var q;
if ( elem ) {
type = ( type || "fx" ) + "queue";
q = jQuery._data( elem, type );
// Speed up dequeue by getting out quickly if this i
s just a lookup
if ( data ) {
if ( !q || jQuery.isArray(data) ) {
q = jQuery._data( elem, type, jQuery
.makeArray(data) );
} else {
q.push( data );
}
}
return q || [];
}
},
dequeue: function( elem, type ) {
type = type || "fx";
var queue = jQuery.queue( elem, type ),
fn = queue.shift(),
hooks = {};
// If the fx queue is dequeued, always remove the progress s
entinel
if ( fn === "inprogress" ) {
fn = queue.shift();
}
if ( fn ) {
// Add a progress sentinel to prevent the fx queue f
rom being
// automatically dequeued
if ( type === "fx" ) {
queue.unshift( "inprogress" );
}
jQuery._data( elem, type + ".run", hooks );
fn.call( elem, function() {
jQuery.dequeue( elem, type );
}, hooks );
}
if ( !queue.length ) {
jQuery.removeData( elem, type + "queue " + type + ".
run", true );
handleQueueMarkDefer( elem, type, "queue" );
}
}
});
jQuery.fn.extend({
queue: function( type, data ) {
if ( typeof type !== "string" ) {
data = type;
type = "fx";
}
if ( data === undefined ) {
return jQuery.queue( this[0], type );
}
return this.each(function() {
var queue = jQuery.queue( this, type, data );
if ( type === "fx" && queue[0] !== "inprogress" ) {
jQuery.dequeue( this, type );
}
});
},
dequeue: function( type ) {
return this.each(function() {
jQuery.dequeue( this, type );
});
},
// Based off of the plugin by Clint Helfers, with permission.
// http://blindsignals.com/index.php/2009/07/jquery-delay/
delay: function( time, type ) {
time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
type = type || "fx";
return this.queue( type, function( next, hooks ) {
var timeout = setTimeout( next, time );
hooks.stop = function() {
clearTimeout( timeout );
};
});
},
clearQueue: function( type ) {
return this.queue( type || "fx", [] );
},
// Get a promise resolved when queues of a certain type
// are emptied (fx is the type by default)
promise: function( type, object ) {
if ( typeof type !== "string" ) {
object = type;
type = undefined;
}
type = type || "fx";
var defer = jQuery.Deferred(),
elements = this,
i = elements.length,
count = 1,
deferDataKey = type + "defer",
queueDataKey = type + "queue",
markDataKey = type + "mark",
tmp;
function resolve() {
if ( !( --count ) ) {
defer.resolveWith( elements, [ elements ] );
}
}
while( i-- ) {
if (( tmp = jQuery.data( elements[ i ], deferDataKey
, undefined, true ) ||
( jQuery.data( elements[ i ], queueD
ataKey, undefined, true ) ||
jQuery.data( elements[ i ],
markDataKey, undefined, true ) ) &&
jQuery.data( elements[ i ], deferDat
aKey, jQuery.Callbacks( "once memory" ), true ) )) {
count++;
tmp.add( resolve );
}
}
resolve();
return defer.promise();
}
});
var rclass = /[\n\t\r]/g,
rspace = /\s+/,
rreturn = /\r/g,
rtype = /^(?:button|input)$/i,
rfocusable = /^(?:button|input|object|select|textarea)$/i,
rclickable = /^a(?:rea)?$/i,
rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disa
bled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
getSetAttribute = jQuery.support.getSetAttribute,
nodeHook, boolHook, fixSpecified;
jQuery.fn.extend({
attr: function( name, value ) {
return jQuery.access( this, name, value, true, jQuery.attr )
;
},
removeAttr: function( name ) {
return this.each(function() {
jQuery.removeAttr( this, name );
});
},
prop: function( name, value ) {
return jQuery.access( this, name, value, true, jQuery.prop )
;
},
removeProp: function( name ) {
name = jQuery.propFix[ name ] || name;
return this.each(function() {
// try/catch handles cases where IE balks (such as r
emoving a property on window)
try {
this[ name ] = undefined;
delete this[ name ];
} catch( e ) {}
});
},
addClass: function( value ) {
var classNames, i, l, elem,
setClass, c, cl;
if ( jQuery.isFunction( value ) ) {
return this.each(function( j ) {
jQuery( this ).addClass( value.call(this, j,
this.className) );
});
}
if ( value && typeof value === "string" ) {
classNames = value.split( rspace );
for ( i = 0, l = this.length; i < l; i++ ) {
elem = this[ i ];
if ( elem.nodeType === 1 ) {
if ( !elem.className && classNames.l
ength === 1 ) {
elem.className = value;
} else {
setClass = " " + elem.classN
ame + " ";
for ( c = 0, cl = classNames
.length; c < cl; c++ ) {
if ( !~setClass.inde
xOf( " " + classNames[ c ] + " " ) ) {
setClass +=
classNames[ c ] + " ";
}
}
elem.className = jQuery.trim
( setClass );
}
}
}
}
return this;
},
removeClass: function( value ) {
var classNames, i, l, elem, className, c, cl;
if ( jQuery.isFunction( value ) ) {
return this.each(function( j ) {
jQuery( this ).removeClass( value.call(this,
j, this.className) );
});
}
if ( (value && typeof value === "string") || value === undef
ined ) {
classNames = ( value || "" ).split( rspace );
for ( i = 0, l = this.length; i < l; i++ ) {
elem = this[ i ];
if ( elem.nodeType === 1 && elem.className )
{
if ( value ) {
className = (" " + elem.clas
sName + " ").replace( rclass, " " );
for ( c = 0, cl = classNames
.length; c < cl; c++ ) {
className = classNam
e.replace(" " + classNames[ c ] + " ", " ");
}
elem.className = jQuery.trim
( className );
} else {
elem.className = "";
}
}
}
}
return this;
},
toggleClass: function( value, stateVal ) {
var type = typeof value,
isBool = typeof stateVal === "boolean";
if ( jQuery.isFunction( value ) ) {
return this.each(function( i ) {
jQuery( this ).toggleClass( value.call(this,
i, this.className, stateVal), stateVal );
});
}
return this.each(function() {
if ( type === "string" ) {
// toggle individual class names
var className,
i = 0,
self = jQuery( this ),
state = stateVal,
classNames = value.split( rspace );
while ( (className = classNames[ i++ ]) ) {
// check each className given, space
seperated list
state = isBool ? state : !self.hasCl
ass( className );
self[ state ? "addClass" : "removeCl
ass" ]( className );
}
} else if ( type === "undefined" || type === "boolea
n" ) {
if ( this.className ) {
// store className if set
jQuery._data( this, "__className__",
this.className );
}
// toggle whole className
this.className = this.className || value ===
false ? "" : jQuery._data( this, "__className__" ) || "";
}
});
},
hasClass: function( selector ) {
var className = " " + selector + " ",
i = 0,
l = this.length;
for ( ; i < l; i++ ) {
if ( this[i].nodeType === 1 && (" " + this[i].classN
ame + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
return true;
}
}
return false;
},
val: function( value ) {
var hooks, ret, isFunction,
elem = this[0];
if ( !arguments.length ) {
if ( elem ) {
hooks = jQuery.valHooks[ elem.nodeName.toLow
erCase() ] || jQuery.valHooks[ elem.type ];
if ( hooks && "get" in hooks && (ret = hooks
.get( elem, "value" )) !== undefined ) {
return ret;
}
ret = elem.value;
return typeof ret === "string" ?
// handle most common string cases
ret.replace(rreturn, "") :
// handle cases where value is null/
undef or number
ret == null ? "" : ret;
}
return;
}
isFunction = jQuery.isFunction( value );
return this.each(function( i ) {
var self = jQuery(this), val;
if ( this.nodeType !== 1 ) {
return;
}
if ( isFunction ) {
val = value.call( this, i, self.val() );
} else {
val = value;
}
// Treat null/undefined as ""; convert numbers to st
ring
if ( val == null ) {
val = "";
} else if ( typeof val === "number" ) {
val += "";
} else if ( jQuery.isArray( val ) ) {
val = jQuery.map(val, function ( value ) {
return value == null ? "" : value +
"";
});
}
hooks = jQuery.valHooks[ this.nodeName.toLowerCase()
] || jQuery.valHooks[ this.type ];
// If set returns undefined, fall back to normal set
ting
if ( !hooks || !("set" in hooks) || hooks.set( this,
val, "value" ) === undefined ) {
this.value = val;
}
});
}
});
jQuery.extend({
valHooks: {
option: {
get: function( elem ) {
// attributes.value is undefined in Blackber
ry 4.7 but
// uses .value. See #6932
var val = elem.attributes.value;
return !val || val.specified ? elem.value :
elem.text;
}
},
select: {
get: function( elem ) {
var value, i, max, option,
index = elem.selectedIndex,
values = [],
options = elem.options,
one = elem.type === "select-one";
// Nothing was selected
if ( index < 0 ) {
return null;
}
// Loop through all the selected options
i = one ? index : 0;
max = one ? index + 1 : options.length;
for ( ; i < max; i++ ) {
option = options[ i ];
// Don't return options that are dis
abled or in a disabled optgroup
if ( option.selected && (jQuery.supp
ort.optDisabled ? !option.disabled : option.getAttribute("disabled") === nu
ll) &&
(!option.parentNode.
disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
// Get the specific value fo
r the option
value = jQuery( option ).val
();
// We don't need an array fo
r one selects
if ( one ) {
return value;
}
// Multi-Selects return an a
rray
values.push( value );
}
}
// Fixes Bug #2551 -- select.val() broken in
IE after form.reset()
if ( one && !values.length && options.length
) {
return jQuery( options[ index ] ).va
l();
}
return values;
},
set: function( elem, value ) {
var values = jQuery.makeArray( value );
jQuery(elem).find("option").each(function()
{
this.selected = jQuery.inArray( jQue
ry(this).val(), values ) >= 0;
});
if ( !values.length ) {
elem.selectedIndex = -1;
}
return values;
}
}
},
attrFn: {
val: true,
css: true,
html: true,
text: true,
data: true,
width: true,
height: true,
offset: true
},
attr: function( elem, name, value, pass ) {
var ret, hooks, notxml,
nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute n
odes
if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
return;
}
if ( pass && name in jQuery.attrFn ) {
return jQuery( elem )[ name ]( value );
}
// Fallback to prop when attributes are not supported
if ( typeof elem.getAttribute === "undefined" ) {
return jQuery.prop( elem, name, value );
}
notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
// All attributes are lowercase
// Grab necessary hook if one is defined
if ( notxml ) {
name = name.toLowerCase();
hooks = jQuery.attrHooks[ name ] || ( rboolean.test(
name ) ? boolHook : nodeHook );
}
if ( value !== undefined ) {
if ( value === null ) {
jQuery.removeAttr( elem, name );
return;
} else if ( hooks && "set" in hooks && notxml && (re
t = hooks.set( elem, value, name )) !== undefined ) {
return ret;
} else {
elem.setAttribute( name, "" + value );
return value;
}
} else if ( hooks && "get" in hooks && notxml && (ret = hook
s.get( elem, name )) !== null ) {
return ret;
} else {
ret = elem.getAttribute( name );
// Non-existent attributes return null, we normalize
to undefined
return ret === null ?
undefined :
ret;
}
},
removeAttr: function( elem, value ) {
var propName, attrNames, name, l,
i = 0;
if ( value && elem.nodeType === 1 ) {
attrNames = value.toLowerCase().split( rspace );
l = attrNames.length;
for ( ; i < l; i++ ) {
name = attrNames[ i ];
if ( name ) {
propName = jQuery.propFix[ name ] ||
name;
// See #9699 for explanation of this
approach (setting first, then removal)
jQuery.attr( elem, name, "" );
elem.removeAttribute( getSetAttribut
e ? name : propName );
// Set corresponding property to fal
se for boolean attributes
if ( rboolean.test( name ) && propNa
me in elem ) {
elem[ propName ] = false;
}
}
}
}
},
attrHooks: {
type: {
set: function( elem, value ) {
// We can't allow the type property to be ch
anged (since it causes problems in IE)
if ( rtype.test( elem.nodeName ) && elem.par
entNode ) {
jQuery.error( "type property can't b
e changed" );
} else if ( !jQuery.support.radioValue && va
lue === "radio" && jQuery.nodeName(elem, "input") ) {
// Setting the type on a radio butto
n after the value resets the value in IE6-9
// Reset value to it's default in ca
se type is set after value
// This is for element creation
var val = elem.value;
elem.setAttribute( "type", value );
if ( val ) {
elem.value = val;
}
return value;
}
}
},
// Use the value property for back compat
// Use the nodeHook for button elements in IE6/7 (#1954)
value: {
get: function( elem, name ) {
if ( nodeHook && jQuery.nodeName( elem, "but
ton" ) ) {
return nodeHook.get( elem, name );
}
return name in elem ?
elem.value :
null;
},
set: function( elem, value, name ) {
if ( nodeHook && jQuery.nodeName( elem, "but
ton" ) ) {
return nodeHook.set( elem, value, na
me );
}
// Does not return so that setAttribute is a
lso used
elem.value = value;
}
}
},
propFix: {
tabindex: "tabIndex",
readonly: "readOnly",
"for": "htmlFor",
"class": "className",
maxlength: "maxLength",
cellspacing: "cellSpacing",
cellpadding: "cellPadding",
rowspan: "rowSpan",
colspan: "colSpan",
usemap: "useMap",
frameborder: "frameBorder",
contenteditable: "contentEditable"
},
prop: function( elem, name, value ) {
var ret, hooks, notxml,
nType = elem.nodeType;
// don't get/set properties on text, comment and attribute n
odes
if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
return;
}
notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
if ( notxml ) {
// Fix name and attach hooks
name = jQuery.propFix[ name ] || name;
hooks = jQuery.propHooks[ name ];
}
if ( value !== undefined ) {
if ( hooks && "set" in hooks && (ret = hooks.set( el
em, value, name )) !== undefined ) {
return ret;
} else {
return ( elem[ name ] = value );
}
} else {
if ( hooks && "get" in hooks && (ret = hooks.get( el
em, name )) !== null ) {
return ret;
} else {
return elem[ name ];
}
}
},
propHooks: {
tabIndex: {
get: function( elem ) {
// elem.tabIndex doesn't always return the c
orrect value when it hasn't been explicitly set
// http://fluidproject.org/blog/2008/01/09/g
etting-setting-and-removing-tabindex-values-with-javascript/
var attributeNode = elem.getAttributeNode("t
abindex");
return attributeNode && attributeNode.specif
ied ?
parseInt( attributeNode.value, 10 )
:
rfocusable.test( elem.nodeName ) ||
rclickable.test( elem.nodeName ) && elem.href ?
0 :
undefined;
}
}
}
});
// Add the tabIndex propHook to attrHooks for back-compat (different case i
s intentional)
jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
// Hook for boolean attributes
boolHook = {
get: function( elem, name ) {
// Align boolean attributes with corresponding properties
// Fall back to attribute presence where some booleans are n
ot supported
var attrNode,
property = jQuery.prop( elem, name );
return property === true || typeof property !== "boolean" &&
( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false
?
name.toLowerCase() :
undefined;
},
set: function( elem, value, name ) {
var propName;
if ( value === false ) {
// Remove boolean attributes when set to false
jQuery.removeAttr( elem, name );
} else {
// value is true since we know at this point it's ty
pe boolean and not false
// Set boolean attributes to the same name and set t
he DOM property
propName = jQuery.propFix[ name ] || name;
if ( propName in elem ) {
// Only set the IDL specifically if it alrea
dy exists on the element
elem[ propName ] = true;
}
elem.setAttribute( name, name.toLowerCase() );
}
return name;
}
};
// IE6/7 do not support getting/setting some attributes with get/setAttribu
te
if ( !getSetAttribute ) {
fixSpecified = {
name: true,
id: true
};
// Use this for any attribute in IE6/7
// This fixes almost every IE6/7 issue
nodeHook = jQuery.valHooks.button = {
get: function( elem, name ) {
var ret;
ret = elem.getAttributeNode( name );
return ret && ( fixSpecified[ name ] ? ret.nodeValue
!== "" : ret.specified ) ?
ret.nodeValue :
undefined;
},
set: function( elem, value, name ) {
// Set the existing or create a new attribute node
var ret = elem.getAttributeNode( name );
if ( !ret ) {
ret = document.createAttribute( name );
elem.setAttributeNode( ret );
}
return ( ret.nodeValue = value + "" );
}
};
// Apply the nodeHook to tabindex
jQuery.attrHooks.tabindex.set = nodeHook.set;
// Set width and height to auto instead of 0 on empty string( Bug #8
150 )
// This is for removals
jQuery.each([ "width", "height" ], function( i, name ) {
jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[
name ], {
set: function( elem, value ) {
if ( value === "" ) {
elem.setAttribute( name, "auto" );
return value;
}
}
});
});
// Set contenteditable to false on removals(#10429)
// Setting to empty string throws an error as an invalid value
jQuery.attrHooks.contenteditable = {
get: nodeHook.get,
set: function( elem, value, name ) {
if ( value === "" ) {
value = "false";
}
nodeHook.set( elem, value, name );
}
};
}
// Some attributes require a special call on IE
if ( !jQuery.support.hrefNormalized ) {
jQuery.each([ "href", "src", "width", "height" ], function( i, name
) {
jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[
name ], {
get: function( elem ) {
var ret = elem.getAttribute( name, 2 );
return ret === null ? undefined : ret;
}
});
});
}
if ( !jQuery.support.style ) {
jQuery.attrHooks.style = {
get: function( elem ) {
// Return undefined in the case of empty string
// Normalize to lowercase since IE uppercases css pr
operty names
return elem.style.cssText.toLowerCase() || undefined
;
},
set: function( elem, value ) {
return ( elem.style.cssText = "" + value );
}
};
}
// Safari mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
if ( !jQuery.support.optSelected ) {
jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected
, {
get: function( elem ) {
var parent = elem.parentNode;
if ( parent ) {
parent.selectedIndex;
// Make sure that it also works with optgrou
ps, see #5701
if ( parent.parentNode ) {
parent.parentNode.selectedIndex;
}
}
return null;
}
});
}
// IE6/7 call enctype encoding
if ( !jQuery.support.enctype ) {
jQuery.propFix.enctype = "encoding";
}
// Radios and checkboxes getter/setter
if ( !jQuery.support.checkOn ) {
jQuery.each([ "radio", "checkbox" ], function() {
jQuery.valHooks[ this ] = {
get: function( elem ) {
// Handle the case where in Webkit "" is ret
urned instead of "on" if a value isn't specified
return elem.getAttribute("value") === null ?
"on" : elem.value;
}
};
});
}
jQuery.each([ "radio", "checkbox" ], function() {
jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
set: function( elem, value ) {
if ( jQuery.isArray( value ) ) {
return ( elem.checked = jQuery.inArray( jQue
ry(elem).val(), value ) >= 0 );
}
}
});
});
var rformElems = /^(?:textarea|input|select)$/i,
rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
rhoverHack = /\bhover(\.\S+)?\b/,
rkeyEvent = /^key/,
rmouseEvent = /^(?:mouse|contextmenu)|click/,
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
quickParse = function( selector ) {
var quick = rquickIs.exec( selector );
if ( quick ) {
// 0 1 2 3
// [ _, tag, id, class ]
quick[1] = ( quick[1] || "" ).toLowerCase();
quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + qui
ck[3] + "(?:\\s|$)" );
}
return quick;
},
quickIs = function( elem, m ) {
var attrs = elem.attributes || {};
return (
(!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
(!m[2] || (attrs.id || {}).value === m[2]) &&
(!m[3] || m[3].test( (attrs[ "class" ] || {}).value
))
);
},
hoverHack = function( events ) {
return jQuery.event.special.hover ? events : events.replace(
rhoverHack, "mouseenter$1 mouseleave$1" );
};
/*
* Helper functions for managing events -- not part of the public interface
.
* Props to Dean Edwards' addEvent library for many of the ideas.
*/
jQuery.event = {
add: function( elem, types, handler, data, selector ) {
var elemData, eventHandle, events,
t, tns, type, namespaces, handleObj,
handleObjIn, quick, handlers, special;
// Don't attach events to noData or text/comment nodes (allo
w plain objects tho)
if ( elem.nodeType === 3 || elem.nodeType === 8 || !types ||
!handler || !(elemData = jQuery._data( elem )) ) {
return;
}
// Caller can pass in an object of custom data in lieu of th
e handler
if ( handler.handler ) {
handleObjIn = handler;
handler = handleObjIn.handler;
}
// Make sure that the handler has a unique ID, used to find/
remove it later
if ( !handler.guid ) {
handler.guid = jQuery.guid++;
}
// Init the element's event structure and main handler, if t
his is the first
events = elemData.events;
if ( !events ) {
elemData.events = events = {};
}
eventHandle = elemData.handle;
if ( !eventHandle ) {
elemData.handle = eventHandle = function( e ) {
// Discard the second event of a jQuery.even
t.trigger() and
// when an event is called after a page has
unloaded
return typeof jQuery !== "undefined" && (!e
|| jQuery.event.triggered !== e.type) ?
jQuery.event.dispatch.apply( eventHa
ndle.elem, arguments ) :
undefined;
};
// Add elem as a property of the handle fn to preven
t a memory leak with IE non-native events
eventHandle.elem = elem;
}
// Handle multiple events separated by a space
// jQuery(...).bind("mouseover mouseout", fn);
types = jQuery.trim( hoverHack(types) ).split( " " );
for ( t = 0; t < types.length; t++ ) {
tns = rtypenamespace.exec( types[t] ) || [];
type = tns[1];
namespaces = ( tns[2] || "" ).split( "." ).sort();
// If event changes its type, use the special event
handlers for the changed type
special = jQuery.event.special[ type ] || {};
// If selector defined, determine special event api
type, otherwise given type
type = ( selector ? special.delegateType : special.b
indType ) || type;
// Update special based on newly reset type
special = jQuery.event.special[ type ] || {};
// handleObj is passed to all event handlers
handleObj = jQuery.extend({
type: type,
origType: tns[1],
data: data,
handler: handler,
guid: handler.guid,
selector: selector,
quick: quickParse( selector ),
namespace: namespaces.join(".")
}, handleObjIn );
// Init the event handler queue if we're the first
handlers = events[ type ];
if ( !handlers ) {
handlers = events[ type ] = [];
handlers.delegateCount = 0;
// Only use addEventListener/attachEvent if
the special events handler returns false
if ( !special.setup || special.setup.call( e
lem, data, namespaces, eventHandle ) === false ) {
// Bind the global event handler to
the element
if ( elem.addEventListener ) {
elem.addEventListener( type,
eventHandle, false );
} else if ( elem.attachEvent ) {
elem.attachEvent( "on" + typ
e, eventHandle );
}
}
}
if ( special.add ) {
special.add.call( elem, handleObj );
if ( !handleObj.handler.guid ) {
handleObj.handler.guid = handler.gui
d;
}
}
// Add to the element's handler list, delegates in f
ront
if ( selector ) {
handlers.splice( handlers.delegateCount++, 0
, handleObj );
} else {
handlers.push( handleObj );
}
// Keep track of which events have ever been used, f
or event optimization
jQuery.event.global[ type ] = true;
}
// Nullify elem to prevent memory leaks in IE
elem = null;
},
global: {},
// Detach an event or set of events from an element
remove: function( elem, types, handler, selector, mappedTypes ) {
var elemData = jQuery.hasData( elem ) && jQuery._data( elem
),
t, tns, type, origType, namespaces, origCount,
j, events, special, handle, eventType, handleObj;
if ( !elemData || !(events = elemData.events) ) {
return;
}
// Once for each type.namespace in types; type may be omitte
d
types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
for ( t = 0; t < types.length; t++ ) {
tns = rtypenamespace.exec( types[t] ) || [];
type = origType = tns[1];
namespaces = tns[2];
// Unbind all events (on this namespace, if provided
) for the element
if ( !type ) {
for ( type in events ) {
jQuery.event.remove( elem, type + ty
pes[ t ], handler, selector, true );
}
continue;
}
special = jQuery.event.special[ type ] || {};
type = ( selector? special.delegateType : special.bi
ndType ) || type;
eventType = events[ type ] || [];
origCount = eventType.length;
namespaces = namespaces ? new RegExp("(^|\\.)" + nam
espaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
// Remove matching events
for ( j = 0; j < eventType.length; j++ ) {
handleObj = eventType[ j ];
if ( ( mappedTypes || origType === handleObj
.origType ) &&
( !handler || handler.guid === hand
leObj.guid ) &&
( !namespaces || namespaces.test( h
andleObj.namespace ) ) &&
( !selector || selector === handleO
bj.selector || selector === "**" && handleObj.selector ) ) {
eventType.splice( j--, 1 );
if ( handleObj.selector ) {
eventType.delegateCount--;
}
if ( special.remove ) {
special.remove.call( elem, h
andleObj );
}
}
}
// Remove generic event handler if we removed someth
ing and no more handlers exist
// (avoids potential for endless recursion during re
moval of special event handlers)
if ( eventType.length === 0 && origCount !== eventTy
pe.length ) {
if ( !special.teardown || special.teardown.c
all( elem, namespaces ) === false ) {
jQuery.removeEvent( elem, type, elem
Data.handle );
}
delete events[ type ];
}
}
// Remove the expando if it's no longer used
if ( jQuery.isEmptyObject( events ) ) {
handle = elemData.handle;
if ( handle ) {
handle.elem = null;
}
// removeData also checks for emptiness and clears t
he expando if empty
// so use it instead of delete
jQuery.removeData( elem, [ "events", "handle" ], tru
e );
}
},
// Events that are safe to short-circuit if no handlers are attached
.
// Native DOM events should not be added, they may have inline handl
ers.
customEvent: {
"getData": true,
"setData": true,
"changeData": true
},
trigger: function( event, data, elem, onlyHandlers ) {
// Don't do events on text and comment nodes
if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) )
{
return;
}
// Event object or event type
var type = event.type || event,
namespaces = [],
cache, exclusive, i, cur, old, ontype, special, hand
le, eventPath, bubbleType;
// focus/blur morphs to focusin/out; ensure we're not firing
them right now
if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
return;
}
if ( type.indexOf( "!" ) >= 0 ) {
// Exclusive events trigger only for the exact event
(no namespaces)
type = type.slice(0, -1);
exclusive = true;
}
if ( type.indexOf( "." ) >= 0 ) {
// Namespaced trigger; create a regexp to match even
t type in handle()
namespaces = type.split(".");
type = namespaces.shift();
namespaces.sort();
}
if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.
event.global[ type ] ) {
// No jQuery handlers for this event type, and it ca
n't have inline handlers
return;
}
// Caller can pass in an Event, Object, or just an event typ
e string
event = typeof event === "object" ?
// jQuery.Event object
event[ jQuery.expando ] ? event :
// Object literal
new jQuery.Event( type, event ) :
// Just the event type (string)
new jQuery.Event( type );
event.type = type;
event.isTrigger = true;
event.exclusive = exclusive;
event.namespace = namespaces.join( "." );
event.namespace_re = event.namespace? new RegExp("(^|\\.)" +
namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
// Handle a global trigger
if ( !elem ) {
// TODO: Stop taunting the data cache; remove global
events and always attach to document
cache = jQuery.cache;
for ( i in cache ) {
if ( cache[ i ].events && cache[ i ].events[
type ] ) {
jQuery.event.trigger( event, data, c
ache[ i ].handle.elem, true );
}
}
return;
}
// Clean up the event in case it is being reused
event.result = undefined;
if ( !event.target ) {
event.target = elem;
}
// Clone any incoming data and prepend the event, creating t
he handler arg list
data = data != null ? jQuery.makeArray( data ) : [];
data.unshift( event );
// Allow special events to draw outside the lines
special = jQuery.event.special[ type ] || {};
if ( special.trigger && special.trigger.apply( elem, data )
=== false ) {
return;
}
// Determine event propagation path in advance, per W3C even
ts spec (#9951)
// Bubble up to document, then to window; watch for a global
ownerDocument var (#9724)
eventPath = [[ elem, special.bindType || type ]];
if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow(
elem ) ) {
bubbleType = special.delegateType || type;
cur = rfocusMorph.test( bubbleType + type ) ? elem :
elem.parentNode;
old = null;
for ( ; cur; cur = cur.parentNode ) {
eventPath.push([ cur, bubbleType ]);
old = cur;
}
// Only add window if we got to document (e.g., not
plain obj or detached DOM)
if ( old && old === elem.ownerDocument ) {
eventPath.push([ old.defaultView || old.pare
ntWindow || window, bubbleType ]);
}
}
// Fire handlers on the event path
for ( i = 0; i < eventPath.length && !event.isPropagationSto
pped(); i++ ) {
cur = eventPath[i][0];
event.type = eventPath[i][1];
handle = ( jQuery._data( cur, "events" ) || {} )[ ev
ent.type ] && jQuery._data( cur, "handle" );
if ( handle ) {
handle.apply( cur, data );
}
// Note that this is a bare JS function and not a jQ
uery handler
handle = ontype && cur[ ontype ];
if ( handle && jQuery.acceptData( cur ) && handle.ap
ply( cur, data ) === false ) {
event.preventDefault();
}
}
event.type = type;
// If nobody prevented the default action, do it now
if ( !onlyHandlers && !event.isDefaultPrevented() ) {
if ( (!special._default || special._default.apply( e
lem.ownerDocument, data ) === false) &&
!(type === "click" && jQuery.nodeName( elem,
"a" )) && jQuery.acceptData( elem ) ) {
// Call a native DOM method on the target wi
th the same name name as the event.
// Can't use an .isFunction() check here bec
ause IE6/7 fails that test.
// Don't do default actions on window, that'
s where global variables be (#6170)
// IE<9 dies on focus/blur to hidden element
(#1486)
if ( ontype && elem[ type ] && ((type !== "f
ocus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isW
indow( elem ) ) {
// Don't re-trigger an onFOO event w
hen we call its FOO() method
old = elem[ ontype ];
if ( old ) {
elem[ ontype ] = null;
}
// Prevent re-triggering of the same
event, since we already bubbled it above
jQuery.event.triggered = type;
elem[ type ]();
jQuery.event.triggered = undefined;
if ( old ) {
elem[ ontype ] = old;
}
}
}
}
return event.result;
},
dispatch: function( event ) {
// Make a writable jQuery.Event from the native event object
event = jQuery.event.fix( event || window.event );
var handlers = ( (jQuery._data( this, "events" ) || {} )[ ev
ent.type ] || []),
delegateCount = handlers.delegateCount,
args = [].slice.call( arguments, 0 ),
run_all = !event.exclusive && !event.namespace,
handlerQueue = [],
i, j, cur, jqcur, ret, selMatch, matched, matches, h
andleObj, sel, related;
// Use the fix-ed jQuery.Event rather than the (read-only) n
ative event
args[0] = event;
event.delegateTarget = this;
// Determine handlers that should run if there are delegated
events
// Avoid disabled elements in IE (#6911) and non-left-click