Merge lp:~netpascal0123/me-tv/me-tv_http_module into lp:me-tv

Proposed by Pascal Noisette
Status: Merged
Approved by: Frédéric Côté
Approved revision: 22
Merged at revision: 24
Proposed branch: lp:~netpascal0123/me-tv/me-tv_http_module
Merge into: lp:me-tv
Diff against target: 24303 lines (+14917/-8908)
54 files modified
http/www/css/gtk.css (+5/-1)
http/www/css/me-tv.css (+18/-0)
http/www/index.html (+20/-12)
http/www/js/library/jquery-ui-1.7/AUTHORS.txt (+0/-30)
http/www/js/library/jquery-ui-1.7/GPL-LICENSE.txt (+0/-278)
http/www/js/library/jquery-ui-1.7/MIT-LICENSE.txt (+0/-25)
http/www/js/library/jquery-ui-1.7/jquery-1.3.2.js (+0/-4376)
http/www/js/library/jquery-ui-1.7/themes/base/jquery-ui.css (+0/-412)
http/www/js/library/jquery-ui-1.7/themes/base/ui.accordion.css (+0/-9)
http/www/js/library/jquery-ui-1.7/themes/base/ui.all.css (+0/-2)
http/www/js/library/jquery-ui-1.7/themes/base/ui.base.css (+0/-9)
http/www/js/library/jquery-ui-1.7/themes/base/ui.core.css (+0/-37)
http/www/js/library/jquery-ui-1.7/themes/base/ui.datepicker.css (+0/-62)
http/www/js/library/jquery-ui-1.7/themes/base/ui.dialog.css (+0/-13)
http/www/js/library/jquery-ui-1.7/themes/base/ui.progressbar.css (+0/-4)
http/www/js/library/jquery-ui-1.7/themes/base/ui.resizable.css (+0/-13)
http/www/js/library/jquery-ui-1.7/themes/base/ui.slider.css (+0/-17)
http/www/js/library/jquery-ui-1.7/themes/base/ui.tabs.css (+0/-11)
http/www/js/library/jquery-ui-1.7/themes/base/ui.theme.css (+0/-243)
http/www/js/library/jquery-ui-1.7/ui/ui.core.js (+0/-519)
http/www/js/library/jquery-ui-1.7/ui/ui.datepicker.js (+0/-1626)
http/www/js/library/jquery-ui-1.7/ui/ui.slider.js (+0/-511)
http/www/js/library/jquery-ui-1.7/ui/ui.tabs.js (+0/-685)
http/www/js/library/jquery-ui-1.7/version.txt (+0/-1)
http/www/js/library/jquery-ui/AUTHORS.txt (+30/-0)
http/www/js/library/jquery-ui/GPL-LICENSE.txt (+278/-0)
http/www/js/library/jquery-ui/MIT-LICENSE.txt (+25/-0)
http/www/js/library/jquery-ui/jquery.js (+9266/-0)
http/www/js/library/jquery-ui/themes/base/jquery-ui.css (+563/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.accordion.css (+19/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.all.css (+11/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.autocomplete.css (+53/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.base.css (+21/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.button.css (+38/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.core.css (+38/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.datepicker.css (+68/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.dialog.css (+21/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.progressbar.css (+11/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.resizable.css (+20/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.selectable.css (+10/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.slider.css (+24/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.tabs.css (+18/-0)
http/www/js/library/jquery-ui/themes/base/jquery.ui.theme.css (+247/-0)
http/www/js/library/jquery-ui/ui/jquery.ui.core.js (+319/-0)
http/www/js/library/jquery-ui/ui/jquery.ui.datepicker.js (+1826/-0)
http/www/js/library/jquery-ui/ui/jquery.ui.mouse.js (+162/-0)
http/www/js/library/jquery-ui/ui/jquery.ui.slider.js (+662/-0)
http/www/js/library/jquery-ui/ui/jquery.ui.tabs.js (+758/-0)
http/www/js/library/jquery-ui/ui/jquery.ui.widget.js (+272/-0)
http/www/js/library/jquery-ui/version.txt (+1/-0)
http/www/js/me-tv.actions.js (+22/-2)
http/www/js/me-tv.js (+8/-6)
http/www/plugin/schedule.html (+28/-2)
http/www/plugin/scheduler.html (+55/-2)
To merge this branch: bzr merge lp:~netpascal0123/me-tv/me-tv_http_module
Reviewer Review Type Date Requested Status
Frédéric Côté Approve
Review via email: mp+98051@code.launchpad.net

Description of the change

- edit a schedule
- advance schedule properties capture
- upgrade lib to fix the bug on the datepicker
- missing schedule day of month in the schedule list
- stay connected until the browser is closed or the user disconnect

Pascal

To post a comment you must log in.
Revision history for this message
Frédéric Côté (frederic-cote) wrote :

I'll merge it as soon as possible.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'http/www/css/gtk.css'
2--- http/www/css/gtk.css 2012-02-25 12:56:33 +0000
3+++ http/www/css/gtk.css 2012-03-17 12:26:18 +0000
4@@ -54,4 +54,8 @@
5
6 .gnome-logout{
7 background-image: url("../img/gnome/48x48/actions/gnome-logout.png");
8-}
9\ No newline at end of file
10+}
11+
12+.edit-find-replace{
13+ background-image: url("../img/gnome/24x24/actions/edit-find-replace.png");
14+}
15
16=== modified file 'http/www/css/me-tv.css'
17--- http/www/css/me-tv.css 2012-02-25 12:56:33 +0000
18+++ http/www/css/me-tv.css 2012-03-17 12:26:18 +0000
19@@ -58,6 +58,12 @@
20 padding: 5px;
21 margin:5px;
22 }
23+input[type=button]{
24+ width: 200px;
25+}
26+.text-center{
27+ text-align:center;
28+}
29 .field input[type=button] {
30 margin:5px;
31 }
32@@ -74,3 +80,15 @@
33 width: 500px;
34 margin: auto;
35 }
36+div.interaction-inline{
37+ margin:6px;
38+ float:left;
39+}
40+div.widespace{
41+ width: 75px;
42+ height:0px;
43+}
44+div.breaker{
45+ clear:both;
46+ height:0px;
47+}
48
49=== added file 'http/www/img/gnome/24x24/actions/edit-find-replace.png'
50Binary files http/www/img/gnome/24x24/actions/edit-find-replace.png 1970-01-01 00:00:00 +0000 and http/www/img/gnome/24x24/actions/edit-find-replace.png 2012-03-17 12:26:18 +0000 differ
51=== modified file 'http/www/index.html'
52--- http/www/index.html 2012-02-25 20:58:01 +0000
53+++ http/www/index.html 2012-03-17 12:26:18 +0000
54@@ -24,13 +24,15 @@
55 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
56 *
57 -->
58- <script type="text/javascript" src="js/library/jquery-ui-1.7/jquery-1.3.2.js"></script>
59+ <script type="text/javascript" src="js/library/jquery-ui/jquery.js"></script>
60 <script type="text/javascript" src="js/library/jquery.xml2json.js"></script>
61 <script type="text/javascript" src="js/library/jquery.json2xml.js"></script>
62- <script type="text/javascript" src="js/library/jquery-ui-1.7/ui/ui.core.js"></script>
63- <script type="text/javascript" src="js/library/jquery-ui-1.7/ui/ui.tabs.js"></script>
64- <script type="text/javascript" src="js/library/jquery-ui-1.7/ui/ui.slider.js"></script>
65- <script type="text/javascript" src="js/library/jquery-ui-1.7/ui/ui.datepicker.js"></script>
66+ <script type="text/javascript" src="js/library/jquery-ui/ui/jquery.ui.core.js"></script>
67+ <script type="text/javascript" src="js/library/jquery-ui/ui/jquery.ui.widget.js"></script>
68+ <script type="text/javascript" src="js/library/jquery-ui/ui/jquery.ui.mouse.js"></script>
69+ <script type="text/javascript" src="js/library/jquery-ui/ui/jquery.ui.tabs.js"></script>
70+ <script type="text/javascript" src="js/library/jquery-ui/ui/jquery.ui.slider.js"></script>
71+ <script type="text/javascript" src="js/library/jquery-ui/ui/jquery.ui.datepicker.js"></script>
72 <script type="text/javascript" src="js/library/jquery-ui-timepicker-addon.js"></script>
73
74 <script type="text/javascript" src="js/library/utils.js"></script>
75@@ -39,11 +41,11 @@
76 <script type="text/javascript" src="js/me-tv.actions.js"></script>
77
78
79- <link type="text/css" href="js/library/jquery-ui-1.7/themes/base/ui.base.css" rel="stylesheet" />
80- <link type="text/css" href="js/library/jquery-ui-1.7/themes/base/ui.theme.css" rel="stylesheet" />
81- <link type="text/css" href="js/library/jquery-ui-1.7/themes/base/ui.tabs.css" rel="stylesheet" />
82- <link type="text/css" href="js/library/jquery-ui-1.7/themes/base/ui.datepicker.css" rel="stylesheet" />
83- <link type="text/css" href="js/library/jquery-ui-1.7/themes/base/ui.slider.css" rel="stylesheet" />
84+ <link type="text/css" href="js/library/jquery-ui/themes/base/jquery.ui.base.css" rel="stylesheet" />
85+ <link type="text/css" href="js/library/jquery-ui/themes/base/jquery.ui.theme.css" rel="stylesheet" />
86+ <link type="text/css" href="js/library/jquery-ui/themes/base/jquery.ui.tabs.css" rel="stylesheet" />
87+ <link type="text/css" href="js/library/jquery-ui/themes/base/jquery.ui.datepicker.css" rel="stylesheet" />
88+ <link type="text/css" href="js/library/jquery-ui/themes/base/jquery.ui.slider.css" rel="stylesheet" />
89 <link type="text/css" href="css/timepicker.css" rel="stylesheet" />
90
91 <link type="text/css" href="css/gtk.css" rel="stylesheet" />
92@@ -64,7 +66,7 @@
93 <a id="schedule_tab" href="plugin/schedule.html"><span class="gtk_icon stock_appointment-reminder">&nbsp;</span></a>
94 </li>
95 <li>
96- <a href="plugin/scheduler.html"><span class="gtk_icon stock_new-appointment">&nbsp;</span></a>
97+ <a id="scheduler_tab" href="plugin/scheduler.html"><span class="gtk_icon stock_new-appointment">&nbsp;</span></a>
98 </li>
99 <!-- ### ### -->
100 </ul>
101@@ -75,7 +77,10 @@
102 </div>
103
104 <script type="text/javascript">
105- $("#gtkui").tabs({spinner : "", cache : true});
106+ $("#gtkui").tabs({
107+ spinner : "",
108+ cache : true
109+ });
110 jQuery(me_tv).bind("me_tv_log_INFO", function (event, data) {
111 jQuery("#tab_log_area").prepend("<li class='info'>" + data.message + "</li>");
112 });
113@@ -85,6 +90,9 @@
114 jQuery(me_tv).bind("me_tv_log_WARNING", function (event, data) {
115 jQuery("#tab_log_area").prepend("<li class='warning'>" + data.message + "</li>");
116 });
117+ setInterval(function(){
118+ me_tv.get_status();
119+ }, 80000);
120 </script>
121 </body>
122 </html>
123
124=== added directory 'http/www/js/library/jquery-ui'
125=== removed directory 'http/www/js/library/jquery-ui-1.7'
126=== removed file 'http/www/js/library/jquery-ui-1.7/AUTHORS.txt'
127--- http/www/js/library/jquery-ui-1.7/AUTHORS.txt 2012-02-25 12:56:33 +0000
128+++ http/www/js/library/jquery-ui-1.7/AUTHORS.txt 1970-01-01 00:00:00 +0000
129@@ -1,30 +0,0 @@
130-jQuery UI Authors (http://ui.jquery.com/about)
131-
132-This software consists of voluntary contributions made by many
133-individuals. For exact contribution history, see the revision history
134-and logs, available at http://jquery-ui.googlecode.com/svn/
135-
136-Brandon Aaron
137-Paul Bakaus (paulbakaus.com)
138-David Bolter
139-Rich Caloggero
140-Chi Cheng (cloudream@gmail.com)
141-Colin Clark (http://colin.atrc.utoronto.ca/)
142-Michelle D'Souza
143-Aaron Eisenberger (aaronchi@gmail.com)
144-Ariel Flesler
145-Bohdan Ganicky
146-Scott González
147-Marc Grabanski (m@marcgrabanski.com)
148-Klaus Hartl (stilbuero.de)
149-Scott Jehl
150-Cody Lindley
151-Eduardo Lundgren (eduardolundgren@gmail.com)
152-Todd Parker
153-John Resig
154-Patty Toland
155-Ca-Phun Ung (yelotofu.com)
156-Keith Wood (kbwood@virginbroadband.com.au)
157-Maggie Costello Wachs
158-Richard D. Worth (rdworth.org)
159-Jörn Zaefferer (bassistance.de)
160
161=== removed file 'http/www/js/library/jquery-ui-1.7/GPL-LICENSE.txt'
162--- http/www/js/library/jquery-ui-1.7/GPL-LICENSE.txt 2012-02-25 12:56:33 +0000
163+++ http/www/js/library/jquery-ui-1.7/GPL-LICENSE.txt 1970-01-01 00:00:00 +0000
164@@ -1,278 +0,0 @@
165- GNU GENERAL PUBLIC LICENSE
166- Version 2, June 1991
167-
168- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
169- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
170- Everyone is permitted to copy and distribute verbatim copies
171- of this license document, but changing it is not allowed.
172-
173- Preamble
174-
175- The licenses for most software are designed to take away your
176-freedom to share and change it. By contrast, the GNU General Public
177-License is intended to guarantee your freedom to share and change free
178-software--to make sure the software is free for all its users. This
179-General Public License applies to most of the Free Software
180-Foundation's software and to any other program whose authors commit to
181-using it. (Some other Free Software Foundation software is covered by
182-the GNU Lesser General Public License instead.) You can apply it to
183-your programs, too.
184-
185- When we speak of free software, we are referring to freedom, not
186-price. Our General Public Licenses are designed to make sure that you
187-have the freedom to distribute copies of free software (and charge for
188-this service if you wish), that you receive source code or can get it
189-if you want it, that you can change the software or use pieces of it
190-in new free programs; and that you know you can do these things.
191-
192- To protect your rights, we need to make restrictions that forbid
193-anyone to deny you these rights or to ask you to surrender the rights.
194-These restrictions translate to certain responsibilities for you if you
195-distribute copies of the software, or if you modify it.
196-
197- For example, if you distribute copies of such a program, whether
198-gratis or for a fee, you must give the recipients all the rights that
199-you have. You must make sure that they, too, receive or can get the
200-source code. And you must show them these terms so they know their
201-rights.
202-
203- We protect your rights with two steps: (1) copyright the software, and
204-(2) offer you this license which gives you legal permission to copy,
205-distribute and/or modify the software.
206-
207- Also, for each author's protection and ours, we want to make certain
208-that everyone understands that there is no warranty for this free
209-software. If the software is modified by someone else and passed on, we
210-want its recipients to know that what they have is not the original, so
211-that any problems introduced by others will not reflect on the original
212-authors' reputations.
213-
214- Finally, any free program is threatened constantly by software
215-patents. We wish to avoid the danger that redistributors of a free
216-program will individually obtain patent licenses, in effect making the
217-program proprietary. To prevent this, we have made it clear that any
218-patent must be licensed for everyone's free use or not licensed at all.
219-
220- The precise terms and conditions for copying, distribution and
221-modification follow.
222-
223- GNU GENERAL PUBLIC LICENSE
224- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
225-
226- 0. This License applies to any program or other work which contains
227-a notice placed by the copyright holder saying it may be distributed
228-under the terms of this General Public License. The "Program", below,
229-refers to any such program or work, and a "work based on the Program"
230-means either the Program or any derivative work under copyright law:
231-that is to say, a work containing the Program or a portion of it,
232-either verbatim or with modifications and/or translated into another
233-language. (Hereinafter, translation is included without limitation in
234-the term "modification".) Each licensee is addressed as "you".
235-
236-Activities other than copying, distribution and modification are not
237-covered by this License; they are outside its scope. The act of
238-running the Program is not restricted, and the output from the Program
239-is covered only if its contents constitute a work based on the
240-Program (independent of having been made by running the Program).
241-Whether that is true depends on what the Program does.
242-
243- 1. You may copy and distribute verbatim copies of the Program's
244-source code as you receive it, in any medium, provided that you
245-conspicuously and appropriately publish on each copy an appropriate
246-copyright notice and disclaimer of warranty; keep intact all the
247-notices that refer to this License and to the absence of any warranty;
248-and give any other recipients of the Program a copy of this License
249-along with the Program.
250-
251-You may charge a fee for the physical act of transferring a copy, and
252-you may at your option offer warranty protection in exchange for a fee.
253-
254- 2. You may modify your copy or copies of the Program or any portion
255-of it, thus forming a work based on the Program, and copy and
256-distribute such modifications or work under the terms of Section 1
257-above, provided that you also meet all of these conditions:
258-
259- a) You must cause the modified files to carry prominent notices
260- stating that you changed the files and the date of any change.
261-
262- b) You must cause any work that you distribute or publish, that in
263- whole or in part contains or is derived from the Program or any
264- part thereof, to be licensed as a whole at no charge to all third
265- parties under the terms of this License.
266-
267- c) If the modified program normally reads commands interactively
268- when run, you must cause it, when started running for such
269- interactive use in the most ordinary way, to print or display an
270- announcement including an appropriate copyright notice and a
271- notice that there is no warranty (or else, saying that you provide
272- a warranty) and that users may redistribute the program under
273- these conditions, and telling the user how to view a copy of this
274- License. (Exception: if the Program itself is interactive but
275- does not normally print such an announcement, your work based on
276- the Program is not required to print an announcement.)
277-
278-These requirements apply to the modified work as a whole. If
279-identifiable sections of that work are not derived from the Program,
280-and can be reasonably considered independent and separate works in
281-themselves, then this License, and its terms, do not apply to those
282-sections when you distribute them as separate works. But when you
283-distribute the same sections as part of a whole which is a work based
284-on the Program, the distribution of the whole must be on the terms of
285-this License, whose permissions for other licensees extend to the
286-entire whole, and thus to each and every part regardless of who wrote it.
287-
288-Thus, it is not the intent of this section to claim rights or contest
289-your rights to work written entirely by you; rather, the intent is to
290-exercise the right to control the distribution of derivative or
291-collective works based on the Program.
292-
293-In addition, mere aggregation of another work not based on the Program
294-with the Program (or with a work based on the Program) on a volume of
295-a storage or distribution medium does not bring the other work under
296-the scope of this License.
297-
298- 3. You may copy and distribute the Program (or a work based on it,
299-under Section 2) in object code or executable form under the terms of
300-Sections 1 and 2 above provided that you also do one of the following:
301-
302- a) Accompany it with the complete corresponding machine-readable
303- source code, which must be distributed under the terms of Sections
304- 1 and 2 above on a medium customarily used for software interchange; or,
305-
306- b) Accompany it with a written offer, valid for at least three
307- years, to give any third party, for a charge no more than your
308- cost of physically performing source distribution, a complete
309- machine-readable copy of the corresponding source code, to be
310- distributed under the terms of Sections 1 and 2 above on a medium
311- customarily used for software interchange; or,
312-
313- c) Accompany it with the information you received as to the offer
314- to distribute corresponding source code. (This alternative is
315- allowed only for noncommercial distribution and only if you
316- received the program in object code or executable form with such
317- an offer, in accord with Subsection b above.)
318-
319-The source code for a work means the preferred form of the work for
320-making modifications to it. For an executable work, complete source
321-code means all the source code for all modules it contains, plus any
322-associated interface definition files, plus the scripts used to
323-control compilation and installation of the executable. However, as a
324-special exception, the source code distributed need not include
325-anything that is normally distributed (in either source or binary
326-form) with the major components (compiler, kernel, and so on) of the
327-operating system on which the executable runs, unless that component
328-itself accompanies the executable.
329-
330-If distribution of executable or object code is made by offering
331-access to copy from a designated place, then offering equivalent
332-access to copy the source code from the same place counts as
333-distribution of the source code, even though third parties are not
334-compelled to copy the source along with the object code.
335-
336- 4. You may not copy, modify, sublicense, or distribute the Program
337-except as expressly provided under this License. Any attempt
338-otherwise to copy, modify, sublicense or distribute the Program is
339-void, and will automatically terminate your rights under this License.
340-However, parties who have received copies, or rights, from you under
341-this License will not have their licenses terminated so long as such
342-parties remain in full compliance.
343-
344- 5. You are not required to accept this License, since you have not
345-signed it. However, nothing else grants you permission to modify or
346-distribute the Program or its derivative works. These actions are
347-prohibited by law if you do not accept this License. Therefore, by
348-modifying or distributing the Program (or any work based on the
349-Program), you indicate your acceptance of this License to do so, and
350-all its terms and conditions for copying, distributing or modifying
351-the Program or works based on it.
352-
353- 6. Each time you redistribute the Program (or any work based on the
354-Program), the recipient automatically receives a license from the
355-original licensor to copy, distribute or modify the Program subject to
356-these terms and conditions. You may not impose any further
357-restrictions on the recipients' exercise of the rights granted herein.
358-You are not responsible for enforcing compliance by third parties to
359-this License.
360-
361- 7. If, as a consequence of a court judgment or allegation of patent
362-infringement or for any other reason (not limited to patent issues),
363-conditions are imposed on you (whether by court order, agreement or
364-otherwise) that contradict the conditions of this License, they do not
365-excuse you from the conditions of this License. If you cannot
366-distribute so as to satisfy simultaneously your obligations under this
367-License and any other pertinent obligations, then as a consequence you
368-may not distribute the Program at all. For example, if a patent
369-license would not permit royalty-free redistribution of the Program by
370-all those who receive copies directly or indirectly through you, then
371-the only way you could satisfy both it and this License would be to
372-refrain entirely from distribution of the Program.
373-
374-If any portion of this section is held invalid or unenforceable under
375-any particular circumstance, the balance of the section is intended to
376-apply and the section as a whole is intended to apply in other
377-circumstances.
378-
379-It is not the purpose of this section to induce you to infringe any
380-patents or other property right claims or to contest validity of any
381-such claims; this section has the sole purpose of protecting the
382-integrity of the free software distribution system, which is
383-implemented by public license practices. Many people have made
384-generous contributions to the wide range of software distributed
385-through that system in reliance on consistent application of that
386-system; it is up to the author/donor to decide if he or she is willing
387-to distribute software through any other system and a licensee cannot
388-impose that choice.
389-
390-This section is intended to make thoroughly clear what is believed to
391-be a consequence of the rest of this License.
392-
393- 8. If the distribution and/or use of the Program is restricted in
394-certain countries either by patents or by copyrighted interfaces, the
395-original copyright holder who places the Program under this License
396-may add an explicit geographical distribution limitation excluding
397-those countries, so that distribution is permitted only in or among
398-countries not thus excluded. In such case, this License incorporates
399-the limitation as if written in the body of this License.
400-
401- 9. The Free Software Foundation may publish revised and/or new versions
402-of the General Public License from time to time. Such new versions will
403-be similar in spirit to the present version, but may differ in detail to
404-address new problems or concerns.
405-
406-Each version is given a distinguishing version number. If the Program
407-specifies a version number of this License which applies to it and "any
408-later version", you have the option of following the terms and conditions
409-either of that version or of any later version published by the Free
410-Software Foundation. If the Program does not specify a version number of
411-this License, you may choose any version ever published by the Free Software
412-Foundation.
413-
414- 10. If you wish to incorporate parts of the Program into other free
415-programs whose distribution conditions are different, write to the author
416-to ask for permission. For software which is copyrighted by the Free
417-Software Foundation, write to the Free Software Foundation; we sometimes
418-make exceptions for this. Our decision will be guided by the two goals
419-of preserving the free status of all derivatives of our free software and
420-of promoting the sharing and reuse of software generally.
421-
422- NO WARRANTY
423-
424- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
425-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
426-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
427-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
428-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
429-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
430-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
431-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
432-REPAIR OR CORRECTION.
433-
434- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
435-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
436-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
437-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
438-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
439-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
440-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
441-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
442-POSSIBILITY OF SUCH DAMAGES.
443
444=== removed file 'http/www/js/library/jquery-ui-1.7/MIT-LICENSE.txt'
445--- http/www/js/library/jquery-ui-1.7/MIT-LICENSE.txt 2012-02-25 12:56:33 +0000
446+++ http/www/js/library/jquery-ui-1.7/MIT-LICENSE.txt 1970-01-01 00:00:00 +0000
447@@ -1,25 +0,0 @@
448-Copyright (c) 2009 Paul Bakaus, http://jqueryui.com/
449-
450-This software consists of voluntary contributions made by many
451-individuals (AUTHORS.txt, http://jqueryui.com/about) For exact
452-contribution history, see the revision history and logs, available
453-at http://jquery-ui.googlecode.com/svn/
454-
455-Permission is hereby granted, free of charge, to any person obtaining
456-a copy of this software and associated documentation files (the
457-"Software"), to deal in the Software without restriction, including
458-without limitation the rights to use, copy, modify, merge, publish,
459-distribute, sublicense, and/or sell copies of the Software, and to
460-permit persons to whom the Software is furnished to do so, subject to
461-the following conditions:
462-
463-The above copyright notice and this permission notice shall be
464-included in all copies or substantial portions of the Software.
465-
466-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
467-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
468-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
469-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
470-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
471-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
472-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
473
474=== removed file 'http/www/js/library/jquery-ui-1.7/jquery-1.3.2.js'
475--- http/www/js/library/jquery-ui-1.7/jquery-1.3.2.js 2012-02-25 12:56:33 +0000
476+++ http/www/js/library/jquery-ui-1.7/jquery-1.3.2.js 1970-01-01 00:00:00 +0000
477@@ -1,4376 +0,0 @@
478-/*!
479- * jQuery JavaScript Library v1.3.2
480- * http://jquery.com/
481- *
482- * Copyright (c) 2009 John Resig
483- * Dual licensed under the MIT and GPL licenses.
484- * http://docs.jquery.com/License
485- *
486- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
487- * Revision: 6246
488- */
489-(function(){
490-
491-var
492- // Will speed up references to window, and allows munging its name.
493- window = this,
494- // Will speed up references to undefined, and allows munging its name.
495- undefined,
496- // Map over jQuery in case of overwrite
497- _jQuery = window.jQuery,
498- // Map over the $ in case of overwrite
499- _$ = window.$,
500-
501- jQuery = window.jQuery = window.$ = function( selector, context ) {
502- // The jQuery object is actually just the init constructor 'enhanced'
503- return new jQuery.fn.init( selector, context );
504- },
505-
506- // A simple way to check for HTML strings or ID strings
507- // (both of which we optimize for)
508- quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
509- // Is it a simple selector
510- isSimple = /^.[^:#\[\.,]*$/;
511-
512-jQuery.fn = jQuery.prototype = {
513- init: function( selector, context ) {
514- // Make sure that a selection was provided
515- selector = selector || document;
516-
517- // Handle $(DOMElement)
518- if ( selector.nodeType ) {
519- this[0] = selector;
520- this.length = 1;
521- this.context = selector;
522- return this;
523- }
524- // Handle HTML strings
525- if ( typeof selector === "string" ) {
526- // Are we dealing with HTML string or an ID?
527- var match = quickExpr.exec( selector );
528-
529- // Verify a match, and that no context was specified for #id
530- if ( match && (match[1] || !context) ) {
531-
532- // HANDLE: $(html) -> $(array)
533- if ( match[1] )
534- selector = jQuery.clean( [ match[1] ], context );
535-
536- // HANDLE: $("#id")
537- else {
538- var elem = document.getElementById( match[3] );
539-
540- // Handle the case where IE and Opera return items
541- // by name instead of ID
542- if ( elem && elem.id != match[3] )
543- return jQuery().find( selector );
544-
545- // Otherwise, we inject the element directly into the jQuery object
546- var ret = jQuery( elem || [] );
547- ret.context = document;
548- ret.selector = selector;
549- return ret;
550- }
551-
552- // HANDLE: $(expr, [context])
553- // (which is just equivalent to: $(content).find(expr)
554- } else
555- return jQuery( context ).find( selector );
556-
557- // HANDLE: $(function)
558- // Shortcut for document ready
559- } else if ( jQuery.isFunction( selector ) )
560- return jQuery( document ).ready( selector );
561-
562- // Make sure that old selector state is passed along
563- if ( selector.selector && selector.context ) {
564- this.selector = selector.selector;
565- this.context = selector.context;
566- }
567-
568- return this.setArray(jQuery.isArray( selector ) ?
569- selector :
570- jQuery.makeArray(selector));
571- },
572-
573- // Start with an empty selector
574- selector: "",
575-
576- // The current version of jQuery being used
577- jquery: "1.3.2",
578-
579- // The number of elements contained in the matched element set
580- size: function() {
581- return this.length;
582- },
583-
584- // Get the Nth element in the matched element set OR
585- // Get the whole matched element set as a clean array
586- get: function( num ) {
587- return num === undefined ?
588-
589- // Return a 'clean' array
590- Array.prototype.slice.call( this ) :
591-
592- // Return just the object
593- this[ num ];
594- },
595-
596- // Take an array of elements and push it onto the stack
597- // (returning the new matched element set)
598- pushStack: function( elems, name, selector ) {
599- // Build a new jQuery matched element set
600- var ret = jQuery( elems );
601-
602- // Add the old object onto the stack (as a reference)
603- ret.prevObject = this;
604-
605- ret.context = this.context;
606-
607- if ( name === "find" )
608- ret.selector = this.selector + (this.selector ? " " : "") + selector;
609- else if ( name )
610- ret.selector = this.selector + "." + name + "(" + selector + ")";
611-
612- // Return the newly-formed element set
613- return ret;
614- },
615-
616- // Force the current matched set of elements to become
617- // the specified array of elements (destroying the stack in the process)
618- // You should use pushStack() in order to do this, but maintain the stack
619- setArray: function( elems ) {
620- // Resetting the length to 0, then using the native Array push
621- // is a super-fast way to populate an object with array-like properties
622- this.length = 0;
623- Array.prototype.push.apply( this, elems );
624-
625- return this;
626- },
627-
628- // Execute a callback for every element in the matched set.
629- // (You can seed the arguments with an array of args, but this is
630- // only used internally.)
631- each: function( callback, args ) {
632- return jQuery.each( this, callback, args );
633- },
634-
635- // Determine the position of an element within
636- // the matched set of elements
637- index: function( elem ) {
638- // Locate the position of the desired element
639- return jQuery.inArray(
640- // If it receives a jQuery object, the first element is used
641- elem && elem.jquery ? elem[0] : elem
642- , this );
643- },
644-
645- attr: function( name, value, type ) {
646- var options = name;
647-
648- // Look for the case where we're accessing a style value
649- if ( typeof name === "string" )
650- if ( value === undefined )
651- return this[0] && jQuery[ type || "attr" ]( this[0], name );
652-
653- else {
654- options = {};
655- options[ name ] = value;
656- }
657-
658- // Check to see if we're setting style values
659- return this.each(function(i){
660- // Set all the styles
661- for ( name in options )
662- jQuery.attr(
663- type ?
664- this.style :
665- this,
666- name, jQuery.prop( this, options[ name ], type, i, name )
667- );
668- });
669- },
670-
671- css: function( key, value ) {
672- // ignore negative width and height values
673- if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
674- value = undefined;
675- return this.attr( key, value, "curCSS" );
676- },
677-
678- text: function( text ) {
679- if ( typeof text !== "object" && text != null )
680- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
681-
682- var ret = "";
683-
684- jQuery.each( text || this, function(){
685- jQuery.each( this.childNodes, function(){
686- if ( this.nodeType != 8 )
687- ret += this.nodeType != 1 ?
688- this.nodeValue :
689- jQuery.fn.text( [ this ] );
690- });
691- });
692-
693- return ret;
694- },
695-
696- wrapAll: function( html ) {
697- if ( this[0] ) {
698- // The elements to wrap the target around
699- var wrap = jQuery( html, this[0].ownerDocument ).clone();
700-
701- if ( this[0].parentNode )
702- wrap.insertBefore( this[0] );
703-
704- wrap.map(function(){
705- var elem = this;
706-
707- while ( elem.firstChild )
708- elem = elem.firstChild;
709-
710- return elem;
711- }).append(this);
712- }
713-
714- return this;
715- },
716-
717- wrapInner: function( html ) {
718- return this.each(function(){
719- jQuery( this ).contents().wrapAll( html );
720- });
721- },
722-
723- wrap: function( html ) {
724- return this.each(function(){
725- jQuery( this ).wrapAll( html );
726- });
727- },
728-
729- append: function() {
730- return this.domManip(arguments, true, function(elem){
731- if (this.nodeType == 1)
732- this.appendChild( elem );
733- });
734- },
735-
736- prepend: function() {
737- return this.domManip(arguments, true, function(elem){
738- if (this.nodeType == 1)
739- this.insertBefore( elem, this.firstChild );
740- });
741- },
742-
743- before: function() {
744- return this.domManip(arguments, false, function(elem){
745- this.parentNode.insertBefore( elem, this );
746- });
747- },
748-
749- after: function() {
750- return this.domManip(arguments, false, function(elem){
751- this.parentNode.insertBefore( elem, this.nextSibling );
752- });
753- },
754-
755- end: function() {
756- return this.prevObject || jQuery( [] );
757- },
758-
759- // For internal use only.
760- // Behaves like an Array's method, not like a jQuery method.
761- push: [].push,
762- sort: [].sort,
763- splice: [].splice,
764-
765- find: function( selector ) {
766- if ( this.length === 1 ) {
767- var ret = this.pushStack( [], "find", selector );
768- ret.length = 0;
769- jQuery.find( selector, this[0], ret );
770- return ret;
771- } else {
772- return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
773- return jQuery.find( selector, elem );
774- })), "find", selector );
775- }
776- },
777-
778- clone: function( events ) {
779- // Do the clone
780- var ret = this.map(function(){
781- if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
782- // IE copies events bound via attachEvent when
783- // using cloneNode. Calling detachEvent on the
784- // clone will also remove the events from the orignal
785- // In order to get around this, we use innerHTML.
786- // Unfortunately, this means some modifications to
787- // attributes in IE that are actually only stored
788- // as properties will not be copied (such as the
789- // the name attribute on an input).
790- var html = this.outerHTML;
791- if ( !html ) {
792- var div = this.ownerDocument.createElement("div");
793- div.appendChild( this.cloneNode(true) );
794- html = div.innerHTML;
795- }
796-
797- return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
798- } else
799- return this.cloneNode(true);
800- });
801-
802- // Copy the events from the original to the clone
803- if ( events === true ) {
804- var orig = this.find("*").andSelf(), i = 0;
805-
806- ret.find("*").andSelf().each(function(){
807- if ( this.nodeName !== orig[i].nodeName )
808- return;
809-
810- var events = jQuery.data( orig[i], "events" );
811-
812- for ( var type in events ) {
813- for ( var handler in events[ type ] ) {
814- jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
815- }
816- }
817-
818- i++;
819- });
820- }
821-
822- // Return the cloned set
823- return ret;
824- },
825-
826- filter: function( selector ) {
827- return this.pushStack(
828- jQuery.isFunction( selector ) &&
829- jQuery.grep(this, function(elem, i){
830- return selector.call( elem, i );
831- }) ||
832-
833- jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
834- return elem.nodeType === 1;
835- }) ), "filter", selector );
836- },
837-
838- closest: function( selector ) {
839- var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null,
840- closer = 0;
841-
842- return this.map(function(){
843- var cur = this;
844- while ( cur && cur.ownerDocument ) {
845- if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
846- jQuery.data(cur, "closest", closer);
847- return cur;
848- }
849- cur = cur.parentNode;
850- closer++;
851- }
852- });
853- },
854-
855- not: function( selector ) {
856- if ( typeof selector === "string" )
857- // test special case where just one selector is passed in
858- if ( isSimple.test( selector ) )
859- return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector );
860- else
861- selector = jQuery.multiFilter( selector, this );
862-
863- var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
864- return this.filter(function() {
865- return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
866- });
867- },
868-
869- add: function( selector ) {
870- return this.pushStack( jQuery.unique( jQuery.merge(
871- this.get(),
872- typeof selector === "string" ?
873- jQuery( selector ) :
874- jQuery.makeArray( selector )
875- )));
876- },
877-
878- is: function( selector ) {
879- return !!selector && jQuery.multiFilter( selector, this ).length > 0;
880- },
881-
882- hasClass: function( selector ) {
883- return !!selector && this.is( "." + selector );
884- },
885-
886- val: function( value ) {
887- if ( value === undefined ) {
888- var elem = this[0];
889-
890- if ( elem ) {
891- if( jQuery.nodeName( elem, 'option' ) )
892- return (elem.attributes.value || {}).specified ? elem.value : elem.text;
893-
894- // We need to handle select boxes special
895- if ( jQuery.nodeName( elem, "select" ) ) {
896- var index = elem.selectedIndex,
897- values = [],
898- options = elem.options,
899- one = elem.type == "select-one";
900-
901- // Nothing was selected
902- if ( index < 0 )
903- return null;
904-
905- // Loop through all the selected options
906- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
907- var option = options[ i ];
908-
909- if ( option.selected ) {
910- // Get the specifc value for the option
911- value = jQuery(option).val();
912-
913- // We don't need an array for one selects
914- if ( one )
915- return value;
916-
917- // Multi-Selects return an array
918- values.push( value );
919- }
920- }
921-
922- return values;
923- }
924-
925- // Everything else, we just grab the value
926- return (elem.value || "").replace(/\r/g, "");
927-
928- }
929-
930- return undefined;
931- }
932-
933- if ( typeof value === "number" )
934- value += '';
935-
936- return this.each(function(){
937- if ( this.nodeType != 1 )
938- return;
939-
940- if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
941- this.checked = (jQuery.inArray(this.value, value) >= 0 ||
942- jQuery.inArray(this.name, value) >= 0);
943-
944- else if ( jQuery.nodeName( this, "select" ) ) {
945- var values = jQuery.makeArray(value);
946-
947- jQuery( "option", this ).each(function(){
948- this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
949- jQuery.inArray( this.text, values ) >= 0);
950- });
951-
952- if ( !values.length )
953- this.selectedIndex = -1;
954-
955- } else
956- this.value = value;
957- });
958- },
959-
960- html: function( value ) {
961- return value === undefined ?
962- (this[0] ?
963- this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :
964- null) :
965- this.empty().append( value );
966- },
967-
968- replaceWith: function( value ) {
969- return this.after( value ).remove();
970- },
971-
972- eq: function( i ) {
973- return this.slice( i, +i + 1 );
974- },
975-
976- slice: function() {
977- return this.pushStack( Array.prototype.slice.apply( this, arguments ),
978- "slice", Array.prototype.slice.call(arguments).join(",") );
979- },
980-
981- map: function( callback ) {
982- return this.pushStack( jQuery.map(this, function(elem, i){
983- return callback.call( elem, i, elem );
984- }));
985- },
986-
987- andSelf: function() {
988- return this.add( this.prevObject );
989- },
990-
991- domManip: function( args, table, callback ) {
992- if ( this[0] ) {
993- var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
994- scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
995- first = fragment.firstChild;
996-
997- if ( first )
998- for ( var i = 0, l = this.length; i < l; i++ )
999- callback.call( root(this[i], first), this.length > 1 || i > 0 ?
1000- fragment.cloneNode(true) : fragment );
1001-
1002- if ( scripts )
1003- jQuery.each( scripts, evalScript );
1004- }
1005-
1006- return this;
1007-
1008- function root( elem, cur ) {
1009- return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
1010- (elem.getElementsByTagName("tbody")[0] ||
1011- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
1012- elem;
1013- }
1014- }
1015-};
1016-
1017-// Give the init function the jQuery prototype for later instantiation
1018-jQuery.fn.init.prototype = jQuery.fn;
1019-
1020-function evalScript( i, elem ) {
1021- if ( elem.src )
1022- jQuery.ajax({
1023- url: elem.src,
1024- async: false,
1025- dataType: "script"
1026- });
1027-
1028- else
1029- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
1030-
1031- if ( elem.parentNode )
1032- elem.parentNode.removeChild( elem );
1033-}
1034-
1035-function now(){
1036- return +new Date;
1037-}
1038-
1039-jQuery.extend = jQuery.fn.extend = function() {
1040- // copy reference to target object
1041- var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
1042-
1043- // Handle a deep copy situation
1044- if ( typeof target === "boolean" ) {
1045- deep = target;
1046- target = arguments[1] || {};
1047- // skip the boolean and the target
1048- i = 2;
1049- }
1050-
1051- // Handle case when target is a string or something (possible in deep copy)
1052- if ( typeof target !== "object" && !jQuery.isFunction(target) )
1053- target = {};
1054-
1055- // extend jQuery itself if only one argument is passed
1056- if ( length == i ) {
1057- target = this;
1058- --i;
1059- }
1060-
1061- for ( ; i < length; i++ )
1062- // Only deal with non-null/undefined values
1063- if ( (options = arguments[ i ]) != null )
1064- // Extend the base object
1065- for ( var name in options ) {
1066- var src = target[ name ], copy = options[ name ];
1067-
1068- // Prevent never-ending loop
1069- if ( target === copy )
1070- continue;
1071-
1072- // Recurse if we're merging object values
1073- if ( deep && copy && typeof copy === "object" && !copy.nodeType )
1074- target[ name ] = jQuery.extend( deep,
1075- // Never move original objects, clone them
1076- src || ( copy.length != null ? [ ] : { } )
1077- , copy );
1078-
1079- // Don't bring in undefined values
1080- else if ( copy !== undefined )
1081- target[ name ] = copy;
1082-
1083- }
1084-
1085- // Return the modified object
1086- return target;
1087-};
1088-
1089-// exclude the following css properties to add px
1090-var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
1091- // cache defaultView
1092- defaultView = document.defaultView || {},
1093- toString = Object.prototype.toString;
1094-
1095-jQuery.extend({
1096- noConflict: function( deep ) {
1097- window.$ = _$;
1098-
1099- if ( deep )
1100- window.jQuery = _jQuery;
1101-
1102- return jQuery;
1103- },
1104-
1105- // See test/unit/core.js for details concerning isFunction.
1106- // Since version 1.3, DOM methods and functions like alert
1107- // aren't supported. They return false on IE (#2968).
1108- isFunction: function( obj ) {
1109- return toString.call(obj) === "[object Function]";
1110- },
1111-
1112- isArray: function( obj ) {
1113- return toString.call(obj) === "[object Array]";
1114- },
1115-
1116- // check if an element is in a (or is an) XML document
1117- isXMLDoc: function( elem ) {
1118- return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
1119- !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
1120- },
1121-
1122- // Evalulates a script in a global context
1123- globalEval: function( data ) {
1124- if ( data && /\S/.test(data) ) {
1125- // Inspired by code by Andrea Giammarchi
1126- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
1127- var head = document.getElementsByTagName("head")[0] || document.documentElement,
1128- script = document.createElement("script");
1129-
1130- script.type = "text/javascript";
1131- if ( jQuery.support.scriptEval )
1132- script.appendChild( document.createTextNode( data ) );
1133- else
1134- script.text = data;
1135-
1136- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
1137- // This arises when a base node is used (#2709).
1138- head.insertBefore( script, head.firstChild );
1139- head.removeChild( script );
1140- }
1141- },
1142-
1143- nodeName: function( elem, name ) {
1144- return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
1145- },
1146-
1147- // args is for internal usage only
1148- each: function( object, callback, args ) {
1149- var name, i = 0, length = object.length;
1150-
1151- if ( args ) {
1152- if ( length === undefined ) {
1153- for ( name in object )
1154- if ( callback.apply( object[ name ], args ) === false )
1155- break;
1156- } else
1157- for ( ; i < length; )
1158- if ( callback.apply( object[ i++ ], args ) === false )
1159- break;
1160-
1161- // A special, fast, case for the most common use of each
1162- } else {
1163- if ( length === undefined ) {
1164- for ( name in object )
1165- if ( callback.call( object[ name ], name, object[ name ] ) === false )
1166- break;
1167- } else
1168- for ( var value = object[0];
1169- i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
1170- }
1171-
1172- return object;
1173- },
1174-
1175- prop: function( elem, value, type, i, name ) {
1176- // Handle executable functions
1177- if ( jQuery.isFunction( value ) )
1178- value = value.call( elem, i );
1179-
1180- // Handle passing in a number to a CSS property
1181- return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
1182- value + "px" :
1183- value;
1184- },
1185-
1186- className: {
1187- // internal only, use addClass("class")
1188- add: function( elem, classNames ) {
1189- jQuery.each((classNames || "").split(/\s+/), function(i, className){
1190- if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
1191- elem.className += (elem.className ? " " : "") + className;
1192- });
1193- },
1194-
1195- // internal only, use removeClass("class")
1196- remove: function( elem, classNames ) {
1197- if (elem.nodeType == 1)
1198- elem.className = classNames !== undefined ?
1199- jQuery.grep(elem.className.split(/\s+/), function(className){
1200- return !jQuery.className.has( classNames, className );
1201- }).join(" ") :
1202- "";
1203- },
1204-
1205- // internal only, use hasClass("class")
1206- has: function( elem, className ) {
1207- return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
1208- }
1209- },
1210-
1211- // A method for quickly swapping in/out CSS properties to get correct calculations
1212- swap: function( elem, options, callback ) {
1213- var old = {};
1214- // Remember the old values, and insert the new ones
1215- for ( var name in options ) {
1216- old[ name ] = elem.style[ name ];
1217- elem.style[ name ] = options[ name ];
1218- }
1219-
1220- callback.call( elem );
1221-
1222- // Revert the old values
1223- for ( var name in options )
1224- elem.style[ name ] = old[ name ];
1225- },
1226-
1227- css: function( elem, name, force, extra ) {
1228- if ( name == "width" || name == "height" ) {
1229- var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
1230-
1231- function getWH() {
1232- val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
1233-
1234- if ( extra === "border" )
1235- return;
1236-
1237- jQuery.each( which, function() {
1238- if ( !extra )
1239- val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
1240- if ( extra === "margin" )
1241- val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
1242- else
1243- val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
1244- });
1245- }
1246-
1247- if ( elem.offsetWidth !== 0 )
1248- getWH();
1249- else
1250- jQuery.swap( elem, props, getWH );
1251-
1252- return Math.max(0, Math.round(val));
1253- }
1254-
1255- return jQuery.curCSS( elem, name, force );
1256- },
1257-
1258- curCSS: function( elem, name, force ) {
1259- var ret, style = elem.style;
1260-
1261- // We need to handle opacity special in IE
1262- if ( name == "opacity" && !jQuery.support.opacity ) {
1263- ret = jQuery.attr( style, "opacity" );
1264-
1265- return ret == "" ?
1266- "1" :
1267- ret;
1268- }
1269-
1270- // Make sure we're using the right name for getting the float value
1271- if ( name.match( /float/i ) )
1272- name = styleFloat;
1273-
1274- if ( !force && style && style[ name ] )
1275- ret = style[ name ];
1276-
1277- else if ( defaultView.getComputedStyle ) {
1278-
1279- // Only "float" is needed here
1280- if ( name.match( /float/i ) )
1281- name = "float";
1282-
1283- name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
1284-
1285- var computedStyle = defaultView.getComputedStyle( elem, null );
1286-
1287- if ( computedStyle )
1288- ret = computedStyle.getPropertyValue( name );
1289-
1290- // We should always get a number back from opacity
1291- if ( name == "opacity" && ret == "" )
1292- ret = "1";
1293-
1294- } else if ( elem.currentStyle ) {
1295- var camelCase = name.replace(/\-(\w)/g, function(all, letter){
1296- return letter.toUpperCase();
1297- });
1298-
1299- ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
1300-
1301- // From the awesome hack by Dean Edwards
1302- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
1303-
1304- // If we're not dealing with a regular pixel number
1305- // but a number that has a weird ending, we need to convert it to pixels
1306- if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
1307- // Remember the original values
1308- var left = style.left, rsLeft = elem.runtimeStyle.left;
1309-
1310- // Put in the new values to get a computed value out
1311- elem.runtimeStyle.left = elem.currentStyle.left;
1312- style.left = ret || 0;
1313- ret = style.pixelLeft + "px";
1314-
1315- // Revert the changed values
1316- style.left = left;
1317- elem.runtimeStyle.left = rsLeft;
1318- }
1319- }
1320-
1321- return ret;
1322- },
1323-
1324- clean: function( elems, context, fragment ) {
1325- context = context || document;
1326-
1327- // !context.createElement fails in IE with an error but returns typeof 'object'
1328- if ( typeof context.createElement === "undefined" )
1329- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
1330-
1331- // If a single string is passed in and it's a single tag
1332- // just do a createElement and skip the rest
1333- if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
1334- var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
1335- if ( match )
1336- return [ context.createElement( match[1] ) ];
1337- }
1338-
1339- var ret = [], scripts = [], div = context.createElement("div");
1340-
1341- jQuery.each(elems, function(i, elem){
1342- if ( typeof elem === "number" )
1343- elem += '';
1344-
1345- if ( !elem )
1346- return;
1347-
1348- // Convert html string into DOM nodes
1349- if ( typeof elem === "string" ) {
1350- // Fix "XHTML"-style tags in all browsers
1351- elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
1352- return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
1353- all :
1354- front + "></" + tag + ">";
1355- });
1356-
1357- // Trim whitespace, otherwise indexOf won't work as expected
1358- var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();
1359-
1360- var wrap =
1361- // option or optgroup
1362- !tags.indexOf("<opt") &&
1363- [ 1, "<select multiple='multiple'>", "</select>" ] ||
1364-
1365- !tags.indexOf("<leg") &&
1366- [ 1, "<fieldset>", "</fieldset>" ] ||
1367-
1368- tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
1369- [ 1, "<table>", "</table>" ] ||
1370-
1371- !tags.indexOf("<tr") &&
1372- [ 2, "<table><tbody>", "</tbody></table>" ] ||
1373-
1374- // <thead> matched above
1375- (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
1376- [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
1377-
1378- !tags.indexOf("<col") &&
1379- [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
1380-
1381- // IE can't serialize <link> and <script> tags normally
1382- !jQuery.support.htmlSerialize &&
1383- [ 1, "div<div>", "</div>" ] ||
1384-
1385- [ 0, "", "" ];
1386-
1387- // Go to html and back, then peel off extra wrappers
1388- div.innerHTML = wrap[1] + elem + wrap[2];
1389-
1390- // Move to the right depth
1391- while ( wrap[0]-- )
1392- div = div.lastChild;
1393-
1394- // Remove IE's autoinserted <tbody> from table fragments
1395- if ( !jQuery.support.tbody ) {
1396-
1397- // String was a <table>, *may* have spurious <tbody>
1398- var hasBody = /<tbody/i.test(elem),
1399- tbody = !tags.indexOf("<table") && !hasBody ?
1400- div.firstChild && div.firstChild.childNodes :
1401-
1402- // String was a bare <thead> or <tfoot>
1403- wrap[1] == "<table>" && !hasBody ?
1404- div.childNodes :
1405- [];
1406-
1407- for ( var j = tbody.length - 1; j >= 0 ; --j )
1408- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
1409- tbody[ j ].parentNode.removeChild( tbody[ j ] );
1410-
1411- }
1412-
1413- // IE completely kills leading whitespace when innerHTML is used
1414- if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
1415- div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
1416-
1417- elem = jQuery.makeArray( div.childNodes );
1418- }
1419-
1420- if ( elem.nodeType )
1421- ret.push( elem );
1422- else
1423- ret = jQuery.merge( ret, elem );
1424-
1425- });
1426-
1427- if ( fragment ) {
1428- for ( var i = 0; ret[i]; i++ ) {
1429- if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
1430- scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
1431- } else {
1432- if ( ret[i].nodeType === 1 )
1433- ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
1434- fragment.appendChild( ret[i] );
1435- }
1436- }
1437-
1438- return scripts;
1439- }
1440-
1441- return ret;
1442- },
1443-
1444- attr: function( elem, name, value ) {
1445- // don't set attributes on text and comment nodes
1446- if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
1447- return undefined;
1448-
1449- var notxml = !jQuery.isXMLDoc( elem ),
1450- // Whether we are setting (or getting)
1451- set = value !== undefined;
1452-
1453- // Try to normalize/fix the name
1454- name = notxml && jQuery.props[ name ] || name;
1455-
1456- // Only do all the following if this is a node (faster for style)
1457- // IE elem.getAttribute passes even for style
1458- if ( elem.tagName ) {
1459-
1460- // These attributes require special treatment
1461- var special = /href|src|style/.test( name );
1462-
1463- // Safari mis-reports the default selected property of a hidden option
1464- // Accessing the parent's selectedIndex property fixes it
1465- if ( name == "selected" && elem.parentNode )
1466- elem.parentNode.selectedIndex;
1467-
1468- // If applicable, access the attribute via the DOM 0 way
1469- if ( name in elem && notxml && !special ) {
1470- if ( set ){
1471- // We can't allow the type property to be changed (since it causes problems in IE)
1472- if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
1473- throw "type property can't be changed";
1474-
1475- elem[ name ] = value;
1476- }
1477-
1478- // browsers index elements by id/name on forms, give priority to attributes.
1479- if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
1480- return elem.getAttributeNode( name ).nodeValue;
1481-
1482- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
1483- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
1484- if ( name == "tabIndex" ) {
1485- var attributeNode = elem.getAttributeNode( "tabIndex" );
1486- return attributeNode && attributeNode.specified
1487- ? attributeNode.value
1488- : elem.nodeName.match(/(button|input|object|select|textarea)/i)
1489- ? 0
1490- : elem.nodeName.match(/^(a|area)$/i) && elem.href
1491- ? 0
1492- : undefined;
1493- }
1494-
1495- return elem[ name ];
1496- }
1497-
1498- if ( !jQuery.support.style && notxml && name == "style" )
1499- return jQuery.attr( elem.style, "cssText", value );
1500-
1501- if ( set )
1502- // convert the value to a string (all browsers do this but IE) see #1070
1503- elem.setAttribute( name, "" + value );
1504-
1505- var attr = !jQuery.support.hrefNormalized && notxml && special
1506- // Some attributes require a special call on IE
1507- ? elem.getAttribute( name, 2 )
1508- : elem.getAttribute( name );
1509-
1510- // Non-existent attributes return null, we normalize to undefined
1511- return attr === null ? undefined : attr;
1512- }
1513-
1514- // elem is actually elem.style ... set the style
1515-
1516- // IE uses filters for opacity
1517- if ( !jQuery.support.opacity && name == "opacity" ) {
1518- if ( set ) {
1519- // IE has trouble with opacity if it does not have layout
1520- // Force it by setting the zoom level
1521- elem.zoom = 1;
1522-
1523- // Set the alpha filter to set the opacity
1524- elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
1525- (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
1526- }
1527-
1528- return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
1529- (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
1530- "";
1531- }
1532-
1533- name = name.replace(/-([a-z])/ig, function(all, letter){
1534- return letter.toUpperCase();
1535- });
1536-
1537- if ( set )
1538- elem[ name ] = value;
1539-
1540- return elem[ name ];
1541- },
1542-
1543- trim: function( text ) {
1544- return (text || "").replace( /^\s+|\s+$/g, "" );
1545- },
1546-
1547- makeArray: function( array ) {
1548- var ret = [];
1549-
1550- if( array != null ){
1551- var i = array.length;
1552- // The window, strings (and functions) also have 'length'
1553- if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
1554- ret[0] = array;
1555- else
1556- while( i )
1557- ret[--i] = array[i];
1558- }
1559-
1560- return ret;
1561- },
1562-
1563- inArray: function( elem, array ) {
1564- for ( var i = 0, length = array.length; i < length; i++ )
1565- // Use === because on IE, window == document
1566- if ( array[ i ] === elem )
1567- return i;
1568-
1569- return -1;
1570- },
1571-
1572- merge: function( first, second ) {
1573- // We have to loop this way because IE & Opera overwrite the length
1574- // expando of getElementsByTagName
1575- var i = 0, elem, pos = first.length;
1576- // Also, we need to make sure that the correct elements are being returned
1577- // (IE returns comment nodes in a '*' query)
1578- if ( !jQuery.support.getAll ) {
1579- while ( (elem = second[ i++ ]) != null )
1580- if ( elem.nodeType != 8 )
1581- first[ pos++ ] = elem;
1582-
1583- } else
1584- while ( (elem = second[ i++ ]) != null )
1585- first[ pos++ ] = elem;
1586-
1587- return first;
1588- },
1589-
1590- unique: function( array ) {
1591- var ret = [], done = {};
1592-
1593- try {
1594-
1595- for ( var i = 0, length = array.length; i < length; i++ ) {
1596- var id = jQuery.data( array[ i ] );
1597-
1598- if ( !done[ id ] ) {
1599- done[ id ] = true;
1600- ret.push( array[ i ] );
1601- }
1602- }
1603-
1604- } catch( e ) {
1605- ret = array;
1606- }
1607-
1608- return ret;
1609- },
1610-
1611- grep: function( elems, callback, inv ) {
1612- var ret = [];
1613-
1614- // Go through the array, only saving the items
1615- // that pass the validator function
1616- for ( var i = 0, length = elems.length; i < length; i++ )
1617- if ( !inv != !callback( elems[ i ], i ) )
1618- ret.push( elems[ i ] );
1619-
1620- return ret;
1621- },
1622-
1623- map: function( elems, callback ) {
1624- var ret = [];
1625-
1626- // Go through the array, translating each of the items to their
1627- // new value (or values).
1628- for ( var i = 0, length = elems.length; i < length; i++ ) {
1629- var value = callback( elems[ i ], i );
1630-
1631- if ( value != null )
1632- ret[ ret.length ] = value;
1633- }
1634-
1635- return ret.concat.apply( [], ret );
1636- }
1637-});
1638-
1639-// Use of jQuery.browser is deprecated.
1640-// It's included for backwards compatibility and plugins,
1641-// although they should work to migrate away.
1642-
1643-var userAgent = navigator.userAgent.toLowerCase();
1644-
1645-// Figure out what browser is being used
1646-jQuery.browser = {
1647- version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
1648- safari: /webkit/.test( userAgent ),
1649- opera: /opera/.test( userAgent ),
1650- msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
1651- mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
1652-};
1653-
1654-jQuery.each({
1655- parent: function(elem){return elem.parentNode;},
1656- parents: function(elem){return jQuery.dir(elem,"parentNode");},
1657- next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
1658- prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
1659- nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
1660- prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
1661- siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
1662- children: function(elem){return jQuery.sibling(elem.firstChild);},
1663- contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
1664-}, function(name, fn){
1665- jQuery.fn[ name ] = function( selector ) {
1666- var ret = jQuery.map( this, fn );
1667-
1668- if ( selector && typeof selector == "string" )
1669- ret = jQuery.multiFilter( selector, ret );
1670-
1671- return this.pushStack( jQuery.unique( ret ), name, selector );
1672- };
1673-});
1674-
1675-jQuery.each({
1676- appendTo: "append",
1677- prependTo: "prepend",
1678- insertBefore: "before",
1679- insertAfter: "after",
1680- replaceAll: "replaceWith"
1681-}, function(name, original){
1682- jQuery.fn[ name ] = function( selector ) {
1683- var ret = [], insert = jQuery( selector );
1684-
1685- for ( var i = 0, l = insert.length; i < l; i++ ) {
1686- var elems = (i > 0 ? this.clone(true) : this).get();
1687- jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
1688- ret = ret.concat( elems );
1689- }
1690-
1691- return this.pushStack( ret, name, selector );
1692- };
1693-});
1694-
1695-jQuery.each({
1696- removeAttr: function( name ) {
1697- jQuery.attr( this, name, "" );
1698- if (this.nodeType == 1)
1699- this.removeAttribute( name );
1700- },
1701-
1702- addClass: function( classNames ) {
1703- jQuery.className.add( this, classNames );
1704- },
1705-
1706- removeClass: function( classNames ) {
1707- jQuery.className.remove( this, classNames );
1708- },
1709-
1710- toggleClass: function( classNames, state ) {
1711- if( typeof state !== "boolean" )
1712- state = !jQuery.className.has( this, classNames );
1713- jQuery.className[ state ? "add" : "remove" ]( this, classNames );
1714- },
1715-
1716- remove: function( selector ) {
1717- if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
1718- // Prevent memory leaks
1719- jQuery( "*", this ).add([this]).each(function(){
1720- jQuery.event.remove(this);
1721- jQuery.removeData(this);
1722- });
1723- if (this.parentNode)
1724- this.parentNode.removeChild( this );
1725- }
1726- },
1727-
1728- empty: function() {
1729- // Remove element nodes and prevent memory leaks
1730- jQuery(this).children().remove();
1731-
1732- // Remove any remaining nodes
1733- while ( this.firstChild )
1734- this.removeChild( this.firstChild );
1735- }
1736-}, function(name, fn){
1737- jQuery.fn[ name ] = function(){
1738- return this.each( fn, arguments );
1739- };
1740-});
1741-
1742-// Helper function used by the dimensions and offset modules
1743-function num(elem, prop) {
1744- return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
1745-}
1746-var expando = "jQuery" + now(), uuid = 0, windowData = {};
1747-
1748-jQuery.extend({
1749- cache: {},
1750-
1751- data: function( elem, name, data ) {
1752- elem = elem == window ?
1753- windowData :
1754- elem;
1755-
1756- var id = elem[ expando ];
1757-
1758- // Compute a unique ID for the element
1759- if ( !id )
1760- id = elem[ expando ] = ++uuid;
1761-
1762- // Only generate the data cache if we're
1763- // trying to access or manipulate it
1764- if ( name && !jQuery.cache[ id ] )
1765- jQuery.cache[ id ] = {};
1766-
1767- // Prevent overriding the named cache with undefined values
1768- if ( data !== undefined )
1769- jQuery.cache[ id ][ name ] = data;
1770-
1771- // Return the named cache data, or the ID for the element
1772- return name ?
1773- jQuery.cache[ id ][ name ] :
1774- id;
1775- },
1776-
1777- removeData: function( elem, name ) {
1778- elem = elem == window ?
1779- windowData :
1780- elem;
1781-
1782- var id = elem[ expando ];
1783-
1784- // If we want to remove a specific section of the element's data
1785- if ( name ) {
1786- if ( jQuery.cache[ id ] ) {
1787- // Remove the section of cache data
1788- delete jQuery.cache[ id ][ name ];
1789-
1790- // If we've removed all the data, remove the element's cache
1791- name = "";
1792-
1793- for ( name in jQuery.cache[ id ] )
1794- break;
1795-
1796- if ( !name )
1797- jQuery.removeData( elem );
1798- }
1799-
1800- // Otherwise, we want to remove all of the element's data
1801- } else {
1802- // Clean up the element expando
1803- try {
1804- delete elem[ expando ];
1805- } catch(e){
1806- // IE has trouble directly removing the expando
1807- // but it's ok with using removeAttribute
1808- if ( elem.removeAttribute )
1809- elem.removeAttribute( expando );
1810- }
1811-
1812- // Completely remove the data cache
1813- delete jQuery.cache[ id ];
1814- }
1815- },
1816- queue: function( elem, type, data ) {
1817- if ( elem ){
1818-
1819- type = (type || "fx") + "queue";
1820-
1821- var q = jQuery.data( elem, type );
1822-
1823- if ( !q || jQuery.isArray(data) )
1824- q = jQuery.data( elem, type, jQuery.makeArray(data) );
1825- else if( data )
1826- q.push( data );
1827-
1828- }
1829- return q;
1830- },
1831-
1832- dequeue: function( elem, type ){
1833- var queue = jQuery.queue( elem, type ),
1834- fn = queue.shift();
1835-
1836- if( !type || type === "fx" )
1837- fn = queue[0];
1838-
1839- if( fn !== undefined )
1840- fn.call(elem);
1841- }
1842-});
1843-
1844-jQuery.fn.extend({
1845- data: function( key, value ){
1846- var parts = key.split(".");
1847- parts[1] = parts[1] ? "." + parts[1] : "";
1848-
1849- if ( value === undefined ) {
1850- var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
1851-
1852- if ( data === undefined && this.length )
1853- data = jQuery.data( this[0], key );
1854-
1855- return data === undefined && parts[1] ?
1856- this.data( parts[0] ) :
1857- data;
1858- } else
1859- return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
1860- jQuery.data( this, key, value );
1861- });
1862- },
1863-
1864- removeData: function( key ){
1865- return this.each(function(){
1866- jQuery.removeData( this, key );
1867- });
1868- },
1869- queue: function(type, data){
1870- if ( typeof type !== "string" ) {
1871- data = type;
1872- type = "fx";
1873- }
1874-
1875- if ( data === undefined )
1876- return jQuery.queue( this[0], type );
1877-
1878- return this.each(function(){
1879- var queue = jQuery.queue( this, type, data );
1880-
1881- if( type == "fx" && queue.length == 1 )
1882- queue[0].call(this);
1883- });
1884- },
1885- dequeue: function(type){
1886- return this.each(function(){
1887- jQuery.dequeue( this, type );
1888- });
1889- }
1890-});/*!
1891- * Sizzle CSS Selector Engine - v0.9.3
1892- * Copyright 2009, The Dojo Foundation
1893- * Released under the MIT, BSD, and GPL Licenses.
1894- * More information: http://sizzlejs.com/
1895- */
1896-(function(){
1897-
1898-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
1899- done = 0,
1900- toString = Object.prototype.toString;
1901-
1902-var Sizzle = function(selector, context, results, seed) {
1903- results = results || [];
1904- context = context || document;
1905-
1906- if ( context.nodeType !== 1 && context.nodeType !== 9 )
1907- return [];
1908-
1909- if ( !selector || typeof selector !== "string" ) {
1910- return results;
1911- }
1912-
1913- var parts = [], m, set, checkSet, check, mode, extra, prune = true;
1914-
1915- // Reset the position of the chunker regexp (start from head)
1916- chunker.lastIndex = 0;
1917-
1918- while ( (m = chunker.exec(selector)) !== null ) {
1919- parts.push( m[1] );
1920-
1921- if ( m[2] ) {
1922- extra = RegExp.rightContext;
1923- break;
1924- }
1925- }
1926-
1927- if ( parts.length > 1 && origPOS.exec( selector ) ) {
1928- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
1929- set = posProcess( parts[0] + parts[1], context );
1930- } else {
1931- set = Expr.relative[ parts[0] ] ?
1932- [ context ] :
1933- Sizzle( parts.shift(), context );
1934-
1935- while ( parts.length ) {
1936- selector = parts.shift();
1937-
1938- if ( Expr.relative[ selector ] )
1939- selector += parts.shift();
1940-
1941- set = posProcess( selector, set );
1942- }
1943- }
1944- } else {
1945- var ret = seed ?
1946- { expr: parts.pop(), set: makeArray(seed) } :
1947- Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
1948- set = Sizzle.filter( ret.expr, ret.set );
1949-
1950- if ( parts.length > 0 ) {
1951- checkSet = makeArray(set);
1952- } else {
1953- prune = false;
1954- }
1955-
1956- while ( parts.length ) {
1957- var cur = parts.pop(), pop = cur;
1958-
1959- if ( !Expr.relative[ cur ] ) {
1960- cur = "";
1961- } else {
1962- pop = parts.pop();
1963- }
1964-
1965- if ( pop == null ) {
1966- pop = context;
1967- }
1968-
1969- Expr.relative[ cur ]( checkSet, pop, isXML(context) );
1970- }
1971- }
1972-
1973- if ( !checkSet ) {
1974- checkSet = set;
1975- }
1976-
1977- if ( !checkSet ) {
1978- throw "Syntax error, unrecognized expression: " + (cur || selector);
1979- }
1980-
1981- if ( toString.call(checkSet) === "[object Array]" ) {
1982- if ( !prune ) {
1983- results.push.apply( results, checkSet );
1984- } else if ( context.nodeType === 1 ) {
1985- for ( var i = 0; checkSet[i] != null; i++ ) {
1986- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
1987- results.push( set[i] );
1988- }
1989- }
1990- } else {
1991- for ( var i = 0; checkSet[i] != null; i++ ) {
1992- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
1993- results.push( set[i] );
1994- }
1995- }
1996- }
1997- } else {
1998- makeArray( checkSet, results );
1999- }
2000-
2001- if ( extra ) {
2002- Sizzle( extra, context, results, seed );
2003-
2004- if ( sortOrder ) {
2005- hasDuplicate = false;
2006- results.sort(sortOrder);
2007-
2008- if ( hasDuplicate ) {
2009- for ( var i = 1; i < results.length; i++ ) {
2010- if ( results[i] === results[i-1] ) {
2011- results.splice(i--, 1);
2012- }
2013- }
2014- }
2015- }
2016- }
2017-
2018- return results;
2019-};
2020-
2021-Sizzle.matches = function(expr, set){
2022- return Sizzle(expr, null, null, set);
2023-};
2024-
2025-Sizzle.find = function(expr, context, isXML){
2026- var set, match;
2027-
2028- if ( !expr ) {
2029- return [];
2030- }
2031-
2032- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
2033- var type = Expr.order[i], match;
2034-
2035- if ( (match = Expr.match[ type ].exec( expr )) ) {
2036- var left = RegExp.leftContext;
2037-
2038- if ( left.substr( left.length - 1 ) !== "\\" ) {
2039- match[1] = (match[1] || "").replace(/\\/g, "");
2040- set = Expr.find[ type ]( match, context, isXML );
2041- if ( set != null ) {
2042- expr = expr.replace( Expr.match[ type ], "" );
2043- break;
2044- }
2045- }
2046- }
2047- }
2048-
2049- if ( !set ) {
2050- set = context.getElementsByTagName("*");
2051- }
2052-
2053- return {set: set, expr: expr};
2054-};
2055-
2056-Sizzle.filter = function(expr, set, inplace, not){
2057- var old = expr, result = [], curLoop = set, match, anyFound,
2058- isXMLFilter = set && set[0] && isXML(set[0]);
2059-
2060- while ( expr && set.length ) {
2061- for ( var type in Expr.filter ) {
2062- if ( (match = Expr.match[ type ].exec( expr )) != null ) {
2063- var filter = Expr.filter[ type ], found, item;
2064- anyFound = false;
2065-
2066- if ( curLoop == result ) {
2067- result = [];
2068- }
2069-
2070- if ( Expr.preFilter[ type ] ) {
2071- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
2072-
2073- if ( !match ) {
2074- anyFound = found = true;
2075- } else if ( match === true ) {
2076- continue;
2077- }
2078- }
2079-
2080- if ( match ) {
2081- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
2082- if ( item ) {
2083- found = filter( item, match, i, curLoop );
2084- var pass = not ^ !!found;
2085-
2086- if ( inplace && found != null ) {
2087- if ( pass ) {
2088- anyFound = true;
2089- } else {
2090- curLoop[i] = false;
2091- }
2092- } else if ( pass ) {
2093- result.push( item );
2094- anyFound = true;
2095- }
2096- }
2097- }
2098- }
2099-
2100- if ( found !== undefined ) {
2101- if ( !inplace ) {
2102- curLoop = result;
2103- }
2104-
2105- expr = expr.replace( Expr.match[ type ], "" );
2106-
2107- if ( !anyFound ) {
2108- return [];
2109- }
2110-
2111- break;
2112- }
2113- }
2114- }
2115-
2116- // Improper expression
2117- if ( expr == old ) {
2118- if ( anyFound == null ) {
2119- throw "Syntax error, unrecognized expression: " + expr;
2120- } else {
2121- break;
2122- }
2123- }
2124-
2125- old = expr;
2126- }
2127-
2128- return curLoop;
2129-};
2130-
2131-var Expr = Sizzle.selectors = {
2132- order: [ "ID", "NAME", "TAG" ],
2133- match: {
2134- ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
2135- CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
2136- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
2137- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
2138- TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
2139- CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
2140- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
2141- PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
2142- },
2143- attrMap: {
2144- "class": "className",
2145- "for": "htmlFor"
2146- },
2147- attrHandle: {
2148- href: function(elem){
2149- return elem.getAttribute("href");
2150- }
2151- },
2152- relative: {
2153- "+": function(checkSet, part, isXML){
2154- var isPartStr = typeof part === "string",
2155- isTag = isPartStr && !/\W/.test(part),
2156- isPartStrNotTag = isPartStr && !isTag;
2157-
2158- if ( isTag && !isXML ) {
2159- part = part.toUpperCase();
2160- }
2161-
2162- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
2163- if ( (elem = checkSet[i]) ) {
2164- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
2165-
2166- checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
2167- elem || false :
2168- elem === part;
2169- }
2170- }
2171-
2172- if ( isPartStrNotTag ) {
2173- Sizzle.filter( part, checkSet, true );
2174- }
2175- },
2176- ">": function(checkSet, part, isXML){
2177- var isPartStr = typeof part === "string";
2178-
2179- if ( isPartStr && !/\W/.test(part) ) {
2180- part = isXML ? part : part.toUpperCase();
2181-
2182- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2183- var elem = checkSet[i];
2184- if ( elem ) {
2185- var parent = elem.parentNode;
2186- checkSet[i] = parent.nodeName === part ? parent : false;
2187- }
2188- }
2189- } else {
2190- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2191- var elem = checkSet[i];
2192- if ( elem ) {
2193- checkSet[i] = isPartStr ?
2194- elem.parentNode :
2195- elem.parentNode === part;
2196- }
2197- }
2198-
2199- if ( isPartStr ) {
2200- Sizzle.filter( part, checkSet, true );
2201- }
2202- }
2203- },
2204- "": function(checkSet, part, isXML){
2205- var doneName = done++, checkFn = dirCheck;
2206-
2207- if ( !part.match(/\W/) ) {
2208- var nodeCheck = part = isXML ? part : part.toUpperCase();
2209- checkFn = dirNodeCheck;
2210- }
2211-
2212- checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
2213- },
2214- "~": function(checkSet, part, isXML){
2215- var doneName = done++, checkFn = dirCheck;
2216-
2217- if ( typeof part === "string" && !part.match(/\W/) ) {
2218- var nodeCheck = part = isXML ? part : part.toUpperCase();
2219- checkFn = dirNodeCheck;
2220- }
2221-
2222- checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
2223- }
2224- },
2225- find: {
2226- ID: function(match, context, isXML){
2227- if ( typeof context.getElementById !== "undefined" && !isXML ) {
2228- var m = context.getElementById(match[1]);
2229- return m ? [m] : [];
2230- }
2231- },
2232- NAME: function(match, context, isXML){
2233- if ( typeof context.getElementsByName !== "undefined" ) {
2234- var ret = [], results = context.getElementsByName(match[1]);
2235-
2236- for ( var i = 0, l = results.length; i < l; i++ ) {
2237- if ( results[i].getAttribute("name") === match[1] ) {
2238- ret.push( results[i] );
2239- }
2240- }
2241-
2242- return ret.length === 0 ? null : ret;
2243- }
2244- },
2245- TAG: function(match, context){
2246- return context.getElementsByTagName(match[1]);
2247- }
2248- },
2249- preFilter: {
2250- CLASS: function(match, curLoop, inplace, result, not, isXML){
2251- match = " " + match[1].replace(/\\/g, "") + " ";
2252-
2253- if ( isXML ) {
2254- return match;
2255- }
2256-
2257- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
2258- if ( elem ) {
2259- if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
2260- if ( !inplace )
2261- result.push( elem );
2262- } else if ( inplace ) {
2263- curLoop[i] = false;
2264- }
2265- }
2266- }
2267-
2268- return false;
2269- },
2270- ID: function(match){
2271- return match[1].replace(/\\/g, "");
2272- },
2273- TAG: function(match, curLoop){
2274- for ( var i = 0; curLoop[i] === false; i++ ){}
2275- return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
2276- },
2277- CHILD: function(match){
2278- if ( match[1] == "nth" ) {
2279- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
2280- var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
2281- match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
2282- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
2283-
2284- // calculate the numbers (first)n+(last) including if they are negative
2285- match[2] = (test[1] + (test[2] || 1)) - 0;
2286- match[3] = test[3] - 0;
2287- }
2288-
2289- // TODO: Move to normal caching system
2290- match[0] = done++;
2291-
2292- return match;
2293- },
2294- ATTR: function(match, curLoop, inplace, result, not, isXML){
2295- var name = match[1].replace(/\\/g, "");
2296-
2297- if ( !isXML && Expr.attrMap[name] ) {
2298- match[1] = Expr.attrMap[name];
2299- }
2300-
2301- if ( match[2] === "~=" ) {
2302- match[4] = " " + match[4] + " ";
2303- }
2304-
2305- return match;
2306- },
2307- PSEUDO: function(match, curLoop, inplace, result, not){
2308- if ( match[1] === "not" ) {
2309- // If we're dealing with a complex expression, or a simple one
2310- if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) {
2311- match[3] = Sizzle(match[3], null, null, curLoop);
2312- } else {
2313- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
2314- if ( !inplace ) {
2315- result.push.apply( result, ret );
2316- }
2317- return false;
2318- }
2319- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
2320- return true;
2321- }
2322-
2323- return match;
2324- },
2325- POS: function(match){
2326- match.unshift( true );
2327- return match;
2328- }
2329- },
2330- filters: {
2331- enabled: function(elem){
2332- return elem.disabled === false && elem.type !== "hidden";
2333- },
2334- disabled: function(elem){
2335- return elem.disabled === true;
2336- },
2337- checked: function(elem){
2338- return elem.checked === true;
2339- },
2340- selected: function(elem){
2341- // Accessing this property makes selected-by-default
2342- // options in Safari work properly
2343- elem.parentNode.selectedIndex;
2344- return elem.selected === true;
2345- },
2346- parent: function(elem){
2347- return !!elem.firstChild;
2348- },
2349- empty: function(elem){
2350- return !elem.firstChild;
2351- },
2352- has: function(elem, i, match){
2353- return !!Sizzle( match[3], elem ).length;
2354- },
2355- header: function(elem){
2356- return /h\d/i.test( elem.nodeName );
2357- },
2358- text: function(elem){
2359- return "text" === elem.type;
2360- },
2361- radio: function(elem){
2362- return "radio" === elem.type;
2363- },
2364- checkbox: function(elem){
2365- return "checkbox" === elem.type;
2366- },
2367- file: function(elem){
2368- return "file" === elem.type;
2369- },
2370- password: function(elem){
2371- return "password" === elem.type;
2372- },
2373- submit: function(elem){
2374- return "submit" === elem.type;
2375- },
2376- image: function(elem){
2377- return "image" === elem.type;
2378- },
2379- reset: function(elem){
2380- return "reset" === elem.type;
2381- },
2382- button: function(elem){
2383- return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
2384- },
2385- input: function(elem){
2386- return /input|select|textarea|button/i.test(elem.nodeName);
2387- }
2388- },
2389- setFilters: {
2390- first: function(elem, i){
2391- return i === 0;
2392- },
2393- last: function(elem, i, match, array){
2394- return i === array.length - 1;
2395- },
2396- even: function(elem, i){
2397- return i % 2 === 0;
2398- },
2399- odd: function(elem, i){
2400- return i % 2 === 1;
2401- },
2402- lt: function(elem, i, match){
2403- return i < match[3] - 0;
2404- },
2405- gt: function(elem, i, match){
2406- return i > match[3] - 0;
2407- },
2408- nth: function(elem, i, match){
2409- return match[3] - 0 == i;
2410- },
2411- eq: function(elem, i, match){
2412- return match[3] - 0 == i;
2413- }
2414- },
2415- filter: {
2416- PSEUDO: function(elem, match, i, array){
2417- var name = match[1], filter = Expr.filters[ name ];
2418-
2419- if ( filter ) {
2420- return filter( elem, i, match, array );
2421- } else if ( name === "contains" ) {
2422- return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
2423- } else if ( name === "not" ) {
2424- var not = match[3];
2425-
2426- for ( var i = 0, l = not.length; i < l; i++ ) {
2427- if ( not[i] === elem ) {
2428- return false;
2429- }
2430- }
2431-
2432- return true;
2433- }
2434- },
2435- CHILD: function(elem, match){
2436- var type = match[1], node = elem;
2437- switch (type) {
2438- case 'only':
2439- case 'first':
2440- while (node = node.previousSibling) {
2441- if ( node.nodeType === 1 ) return false;
2442- }
2443- if ( type == 'first') return true;
2444- node = elem;
2445- case 'last':
2446- while (node = node.nextSibling) {
2447- if ( node.nodeType === 1 ) return false;
2448- }
2449- return true;
2450- case 'nth':
2451- var first = match[2], last = match[3];
2452-
2453- if ( first == 1 && last == 0 ) {
2454- return true;
2455- }
2456-
2457- var doneName = match[0],
2458- parent = elem.parentNode;
2459-
2460- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
2461- var count = 0;
2462- for ( node = parent.firstChild; node; node = node.nextSibling ) {
2463- if ( node.nodeType === 1 ) {
2464- node.nodeIndex = ++count;
2465- }
2466- }
2467- parent.sizcache = doneName;
2468- }
2469-
2470- var diff = elem.nodeIndex - last;
2471- if ( first == 0 ) {
2472- return diff == 0;
2473- } else {
2474- return ( diff % first == 0 && diff / first >= 0 );
2475- }
2476- }
2477- },
2478- ID: function(elem, match){
2479- return elem.nodeType === 1 && elem.getAttribute("id") === match;
2480- },
2481- TAG: function(elem, match){
2482- return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
2483- },
2484- CLASS: function(elem, match){
2485- return (" " + (elem.className || elem.getAttribute("class")) + " ")
2486- .indexOf( match ) > -1;
2487- },
2488- ATTR: function(elem, match){
2489- var name = match[1],
2490- result = Expr.attrHandle[ name ] ?
2491- Expr.attrHandle[ name ]( elem ) :
2492- elem[ name ] != null ?
2493- elem[ name ] :
2494- elem.getAttribute( name ),
2495- value = result + "",
2496- type = match[2],
2497- check = match[4];
2498-
2499- return result == null ?
2500- type === "!=" :
2501- type === "=" ?
2502- value === check :
2503- type === "*=" ?
2504- value.indexOf(check) >= 0 :
2505- type === "~=" ?
2506- (" " + value + " ").indexOf(check) >= 0 :
2507- !check ?
2508- value && result !== false :
2509- type === "!=" ?
2510- value != check :
2511- type === "^=" ?
2512- value.indexOf(check) === 0 :
2513- type === "$=" ?
2514- value.substr(value.length - check.length) === check :
2515- type === "|=" ?
2516- value === check || value.substr(0, check.length + 1) === check + "-" :
2517- false;
2518- },
2519- POS: function(elem, match, i, array){
2520- var name = match[2], filter = Expr.setFilters[ name ];
2521-
2522- if ( filter ) {
2523- return filter( elem, i, match, array );
2524- }
2525- }
2526- }
2527-};
2528-
2529-var origPOS = Expr.match.POS;
2530-
2531-for ( var type in Expr.match ) {
2532- Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
2533-}
2534-
2535-var makeArray = function(array, results) {
2536- array = Array.prototype.slice.call( array );
2537-
2538- if ( results ) {
2539- results.push.apply( results, array );
2540- return results;
2541- }
2542-
2543- return array;
2544-};
2545-
2546-// Perform a simple check to determine if the browser is capable of
2547-// converting a NodeList to an array using builtin methods.
2548-try {
2549- Array.prototype.slice.call( document.documentElement.childNodes );
2550-
2551-// Provide a fallback method if it does not work
2552-} catch(e){
2553- makeArray = function(array, results) {
2554- var ret = results || [];
2555-
2556- if ( toString.call(array) === "[object Array]" ) {
2557- Array.prototype.push.apply( ret, array );
2558- } else {
2559- if ( typeof array.length === "number" ) {
2560- for ( var i = 0, l = array.length; i < l; i++ ) {
2561- ret.push( array[i] );
2562- }
2563- } else {
2564- for ( var i = 0; array[i]; i++ ) {
2565- ret.push( array[i] );
2566- }
2567- }
2568- }
2569-
2570- return ret;
2571- };
2572-}
2573-
2574-var sortOrder;
2575-
2576-if ( document.documentElement.compareDocumentPosition ) {
2577- sortOrder = function( a, b ) {
2578- var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
2579- if ( ret === 0 ) {
2580- hasDuplicate = true;
2581- }
2582- return ret;
2583- };
2584-} else if ( "sourceIndex" in document.documentElement ) {
2585- sortOrder = function( a, b ) {
2586- var ret = a.sourceIndex - b.sourceIndex;
2587- if ( ret === 0 ) {
2588- hasDuplicate = true;
2589- }
2590- return ret;
2591- };
2592-} else if ( document.createRange ) {
2593- sortOrder = function( a, b ) {
2594- var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
2595- aRange.selectNode(a);
2596- aRange.collapse(true);
2597- bRange.selectNode(b);
2598- bRange.collapse(true);
2599- var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
2600- if ( ret === 0 ) {
2601- hasDuplicate = true;
2602- }
2603- return ret;
2604- };
2605-}
2606-
2607-// Check to see if the browser returns elements by name when
2608-// querying by getElementById (and provide a workaround)
2609-(function(){
2610- // We're going to inject a fake input element with a specified name
2611- var form = document.createElement("form"),
2612- id = "script" + (new Date).getTime();
2613- form.innerHTML = "<input name='" + id + "'/>";
2614-
2615- // Inject it into the root element, check its status, and remove it quickly
2616- var root = document.documentElement;
2617- root.insertBefore( form, root.firstChild );
2618-
2619- // The workaround has to do additional checks after a getElementById
2620- // Which slows things down for other browsers (hence the branching)
2621- if ( !!document.getElementById( id ) ) {
2622- Expr.find.ID = function(match, context, isXML){
2623- if ( typeof context.getElementById !== "undefined" && !isXML ) {
2624- var m = context.getElementById(match[1]);
2625- return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
2626- }
2627- };
2628-
2629- Expr.filter.ID = function(elem, match){
2630- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
2631- return elem.nodeType === 1 && node && node.nodeValue === match;
2632- };
2633- }
2634-
2635- root.removeChild( form );
2636-})();
2637-
2638-(function(){
2639- // Check to see if the browser returns only elements
2640- // when doing getElementsByTagName("*")
2641-
2642- // Create a fake element
2643- var div = document.createElement("div");
2644- div.appendChild( document.createComment("") );
2645-
2646- // Make sure no comments are found
2647- if ( div.getElementsByTagName("*").length > 0 ) {
2648- Expr.find.TAG = function(match, context){
2649- var results = context.getElementsByTagName(match[1]);
2650-
2651- // Filter out possible comments
2652- if ( match[1] === "*" ) {
2653- var tmp = [];
2654-
2655- for ( var i = 0; results[i]; i++ ) {
2656- if ( results[i].nodeType === 1 ) {
2657- tmp.push( results[i] );
2658- }
2659- }
2660-
2661- results = tmp;
2662- }
2663-
2664- return results;
2665- };
2666- }
2667-
2668- // Check to see if an attribute returns normalized href attributes
2669- div.innerHTML = "<a href='#'></a>";
2670- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
2671- div.firstChild.getAttribute("href") !== "#" ) {
2672- Expr.attrHandle.href = function(elem){
2673- return elem.getAttribute("href", 2);
2674- };
2675- }
2676-})();
2677-
2678-if ( document.querySelectorAll ) (function(){
2679- var oldSizzle = Sizzle, div = document.createElement("div");
2680- div.innerHTML = "<p class='TEST'></p>";
2681-
2682- // Safari can't handle uppercase or unicode characters when
2683- // in quirks mode.
2684- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
2685- return;
2686- }
2687-
2688- Sizzle = function(query, context, extra, seed){
2689- context = context || document;
2690-
2691- // Only use querySelectorAll on non-XML documents
2692- // (ID selectors don't work in non-HTML documents)
2693- if ( !seed && context.nodeType === 9 && !isXML(context) ) {
2694- try {
2695- return makeArray( context.querySelectorAll(query), extra );
2696- } catch(e){}
2697- }
2698-
2699- return oldSizzle(query, context, extra, seed);
2700- };
2701-
2702- Sizzle.find = oldSizzle.find;
2703- Sizzle.filter = oldSizzle.filter;
2704- Sizzle.selectors = oldSizzle.selectors;
2705- Sizzle.matches = oldSizzle.matches;
2706-})();
2707-
2708-if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
2709- var div = document.createElement("div");
2710- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
2711-
2712- // Opera can't find a second classname (in 9.6)
2713- if ( div.getElementsByClassName("e").length === 0 )
2714- return;
2715-
2716- // Safari caches class attributes, doesn't catch changes (in 3.2)
2717- div.lastChild.className = "e";
2718-
2719- if ( div.getElementsByClassName("e").length === 1 )
2720- return;
2721-
2722- Expr.order.splice(1, 0, "CLASS");
2723- Expr.find.CLASS = function(match, context, isXML) {
2724- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
2725- return context.getElementsByClassName(match[1]);
2726- }
2727- };
2728-})();
2729-
2730-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
2731- var sibDir = dir == "previousSibling" && !isXML;
2732- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2733- var elem = checkSet[i];
2734- if ( elem ) {
2735- if ( sibDir && elem.nodeType === 1 ){
2736- elem.sizcache = doneName;
2737- elem.sizset = i;
2738- }
2739- elem = elem[dir];
2740- var match = false;
2741-
2742- while ( elem ) {
2743- if ( elem.sizcache === doneName ) {
2744- match = checkSet[elem.sizset];
2745- break;
2746- }
2747-
2748- if ( elem.nodeType === 1 && !isXML ){
2749- elem.sizcache = doneName;
2750- elem.sizset = i;
2751- }
2752-
2753- if ( elem.nodeName === cur ) {
2754- match = elem;
2755- break;
2756- }
2757-
2758- elem = elem[dir];
2759- }
2760-
2761- checkSet[i] = match;
2762- }
2763- }
2764-}
2765-
2766-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
2767- var sibDir = dir == "previousSibling" && !isXML;
2768- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2769- var elem = checkSet[i];
2770- if ( elem ) {
2771- if ( sibDir && elem.nodeType === 1 ) {
2772- elem.sizcache = doneName;
2773- elem.sizset = i;
2774- }
2775- elem = elem[dir];
2776- var match = false;
2777-
2778- while ( elem ) {
2779- if ( elem.sizcache === doneName ) {
2780- match = checkSet[elem.sizset];
2781- break;
2782- }
2783-
2784- if ( elem.nodeType === 1 ) {
2785- if ( !isXML ) {
2786- elem.sizcache = doneName;
2787- elem.sizset = i;
2788- }
2789- if ( typeof cur !== "string" ) {
2790- if ( elem === cur ) {
2791- match = true;
2792- break;
2793- }
2794-
2795- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
2796- match = elem;
2797- break;
2798- }
2799- }
2800-
2801- elem = elem[dir];
2802- }
2803-
2804- checkSet[i] = match;
2805- }
2806- }
2807-}
2808-
2809-var contains = document.compareDocumentPosition ? function(a, b){
2810- return a.compareDocumentPosition(b) & 16;
2811-} : function(a, b){
2812- return a !== b && (a.contains ? a.contains(b) : true);
2813-};
2814-
2815-var isXML = function(elem){
2816- return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
2817- !!elem.ownerDocument && isXML( elem.ownerDocument );
2818-};
2819-
2820-var posProcess = function(selector, context){
2821- var tmpSet = [], later = "", match,
2822- root = context.nodeType ? [context] : context;
2823-
2824- // Position selectors must be done after the filter
2825- // And so must :not(positional) so we move all PSEUDOs to the end
2826- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
2827- later += match[0];
2828- selector = selector.replace( Expr.match.PSEUDO, "" );
2829- }
2830-
2831- selector = Expr.relative[selector] ? selector + "*" : selector;
2832-
2833- for ( var i = 0, l = root.length; i < l; i++ ) {
2834- Sizzle( selector, root[i], tmpSet );
2835- }
2836-
2837- return Sizzle.filter( later, tmpSet );
2838-};
2839-
2840-// EXPOSE
2841-jQuery.find = Sizzle;
2842-jQuery.filter = Sizzle.filter;
2843-jQuery.expr = Sizzle.selectors;
2844-jQuery.expr[":"] = jQuery.expr.filters;
2845-
2846-Sizzle.selectors.filters.hidden = function(elem){
2847- return elem.offsetWidth === 0 || elem.offsetHeight === 0;
2848-};
2849-
2850-Sizzle.selectors.filters.visible = function(elem){
2851- return elem.offsetWidth > 0 || elem.offsetHeight > 0;
2852-};
2853-
2854-Sizzle.selectors.filters.animated = function(elem){
2855- return jQuery.grep(jQuery.timers, function(fn){
2856- return elem === fn.elem;
2857- }).length;
2858-};
2859-
2860-jQuery.multiFilter = function( expr, elems, not ) {
2861- if ( not ) {
2862- expr = ":not(" + expr + ")";
2863- }
2864-
2865- return Sizzle.matches(expr, elems);
2866-};
2867-
2868-jQuery.dir = function( elem, dir ){
2869- var matched = [], cur = elem[dir];
2870- while ( cur && cur != document ) {
2871- if ( cur.nodeType == 1 )
2872- matched.push( cur );
2873- cur = cur[dir];
2874- }
2875- return matched;
2876-};
2877-
2878-jQuery.nth = function(cur, result, dir, elem){
2879- result = result || 1;
2880- var num = 0;
2881-
2882- for ( ; cur; cur = cur[dir] )
2883- if ( cur.nodeType == 1 && ++num == result )
2884- break;
2885-
2886- return cur;
2887-};
2888-
2889-jQuery.sibling = function(n, elem){
2890- var r = [];
2891-
2892- for ( ; n; n = n.nextSibling ) {
2893- if ( n.nodeType == 1 && n != elem )
2894- r.push( n );
2895- }
2896-
2897- return r;
2898-};
2899-
2900-return;
2901-
2902-window.Sizzle = Sizzle;
2903-
2904-})();
2905-/*
2906- * A number of helper functions used for managing events.
2907- * Many of the ideas behind this code originated from
2908- * Dean Edwards' addEvent library.
2909- */
2910-jQuery.event = {
2911-
2912- // Bind an event to an element
2913- // Original by Dean Edwards
2914- add: function(elem, types, handler, data) {
2915- if ( elem.nodeType == 3 || elem.nodeType == 8 )
2916- return;
2917-
2918- // For whatever reason, IE has trouble passing the window object
2919- // around, causing it to be cloned in the process
2920- if ( elem.setInterval && elem != window )
2921- elem = window;
2922-
2923- // Make sure that the function being executed has a unique ID
2924- if ( !handler.guid )
2925- handler.guid = this.guid++;
2926-
2927- // if data is passed, bind to handler
2928- if ( data !== undefined ) {
2929- // Create temporary function pointer to original handler
2930- var fn = handler;
2931-
2932- // Create unique handler function, wrapped around original handler
2933- handler = this.proxy( fn );
2934-
2935- // Store data in unique handler
2936- handler.data = data;
2937- }
2938-
2939- // Init the element's event structure
2940- var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
2941- handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
2942- // Handle the second event of a trigger and when
2943- // an event is called after a page has unloaded
2944- return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
2945- jQuery.event.handle.apply(arguments.callee.elem, arguments) :
2946- undefined;
2947- });
2948- // Add elem as a property of the handle function
2949- // This is to prevent a memory leak with non-native
2950- // event in IE.
2951- handle.elem = elem;
2952-
2953- // Handle multiple events separated by a space
2954- // jQuery(...).bind("mouseover mouseout", fn);
2955- jQuery.each(types.split(/\s+/), function(index, type) {
2956- // Namespaced event handlers
2957- var namespaces = type.split(".");
2958- type = namespaces.shift();
2959- handler.type = namespaces.slice().sort().join(".");
2960-
2961- // Get the current list of functions bound to this event
2962- var handlers = events[type];
2963-
2964- if ( jQuery.event.specialAll[type] )
2965- jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
2966-
2967- // Init the event handler queue
2968- if (!handlers) {
2969- handlers = events[type] = {};
2970-
2971- // Check for a special event handler
2972- // Only use addEventListener/attachEvent if the special
2973- // events handler returns false
2974- if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
2975- // Bind the global event handler to the element
2976- if (elem.addEventListener)
2977- elem.addEventListener(type, handle, false);
2978- else if (elem.attachEvent)
2979- elem.attachEvent("on" + type, handle);
2980- }
2981- }
2982-
2983- // Add the function to the element's handler list
2984- handlers[handler.guid] = handler;
2985-
2986- // Keep track of which events have been used, for global triggering
2987- jQuery.event.global[type] = true;
2988- });
2989-
2990- // Nullify elem to prevent memory leaks in IE
2991- elem = null;
2992- },
2993-
2994- guid: 1,
2995- global: {},
2996-
2997- // Detach an event or set of events from an element
2998- remove: function(elem, types, handler) {
2999- // don't do events on text and comment nodes
3000- if ( elem.nodeType == 3 || elem.nodeType == 8 )
3001- return;
3002-
3003- var events = jQuery.data(elem, "events"), ret, index;
3004-
3005- if ( events ) {
3006- // Unbind all events for the element
3007- if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
3008- for ( var type in events )
3009- this.remove( elem, type + (types || "") );
3010- else {
3011- // types is actually an event object here
3012- if ( types.type ) {
3013- handler = types.handler;
3014- types = types.type;
3015- }
3016-
3017- // Handle multiple events seperated by a space
3018- // jQuery(...).unbind("mouseover mouseout", fn);
3019- jQuery.each(types.split(/\s+/), function(index, type){
3020- // Namespaced event handlers
3021- var namespaces = type.split(".");
3022- type = namespaces.shift();
3023- var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
3024-
3025- if ( events[type] ) {
3026- // remove the given handler for the given type
3027- if ( handler )
3028- delete events[type][handler.guid];
3029-
3030- // remove all handlers for the given type
3031- else
3032- for ( var handle in events[type] )
3033- // Handle the removal of namespaced events
3034- if ( namespace.test(events[type][handle].type) )
3035- delete events[type][handle];
3036-
3037- if ( jQuery.event.specialAll[type] )
3038- jQuery.event.specialAll[type].teardown.call(elem, namespaces);
3039-
3040- // remove generic event handler if no more handlers exist
3041- for ( ret in events[type] ) break;
3042- if ( !ret ) {
3043- if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
3044- if (elem.removeEventListener)
3045- elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
3046- else if (elem.detachEvent)
3047- elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
3048- }
3049- ret = null;
3050- delete events[type];
3051- }
3052- }
3053- });
3054- }
3055-
3056- // Remove the expando if it's no longer used
3057- for ( ret in events ) break;
3058- if ( !ret ) {
3059- var handle = jQuery.data( elem, "handle" );
3060- if ( handle ) handle.elem = null;
3061- jQuery.removeData( elem, "events" );
3062- jQuery.removeData( elem, "handle" );
3063- }
3064- }
3065- },
3066-
3067- // bubbling is internal
3068- trigger: function( event, data, elem, bubbling ) {
3069- // Event object or event type
3070- var type = event.type || event;
3071-
3072- if( !bubbling ){
3073- event = typeof event === "object" ?
3074- // jQuery.Event object
3075- event[expando] ? event :
3076- // Object literal
3077- jQuery.extend( jQuery.Event(type), event ) :
3078- // Just the event type (string)
3079- jQuery.Event(type);
3080-
3081- if ( type.indexOf("!") >= 0 ) {
3082- event.type = type = type.slice(0, -1);
3083- event.exclusive = true;
3084- }
3085-
3086- // Handle a global trigger
3087- if ( !elem ) {
3088- // Don't bubble custom events when global (to avoid too much overhead)
3089- event.stopPropagation();
3090- // Only trigger if we've ever bound an event for it
3091- if ( this.global[type] )
3092- jQuery.each( jQuery.cache, function(){
3093- if ( this.events && this.events[type] )
3094- jQuery.event.trigger( event, data, this.handle.elem );
3095- });
3096- }
3097-
3098- // Handle triggering a single element
3099-
3100- // don't do events on text and comment nodes
3101- if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
3102- return undefined;
3103-
3104- // Clean up in case it is reused
3105- event.result = undefined;
3106- event.target = elem;
3107-
3108- // Clone the incoming data, if any
3109- data = jQuery.makeArray(data);
3110- data.unshift( event );
3111- }
3112-
3113- event.currentTarget = elem;
3114-
3115- // Trigger the event, it is assumed that "handle" is a function
3116- var handle = jQuery.data(elem, "handle");
3117- if ( handle )
3118- handle.apply( elem, data );
3119-
3120- // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
3121- if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
3122- event.result = false;
3123-
3124- // Trigger the native events (except for clicks on links)
3125- if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
3126- this.triggered = true;
3127- try {
3128- elem[ type ]();
3129- // prevent IE from throwing an error for some hidden elements
3130- } catch (e) {}
3131- }
3132-
3133- this.triggered = false;
3134-
3135- if ( !event.isPropagationStopped() ) {
3136- var parent = elem.parentNode || elem.ownerDocument;
3137- if ( parent )
3138- jQuery.event.trigger(event, data, parent, true);
3139- }
3140- },
3141-
3142- handle: function(event) {
3143- // returned undefined or false
3144- var all, handlers;
3145-
3146- event = arguments[0] = jQuery.event.fix( event || window.event );
3147- event.currentTarget = this;
3148-
3149- // Namespaced event handlers
3150- var namespaces = event.type.split(".");
3151- event.type = namespaces.shift();
3152-
3153- // Cache this now, all = true means, any handler
3154- all = !namespaces.length && !event.exclusive;
3155-
3156- var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
3157-
3158- handlers = ( jQuery.data(this, "events") || {} )[event.type];
3159-
3160- for ( var j in handlers ) {
3161- var handler = handlers[j];
3162-
3163- // Filter the functions by class
3164- if ( all || namespace.test(handler.type) ) {
3165- // Pass in a reference to the handler function itself
3166- // So that we can later remove it
3167- event.handler = handler;
3168- event.data = handler.data;
3169-
3170- var ret = handler.apply(this, arguments);
3171-
3172- if( ret !== undefined ){
3173- event.result = ret;
3174- if ( ret === false ) {
3175- event.preventDefault();
3176- event.stopPropagation();
3177- }
3178- }
3179-
3180- if( event.isImmediatePropagationStopped() )
3181- break;
3182-
3183- }
3184- }
3185- },
3186-
3187- 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(" "),
3188-
3189- fix: function(event) {
3190- if ( event[expando] )
3191- return event;
3192-
3193- // store a copy of the original event object
3194- // and "clone" to set read-only properties
3195- var originalEvent = event;
3196- event = jQuery.Event( originalEvent );
3197-
3198- for ( var i = this.props.length, prop; i; ){
3199- prop = this.props[ --i ];
3200- event[ prop ] = originalEvent[ prop ];
3201- }
3202-
3203- // Fix target property, if necessary
3204- if ( !event.target )
3205- event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
3206-
3207- // check if target is a textnode (safari)
3208- if ( event.target.nodeType == 3 )
3209- event.target = event.target.parentNode;
3210-
3211- // Add relatedTarget, if necessary
3212- if ( !event.relatedTarget && event.fromElement )
3213- event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
3214-
3215- // Calculate pageX/Y if missing and clientX/Y available
3216- if ( event.pageX == null && event.clientX != null ) {
3217- var doc = document.documentElement, body = document.body;
3218- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
3219- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
3220- }
3221-
3222- // Add which for key events
3223- if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
3224- event.which = event.charCode || event.keyCode;
3225-
3226- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
3227- if ( !event.metaKey && event.ctrlKey )
3228- event.metaKey = event.ctrlKey;
3229-
3230- // Add which for click: 1 == left; 2 == middle; 3 == right
3231- // Note: button is not normalized, so don't use it
3232- if ( !event.which && event.button )
3233- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
3234-
3235- return event;
3236- },
3237-
3238- proxy: function( fn, proxy ){
3239- proxy = proxy || function(){ return fn.apply(this, arguments); };
3240- // Set the guid of unique handler to the same of original handler, so it can be removed
3241- proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
3242- // So proxy can be declared as an argument
3243- return proxy;
3244- },
3245-
3246- special: {
3247- ready: {
3248- // Make sure the ready event is setup
3249- setup: bindReady,
3250- teardown: function() {}
3251- }
3252- },
3253-
3254- specialAll: {
3255- live: {
3256- setup: function( selector, namespaces ){
3257- jQuery.event.add( this, namespaces[0], liveHandler );
3258- },
3259- teardown: function( namespaces ){
3260- if ( namespaces.length ) {
3261- var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
3262-
3263- jQuery.each( (jQuery.data(this, "events").live || {}), function(){
3264- if ( name.test(this.type) )
3265- remove++;
3266- });
3267-
3268- if ( remove < 1 )
3269- jQuery.event.remove( this, namespaces[0], liveHandler );
3270- }
3271- }
3272- }
3273- }
3274-};
3275-
3276-jQuery.Event = function( src ){
3277- // Allow instantiation without the 'new' keyword
3278- if( !this.preventDefault )
3279- return new jQuery.Event(src);
3280-
3281- // Event object
3282- if( src && src.type ){
3283- this.originalEvent = src;
3284- this.type = src.type;
3285- // Event type
3286- }else
3287- this.type = src;
3288-
3289- // timeStamp is buggy for some events on Firefox(#3843)
3290- // So we won't rely on the native value
3291- this.timeStamp = now();
3292-
3293- // Mark it as fixed
3294- this[expando] = true;
3295-};
3296-
3297-function returnFalse(){
3298- return false;
3299-}
3300-function returnTrue(){
3301- return true;
3302-}
3303-
3304-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
3305-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
3306-jQuery.Event.prototype = {
3307- preventDefault: function() {
3308- this.isDefaultPrevented = returnTrue;
3309-
3310- var e = this.originalEvent;
3311- if( !e )
3312- return;
3313- // if preventDefault exists run it on the original event
3314- if (e.preventDefault)
3315- e.preventDefault();
3316- // otherwise set the returnValue property of the original event to false (IE)
3317- e.returnValue = false;
3318- },
3319- stopPropagation: function() {
3320- this.isPropagationStopped = returnTrue;
3321-
3322- var e = this.originalEvent;
3323- if( !e )
3324- return;
3325- // if stopPropagation exists run it on the original event
3326- if (e.stopPropagation)
3327- e.stopPropagation();
3328- // otherwise set the cancelBubble property of the original event to true (IE)
3329- e.cancelBubble = true;
3330- },
3331- stopImmediatePropagation:function(){
3332- this.isImmediatePropagationStopped = returnTrue;
3333- this.stopPropagation();
3334- },
3335- isDefaultPrevented: returnFalse,
3336- isPropagationStopped: returnFalse,
3337- isImmediatePropagationStopped: returnFalse
3338-};
3339-// Checks if an event happened on an element within another element
3340-// Used in jQuery.event.special.mouseenter and mouseleave handlers
3341-var withinElement = function(event) {
3342- // Check if mouse(over|out) are still within the same parent element
3343- var parent = event.relatedTarget;
3344- // Traverse up the tree
3345- while ( parent && parent != this )
3346- try { parent = parent.parentNode; }
3347- catch(e) { parent = this; }
3348-
3349- if( parent != this ){
3350- // set the correct event type
3351- event.type = event.data;
3352- // handle event if we actually just moused on to a non sub-element
3353- jQuery.event.handle.apply( this, arguments );
3354- }
3355-};
3356-
3357-jQuery.each({
3358- mouseover: 'mouseenter',
3359- mouseout: 'mouseleave'
3360-}, function( orig, fix ){
3361- jQuery.event.special[ fix ] = {
3362- setup: function(){
3363- jQuery.event.add( this, orig, withinElement, fix );
3364- },
3365- teardown: function(){
3366- jQuery.event.remove( this, orig, withinElement );
3367- }
3368- };
3369-});
3370-
3371-jQuery.fn.extend({
3372- bind: function( type, data, fn ) {
3373- return type == "unload" ? this.one(type, data, fn) : this.each(function(){
3374- jQuery.event.add( this, type, fn || data, fn && data );
3375- });
3376- },
3377-
3378- one: function( type, data, fn ) {
3379- var one = jQuery.event.proxy( fn || data, function(event) {
3380- jQuery(this).unbind(event, one);
3381- return (fn || data).apply( this, arguments );
3382- });
3383- return this.each(function(){
3384- jQuery.event.add( this, type, one, fn && data);
3385- });
3386- },
3387-
3388- unbind: function( type, fn ) {
3389- return this.each(function(){
3390- jQuery.event.remove( this, type, fn );
3391- });
3392- },
3393-
3394- trigger: function( type, data ) {
3395- return this.each(function(){
3396- jQuery.event.trigger( type, data, this );
3397- });
3398- },
3399-
3400- triggerHandler: function( type, data ) {
3401- if( this[0] ){
3402- var event = jQuery.Event(type);
3403- event.preventDefault();
3404- event.stopPropagation();
3405- jQuery.event.trigger( event, data, this[0] );
3406- return event.result;
3407- }
3408- },
3409-
3410- toggle: function( fn ) {
3411- // Save reference to arguments for access in closure
3412- var args = arguments, i = 1;
3413-
3414- // link all the functions, so any of them can unbind this click handler
3415- while( i < args.length )
3416- jQuery.event.proxy( fn, args[i++] );
3417-
3418- return this.click( jQuery.event.proxy( fn, function(event) {
3419- // Figure out which function to execute
3420- this.lastToggle = ( this.lastToggle || 0 ) % i;
3421-
3422- // Make sure that clicks stop
3423- event.preventDefault();
3424-
3425- // and execute the function
3426- return args[ this.lastToggle++ ].apply( this, arguments ) || false;
3427- }));
3428- },
3429-
3430- hover: function(fnOver, fnOut) {
3431- return this.mouseenter(fnOver).mouseleave(fnOut);
3432- },
3433-
3434- ready: function(fn) {
3435- // Attach the listeners
3436- bindReady();
3437-
3438- // If the DOM is already ready
3439- if ( jQuery.isReady )
3440- // Execute the function immediately
3441- fn.call( document, jQuery );
3442-
3443- // Otherwise, remember the function for later
3444- else
3445- // Add the function to the wait list
3446- jQuery.readyList.push( fn );
3447-
3448- return this;
3449- },
3450-
3451- live: function( type, fn ){
3452- var proxy = jQuery.event.proxy( fn );
3453- proxy.guid += this.selector + type;
3454-
3455- jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
3456-
3457- return this;
3458- },
3459-
3460- die: function( type, fn ){
3461- jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
3462- return this;
3463- }
3464-});
3465-
3466-function liveHandler( event ){
3467- var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
3468- stop = true,
3469- elems = [];
3470-
3471- jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
3472- if ( check.test(fn.type) ) {
3473- var elem = jQuery(event.target).closest(fn.data)[0];
3474- if ( elem )
3475- elems.push({ elem: elem, fn: fn });
3476- }
3477- });
3478-
3479- elems.sort(function(a,b) {
3480- return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest");
3481- });
3482-
3483- jQuery.each(elems, function(){
3484- if ( this.fn.call(this.elem, event, this.fn.data) === false )
3485- return (stop = false);
3486- });
3487-
3488- return stop;
3489-}
3490-
3491-function liveConvert(type, selector){
3492- return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
3493-}
3494-
3495-jQuery.extend({
3496- isReady: false,
3497- readyList: [],
3498- // Handle when the DOM is ready
3499- ready: function() {
3500- // Make sure that the DOM is not already loaded
3501- if ( !jQuery.isReady ) {
3502- // Remember that the DOM is ready
3503- jQuery.isReady = true;
3504-
3505- // If there are functions bound, to execute
3506- if ( jQuery.readyList ) {
3507- // Execute all of them
3508- jQuery.each( jQuery.readyList, function(){
3509- this.call( document, jQuery );
3510- });
3511-
3512- // Reset the list of functions
3513- jQuery.readyList = null;
3514- }
3515-
3516- // Trigger any bound ready events
3517- jQuery(document).triggerHandler("ready");
3518- }
3519- }
3520-});
3521-
3522-var readyBound = false;
3523-
3524-function bindReady(){
3525- if ( readyBound ) return;
3526- readyBound = true;
3527-
3528- // Mozilla, Opera and webkit nightlies currently support this event
3529- if ( document.addEventListener ) {
3530- // Use the handy event callback
3531- document.addEventListener( "DOMContentLoaded", function(){
3532- document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
3533- jQuery.ready();
3534- }, false );
3535-
3536- // If IE event model is used
3537- } else if ( document.attachEvent ) {
3538- // ensure firing before onload,
3539- // maybe late but safe also for iframes
3540- document.attachEvent("onreadystatechange", function(){
3541- if ( document.readyState === "complete" ) {
3542- document.detachEvent( "onreadystatechange", arguments.callee );
3543- jQuery.ready();
3544- }
3545- });
3546-
3547- // If IE and not an iframe
3548- // continually check to see if the document is ready
3549- if ( document.documentElement.doScroll && window == window.top ) (function(){
3550- if ( jQuery.isReady ) return;
3551-
3552- try {
3553- // If IE is used, use the trick by Diego Perini
3554- // http://javascript.nwbox.com/IEContentLoaded/
3555- document.documentElement.doScroll("left");
3556- } catch( error ) {
3557- setTimeout( arguments.callee, 0 );
3558- return;
3559- }
3560-
3561- // and execute any waiting functions
3562- jQuery.ready();
3563- })();
3564- }
3565-
3566- // A fallback to window.onload, that will always work
3567- jQuery.event.add( window, "load", jQuery.ready );
3568-}
3569-
3570-jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
3571- "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
3572- "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
3573-
3574- // Handle event binding
3575- jQuery.fn[name] = function(fn){
3576- return fn ? this.bind(name, fn) : this.trigger(name);
3577- };
3578-});
3579-
3580-// Prevent memory leaks in IE
3581-// And prevent errors on refresh with events like mouseover in other browsers
3582-// Window isn't included so as not to unbind existing unload events
3583-jQuery( window ).bind( 'unload', function(){
3584- for ( var id in jQuery.cache )
3585- // Skip the window
3586- if ( id != 1 && jQuery.cache[ id ].handle )
3587- jQuery.event.remove( jQuery.cache[ id ].handle.elem );
3588-});
3589-(function(){
3590-
3591- jQuery.support = {};
3592-
3593- var root = document.documentElement,
3594- script = document.createElement("script"),
3595- div = document.createElement("div"),
3596- id = "script" + (new Date).getTime();
3597-
3598- div.style.display = "none";
3599- div.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
3600-
3601- var all = div.getElementsByTagName("*"),
3602- a = div.getElementsByTagName("a")[0];
3603-
3604- // Can't get basic test support
3605- if ( !all || !all.length || !a ) {
3606- return;
3607- }
3608-
3609- jQuery.support = {
3610- // IE strips leading whitespace when .innerHTML is used
3611- leadingWhitespace: div.firstChild.nodeType == 3,
3612-
3613- // Make sure that tbody elements aren't automatically inserted
3614- // IE will insert them into empty tables
3615- tbody: !div.getElementsByTagName("tbody").length,
3616-
3617- // Make sure that you can get all elements in an <object> element
3618- // IE 7 always returns no results
3619- objectAll: !!div.getElementsByTagName("object")[0]
3620- .getElementsByTagName("*").length,
3621-
3622- // Make sure that link elements get serialized correctly by innerHTML
3623- // This requires a wrapper element in IE
3624- htmlSerialize: !!div.getElementsByTagName("link").length,
3625-
3626- // Get the style information from getAttribute
3627- // (IE uses .cssText insted)
3628- style: /red/.test( a.getAttribute("style") ),
3629-
3630- // Make sure that URLs aren't manipulated
3631- // (IE normalizes it by default)
3632- hrefNormalized: a.getAttribute("href") === "/a",
3633-
3634- // Make sure that element opacity exists
3635- // (IE uses filter instead)
3636- opacity: a.style.opacity === "0.5",
3637-
3638- // Verify style float existence
3639- // (IE uses styleFloat instead of cssFloat)
3640- cssFloat: !!a.style.cssFloat,
3641-
3642- // Will be defined later
3643- scriptEval: false,
3644- noCloneEvent: true,
3645- boxModel: null
3646- };
3647-
3648- script.type = "text/javascript";
3649- try {
3650- script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
3651- } catch(e){}
3652-
3653- root.insertBefore( script, root.firstChild );
3654-
3655- // Make sure that the execution of code works by injecting a script
3656- // tag with appendChild/createTextNode
3657- // (IE doesn't support this, fails, and uses .text instead)
3658- if ( window[ id ] ) {
3659- jQuery.support.scriptEval = true;
3660- delete window[ id ];
3661- }
3662-
3663- root.removeChild( script );
3664-
3665- if ( div.attachEvent && div.fireEvent ) {
3666- div.attachEvent("onclick", function(){
3667- // Cloning a node shouldn't copy over any
3668- // bound event handlers (IE does this)
3669- jQuery.support.noCloneEvent = false;
3670- div.detachEvent("onclick", arguments.callee);
3671- });
3672- div.cloneNode(true).fireEvent("onclick");
3673- }
3674-
3675- // Figure out if the W3C box model works as expected
3676- // document.body must exist before we can do this
3677- jQuery(function(){
3678- var div = document.createElement("div");
3679- div.style.width = div.style.paddingLeft = "1px";
3680-
3681- document.body.appendChild( div );
3682- jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
3683- document.body.removeChild( div ).style.display = 'none';
3684- });
3685-})();
3686-
3687-var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
3688-
3689-jQuery.props = {
3690- "for": "htmlFor",
3691- "class": "className",
3692- "float": styleFloat,
3693- cssFloat: styleFloat,
3694- styleFloat: styleFloat,
3695- readonly: "readOnly",
3696- maxlength: "maxLength",
3697- cellspacing: "cellSpacing",
3698- rowspan: "rowSpan",
3699- tabindex: "tabIndex"
3700-};
3701-jQuery.fn.extend({
3702- // Keep a copy of the old load
3703- _load: jQuery.fn.load,
3704-
3705- load: function( url, params, callback ) {
3706- if ( typeof url !== "string" )
3707- return this._load( url );
3708-
3709- var off = url.indexOf(" ");
3710- if ( off >= 0 ) {
3711- var selector = url.slice(off, url.length);
3712- url = url.slice(0, off);
3713- }
3714-
3715- // Default to a GET request
3716- var type = "GET";
3717-
3718- // If the second parameter was provided
3719- if ( params )
3720- // If it's a function
3721- if ( jQuery.isFunction( params ) ) {
3722- // We assume that it's the callback
3723- callback = params;
3724- params = null;
3725-
3726- // Otherwise, build a param string
3727- } else if( typeof params === "object" ) {
3728- params = jQuery.param( params );
3729- type = "POST";
3730- }
3731-
3732- var self = this;
3733-
3734- // Request the remote document
3735- jQuery.ajax({
3736- url: url,
3737- type: type,
3738- dataType: "html",
3739- data: params,
3740- complete: function(res, status){
3741- // If successful, inject the HTML into all the matched elements
3742- if ( status == "success" || status == "notmodified" )
3743- // See if a selector was specified
3744- self.html( selector ?
3745- // Create a dummy div to hold the results
3746- jQuery("<div/>")
3747- // inject the contents of the document in, removing the scripts
3748- // to avoid any 'Permission Denied' errors in IE
3749- .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
3750-
3751- // Locate the specified elements
3752- .find(selector) :
3753-
3754- // If not, just inject the full result
3755- res.responseText );
3756-
3757- if( callback )
3758- self.each( callback, [res.responseText, status, res] );
3759- }
3760- });
3761- return this;
3762- },
3763-
3764- serialize: function() {
3765- return jQuery.param(this.serializeArray());
3766- },
3767- serializeArray: function() {
3768- return this.map(function(){
3769- return this.elements ? jQuery.makeArray(this.elements) : this;
3770- })
3771- .filter(function(){
3772- return this.name && !this.disabled &&
3773- (this.checked || /select|textarea/i.test(this.nodeName) ||
3774- /text|hidden|password|search/i.test(this.type));
3775- })
3776- .map(function(i, elem){
3777- var val = jQuery(this).val();
3778- return val == null ? null :
3779- jQuery.isArray(val) ?
3780- jQuery.map( val, function(val, i){
3781- return {name: elem.name, value: val};
3782- }) :
3783- {name: elem.name, value: val};
3784- }).get();
3785- }
3786-});
3787-
3788-// Attach a bunch of functions for handling common AJAX events
3789-jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
3790- jQuery.fn[o] = function(f){
3791- return this.bind(o, f);
3792- };
3793-});
3794-
3795-var jsc = now();
3796-
3797-jQuery.extend({
3798-
3799- get: function( url, data, callback, type ) {
3800- // shift arguments if data argument was ommited
3801- if ( jQuery.isFunction( data ) ) {
3802- callback = data;
3803- data = null;
3804- }
3805-
3806- return jQuery.ajax({
3807- type: "GET",
3808- url: url,
3809- data: data,
3810- success: callback,
3811- dataType: type
3812- });
3813- },
3814-
3815- getScript: function( url, callback ) {
3816- return jQuery.get(url, null, callback, "script");
3817- },
3818-
3819- getJSON: function( url, data, callback ) {
3820- return jQuery.get(url, data, callback, "json");
3821- },
3822-
3823- post: function( url, data, callback, type ) {
3824- if ( jQuery.isFunction( data ) ) {
3825- callback = data;
3826- data = {};
3827- }
3828-
3829- return jQuery.ajax({
3830- type: "POST",
3831- url: url,
3832- data: data,
3833- success: callback,
3834- dataType: type
3835- });
3836- },
3837-
3838- ajaxSetup: function( settings ) {
3839- jQuery.extend( jQuery.ajaxSettings, settings );
3840- },
3841-
3842- ajaxSettings: {
3843- url: location.href,
3844- global: true,
3845- type: "GET",
3846- contentType: "application/x-www-form-urlencoded",
3847- processData: true,
3848- async: true,
3849- /*
3850- timeout: 0,
3851- data: null,
3852- username: null,
3853- password: null,
3854- */
3855- // Create the request object; Microsoft failed to properly
3856- // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
3857- // This function can be overriden by calling jQuery.ajaxSetup
3858- xhr:function(){
3859- return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
3860- },
3861- accepts: {
3862- xml: "application/xml, text/xml",
3863- html: "text/html",
3864- script: "text/javascript, application/javascript",
3865- json: "application/json, text/javascript",
3866- text: "text/plain",
3867- _default: "*/*"
3868- }
3869- },
3870-
3871- // Last-Modified header cache for next request
3872- lastModified: {},
3873-
3874- ajax: function( s ) {
3875- // Extend the settings, but re-extend 's' so that it can be
3876- // checked again later (in the test suite, specifically)
3877- s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
3878-
3879- var jsonp, jsre = /=\?(&|$)/g, status, data,
3880- type = s.type.toUpperCase();
3881-
3882- // convert data if not already a string
3883- if ( s.data && s.processData && typeof s.data !== "string" )
3884- s.data = jQuery.param(s.data);
3885-
3886- // Handle JSONP Parameter Callbacks
3887- if ( s.dataType == "jsonp" ) {
3888- if ( type == "GET" ) {
3889- if ( !s.url.match(jsre) )
3890- s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
3891- } else if ( !s.data || !s.data.match(jsre) )
3892- s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
3893- s.dataType = "json";
3894- }
3895-
3896- // Build temporary JSONP function
3897- if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
3898- jsonp = "jsonp" + jsc++;
3899-
3900- // Replace the =? sequence both in the query string and the data
3901- if ( s.data )
3902- s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
3903- s.url = s.url.replace(jsre, "=" + jsonp + "$1");
3904-
3905- // We need to make sure
3906- // that a JSONP style response is executed properly
3907- s.dataType = "script";
3908-
3909- // Handle JSONP-style loading
3910- window[ jsonp ] = function(tmp){
3911- data = tmp;
3912- success();
3913- complete();
3914- // Garbage collect
3915- window[ jsonp ] = undefined;
3916- try{ delete window[ jsonp ]; } catch(e){}
3917- if ( head )
3918- head.removeChild( script );
3919- };
3920- }
3921-
3922- if ( s.dataType == "script" && s.cache == null )
3923- s.cache = false;
3924-
3925- if ( s.cache === false && type == "GET" ) {
3926- var ts = now();
3927- // try replacing _= if it is there
3928- var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
3929- // if nothing was replaced, add timestamp to the end
3930- s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
3931- }
3932-
3933- // If data is available, append data to url for get requests
3934- if ( s.data && type == "GET" ) {
3935- s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
3936-
3937- // IE likes to send both get and post data, prevent this
3938- s.data = null;
3939- }
3940-
3941- // Watch for a new set of requests
3942- if ( s.global && ! jQuery.active++ )
3943- jQuery.event.trigger( "ajaxStart" );
3944-
3945- // Matches an absolute URL, and saves the domain
3946- var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
3947-
3948- // If we're requesting a remote document
3949- // and trying to load JSON or Script with a GET
3950- if ( s.dataType == "script" && type == "GET" && parts
3951- && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
3952-
3953- var head = document.getElementsByTagName("head")[0];
3954- var script = document.createElement("script");
3955- script.src = s.url;
3956- if (s.scriptCharset)
3957- script.charset = s.scriptCharset;
3958-
3959- // Handle Script loading
3960- if ( !jsonp ) {
3961- var done = false;
3962-
3963- // Attach handlers for all browsers
3964- script.onload = script.onreadystatechange = function(){
3965- if ( !done && (!this.readyState ||
3966- this.readyState == "loaded" || this.readyState == "complete") ) {
3967- done = true;
3968- success();
3969- complete();
3970-
3971- // Handle memory leak in IE
3972- script.onload = script.onreadystatechange = null;
3973- head.removeChild( script );
3974- }
3975- };
3976- }
3977-
3978- head.appendChild(script);
3979-
3980- // We handle everything using the script element injection
3981- return undefined;
3982- }
3983-
3984- var requestDone = false;
3985-
3986- // Create the request object
3987- var xhr = s.xhr();
3988-
3989- // Open the socket
3990- // Passing null username, generates a login popup on Opera (#2865)
3991- if( s.username )
3992- xhr.open(type, s.url, s.async, s.username, s.password);
3993- else
3994- xhr.open(type, s.url, s.async);
3995-
3996- // Need an extra try/catch for cross domain requests in Firefox 3
3997- try {
3998- // Set the correct header, if data is being sent
3999- if ( s.data )
4000- xhr.setRequestHeader("Content-Type", s.contentType);
4001-
4002- // Set the If-Modified-Since header, if ifModified mode.
4003- if ( s.ifModified )
4004- xhr.setRequestHeader("If-Modified-Since",
4005- jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
4006-
4007- // Set header so the called script knows that it's an XMLHttpRequest
4008- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
4009-
4010- // Set the Accepts header for the server, depending on the dataType
4011- xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
4012- s.accepts[ s.dataType ] + ", */*" :
4013- s.accepts._default );
4014- } catch(e){}
4015-
4016- // Allow custom headers/mimetypes and early abort
4017- if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
4018- // Handle the global AJAX counter
4019- if ( s.global && ! --jQuery.active )
4020- jQuery.event.trigger( "ajaxStop" );
4021- // close opended socket
4022- xhr.abort();
4023- return false;
4024- }
4025-
4026- if ( s.global )
4027- jQuery.event.trigger("ajaxSend", [xhr, s]);
4028-
4029- // Wait for a response to come back
4030- var onreadystatechange = function(isTimeout){
4031- // The request was aborted, clear the interval and decrement jQuery.active
4032- if (xhr.readyState == 0) {
4033- if (ival) {
4034- // clear poll interval
4035- clearInterval(ival);
4036- ival = null;
4037- // Handle the global AJAX counter
4038- if ( s.global && ! --jQuery.active )
4039- jQuery.event.trigger( "ajaxStop" );
4040- }
4041- // The transfer is complete and the data is available, or the request timed out
4042- } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
4043- requestDone = true;
4044-
4045- // clear poll interval
4046- if (ival) {
4047- clearInterval(ival);
4048- ival = null;
4049- }
4050-
4051- status = isTimeout == "timeout" ? "timeout" :
4052- !jQuery.httpSuccess( xhr ) ? "error" :
4053- s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
4054- "success";
4055-
4056- if ( status == "success" ) {
4057- // Watch for, and catch, XML document parse errors
4058- try {
4059- // process the data (runs the xml through httpData regardless of callback)
4060- data = jQuery.httpData( xhr, s.dataType, s );
4061- } catch(e) {
4062- status = "parsererror";
4063- }
4064- }
4065-
4066- // Make sure that the request was successful or notmodified
4067- if ( status == "success" ) {
4068- // Cache Last-Modified header, if ifModified mode.
4069- var modRes;
4070- try {
4071- modRes = xhr.getResponseHeader("Last-Modified");
4072- } catch(e) {} // swallow exception thrown by FF if header is not available
4073-
4074- if ( s.ifModified && modRes )
4075- jQuery.lastModified[s.url] = modRes;
4076-
4077- // JSONP handles its own success callback
4078- if ( !jsonp )
4079- success();
4080- } else
4081- jQuery.handleError(s, xhr, status);
4082-
4083- // Fire the complete handlers
4084- complete();
4085-
4086- if ( isTimeout )
4087- xhr.abort();
4088-
4089- // Stop memory leaks
4090- if ( s.async )
4091- xhr = null;
4092- }
4093- };
4094-
4095- if ( s.async ) {
4096- // don't attach the handler to the request, just poll it instead
4097- var ival = setInterval(onreadystatechange, 13);
4098-
4099- // Timeout checker
4100- if ( s.timeout > 0 )
4101- setTimeout(function(){
4102- // Check to see if the request is still happening
4103- if ( xhr && !requestDone )
4104- onreadystatechange( "timeout" );
4105- }, s.timeout);
4106- }
4107-
4108- // Send the data
4109- try {
4110- xhr.send(s.data);
4111- } catch(e) {
4112- jQuery.handleError(s, xhr, null, e);
4113- }
4114-
4115- // firefox 1.5 doesn't fire statechange for sync requests
4116- if ( !s.async )
4117- onreadystatechange();
4118-
4119- function success(){
4120- // If a local callback was specified, fire it and pass it the data
4121- if ( s.success )
4122- s.success( data, status );
4123-
4124- // Fire the global callback
4125- if ( s.global )
4126- jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
4127- }
4128-
4129- function complete(){
4130- // Process result
4131- if ( s.complete )
4132- s.complete(xhr, status);
4133-
4134- // The request was completed
4135- if ( s.global )
4136- jQuery.event.trigger( "ajaxComplete", [xhr, s] );
4137-
4138- // Handle the global AJAX counter
4139- if ( s.global && ! --jQuery.active )
4140- jQuery.event.trigger( "ajaxStop" );
4141- }
4142-
4143- // return XMLHttpRequest to allow aborting the request etc.
4144- return xhr;
4145- },
4146-
4147- handleError: function( s, xhr, status, e ) {
4148- // If a local callback was specified, fire it
4149- if ( s.error ) s.error( xhr, status, e );
4150-
4151- // Fire the global callback
4152- if ( s.global )
4153- jQuery.event.trigger( "ajaxError", [xhr, s, e] );
4154- },
4155-
4156- // Counter for holding the number of active queries
4157- active: 0,
4158-
4159- // Determines if an XMLHttpRequest was successful or not
4160- httpSuccess: function( xhr ) {
4161- try {
4162- // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
4163- return !xhr.status && location.protocol == "file:" ||
4164- ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
4165- } catch(e){}
4166- return false;
4167- },
4168-
4169- // Determines if an XMLHttpRequest returns NotModified
4170- httpNotModified: function( xhr, url ) {
4171- try {
4172- var xhrRes = xhr.getResponseHeader("Last-Modified");
4173-
4174- // Firefox always returns 200. check Last-Modified date
4175- return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
4176- } catch(e){}
4177- return false;
4178- },
4179-
4180- httpData: function( xhr, type, s ) {
4181- var ct = xhr.getResponseHeader("content-type"),
4182- xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
4183- data = xml ? xhr.responseXML : xhr.responseText;
4184-
4185- if ( xml && data.documentElement.tagName == "parsererror" )
4186- throw "parsererror";
4187-
4188- // Allow a pre-filtering function to sanitize the response
4189- // s != null is checked to keep backwards compatibility
4190- if( s && s.dataFilter )
4191- data = s.dataFilter( data, type );
4192-
4193- // The filter can actually parse the response
4194- if( typeof data === "string" ){
4195-
4196- // If the type is "script", eval it in global context
4197- if ( type == "script" )
4198- jQuery.globalEval( data );
4199-
4200- // Get the JavaScript object, if JSON is used.
4201- if ( type == "json" )
4202- data = window["eval"]("(" + data + ")");
4203- }
4204-
4205- return data;
4206- },
4207-
4208- // Serialize an array of form elements or a set of
4209- // key/values into a query string
4210- param: function( a ) {
4211- var s = [ ];
4212-
4213- function add( key, value ){
4214- s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
4215- };
4216-
4217- // If an array was passed in, assume that it is an array
4218- // of form elements
4219- if ( jQuery.isArray(a) || a.jquery )
4220- // Serialize the form elements
4221- jQuery.each( a, function(){
4222- add( this.name, this.value );
4223- });
4224-
4225- // Otherwise, assume that it's an object of key/value pairs
4226- else
4227- // Serialize the key/values
4228- for ( var j in a )
4229- // If the value is an array then the key names need to be repeated
4230- if ( jQuery.isArray(a[j]) )
4231- jQuery.each( a[j], function(){
4232- add( j, this );
4233- });
4234- else
4235- add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
4236-
4237- // Return the resulting serialization
4238- return s.join("&").replace(/%20/g, "+");
4239- }
4240-
4241-});
4242-var elemdisplay = {},
4243- timerId,
4244- fxAttrs = [
4245- // height animations
4246- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
4247- // width animations
4248- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
4249- // opacity animations
4250- [ "opacity" ]
4251- ];
4252-
4253-function genFx( type, num ){
4254- var obj = {};
4255- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
4256- obj[ this ] = type;
4257- });
4258- return obj;
4259-}
4260-
4261-jQuery.fn.extend({
4262- show: function(speed,callback){
4263- if ( speed ) {
4264- return this.animate( genFx("show", 3), speed, callback);
4265- } else {
4266- for ( var i = 0, l = this.length; i < l; i++ ){
4267- var old = jQuery.data(this[i], "olddisplay");
4268-
4269- this[i].style.display = old || "";
4270-
4271- if ( jQuery.css(this[i], "display") === "none" ) {
4272- var tagName = this[i].tagName, display;
4273-
4274- if ( elemdisplay[ tagName ] ) {
4275- display = elemdisplay[ tagName ];
4276- } else {
4277- var elem = jQuery("<" + tagName + " />").appendTo("body");
4278-
4279- display = elem.css("display");
4280- if ( display === "none" )
4281- display = "block";
4282-
4283- elem.remove();
4284-
4285- elemdisplay[ tagName ] = display;
4286- }
4287-
4288- jQuery.data(this[i], "olddisplay", display);
4289- }
4290- }
4291-
4292- // Set the display of the elements in a second loop
4293- // to avoid the constant reflow
4294- for ( var i = 0, l = this.length; i < l; i++ ){
4295- this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
4296- }
4297-
4298- return this;
4299- }
4300- },
4301-
4302- hide: function(speed,callback){
4303- if ( speed ) {
4304- return this.animate( genFx("hide", 3), speed, callback);
4305- } else {
4306- for ( var i = 0, l = this.length; i < l; i++ ){
4307- var old = jQuery.data(this[i], "olddisplay");
4308- if ( !old && old !== "none" )
4309- jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
4310- }
4311-
4312- // Set the display of the elements in a second loop
4313- // to avoid the constant reflow
4314- for ( var i = 0, l = this.length; i < l; i++ ){
4315- this[i].style.display = "none";
4316- }
4317-
4318- return this;
4319- }
4320- },
4321-
4322- // Save the old toggle function
4323- _toggle: jQuery.fn.toggle,
4324-
4325- toggle: function( fn, fn2 ){
4326- var bool = typeof fn === "boolean";
4327-
4328- return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
4329- this._toggle.apply( this, arguments ) :
4330- fn == null || bool ?
4331- this.each(function(){
4332- var state = bool ? fn : jQuery(this).is(":hidden");
4333- jQuery(this)[ state ? "show" : "hide" ]();
4334- }) :
4335- this.animate(genFx("toggle", 3), fn, fn2);
4336- },
4337-
4338- fadeTo: function(speed,to,callback){
4339- return this.animate({opacity: to}, speed, callback);
4340- },
4341-
4342- animate: function( prop, speed, easing, callback ) {
4343- var optall = jQuery.speed(speed, easing, callback);
4344-
4345- return this[ optall.queue === false ? "each" : "queue" ](function(){
4346-
4347- var opt = jQuery.extend({}, optall), p,
4348- hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
4349- self = this;
4350-
4351- for ( p in prop ) {
4352- if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
4353- return opt.complete.call(this);
4354-
4355- if ( ( p == "height" || p == "width" ) && this.style ) {
4356- // Store display property
4357- opt.display = jQuery.css(this, "display");
4358-
4359- // Make sure that nothing sneaks out
4360- opt.overflow = this.style.overflow;
4361- }
4362- }
4363-
4364- if ( opt.overflow != null )
4365- this.style.overflow = "hidden";
4366-
4367- opt.curAnim = jQuery.extend({}, prop);
4368-
4369- jQuery.each( prop, function(name, val){
4370- var e = new jQuery.fx( self, opt, name );
4371-
4372- if ( /toggle|show|hide/.test(val) )
4373- e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
4374- else {
4375- var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
4376- start = e.cur(true) || 0;
4377-
4378- if ( parts ) {
4379- var end = parseFloat(parts[2]),
4380- unit = parts[3] || "px";
4381-
4382- // We need to compute starting value
4383- if ( unit != "px" ) {
4384- self.style[ name ] = (end || 1) + unit;
4385- start = ((end || 1) / e.cur(true)) * start;
4386- self.style[ name ] = start + unit;
4387- }
4388-
4389- // If a +=/-= token was provided, we're doing a relative animation
4390- if ( parts[1] )
4391- end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
4392-
4393- e.custom( start, end, unit );
4394- } else
4395- e.custom( start, val, "" );
4396- }
4397- });
4398-
4399- // For JS strict compliance
4400- return true;
4401- });
4402- },
4403-
4404- stop: function(clearQueue, gotoEnd){
4405- var timers = jQuery.timers;
4406-
4407- if (clearQueue)
4408- this.queue([]);
4409-
4410- this.each(function(){
4411- // go in reverse order so anything added to the queue during the loop is ignored
4412- for ( var i = timers.length - 1; i >= 0; i-- )
4413- if ( timers[i].elem == this ) {
4414- if (gotoEnd)
4415- // force the next step to be the last
4416- timers[i](true);
4417- timers.splice(i, 1);
4418- }
4419- });
4420-
4421- // start the next in the queue if the last step wasn't forced
4422- if (!gotoEnd)
4423- this.dequeue();
4424-
4425- return this;
4426- }
4427-
4428-});
4429-
4430-// Generate shortcuts for custom animations
4431-jQuery.each({
4432- slideDown: genFx("show", 1),
4433- slideUp: genFx("hide", 1),
4434- slideToggle: genFx("toggle", 1),
4435- fadeIn: { opacity: "show" },
4436- fadeOut: { opacity: "hide" }
4437-}, function( name, props ){
4438- jQuery.fn[ name ] = function( speed, callback ){
4439- return this.animate( props, speed, callback );
4440- };
4441-});
4442-
4443-jQuery.extend({
4444-
4445- speed: function(speed, easing, fn) {
4446- var opt = typeof speed === "object" ? speed : {
4447- complete: fn || !fn && easing ||
4448- jQuery.isFunction( speed ) && speed,
4449- duration: speed,
4450- easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
4451- };
4452-
4453- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
4454- jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
4455-
4456- // Queueing
4457- opt.old = opt.complete;
4458- opt.complete = function(){
4459- if ( opt.queue !== false )
4460- jQuery(this).dequeue();
4461- if ( jQuery.isFunction( opt.old ) )
4462- opt.old.call( this );
4463- };
4464-
4465- return opt;
4466- },
4467-
4468- easing: {
4469- linear: function( p, n, firstNum, diff ) {
4470- return firstNum + diff * p;
4471- },
4472- swing: function( p, n, firstNum, diff ) {
4473- return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
4474- }
4475- },
4476-
4477- timers: [],
4478-
4479- fx: function( elem, options, prop ){
4480- this.options = options;
4481- this.elem = elem;
4482- this.prop = prop;
4483-
4484- if ( !options.orig )
4485- options.orig = {};
4486- }
4487-
4488-});
4489-
4490-jQuery.fx.prototype = {
4491-
4492- // Simple function for setting a style value
4493- update: function(){
4494- if ( this.options.step )
4495- this.options.step.call( this.elem, this.now, this );
4496-
4497- (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
4498-
4499- // Set display property to block for height/width animations
4500- if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
4501- this.elem.style.display = "block";
4502- },
4503-
4504- // Get the current size
4505- cur: function(force){
4506- if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
4507- return this.elem[ this.prop ];
4508-
4509- var r = parseFloat(jQuery.css(this.elem, this.prop, force));
4510- return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
4511- },
4512-
4513- // Start an animation from one number to another
4514- custom: function(from, to, unit){
4515- this.startTime = now();
4516- this.start = from;
4517- this.end = to;
4518- this.unit = unit || this.unit || "px";
4519- this.now = this.start;
4520- this.pos = this.state = 0;
4521-
4522- var self = this;
4523- function t(gotoEnd){
4524- return self.step(gotoEnd);
4525- }
4526-
4527- t.elem = this.elem;
4528-
4529- if ( t() && jQuery.timers.push(t) && !timerId ) {
4530- timerId = setInterval(function(){
4531- var timers = jQuery.timers;
4532-
4533- for ( var i = 0; i < timers.length; i++ )
4534- if ( !timers[i]() )
4535- timers.splice(i--, 1);
4536-
4537- if ( !timers.length ) {
4538- clearInterval( timerId );
4539- timerId = undefined;
4540- }
4541- }, 13);
4542- }
4543- },
4544-
4545- // Simple 'show' function
4546- show: function(){
4547- // Remember where we started, so that we can go back to it later
4548- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
4549- this.options.show = true;
4550-
4551- // Begin the animation
4552- // Make sure that we start at a small width/height to avoid any
4553- // flash of content
4554- this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
4555-
4556- // Start by showing the element
4557- jQuery(this.elem).show();
4558- },
4559-
4560- // Simple 'hide' function
4561- hide: function(){
4562- // Remember where we started, so that we can go back to it later
4563- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
4564- this.options.hide = true;
4565-
4566- // Begin the animation
4567- this.custom(this.cur(), 0);
4568- },
4569-
4570- // Each step of an animation
4571- step: function(gotoEnd){
4572- var t = now();
4573-
4574- if ( gotoEnd || t >= this.options.duration + this.startTime ) {
4575- this.now = this.end;
4576- this.pos = this.state = 1;
4577- this.update();
4578-
4579- this.options.curAnim[ this.prop ] = true;
4580-
4581- var done = true;
4582- for ( var i in this.options.curAnim )
4583- if ( this.options.curAnim[i] !== true )
4584- done = false;
4585-
4586- if ( done ) {
4587- if ( this.options.display != null ) {
4588- // Reset the overflow
4589- this.elem.style.overflow = this.options.overflow;
4590-
4591- // Reset the display
4592- this.elem.style.display = this.options.display;
4593- if ( jQuery.css(this.elem, "display") == "none" )
4594- this.elem.style.display = "block";
4595- }
4596-
4597- // Hide the element if the "hide" operation was done
4598- if ( this.options.hide )
4599- jQuery(this.elem).hide();
4600-
4601- // Reset the properties, if the item has been hidden or shown
4602- if ( this.options.hide || this.options.show )
4603- for ( var p in this.options.curAnim )
4604- jQuery.attr(this.elem.style, p, this.options.orig[p]);
4605-
4606- // Execute the complete function
4607- this.options.complete.call( this.elem );
4608- }
4609-
4610- return false;
4611- } else {
4612- var n = t - this.startTime;
4613- this.state = n / this.options.duration;
4614-
4615- // Perform the easing function, defaults to swing
4616- this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
4617- this.now = this.start + ((this.end - this.start) * this.pos);
4618-
4619- // Perform the next step of the animation
4620- this.update();
4621- }
4622-
4623- return true;
4624- }
4625-
4626-};
4627-
4628-jQuery.extend( jQuery.fx, {
4629- speeds:{
4630- slow: 600,
4631- fast: 200,
4632- // Default speed
4633- _default: 400
4634- },
4635- step: {
4636-
4637- opacity: function(fx){
4638- jQuery.attr(fx.elem.style, "opacity", fx.now);
4639- },
4640-
4641- _default: function(fx){
4642- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
4643- fx.elem.style[ fx.prop ] = fx.now + fx.unit;
4644- else
4645- fx.elem[ fx.prop ] = fx.now;
4646- }
4647- }
4648-});
4649-if ( document.documentElement["getBoundingClientRect"] )
4650- jQuery.fn.offset = function() {
4651- if ( !this[0] ) return { top: 0, left: 0 };
4652- if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
4653- var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
4654- clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
4655- top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
4656- left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
4657- return { top: top, left: left };
4658- };
4659-else
4660- jQuery.fn.offset = function() {
4661- if ( !this[0] ) return { top: 0, left: 0 };
4662- if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
4663- jQuery.offset.initialized || jQuery.offset.initialize();
4664-
4665- var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
4666- doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
4667- body = doc.body, defaultView = doc.defaultView,
4668- prevComputedStyle = defaultView.getComputedStyle(elem, null),
4669- top = elem.offsetTop, left = elem.offsetLeft;
4670-
4671- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
4672- computedStyle = defaultView.getComputedStyle(elem, null);
4673- top -= elem.scrollTop, left -= elem.scrollLeft;
4674- if ( elem === offsetParent ) {
4675- top += elem.offsetTop, left += elem.offsetLeft;
4676- if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
4677- top += parseInt( computedStyle.borderTopWidth, 10) || 0,
4678- left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
4679- prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
4680- }
4681- if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
4682- top += parseInt( computedStyle.borderTopWidth, 10) || 0,
4683- left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
4684- prevComputedStyle = computedStyle;
4685- }
4686-
4687- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
4688- top += body.offsetTop,
4689- left += body.offsetLeft;
4690-
4691- if ( prevComputedStyle.position === "fixed" )
4692- top += Math.max(docElem.scrollTop, body.scrollTop),
4693- left += Math.max(docElem.scrollLeft, body.scrollLeft);
4694-
4695- return { top: top, left: left };
4696- };
4697-
4698-jQuery.offset = {
4699- initialize: function() {
4700- if ( this.initialized ) return;
4701- var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
4702- html = '<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>';
4703-
4704- rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
4705- for ( prop in rules ) container.style[prop] = rules[prop];
4706-
4707- container.innerHTML = html;
4708- body.insertBefore(container, body.firstChild);
4709- innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
4710-
4711- this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
4712- this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
4713-
4714- innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
4715- this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
4716-
4717- body.style.marginTop = '1px';
4718- this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
4719- body.style.marginTop = bodyMarginTop;
4720-
4721- body.removeChild(container);
4722- this.initialized = true;
4723- },
4724-
4725- bodyOffset: function(body) {
4726- jQuery.offset.initialized || jQuery.offset.initialize();
4727- var top = body.offsetTop, left = body.offsetLeft;
4728- if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
4729- top += parseInt( jQuery.curCSS(body, 'marginTop', true), 10 ) || 0,
4730- left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
4731- return { top: top, left: left };
4732- }
4733-};
4734-
4735-
4736-jQuery.fn.extend({
4737- position: function() {
4738- var left = 0, top = 0, results;
4739-
4740- if ( this[0] ) {
4741- // Get *real* offsetParent
4742- var offsetParent = this.offsetParent(),
4743-
4744- // Get correct offsets
4745- offset = this.offset(),
4746- parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
4747-
4748- // Subtract element margins
4749- // note: when an element has margin: auto the offsetLeft and marginLeft
4750- // are the same in Safari causing offset.left to incorrectly be 0
4751- offset.top -= num( this, 'marginTop' );
4752- offset.left -= num( this, 'marginLeft' );
4753-
4754- // Add offsetParent borders
4755- parentOffset.top += num( offsetParent, 'borderTopWidth' );
4756- parentOffset.left += num( offsetParent, 'borderLeftWidth' );
4757-
4758- // Subtract the two offsets
4759- results = {
4760- top: offset.top - parentOffset.top,
4761- left: offset.left - parentOffset.left
4762- };
4763- }
4764-
4765- return results;
4766- },
4767-
4768- offsetParent: function() {
4769- var offsetParent = this[0].offsetParent || document.body;
4770- while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
4771- offsetParent = offsetParent.offsetParent;
4772- return jQuery(offsetParent);
4773- }
4774-});
4775-
4776-
4777-// Create scrollLeft and scrollTop methods
4778-jQuery.each( ['Left', 'Top'], function(i, name) {
4779- var method = 'scroll' + name;
4780-
4781- jQuery.fn[ method ] = function(val) {
4782- if (!this[0]) return null;
4783-
4784- return val !== undefined ?
4785-
4786- // Set the scroll offset
4787- this.each(function() {
4788- this == window || this == document ?
4789- window.scrollTo(
4790- !i ? val : jQuery(window).scrollLeft(),
4791- i ? val : jQuery(window).scrollTop()
4792- ) :
4793- this[ method ] = val;
4794- }) :
4795-
4796- // Return the scroll offset
4797- this[0] == window || this[0] == document ?
4798- self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
4799- jQuery.boxModel && document.documentElement[ method ] ||
4800- document.body[ method ] :
4801- this[0][ method ];
4802- };
4803-});
4804-// Create innerHeight, innerWidth, outerHeight and outerWidth methods
4805-jQuery.each([ "Height", "Width" ], function(i, name){
4806-
4807- var tl = i ? "Left" : "Top", // top or left
4808- br = i ? "Right" : "Bottom", // bottom or right
4809- lower = name.toLowerCase();
4810-
4811- // innerHeight and innerWidth
4812- jQuery.fn["inner" + name] = function(){
4813- return this[0] ?
4814- jQuery.css( this[0], lower, false, "padding" ) :
4815- null;
4816- };
4817-
4818- // outerHeight and outerWidth
4819- jQuery.fn["outer" + name] = function(margin) {
4820- return this[0] ?
4821- jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
4822- null;
4823- };
4824-
4825- var type = name.toLowerCase();
4826-
4827- jQuery.fn[ type ] = function( size ) {
4828- // Get window width or height
4829- return this[0] == window ?
4830- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
4831- document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
4832- document.body[ "client" + name ] :
4833-
4834- // Get document width or height
4835- this[0] == document ?
4836- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
4837- Math.max(
4838- document.documentElement["client" + name],
4839- document.body["scroll" + name], document.documentElement["scroll" + name],
4840- document.body["offset" + name], document.documentElement["offset" + name]
4841- ) :
4842-
4843- // Get or set width or height on the element
4844- size === undefined ?
4845- // Get width or height on the element
4846- (this.length ? jQuery.css( this[0], type ) : null) :
4847-
4848- // Set the width or height on the element (default to pixels if value is unitless)
4849- this.css( type, typeof size === "string" ? size : size + "px" );
4850- };
4851-
4852-});
4853-})();
4854
4855=== removed directory 'http/www/js/library/jquery-ui-1.7/themes'
4856=== removed directory 'http/www/js/library/jquery-ui-1.7/themes/base'
4857=== removed directory 'http/www/js/library/jquery-ui-1.7/themes/base/images'
4858=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png'
4859Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png 1970-01-01 00:00:00 +0000 differ
4860=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png'
4861Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png 1970-01-01 00:00:00 +0000 differ
4862=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_65_ffffff_1x400.png'
4863Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_65_ffffff_1x400.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_65_ffffff_1x400.png 1970-01-01 00:00:00 +0000 differ
4864=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_dadada_1x400.png'
4865Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_dadada_1x400.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_dadada_1x400.png 1970-01-01 00:00:00 +0000 differ
4866=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png'
4867Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png 1970-01-01 00:00:00 +0000 differ
4868=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_ffffff_1x400.png'
4869Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_ffffff_1x400.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_glass_75_ffffff_1x400.png 1970-01-01 00:00:00 +0000 differ
4870=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png'
4871Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png 1970-01-01 00:00:00 +0000 differ
4872=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_inset-soft_95_fef1ec_1x100.png'
4873Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_inset-soft_95_fef1ec_1x100.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-bg_inset-soft_95_fef1ec_1x100.png 1970-01-01 00:00:00 +0000 differ
4874=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_222222_256x240.png'
4875Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_222222_256x240.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_222222_256x240.png 1970-01-01 00:00:00 +0000 differ
4876=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_2e83ff_256x240.png'
4877Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_2e83ff_256x240.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_2e83ff_256x240.png 1970-01-01 00:00:00 +0000 differ
4878=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_454545_256x240.png'
4879Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_454545_256x240.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_454545_256x240.png 1970-01-01 00:00:00 +0000 differ
4880=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_888888_256x240.png'
4881Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_888888_256x240.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_888888_256x240.png 1970-01-01 00:00:00 +0000 differ
4882=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_cd0a0a_256x240.png'
4883Binary files http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_cd0a0a_256x240.png 2012-02-25 12:56:33 +0000 and http/www/js/library/jquery-ui-1.7/themes/base/images/ui-icons_cd0a0a_256x240.png 1970-01-01 00:00:00 +0000 differ
4884=== removed file 'http/www/js/library/jquery-ui-1.7/themes/base/jquery-ui.css'
4885--- http/www/js/library/jquery-ui-1.7/themes/base/jquery-ui.css 2012-02-25 12:56:33 +0000
4886+++ http/www/js/library/jquery-ui-1.7/themes/base/jquery-ui.css 1970-01-01 00:00:00 +0000
4887@@ -1,412 +0,0 @@
4888-/*
4889-* jQuery UI CSS Framework
4890-* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
4891-* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
4892-*/
4893-
4894-/* Layout helpers
4895-----------------------------------*/
4896-.ui-helper-hidden { display: none; }
4897-.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
4898-.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
4899-.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
4900-.ui-helper-clearfix { display: inline-block; }
4901-/* required comment for clearfix to work in Opera \*/
4902-* html .ui-helper-clearfix { height:1%; }
4903-.ui-helper-clearfix { display:block; }
4904-/* end clearfix */
4905-.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
4906-
4907-
4908-/* Interaction Cues
4909-----------------------------------*/
4910-.ui-state-disabled { cursor: default !important; }
4911-
4912-
4913-/* Icons
4914-----------------------------------*/
4915-
4916-/* states and images */
4917-.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
4918-
4919-
4920-/* Misc visuals
4921-----------------------------------*/
4922-
4923-/* Overlays */
4924-.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }/* Accordion
4925-----------------------------------*/
4926-.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
4927-.ui-accordion .ui-accordion-li-fix { display: inline; }
4928-.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
4929-.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em 2.2em; }
4930-.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
4931-.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; }
4932-.ui-accordion .ui-accordion-content-active { display: block; }@import url("ui.core.css");
4933-
4934-@import url("ui.accordion.css");
4935-@import url("ui.datepicker.css");
4936-@import url("ui.dialog.css");
4937-@import url("ui.progressbar.css");
4938-@import url("ui.resizable.css");
4939-@import url("ui.slider.css");
4940-@import url("ui.tabs.css");
4941-/* Datepicker
4942-----------------------------------*/
4943-.ui-datepicker { width: 17em; padding: .2em .2em 0; }
4944-.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
4945-.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
4946-.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
4947-.ui-datepicker .ui-datepicker-prev { left:2px; }
4948-.ui-datepicker .ui-datepicker-next { right:2px; }
4949-.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
4950-.ui-datepicker .ui-datepicker-next-hover { right:1px; }
4951-.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
4952-.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
4953-.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; }
4954-.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
4955-.ui-datepicker select.ui-datepicker-month,
4956-.ui-datepicker select.ui-datepicker-year { width: 49%;}
4957-.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; }
4958-.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
4959-.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
4960-.ui-datepicker td { border: 0; padding: 1px; }
4961-.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
4962-.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
4963-.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
4964-.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
4965-
4966-/* with multiple calendars */
4967-.ui-datepicker.ui-datepicker-multi { width:auto; }
4968-.ui-datepicker-multi .ui-datepicker-group { float:left; }
4969-.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
4970-.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
4971-.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
4972-.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
4973-.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
4974-.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
4975-.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
4976-.ui-datepicker-row-break { clear:both; width:100%; }
4977-
4978-/* RTL support */
4979-.ui-datepicker-rtl { direction: rtl; }
4980-.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
4981-.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
4982-.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
4983-.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
4984-.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
4985-.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
4986-.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
4987-.ui-datepicker-rtl .ui-datepicker-group { float:right; }
4988-.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
4989-.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
4990-
4991-/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
4992-.ui-datepicker-cover {
4993- display: none; /*sorry for IE5*/
4994- display/**/: block; /*sorry for IE5*/
4995- position: absolute; /*must have*/
4996- z-index: -1; /*must have*/
4997- filter: mask(); /*must have*/
4998- top: -4px; /*must have*/
4999- left: -4px; /*must have*/
5000- width: 200px; /*must have*/
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches