jquery.js 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827
  1. /*
  2. * jQuery JavaScript Library v1.3.2
  3. * http://jquery.com/
  4. *
  5. * Copyright (c) 2009 John Resig
  6. * Dual licensed under the MIT and GPL licenses.
  7. * http://docs.jquery.com/License
  8. *
  9. * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
  10. * Revision: 6246
  11. */
  12. (function() {
  13. var l = this,g,y = l.jQuery,p = l.$,o = l.jQuery = l.$ = function(E, F) {
  14. return new o.fn.init(E, F)
  15. },D = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f = /^.[^:#\[\.,]*$/;
  16. o.fn = o.prototype = {init:function(E, H) {
  17. E = E || document;
  18. if (E.nodeType) {
  19. this[0] = E;
  20. this.length = 1;
  21. this.context = E;
  22. return this
  23. }
  24. if (typeof E === "string") {
  25. var G = D.exec(E);
  26. if (G && (G[1] || !H)) {
  27. if (G[1]) {
  28. E = o.clean([G[1]], H)
  29. } else {
  30. var I = document.getElementById(G[3]);
  31. if (I && I.id != G[3]) {
  32. return o().find(E)
  33. }
  34. var F = o(I || []);
  35. F.context = document;
  36. F.selector = E;
  37. return F
  38. }
  39. } else {
  40. return o(H).find(E)
  41. }
  42. } else {
  43. if (o.isFunction(E)) {
  44. return o(document).ready(E)
  45. }
  46. }
  47. if (E.selector && E.context) {
  48. this.selector = E.selector;
  49. this.context = E.context
  50. }
  51. return this.setArray(o.isArray(E) ? E : o.makeArray(E))
  52. },selector:"",jquery:"1.3.2",size:function() {
  53. return this.length
  54. },get:function(E) {
  55. return E === g ? Array.prototype.slice.call(this) : this[E]
  56. },pushStack:function(F, H, E) {
  57. var G = o(F);
  58. G.prevObject = this;
  59. G.context = this.context;
  60. if (H === "find") {
  61. G.selector = this.selector + (this.selector ? " " : "") + E
  62. } else {
  63. if (H) {
  64. G.selector = this.selector + "." + H + "(" + E + ")"
  65. }
  66. }
  67. return G
  68. },setArray:function(E) {
  69. this.length = 0;
  70. Array.prototype.push.apply(this, E);
  71. return this
  72. },each:function(F, E) {
  73. return o.each(this, F, E)
  74. },index:function(E) {
  75. return o.inArray(E && E.jquery ? E[0] : E, this)
  76. },attr:function(F, H, G) {
  77. var E = F;
  78. if (typeof F === "string") {
  79. if (H === g) {
  80. return this[0] && o[G || "attr"](this[0], F)
  81. } else {
  82. E = {};
  83. E[F] = H
  84. }
  85. }
  86. return this.each(function(I) {
  87. for (F in E) {
  88. o.attr(G ? this.style : this, F, o.prop(this, E[F], G, I, F))
  89. }
  90. })
  91. },css:function(E, F) {
  92. if ((E == "width" || E == "height") && parseFloat(F) < 0) {
  93. F = g
  94. }
  95. return this.attr(E, F, "curCSS")
  96. },text:function(F) {
  97. if (typeof F !== "object" && F != null) {
  98. return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(F))
  99. }
  100. var E = "";
  101. o.each(F || this, function() {
  102. o.each(this.childNodes, function() {
  103. if (this.nodeType != 8) {
  104. E += this.nodeType != 1 ? this.nodeValue : o.fn.text([this])
  105. }
  106. })
  107. });
  108. return E
  109. },wrapAll:function(E) {
  110. if (this[0]) {
  111. var F = o(E, this[0].ownerDocument).clone();
  112. if (this[0].parentNode) {
  113. F.insertBefore(this[0])
  114. }
  115. F.map(function() {
  116. var G = this;
  117. while (G.firstChild) {
  118. G = G.firstChild
  119. }
  120. return G
  121. }).append(this)
  122. }
  123. return this
  124. },wrapInner:function(E) {
  125. return this.each(function() {
  126. o(this).contents().wrapAll(E)
  127. })
  128. },wrap:function(E) {
  129. return this.each(function() {
  130. o(this).wrapAll(E)
  131. })
  132. },append:function() {
  133. return this.domManip(arguments, true, function(E) {
  134. if (this.nodeType == 1) {
  135. this.appendChild(E)
  136. }
  137. })
  138. },prepend:function() {
  139. return this.domManip(arguments, true, function(E) {
  140. if (this.nodeType == 1) {
  141. this.insertBefore(E, this.firstChild)
  142. }
  143. })
  144. },before:function() {
  145. return this.domManip(arguments, false, function(E) {
  146. this.parentNode.insertBefore(E, this)
  147. })
  148. },after:function() {
  149. return this.domManip(arguments, false, function(E) {
  150. this.parentNode.insertBefore(E, this.nextSibling)
  151. })
  152. },end:function() {
  153. return this.prevObject || o([])
  154. },push:[].push,sort:[].sort,splice:[].splice,find:function(E) {
  155. if (this.length === 1) {
  156. var F = this.pushStack([], "find", E);
  157. F.length = 0;
  158. o.find(E, this[0], F);
  159. return F
  160. } else {
  161. return this.pushStack(o.unique(o.map(this, function(G) {
  162. return o.find(E, G)
  163. })), "find", E)
  164. }
  165. },clone:function(G) {
  166. var E = this.map(function() {
  167. if (!o.support.noCloneEvent && !o.isXMLDoc(this)) {
  168. var I = this.outerHTML;
  169. if (!I) {
  170. var J = this.ownerDocument.createElement("div");
  171. J.appendChild(this.cloneNode(true));
  172. I = J.innerHTML
  173. }
  174. return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]
  175. } else {
  176. return this.cloneNode(true)
  177. }
  178. });
  179. if (G === true) {
  180. var H = this.find("*").andSelf(),F = 0;
  181. E.find("*").andSelf().each(function() {
  182. if (this.nodeName !== H[F].nodeName) {
  183. return
  184. }
  185. var I = o.data(H[F], "events");
  186. for (var K in I) {
  187. for (var J in I[K]) {
  188. o.event.add(this, K, I[K][J], I[K][J].data)
  189. }
  190. }
  191. F++
  192. })
  193. }
  194. return E
  195. },filter:function(E) {
  196. return this.pushStack(o.isFunction(E) && o.grep(this, function(G, F) {
  197. return E.call(G, F)
  198. }) || o.multiFilter(E, o.grep(this, function(F) {
  199. return F.nodeType === 1
  200. })), "filter", E)
  201. },closest:function(E) {
  202. var G = o.expr.match.POS.test(E) ? o(E) : null,F = 0;
  203. return this.map(function() {
  204. var H = this;
  205. while (H && H.ownerDocument) {
  206. if (G ? G.index(H) > -1 : o(H).is(E)) {
  207. o.data(H, "closest", F);
  208. return H
  209. }
  210. H = H.parentNode;
  211. F++
  212. }
  213. })
  214. },not:function(E) {
  215. if (typeof E === "string") {
  216. if (f.test(E)) {
  217. return this.pushStack(o.multiFilter(E, this, true), "not", E)
  218. } else {
  219. E = o.multiFilter(E, this)
  220. }
  221. }
  222. var F = E.length && E[E.length - 1] !== g && !E.nodeType;
  223. return this.filter(function() {
  224. return F ? o.inArray(this, E) < 0 : this != E
  225. })
  226. },add:function(E) {
  227. return this.pushStack(o.unique(o.merge(this.get(), typeof E === "string" ? o(E) : o.makeArray(E))))
  228. },is:function(E) {
  229. return !!E && o.multiFilter(E, this).length > 0
  230. },hasClass:function(E) {
  231. return !!E && this.is("." + E)
  232. },val:function(K) {
  233. if (K === g) {
  234. var E = this[0];
  235. if (E) {
  236. if (o.nodeName(E, "option")) {
  237. return(E.attributes.value || {}).specified ? E.value : E.text
  238. }
  239. if (o.nodeName(E, "select")) {
  240. var I = E.selectedIndex,L = [],M = E.options,H = E.type == "select-one";
  241. if (I < 0) {
  242. return null
  243. }
  244. for (var F = H ? I : 0,J = H ? I + 1 : M.length; F < J; F++) {
  245. var G = M[F];
  246. if (G.selected) {
  247. K = o(G).val();
  248. if (H) {
  249. return K
  250. }
  251. L.push(K)
  252. }
  253. }
  254. return L
  255. }
  256. return(E.value || "").replace(/\r/g, "")
  257. }
  258. return g
  259. }
  260. if (typeof K === "number") {
  261. K += ""
  262. }
  263. return this.each(function() {
  264. if (this.nodeType != 1) {
  265. return
  266. }
  267. if (o.isArray(K) && /radio|checkbox/.test(this.type)) {
  268. this.checked = (o.inArray(this.value, K) >= 0 || o.inArray(this.name, K) >= 0)
  269. } else {
  270. if (o.nodeName(this, "select")) {
  271. var N = o.makeArray(K);
  272. o("option", this).each(function() {
  273. this.selected = (o.inArray(this.value, N) >= 0 || o.inArray(this.text, N) >= 0)
  274. });
  275. if (!N.length) {
  276. this.selectedIndex = -1
  277. }
  278. } else {
  279. this.value = K
  280. }
  281. }
  282. })
  283. },html:function(E) {
  284. return E === g ? (this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : null) : this.empty().append(E)
  285. },replaceWith:function(E) {
  286. return this.after(E).remove()
  287. },eq:function(E) {
  288. return this.slice(E, +E + 1)
  289. },slice:function() {
  290. return this.pushStack(Array.prototype.slice.apply(this, arguments), "slice", Array.prototype.slice.call(arguments).join(","))
  291. },map:function(E) {
  292. return this.pushStack(o.map(this, function(G, F) {
  293. return E.call(G, F, G)
  294. }))
  295. },andSelf:function() {
  296. return this.add(this.prevObject)
  297. },domManip:function(J, M, L) {
  298. if (this[0]) {
  299. var I = (this[0].ownerDocument || this[0]).createDocumentFragment(),F = o.clean(J, (this[0].ownerDocument || this[0]), I),H = I.firstChild;
  300. if (H) {
  301. for (var G = 0,E = this.length; G < E; G++) {
  302. L.call(K(this[G], H), this.length > 1 || G > 0 ? I.cloneNode(true) : I)
  303. }
  304. }
  305. if (F) {
  306. o.each(F, z)
  307. }
  308. }
  309. return this;
  310. function K(N, O) {
  311. return M && o.nodeName(N, "table") && o.nodeName(O, "tr") ? (N.getElementsByTagName("tbody")[0] || N.appendChild(N.ownerDocument.createElement("tbody"))) : N
  312. }
  313. }};
  314. o.fn.init.prototype = o.fn;
  315. function z(E, F) {
  316. if (F.src) {
  317. o.ajax({url:F.src,async:false,dataType:"script"})
  318. } else {
  319. o.globalEval(F.text || F.textContent || F.innerHTML || "")
  320. }
  321. if (F.parentNode) {
  322. F.parentNode.removeChild(F)
  323. }
  324. }
  325. function e() {
  326. return +new Date
  327. }
  328. o.extend = o.fn.extend = function() {
  329. var J = arguments[0] || {},H = 1,I = arguments.length,E = false,G;
  330. if (typeof J === "boolean") {
  331. E = J;
  332. J = arguments[1] || {};
  333. H = 2
  334. }
  335. if (typeof J !== "object" && !o.isFunction(J)) {
  336. J = {}
  337. }
  338. if (I == H) {
  339. J = this;
  340. --H
  341. }
  342. for (; H < I; H++) {
  343. if ((G = arguments[H]) != null) {
  344. for (var F in G) {
  345. var K = J[F],L = G[F];
  346. if (J === L) {
  347. continue
  348. }
  349. if (E && L && typeof L === "object" && !L.nodeType) {
  350. J[F] = o.extend(E, K || (L.length != null ? [] : {}), L)
  351. } else {
  352. if (L !== g) {
  353. J[F] = L
  354. }
  355. }
  356. }
  357. }
  358. }
  359. return J
  360. };
  361. var b = /z-?index|font-?weight|opacity|zoom|line-?height/i,q = document.defaultView || {},s = Object.prototype.toString;
  362. o.extend({noConflict:function(E) {
  363. l.$ = p;
  364. if (E) {
  365. l.jQuery = y
  366. }
  367. return o
  368. },isFunction:function(E) {
  369. return s.call(E) === "[object Function]"
  370. },isArray:function(E) {
  371. return s.call(E) === "[object Array]"
  372. },isXMLDoc:function(E) {
  373. return E.nodeType === 9 && E.documentElement.nodeName !== "HTML" || !!E.ownerDocument && o.isXMLDoc(E.ownerDocument)
  374. },globalEval:function(G) {
  375. if (G && /\S/.test(G)) {
  376. var F = document.getElementsByTagName("head")[0] || document.documentElement,E = document.createElement("script");
  377. E.type = "text/javascript";
  378. if (o.support.scriptEval) {
  379. E.appendChild(document.createTextNode(G))
  380. } else {
  381. E.text = G
  382. }
  383. F.insertBefore(E, F.firstChild);
  384. F.removeChild(E)
  385. }
  386. },nodeName:function(F, E) {
  387. return F.nodeName && F.nodeName.toUpperCase() == E.toUpperCase()
  388. },each:function(G, K, F) {
  389. var E,H = 0,I = G.length;
  390. if (F) {
  391. if (I === g) {
  392. for (E in G) {
  393. if (K.apply(G[E], F) === false) {
  394. break
  395. }
  396. }
  397. } else {
  398. for (; H < I;) {
  399. if (K.apply(G[H++], F) === false) {
  400. break
  401. }
  402. }
  403. }
  404. } else {
  405. if (I === g) {
  406. for (E in G) {
  407. if (K.call(G[E], E, G[E]) === false) {
  408. break
  409. }
  410. }
  411. } else {
  412. for (var J = G[0]; H < I && K.call(J, H, J) !== false; J = G[++H]) {
  413. }
  414. }
  415. }
  416. return G
  417. },prop:function(H, I, G, F, E) {
  418. if (o.isFunction(I)) {
  419. I = I.call(H, F)
  420. }
  421. return typeof I === "number" && G == "curCSS" && !b.test(E) ? I + "px" : I
  422. },className:{add:function(E, F) {
  423. o.each((F || "").split(/\s+/), function(G, H) {
  424. if (E.nodeType == 1 && !o.className.has(E.className, H)) {
  425. E.className += (E.className ? " " : "") + H
  426. }
  427. })
  428. },remove:function(E, F) {
  429. if (E.nodeType == 1) {
  430. E.className = F !== g ? o.grep(E.className.split(/\s+/), function(G) {
  431. return !o.className.has(F, G)
  432. }).join(" ") : ""
  433. }
  434. },has:function(F, E) {
  435. return F && o.inArray(E, (F.className || F).toString().split(/\s+/)) > -1
  436. }},swap:function(H, G, I) {
  437. var E = {};
  438. for (var F in G) {
  439. E[F] = H.style[F];
  440. H.style[F] = G[F]
  441. }
  442. I.call(H);
  443. for (var F in G) {
  444. H.style[F] = E[F]
  445. }
  446. },css:function(H, F, J, E) {
  447. if (F == "width" || F == "height") {
  448. var L,G = {position:"absolute",visibility:"hidden",display:"block"},K = F == "width" ? ["Left","Right"] : ["Top","Bottom"];
  449. function I() {
  450. L = F == "width" ? H.offsetWidth : H.offsetHeight;
  451. if (E === "border") {
  452. return
  453. }
  454. o.each(K, function() {
  455. if (!E) {
  456. L -= parseFloat(o.curCSS(H, "padding" + this, true)) || 0
  457. }
  458. if (E === "margin") {
  459. L += parseFloat(o.curCSS(H, "margin" + this, true)) || 0
  460. } else {
  461. L -= parseFloat(o.curCSS(H, "border" + this + "Width", true)) || 0
  462. }
  463. })
  464. }
  465. if (H.offsetWidth !== 0) {
  466. I()
  467. } else {
  468. o.swap(H, G, I)
  469. }
  470. return Math.max(0, Math.round(L))
  471. }
  472. return o.curCSS(H, F, J)
  473. },curCSS:function(I, F, G) {
  474. var L,E = I.style;
  475. if (F == "opacity" && !o.support.opacity) {
  476. L = o.attr(E, "opacity");
  477. return L == "" ? "1" : L
  478. }
  479. if (F.match(/float/i)) {
  480. F = w
  481. }
  482. if (!G && E && E[F]) {
  483. L = E[F]
  484. } else {
  485. if (q.getComputedStyle) {
  486. if (F.match(/float/i)) {
  487. F = "float"
  488. }
  489. F = F.replace(/([A-Z])/g, "-$1").toLowerCase();
  490. var M = q.getComputedStyle(I, null);
  491. if (M) {
  492. L = M.getPropertyValue(F)
  493. }
  494. if (F == "opacity" && L == "") {
  495. L = "1"
  496. }
  497. } else {
  498. if (I.currentStyle) {
  499. var J = F.replace(/\-(\w)/g, function(N, O) {
  500. return O.toUpperCase()
  501. });
  502. L = I.currentStyle[F] || I.currentStyle[J];
  503. if (!/^\d+(px)?$/i.test(L) && /^\d/.test(L)) {
  504. var H = E.left,K = I.runtimeStyle.left;
  505. I.runtimeStyle.left = I.currentStyle.left;
  506. E.left = L || 0;
  507. L = E.pixelLeft + "px";
  508. E.left = H;
  509. I.runtimeStyle.left = K
  510. }
  511. }
  512. }
  513. }
  514. return L
  515. },clean:function(F, K, I) {
  516. K = K || document;
  517. if (typeof K.createElement === "undefined") {
  518. K = K.ownerDocument || K[0] && K[0].ownerDocument || document
  519. }
  520. if (!I && F.length === 1 && typeof F[0] === "string") {
  521. var H = /^<(\w+)\s*\/?>$/.exec(F[0]);
  522. if (H) {
  523. return[K.createElement(H[1])]
  524. }
  525. }
  526. var G = [],E = [],L = K.createElement("div");
  527. o.each(F, function(P, S) {
  528. if (typeof S === "number") {
  529. S += ""
  530. }
  531. if (!S) {
  532. return
  533. }
  534. if (typeof S === "string") {
  535. S = S.replace(/(<(\w+)[^>]*?)\/>/g, function(U, V, T) {
  536. return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? U : V + "></" + T + ">"
  537. });
  538. var O = S.replace(/^\s+/, "").substring(0, 10).toLowerCase();
  539. var Q = !O.indexOf("<opt") && [1,"<select multiple='multiple'>","</select>"] || !O.indexOf("<leg") && [1,"<fieldset>","</fieldset>"] || O.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1,"<table>","</table>"] || !O.indexOf("<tr") && [2,"<table><tbody>","</tbody></table>"] || (!O.indexOf("<td") || !O.indexOf("<th")) && [3,"<table><tbody><tr>","</tr></tbody></table>"] || !O.indexOf("<col") && [2,"<table><tbody></tbody><colgroup>","</colgroup></table>"] || !o.support.htmlSerialize && [1,"div<div>","</div>"] || [0,"",""];
  540. L.innerHTML = Q[1] + S + Q[2];
  541. while (Q[0]--) {
  542. L = L.lastChild
  543. }
  544. if (!o.support.tbody) {
  545. var R = /<tbody/i.test(S),N = !O.indexOf("<table") && !R ? L.firstChild && L.firstChild.childNodes : Q[1] == "<table>" && !R ? L.childNodes : [];
  546. for (var M = N.length - 1; M >= 0; --M) {
  547. if (o.nodeName(N[M], "tbody") && !N[M].childNodes.length) {
  548. N[M].parentNode.removeChild(N[M])
  549. }
  550. }
  551. }
  552. if (!o.support.leadingWhitespace && /^\s/.test(S)) {
  553. L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]), L.firstChild)
  554. }
  555. S = o.makeArray(L.childNodes)
  556. }
  557. if (S.nodeType) {
  558. G.push(S)
  559. } else {
  560. G = o.merge(G, S)
  561. }
  562. });
  563. if (I) {
  564. for (var J = 0; G[J]; J++) {
  565. if (o.nodeName(G[J], "script") && (!G[J].type || G[J].type.toLowerCase() === "text/javascript")) {
  566. E.push(G[J].parentNode ? G[J].parentNode.removeChild(G[J]) : G[J])
  567. } else {
  568. if (G[J].nodeType === 1) {
  569. G.splice.apply(G, [J + 1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))
  570. }
  571. I.appendChild(G[J])
  572. }
  573. }
  574. return E
  575. }
  576. return G
  577. },attr:function(J, G, K) {
  578. if (!J || J.nodeType == 3 || J.nodeType == 8) {
  579. return g
  580. }
  581. var H = !o.isXMLDoc(J),L = K !== g;
  582. G = H && o.props[G] || G;
  583. if (J.tagName) {
  584. var F = /href|src|style/.test(G);
  585. if (G == "selected" && J.parentNode) {
  586. J.parentNode.selectedIndex
  587. }
  588. if (G in J && H && !F) {
  589. if (L) {
  590. if (G == "type" && o.nodeName(J, "input") && J.parentNode) {
  591. throw"type property can't be changed"
  592. }
  593. J[G] = K
  594. }
  595. if (o.nodeName(J, "form") && J.getAttributeNode(G)) {
  596. return J.getAttributeNode(G).nodeValue
  597. }
  598. if (G == "tabIndex") {
  599. var I = J.getAttributeNode("tabIndex");
  600. return I && I.specified ? I.value : J.nodeName.match(/(button|input|object|select|textarea)/i) ? 0 : J.nodeName.match(/^(a|area)$/i) && J.href ? 0 : g
  601. }
  602. return J[G]
  603. }
  604. if (!o.support.style && H && G == "style") {
  605. return o.attr(J.style, "cssText", K)
  606. }
  607. if (L) {
  608. J.setAttribute(G, "" + K)
  609. }
  610. var E = !o.support.hrefNormalized && H && F ? J.getAttribute(G, 2) : J.getAttribute(G);
  611. return E === null ? g : E
  612. }
  613. if (!o.support.opacity && G == "opacity") {
  614. if (L) {
  615. J.zoom = 1;
  616. J.filter = (J.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(K) + "" == "NaN" ? "" : "alpha(opacity=" + K * 100 + ")")
  617. }
  618. return J.filter && J.filter.indexOf("opacity=") >= 0 ? (parseFloat(J.filter.match(/opacity=([^)]*)/)[1]) / 100) + "" : ""
  619. }
  620. G = G.replace(/-([a-z])/ig, function(M, N) {
  621. return N.toUpperCase()
  622. });
  623. if (L) {
  624. J[G] = K
  625. }
  626. return J[G]
  627. },trim:function(E) {
  628. return(E || "").replace(/^\s+|\s+$/g, "")
  629. },makeArray:function(G) {
  630. var E = [];
  631. if (G != null) {
  632. var F = G.length;
  633. if (F == null || typeof G === "string" || o.isFunction(G) || G.setInterval) {
  634. E[0] = G
  635. } else {
  636. while (F) {
  637. E[--F] = G[F]
  638. }
  639. }
  640. }
  641. return E
  642. },inArray:function(G, H) {
  643. for (var E = 0,F = H.length; E < F; E++) {
  644. if (H[E] === G) {
  645. return E
  646. }
  647. }
  648. return -1
  649. },merge:function(H, E) {
  650. var F = 0,G,I = H.length;
  651. if (!o.support.getAll) {
  652. while ((G = E[F++]) != null) {
  653. if (G.nodeType != 8) {
  654. H[I++] = G
  655. }
  656. }
  657. } else {
  658. while ((G = E[F++]) != null) {
  659. H[I++] = G
  660. }
  661. }
  662. return H
  663. },unique:function(K) {
  664. var F = [],E = {};
  665. try {
  666. for (var G = 0,H = K.length; G < H; G++) {
  667. var J = o.data(K[G]);
  668. if (!E[J]) {
  669. E[J] = true;
  670. F.push(K[G])
  671. }
  672. }
  673. } catch(I) {
  674. F = K
  675. }
  676. return F
  677. },grep:function(F, J, E) {
  678. var G = [];
  679. for (var H = 0,I = F.length; H < I; H++) {
  680. if (!E != !J(F[H], H)) {
  681. G.push(F[H])
  682. }
  683. }
  684. return G
  685. },map:function(E, J) {
  686. var F = [];
  687. for (var G = 0,H = E.length; G < H; G++) {
  688. var I = J(E[G], G);
  689. if (I != null) {
  690. F[F.length] = I
  691. }
  692. }
  693. return F.concat.apply([], F)
  694. }});
  695. var C = navigator.userAgent.toLowerCase();
  696. o.browser = {version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C) && !/opera/.test(C),mozilla:/mozilla/.test(C) && !/(compatible|webkit)/.test(C)};
  697. o.each({parent:function(E) {
  698. return E.parentNode
  699. },parents:function(E) {
  700. return o.dir(E, "parentNode")
  701. },next:function(E) {
  702. return o.nth(E, 2, "nextSibling")
  703. },prev:function(E) {
  704. return o.nth(E, 2, "previousSibling")
  705. },nextAll:function(E) {
  706. return o.dir(E, "nextSibling")
  707. },prevAll:function(E) {
  708. return o.dir(E, "previousSibling")
  709. },siblings:function(E) {
  710. return o.sibling(E.parentNode.firstChild, E)
  711. },children:function(E) {
  712. return o.sibling(E.firstChild)
  713. },contents:function(E) {
  714. return o.nodeName(E, "iframe") ? E.contentDocument || E.contentWindow.document : o.makeArray(E.childNodes)
  715. }}, function(E, F) {
  716. o.fn[E] = function(G) {
  717. var H = o.map(this, F);
  718. if (G && typeof G == "string") {
  719. H = o.multiFilter(G, H)
  720. }
  721. return this.pushStack(o.unique(H), E, G)
  722. }
  723. });
  724. o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"}, function(E, F) {
  725. o.fn[E] = function(G) {
  726. var J = [],L = o(G);
  727. for (var K = 0,H = L.length; K < H; K++) {
  728. var I = (K > 0 ? this.clone(true) : this).get();
  729. o.fn[F].apply(o(L[K]), I);
  730. J = J.concat(I)
  731. }
  732. return this.pushStack(J, E, G)
  733. }
  734. });
  735. o.each({removeAttr:function(E) {
  736. o.attr(this, E, "");
  737. if (this.nodeType == 1) {
  738. this.removeAttribute(E)
  739. }
  740. },addClass:function(E) {
  741. o.className.add(this, E)
  742. },removeClass:function(E) {
  743. o.className.remove(this, E)
  744. },toggleClass:function(F, E) {
  745. if (typeof E !== "boolean") {
  746. E = !o.className.has(this, F)
  747. }
  748. o.className[E ? "add" : "remove"](this, F)
  749. },remove:function(E) {
  750. if (!E || o.filter(E, [this]).length) {
  751. o("*", this).add([this]).each(function() {
  752. o.event.remove(this);
  753. o.removeData(this)
  754. });
  755. if (this.parentNode) {
  756. this.parentNode.removeChild(this)
  757. }
  758. }
  759. },empty:function() {
  760. o(this).children().remove();
  761. while (this.firstChild) {
  762. this.removeChild(this.firstChild)
  763. }
  764. }}, function(E, F) {
  765. o.fn[E] = function() {
  766. return this.each(F, arguments)
  767. }
  768. });
  769. function j(E, F) {
  770. return E[0] && parseInt(o.curCSS(E[0], F, true), 10) || 0
  771. }
  772. var h = "jQuery" + e(),v = 0,A = {};
  773. o.extend({cache:{},data:function(F, E, G) {
  774. F = F == l ? A : F;
  775. var H = F[h];
  776. if (!H) {
  777. H = F[h] = ++v
  778. }
  779. if (E && !o.cache[H]) {
  780. o.cache[H] = {}
  781. }
  782. if (G !== g) {
  783. o.cache[H][E] = G
  784. }
  785. return E ? o.cache[H][E] : H
  786. },removeData:function(F, E) {
  787. F = F == l ? A : F;
  788. var H = F[h];
  789. if (E) {
  790. if (o.cache[H]) {
  791. delete o.cache[H][E];
  792. E = "";
  793. for (E in o.cache[H]) {
  794. break
  795. }
  796. if (!E) {
  797. o.removeData(F)
  798. }
  799. }
  800. } else {
  801. try {
  802. delete F[h]
  803. } catch(G) {
  804. if (F.removeAttribute) {
  805. F.removeAttribute(h)
  806. }
  807. }
  808. delete o.cache[H]
  809. }
  810. },queue:function(F, E, H) {
  811. if (F) {
  812. E = (E || "fx") + "queue";
  813. var G = o.data(F, E);
  814. if (!G || o.isArray(H)) {
  815. G = o.data(F, E, o.makeArray(H))
  816. } else {
  817. if (H) {
  818. G.push(H)
  819. }
  820. }
  821. }
  822. return G
  823. },dequeue:function(H, G) {
  824. var E = o.queue(H, G),F = E.shift();
  825. if (!G || G === "fx") {
  826. F = E[0]
  827. }
  828. if (F !== g) {
  829. F.call(H)
  830. }
  831. }});
  832. o.fn.extend({data:function(E, G) {
  833. var H = E.split(".");
  834. H[1] = H[1] ? "." + H[1] : "";
  835. if (G === g) {
  836. var F = this.triggerHandler("getData" + H[1] + "!", [H[0]]);
  837. if (F === g && this.length) {
  838. F = o.data(this[0], E)
  839. }
  840. return F === g && H[1] ? this.data(H[0]) : F
  841. } else {
  842. return this.trigger("setData" + H[1] + "!", [H[0],G]).each(function() {
  843. o.data(this, E, G)
  844. })
  845. }
  846. },removeData:function(E) {
  847. return this.each(function() {
  848. o.removeData(this, E)
  849. })
  850. },queue:function(E, F) {
  851. if (typeof E !== "string") {
  852. F = E;
  853. E = "fx"
  854. }
  855. if (F === g) {
  856. return o.queue(this[0], E)
  857. }
  858. return this.each(function() {
  859. var G = o.queue(this, E, F);
  860. if (E == "fx" && G.length == 1) {
  861. G[0].call(this)
  862. }
  863. })
  864. },dequeue:function(E) {
  865. return this.each(function() {
  866. o.dequeue(this, E)
  867. })
  868. }});
  869. /*
  870. * Sizzle CSS Selector Engine - v0.9.3
  871. * Copyright 2009, The Dojo Foundation
  872. * Released under the MIT, BSD, and GPL Licenses.
  873. * More information: http://sizzlejs.com/
  874. */
  875. (function() {
  876. var R = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L = 0,H = Object.prototype.toString;
  877. var F = function(Y, U, ab, ac) {
  878. ab = ab || [];
  879. U = U || document;
  880. if (U.nodeType !== 1 && U.nodeType !== 9) {
  881. return[]
  882. }
  883. if (!Y || typeof Y !== "string") {
  884. return ab
  885. }
  886. var Z = [],W,af,ai,T,ad,V,X = true;
  887. R.lastIndex = 0;
  888. while ((W = R.exec(Y)) !== null) {
  889. Z.push(W[1]);
  890. if (W[2]) {
  891. V = RegExp.rightContext;
  892. break
  893. }
  894. }
  895. if (Z.length > 1 && M.exec(Y)) {
  896. if (Z.length === 2 && I.relative[Z[0]]) {
  897. af = J(Z[0] + Z[1], U)
  898. } else {
  899. af = I.relative[Z[0]] ? [U] : F(Z.shift(), U);
  900. while (Z.length) {
  901. Y = Z.shift();
  902. if (I.relative[Y]) {
  903. Y += Z.shift()
  904. }
  905. af = J(Y, af)
  906. }
  907. }
  908. } else {
  909. var ae = ac ? {expr:Z.pop(),set:E(ac)} : F.find(Z.pop(), Z.length === 1 && U.parentNode ? U.parentNode : U, Q(U));
  910. af = F.filter(ae.expr, ae.set);
  911. if (Z.length > 0) {
  912. ai = E(af)
  913. } else {
  914. X = false
  915. }
  916. while (Z.length) {
  917. var ah = Z.pop(),ag = ah;
  918. if (!I.relative[ah]) {
  919. ah = ""
  920. } else {
  921. ag = Z.pop()
  922. }
  923. if (ag == null) {
  924. ag = U
  925. }
  926. I.relative[ah](ai, ag, Q(U))
  927. }
  928. }
  929. if (!ai) {
  930. ai = af
  931. }
  932. if (!ai) {
  933. throw"Syntax error, unrecognized expression: " + (ah || Y)
  934. }
  935. if (H.call(ai) === "[object Array]") {
  936. if (!X) {
  937. ab.push.apply(ab, ai)
  938. } else {
  939. if (U.nodeType === 1) {
  940. for (var aa = 0; ai[aa] != null; aa++) {
  941. if (ai[aa] && (ai[aa] === true || ai[aa].nodeType === 1 && K(U, ai[aa]))) {
  942. ab.push(af[aa])
  943. }
  944. }
  945. } else {
  946. for (var aa = 0; ai[aa] != null; aa++) {
  947. if (ai[aa] && ai[aa].nodeType === 1) {
  948. ab.push(af[aa])
  949. }
  950. }
  951. }
  952. }
  953. } else {
  954. E(ai, ab)
  955. }
  956. if (V) {
  957. F(V, U, ab, ac);
  958. if (G) {
  959. hasDuplicate = false;
  960. ab.sort(G);
  961. if (hasDuplicate) {
  962. for (var aa = 1; aa < ab.length; aa++) {
  963. if (ab[aa] === ab[aa - 1]) {
  964. ab.splice(aa--, 1)
  965. }
  966. }
  967. }
  968. }
  969. }
  970. return ab
  971. };
  972. F.matches = function(T, U) {
  973. return F(T, null, null, U)
  974. };
  975. F.find = function(aa, T, ab) {
  976. var Z,X;
  977. if (!aa) {
  978. return[]
  979. }
  980. for (var W = 0,V = I.order.length; W < V; W++) {
  981. var Y = I.order[W],X;
  982. if ((X = I.match[Y].exec(aa))) {
  983. var U = RegExp.leftContext;
  984. if (U.substr(U.length - 1) !== "\\") {
  985. X[1] = (X[1] || "").replace(/\\/g, "");
  986. Z = I.find[Y](X, T, ab);
  987. if (Z != null) {
  988. aa = aa.replace(I.match[Y], "");
  989. break
  990. }
  991. }
  992. }
  993. }
  994. if (!Z) {
  995. Z = T.getElementsByTagName("*")
  996. }
  997. return{set:Z,expr:aa}
  998. };
  999. F.filter = function(ad, ac, ag, W) {
  1000. var V = ad,ai = [],aa = ac,Y,T,Z = ac && ac[0] && Q(ac[0]);
  1001. while (ad && ac.length) {
  1002. for (var ab in I.filter) {
  1003. if ((Y = I.match[ab].exec(ad)) != null) {
  1004. var U = I.filter[ab],ah,af;
  1005. T = false;
  1006. if (aa == ai) {
  1007. ai = []
  1008. }
  1009. if (I.preFilter[ab]) {
  1010. Y = I.preFilter[ab](Y, aa, ag, ai, W, Z);
  1011. if (!Y) {
  1012. T = ah = true
  1013. } else {
  1014. if (Y === true) {
  1015. continue
  1016. }
  1017. }
  1018. }
  1019. if (Y) {
  1020. for (var X = 0; (af = aa[X]) != null; X++) {
  1021. if (af) {
  1022. ah = U(af, Y, X, aa);
  1023. var ae = W ^ !!ah;
  1024. if (ag && ah != null) {
  1025. if (ae) {
  1026. T = true
  1027. } else {
  1028. aa[X] = false
  1029. }
  1030. } else {
  1031. if (ae) {
  1032. ai.push(af);
  1033. T = true
  1034. }
  1035. }
  1036. }
  1037. }
  1038. }
  1039. if (ah !== g) {
  1040. if (!ag) {
  1041. aa = ai
  1042. }
  1043. ad = ad.replace(I.match[ab], "");
  1044. if (!T) {
  1045. return[]
  1046. }
  1047. break
  1048. }
  1049. }
  1050. }
  1051. if (ad == V) {
  1052. if (T == null) {
  1053. throw"Syntax error, unrecognized expression: " + ad
  1054. } else {
  1055. break
  1056. }
  1057. }
  1058. V = ad
  1059. }
  1060. return aa
  1061. };
  1062. var I = F.selectors = {order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T) {
  1063. return T.getAttribute("href")
  1064. }},relative:{"+":function(aa, T, Z) {
  1065. var X = typeof T === "string",ab = X && !/\W/.test(T),Y = X && !ab;
  1066. if (ab && !Z) {
  1067. T = T.toUpperCase()
  1068. }
  1069. for (var W = 0,V = aa.length,U; W < V; W++) {
  1070. if ((U = aa[W])) {
  1071. while ((U = U.previousSibling) && U.nodeType !== 1) {
  1072. }
  1073. aa[W] = Y || U && U.nodeName === T ? U || false : U === T
  1074. }
  1075. }
  1076. if (Y) {
  1077. F.filter(T, aa, true)
  1078. }
  1079. },">":function(Z, U, aa) {
  1080. var X = typeof U === "string";
  1081. if (X && !/\W/.test(U)) {
  1082. U = aa ? U : U.toUpperCase();
  1083. for (var V = 0,T = Z.length; V < T; V++) {
  1084. var Y = Z[V];
  1085. if (Y) {
  1086. var W = Y.parentNode;
  1087. Z[V] = W.nodeName === U ? W : false
  1088. }
  1089. }
  1090. } else {
  1091. for (var V = 0,T = Z.length; V < T; V++) {
  1092. var Y = Z[V];
  1093. if (Y) {
  1094. Z[V] = X ? Y.parentNode : Y.parentNode === U
  1095. }
  1096. }
  1097. if (X) {
  1098. F.filter(U, Z, true)
  1099. }
  1100. }
  1101. },"":function(W, U, Y) {
  1102. var V = L++,T = S;
  1103. if (!U.match(/\W/)) {
  1104. var X = U = Y ? U : U.toUpperCase();
  1105. T = P
  1106. }
  1107. T("parentNode", U, V, W, X, Y)
  1108. },"~":function(W, U, Y) {
  1109. var V = L++,T = S;
  1110. if (typeof U === "string" && !U.match(/\W/)) {
  1111. var X = U = Y ? U : U.toUpperCase();
  1112. T = P
  1113. }
  1114. T("previousSibling", U, V, W, X, Y)
  1115. }},find:{ID:function(U, V, W) {
  1116. if (typeof V.getElementById !== "undefined" && !W) {
  1117. var T = V.getElementById(U[1]);
  1118. return T ? [T] : []
  1119. }
  1120. },NAME:function(V, Y, Z) {
  1121. if (typeof Y.getElementsByName !== "undefined") {
  1122. var U = [],X = Y.getElementsByName(V[1]);
  1123. for (var W = 0,T = X.length; W < T; W++) {
  1124. if (X[W].getAttribute("name") === V[1]) {
  1125. U.push(X[W])
  1126. }
  1127. }
  1128. return U.length === 0 ? null : U
  1129. }
  1130. },TAG:function(T, U) {
  1131. return U.getElementsByTagName(T[1])
  1132. }},preFilter:{CLASS:function(W, U, V, T, Z, aa) {
  1133. W = " " + W[1].replace(/\\/g, "") + " ";
  1134. if (aa) {
  1135. return W
  1136. }
  1137. for (var X = 0,Y; (Y = U[X]) != null; X++) {
  1138. if (Y) {
  1139. if (Z ^ (Y.className && (" " + Y.className + " ").indexOf(W) >= 0)) {
  1140. if (!V) {
  1141. T.push(Y)
  1142. }
  1143. } else {
  1144. if (V) {
  1145. U[X] = false
  1146. }
  1147. }
  1148. }
  1149. }
  1150. return false
  1151. },ID:function(T) {
  1152. return T[1].replace(/\\/g, "")
  1153. },TAG:function(U, T) {
  1154. for (var V = 0; T[V] === false; V++) {
  1155. }
  1156. return T[V] && Q(T[V]) ? U[1] : U[1].toUpperCase()
  1157. },CHILD:function(T) {
  1158. if (T[1] == "nth") {
  1159. var U = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2] == "even" && "2n" || T[2] == "odd" && "2n+1" || !/\D/.test(T[2]) && "0n+" + T[2] || T[2]);
  1160. T[2] = (U[1] + (U[2] || 1)) - 0;
  1161. T[3] = U[3] - 0
  1162. }
  1163. T[0] = L++;
  1164. return T
  1165. },ATTR:function(X, U, V, T, Y, Z) {
  1166. var W = X[1].replace(/\\/g, "");
  1167. if (!Z && I.attrMap[W]) {
  1168. X[1] = I.attrMap[W]
  1169. }
  1170. if (X[2] === "~=") {
  1171. X[4] = " " + X[4] + " "
  1172. }
  1173. return X
  1174. },PSEUDO:function(X, U, V, T, Y) {
  1175. if (X[1] === "not") {
  1176. if (X[3].match(R).length > 1 || /^\w/.test(X[3])) {
  1177. X[3] = F(X[3], null, null, U)
  1178. } else {
  1179. var W = F.filter(X[3], U, V, true ^ Y);
  1180. if (!V) {
  1181. T.push.apply(T, W)
  1182. }
  1183. return false
  1184. }
  1185. } else {
  1186. if (I.match.POS.test(X[0]) || I.match.CHILD.test(X[0])) {
  1187. return true
  1188. }
  1189. }
  1190. return X
  1191. },POS:function(T) {
  1192. T.unshift(true);
  1193. return T
  1194. }},filters:{enabled:function(T) {
  1195. return T.disabled === false && T.type !== "hidden"
  1196. },disabled:function(T) {
  1197. return T.disabled === true
  1198. },checked:function(T) {
  1199. return T.checked === true
  1200. },selected:function(T) {
  1201. T.parentNode.selectedIndex;
  1202. return T.selected === true
  1203. },parent:function(T) {
  1204. return !!T.firstChild
  1205. },empty:function(T) {
  1206. return !T.firstChild
  1207. },has:function(V, U, T) {
  1208. return !!F(T[3], V).length
  1209. },header:function(T) {
  1210. return/h\d/i.test(T.nodeName)
  1211. },text:function(T) {
  1212. return"text" === T.type
  1213. },radio:function(T) {
  1214. return"radio" === T.type
  1215. },checkbox:function(T) {
  1216. return"checkbox" === T.type
  1217. },file:function(T) {
  1218. return"file" === T.type
  1219. },password:function(T) {
  1220. return"password" === T.type
  1221. },submit:function(T) {
  1222. return"submit" === T.type
  1223. },image:function(T) {
  1224. return"image" === T.type
  1225. },reset:function(T) {
  1226. return"reset" === T.type
  1227. },button:function(T) {
  1228. return"button" === T.type || T.nodeName.toUpperCase() === "BUTTON"
  1229. },input:function(T) {
  1230. return/input|select|textarea|button/i.test(T.nodeName)
  1231. }},setFilters:{first:function(U, T) {
  1232. return T === 0
  1233. },last:function(V, U, T, W) {
  1234. return U === W.length - 1
  1235. },even:function(U, T) {
  1236. return T % 2 === 0
  1237. },odd:function(U, T) {
  1238. return T % 2 === 1
  1239. },lt:function(V, U, T) {
  1240. return U < T[3] - 0
  1241. },gt:function(V, U, T) {
  1242. return U > T[3] - 0
  1243. },nth:function(V, U, T) {
  1244. return T[3] - 0 == U
  1245. },eq:function(V, U, T) {
  1246. return T[3] - 0 == U
  1247. }},filter:{PSEUDO:function(Z, V, W, aa) {
  1248. var U = V[1],X = I.filters[U];
  1249. if (X) {
  1250. return X(Z, W, V, aa)
  1251. } else {
  1252. if (U === "contains") {
  1253. return(Z.textContent || Z.innerText || "").indexOf(V[3]) >= 0
  1254. } else {
  1255. if (U === "not") {
  1256. var Y = V[3];
  1257. for (var W = 0,T = Y.length; W < T; W++) {
  1258. if (Y[W] === Z) {
  1259. return false
  1260. }
  1261. }
  1262. return true
  1263. }
  1264. }
  1265. }
  1266. },CHILD:function(T, W) {
  1267. var Z = W[1],U = T;
  1268. switch (Z) {case"only":case"first":while (U = U.previousSibling) {
  1269. if (U.nodeType === 1) {
  1270. return false
  1271. }
  1272. }if (Z == "first") {
  1273. return true
  1274. }U = T;case"last":while (U = U.nextSibling) {
  1275. if (U.nodeType === 1) {
  1276. return false
  1277. }
  1278. }return true;case"nth":var V = W[2],ac = W[3];if (V == 1 && ac == 0) {
  1279. return true
  1280. }var Y = W[0],ab = T.parentNode;if (ab && (ab.sizcache !== Y || !T.nodeIndex)) {
  1281. var X = 0;
  1282. for (U = ab.firstChild; U; U = U.nextSibling) {
  1283. if (U.nodeType === 1) {
  1284. U.nodeIndex = ++X
  1285. }
  1286. }
  1287. ab.sizcache = Y
  1288. }var aa = T.nodeIndex - ac;if (V == 0) {
  1289. return aa == 0
  1290. } else {
  1291. return(aa % V == 0 && aa / V >= 0)
  1292. }
  1293. }
  1294. },ID:function(U, T) {
  1295. return U.nodeType === 1 && U.getAttribute("id") === T
  1296. },TAG:function(U, T) {
  1297. return(T === "*" && U.nodeType === 1) || U.nodeName === T
  1298. },CLASS:function(U, T) {
  1299. return(" " + (U.className || U.getAttribute("class")) + " ").indexOf(T) > -1
  1300. },ATTR:function(Y, W) {
  1301. var V = W[1],T = I.attrHandle[V] ? I.attrHandle[V](Y) : Y[V] != null ? Y[V] : Y.getAttribute(V),Z = T + "",X = W[2],U = W[4];
  1302. return T == null ? X === "!=" : X === "=" ? Z === U : X === "*=" ? Z.indexOf(U) >= 0 : X === "~=" ? (" " + Z + " ").indexOf(U) >= 0 : !U ? Z && T !== false : X === "!=" ? Z != U : X === "^=" ? Z.indexOf(U) === 0 : X === "$=" ? Z.substr(Z.length - U.length) === U : X === "|=" ? Z === U || Z.substr(0, U.length + 1) === U + "-" : false
  1303. },POS:function(X, U, V, Y) {
  1304. var T = U[2],W = I.setFilters[T];
  1305. if (W) {
  1306. return W(X, V, U, Y)
  1307. }
  1308. }}};
  1309. var M = I.match.POS;
  1310. for (var O in I.match) {
  1311. I.match[O] = RegExp(I.match[O].source + /(?![^\[]*\])(?![^\(]*\))/.source)
  1312. }
  1313. var E = function(U, T) {
  1314. U = Array.prototype.slice.call(U);
  1315. if (T) {
  1316. T.push.apply(T, U);
  1317. return T
  1318. }
  1319. return U
  1320. };
  1321. try {
  1322. Array.prototype.slice.call(document.documentElement.childNodes)
  1323. } catch(N) {
  1324. E = function(X, W) {
  1325. var U = W || [];
  1326. if (H.call(X) === "[object Array]") {
  1327. Array.prototype.push.apply(U, X)
  1328. } else {
  1329. if (typeof X.length === "number") {
  1330. for (var V = 0,T = X.length; V < T; V++) {
  1331. U.push(X[V])
  1332. }
  1333. } else {
  1334. for (var V = 0; X[V]; V++) {
  1335. U.push(X[V])
  1336. }
  1337. }
  1338. }
  1339. return U
  1340. }
  1341. }
  1342. var G;
  1343. if (document.documentElement.compareDocumentPosition) {
  1344. G = function(U, T) {
  1345. var V = U.compareDocumentPosition(T) & 4 ? -1 : U === T ? 0 : 1;
  1346. if (V === 0) {
  1347. hasDuplicate = true
  1348. }
  1349. return V
  1350. }
  1351. } else {
  1352. if ("sourceIndex" in document.documentElement) {
  1353. G = function(U, T) {
  1354. var V = U.sourceIndex - T.sourceIndex;
  1355. if (V === 0) {
  1356. hasDuplicate = true
  1357. }
  1358. return V
  1359. }
  1360. } else {
  1361. if (document.createRange) {
  1362. G = function(W, U) {
  1363. var V = W.ownerDocument.createRange(),T = U.ownerDocument.createRange();
  1364. V.selectNode(W);
  1365. V.collapse(true);
  1366. T.selectNode(U);
  1367. T.collapse(true);
  1368. var X = V.compareBoundaryPoints(Range.START_TO_END, T);
  1369. if (X === 0) {
  1370. hasDuplicate = true
  1371. }
  1372. return X
  1373. }
  1374. }
  1375. }
  1376. }
  1377. (function() {
  1378. var U = document.createElement("form"),V = "script" + (new Date).getTime();
  1379. U.innerHTML = "<input name='" + V + "'/>";
  1380. var T = document.documentElement;
  1381. T.insertBefore(U, T.firstChild);
  1382. if (!!document.getElementById(V)) {
  1383. I.find.ID = function(X, Y, Z) {
  1384. if (typeof Y.getElementById !== "undefined" && !Z) {
  1385. var W = Y.getElementById(X[1]);
  1386. return W ? W.id === X[1] || typeof W.getAttributeNode !== "undefined" && W.getAttributeNode("id").nodeValue === X[1] ? [W] : g : []
  1387. }
  1388. };
  1389. I.filter.ID = function(Y, W) {
  1390. var X = typeof Y.getAttributeNode !== "undefined" && Y.getAttributeNode("id");
  1391. return Y.nodeType === 1 && X && X.nodeValue === W
  1392. }
  1393. }
  1394. T.removeChild(U)
  1395. })();
  1396. (function() {
  1397. var T = document.createElement("div");
  1398. T.appendChild(document.createComment(""));
  1399. if (T.getElementsByTagName("*").length > 0) {
  1400. I.find.TAG = function(U, Y) {
  1401. var X = Y.getElementsByTagName(U[1]);
  1402. if (U[1] === "*") {
  1403. var W = [];
  1404. for (var V = 0; X[V]; V++) {
  1405. if (X[V].nodeType === 1) {
  1406. W.push(X[V])
  1407. }
  1408. }
  1409. X = W
  1410. }
  1411. return X
  1412. }
  1413. }
  1414. T.innerHTML = "<a href='#'></a>";
  1415. if (T.firstChild && typeof T.firstChild.getAttribute !== "undefined" && T.firstChild.getAttribute("href") !== "#") {
  1416. I.attrHandle.href = function(U) {
  1417. return U.getAttribute("href", 2)
  1418. }
  1419. }
  1420. })();
  1421. if (document.querySelectorAll) {
  1422. (function() {
  1423. var T = F,U = document.createElement("div");
  1424. U.innerHTML = "<p class='TEST'></p>";
  1425. if (U.querySelectorAll && U.querySelectorAll(".TEST").length === 0) {
  1426. return
  1427. }
  1428. F = function(Y, X, V, W) {
  1429. X = X || document;
  1430. if (!W && X.nodeType === 9 && !Q(X)) {
  1431. try {
  1432. return E(X.querySelectorAll(Y), V)
  1433. } catch(Z) {
  1434. }
  1435. }
  1436. return T(Y, X, V, W)
  1437. };
  1438. F.find = T.find;
  1439. F.filter = T.filter;
  1440. F.selectors = T.selectors;
  1441. F.matches = T.matches
  1442. })()
  1443. }
  1444. if (document.getElementsByClassName && document.documentElement.getElementsByClassName) {
  1445. (function() {
  1446. var T = document.createElement("div");
  1447. T.innerHTML = "<div class='test e'></div><div class='test'></div>";
  1448. if (T.getElementsByClassName("e").length === 0) {
  1449. return
  1450. }
  1451. T.lastChild.className = "e";
  1452. if (T.getElementsByClassName("e").length === 1) {
  1453. return
  1454. }
  1455. I.order.splice(1, 0, "CLASS");
  1456. I.find.CLASS = function(U, V, W) {
  1457. if (typeof V.getElementsByClassName !== "undefined" && !W) {
  1458. return V.getElementsByClassName(U[1])
  1459. }
  1460. }
  1461. })()
  1462. }
  1463. function P(U, Z, Y, ad, aa, ac) {
  1464. var ab = U == "previousSibling" && !ac;
  1465. for (var W = 0,V = ad.length; W < V; W++) {
  1466. var T = ad[W];
  1467. if (T) {
  1468. if (ab && T.nodeType === 1) {
  1469. T.sizcache = Y;
  1470. T.sizset = W
  1471. }
  1472. T = T[U];
  1473. var X = false;
  1474. while (T) {
  1475. if (T.sizcache === Y) {
  1476. X = ad[T.sizset];
  1477. break
  1478. }
  1479. if (T.nodeType === 1 && !ac) {
  1480. T.sizcache = Y;
  1481. T.sizset = W
  1482. }
  1483. if (T.nodeName === Z) {
  1484. X = T;
  1485. break
  1486. }
  1487. T = T[U]
  1488. }
  1489. ad[W] = X
  1490. }
  1491. }
  1492. }
  1493. function S(U, Z, Y, ad, aa, ac) {
  1494. var ab = U == "previousSibling" && !ac;
  1495. for (var W = 0,V = ad.length; W < V; W++) {
  1496. var T = ad[W];
  1497. if (T) {
  1498. if (ab && T.nodeType === 1) {
  1499. T.sizcache = Y;
  1500. T.sizset = W
  1501. }
  1502. T = T[U];
  1503. var X = false;
  1504. while (T) {
  1505. if (T.sizcache === Y) {
  1506. X = ad[T.sizset];
  1507. break
  1508. }
  1509. if (T.nodeType === 1) {
  1510. if (!ac) {
  1511. T.sizcache = Y;
  1512. T.sizset = W
  1513. }
  1514. if (typeof Z !== "string") {
  1515. if (T === Z) {
  1516. X = true;
  1517. break
  1518. }
  1519. } else {
  1520. if (F.filter(Z, [T]).length > 0) {
  1521. X = T;
  1522. break
  1523. }
  1524. }
  1525. }
  1526. T = T[U]
  1527. }
  1528. ad[W] = X
  1529. }
  1530. }
  1531. }
  1532. var K = document.compareDocumentPosition ? function(U, T) {
  1533. return U.compareDocumentPosition(T) & 16
  1534. } : function(U, T) {
  1535. return U !== T && (U.contains ? U.contains(T) : true)
  1536. };
  1537. var Q = function(T) {
  1538. return T.nodeType === 9 && T.documentElement.nodeName !== "HTML" || !!T.ownerDocument && Q(T.ownerDocument)
  1539. };
  1540. var J = function(T, aa) {
  1541. var W = [],X = "",Y,V = aa.nodeType ? [aa] : aa;
  1542. while ((Y = I.match.PSEUDO.exec(T))) {
  1543. X += Y[0];
  1544. T = T.replace(I.match.PSEUDO, "")
  1545. }
  1546. T = I.relative[T] ? T + "*" : T;
  1547. for (var Z = 0,U = V.length; Z < U; Z++) {
  1548. F(T, V[Z], W)
  1549. }
  1550. return F.filter(X, W)
  1551. };
  1552. o.find = F;
  1553. o.filter = F.filter;
  1554. o.expr = F.selectors;
  1555. o.expr[":"] = o.expr.filters;
  1556. F.selectors.filters.hidden = function(T) {
  1557. return T.offsetWidth === 0 || T.offsetHeight === 0
  1558. };
  1559. F.selectors.filters.visible = function(T) {
  1560. return T.offsetWidth > 0 || T.offsetHeight > 0
  1561. };
  1562. F.selectors.filters.animated = function(T) {
  1563. return o.grep(o.timers, function(U) {
  1564. return T === U.elem
  1565. }).length
  1566. };
  1567. o.multiFilter = function(V, T, U) {
  1568. if (U) {
  1569. V = ":not(" + V + ")"
  1570. }
  1571. return F.matches(V, T)
  1572. };
  1573. o.dir = function(V, U) {
  1574. var T = [],W = V[U];
  1575. while (W && W != document) {
  1576. if (W.nodeType == 1) {
  1577. T.push(W)
  1578. }
  1579. W = W[U]
  1580. }
  1581. return T
  1582. };
  1583. o.nth = function(X, T, V, W) {
  1584. T = T || 1;
  1585. var U = 0;
  1586. for (; X; X = X[V]) {
  1587. if (X.nodeType == 1 && ++U == T) {
  1588. break
  1589. }
  1590. }
  1591. return X
  1592. };
  1593. o.sibling = function(V, U) {
  1594. var T = [];
  1595. for (; V; V = V.nextSibling) {
  1596. if (V.nodeType == 1 && V != U) {
  1597. T.push(V)
  1598. }
  1599. }
  1600. return T
  1601. };
  1602. return;
  1603. l.Sizzle = F
  1604. })();
  1605. o.event = {add:function(I, F, H, K) {
  1606. if (I.nodeType == 3 || I.nodeType == 8) {
  1607. return
  1608. }
  1609. if (I.setInterval && I != l) {
  1610. I = l
  1611. }
  1612. if (!H.guid) {
  1613. H.guid = this.guid++
  1614. }
  1615. if (K !== g) {
  1616. var G = H;
  1617. H = this.proxy(G);
  1618. H.data = K
  1619. }
  1620. var E = o.data(I, "events") || o.data(I, "events", {}),J = o.data(I, "handle") || o.data(I, "handle", function() {
  1621. return typeof o !== "undefined" && !o.event.triggered ? o.event.handle.apply(arguments.callee.elem, arguments) : g
  1622. });
  1623. J.elem = I;
  1624. o.each(F.split(/\s+/), function(M, N) {
  1625. var O = N.split(".");
  1626. N = O.shift();
  1627. H.type = O.slice().sort().join(".");
  1628. var L = E[N];
  1629. if (o.event.specialAll[N]) {
  1630. o.event.specialAll[N].setup.call(I, K, O)
  1631. }
  1632. if (!L) {
  1633. L = E[N] = {};
  1634. if (!o.event.special[N] || o.event.special[N].setup.call(I, K, O) === false) {
  1635. if (I.addEventListener) {
  1636. I.addEventListener(N, J, false)
  1637. } else {
  1638. if (I.attachEvent) {
  1639. I.attachEvent("on" + N, J)
  1640. }
  1641. }
  1642. }
  1643. }
  1644. L[H.guid] = H;
  1645. o.event.global[N] = true
  1646. });
  1647. I = null
  1648. },guid:1,global:{},remove:function(K, H, J) {
  1649. if (K.nodeType == 3 || K.nodeType == 8) {
  1650. return
  1651. }
  1652. var G = o.data(K, "events"),F,E;
  1653. if (G) {
  1654. if (H === g || (typeof H === "string" && H.charAt(0) == ".")) {
  1655. for (var I in G) {
  1656. this.remove(K, I + (H || ""))
  1657. }
  1658. } else {
  1659. if (H.type) {
  1660. J = H.handler;
  1661. H = H.type
  1662. }
  1663. o.each(H.split(/\s+/), function(M, O) {
  1664. var Q = O.split(".");
  1665. O = Q.shift();
  1666. var N = RegExp("(^|\\.)" + Q.slice().sort().join(".*\\.") + "(\\.|$)");
  1667. if (G[O]) {
  1668. if (J) {
  1669. delete G[O][J.guid]
  1670. } else {
  1671. for (var P in G[O]) {
  1672. if (N.test(G[O][P].type)) {
  1673. delete G[O][P]
  1674. }
  1675. }
  1676. }
  1677. if (o.event.specialAll[O]) {
  1678. o.event.specialAll[O].teardown.call(K, Q)
  1679. }
  1680. for (F in G[O]) {
  1681. break
  1682. }
  1683. if (!F) {
  1684. if (!o.event.special[O] || o.event.special[O].teardown.call(K, Q) === false) {
  1685. if (K.removeEventListener) {
  1686. K.removeEventListener(O, o.data(K, "handle"), false)
  1687. } else {
  1688. if (K.detachEvent) {
  1689. K.detachEvent("on" + O, o.data(K, "handle"))
  1690. }
  1691. }
  1692. }
  1693. F = null;
  1694. delete G[O]
  1695. }
  1696. }
  1697. })
  1698. }
  1699. for (F in G) {
  1700. break
  1701. }
  1702. if (!F) {
  1703. var L = o.data(K, "handle");
  1704. if (L) {
  1705. L.elem = null
  1706. }
  1707. o.removeData(K, "events");
  1708. o.removeData(K, "handle")
  1709. }
  1710. }
  1711. },trigger:function(I, K, H, E) {
  1712. var G = I.type || I;
  1713. if (!E) {
  1714. I = typeof I === "object" ? I[h] ? I : o.extend(o.Event(G), I) : o.Event(G);
  1715. if (G.indexOf("!") >= 0) {
  1716. I.type = G = G.slice(0, -1);
  1717. I.exclusive = true
  1718. }
  1719. if (!H) {
  1720. I.stopPropagation();
  1721. if (this.global[G]) {
  1722. o.each(o.cache, function() {
  1723. if (this.events && this.events[G]) {
  1724. o.event.trigger(I, K, this.handle.elem)
  1725. }
  1726. })
  1727. }
  1728. }
  1729. if (!H || H.nodeType == 3 || H.nodeType == 8) {
  1730. return g
  1731. }
  1732. I.result = g;
  1733. I.target = H;
  1734. K = o.makeArray(K);
  1735. K.unshift(I)
  1736. }
  1737. I.currentTarget = H;
  1738. var J = o.data(H, "handle");
  1739. if (J) {
  1740. J.apply(H, K)
  1741. }
  1742. if ((!H[G] || (o.nodeName(H, "a") && G == "click")) && H["on" + G] && H["on" + G].apply(H, K) === false) {
  1743. I.result = false
  1744. }
  1745. if (!E && H[G] && !I.isDefaultPrevented() && !(o.nodeName(H, "a") && G == "click")) {
  1746. this.triggered = true;
  1747. try {
  1748. H[G]()
  1749. } catch(L) {
  1750. }
  1751. }
  1752. this.triggered = false;
  1753. if (!I.isPropagationStopped()) {
  1754. var F = H.parentNode || H.ownerDocument;
  1755. if (F) {
  1756. o.event.trigger(I, K, F, true)
  1757. }
  1758. }
  1759. },handle:function(K) {
  1760. var J,E;
  1761. K = arguments[0] = o.event.fix(K || l.event);
  1762. K.currentTarget = this;
  1763. var L = K.type.split(".");
  1764. K.type = L.shift();
  1765. J = !L.length && !K.exclusive;
  1766. var I = RegExp("(^|\\.)" + L.slice().sort().join(".*\\.") + "(\\.|$)");
  1767. E = (o.data(this, "events") || {})[K.type];
  1768. for (var G in E) {
  1769. var H = E[G];
  1770. if (J || I.test(H.type)) {
  1771. K.handler = H;
  1772. K.data = H.data;
  1773. var F = H.apply(this, arguments);
  1774. if (F !== g) {
  1775. K.result = F;
  1776. if (F === false) {
  1777. K.preventDefault();
  1778. K.stopPropagation()
  1779. }
  1780. }
  1781. if (K.isImmediatePropagationStopped()) {
  1782. break
  1783. }
  1784. }
  1785. }
  1786. },props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H) {
  1787. if (H[h]) {
  1788. return H
  1789. }
  1790. var F = H;
  1791. H = o.Event(F);
  1792. for (var G = this.props.length,J; G;) {
  1793. J = this.props[--G];
  1794. H[J] = F[J]
  1795. }
  1796. if (!H.target) {
  1797. H.target = H.srcElement || document
  1798. }
  1799. if (H.target.nodeType == 3) {
  1800. H.target = H.target.parentNode
  1801. }
  1802. if (!H.relatedTarget && H.fromElement) {
  1803. H.relatedTarget = H.fromElement == H.target ? H.toElement : H.fromElement
  1804. }
  1805. if (H.pageX == null && H.clientX != null) {
  1806. var I = document.documentElement,E = document.body;
  1807. H.pageX = H.clientX + (I && I.scrollLeft || E && E.scrollLeft || 0) - (I.clientLeft || 0);
  1808. H.pageY = H.clientY + (I && I.scrollTop || E && E.scrollTop || 0) - (I.clientTop || 0)
  1809. }
  1810. if (!H.which && ((H.charCode || H.charCode === 0) ? H.charCode : H.keyCode)) {
  1811. H.which = H.charCode || H.keyCode
  1812. }
  1813. if (!H.metaKey && H.ctrlKey) {
  1814. H.metaKey = H.ctrlKey
  1815. }
  1816. if (!H.which && H.button) {
  1817. H.which = (H.button & 1 ? 1 : (H.button & 2 ? 3 : (H.button & 4 ? 2 : 0)))
  1818. }
  1819. return H
  1820. },proxy:function(F, E) {
  1821. E = E || function() {
  1822. return F.apply(this, arguments)
  1823. };
  1824. E.guid = F.guid = F.guid || E.guid || this.guid++;
  1825. return E
  1826. },special:{ready:{setup:B,teardown:function() {
  1827. }}},specialAll:{live:{setup:function(E, F) {
  1828. o.event.add(this, F[0], c)
  1829. },teardown:function(G) {
  1830. if (G.length) {
  1831. var E = 0,F = RegExp("(^|\\.)" + G[0] + "(\\.|$)");
  1832. o.each((o.data(this, "events").live || {}), function() {
  1833. if (F.test(this.type)) {
  1834. E++
  1835. }
  1836. });
  1837. if (E < 1) {
  1838. o.event.remove(this, G[0], c)
  1839. }
  1840. }
  1841. }}}};
  1842. o.Event = function(E) {
  1843. if (!this.preventDefault) {
  1844. return new o.Event(E)
  1845. }
  1846. if (E && E.type) {
  1847. this.originalEvent = E;
  1848. this.type = E.type
  1849. } else {
  1850. this.type = E
  1851. }
  1852. this.timeStamp = e();
  1853. this[h] = true
  1854. };
  1855. function k() {
  1856. return false
  1857. }
  1858. function u() {
  1859. return true
  1860. }
  1861. o.Event.prototype = {preventDefault:function() {
  1862. this.isDefaultPrevented = u;
  1863. var E = this.originalEvent;
  1864. if (!E) {
  1865. return
  1866. }
  1867. if (E.preventDefault) {
  1868. E.preventDefault()
  1869. }
  1870. E.returnValue = false
  1871. },stopPropagation:function() {
  1872. this.isPropagationStopped = u;
  1873. var E = this.originalEvent;
  1874. if (!E) {
  1875. return
  1876. }
  1877. if (E.stopPropagation) {
  1878. E.stopPropagation()
  1879. }
  1880. E.cancelBubble = true
  1881. },stopImmediatePropagation:function() {
  1882. this.isImmediatePropagationStopped = u;
  1883. this.stopPropagation()
  1884. },isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};
  1885. var a = function(F) {
  1886. var E = F.relatedTarget;
  1887. while (E && E != this) {
  1888. try {
  1889. E = E.parentNode
  1890. } catch(G) {
  1891. E = this
  1892. }
  1893. }
  1894. if (E != this) {
  1895. F.type = F.data;
  1896. o.event.handle.apply(this, arguments)
  1897. }
  1898. };
  1899. o.each({mouseover:"mouseenter",mouseout:"mouseleave"}, function(F, E) {
  1900. o.event.special[E] = {setup:function() {
  1901. o.event.add(this, F, a, E)
  1902. },teardown:function() {
  1903. o.event.remove(this, F, a)
  1904. }}
  1905. });
  1906. o.fn.extend({bind:function(F, G, E) {
  1907. return F == "unload" ? this.one(F, G, E) : this.each(function() {
  1908. o.event.add(this, F, E || G, E && G)
  1909. })
  1910. },one:function(G, H, F) {
  1911. var E = o.event.proxy(F || H, function(I) {
  1912. o(this).unbind(I, E);
  1913. return(F || H).apply(this, arguments)
  1914. });
  1915. return this.each(function() {
  1916. o.event.add(this, G, E, F && H)
  1917. })
  1918. },unbind:function(F, E) {
  1919. return this.each(function() {
  1920. o.event.remove(this, F, E)
  1921. })
  1922. },trigger:function(E, F) {
  1923. return this.each(function() {
  1924. o.event.trigger(E, F, this)
  1925. })
  1926. },triggerHandler:function(E, G) {
  1927. if (this[0]) {
  1928. var F = o.Event(E);
  1929. F.preventDefault();
  1930. F.stopPropagation();
  1931. o.event.trigger(F, G, this[0]);
  1932. return F.result
  1933. }
  1934. },toggle:function(G) {
  1935. var E = arguments,F = 1;
  1936. while (F < E.length) {
  1937. o.event.proxy(G, E[F++])
  1938. }
  1939. return this.click(o.event.proxy(G, function(H) {
  1940. this.lastToggle = (this.lastToggle || 0) % F;
  1941. H.preventDefault();
  1942. return E[this.lastToggle++].apply(this, arguments) || false
  1943. }))
  1944. },hover:function(E, F) {
  1945. return this.mouseenter(E).mouseleave(F)
  1946. },ready:function(E) {
  1947. B();
  1948. if (o.isReady) {
  1949. E.call(document, o)
  1950. } else {
  1951. o.readyList.push(E)
  1952. }
  1953. return this
  1954. },live:function(G, F) {
  1955. var E = o.event.proxy(F);
  1956. E.guid += this.selector + G;
  1957. o(document).bind(i(G, this.selector), this.selector, E);
  1958. return this
  1959. },die:function(F, E) {
  1960. o(document).unbind(i(F, this.selector), E ? {guid:E.guid + this.selector + F} : null);
  1961. return this
  1962. }});
  1963. function c(H) {
  1964. var E = RegExp("(^|\\.)" + H.type + "(\\.|$)"),G = true,F = [];
  1965. o.each(o.data(this, "events").live || [], function(I, J) {
  1966. if (E.test(J.type)) {
  1967. var K = o(H.target).closest(J.data)[0];
  1968. if (K) {
  1969. F.push({elem:K,fn:J})
  1970. }
  1971. }
  1972. });
  1973. F.sort(function(J, I) {
  1974. return o.data(J.elem, "closest") - o.data(I.elem, "closest")
  1975. });
  1976. o.each(F, function() {
  1977. if (this.fn.call(this.elem, H, this.fn.data) === false) {
  1978. return(G = false)
  1979. }
  1980. });
  1981. return G
  1982. }
  1983. function i(F, E) {
  1984. return["live",F,E.replace(/\./g, "`").replace(/ /g, "|")].join(".")
  1985. }
  1986. o.extend({isReady:false,readyList:[],ready:function() {
  1987. if (!o.isReady) {
  1988. o.isReady = true;
  1989. if (o.readyList) {
  1990. o.each(o.readyList, function() {
  1991. this.call(document, o)
  1992. });
  1993. o.readyList = null
  1994. }
  1995. o(document).triggerHandler("ready")
  1996. }
  1997. }});
  1998. var x = false;
  1999. function B() {
  2000. if (x) {
  2001. return
  2002. }
  2003. x = true;
  2004. if (document.addEventListener) {
  2005. document.addEventListener("DOMContentLoaded", function() {
  2006. document.removeEventListener("DOMContentLoaded", arguments.callee, false);
  2007. o.ready()
  2008. }, false)
  2009. } else {
  2010. if (document.attachEvent) {
  2011. document.attachEvent("onreadystatechange", function() {
  2012. if (document.readyState === "complete") {
  2013. document.detachEvent("onreadystatechange", arguments.callee);
  2014. o.ready()
  2015. }
  2016. });
  2017. if (document.documentElement.doScroll && l == l.top) {
  2018. (function() {
  2019. if (o.isReady) {
  2020. return
  2021. }
  2022. try {
  2023. document.documentElement.doScroll("left")
  2024. } catch(E) {
  2025. setTimeout(arguments.callee, 0);
  2026. return
  2027. }
  2028. o.ready()
  2029. })()
  2030. }
  2031. }
  2032. }
  2033. o.event.add(l, "load", o.ready)
  2034. }
  2035. o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","), function(F, E) {
  2036. o.fn[E] = function(G) {
  2037. return G ? this.bind(E, G) : this.trigger(E)
  2038. }
  2039. });
  2040. o(l).bind("unload", function() {
  2041. for (var E in o.cache) {
  2042. if (E != 1 && o.cache[E].handle) {
  2043. o.event.remove(o.cache[E].handle.elem)
  2044. }
  2045. }
  2046. });
  2047. (function() {
  2048. o.support = {};
  2049. var F = document.documentElement,G = document.createElement("script"),K = document.createElement("div"),J = "script" + (new Date).getTime();
  2050. K.style.display = "none";
  2051. K.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
  2052. var H = K.getElementsByTagName("*"),E = K.getElementsByTagName("a")[0];
  2053. if (!H || !H.length || !E) {
  2054. return
  2055. }
  2056. o.support = {leadingWhitespace:K.firstChild.nodeType == 3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href") === "/a",opacity:E.style.opacity === "0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
  2057. G.type = "text/javascript";
  2058. try {
  2059. G.appendChild(document.createTextNode("window." + J + "=1;"))
  2060. } catch(I) {
  2061. }
  2062. F.insertBefore(G, F.firstChild);
  2063. if (l[J]) {
  2064. o.support.scriptEval = true;
  2065. delete l[J]
  2066. }
  2067. F.removeChild(G);
  2068. if (K.attachEvent && K.fireEvent) {
  2069. K.attachEvent("onclick", function() {
  2070. o.support.noCloneEvent = false;
  2071. K.detachEvent("onclick", arguments.callee)
  2072. });
  2073. K.cloneNode(true).fireEvent("onclick")
  2074. }
  2075. o(function() {
  2076. var L = document.createElement("div");
  2077. L.style.width = L.style.paddingLeft = "1px";
  2078. document.body.appendChild(L);
  2079. o.boxModel = o.support.boxModel = L.offsetWidth === 2;
  2080. document.body.removeChild(L).style.display = "none"
  2081. })
  2082. })();
  2083. var w = o.support.cssFloat ? "cssFloat" : "styleFloat";
  2084. o.props = {"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
  2085. o.fn.extend({_load:o.fn.load,load:function(G, J, K) {
  2086. if (typeof G !== "string") {
  2087. return this._load(G)
  2088. }
  2089. var I = G.indexOf(" ");
  2090. if (I >= 0) {
  2091. var E = G.slice(I, G.length);
  2092. G = G.slice(0, I)
  2093. }
  2094. var H = "GET";
  2095. if (J) {
  2096. if (o.isFunction(J)) {
  2097. K = J;
  2098. J = null
  2099. } else {
  2100. if (typeof J === "object") {
  2101. J = o.param(J);
  2102. H = "POST"
  2103. }
  2104. }
  2105. }
  2106. var F = this;
  2107. o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M, L) {
  2108. if (L == "success" || L == "notmodified") {
  2109. F.html(E ? o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(E) : M.responseText)
  2110. }
  2111. if (K) {
  2112. F.each(K, [M.responseText,L,M])
  2113. }
  2114. }});
  2115. return this
  2116. },serialize:function() {
  2117. return o.param(this.serializeArray())
  2118. },serializeArray:function() {
  2119. return this.map(function() {
  2120. return this.elements ? o.makeArray(this.elements) : this
  2121. }).filter(function() {
  2122. return this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password|search/i.test(this.type))
  2123. }).map(function(E, F) {
  2124. var G = o(this).val();
  2125. return G == null ? null : o.isArray(G) ? o.map(G, function(I, H) {
  2126. return{name:F.name,value:I}
  2127. }) : {name:F.name,value:G}
  2128. }).get()
  2129. }});
  2130. o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(E, F) {
  2131. o.fn[F] = function(G) {
  2132. return this.bind(F, G)
  2133. }
  2134. });
  2135. var r = e();
  2136. o.extend({get:function(E, G, H, F) {
  2137. if (o.isFunction(G)) {
  2138. H = G;
  2139. G = null
  2140. }
  2141. return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})
  2142. },getScript:function(E, F) {
  2143. return o.get(E, null, F, "script")
  2144. },getJSON:function(E, F, G) {
  2145. return o.get(E, F, G, "json")
  2146. },post:function(E, G, H, F) {
  2147. if (o.isFunction(G)) {
  2148. H = G;
  2149. G = {}
  2150. }
  2151. return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})
  2152. },ajaxSetup:function(E) {
  2153. o.extend(o.ajaxSettings, E)
  2154. },ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function() {
  2155. return l.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest()
  2156. },accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M) {
  2157. M = o.extend(true, M, o.extend(true, {}, o.ajaxSettings, M));
  2158. var W,F = /=\?(&|$)/g,R,V,G = M.type.toUpperCase();
  2159. if (M.data && M.processData && typeof M.data !== "string") {
  2160. M.data = o.param(M.data)
  2161. }
  2162. if (M.dataType == "jsonp") {
  2163. if (G == "GET") {
  2164. if (!M.url.match(F)) {
  2165. M.url += (M.url.match(/\?/) ? "&" : "?") + (M.jsonp || "callback") + "=?"
  2166. }
  2167. } else {
  2168. if (!M.data || !M.data.match(F)) {
  2169. M.data = (M.data ? M.data + "&" : "") + (M.jsonp || "callback") + "=?"
  2170. }
  2171. }
  2172. M.dataType = "json"
  2173. }
  2174. if (M.dataType == "json" && (M.data && M.data.match(F) || M.url.match(F))) {
  2175. W = "jsonp" + r++;
  2176. if (M.data) {
  2177. M.data = (M.data + "").replace(F, "=" + W + "$1")
  2178. }
  2179. M.url = M.url.replace(F, "=" + W + "$1");
  2180. M.dataType = "script";
  2181. l[W] = function(X) {
  2182. V = X;
  2183. I();
  2184. L();
  2185. l[W] = g;
  2186. try {
  2187. delete l[W]
  2188. } catch(Y) {
  2189. }
  2190. if (H) {
  2191. H.removeChild(T)
  2192. }
  2193. }
  2194. }
  2195. if (M.dataType == "script" && M.cache == null) {
  2196. M.cache = false
  2197. }
  2198. if (M.cache === false && G == "GET") {
  2199. var E = e();
  2200. var U = M.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + E + "$2");
  2201. M.url = U + ((U == M.url) ? (M.url.match(/\?/) ? "&" : "?") + "_=" + E : "")
  2202. }
  2203. if (M.data && G == "GET") {
  2204. M.url += (M.url.match(/\?/) ? "&" : "?") + M.data;
  2205. M.data = null
  2206. }
  2207. if (M.global && !o.active++) {
  2208. o.event.trigger("ajaxStart")
  2209. }
  2210. var Q = /^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);
  2211. if (M.dataType == "script" && G == "GET" && Q && (Q[1] && Q[1] != location.protocol || Q[2] != location.host)) {
  2212. var H = document.getElementsByTagName("head")[0];
  2213. var T = document.createElement("script");
  2214. T.src = M.url;
  2215. if (M.scriptCharset) {
  2216. T.charset = M.scriptCharset
  2217. }
  2218. if (!W) {
  2219. var O = false;
  2220. T.onload = T.onreadystatechange = function() {
  2221. if (!O && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) {
  2222. O = true;
  2223. I();
  2224. L();
  2225. T.onload = T.onreadystatechange = null;
  2226. H.removeChild(T)
  2227. }
  2228. }
  2229. }
  2230. H.appendChild(T);
  2231. return g
  2232. }
  2233. var K = false;
  2234. var J = M.xhr();
  2235. if (M.userName) {
  2236. J.open(G, M.url, M.async, M.userName, M.password)
  2237. } else {
  2238. J.open(G, M.url, M.async)
  2239. }
  2240. try {
  2241. if (M.data) {
  2242. J.setRequestHeader("Content-Type", M.contentType)
  2243. }
  2244. if (M.ifModified) {
  2245. J.setRequestHeader("If-Modified-Since", o.lastModified[M.url] || "Thu, 01 Jan 1970 00:00:00 GMT")
  2246. }
  2247. J.setRequestHeader("X-Requested-With", "XMLHttpRequest");
  2248. J.setRequestHeader("Accept", M.dataType && M.accepts[M.dataType] ? M.accepts[M.dataType] + ", */*" : M.accepts._default)
  2249. } catch(S) {
  2250. }
  2251. if (M.beforeSend && M.beforeSend(J, M) === false) {
  2252. if (M.global && !--o.active) {
  2253. o.event.trigger("ajaxStop")
  2254. }
  2255. J.abort();
  2256. return false
  2257. }
  2258. if (M.global) {
  2259. o.event.trigger("ajaxSend", [J,M])
  2260. }
  2261. var N = function(X) {
  2262. if (J != null && J.readyState == 0) {
  2263. if (P) {
  2264. clearInterval(P);
  2265. P = null;
  2266. if (M.global && !--o.active) {
  2267. o.event.trigger("ajaxStop")
  2268. }
  2269. }
  2270. } else {
  2271. if (!K && J && (J != null && J.readyState == 4 || X == "timeout")) {
  2272. K = true;
  2273. if (P) {
  2274. clearInterval(P);
  2275. P = null
  2276. }
  2277. R = X == "timeout" ? "timeout" : !o.httpSuccess(J) ? "error" : M.ifModified && o.httpNotModified(J, M.url) ? "notmodified" : "success";
  2278. if (R == "success") {
  2279. try {
  2280. V = o.httpData(J, M.dataType, M)
  2281. } catch(Z) {
  2282. R = "parsererror"
  2283. }
  2284. }
  2285. if (R == "success") {
  2286. var Y;
  2287. try {
  2288. Y = J.getResponseHeader("Last-Modified")
  2289. } catch(Z) {
  2290. }
  2291. if (M.ifModified && Y) {
  2292. o.lastModified[M.url] = Y
  2293. }
  2294. if (!W) {
  2295. I()
  2296. }
  2297. } else {
  2298. o.handleError(M, J, R)
  2299. }
  2300. L();
  2301. if (X) {
  2302. J.abort()
  2303. }
  2304. if (M.async) {
  2305. J = null
  2306. }
  2307. }
  2308. }
  2309. };
  2310. if (M.async) {
  2311. var P = setInterval(N, 13);
  2312. if (M.timeout > 0) {
  2313. setTimeout(function() {
  2314. if (J && !K) {
  2315. N("timeout")
  2316. }
  2317. }, M.timeout)
  2318. }
  2319. }
  2320. try {
  2321. J.send(M.data)
  2322. } catch(S) {
  2323. o.handleError(M, J, null, S)
  2324. }
  2325. if (!M.async) {
  2326. N()
  2327. }
  2328. function I() {
  2329. if (M.success) {
  2330. M.success(V, R)
  2331. }
  2332. if (M.global) {
  2333. o.event.trigger("ajaxSuccess", [J,M])
  2334. }
  2335. }
  2336. function L() {
  2337. if (M.complete) {
  2338. M.complete(J, R)
  2339. }
  2340. if (M.global) {
  2341. o.event.trigger("ajaxComplete", [J,M])
  2342. }
  2343. if (M.global && !--o.active) {
  2344. o.event.trigger("ajaxStop")
  2345. }
  2346. }
  2347. return J
  2348. },handleError:function(F, H, E, G) {
  2349. if (F.error) {
  2350. F.error(H, E, G)
  2351. }
  2352. if (F.global) {
  2353. o.event.trigger("ajaxError", [H,F,G])
  2354. }
  2355. },active:0,httpSuccess:function(F) {
  2356. try {
  2357. return !F.status && location.protocol == "file:" || (F.status >= 200 && F.status < 300) || F.status == 304 || F.status == 1223
  2358. } catch(E) {
  2359. }
  2360. return false
  2361. },httpNotModified:function(G, E) {
  2362. try {
  2363. var H = G.getResponseHeader("Last-Modified");
  2364. return G.status == 304 || H == o.lastModified[E]
  2365. } catch(F) {
  2366. }
  2367. return false
  2368. },httpData:function(J, H, G) {
  2369. var F = J.getResponseHeader("content-type"),E = H == "xml" || !H && F && F.indexOf("xml") >= 0,I = E ? J.responseXML : J.responseText;
  2370. if (E && I.documentElement.tagName == "parsererror") {
  2371. throw"parsererror"
  2372. }
  2373. if (G && G.dataFilter) {
  2374. I = G.dataFilter(I, H)
  2375. }
  2376. if (typeof I === "string") {
  2377. if (H == "script") {
  2378. o.globalEval(I)
  2379. }
  2380. if (H == "json") {
  2381. I = l["eval"]("(" + I + ")")
  2382. }
  2383. }
  2384. return I
  2385. },param:function(E) {
  2386. var G = [];
  2387. function H(I, J) {
  2388. G[G.length] = encodeURIComponent(I) + "=" + encodeURIComponent(J)
  2389. }
  2390. if (o.isArray(E) || E.jquery) {
  2391. o.each(E, function() {
  2392. H(this.name, this.value)
  2393. })
  2394. } else {
  2395. for (var F in E) {
  2396. if (o.isArray(E[F])) {
  2397. o.each(E[F], function() {
  2398. H(F, this)
  2399. })
  2400. } else {
  2401. H(F, o.isFunction(E[F]) ? E[F]() : E[F])
  2402. }
  2403. }
  2404. }
  2405. return G.join("&").replace(/%20/g, "+")
  2406. }});
  2407. var m = {},n,d = [
  2408. ["height","marginTop","marginBottom","paddingTop","paddingBottom"],
  2409. ["width","marginLeft","marginRight","paddingLeft","paddingRight"],
  2410. ["opacity"]
  2411. ];
  2412. function t(F, E) {
  2413. var G = {};
  2414. o.each(d.concat.apply([], d.slice(0, E)), function() {
  2415. G[this] = F
  2416. });
  2417. return G
  2418. }
  2419. o.fn.extend({show:function(J, L) {
  2420. if (J) {
  2421. return this.animate(t("show", 3), J, L)
  2422. } else {
  2423. for (var H = 0,F = this.length; H < F; H++) {
  2424. var E = o.data(this[H], "olddisplay");
  2425. this[H].style.display = E || "";
  2426. if (o.css(this[H], "display") === "none") {
  2427. var G = this[H].tagName,K;
  2428. if (m[G]) {
  2429. K = m[G]
  2430. } else {
  2431. var I = o("<" + G + " />").appendTo("body");
  2432. K = I.css("display");
  2433. if (K === "none") {
  2434. K = "block"
  2435. }
  2436. I.remove();
  2437. m[G] = K
  2438. }
  2439. o.data(this[H], "olddisplay", K)
  2440. }
  2441. }
  2442. for (var H = 0,F = this.length; H < F; H++) {
  2443. this[H].style.display = o.data(this[H], "olddisplay") || ""
  2444. }
  2445. return this
  2446. }
  2447. },hide:function(H, I) {
  2448. if (H) {
  2449. return this.animate(t("hide", 3), H, I)
  2450. } else {
  2451. for (var G = 0,F = this.length; G < F; G++) {
  2452. var E = o.data(this[G], "olddisplay");
  2453. if (!E && E !== "none") {
  2454. o.data(this[G], "olddisplay", o.css(this[G], "display"))
  2455. }
  2456. }
  2457. for (var G = 0,F = this.length; G < F; G++) {
  2458. this[G].style.display = "none"
  2459. }
  2460. return this
  2461. }
  2462. },_toggle:o.fn.toggle,toggle:function(G, F) {
  2463. var E = typeof G === "boolean";
  2464. return o.isFunction(G) && o.isFunction(F) ? this._toggle.apply(this, arguments) : G == null || E ? this.each(function() {
  2465. var H = E ? G : o(this).is(":hidden");
  2466. o(this)[H ? "show" : "hide"]()
  2467. }) : this.animate(t("toggle", 3), G, F)
  2468. },fadeTo:function(E, G, F) {
  2469. return this.animate({opacity:G}, E, F)
  2470. },animate:function(I, F, H, G) {
  2471. var E = o.speed(F, H, G);
  2472. return this[E.queue === false ? "each" : "queue"](function() {
  2473. var K = o.extend({}, E),M,L = this.nodeType == 1 && o(this).is(":hidden"),J = this;
  2474. for (M in I) {
  2475. if (I[M] == "hide" && L || I[M] == "show" && !L) {
  2476. return K.complete.call(this)
  2477. }
  2478. if ((M == "height" || M == "width") && this.style) {
  2479. K.display = o.css(this, "display");
  2480. K.overflow = this.style.overflow
  2481. }
  2482. }
  2483. if (K.overflow != null) {
  2484. this.style.overflow = "hidden"
  2485. }
  2486. K.curAnim = o.extend({}, I);
  2487. o.each(I, function(O, S) {
  2488. var R = new o.fx(J, K, O);
  2489. if (/toggle|show|hide/.test(S)) {
  2490. R[S == "toggle" ? L ? "show" : "hide" : S](I)
  2491. } else {
  2492. var Q = S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T = R.cur(true) || 0;
  2493. if (Q) {
  2494. var N = parseFloat(Q[2]),P = Q[3] || "px";
  2495. if (P != "px") {
  2496. J.style[O] = (N || 1) + P;
  2497. T = ((N || 1) / R.cur(true)) * T;
  2498. J.style[O] = T + P
  2499. }
  2500. if (Q[1]) {
  2501. N = ((Q[1] == "-=" ? -1 : 1) * N) + T
  2502. }
  2503. R.custom(T, N, P)
  2504. } else {
  2505. R.custom(T, S, "")
  2506. }
  2507. }
  2508. });
  2509. return true
  2510. })
  2511. },stop:function(F, E) {
  2512. var G = o.timers;
  2513. if (F) {
  2514. this.queue([])
  2515. }
  2516. this.each(function() {
  2517. for (var H = G.length - 1; H >= 0; H--) {
  2518. if (G[H].elem == this) {
  2519. if (E) {
  2520. G[H](true)
  2521. }
  2522. G.splice(H, 1)
  2523. }
  2524. }
  2525. });
  2526. if (!E) {
  2527. this.dequeue()
  2528. }
  2529. return this
  2530. }});
  2531. o.each({slideDown:t("show", 1),slideUp:t("hide", 1),slideToggle:t("toggle", 1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}}, function(E, F) {
  2532. o.fn[E] = function(G, H) {
  2533. return this.animate(F, G, H)
  2534. }
  2535. });
  2536. o.extend({speed:function(G, H, F) {
  2537. var E = typeof G === "object" ? G : {complete:F || !F && H || o.isFunction(G) && G,duration:G,easing:F && H || H && !o.isFunction(H) && H};
  2538. E.duration = o.fx.off ? 0 : typeof E.duration === "number" ? E.duration : o.fx.speeds[E.duration] || o.fx.speeds._default;
  2539. E.old = E.complete;
  2540. E.complete = function() {
  2541. if (E.queue !== false) {
  2542. o(this).dequeue()
  2543. }
  2544. if (o.isFunction(E.old)) {
  2545. E.old.call(this)
  2546. }
  2547. };
  2548. return E
  2549. },easing:{linear:function(G, H, E, F) {
  2550. return E + F * G
  2551. },swing:function(G, H, E, F) {
  2552. return((-Math.cos(G * Math.PI) / 2) + 0.5) * F + E
  2553. }},timers:[],fx:function(F, E, G) {
  2554. this.options = E;
  2555. this.elem = F;
  2556. this.prop = G;
  2557. if (!E.orig) {
  2558. E.orig = {}
  2559. }
  2560. }});
  2561. o.fx.prototype = {update:function() {
  2562. if (this.options.step) {
  2563. this.options.step.call(this.elem, this.now, this)
  2564. }
  2565. (o.fx.step[this.prop] || o.fx.step._default)(this);
  2566. if ((this.prop == "height" || this.prop == "width") && this.elem.style) {
  2567. this.elem.style.display = "block"
  2568. }
  2569. },cur:function(F) {
  2570. if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) {
  2571. return this.elem[this.prop]
  2572. }
  2573. var E = parseFloat(o.css(this.elem, this.prop, F));
  2574. return E && E > -10000 ? E : parseFloat(o.curCSS(this.elem, this.prop)) || 0
  2575. },custom:function(I, H, G) {
  2576. this.startTime = e();
  2577. this.start = I;
  2578. this.end = H;
  2579. this.unit = G || this.unit || "px";
  2580. this.now = this.start;
  2581. this.pos = this.state = 0;
  2582. var E = this;
  2583. function F(J) {
  2584. return E.step(J)
  2585. }
  2586. F.elem = this.elem;
  2587. if (F() && o.timers.push(F) && !n) {
  2588. n = setInterval(function() {
  2589. var K = o.timers;
  2590. for (var J = 0; J < K.length; J++) {
  2591. if (!K[J]()) {
  2592. K.splice(J--, 1)
  2593. }
  2594. }
  2595. if (!K.length) {
  2596. clearInterval(n);
  2597. n = g
  2598. }
  2599. }, 13)
  2600. }
  2601. },show:function() {
  2602. this.options.orig[this.prop] = o.attr(this.elem.style, this.prop);
  2603. this.options.show = true;
  2604. this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
  2605. o(this.elem).show()
  2606. },hide:function() {
  2607. this.options.orig[this.prop] = o.attr(this.elem.style, this.prop);
  2608. this.options.hide = true;
  2609. this.custom(this.cur(), 0)
  2610. },step:function(H) {
  2611. var G = e();
  2612. if (H || G >= this.options.duration + this.startTime) {
  2613. this.now = this.end;
  2614. this.pos = this.state = 1;
  2615. this.update();
  2616. this.options.curAnim[this.prop] = true;
  2617. var E = true;
  2618. for (var F in this.options.curAnim) {
  2619. if (this.options.curAnim[F] !== true) {
  2620. E = false
  2621. }
  2622. }
  2623. if (E) {
  2624. if (this.options.display != null) {
  2625. this.elem.style.overflow = this.options.overflow;
  2626. this.elem.style.display = this.options.display;
  2627. if (o.css(this.elem, "display") == "none") {
  2628. this.elem.style.display = "block"
  2629. }
  2630. }
  2631. if (this.options.hide) {
  2632. o(this.elem).hide()
  2633. }
  2634. if (this.options.hide || this.options.show) {
  2635. for (var I in this.options.curAnim) {
  2636. o.attr(this.elem.style, I, this.options.orig[I])
  2637. }
  2638. }
  2639. this.options.complete.call(this.elem)
  2640. }
  2641. return false
  2642. } else {
  2643. var J = G - this.startTime;
  2644. this.state = J / this.options.duration;
  2645. this.pos = o.easing[this.options.easing || (o.easing.swing ? "swing" : "linear")](this.state, J, 0, 1, this.options.duration);
  2646. this.now = this.start + ((this.end - this.start) * this.pos);
  2647. this.update()
  2648. }
  2649. return true
  2650. }};
  2651. o.extend(o.fx, {speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E) {
  2652. o.attr(E.elem.style, "opacity", E.now)
  2653. },_default:function(E) {
  2654. if (E.elem.style && E.elem.style[E.prop] != null) {
  2655. E.elem.style[E.prop] = E.now + E.unit
  2656. } else {
  2657. E.elem[E.prop] = E.now
  2658. }
  2659. }}});
  2660. if (document.documentElement.getBoundingClientRect) {
  2661. o.fn.offset = function() {
  2662. if (!this[0]) {
  2663. return{top:0,left:0}
  2664. }
  2665. if (this[0] === this[0].ownerDocument.body) {
  2666. return o.offset.bodyOffset(this[0])
  2667. }
  2668. var G = this[0].getBoundingClientRect(),J = this[0].ownerDocument,F = J.body,E = J.documentElement,L = E.clientTop || F.clientTop || 0,K = E.clientLeft || F.clientLeft || 0,I = G.top + (self.pageYOffset || o.boxModel && E.scrollTop || F.scrollTop) - L,H = G.left + (self.pageXOffset || o.boxModel && E.scrollLeft || F.scrollLeft) - K;
  2669. return{top:I,left:H}
  2670. }
  2671. } else {
  2672. o.fn.offset = function() {
  2673. if (!this[0]) {
  2674. return{top:0,left:0}
  2675. }
  2676. if (this[0] === this[0].ownerDocument.body) {
  2677. return o.offset.bodyOffset(this[0])
  2678. }
  2679. o.offset.initialized || o.offset.initialize();
  2680. var J = this[0],G = J.offsetParent,F = J,O = J.ownerDocument,M,H = O.documentElement,K = O.body,L = O.defaultView,E = L.getComputedStyle(J, null),N = J.offsetTop,I = J.offsetLeft;
  2681. while ((J = J.parentNode) && J !== K && J !== H) {
  2682. M = L.getComputedStyle(J, null);
  2683. N -= J.scrollTop,I -= J.scrollLeft;
  2684. if (J === G) {
  2685. N += J.offsetTop,I += J.offsetLeft;
  2686. if (o.offset.doesNotAddBorder && !(o.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(J.tagName))) {
  2687. N += parseInt(M.borderTopWidth, 10) || 0,I += parseInt(M.borderLeftWidth, 10) || 0
  2688. }
  2689. F = G,G = J.offsetParent
  2690. }
  2691. if (o.offset.subtractsBorderForOverflowNotVisible && M.overflow !== "visible") {
  2692. N += parseInt(M.borderTopWidth, 10) || 0,I += parseInt(M.borderLeftWidth, 10) || 0
  2693. }
  2694. E = M
  2695. }
  2696. if (E.position === "relative" || E.position === "static") {
  2697. N += K.offsetTop,I += K.offsetLeft
  2698. }
  2699. if (E.position === "fixed") {
  2700. N += Math.max(H.scrollTop, K.scrollTop),I += Math.max(H.scrollLeft, K.scrollLeft)
  2701. }
  2702. return{top:N,left:I}
  2703. }
  2704. }
  2705. o.offset = {initialize:function() {
  2706. if (this.initialized) {
  2707. return
  2708. }
  2709. var L = document.body,F = document.createElement("div"),H,G,N,I,M,E,J = L.style.marginTop,K = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
  2710. M = {position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};
  2711. for (E in M) {
  2712. F.style[E] = M[E]
  2713. }
  2714. F.innerHTML = K;
  2715. L.insertBefore(F, L.firstChild);
  2716. H = F.firstChild,G = H.firstChild,I = H.nextSibling.firstChild.firstChild;
  2717. this.doesNotAddBorder = (G.offsetTop !== 5);
  2718. this.doesAddBorderForTableAndCells = (I.offsetTop === 5);
  2719. H.style.overflow = "hidden",H.style.position = "relative";
  2720. this.subtractsBorderForOverflowNotVisible = (G.offsetTop === -5);
  2721. L.style.marginTop = "1px";
  2722. this.doesNotIncludeMarginInBodyOffset = (L.offsetTop === 0);
  2723. L.style.marginTop = J;
  2724. L.removeChild(F);
  2725. this.initialized = true
  2726. },bodyOffset:function(E) {
  2727. o.offset.initialized || o.offset.initialize();
  2728. var G = E.offsetTop,F = E.offsetLeft;
  2729. if (o.offset.doesNotIncludeMarginInBodyOffset) {
  2730. G += parseInt(o.curCSS(E, "marginTop", true), 10) || 0,F += parseInt(o.curCSS(E, "marginLeft", true), 10) || 0
  2731. }
  2732. return{top:G,left:F}
  2733. }};
  2734. o.fn.extend({position:function() {
  2735. var I = 0,H = 0,F;
  2736. if (this[0]) {
  2737. var G = this.offsetParent(),J = this.offset(),E = /^body|html$/i.test(G[0].tagName) ? {top:0,left:0} : G.offset();
  2738. J.top -= j(this, "marginTop");
  2739. J.left -= j(this, "marginLeft");
  2740. E.top += j(G, "borderTopWidth");
  2741. E.left += j(G, "borderLeftWidth");
  2742. F = {top:J.top - E.top,left:J.left - E.left}
  2743. }
  2744. return F
  2745. },offsetParent:function() {
  2746. var E = this[0].offsetParent || document.body;
  2747. while (E && (!/^body|html$/i.test(E.tagName) && o.css(E, "position") == "static")) {
  2748. E = E.offsetParent
  2749. }
  2750. return o(E)
  2751. }});
  2752. o.each(["Left","Top"], function(F, E) {
  2753. var G = "scroll" + E;
  2754. o.fn[G] = function(H) {
  2755. if (!this[0]) {
  2756. return null
  2757. }
  2758. return H !== g ? this.each(function() {
  2759. this == l || this == document ? l.scrollTo(!F ? H : o(l).scrollLeft(), F ? H : o(l).scrollTop()) : this[G] = H
  2760. }) : this[0] == l || this[0] == document ? self[F ? "pageYOffset" : "pageXOffset"] || o.boxModel && document.documentElement[G] || document.body[G] : this[0][G]
  2761. }
  2762. });
  2763. o.each(["Height","Width"], function(I, G) {
  2764. var E = I ? "Left" : "Top",H = I ? "Right" : "Bottom",F = G.toLowerCase();
  2765. o.fn["inner" + G] = function() {
  2766. return this[0] ? o.css(this[0], F, false, "padding") : null
  2767. };
  2768. o.fn["outer" + G] = function(K) {
  2769. return this[0] ? o.css(this[0], F, false, K ? "margin" : "border") : null
  2770. };
  2771. var J = G.toLowerCase();
  2772. o.fn[J] = function(K) {
  2773. return this[0] == l ? document.compatMode == "CSS1Compat" && document.documentElement["client" + G] || document.body["client" + G] : this[0] == document ? Math.max(document.documentElement["client" + G], document.body["scroll" + G], document.documentElement["scroll" + G], document.body["offset" + G], document.documentElement["offset" + G]) : K === g ? (this.length ? o.css(this[0], J) : null) : this.css(J, typeof K === "string" ? K : K + "px")
  2774. }
  2775. })
  2776. })();
  2777. function isIP(strIP) {
  2778. if (isNull(strIP)) return false;
  2779. var re = /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g;
  2780. if (re.test(strIP)) {
  2781. if (RegExp.$1 < 256 && RegExp.$2 < 256 && RegExp.$3 < 256 && RegExp.$4 < 256) return true;
  2782. }
  2783. return false;
  2784. }
  2785. function isNull(str) {
  2786. if (str == "") return true;
  2787. var regu = "^[ ]+$";
  2788. var re = new RegExp(regu);
  2789. return re.test(str);
  2790. }
  2791. function detectBrower() {
  2792. var sUserAgent = navigator.userAgent;
  2793. var isOpera = sUserAgent.indexOf("Opera") > -1;
  2794. if (isOpera) return "Opera";
  2795. var isKHTML = sUserAgent.indexOf("KHTML") > -1 || sUserAgent.indexOf("Konqueror") > -1 || sUserAgent.indexOf("AppleWebKit") > -1;
  2796. var isSafari = sUserAgent.indexOf("AppleWebKit") > -1 && isKHTML;
  2797. var isKonq = sUserAgent.indexOf("Konqueror") > -1 && isKHTML;
  2798. if (isSafari) return "Safari";
  2799. if (isKonq) return "Konqueror";
  2800. var isIE = sUserAgent.indexOf("compatible") > -1 && sUserAgent.indexOf("MSIE") > -1 && !isOpera;
  2801. if (isIE) return "IE";
  2802. var isMoz = sUserAgent.indexOf("Gecko") > -1 && !isKHTML;
  2803. if (isMoz) return "Mozilla";
  2804. return "None";
  2805. }