Dropfin_Pricecountdown - Version 1.0.0

Version Notes

Dropfin Special Price Countdown

Download this release

Release Info

Developer Dropfin
Extension Dropfin_Pricecountdown
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

Files changed (27) hide show
  1. app/code/community/Dropfin/Pricecountdown/Helper/Data.php +85 -0
  2. app/code/community/Dropfin/Pricecountdown/Model/Style.php +59 -0
  3. app/code/community/Dropfin/Pricecountdown/etc/adminhtml.xml +66 -0
  4. app/code/community/Dropfin/Pricecountdown/etc/config.xml +86 -0
  5. app/code/community/Dropfin/Pricecountdown/etc/system.xml +193 -0
  6. app/design/frontend/base/default/layout/dropfin/pricecountdown.xml +87 -0
  7. app/design/frontend/base/default/template/dropfin/pricecountdown/catalog/product/list.phtml +361 -0
  8. app/design/frontend/base/default/template/dropfin/pricecountdown/catalog/product/view.phtml +164 -0
  9. app/design/frontend/rwd/default/layout/dropfin/pricecountdown.xml +87 -0
  10. app/design/frontend/rwd/default/template/dropfin/pricecountdown/catalog/product/list.phtml +428 -0
  11. app/design/frontend/rwd/default/template/dropfin/pricecountdown/catalog/product/view.phtml +164 -0
  12. app/etc/modules/Dropfin_Pricecountdown.xml +33 -0
  13. package.xml +18 -0
  14. skin/frontend/base/default/dropfin/pricecountdown/css/style.css +55 -0
  15. skin/frontend/base/default/dropfin/pricecountdown/type-1/css/jquery.countdown.css +55 -0
  16. skin/frontend/base/default/dropfin/pricecountdown/type-1/js/jquery.1.11.0.min.js +4 -0
  17. skin/frontend/base/default/dropfin/pricecountdown/type-1/js/jquery.countdown.js +885 -0
  18. skin/frontend/base/default/dropfin/pricecountdown/type-1/js/jquery.plugin.js +344 -0
  19. skin/frontend/base/default/dropfin/pricecountdown/type-2/css/timeTo.css +109 -0
  20. skin/frontend/base/default/dropfin/pricecountdown/type-2/js/jquery.1.11.0.min.js +4 -0
  21. skin/frontend/base/default/dropfin/pricecountdown/type-2/js/jquery.time-to.js +487 -0
  22. skin/frontend/base/default/dropfin/pricecountdown/type-2/js/jquery.time-to.min.js +10 -0
  23. skin/frontend/base/default/dropfin/pricecountdown/type-4/css/flipclock.css +492 -0
  24. skin/frontend/base/default/dropfin/pricecountdown/type-4/css/flipclock_for_plp.css +469 -0
  25. skin/frontend/base/default/dropfin/pricecountdown/type-4/js/flipclock.js +2782 -0
  26. skin/frontend/base/default/dropfin/pricecountdown/type-4/js/flipclock.min.js +2 -0
  27. skin/frontend/base/default/dropfin/pricecountdown/type-4/js/jquery.1.11.0.min.js +4 -0
app/code/community/Dropfin/Pricecountdown/Helper/Data.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+
26
+ class Dropfin_Pricecountdown_Helper_Data extends Mage_Core_Helper_Abstract {
27
+
28
+ const XML_PATH_ENABLED = 'dropfin_pricecountdown/configurations/enabled';
29
+ const XML_PATH_SHOW_PLP = 'dropfin_pricecountdown/configurations/show_plp';
30
+ const XML_PATH_SHOW_PLP_TITLE = 'dropfin_pricecountdown/configurations/show_plp_title';
31
+ const XML_PATH_PLP_TITLE = 'dropfin_pricecountdown/configurations/plp_title';
32
+ const XML_PATH_CLOCK_STYLE_PLP = 'dropfin_pricecountdown/configurations/clock_style_plp';
33
+ const XML_PATH_SHOW_PDP = 'dropfin_pricecountdown/configurations/show_pdp';
34
+ const XML_PATH_SHOW_PDP_TITLE = 'dropfin_pricecountdown/configurations/show_pdp_title';
35
+ const XML_PATH_PDP_TITLE = 'dropfin_pricecountdown/configurations/pdp_title';
36
+ const XML_PATH_CLOCK_STYLE_PDP = 'dropfin_pricecountdown/configurations/clock_style_pdp';
37
+
38
+ public function getStatus() {
39
+ return (int) Mage::getStoreConfig(self::XML_PATH_ENABLED);
40
+ }
41
+
42
+ public function getProductListPageStatus() {
43
+ return (int) Mage::getStoreConfig(self::XML_PATH_SHOW_PLP);
44
+ }
45
+
46
+ public function getPlpTitle() {
47
+ if(Mage::getStoreConfig(self::XML_PATH_SHOW_PLP_TITLE)) {
48
+ return Mage::getStoreConfig(self::XML_PATH_PLP_TITLE);
49
+ }
50
+ return false;
51
+ }
52
+
53
+ public function getProductListPageClockStyle() {
54
+ return (int) Mage::getStoreConfig(self::XML_PATH_CLOCK_STYLE_PLP);
55
+ }
56
+
57
+ public function getProductViewPageStatus() {
58
+ return (int) Mage::getStoreConfig(self::XML_PATH_SHOW_PDP);
59
+ }
60
+
61
+ public function getPdpTitle() {
62
+ if(Mage::getStoreConfig(self::XML_PATH_SHOW_PDP_TITLE)) {
63
+ return Mage::getStoreConfig(self::XML_PATH_PDP_TITLE);
64
+ }
65
+ return false;
66
+ }
67
+
68
+ public function getProductViewPageClockStyle() {
69
+ return (int) Mage::getStoreConfig(self::XML_PATH_CLOCK_STYLE_PDP);
70
+ }
71
+
72
+ public function validatePriceCountDown($fromdate, $todate, $specialPrice){
73
+
74
+ $currentDate = Mage::getModel('core/date')->date('Y-m-d h:i:s A');
75
+ if($specialPrice != 0 || $specialPrice) {
76
+ if($todate != null) {
77
+ if(strtotime($todate) >= strtotime($currentDate) && strtotime($fromdate) <= strtotime($currentDate)){
78
+ return true;
79
+ }
80
+ }
81
+ }
82
+ return false;
83
+
84
+ }
85
+ }
app/code/community/Dropfin/Pricecountdown/Model/Style.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+
26
+ class Dropfin_Pricecountdown_Model_Style
27
+ {
28
+
29
+ /**
30
+ * Options getter
31
+ *
32
+ * @return array
33
+ */
34
+ public function toOptionArray()
35
+ {
36
+ return array(
37
+ array('value' => 1, 'label' => Mage::helper('adminhtml')->__('Style - 1')),
38
+ array('value' => 2, 'label' => Mage::helper('adminhtml')->__('Style - 2')),
39
+ array('value' => 3, 'label' => Mage::helper('adminhtml')->__('Style - 3')),
40
+ array('value' => 4, 'label' => Mage::helper('adminhtml')->__('Style - 4'))
41
+ );
42
+ }
43
+
44
+ /**
45
+ * Get options in "key-value" format
46
+ *
47
+ * @return array
48
+ */
49
+ public function toArray()
50
+ {
51
+ return array(
52
+ 1 => Mage::helper('adminhtml')->__('Style - 1'),
53
+ 2 => Mage::helper('adminhtml')->__('Style - 2'),
54
+ 3 => Mage::helper('adminhtml')->__('Style - 3'),
55
+ 4 => Mage::helper('adminhtml')->__('Style - 4')
56
+ );
57
+ }
58
+
59
+ }
app/code/community/Dropfin/Pricecountdown/etc/adminhtml.xml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ -->
26
+ <config>
27
+ <menu>
28
+ <system>
29
+ <children>
30
+ <dropfin>
31
+ <title>Dropfin Extensions</title>
32
+ <sort_order>10</sort_order>
33
+ <children>
34
+ <dropfin_pricecountdown>
35
+ <title>Special Price Countdown</title>
36
+ <action>adminhtml/system_config/edit/section/dropfin_pricecountdown</action>
37
+ <sort_order>20</sort_order>
38
+ </dropfin_pricecountdown>
39
+ </children>
40
+ </dropfin>
41
+ </children>
42
+ </system>
43
+ </menu>
44
+ <acl>
45
+ <resources>
46
+ <all>
47
+ <title>Allow Everything</title>
48
+ </all>
49
+ <admin>
50
+ <children>
51
+ <system>
52
+ <children>
53
+ <config>
54
+ <children>
55
+ <dropfin_pricecountdown>
56
+ <title>Dropfin - Special Price Countdown</title>
57
+ </dropfin_pricecountdown>
58
+ </children>
59
+ </config>
60
+ </children>
61
+ </system>
62
+ </children>
63
+ </admin>
64
+ </resources>
65
+ </acl>
66
+ </config>
app/code/community/Dropfin/Pricecountdown/etc/config.xml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ -->
26
+ <config>
27
+ <modules>
28
+ <Dropfin_Pricecountdown>
29
+ <version>1.0.0</version>
30
+ </Dropfin_Pricecountdown>
31
+ </modules>
32
+ <default>
33
+ <dropfin_pricecountdown>
34
+
35
+ <configurations module="pricecountdown">
36
+ <enabled>1</enabled>
37
+ <show_plp>1</show_plp>
38
+ <show_plp_title>1</show_plp_title>
39
+ <plp_title>Offers End On:</plp_title>
40
+ <clock_style_plp>1</clock_style_plp>
41
+ <show_pdp>1</show_pdp>
42
+ <show_pdp_title>1</show_pdp_title>
43
+ <pdp_title>Offers End On:</pdp_title>
44
+ <clock_style_pdp>1</clock_style_pdp>
45
+ </configurations>
46
+
47
+ </dropfin_pricecountdown>
48
+ </default>
49
+ <frontend>
50
+ <routers>
51
+ <dropfin_pricecountdown>
52
+ <use>standard</use>
53
+ <args>
54
+ <module>Dropfin_Pricecountdown</module>
55
+ <frontName>pricecountdown</frontName>
56
+ </args>
57
+ </dropfin_pricecountdown>
58
+ </routers>
59
+ <layout>
60
+ <updates>
61
+ <dropfin_pricecountdown>
62
+ <file>dropfin/pricecountdown.xml</file>
63
+ </dropfin_pricecountdown>
64
+ </updates>
65
+ </layout>
66
+ </frontend>
67
+ <global>
68
+ <blocks>
69
+ <pricecountdown>
70
+ <class>Dropfin_Pricecountdown_Block</class>
71
+ </pricecountdown>
72
+ </blocks>
73
+
74
+ <helpers>
75
+ <dropfin_pricecountdown>
76
+ <class>Dropfin_Pricecountdown_Helper</class>
77
+ </dropfin_pricecountdown>
78
+ </helpers>
79
+
80
+ <models>
81
+ <pricecountdown>
82
+ <class>Dropfin_Pricecountdown_Model</class>
83
+ </pricecountdown>
84
+ </models>
85
+ </global>
86
+ </config>
app/code/community/Dropfin/Pricecountdown/etc/system.xml ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ -->
26
+ <config>
27
+ <tabs>
28
+ <dropfin translate="label">
29
+ <label>Dropfin</label>
30
+ <sort_order>150</sort_order>
31
+ </dropfin>
32
+ </tabs>
33
+ <sections>
34
+ <dropfin_pricecountdown translate="label">
35
+ <label>Special Price Countdown</label>
36
+ <tab>dropfin</tab>
37
+ <frontend_type>text</frontend_type>
38
+ <sort_order>20</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+ <groups>
43
+
44
+ <configurations translate="label">
45
+ <label>Configuration</label>
46
+ <frontend_type>text</frontend_type>
47
+ <sort_order>1</sort_order>
48
+ <show_in_default>1</show_in_default>
49
+ <show_in_website>1</show_in_website>
50
+ <show_in_store>1</show_in_store>
51
+ <fields>
52
+
53
+ <enabled translate="label">
54
+ <label>Enable</label>
55
+ <frontend_type>select</frontend_type>
56
+ <source_model>adminhtml/system_config_source_yesno</source_model>
57
+ <sort_order>1</sort_order>
58
+ <show_in_default>1</show_in_default>
59
+ <show_in_website>1</show_in_website>
60
+ <show_in_store>1</show_in_store>
61
+ </enabled>
62
+
63
+ <show_plp translate="label">
64
+ <label>Show Clock in Product List Page</label>
65
+ <frontend_type>select</frontend_type>
66
+ <source_model>adminhtml/system_config_source_yesno</source_model>
67
+ <sort_order>2</sort_order>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>1</show_in_store>
71
+ <depends>
72
+ <enabled>1</enabled>
73
+ </depends>
74
+ <validate>required-entry</validate>
75
+ </show_plp>
76
+
77
+ <show_plp_title translate="label">
78
+ <label>Show Clock Title</label>
79
+ <frontend_type>select</frontend_type>
80
+ <source_model>adminhtml/system_config_source_yesno</source_model>
81
+ <sort_order>3</sort_order>
82
+ <comment>Show Clock Title in Product List Page</comment>
83
+ <show_in_default>1</show_in_default>
84
+ <show_in_website>1</show_in_website>
85
+ <show_in_store>1</show_in_store>
86
+ <depends>
87
+ <enabled>1</enabled>
88
+ <show_plp>1</show_plp>
89
+ </depends>
90
+ <validate>required-entry</validate>
91
+ </show_plp_title>
92
+
93
+ <plp_title translate="label">
94
+ <label>Title</label>
95
+ <frontend_type>text</frontend_type>
96
+ <sort_order>4</sort_order>
97
+ <comment>Title will be displayed in Product List Page</comment>
98
+ <show_in_default>1</show_in_default>
99
+ <show_in_website>1</show_in_website>
100
+ <show_in_store>1</show_in_store>
101
+ <depends>
102
+ <enabled>1</enabled>
103
+ <show_plp>1</show_plp>
104
+ <show_plp_title>1</show_plp_title>
105
+ </depends>
106
+ <validate>required-entry</validate>
107
+ </plp_title>
108
+
109
+ <clock_style_plp translate="label">
110
+ <label>Clock Style</label>
111
+ <frontend_type>select</frontend_type>
112
+ <source_model>pricecountdown/style</source_model>
113
+ <sort_order>5</sort_order>
114
+ <comment>Clock Style for Product List Page</comment>
115
+ <show_in_default>1</show_in_default>
116
+ <show_in_website>1</show_in_website>
117
+ <show_in_store>1</show_in_store>
118
+ <depends>
119
+ <enabled>1</enabled>
120
+ <show_plp>1</show_plp>
121
+ </depends>
122
+ <validate>required-entry</validate>
123
+ </clock_style_plp>
124
+
125
+ <show_pdp translate="label">
126
+ <label>Show Clock in Product View Page</label>
127
+ <frontend_type>select</frontend_type>
128
+ <source_model>adminhtml/system_config_source_yesno</source_model>
129
+ <sort_order>6</sort_order>
130
+ <show_in_default>1</show_in_default>
131
+ <show_in_website>1</show_in_website>
132
+ <show_in_store>1</show_in_store>
133
+ <depends>
134
+ <enabled>1</enabled>
135
+ </depends>
136
+ <validate>required-entry</validate>
137
+ </show_pdp>
138
+
139
+ <show_pdp_title translate="label">
140
+ <label>Show Clock Title</label>
141
+ <frontend_type>select</frontend_type>
142
+ <source_model>adminhtml/system_config_source_yesno</source_model>
143
+ <sort_order>7</sort_order>
144
+ <comment>Show Clock Title in Product View Page</comment>
145
+ <show_in_default>1</show_in_default>
146
+ <show_in_website>1</show_in_website>
147
+ <show_in_store>1</show_in_store>
148
+ <depends>
149
+ <enabled>1</enabled>
150
+ <show_pdp>1</show_pdp>
151
+ </depends>
152
+ <validate>required-entry</validate>
153
+ </show_pdp_title>
154
+
155
+ <pdp_title translate="label">
156
+ <label>Title</label>
157
+ <frontend_type>text</frontend_type>
158
+ <sort_order>8</sort_order>
159
+ <comment>Title will be displayed in Product View Page</comment>
160
+ <show_in_default>1</show_in_default>
161
+ <show_in_website>1</show_in_website>
162
+ <show_in_store>1</show_in_store>
163
+ <depends>
164
+ <enabled>1</enabled>
165
+ <show_pdp>1</show_pdp>
166
+ <show_pdp_title>1</show_pdp_title>
167
+ </depends>
168
+ <validate>required-entry</validate>
169
+ </pdp_title>
170
+
171
+ <clock_style_pdp translate="label">
172
+ <label>Clock Style</label>
173
+ <frontend_type>select</frontend_type>
174
+ <source_model>pricecountdown/style</source_model>
175
+ <sort_order>9</sort_order>
176
+ <comment>Clock Style for Product View Page</comment>
177
+ <show_in_default>1</show_in_default>
178
+ <show_in_website>1</show_in_website>
179
+ <show_in_store>1</show_in_store>
180
+ <depends>
181
+ <enabled>1</enabled>
182
+ <show_pdp>1</show_pdp>
183
+ </depends>
184
+ <validate>required-entry</validate>
185
+ </clock_style_pdp>
186
+
187
+ </fields>
188
+ </configurations>
189
+
190
+ </groups>
191
+ </dropfin_pricecountdown>
192
+ </sections>
193
+ </config>
app/design/frontend/base/default/layout/dropfin/pricecountdown.xml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ -->
26
+
27
+ <layout version="1.0.0">
28
+ <catalog_category_default translate="label">
29
+ <label>Catalog Product List</label>
30
+ <reference name="head">
31
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
32
+ </reference>
33
+ <reference name="product_list">
34
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
35
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
36
+ </action>
37
+ </reference>
38
+ </catalog_category_default>
39
+
40
+ <catalog_category_layered translate="label">
41
+ <label>Catalog Product List</label>
42
+ <reference name="head">
43
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
44
+ </reference>
45
+ <reference name="product_list">
46
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
47
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
48
+ </action>
49
+ </reference>
50
+ </catalog_category_layered>
51
+
52
+ <catalogsearch_advanced_result translate="label">
53
+ <label>Catalog Product List</label>
54
+ <reference name="head">
55
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
56
+ </reference>
57
+ <reference name="search_result_list">
58
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
59
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
60
+ </action>
61
+ </reference>
62
+ </catalogsearch_advanced_result>
63
+
64
+ <catalogsearch_result_index translate="label">
65
+ <label>Catalog Product List</label>
66
+ <reference name="head">
67
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
68
+ </reference>
69
+ <reference name="search_result_list">
70
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
71
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
72
+ </action>
73
+ </reference>
74
+ </catalogsearch_result_index>
75
+
76
+ <catalog_product_view translate="label">
77
+ <label>Catalog Product View</label>
78
+ <reference name="head">
79
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
80
+ </reference>
81
+ <reference name="product.info.addto">
82
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
83
+ <template>dropfin/pricecountdown/catalog/product/view.phtml</template>
84
+ </action>
85
+ </reference>
86
+ </catalog_product_view>
87
+ </layout>
app/design/frontend/base/default/template/dropfin/pricecountdown/catalog/product/list.phtml ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ $priceCountdownHelper = $this->helper('dropfin_pricecountdown');
38
+ ?>
39
+ <?php if(!$_productCollection->count()): ?>
40
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
41
+ <?php else: ?>
42
+
43
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1
44
+ || $priceCountdownHelper->getProductListPageClockStyle() == 2
45
+ || $priceCountdownHelper->getProductListPageClockStyle() == 3
46
+ || $priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
47
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.1.11.0.min.js');?>"></script>
48
+ <?php } ?>
49
+
50
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1) { ?>
51
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/css/jquery.countdown.css');?>">
52
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.plugin.js');?>"></script>
53
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.countdown.js');?>"></script>
54
+
55
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 2
56
+ || $priceCountdownHelper->getProductListPageClockStyle() == 3 ) { ?>
57
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/css/timeTo.css');?>">
58
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.time-to.js');?>"></script>
59
+
60
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
61
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/css/flipclock_for_plp.css');?>">
62
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/js/flipclock.js');?>"></script>
63
+ <?php } ?>
64
+
65
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1
66
+ || $priceCountdownHelper->getProductListPageClockStyle() == 2
67
+ || $priceCountdownHelper->getProductListPageClockStyle() == 3
68
+ || $priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
69
+ <script type="text/javascript">
70
+ jQuery.noConflict();
71
+ function setCountdown(endTime, no, type) {
72
+ if(type == 1) {
73
+
74
+ jQuery(function($) {
75
+ $('#countdown_'+no).countdown({until: endTime});
76
+ });
77
+
78
+ } else if(type == 2) {
79
+
80
+ jQuery(function($) {
81
+ $('#countdown_'+no).timeTo({
82
+ timeTo: endTime,
83
+ displayDays: 2,
84
+ theme: "white",
85
+ displayCaptions: true,
86
+ fontSize: 17,
87
+ captionSize: 9
88
+ });
89
+ });
90
+
91
+ } else if(type == 3) {
92
+
93
+ jQuery(function($) {
94
+ $('#countdown_'+no).timeTo({
95
+ timeTo: endTime,
96
+ displayDays: 2,
97
+ theme: "black",
98
+ displayCaptions: true,
99
+ fontSize: 17,
100
+ captionSize: 9
101
+ });
102
+ });
103
+
104
+ } else if(type == 4) {
105
+
106
+ jQuery(function($) {
107
+ var clock;
108
+ clock = $('#countdown_'+no).FlipClock({
109
+ clockFace: 'DailyCounter',
110
+ autoStart: false
111
+ });
112
+ clock.setTime(endTime);
113
+ clock.setCountdown(true);
114
+ clock.start();
115
+ });
116
+
117
+ }
118
+ }
119
+ </script>
120
+ <?php } ?>
121
+
122
+ <div class="category-products">
123
+ <?php echo $this->getToolbarHtml() ?>
124
+ <?php // List mode ?>
125
+ <?php if($this->getMode()!='grid'): ?>
126
+ <?php $_iterator = 0; ?>
127
+ <ol class="products-list" id="products-list">
128
+ <?php $c = 1; $i = 0; foreach ($_productCollection as $_product): ?>
129
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
130
+ <?php // Product Image ?>
131
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
132
+ <?php // Product description ?>
133
+ <div class="product-shop">
134
+ <div class="f-fix">
135
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
136
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
137
+ <?php if($_product->getRatingSummary()): ?>
138
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
139
+ <?php endif; ?>
140
+ <?php echo $this->getPriceHtml($_product, true) ?>
141
+
142
+ <!-- Price countdown start-->
143
+ <?php
144
+ if($priceCountdownHelper->getStatus()
145
+ && $priceCountdownHelper->getProductListPageStatus()) {
146
+
147
+ $fromDate = date("Y-m-d", strtotime($_product->getSpecialFromDate())).' 00:00:00 AM';
148
+ $toDate = date("Y-m-d", strtotime($_product->getSpecialToDate())).' 11:59:59 PM';
149
+ if($priceCountdownHelper->validatePriceCountDown($fromDate, $toDate, $_product->getSpecialPrice())) {
150
+ ?>
151
+ <?php
152
+ if($priceCountdownHelper->getPlpTitle()) {
153
+ ?>
154
+ <h5 class="plp-clock-title" style="clear: both;"><?php echo $priceCountdownHelper->getPlpTitle();?></h5>
155
+ <?php
156
+ }
157
+ ?>
158
+ <div id="countdown_<?php echo $c;?>" class="plp-countdown" style="clear: both;"></div>
159
+
160
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1) { ?>
161
+ <script script="text/javascript">
162
+ jQuery(function($) {
163
+ var currentTime = Date.parse(new Date());
164
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
165
+ var diff = currentTime - serverTime;
166
+ var endDate = new Date('<?php echo $toDate;?>');
167
+ endDate = Date.parse(endDate)+diff;
168
+ endDate = new Date(endDate);
169
+ setCountdown(endDate, <?php echo $c;?>, 1)
170
+ });
171
+ </script>
172
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 2) { ?>
173
+ <script script="text/javascript">
174
+ jQuery(function($) {
175
+ var currentTime = Date.parse(new Date());
176
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
177
+ var diff = currentTime - serverTime;
178
+ var endDate = new Date('<?php echo $toDate;?>');
179
+ endDate = Date.parse(endDate)+diff;
180
+ endDate = new Date(endDate);
181
+ setCountdown(endDate, <?php echo $c;?>, 2);
182
+ });
183
+ </script>
184
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 3) { ?>
185
+ <script script="text/javascript">
186
+ jQuery(function($) {
187
+ var currentTime = Date.parse(new Date());
188
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
189
+ var diff = currentTime - serverTime;
190
+ var endDate = new Date('<?php echo $toDate;?>');
191
+ endDate = Date.parse(endDate)+diff;
192
+ endDate = new Date(endDate);
193
+ setCountdown(endDate, <?php echo $c;?>, 3);
194
+ });
195
+ </script>
196
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
197
+ <?php
198
+ $currentTime = strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true));
199
+ $diff = strtotime($toDate) - $currentTime;
200
+ if($diff > 0) {
201
+ ?>
202
+ <script script="text/javascript">
203
+ setCountdown(<?php echo $diff;?>, <?php echo $c;?>, 4);
204
+ </script>
205
+ <?php
206
+ }
207
+ ?>
208
+ <?php } ?>
209
+
210
+ <?php
211
+ $c++;
212
+ }
213
+ }
214
+ ?>
215
+ <!-- Price countdown end-->
216
+
217
+ <?php if($_product->isSaleable()): ?>
218
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
219
+ <?php else: ?>
220
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
221
+ <?php endif; ?>
222
+ <div class="desc std">
223
+ <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
224
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
225
+ </div>
226
+ <ul class="add-to-links">
227
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
228
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
229
+ <?php endif; ?>
230
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
231
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
232
+ <?php endif; ?>
233
+ </ul>
234
+ </div>
235
+ </div>
236
+ </li>
237
+ <?php endforeach; ?>
238
+ </ol>
239
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
240
+
241
+ <?php else: ?>
242
+
243
+ <?php // Grid Mode ?>
244
+
245
+ <?php $_collectionSize = $_productCollection->count() ?>
246
+ <?php $_columnCount = $this->getColumnCount(); ?>
247
+ <?php $c = 1; $i = 0; foreach ($_productCollection as $_product): ?>
248
+ <?php if ($i++%$_columnCount==0): ?>
249
+ <ul class="products-grid">
250
+ <?php endif ?>
251
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
252
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
253
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
254
+ <?php if($_product->getRatingSummary()): ?>
255
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
256
+ <?php endif; ?>
257
+ <?php echo $this->getPriceHtml($_product, true) ?>
258
+
259
+ <!-- Price countdown start-->
260
+ <?php
261
+ if($priceCountdownHelper->getStatus()
262
+ && $priceCountdownHelper->getProductListPageStatus()) {
263
+
264
+ $fromDate = date("Y-m-d", strtotime($_product->getSpecialFromDate())).' 00:00:00 AM';
265
+ $toDate = date("Y-m-d", strtotime($_product->getSpecialToDate())).' 11:59:59 PM';
266
+ if($priceCountdownHelper->validatePriceCountDown($fromDate, $toDate, $_product->getSpecialPrice())) {
267
+ ?>
268
+ <?php
269
+ if($priceCountdownHelper->getPlpTitle()) {
270
+ ?>
271
+ <h5 class="plp-clock-title" style="clear: both;"><?php echo $priceCountdownHelper->getPlpTitle();?></h5>
272
+ <?php
273
+ }
274
+ ?>
275
+ <div id="countdown_<?php echo $c;?>" class="plp-countdown" style="clear: both;"></div>
276
+
277
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1) { ?>
278
+ <script script="text/javascript">
279
+ jQuery(function($) {
280
+ var currentTime = Date.parse(new Date());
281
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
282
+ var diff = currentTime - serverTime;
283
+ var endDate = new Date('<?php echo $toDate;?>');
284
+ endDate = Date.parse(endDate)+diff;
285
+ endDate = new Date(endDate);
286
+ setCountdown(endDate, <?php echo $c;?>, 1)
287
+ });
288
+ </script>
289
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 2) { ?>
290
+ <script script="text/javascript">
291
+ jQuery(function($) {
292
+ var currentTime = Date.parse(new Date());
293
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
294
+ var diff = currentTime - serverTime;
295
+ var endDate = new Date('<?php echo $toDate;?>');
296
+ endDate = Date.parse(endDate)+diff;
297
+ endDate = new Date(endDate);
298
+ setCountdown(endDate, <?php echo $c;?>, 2);
299
+ });
300
+ </script>
301
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 3) { ?>
302
+ <script script="text/javascript">
303
+ jQuery(function($) {
304
+ var currentTime = Date.parse(new Date());
305
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
306
+ var diff = currentTime - serverTime;
307
+ var endDate = new Date('<?php echo $toDate;?>');
308
+ endDate = Date.parse(endDate)+diff;
309
+ endDate = new Date(endDate);
310
+ setCountdown(endDate, <?php echo $c;?>, 3);
311
+ });
312
+ </script>
313
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
314
+ <?php
315
+ $currentTime = strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true));
316
+ $diff = strtotime($toDate) - $currentTime;
317
+ if($diff > 0) {
318
+ ?>
319
+ <script script="text/javascript">
320
+ setCountdown(<?php echo $diff;?>, <?php echo $c;?>, 4);
321
+ </script>
322
+ <?php
323
+ }
324
+ ?>
325
+ <?php } ?>
326
+
327
+ <?php
328
+ $c++;
329
+ }
330
+ }
331
+ ?>
332
+ <!-- Price countdown end-->
333
+
334
+ <div class="actions">
335
+ <?php if($_product->isSaleable()): ?>
336
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
337
+ <?php else: ?>
338
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
339
+ <?php endif; ?>
340
+ <ul class="add-to-links">
341
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
342
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
343
+ <?php endif; ?>
344
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
345
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
346
+ <?php endif; ?>
347
+ </ul>
348
+ </div>
349
+ </li>
350
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
351
+ </ul>
352
+ <?php endif ?>
353
+ <?php endforeach ?>
354
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
355
+ <?php endif; ?>
356
+
357
+ <div class="toolbar-bottom">
358
+ <?php echo $this->getToolbarHtml() ?>
359
+ </div>
360
+ </div>
361
+ <?php endif; ?>
app/design/frontend/base/default/template/dropfin/pricecountdown/catalog/product/view.phtml ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ ?>
26
+
27
+ <?php
28
+ $count = 1;
29
+ $_product = $this->getProduct();
30
+ ?>
31
+
32
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
33
+ <ul class="add-to-links">
34
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
35
+ <li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, '<?php echo $_wishlistSubmitUrl ?>'); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
36
+ <?php endif; ?>
37
+ <?php
38
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
39
+ ?>
40
+ <?php if ($_compareUrl) : ?>
41
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
42
+ <?php endif; ?>
43
+ </ul>
44
+
45
+ <?php
46
+ $priceCountdownHelper = $this->helper('dropfin_pricecountdown');
47
+
48
+ if($priceCountdownHelper->getStatus()
49
+ && $priceCountdownHelper->getProductViewPageStatus()) {
50
+
51
+ $fromDate = date("Y-m-d", strtotime($_product->getSpecialFromDate())).' 00:00:00 AM';
52
+ $toDate = date("Y-m-d", strtotime($_product->getSpecialToDate())).' 11:59:59 PM';
53
+
54
+ if($priceCountdownHelper->validatePriceCountDown($fromDate, $toDate, $_product->getSpecialPrice())) {
55
+
56
+ if($priceCountdownHelper->getPdpTitle()) { ?>
57
+ <h5 class="pdp-clock-title"><?php echo $priceCountdownHelper->getPdpTitle();?></h5>
58
+ <?php
59
+ }
60
+
61
+ if($priceCountdownHelper->getProductViewPageClockStyle() == 1) {
62
+ ?>
63
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/css/jquery.countdown.css');?>">
64
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.1.11.0.min.js');?>"></script>
65
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.plugin.js');?>"></script>
66
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.countdown.js');?>"></script>
67
+ <div id="countdown_1" class="pdp-clock-1"></div>
68
+ <?php $strtotime = strtotime($toDate); ?>
69
+ <script script="text/javascript">
70
+ jQuery.noConflict();
71
+ jQuery(function($) {
72
+ var currentTime = Date.parse(new Date());
73
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
74
+ var diff = currentTime - serverTime;
75
+ var endDate = new Date('<?php echo $toDate;?>');
76
+ endDate = Date.parse(endDate)+diff;
77
+ endDate = new Date(endDate);
78
+ $('#countdown_1').countdown({until: endDate});
79
+ });
80
+ </script>
81
+
82
+ <?php
83
+ } else if($priceCountdownHelper->getProductViewPageClockStyle() == 2) {
84
+ ?>
85
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/css/timeTo.css');?>">
86
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.1.11.0.min.js');?>"></script>
87
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.time-to.js');?>"></script>
88
+ <div id="countdown_2" class="pdp-clock-2"></div>
89
+ <script script="text/javascript">
90
+ jQuery.noConflict();
91
+ jQuery(function($) {
92
+ var currentTime = Date.parse(new Date());
93
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
94
+ var diff = currentTime - serverTime;
95
+ var endDate = new Date('<?php echo $toDate;?>');
96
+ endDate = Date.parse(endDate)+diff;
97
+ endDate = new Date(endDate);
98
+ $('#countdown_2').timeTo({
99
+ timeTo: endDate,
100
+ displayDays: 2,
101
+ theme: "white",
102
+ displayCaptions: true,
103
+ fontSize: 34,
104
+ captionSize: 14
105
+ });
106
+ });
107
+ </script>
108
+ <?php
109
+ } else if($priceCountdownHelper->getProductViewPageClockStyle() == 3) {
110
+ ?>
111
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/css/timeTo.css');?>">
112
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.1.11.0.min.js');?>"></script>
113
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.time-to.js');?>"></script>
114
+ <div id="countdown_3" class="pdp-clock-3"></div>
115
+ <script script="text/javascript">
116
+ jQuery.noConflict();
117
+ jQuery(function($) {
118
+ var currentTime = Date.parse(new Date());
119
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
120
+ var diff = currentTime - serverTime;
121
+ var endDate = new Date('<?php echo $toDate;?>');
122
+ endDate = Date.parse(endDate)+diff;
123
+ endDate = new Date(endDate);
124
+ $('#countdown_3').timeTo({
125
+ timeTo: endDate,
126
+ displayDays: 2,
127
+ theme: "black",
128
+ displayCaptions: true,
129
+ fontSize: 34,
130
+ captionSize: 14
131
+ });
132
+ });
133
+ </script>
134
+ <?php
135
+ } else if($priceCountdownHelper->getProductViewPageClockStyle() == 4) {
136
+ $currentTime = strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true));
137
+ $diff = strtotime($toDate) - $currentTime;
138
+ if($diff > 0) {
139
+ ?>
140
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/css/flipclock.css');?>">
141
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/js/jquery.1.11.0.min.js');?>"></script>
142
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/js/flipclock.js');?>"></script>
143
+ <div id="countdown_4" class="pdp-clock-4 base-theme"></div>
144
+ <script script="text/javascript">
145
+ jQuery.noConflict();
146
+ jQuery(function($) {
147
+ var clock;
148
+ clock = $('#countdown_4').FlipClock({
149
+ clockFace: 'DailyCounter',
150
+ autoStart: false
151
+ });
152
+
153
+ clock.setTime(<?php echo $diff;?>);
154
+ clock.setCountdown(true);
155
+ clock.start();
156
+ });
157
+ </script>
158
+ <?php
159
+ }
160
+ }
161
+
162
+ }
163
+
164
+ }
app/design/frontend/rwd/default/layout/dropfin/pricecountdown.xml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ -->
26
+
27
+ <layout version="1.0.0">
28
+ <catalog_category_default translate="label">
29
+ <label>Catalog Product List</label>
30
+ <reference name="head">
31
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
32
+ </reference>
33
+ <reference name="product_list">
34
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
35
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
36
+ </action>
37
+ </reference>
38
+ </catalog_category_default>
39
+
40
+ <catalog_category_layered translate="label">
41
+ <label>Catalog Product List</label>
42
+ <reference name="head">
43
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
44
+ </reference>
45
+ <reference name="product_list">
46
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
47
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
48
+ </action>
49
+ </reference>
50
+ </catalog_category_layered>
51
+
52
+ <catalogsearch_advanced_result translate="label">
53
+ <label>Catalog Product List</label>
54
+ <reference name="head">
55
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
56
+ </reference>
57
+ <reference name="search_result_list">
58
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
59
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
60
+ </action>
61
+ </reference>
62
+ </catalogsearch_advanced_result>
63
+
64
+ <catalogsearch_result_index translate="label">
65
+ <label>Catalog Product List</label>
66
+ <reference name="head">
67
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
68
+ </reference>
69
+ <reference name="search_result_list">
70
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
71
+ <template>dropfin/pricecountdown/catalog/product/list.phtml</template>
72
+ </action>
73
+ </reference>
74
+ </catalogsearch_result_index>
75
+
76
+ <catalog_product_view translate="label">
77
+ <label>Catalog Product View</label>
78
+ <reference name="head">
79
+ <action method="addItem"><type>skin_css</type><name>dropfin/pricecountdown/css/style.css</name></action>
80
+ </reference>
81
+ <reference name="product.info.addto">
82
+ <action method="setTemplate" ifconfig="dropfin_pricecountdown/configurations/enabled">
83
+ <template>dropfin/pricecountdown/catalog/product/view.phtml</template>
84
+ </action>
85
+ </reference>
86
+ </catalog_product_view>
87
+ </layout>
app/design/frontend/rwd/default/template/dropfin/pricecountdown/catalog/product/list.phtml ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category design
22
+ * @package rwd_default
23
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ /* @var $this Mage_Catalog_Block_Product_List */
34
+ ?>
35
+ <?php
36
+ $_productCollection=$this->getLoadedProductCollection();
37
+ $_helper = $this->helper('catalog/output');
38
+ $priceCountdownHelper = $this->helper('dropfin_pricecountdown');
39
+ ?>
40
+ <?php if(!$_productCollection->count()): ?>
41
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
42
+ <?php else: ?>
43
+
44
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1
45
+ || $priceCountdownHelper->getProductListPageClockStyle() == 2
46
+ || $priceCountdownHelper->getProductListPageClockStyle() == 3
47
+ || $priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
48
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.1.11.0.min.js');?>"></script>
49
+ <?php } ?>
50
+
51
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1) { ?>
52
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/css/jquery.countdown.css');?>">
53
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.plugin.js');?>"></script>
54
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.countdown.js');?>"></script>
55
+
56
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 2
57
+ || $priceCountdownHelper->getProductListPageClockStyle() == 3 ) { ?>
58
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/css/timeTo.css');?>">
59
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.time-to.js');?>"></script>
60
+
61
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
62
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/css/flipclock_for_plp.css');?>">
63
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/js/flipclock.js');?>"></script>
64
+ <?php } ?>
65
+
66
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1
67
+ || $priceCountdownHelper->getProductListPageClockStyle() == 2
68
+ || $priceCountdownHelper->getProductListPageClockStyle() == 3
69
+ || $priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
70
+ <script type="text/javascript">
71
+ jQuery.noConflict();
72
+ function setCountdown(endTime, no, type) {
73
+ if(type == 1) {
74
+
75
+ jQuery(function($) {
76
+ $('#countdown_'+no).countdown({until: endTime});
77
+ });
78
+
79
+ } else if(type == 2) {
80
+
81
+ jQuery(function($) {
82
+ $('#countdown_'+no).timeTo({
83
+ timeTo: endTime,
84
+ displayDays: 2,
85
+ theme: "white",
86
+ displayCaptions: true,
87
+ fontSize: 17,
88
+ captionSize: 9
89
+ });
90
+ });
91
+
92
+ } else if(type == 3) {
93
+
94
+ jQuery(function($) {
95
+ $('#countdown_'+no).timeTo({
96
+ timeTo: endTime,
97
+ displayDays: 2,
98
+ theme: "black",
99
+ displayCaptions: true,
100
+ fontSize: 17,
101
+ captionSize: 9
102
+ });
103
+ });
104
+
105
+ } else if(type == 4) {
106
+
107
+ jQuery(function($) {
108
+ var clock;
109
+ clock = $('#countdown_'+no).FlipClock({
110
+ clockFace: 'DailyCounter',
111
+ autoStart: false
112
+ });
113
+ clock.setTime(endTime);
114
+ clock.setCountdown(true);
115
+ clock.start();
116
+ });
117
+
118
+ }
119
+ }
120
+ </script>
121
+ <?php } ?>
122
+
123
+ <div class="category-products">
124
+ <?php echo $this->getToolbarHtml() ?>
125
+ <?php // List mode ?>
126
+ <?php if($this->getMode()!='grid'): ?>
127
+ <?php $_iterator = 0; ?>
128
+ <ol class="products-list" id="products-list">
129
+ <?php $c = 1; $i = 0; foreach ($_productCollection as $_product): ?>
130
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
131
+ <?php // Product Image ?>
132
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
133
+ <?php /* Based on the native RWD styling, product images are displayed at a max of ~400px wide when viewed on a
134
+ one column page layout with four product columns from a 1280px viewport. For bandwidth reasons,
135
+ we are going to serve a 300px image, as it will look fine at 400px and most of the times, the image
136
+ will be displayed at a smaller size (eg, if two column are being used or viewport is smaller than 1280px).
137
+ This $_imgSize value could even be decreased further, based on the page layout
138
+ (one column, two column, three column) and number of product columns. */ ?>
139
+ <?php $_imgSize = 300; ?>
140
+ <img id="product-collection-image-<?php echo $_product->getId(); ?>"
141
+ src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->keepFrame(false)->resize($_imgSize); ?>"
142
+ alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
143
+ </a>
144
+ <?php // Product description ?>
145
+ <div class="product-shop">
146
+ <div class="f-fix">
147
+ <div class="product-primary">
148
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
149
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
150
+ <?php if($_product->getRatingSummary()): ?>
151
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
152
+ <?php endif; ?>
153
+ <?php
154
+ // Provides extra blocks on which to hang some features for products in the list
155
+ // Features providing UI elements targeting this block will display directly below the product name
156
+ if ($this->getChild('name.after')) {
157
+ $_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
158
+ foreach ($_nameAfterChildren as $_nameAfterChildName) {
159
+ $_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
160
+ $_nameAfterChild->setProduct($_product);
161
+ echo $_nameAfterChild->toHtml();
162
+ }
163
+ }
164
+ ?>
165
+ </div>
166
+ <div class="product-secondary">
167
+ <?php echo $this->getPriceHtml($_product, true) ?>
168
+ </div>
169
+
170
+ <!-- Price countdown start-->
171
+ <?php
172
+ if($priceCountdownHelper->getStatus()
173
+ && $priceCountdownHelper->getProductListPageStatus()) {
174
+
175
+ $fromDate = date("Y-m-d", strtotime($_product->getSpecialFromDate())).' 00:00:00 AM';
176
+ $toDate = date("Y-m-d", strtotime($_product->getSpecialToDate())).' 11:59:59 PM';
177
+ if($priceCountdownHelper->validatePriceCountDown($fromDate, $toDate, $_product->getSpecialPrice())) {
178
+ ?>
179
+ <?php
180
+ if($priceCountdownHelper->getPlpTitle()) {
181
+ ?>
182
+ <h5 class="plp-clock-title" style="clear: both;"><?php echo $priceCountdownHelper->getPlpTitle();?></h5>
183
+ <?php
184
+ }
185
+ ?>
186
+ <div id="countdown_<?php echo $c;?>" class="plp-countdown" style="clear: both;"></div>
187
+
188
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1) { ?>
189
+ <script script="text/javascript">
190
+ jQuery(function($) {
191
+ var currentTime = Date.parse(new Date());
192
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
193
+ var diff = currentTime - serverTime;
194
+ var endDate = new Date('<?php echo $toDate;?>');
195
+ endDate = Date.parse(endDate)+diff;
196
+ endDate = new Date(endDate);
197
+ setCountdown(endDate, <?php echo $c;?>, 1)
198
+ });
199
+ </script>
200
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 2) { ?>
201
+ <script script="text/javascript">
202
+ jQuery(function($) {
203
+ var currentTime = Date.parse(new Date());
204
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
205
+ var diff = currentTime - serverTime;
206
+ var endDate = new Date('<?php echo $toDate;?>');
207
+ endDate = Date.parse(endDate)+diff;
208
+ endDate = new Date(endDate);
209
+ setCountdown(endDate, <?php echo $c;?>, 2);
210
+ });
211
+ </script>
212
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 3) { ?>
213
+ <script script="text/javascript">
214
+ jQuery(function($) {
215
+ var currentTime = Date.parse(new Date());
216
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
217
+ var diff = currentTime - serverTime;
218
+ var endDate = new Date('<?php echo $toDate;?>');
219
+ endDate = Date.parse(endDate)+diff;
220
+ endDate = new Date(endDate);
221
+ setCountdown(endDate, <?php echo $c;?>, 3);
222
+ });
223
+ </script>
224
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
225
+ <?php
226
+ $currentTime = strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true));
227
+ $diff = strtotime($toDate) - $currentTime;
228
+ if($diff > 0) {
229
+ ?>
230
+ <script script="text/javascript">
231
+ setCountdown(<?php echo $diff;?>, <?php echo $c;?>, 4);
232
+ </script>
233
+ <?php
234
+ }
235
+ ?>
236
+ <?php } ?>
237
+
238
+ <?php
239
+ $c++;
240
+ }
241
+ }
242
+ ?>
243
+ <!-- Price countdown end-->
244
+
245
+ <div class="product-secondary">
246
+ <?php if(!$_product->canConfigure() && $_product->isSaleable()): ?>
247
+ <p class="action"><button type="button" title="<?php echo $this->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
248
+ <?php elseif($_product->getStockItem() && $_product->getStockItem()->getIsInStock()): ?>
249
+ <p class="action"><a title="<?php echo $this->quoteEscape($this->__('View Details')) ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a></p>
250
+ <?php else: ?>
251
+ <p class="action availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
252
+ <?php endif; ?>
253
+ <ul class="add-to-links">
254
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
255
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
256
+ <?php endif; ?>
257
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
258
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
259
+ <?php endif; ?>
260
+ </ul>
261
+ </div>
262
+ <div class="desc std">
263
+ <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
264
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </li>
269
+ <?php endforeach; ?>
270
+ </ol>
271
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
272
+
273
+ <?php else: ?>
274
+
275
+ <?php // Grid Mode ?>
276
+
277
+ <?php $_collectionSize = $_productCollection->count() ?>
278
+ <?php $_columnCount = $this->getColumnCount(); ?>
279
+ <ul class="products-grid products-grid--max-<?php echo $_columnCount; ?>-col">
280
+ <?php $c = 1; $i = 0; foreach ($_productCollection as $_product): ?>
281
+ <?php /*if ($i++%$_columnCount==0): ?>
282
+ <?php endif*/ ?>
283
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
284
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
285
+ <?php $_imgSize = 210; ?>
286
+ <img id="product-collection-image-<?php echo $_product->getId(); ?>"
287
+ src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSize); ?>"
288
+ alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
289
+ </a>
290
+ <div class="product-info">
291
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
292
+ <?php
293
+ // Provides extra blocks on which to hang some features for products in the list
294
+ // Features providing UI elements targeting this block will display directly below the product name
295
+ if ($this->getChild('name.after')) {
296
+ $_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
297
+ foreach ($_nameAfterChildren as $_nameAfterChildName) {
298
+ $_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
299
+ $_nameAfterChild->setProduct($_product);
300
+ echo $_nameAfterChild->toHtml();
301
+ }
302
+ }
303
+ ?>
304
+ <?php echo $this->getPriceHtml($_product, true) ?>
305
+
306
+ <!-- Price countdown start-->
307
+ <?php
308
+ if($priceCountdownHelper->getStatus()
309
+ && $priceCountdownHelper->getProductListPageStatus()) {
310
+
311
+ $fromDate = date("Y-m-d", strtotime($_product->getSpecialFromDate())).' 00:00:00 AM';
312
+ $toDate = date("Y-m-d", strtotime($_product->getSpecialToDate())).' 11:59:59 PM';
313
+ if($priceCountdownHelper->validatePriceCountDown($fromDate, $toDate, $_product->getSpecialPrice())) {
314
+ ?>
315
+ <?php
316
+ if($priceCountdownHelper->getPlpTitle()) {
317
+ ?>
318
+ <h5 class="plp-clock-title"><?php echo $priceCountdownHelper->getPlpTitle();?></h5>
319
+ <?php
320
+ }
321
+ ?>
322
+ <div id="countdown_<?php echo $c;?>" class="plp-countdown"></div>
323
+
324
+ <?php if($priceCountdownHelper->getProductListPageClockStyle() == 1) { ?>
325
+ <script script="text/javascript">
326
+ jQuery(function($) {
327
+ var currentTime = Date.parse(new Date());
328
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
329
+ var diff = currentTime - serverTime;
330
+ var endDate = new Date('<?php echo $toDate;?>');
331
+ endDate = Date.parse(endDate)+diff;
332
+ endDate = new Date(endDate);
333
+ setCountdown(endDate, <?php echo $c;?>, 1)
334
+ });
335
+ </script>
336
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 2) { ?>
337
+ <script script="text/javascript">
338
+ jQuery(function($) {
339
+ var currentTime = Date.parse(new Date());
340
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
341
+ var diff = currentTime - serverTime;
342
+ var endDate = new Date('<?php echo $toDate;?>');
343
+ endDate = Date.parse(endDate)+diff;
344
+ endDate = new Date(endDate);
345
+ setCountdown(endDate, <?php echo $c;?>, 2);
346
+ });
347
+ </script>
348
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 3) { ?>
349
+ <script script="text/javascript">
350
+ jQuery(function($) {
351
+ var currentTime = Date.parse(new Date());
352
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
353
+ var diff = currentTime - serverTime;
354
+ var endDate = new Date('<?php echo $toDate;?>');
355
+ endDate = Date.parse(endDate)+diff;
356
+ endDate = new Date(endDate);
357
+ setCountdown(endDate, <?php echo $c;?>, 3);
358
+ });
359
+ </script>
360
+ <?php } else if($priceCountdownHelper->getProductListPageClockStyle() == 4) { ?>
361
+ <?php
362
+ $currentTime = strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true));
363
+ $diff = strtotime($toDate) - $currentTime;
364
+ if($diff > 0) {
365
+ ?>
366
+ <script script="text/javascript">
367
+ setCountdown(<?php echo $diff;?>, <?php echo $c;?>, 4);
368
+ </script>
369
+ <?php
370
+ }
371
+ ?>
372
+ <?php } ?>
373
+
374
+ <?php
375
+ $c++;
376
+ }
377
+ }
378
+ ?>
379
+ <!-- Price countdown end-->
380
+
381
+ <?php if($_product->getRatingSummary()): ?>
382
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
383
+ <?php endif; ?>
384
+ <div class="actions">
385
+ <?php if(!$_product->canConfigure() && $_product->isSaleable()): ?>
386
+ <button type="button" title="<?php echo $this->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
387
+ <?php elseif($_product->getStockItem() && $_product->getStockItem()->getIsInStock()): ?>
388
+ <a title="<?php echo $this->quoteEscape($this->__('View Details')) ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a>
389
+ <?php else: ?>
390
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
391
+ <?php endif; ?>
392
+ <ul class="add-to-links">
393
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
394
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
395
+ <?php endif; ?>
396
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
397
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
398
+ <?php endif; ?>
399
+ </ul>
400
+ </div>
401
+ </div>
402
+ </li>
403
+ <?php /*if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
404
+ <?php endif*/ ?>
405
+ <?php endforeach ?>
406
+ </ul>
407
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
408
+
409
+ <?php endif; ?>
410
+
411
+ <div class="toolbar-bottom">
412
+ <?php echo $this->getToolbarHtml() ?>
413
+ </div>
414
+ </div>
415
+
416
+ <?php endif; ?>
417
+ <?php
418
+ // Provides a block where additional page components may be attached, primarily good for in-page JavaScript
419
+ if ($this->getChild('after')) {
420
+ $_afterChildren = $this->getChild('after')->getSortedChildren();
421
+ foreach ($_afterChildren as $_afterChildName) {
422
+ $_afterChild = $this->getChild('after')->getChild($_afterChildName);
423
+ //set product collection on after blocks
424
+ $_afterChild->setProductCollection($_productCollection);
425
+ echo $_afterChild->toHtml();
426
+ }
427
+ }
428
+ ?>
app/design/frontend/rwd/default/template/dropfin/pricecountdown/catalog/product/view.phtml ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ ?>
26
+
27
+ <?php
28
+ $count = 1;
29
+ $_product = $this->getProduct();
30
+ ?>
31
+
32
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
33
+ <ul class="add-to-links">
34
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
35
+ <li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, '<?php echo $_wishlistSubmitUrl ?>'); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
36
+ <?php endif; ?>
37
+ <?php
38
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
39
+ ?>
40
+ <?php if ($_compareUrl) : ?>
41
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
42
+ <?php endif; ?>
43
+ </ul>
44
+
45
+ <?php
46
+ $priceCountdownHelper = $this->helper('dropfin_pricecountdown');
47
+
48
+ if($priceCountdownHelper->getStatus()
49
+ && $priceCountdownHelper->getProductViewPageStatus()) {
50
+
51
+ $fromDate = date("Y-m-d", strtotime($_product->getSpecialFromDate())).' 00:00:00 AM';
52
+ $toDate = date("Y-m-d", strtotime($_product->getSpecialToDate())).' 11:59:59 PM';
53
+
54
+ if($priceCountdownHelper->validatePriceCountDown($fromDate, $toDate, $_product->getSpecialPrice())) {
55
+
56
+ if($priceCountdownHelper->getPdpTitle()) { ?>
57
+ <h5 class="pdp-clock-title"><?php echo $priceCountdownHelper->getPdpTitle();?></h5>
58
+ <?php
59
+ }
60
+
61
+ if($priceCountdownHelper->getProductViewPageClockStyle() == 1) {
62
+ ?>
63
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/css/jquery.countdown.css');?>">
64
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.1.11.0.min.js');?>"></script>
65
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.plugin.js');?>"></script>
66
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-1/js/jquery.countdown.js');?>"></script>
67
+ <div id="countdown_1" class="pdp-clock-1"></div>
68
+ <?php $strtotime = strtotime($toDate); ?>
69
+ <script script="text/javascript">
70
+ jQuery.noConflict();
71
+ jQuery(function($) {
72
+ var currentTime = Date.parse(new Date());
73
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
74
+ var diff = currentTime - serverTime;
75
+ var endDate = new Date('<?php echo $toDate;?>');
76
+ endDate = Date.parse(endDate)+diff;
77
+ endDate = new Date(endDate);
78
+ $('#countdown_1').countdown({until: endDate});
79
+ });
80
+ </script>
81
+
82
+ <?php
83
+ } else if($priceCountdownHelper->getProductViewPageClockStyle() == 2) {
84
+ ?>
85
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/css/timeTo.css');?>">
86
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.1.11.0.min.js');?>"></script>
87
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.time-to.js');?>"></script>
88
+ <div id="countdown_2" class="pdp-clock-2"></div>
89
+ <script script="text/javascript">
90
+ jQuery.noConflict();
91
+ jQuery(function($) {
92
+ var currentTime = Date.parse(new Date());
93
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
94
+ var diff = currentTime - serverTime;
95
+ var endDate = new Date('<?php echo $toDate;?>');
96
+ endDate = Date.parse(endDate)+diff;
97
+ endDate = new Date(endDate);
98
+ $('#countdown_2').timeTo({
99
+ timeTo: endDate,
100
+ displayDays: 2,
101
+ theme: "white",
102
+ displayCaptions: true,
103
+ fontSize: 48,
104
+ captionSize: 14
105
+ });
106
+ });
107
+ </script>
108
+ <?php
109
+ } else if($priceCountdownHelper->getProductViewPageClockStyle() == 3) {
110
+ ?>
111
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/css/timeTo.css');?>">
112
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.1.11.0.min.js');?>"></script>
113
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-2/js/jquery.time-to.js');?>"></script>
114
+ <div id="countdown_3" class="pdp-clock-3"></div>
115
+ <script script="text/javascript">
116
+ jQuery.noConflict();
117
+ jQuery(function($) {
118
+ var currentTime = Date.parse(new Date());
119
+ var serverTime = Date.parse(new Date("<?php echo Date("m/d/y h:i:s A", strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true))); ?>"));
120
+ var diff = currentTime - serverTime;
121
+ var endDate = new Date('<?php echo $toDate;?>');
122
+ endDate = Date.parse(endDate)+diff;
123
+ endDate = new Date(endDate);
124
+ $('#countdown_3').timeTo({
125
+ timeTo: endDate,
126
+ displayDays: 2,
127
+ theme: "black",
128
+ displayCaptions: true,
129
+ fontSize: 48,
130
+ captionSize: 14
131
+ });
132
+ });
133
+ </script>
134
+ <?php
135
+ } else if($priceCountdownHelper->getProductViewPageClockStyle() == 4) {
136
+ $currentTime = strtotime(Mage_Core_Model_Locale::date(null, null, "en_US", true));
137
+ $diff = strtotime($toDate) - $currentTime;
138
+ if($diff > 0) {
139
+ ?>
140
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/css/flipclock.css');?>">
141
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/js/jquery.1.11.0.min.js');?>"></script>
142
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('dropfin/pricecountdown/type-4/js/flipclock.js');?>"></script>
143
+ <div id="countdown_4" class="pdp-clock-4"></div>
144
+ <script script="text/javascript">
145
+ jQuery.noConflict();
146
+ jQuery(function($) {
147
+ var clock;
148
+ clock = $('#countdown_4').FlipClock({
149
+ clockFace: 'DailyCounter',
150
+ autoStart: false
151
+ });
152
+
153
+ clock.setTime(<?php echo $diff;?>);
154
+ clock.setCountdown(true);
155
+ clock.start();
156
+ });
157
+ </script>
158
+ <?php
159
+ }
160
+ }
161
+
162
+ }
163
+
164
+ }
app/etc/modules/Dropfin_Pricecountdown.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dropfin
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade
19
+ * this extension to newer versions in the future.
20
+ *
21
+ * @category Dropfin
22
+ * @package Special Price Countdown
23
+ * @copyright Copyright (c) Dropfin (http://www.dropfin.com)
24
+ */
25
+ -->
26
+ <config>
27
+ <modules>
28
+ <Dropfin_Pricecountdown>
29
+ <active>true</active>
30
+ <codePool>community</codePool>
31
+ </Dropfin_Pricecountdown>
32
+ </modules>
33
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Dropfin_Pricecountdown</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v.3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Dropfin Special Price Countdown</summary>
10
+ <description>Dropfin Special Price Countdown</description>
11
+ <notes>Dropfin Special Price Countdown</notes>
12
+ <authors><author><name>Dropfin</name><user>Dropfin</user><email>t.balamani88@gmail.com</email></author></authors>
13
+ <date>2016-02-28</date>
14
+ <time>10:01:38</time>
15
+ <contents><target name="magecommunity"><dir name="Dropfin"><dir name="Pricecountdown"><dir name="Helper"><file name="Data.php" hash="a1f47d02709bbddec81c929dc6a4ec6f"/></dir><dir name="Model"><file name="Style.php" hash="7e8e98beed5394e7a271011b9065ae76"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7d48be17682590273dbb415f83708d39"/><file name="config.xml" hash="ed3c178ad78138a1490d80a79b146f6b"/><file name="system.xml" hash="3ee8ab43f1247972ef31f24f614f93db"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="dropfin"><file name="pricecountdown.xml" hash="cab6d61edbb86ac8837d7483d397a829"/></dir></dir><dir name="template"><dir name="dropfin"><dir name="pricecountdown"><dir><dir name="catalog"><dir name="product"><file name="list.phtml" hash="6b9c6aee106195ae77a35e3764b53212"/><file name="view.phtml" hash="ed5a8fd5d067e0b7fd6da26048f1b0dd"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><dir name="dropfin"><file name="pricecountdown.xml" hash="cab6d61edbb86ac8837d7483d397a829"/></dir></dir><dir name="template"><dir name="dropfin"><dir name="pricecountdown"><dir><dir name="catalog"><dir name="product"><file name="list.phtml" hash="994e0076d0a1eb593f3ecb3c4e2d5ba9"/><file name="view.phtml" hash="384cbe74fc3ca56ea51023ac9d3045f0"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dropfin_Pricecountdown.xml" hash="18672867c6d0423bd87007788cda4b2c"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="dropfin"><dir name="pricecountdown"><dir><dir name="css"><file name="style.css" hash="696d7d54a038fba4f0c62fd2b30cba5c"/></dir><dir name="type-1"><dir name="css"><file name="jquery.countdown.css" hash="8d73a36e4308977e258c18f152439647"/></dir><dir name="js"><file name="jquery.1.11.0.min.js" hash="8fc25e27d42774aeae6edbc0a18b72aa"/><file name="jquery.countdown.js" hash="f52ce269d6b735d0b75a2129023bdb83"/><file name="jquery.plugin.js" hash="5089653f43d0a3970aae2bed9a31666a"/></dir></dir><dir name="type-2"><dir name="css"><file name="timeTo.css" hash="e77530930c9cd61e28c241cee89f41b1"/></dir><dir name="js"><file name="jquery.1.11.0.min.js" hash="8fc25e27d42774aeae6edbc0a18b72aa"/><file name="jquery.time-to.js" hash="eaea22ef63a2119b503d41e18973c0e8"/><file name="jquery.time-to.min.js" hash="2a0604133c1450cdcfbdb1175b6069b5"/></dir></dir><dir name="type-4"><dir name="css"><file name="flipclock.css" hash="662c233f8b3fc5ca742fcea6aaf0160e"/><file name="flipclock_for_plp.css" hash="e87abd05353ebbf5949c87b17af40e09"/></dir><dir name="js"><file name="flipclock.js" hash="6c23f805cbdf2c0c14a7e30ad977a829"/><file name="flipclock.min.js" hash="b9d7742384bdf912c51b6a1b5d674f7a"/><file name="jquery.1.11.0.min.js" hash="8fc25e27d42774aeae6edbc0a18b72aa"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>
skin/frontend/base/default/dropfin/pricecountdown/css/style.css ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .plp-clock-title {
2
+ text-align: left;
3
+ }
4
+
5
+ .plp-countdown {
6
+ width: auto;
7
+ margin: 5px 0px;
8
+ overflow: hidden;
9
+ }
10
+
11
+ .plp-countdown .countdown-amount {
12
+ font-size: 130%;
13
+ font-weight: bold;
14
+ }
15
+
16
+ .plp-countdown .countdown-period {
17
+ font-size: 100%;
18
+ }
19
+
20
+ .plp-countdown .countdown-descr {
21
+ display: block;
22
+ width: 70%;
23
+ }
24
+
25
+ .plp-countdown .countdown-show3 .countdown-section {
26
+ width: 32%;
27
+ }
28
+
29
+ .plp-countdown .countdown-show4 .countdown-section {
30
+ width: 23.5%;
31
+ }
32
+
33
+ .pdp-clock-title {
34
+ text-align: left; clear: both;
35
+ }
36
+
37
+ .pdp-clock-1, .pdp-clock-2, .pdp-clock-3, .pdp-clock-4 {
38
+ width: auto;
39
+ clear: both;
40
+ padding: 10px;
41
+ margin: 10px 0px;
42
+ overflow: hidden;
43
+ }
44
+
45
+ .pdp-clock-4 {
46
+ padding: 0px;
47
+ padding-bottom: 50px;
48
+ margin: 0px;
49
+ margin-bottom: 10px;
50
+ overflow: hidden;
51
+ }
52
+
53
+ .pdp-clock-4 .flip-clock-divider .flip-clock-label {
54
+ font-size: 14px;
55
+ }
skin/frontend/base/default/dropfin/pricecountdown/type-1/css/jquery.countdown.css ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* jQuery Countdown styles 2.0.0. */
2
+ .is-countdown {
3
+ border: 1px solid #ccc;
4
+ background-color: #ececec;
5
+ }
6
+ .countdown-rtl {
7
+ direction: rtl;
8
+ }
9
+ .countdown-holding span {
10
+ color: #888;
11
+ }
12
+ .countdown-row {
13
+ clear: both;
14
+ width: 100%;
15
+ padding: 0px 2px;
16
+ text-align: center;
17
+ }
18
+ .countdown-show1 .countdown-section {
19
+ width: 98%;
20
+ }
21
+ .countdown-show2 .countdown-section {
22
+ width: 48%;
23
+ }
24
+ .countdown-show3 .countdown-section {
25
+ width: 32.5%;
26
+ }
27
+ .countdown-show4 .countdown-section {
28
+ width: 24.5%;
29
+ }
30
+ .countdown-show5 .countdown-section {
31
+ width: 19.5%;
32
+ }
33
+ .countdown-show6 .countdown-section {
34
+ width: 16.25%;
35
+ }
36
+ .countdown-show7 .countdown-section {
37
+ width: 14%;
38
+ }
39
+ .countdown-section {
40
+ display: block;
41
+ float: left;
42
+ font-size: 75%;
43
+ text-align: center;
44
+ }
45
+ .countdown-amount {
46
+ font-size: 350%;
47
+ }
48
+ .countdown-period {
49
+ display: block;
50
+ font-size: 140%;
51
+ }
52
+ .countdown-descr {
53
+ display: block;
54
+ width: 100%;
55
+ }
skin/frontend/base/default/dropfin/pricecountdown/type-1/js/jquery.1.11.0.min.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1);else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L="undefined",M;for(M in n(l))break;l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f
3
+ }}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},W=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a>",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=$.test(e)?this.mouseHooks:Z.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||z),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||z,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==db()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===db()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=z.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===L&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?bb:cb):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submitBubbles||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?b.form:void 0;c&&!n._data(c,"submitBubbles")&&(n.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),n._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.changeBubbles||(n.event.special.change={setup:function(){return Y.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),n.event.simulate("change",this,a,!0)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;Y.test(b.nodeName)&&!n._data(b,"changeBubbles")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a,!0)}),n._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!Y.test(this.nodeName)}}),l.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=cb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return n().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=cb),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});function eb(a){var b=fb.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var fb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gb=/ jQuery\d+="(?:null|\d+)"/g,hb=new RegExp("<(?:"+fb+")[\\s/>]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/<tbody/i,mb=/<|&#?\w+;/,nb=/<(?:script|style|link)/i,ob=/checked\s*(?:[^=]|=\s*.checked.)/i,pb=/^$|\/(?:java|ecma)script/i,qb=/^true\/(.*)/,rb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,sb={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if("object"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1></$2>")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?"<table>"!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0;if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")));i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Db[0].contentWindow||Db[0].contentDocument).document,b.write(),b.close(),c=Fb(a,b),Db.detach()),Eb[a]=c),c}!function(){var a,b,c=z.createElement("div"),d="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],a.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(a.style.opacity),l.cssFloat=!!a.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===c.style.backgroundClip,a=c=null,l.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=z.getElementsByTagName("body")[0],!a)return;f="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",c=z.createElement("div"),e=z.createElement("div"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==L&&(e.style.cssText=d+";width:1px;padding:1px;zoom:1",e.innerHTML="<div></div>",e.firstChild.style.width="5px",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var Hb=/^margin/,Ib=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Jb,Kb,Lb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Jb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),Ib.test(g)&&Hb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):z.documentElement.currentStyle&&(Jb=function(a){return a.currentStyle},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ib.test(g)&&!Lb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Mb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h=z.createElement("div"),i="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",j="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";h.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",b=h.getElementsByTagName("a")[0],b.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(b.style.opacity),l.cssFloat=!!b.style.cssFloat,h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,b=h=null,n.extend(l,{reliableHiddenOffsets:function(){if(null!=c)return c;var a,b,d,e=z.createElement("div"),f=z.getElementsByTagName("body")[0];if(f)return e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=z.createElement("div"),a.style.cssText=i,f.appendChild(a).appendChild(e),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=e.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",d=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",c=d&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,c},boxSizing:function(){return null==d&&k(),d},boxSizingReliable:function(){return null==e&&k(),e},pixelPosition:function(){return null==f&&k(),f},reliableMarginRight:function(){var b,c,d,e;if(null==g&&a.getComputedStyle){if(b=z.getElementsByTagName("body")[0],!b)return;c=z.createElement("div"),d=z.createElement("div"),c.style.cssText=i,b.appendChild(c).appendChild(d),e=d.appendChild(z.createElement("div")),e.style.cssText=d.style.cssText=j,e.style.marginRight=e.style.width="0",d.style.width="1px",g=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return g}});function k(){var b,c,h=z.getElementsByTagName("body")[0];h&&(b=z.createElement("div"),c=z.createElement("div"),b.style.cssText=i,h.appendChild(b).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",n.swap(h,null!=h.style.zoom?{zoom:1}:{},function(){d=4===c.offsetWidth}),e=!0,f=!1,g=!0,a.getComputedStyle&&(f="1%"!==(a.getComputedStyle(c,null)||{}).top,e="4px"===(a.getComputedStyle(c,null)||{width:"4px"}).width),h.removeChild(b),c=h=null)}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Nb=/alpha\([^)]*\)/i,Ob=/opacity\s*=\s*([^)]*)/,Pb=/^(none|table(?!-c[ea]).+)/,Qb=new RegExp("^("+T+")(.*)$","i"),Rb=new RegExp("^([+-])=("+T+")","i"),Sb={position:"absolute",visibility:"hidden",display:"block"},Tb={letterSpacing:0,fontWeight:400},Ub=["Webkit","O","Moz","ms"];function Vb(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ub.length;while(e--)if(b=Ub[e]+c,b in a)return b;return d}function Wb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=n._data(d,"olddisplay",Gb(d.nodeName)))):f[g]||(e=V(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Xb(a,b,c){var d=Qb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Yb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Zb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Jb(a),g=l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Kb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ib.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Yb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Kb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=Vb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Rb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]="",i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Vb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Kb(a,b,d)),"normal"===f&&b in Tb&&(f=Tb[b]),""===c||c?(e=parseFloat(f),c===!0||n.isNumeric(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&Pb.test(n.css(a,"display"))?n.swap(a,Sb,function(){return Zb(a,b,d)}):Zb(a,b,d):void 0},set:function(a,c,d){var e=d&&Jb(a);return Xb(a,c,d?Yb(a,b,d,l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Ob.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Nb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Nb.test(f)?f.replace(Nb,e):f+" "+e)}}),n.cssHooks.marginRight=Mb(l.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},Kb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Hb.test(a)||(n.cssHooks[a+b].set=Xb)}),n.fn.extend({css:function(a,b){return W(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Jb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)
4
+ },a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function $b(a,b,c,d,e){return new $b.prototype.init(a,b,c,d,e)}n.Tween=$b,$b.prototype={constructor:$b,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=$b.propHooks[this.prop];return a&&a.get?a.get(this):$b.propHooks._default.get(this)},run:function(a){var b,c=$b.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):$b.propHooks._default.set(this),this}},$b.prototype.init.prototype=$b.prototype,$b.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},$b.propHooks.scrollTop=$b.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=$b.prototype.init,n.fx.step={};var _b,ac,bc=/^(?:toggle|show|hide)$/,cc=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),dc=/queueHooks$/,ec=[jc],fc={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=cc.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&cc.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function gc(){return setTimeout(function(){_b=void 0}),_b=n.now()}function hc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=U[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function ic(a,b,c){for(var d,e=(fc[b]||[]).concat(fc["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function jc(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k=Gb(a.nodeName),"none"===j&&(j=k),"inline"===j&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==k?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],bc.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}if(!n.isEmptyObject(o)){r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=ic(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function kc(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function lc(a,b,c){var d,e,f=0,g=ec.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=_b||gc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:_b||gc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(kc(k,j.opts.specialEasing);g>f;f++)if(d=ec[f].call(j,a,k,j.opts))return d;return n.map(k,ic,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(lc,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],fc[c]=fc[c]||[],fc[c].unshift(b)},prefilter:function(a,b){b?ec.unshift(a):ec.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=lc(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&dc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(hc(b,!0),a,d,e)}}),n.each({slideDown:hc("show"),slideUp:hc("hide"),slideToggle:hc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(_b=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),_b=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ac||(ac=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(ac),ac=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=z.createElement("div");e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=e.getElementsByTagName("a")[0],c=z.createElement("select"),d=c.appendChild(z.createElement("option")),b=e.getElementsByTagName("input")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==e.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=d.selected,l.enctype=!!z.createElement("form").enctype,c.disabled=!0,l.optDisabled=!d.disabled,b=z.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value,a=b=c=d=e=null}();var mc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(mc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var nc,oc,pc=n.expr.attrHandle,qc=/^(?:checked|selected)$/i,rc=l.getSetAttribute,sc=l.input;n.fn.extend({attr:function(a,b){return W(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===L?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?oc:nc)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?sc&&rc||!qc.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(rc?c:d)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),oc={set:function(a,b,c){return b===!1?n.removeAttr(a,c):sc&&rc||!qc.test(c)?a.setAttribute(!rc&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=pc[b]||n.find.attr;pc[b]=sc&&rc||!qc.test(b)?function(a,b,d){var e,f;return d||(f=pc[b],pc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,pc[b]=f),e}:function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),sc&&rc||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):nc&&nc.set(a,b,c)}}),rc||(nc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},pc.id=pc.name=pc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:nc.set},n.attrHooks.contenteditable={set:function(a,b,c){nc.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var tc=/^(?:input|select|textarea|button|object)$/i,uc=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return W(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):tc.test(a.nodeName)||uc.test(a.nodeName)&&a.href?0:-1}}}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var vc=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===L||"boolean"===c)&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||a===!1?"":n._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(vc," ").indexOf(b)>=0)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var wc=n.now(),xc=/\?/,yc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(yc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var zc,Ac,Bc=/#.*$/,Cc=/([?&])_=[^&]*/,Dc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ec=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fc=/^(?:GET|HEAD)$/,Gc=/^\/\//,Hc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ic={},Jc={},Kc="*/".concat("*");try{Ac=location.href}catch(Lc){Ac=z.createElement("a"),Ac.href="",Ac=Ac.href}zc=Hc.exec(Ac.toLowerCase())||[];function Mc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nc(a,b,c,d){var e={},f=a===Jc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Oc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Pc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Qc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ac,type:"GET",isLocal:Ec.test(zc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Oc(Oc(a,n.ajaxSettings),b):Oc(n.ajaxSettings,a)},ajaxPrefilter:Mc(Ic),ajaxTransport:Mc(Jc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Dc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||Ac)+"").replace(Bc,"").replace(Gc,zc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(F)||[""],null==k.crossDomain&&(c=Hc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===zc[1]&&c[2]===zc[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(zc[3]||("http:"===zc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),Nc(Ic,k,b,v),2===t)return v;h=k.global,h&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Fc.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(xc.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Cc.test(e)?e.replace(Cc,"$1_="+wc++):e+(xc.test(e)?"&":"?")+"_="+wc++)),k.ifModified&&(n.lastModified[e]&&v.setRequestHeader("If-Modified-Since",n.lastModified[e]),n.etag[e]&&v.setRequestHeader("If-None-Match",n.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Kc+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Nc(Jc,k,b,v)){v.readyState=1,h&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Pc(k,v,c)),u=Qc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(n.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!l.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||n.css(a,"display"))},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Rc=/%20/g,Sc=/\[\]$/,Tc=/\r?\n/g,Uc=/^(?:submit|button|image|reset|file)$/i,Vc=/^(?:input|select|textarea|keygen)/i;function Wc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Sc.test(a)?d(a,e):Wc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Wc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Wc(c,a[c],b,e);return d.join("&").replace(Rc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Vc.test(this.nodeName)&&!Uc.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Tc,"\r\n")}}):{name:b.name,value:c.replace(Tc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$c()||_c()}:$c;var Xc=0,Yc={},Zc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Yc)Yc[a](void 0,!0)}),l.cors=!!Zc&&"withCredentials"in Zc,Zc=l.ajax=!!Zc,Zc&&n.ajaxTransport(function(a){if(!a.crossDomain||l.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Yc[g],b=void 0,f.onreadystatechange=n.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function $c(){try{return new a.XMLHttpRequest}catch(b){}}function _c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=z.head||n("head")[0]||z.documentElement;return{send:function(d,e){b=z.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ad=[],bd=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ad.pop()||n.expando+"_"+wc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bd.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&bd.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bd,"$1"+e):b.jsonp!==!1&&(b.url+=(xc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ad.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||z;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var cd=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&cd)return cd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&n.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});
skin/frontend/base/default/dropfin/pricecountdown/type-1/js/jquery.countdown.js ADDED
@@ -0,0 +1,885 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* http://keith-wood.name/countdown.html
2
+ Countdown for jQuery v2.0.2.
3
+ Written by Keith Wood (kbwood{at}iinet.com.au) January 2008.
4
+ Available under the MIT (http://keith-wood.name/licence.html) license.
5
+ Please attribute the author if you use it. */
6
+
7
+ (function($) { // Hide scope, no $ conflict
8
+
9
+ var pluginName = 'countdown';
10
+
11
+ var Y = 0; // Years
12
+ var O = 1; // Months
13
+ var W = 2; // Weeks
14
+ var D = 3; // Days
15
+ var H = 4; // Hours
16
+ var M = 5; // Minutes
17
+ var S = 6; // Seconds
18
+
19
+ /** Create the countdown plugin.
20
+ <p>Sets an element to show the time remaining until a given instant.</p>
21
+ <p>Expects HTML like:</p>
22
+ <pre>&lt;div>&lt;/div></pre>
23
+ <p>Provide inline configuration like:</p>
24
+ <pre>&lt;div data-countdown="name: 'value'">&lt;/div></pre>
25
+ @module Countdown
26
+ @augments JQPlugin
27
+ @example $(selector).countdown({until: +300}) */
28
+ $.JQPlugin.createPlugin({
29
+
30
+ /** The name of the plugin. */
31
+ name: pluginName,
32
+
33
+ /** Countdown expiry callback.
34
+ Triggered when the countdown expires.
35
+ @callback expiryCallback */
36
+
37
+ /** Countdown server synchronisation callback.
38
+ Triggered when the countdown is initialised.
39
+ @callback serverSyncCallback
40
+ @return {Date} The current date/time on the server as expressed in the local timezone. */
41
+
42
+ /** Countdown tick callback.
43
+ Triggered on every <code>tickInterval</code> ticks of the countdown.
44
+ @callback tickCallback
45
+ @param periods {number[]} The breakdown by period (years, months, weeks, days,
46
+ hours, minutes, seconds) of the time remaining/passed. */
47
+
48
+ /** Countdown which labels callback.
49
+ Triggered when the countdown is being display to determine which set of labels
50
+ (<code>labels</code>, <code>labels1</code>, ...) are to be used for the current period value.
51
+ @callback whichLabelsCallback
52
+ @param num {number} The current period value.
53
+ @return {number} The suffix for the label set to use. */
54
+
55
+ /** Default settings for the plugin.
56
+ @property until {Date|number|string} The date/time to count down to, or number of seconds
57
+ offset from now, or string of amounts and units for offset(s) from now:
58
+ 'Y' years, 'O' months, 'W' weeks, 'D' days, 'H' hours, 'M' minutes, 'S' seconds.
59
+ @example until: new Date(2013, 12-1, 25, 13, 30)
60
+ until: +300
61
+ until: '+1O -2D'
62
+ @property [since] {Date|number|string} The date/time to count up from, or
63
+ number of seconds offset from now, or string for unit offset(s):
64
+ 'Y' years, 'O' months, 'W' weeks, 'D' days, 'H' hours, 'M' minutes, 'S' seconds.
65
+ @example since: new Date(2013, 1-1, 1)
66
+ since: -300
67
+ since: '-1O +2D'
68
+ @property [timezone=null] {number} The timezone (hours or minutes from GMT) for the target times,
69
+ or null for client local timezone.
70
+ @example timezone: +10
71
+ timezone: -60
72
+ @property [serverSync=null] {serverSyncCallback} A function to retrieve the current server time
73
+ for synchronisation.
74
+ @property [format='dHMS'] {string} The format for display - upper case for always, lower case only if non-zero,
75
+ 'Y' years, 'O' months, 'W' weeks, 'D' days, 'H' hours, 'M' minutes, 'S' seconds.
76
+ @property [layout=''] {string} Build your own layout for the countdown.
77
+ @example layout: '{d<}{dn} {dl}{d>} {hnn}:{mnn}:{snn}'
78
+ @property [compact=false] {boolean} True to display in a compact format, false for an expanded one.
79
+ @property [padZeroes=false] {boolean} True to add leading zeroes
80
+ @property [significant=0] {number} The number of periods with non-zero values to show, zero for all.
81
+ @property [description=''] {string} The description displayed for the countdown.
82
+ @property [expiryUrl=''] {string} A URL to load upon expiry, replacing the current page.
83
+ @property [expiryText=''] {string} Text to display upon expiry, replacing the countdown. This may be HTML.
84
+ @property [alwaysExpire=false] {boolean} True to trigger <code>onExpiry</code> even if target time has passed.
85
+ @property [onExpiry=null] {expiryCallback} Callback when the countdown expires -
86
+ receives no parameters and <code>this</code> is the containing division.
87
+ @example onExpiry: function() {
88
+ ...
89
+ }
90
+ @property [onTick=null] {tickCallback} Callback when the countdown is updated -
91
+ receives <code>number[7]</code> being the breakdown by period
92
+ (years, months, weeks, days, hours, minutes, seconds - based on
93
+ <code>format</code>) and <code>this</code> is the containing division.
94
+ @example onTick: function(periods) {
95
+ var secs = $.countdown.periodsToSeconds(periods);
96
+ if (secs < 300) { // Last five minutes
97
+ ...
98
+ }
99
+ }
100
+ @property [tickInterval=1] {number} The interval (seconds) between <code>onTick</code> callbacks. */
101
+ defaultOptions: {
102
+ until: null,
103
+ since: null,
104
+ timezone: null,
105
+ serverSync: null,
106
+ format: 'dHMS',
107
+ layout: '',
108
+ compact: false,
109
+ padZeroes: false,
110
+ significant: 0,
111
+ description: '',
112
+ expiryUrl: '',
113
+ expiryText: '',
114
+ alwaysExpire: false,
115
+ onExpiry: null,
116
+ onTick: null,
117
+ tickInterval: 1
118
+ },
119
+
120
+ /** Localisations for the plugin.
121
+ Entries are objects indexed by the language code ('' being the default US/English).
122
+ Each object has the following attributes.
123
+ @property [labels=['Years','Months','Weeks','Days','Hours','Minutes','Seconds']] {string[]}
124
+ The display texts for the counter periods.
125
+ @property [labels1=['Year','Month','Week','Day','Hour','Minute','Second']] {string[]}
126
+ The display texts for the counter periods if they have a value of 1.
127
+ Add other <code>labels<em>n</em></code> attributes as necessary to
128
+ cater for other numeric idiosyncrasies of the localisation.
129
+ @property [compactLabels=['y','m','w','d']] {string[]} The compact texts for the counter periods.
130
+ @property [whichLabels=null] {whichLabelsCallback} A function to determine which
131
+ <code>labels<em>n</em></code> to use.
132
+ @example whichLabels: function(num) {
133
+ return (num > 1 ? 0 : 1);
134
+ }
135
+ @property [digits=['0','1',...,'9']] {number[]} The digits to display (0-9).
136
+ @property [timeSeparator=':'] {string} Separator for time periods in the compact layout.
137
+ @property [isRTL=false] {boolean} True for right-to-left languages, false for left-to-right. */
138
+ regionalOptions: { // Available regional settings, indexed by language/country code
139
+ '': { // Default regional settings - English/US
140
+ labels: ['Years', 'Months', 'Weeks', 'Days', 'Hours', 'Mins', 'Secs'],
141
+ labels1: ['Year', 'Month', 'Week', 'Day', 'Hour', 'Min', 'Sec'],
142
+ compactLabels: ['y', 'm', 'w', 'd'],
143
+ whichLabels: null,
144
+ digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
145
+ timeSeparator: ':',
146
+ isRTL: false
147
+ }
148
+ },
149
+
150
+ /** Names of getter methods - those that can't be chained. */
151
+ _getters: ['getTimes'],
152
+
153
+ /* Class name for the right-to-left marker. */
154
+ _rtlClass: pluginName + '-rtl',
155
+ /* Class name for the countdown section marker. */
156
+ _sectionClass: pluginName + '-section',
157
+ /* Class name for the period amount marker. */
158
+ _amountClass: pluginName + '-amount',
159
+ /* Class name for the period name marker. */
160
+ _periodClass: pluginName + '-period',
161
+ /* Class name for the countdown row marker. */
162
+ _rowClass: pluginName + '-row',
163
+ /* Class name for the holding countdown marker. */
164
+ _holdingClass: pluginName + '-holding',
165
+ /* Class name for the showing countdown marker. */
166
+ _showClass: pluginName + '-show',
167
+ /* Class name for the description marker. */
168
+ _descrClass: pluginName + '-descr',
169
+
170
+ /* List of currently active countdown elements. */
171
+ _timerElems: [],
172
+
173
+ /** Additional setup for the countdown.
174
+ Apply default localisations.
175
+ Create the timer. */
176
+ _init: function() {
177
+ var self = this;
178
+ this._super();
179
+ this._serverSyncs = [];
180
+ var now = (typeof Date.now == 'function' ? Date.now :
181
+ function() { return new Date().getTime(); });
182
+ var perfAvail = (window.performance && typeof window.performance.now == 'function');
183
+ // Shared timer for all countdowns
184
+ function timerCallBack(timestamp) {
185
+ var drawStart = (timestamp < 1e12 ? // New HTML5 high resolution timer
186
+ (perfAvail ? (performance.now() + performance.timing.navigationStart) : now()) :
187
+ // Integer milliseconds since unix epoch
188
+ timestamp || now());
189
+ if (drawStart - animationStartTime >= 1000) {
190
+ self._updateElems();
191
+ animationStartTime = drawStart;
192
+ }
193
+ requestAnimationFrame(timerCallBack);
194
+ }
195
+ var requestAnimationFrame = window.requestAnimationFrame ||
196
+ window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame ||
197
+ window.oRequestAnimationFrame || window.msRequestAnimationFrame || null;
198
+ // This is when we expect a fall-back to setInterval as it's much more fluid
199
+ var animationStartTime = 0;
200
+ if (!requestAnimationFrame || $.noRequestAnimationFrame) {
201
+ $.noRequestAnimationFrame = null;
202
+ setInterval(function() { self._updateElems(); }, 980); // Fall back to good old setInterval
203
+ }
204
+ else {
205
+ animationStartTime = window.animationStartTime ||
206
+ window.webkitAnimationStartTime || window.mozAnimationStartTime ||
207
+ window.oAnimationStartTime || window.msAnimationStartTime || now();
208
+ requestAnimationFrame(timerCallBack);
209
+ }
210
+ },
211
+
212
+ /** Convert a date/time to UTC.
213
+ @param tz {number} The hour or minute offset from GMT, e.g. +9, -360.
214
+ @param year {Date|number} the date/time in that timezone or the year in that timezone.
215
+ @param [month] {number} The month (0 - 11) (omit if <code>year</code> is a <code>Date</code>).
216
+ @param [day] {number} The day (omit if <code>year</code> is a <code>Date</code>).
217
+ @param [hours] {number} The hour (omit if <code>year</code> is a <code>Date</code>).
218
+ @param [mins] {number} The minute (omit if <code>year</code> is a <code>Date</code>).
219
+ @param [secs] {number} The second (omit if <code>year</code> is a <code>Date</code>).
220
+ @param [ms] {number} The millisecond (omit if <code>year</code> is a <code>Date</code>).
221
+ @return {Date} The equivalent UTC date/time.
222
+ @example $.countdown.UTCDate(+10, 2013, 12-1, 25, 12, 0)
223
+ $.countdown.UTCDate(-7, new Date(2013, 12-1, 25, 12, 0)) */
224
+ UTCDate: function(tz, year, month, day, hours, mins, secs, ms) {
225
+ if (typeof year == 'object' && year.constructor == Date) {
226
+ ms = year.getMilliseconds();
227
+ secs = year.getSeconds();
228
+ mins = year.getMinutes();
229
+ hours = year.getHours();
230
+ day = year.getDate();
231
+ month = year.getMonth();
232
+ year = year.getFullYear();
233
+ }
234
+ var d = new Date();
235
+ d.setUTCFullYear(year);
236
+ d.setUTCDate(1);
237
+ d.setUTCMonth(month || 0);
238
+ d.setUTCDate(day || 1);
239
+ d.setUTCHours(hours || 0);
240
+ d.setUTCMinutes((mins || 0) - (Math.abs(tz) < 30 ? tz * 60 : tz));
241
+ d.setUTCSeconds(secs || 0);
242
+ d.setUTCMilliseconds(ms || 0);
243
+ return d;
244
+ },
245
+
246
+ /** Convert a set of periods into seconds.
247
+ Averaged for months and years.
248
+ @param periods {number[]} The periods per year/month/week/day/hour/minute/second.
249
+ @return {number} The corresponding number of seconds.
250
+ @example var secs = $.countdown.periodsToSeconds(periods) */
251
+ periodsToSeconds: function(periods) {
252
+ return periods[0] * 31557600 + periods[1] * 2629800 + periods[2] * 604800 +
253
+ periods[3] * 86400 + periods[4] * 3600 + periods[5] * 60 + periods[6];
254
+ },
255
+
256
+ /** Resynchronise the countdowns with the server.
257
+ @example $.countdown.resync() */
258
+ resync: function() {
259
+ var self = this;
260
+ $('.' + this._getMarker()).each(function() { // Each countdown
261
+ var inst = $.data(this, self.name);
262
+ if (inst.options.serverSync) { // If synced
263
+ var serverSync = null;
264
+ for (var i = 0; i < self._serverSyncs.length; i++) {
265
+ if (self._serverSyncs[i][0] == inst.options.serverSync) { // Find sync details
266
+ serverSync = self._serverSyncs[i];
267
+ break;
268
+ }
269
+ }
270
+ if (serverSync[2] == null) { // Recalculate if missing
271
+ var serverResult = ($.isFunction(inst.options.serverSync) ?
272
+ inst.options.serverSync.apply(this, []) : null);
273
+ serverSync[2] =
274
+ (serverResult ? new Date().getTime() - serverResult.getTime() : 0) - serverSync[1];
275
+ }
276
+ if (inst._since) { // Apply difference
277
+ inst._since.setMilliseconds(inst._since.getMilliseconds() + serverSync[2]);
278
+ }
279
+ inst._until.setMilliseconds(inst._until.getMilliseconds() + serverSync[2]);
280
+ }
281
+ });
282
+ for (var i = 0; i < self._serverSyncs.length; i++) { // Update sync details
283
+ if (self._serverSyncs[i][2] != null) {
284
+ self._serverSyncs[i][1] += self._serverSyncs[i][2];
285
+ delete self._serverSyncs[i][2];
286
+ }
287
+ }
288
+ },
289
+
290
+ _instSettings: function(elem, options) {
291
+ return {_periods: [0, 0, 0, 0, 0, 0, 0]};
292
+ },
293
+
294
+ /** Add an element to the list of active ones.
295
+ @private
296
+ @param elem {Element} The countdown element. */
297
+ _addElem: function(elem) {
298
+ if (!this._hasElem(elem)) {
299
+ this._timerElems.push(elem);
300
+ }
301
+ },
302
+
303
+ /** See if an element is in the list of active ones.
304
+ @private
305
+ @param elem {Element} The countdown element.
306
+ @return {boolean} True if present, false if not. */
307
+ _hasElem: function(elem) {
308
+ return ($.inArray(elem, this._timerElems) > -1);
309
+ },
310
+
311
+ /** Remove an element from the list of active ones.
312
+ @private
313
+ @param elem {Element} The countdown element. */
314
+ _removeElem: function(elem) {
315
+ this._timerElems = $.map(this._timerElems,
316
+ function(value) { return (value == elem ? null : value); }); // delete entry
317
+ },
318
+
319
+ /** Update each active timer element.
320
+ @private */
321
+ _updateElems: function() {
322
+ for (var i = this._timerElems.length - 1; i >= 0; i--) {
323
+ this._updateCountdown(this._timerElems[i]);
324
+ }
325
+ },
326
+
327
+ _optionsChanged: function(elem, inst, options) {
328
+ if (options.layout) {
329
+ options.layout = options.layout.replace(/&lt;/g, '<').replace(/&gt;/g, '>');
330
+ }
331
+ this._resetExtraLabels(inst.options, options);
332
+ var timezoneChanged = (inst.options.timezone != options.timezone);
333
+ $.extend(inst.options, options);
334
+ this._adjustSettings(elem, inst,
335
+ options.until != null || options.since != null || timezoneChanged);
336
+ var now = new Date();
337
+ if ((inst._since && inst._since < now) || (inst._until && inst._until > now)) {
338
+ this._addElem(elem[0]);
339
+ }
340
+ this._updateCountdown(elem, inst);
341
+ },
342
+
343
+ /** Redisplay the countdown with an updated display.
344
+ @private
345
+ @param elem {Element|jQuery} The containing division.
346
+ @param inst {object} The current settings for this instance. */
347
+ _updateCountdown: function(elem, inst) {
348
+ elem = elem.jquery ? elem : $(elem);
349
+ inst = inst || this._getInst(elem);
350
+ if (!inst) {
351
+ return;
352
+ }
353
+ elem.html(this._generateHTML(inst)).toggleClass(this._rtlClass, inst.options.isRTL);
354
+ if ($.isFunction(inst.options.onTick)) {
355
+ var periods = inst._hold != 'lap' ? inst._periods :
356
+ this._calculatePeriods(inst, inst._show, inst.options.significant, new Date());
357
+ if (inst.options.tickInterval == 1 ||
358
+ this.periodsToSeconds(periods) % inst.options.tickInterval == 0) {
359
+ inst.options.onTick.apply(elem[0], [periods]);
360
+ }
361
+ }
362
+ var expired = inst._hold != 'pause' &&
363
+ (inst._since ? inst._now.getTime() < inst._since.getTime() :
364
+ inst._now.getTime() >= inst._until.getTime());
365
+ if (expired && !inst._expiring) {
366
+ inst._expiring = true;
367
+ if (this._hasElem(elem[0]) || inst.options.alwaysExpire) {
368
+ this._removeElem(elem[0]);
369
+ if ($.isFunction(inst.options.onExpiry)) {
370
+ inst.options.onExpiry.apply(elem[0], []);
371
+ }
372
+ if (inst.options.expiryText) {
373
+ var layout = inst.options.layout;
374
+ inst.options.layout = inst.options.expiryText;
375
+ this._updateCountdown(elem[0], inst);
376
+ inst.options.layout = layout;
377
+ }
378
+ if (inst.options.expiryUrl) {
379
+ window.location = inst.options.expiryUrl;
380
+ }
381
+ }
382
+ inst._expiring = false;
383
+ }
384
+ else if (inst._hold == 'pause') {
385
+ this._removeElem(elem[0]);
386
+ }
387
+ },
388
+
389
+ /** Reset any extra labelsn and compactLabelsn entries if changing labels.
390
+ @private
391
+ @param base {object} The options to be updated.
392
+ @param options {object} The new option values. */
393
+ _resetExtraLabels: function(base, options) {
394
+ for (var n in options) {
395
+ if (n.match(/[Ll]abels[02-9]|compactLabels1/)) {
396
+ base[n] = options[n];
397
+ }
398
+ }
399
+ for (var n in base) { // Remove custom numbered labels
400
+ if (n.match(/[Ll]abels[02-9]|compactLabels1/) && typeof options[n] === 'undefined') {
401
+ base[n] = null;
402
+ }
403
+ }
404
+ },
405
+
406
+ /** Calculate internal settings for an instance.
407
+ @private
408
+ @param elem {jQuery} The containing division.
409
+ @param inst {object} The current settings for this instance.
410
+ @param recalc {boolean} True if until or since are set. */
411
+ _adjustSettings: function(elem, inst, recalc) {
412
+ var serverEntry = null;
413
+ for (var i = 0; i < this._serverSyncs.length; i++) {
414
+ if (this._serverSyncs[i][0] == inst.options.serverSync) {
415
+ serverEntry = this._serverSyncs[i][1];
416
+ break;
417
+ }
418
+ }
419
+ if (serverEntry != null) {
420
+ var serverOffset = (inst.options.serverSync ? serverEntry : 0);
421
+ var now = new Date();
422
+ }
423
+ else {
424
+ var serverResult = ($.isFunction(inst.options.serverSync) ?
425
+ inst.options.serverSync.apply(elem[0], []) : null);
426
+ var now = new Date();
427
+ var serverOffset = (serverResult ? now.getTime() - serverResult.getTime() : 0);
428
+ this._serverSyncs.push([inst.options.serverSync, serverOffset]);
429
+ }
430
+ var timezone = inst.options.timezone;
431
+ timezone = (timezone == null ? -now.getTimezoneOffset() : timezone);
432
+ if (recalc || (!recalc && inst._until == null && inst._since == null)) {
433
+ inst._since = inst.options.since;
434
+ if (inst._since != null) {
435
+ inst._since = this.UTCDate(timezone, this._determineTime(inst._since, null));
436
+ if (inst._since && serverOffset) {
437
+ inst._since.setMilliseconds(inst._since.getMilliseconds() + serverOffset);
438
+ }
439
+ }
440
+ inst._until = this.UTCDate(timezone, this._determineTime(inst.options.until, now));
441
+ if (serverOffset) {
442
+ inst._until.setMilliseconds(inst._until.getMilliseconds() + serverOffset);
443
+ }
444
+ }
445
+ inst._show = this._determineShow(inst);
446
+ },
447
+
448
+ /** Remove the countdown widget from a div.
449
+ @param elem {jQuery} The containing division.
450
+ @param inst {object} The current instance object. */
451
+ _preDestroy: function(elem, inst) {
452
+ this._removeElem(elem[0]);
453
+ elem.empty();
454
+ },
455
+
456
+ /** Pause a countdown widget at the current time.
457
+ Stop it running but remember and display the current time.
458
+ @param elem {Element} The containing division.
459
+ @example $(selector).countdown('pause') */
460
+ pause: function(elem) {
461
+ this._hold(elem, 'pause');
462
+ },
463
+
464
+ /** Pause a countdown widget at the current time.
465
+ Stop the display but keep the countdown running.
466
+ @param elem {Element} The containing division.
467
+ @example $(selector).countdown('lap') */
468
+ lap: function(elem) {
469
+ this._hold(elem, 'lap');
470
+ },
471
+
472
+ /** Resume a paused countdown widget.
473
+ @param elem {Element} The containing division.
474
+ @example $(selector).countdown('resume') */
475
+ resume: function(elem) {
476
+ this._hold(elem, null);
477
+ },
478
+
479
+ /** Toggle a paused countdown widget.
480
+ @param elem {Element} The containing division.
481
+ @example $(selector).countdown('toggle') */
482
+ toggle: function(elem) {
483
+ var inst = $.data(elem, this.name) || {};
484
+ this[!inst._hold ? 'pause' : 'resume'](elem);
485
+ },
486
+
487
+ /** Toggle a lapped countdown widget.
488
+ @param elem {Element} The containing division.
489
+ @example $(selector).countdown('toggleLap') */
490
+ toggleLap: function(elem) {
491
+ var inst = $.data(elem, this.name) || {};
492
+ this[!inst._hold ? 'lap' : 'resume'](elem);
493
+ },
494
+
495
+ /** Pause or resume a countdown widget.
496
+ @private
497
+ @param elem {Element} The containing division.
498
+ @param hold {string} The new hold setting. */
499
+ _hold: function(elem, hold) {
500
+ var inst = $.data(elem, this.name);
501
+ if (inst) {
502
+ if (inst._hold == 'pause' && !hold) {
503
+ inst._periods = inst._savePeriods;
504
+ var sign = (inst._since ? '-' : '+');
505
+ inst[inst._since ? '_since' : '_until'] =
506
+ this._determineTime(sign + inst._periods[0] + 'y' +
507
+ sign + inst._periods[1] + 'o' + sign + inst._periods[2] + 'w' +
508
+ sign + inst._periods[3] + 'd' + sign + inst._periods[4] + 'h' +
509
+ sign + inst._periods[5] + 'm' + sign + inst._periods[6] + 's');
510
+ this._addElem(elem);
511
+ }
512
+ inst._hold = hold;
513
+ inst._savePeriods = (hold == 'pause' ? inst._periods : null);
514
+ $.data(elem, this.name, inst);
515
+ this._updateCountdown(elem, inst);
516
+ }
517
+ },
518
+
519
+ /** Return the current time periods.
520
+ @param elem {Element} The containing division.
521
+ @return {number[]} The current periods for the countdown.
522
+ @example var periods = $(selector).countdown('getTimes') */
523
+ getTimes: function(elem) {
524
+ var inst = $.data(elem, this.name);
525
+ return (!inst ? null : (inst._hold == 'pause' ? inst._savePeriods : (!inst._hold ? inst._periods :
526
+ this._calculatePeriods(inst, inst._show, inst.options.significant, new Date()))));
527
+ },
528
+
529
+ /** A time may be specified as an exact value or a relative one.
530
+ @private
531
+ @param setting {string|number|Date} The date/time value as a relative or absolute value.
532
+ @param defaultTime {Date} The date/time to use if no other is supplied.
533
+ @return {Date} The corresponding date/time. */
534
+ _determineTime: function(setting, defaultTime) {
535
+ var self = this;
536
+ var offsetNumeric = function(offset) { // e.g. +300, -2
537
+ var time = new Date();
538
+ time.setTime(time.getTime() + offset * 1000);
539
+ return time;
540
+ };
541
+ var offsetString = function(offset) { // e.g. '+2d', '-4w', '+3h +30m'
542
+ offset = offset.toLowerCase();
543
+ var time = new Date();
544
+ var year = time.getFullYear();
545
+ var month = time.getMonth();
546
+ var day = time.getDate();
547
+ var hour = time.getHours();
548
+ var minute = time.getMinutes();
549
+ var second = time.getSeconds();
550
+ var pattern = /([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g;
551
+ var matches = pattern.exec(offset);
552
+ while (matches) {
553
+ switch (matches[2] || 's') {
554
+ case 's': second += parseInt(matches[1], 10); break;
555
+ case 'm': minute += parseInt(matches[1], 10); break;
556
+ case 'h': hour += parseInt(matches[1], 10); break;
557
+ case 'd': day += parseInt(matches[1], 10); break;
558
+ case 'w': day += parseInt(matches[1], 10) * 7; break;
559
+ case 'o':
560
+ month += parseInt(matches[1], 10);
561
+ day = Math.min(day, self._getDaysInMonth(year, month));
562
+ break;
563
+ case 'y':
564
+ year += parseInt(matches[1], 10);
565
+ day = Math.min(day, self._getDaysInMonth(year, month));
566
+ break;
567
+ }
568
+ matches = pattern.exec(offset);
569
+ }
570
+ return new Date(year, month, day, hour, minute, second, 0);
571
+ };
572
+ var time = (setting == null ? defaultTime :
573
+ (typeof setting == 'string' ? offsetString(setting) :
574
+ (typeof setting == 'number' ? offsetNumeric(setting) : setting)));
575
+ if (time) time.setMilliseconds(0);
576
+ return time;
577
+ },
578
+
579
+ /** Determine the number of days in a month.
580
+ @private
581
+ @param year {number} The year.
582
+ @param month {number} The month.
583
+ @return {number} The days in that month. */
584
+ _getDaysInMonth: function(year, month) {
585
+ return 32 - new Date(year, month, 32).getDate();
586
+ },
587
+
588
+ /** Default implementation to determine which set of labels should be used for an amount.
589
+ Use the <code>labels</code> attribute with the same numeric suffix (if it exists).
590
+ @private
591
+ @param num {number} The amount to be displayed.
592
+ @return {number} The set of labels to be used for this amount. */
593
+ _normalLabels: function(num) {
594
+ return num;
595
+ },
596
+
597
+ /** Generate the HTML to display the countdown widget.
598
+ @private
599
+ @param inst {object} The current settings for this instance.
600
+ @return {string} The new HTML for the countdown display. */
601
+ _generateHTML: function(inst) {
602
+ var self = this;
603
+ // Determine what to show
604
+ inst._periods = (inst._hold ? inst._periods :
605
+ this._calculatePeriods(inst, inst._show, inst.options.significant, new Date()));
606
+ // Show all 'asNeeded' after first non-zero value
607
+ var shownNonZero = false;
608
+ var showCount = 0;
609
+ var sigCount = inst.options.significant;
610
+ var show = $.extend({}, inst._show);
611
+ for (var period = Y; period <= S; period++) {
612
+ shownNonZero |= (inst._show[period] == '?' && inst._periods[period] > 0);
613
+ show[period] = (inst._show[period] == '?' && !shownNonZero ? null : inst._show[period]);
614
+ showCount += (show[period] ? 1 : 0);
615
+ sigCount -= (inst._periods[period] > 0 ? 1 : 0);
616
+ }
617
+ var showSignificant = [false, false, false, false, false, false, false];
618
+ for (var period = S; period >= Y; period--) { // Determine significant periods
619
+ if (inst._show[period]) {
620
+ if (inst._periods[period]) {
621
+ showSignificant[period] = true;
622
+ }
623
+ else {
624
+ showSignificant[period] = sigCount > 0;
625
+ sigCount--;
626
+ }
627
+ }
628
+ }
629
+ var labels = (inst.options.compact ? inst.options.compactLabels : inst.options.labels);
630
+ var whichLabels = inst.options.whichLabels || this._normalLabels;
631
+ var showCompact = function(period) {
632
+ var labelsNum = inst.options['compactLabels' + whichLabels(inst._periods[period])];
633
+ return (show[period] ? self._translateDigits(inst, inst._periods[period]) +
634
+ (labelsNum ? labelsNum[period] : labels[period]) + ' ' : '');
635
+ };
636
+ var minDigits = (inst.options.padZeroes ? 2 : 1);
637
+ var showFull = function(period) {
638
+ var labelsNum = inst.options['labels' + whichLabels(inst._periods[period])];
639
+ return ((!inst.options.significant && show[period]) ||
640
+ (inst.options.significant && showSignificant[period]) ?
641
+ '<span class="' + self._sectionClass + '">' +
642
+ '<span class="' + self._amountClass + '">' +
643
+ self._minDigits(inst, inst._periods[period], minDigits) + '</span>' +
644
+ '<span class="' + self._periodClass + '">' +
645
+ (labelsNum ? labelsNum[period] : labels[period]) + '</span></span>' : '');
646
+ };
647
+ return (inst.options.layout ? this._buildLayout(inst, show, inst.options.layout,
648
+ inst.options.compact, inst.options.significant, showSignificant) :
649
+ ((inst.options.compact ? // Compact version
650
+ '<span class="' + this._rowClass + ' ' + this._amountClass +
651
+ (inst._hold ? ' ' + this._holdingClass : '') + '">' +
652
+ showCompact(Y) + showCompact(O) + showCompact(W) + showCompact(D) +
653
+ (show[H] ? this._minDigits(inst, inst._periods[H], 2) : '') +
654
+ (show[M] ? (show[H] ? inst.options.timeSeparator : '') +
655
+ this._minDigits(inst, inst._periods[M], 2) : '') +
656
+ (show[S] ? (show[H] || show[M] ? inst.options.timeSeparator : '') +
657
+ this._minDigits(inst, inst._periods[S], 2) : '') :
658
+ // Full version
659
+ '<span class="' + this._rowClass + ' ' + this._showClass + (inst.options.significant || showCount) +
660
+ (inst._hold ? ' ' + this._holdingClass : '') + '">' +
661
+ showFull(Y) + showFull(O) + showFull(W) + showFull(D) +
662
+ showFull(H) + showFull(M) + showFull(S)) + '</span>' +
663
+ (inst.options.description ? '<span class="' + this._rowClass + ' ' + this._descrClass + '">' +
664
+ inst.options.description + '</span>' : '')));
665
+ },
666
+
667
+ /** Construct a custom layout.
668
+ @private
669
+ @param inst {object} The current settings for this instance.
670
+ @param show {boolean[]} Flags indicating which periods are requested.
671
+ @param layout {string} The customised layout.
672
+ @param compact {boolean} True if using compact labels.
673
+ @param significant {number} The number of periods with values to show, zero for all.
674
+ @param showSignificant {boolean[]} Other periods to show for significance.
675
+ @return {string} The custom HTML. */
676
+ _buildLayout: function(inst, show, layout, compact, significant, showSignificant) {
677
+ var labels = inst.options[compact ? 'compactLabels' : 'labels'];
678
+ var whichLabels = inst.options.whichLabels || this._normalLabels;
679
+ var labelFor = function(index) {
680
+ return (inst.options[(compact ? 'compactLabels' : 'labels') +
681
+ whichLabels(inst._periods[index])] || labels)[index];
682
+ };
683
+ var digit = function(value, position) {
684
+ return inst.options.digits[Math.floor(value / position) % 10];
685
+ };
686
+ var subs = {desc: inst.options.description, sep: inst.options.timeSeparator,
687
+ yl: labelFor(Y), yn: this._minDigits(inst, inst._periods[Y], 1),
688
+ ynn: this._minDigits(inst, inst._periods[Y], 2),
689
+ ynnn: this._minDigits(inst, inst._periods[Y], 3), y1: digit(inst._periods[Y], 1),
690
+ y10: digit(inst._periods[Y], 10), y100: digit(inst._periods[Y], 100),
691
+ y1000: digit(inst._periods[Y], 1000),
692
+ ol: labelFor(O), on: this._minDigits(inst, inst._periods[O], 1),
693
+ onn: this._minDigits(inst, inst._periods[O], 2),
694
+ onnn: this._minDigits(inst, inst._periods[O], 3), o1: digit(inst._periods[O], 1),
695
+ o10: digit(inst._periods[O], 10), o100: digit(inst._periods[O], 100),
696
+ o1000: digit(inst._periods[O], 1000),
697
+ wl: labelFor(W), wn: this._minDigits(inst, inst._periods[W], 1),
698
+ wnn: this._minDigits(inst, inst._periods[W], 2),
699
+ wnnn: this._minDigits(inst, inst._periods[W], 3), w1: digit(inst._periods[W], 1),
700
+ w10: digit(inst._periods[W], 10), w100: digit(inst._periods[W], 100),
701
+ w1000: digit(inst._periods[W], 1000),
702
+ dl: labelFor(D), dn: this._minDigits(inst, inst._periods[D], 1),
703
+ dnn: this._minDigits(inst, inst._periods[D], 2),
704
+ dnnn: this._minDigits(inst, inst._periods[D], 3), d1: digit(inst._periods[D], 1),
705
+ d10: digit(inst._periods[D], 10), d100: digit(inst._periods[D], 100),
706
+ d1000: digit(inst._periods[D], 1000),
707
+ hl: labelFor(H), hn: this._minDigits(inst, inst._periods[H], 1),
708
+ hnn: this._minDigits(inst, inst._periods[H], 2),
709
+ hnnn: this._minDigits(inst, inst._periods[H], 3), h1: digit(inst._periods[H], 1),
710
+ h10: digit(inst._periods[H], 10), h100: digit(inst._periods[H], 100),
711
+ h1000: digit(inst._periods[H], 1000),
712
+ ml: labelFor(M), mn: this._minDigits(inst, inst._periods[M], 1),
713
+ mnn: this._minDigits(inst, inst._periods[M], 2),
714
+ mnnn: this._minDigits(inst, inst._periods[M], 3), m1: digit(inst._periods[M], 1),
715
+ m10: digit(inst._periods[M], 10), m100: digit(inst._periods[M], 100),
716
+ m1000: digit(inst._periods[M], 1000),
717
+ sl: labelFor(S), sn: this._minDigits(inst, inst._periods[S], 1),
718
+ snn: this._minDigits(inst, inst._periods[S], 2),
719
+ snnn: this._minDigits(inst, inst._periods[S], 3), s1: digit(inst._periods[S], 1),
720
+ s10: digit(inst._periods[S], 10), s100: digit(inst._periods[S], 100),
721
+ s1000: digit(inst._periods[S], 1000)};
722
+ var html = layout;
723
+ // Replace period containers: {p<}...{p>}
724
+ for (var i = Y; i <= S; i++) {
725
+ var period = 'yowdhms'.charAt(i);
726
+ var re = new RegExp('\\{' + period + '<\\}([\\s\\S]*)\\{' + period + '>\\}', 'g');
727
+ html = html.replace(re, ((!significant && show[i]) ||
728
+ (significant && showSignificant[i]) ? '$1' : ''));
729
+ }
730
+ // Replace period values: {pn}
731
+ $.each(subs, function(n, v) {
732
+ var re = new RegExp('\\{' + n + '\\}', 'g');
733
+ html = html.replace(re, v);
734
+ });
735
+ return html;
736
+ },
737
+
738
+ /** Ensure a numeric value has at least n digits for display.
739
+ @private
740
+ @param inst {object} The current settings for this instance.
741
+ @param value {number} The value to display.
742
+ @param len {number} The minimum length.
743
+ @return {string} The display text. */
744
+ _minDigits: function(inst, value, len) {
745
+ value = '' + value;
746
+ if (value.length >= len) {
747
+ return this._translateDigits(inst, value);
748
+ }
749
+ value = '0000000000' + value;
750
+ return this._translateDigits(inst, value.substr(value.length - len));
751
+ },
752
+
753
+ /** Translate digits into other representations.
754
+ @private
755
+ @param inst {object} The current settings for this instance.
756
+ @param value {string} The text to translate.
757
+ @return {string} The translated text. */
758
+ _translateDigits: function(inst, value) {
759
+ return ('' + value).replace(/[0-9]/g, function(digit) {
760
+ return inst.options.digits[digit];
761
+ });
762
+ },
763
+
764
+ /** Translate the format into flags for each period.
765
+ @private
766
+ @param inst {object} The current settings for this instance.
767
+ @return {string[]} Flags indicating which periods are requested (?) or
768
+ required (!) by year, month, week, day, hour, minute, second. */
769
+ _determineShow: function(inst) {
770
+ var format = inst.options.format;
771
+ var show = [];
772
+ show[Y] = (format.match('y') ? '?' : (format.match('Y') ? '!' : null));
773
+ show[O] = (format.match('o') ? '?' : (format.match('O') ? '!' : null));
774
+ show[W] = (format.match('w') ? '?' : (format.match('W') ? '!' : null));
775
+ show[D] = (format.match('d') ? '?' : (format.match('D') ? '!' : null));
776
+ show[H] = (format.match('h') ? '?' : (format.match('H') ? '!' : null));
777
+ show[M] = (format.match('m') ? '?' : (format.match('M') ? '!' : null));
778
+ show[S] = (format.match('s') ? '?' : (format.match('S') ? '!' : null));
779
+ return show;
780
+ },
781
+
782
+ /** Calculate the requested periods between now and the target time.
783
+ @private
784
+ @param inst {object} The current settings for this instance.
785
+ @param show {string[]} Flags indicating which periods are requested/required.
786
+ @param significant {number} The number of periods with values to show, zero for all.
787
+ @param now {Date} The current date and time.
788
+ @return {number[]} The current time periods (always positive)
789
+ by year, month, week, day, hour, minute, second. */
790
+ _calculatePeriods: function(inst, show, significant, now) {
791
+ // Find endpoints
792
+ inst._now = now;
793
+ inst._now.setMilliseconds(0);
794
+ var until = new Date(inst._now.getTime());
795
+ if (inst._since) {
796
+ if (now.getTime() < inst._since.getTime()) {
797
+ inst._now = now = until;
798
+ }
799
+ else {
800
+ now = inst._since;
801
+ }
802
+ }
803
+ else {
804
+ until.setTime(inst._until.getTime());
805
+ if (now.getTime() > inst._until.getTime()) {
806
+ inst._now = now = until;
807
+ }
808
+ }
809
+ // Calculate differences by period
810
+ var periods = [0, 0, 0, 0, 0, 0, 0];
811
+ if (show[Y] || show[O]) {
812
+ // Treat end of months as the same
813
+ var lastNow = this._getDaysInMonth(now.getFullYear(), now.getMonth());
814
+ var lastUntil = this._getDaysInMonth(until.getFullYear(), until.getMonth());
815
+ var sameDay = (until.getDate() == now.getDate() ||
816
+ (until.getDate() >= Math.min(lastNow, lastUntil) &&
817
+ now.getDate() >= Math.min(lastNow, lastUntil)));
818
+ var getSecs = function(date) {
819
+ return (date.getHours() * 60 + date.getMinutes()) * 60 + date.getSeconds();
820
+ };
821
+ var months = Math.max(0,
822
+ (until.getFullYear() - now.getFullYear()) * 12 + until.getMonth() - now.getMonth() +
823
+ ((until.getDate() < now.getDate() && !sameDay) ||
824
+ (sameDay && getSecs(until) < getSecs(now)) ? -1 : 0));
825
+ periods[Y] = (show[Y] ? Math.floor(months / 12) : 0);
826
+ periods[O] = (show[O] ? months - periods[Y] * 12 : 0);
827
+ // Adjust for months difference and end of month if necessary
828
+ now = new Date(now.getTime());
829
+ var wasLastDay = (now.getDate() == lastNow);
830
+ var lastDay = this._getDaysInMonth(now.getFullYear() + periods[Y],
831
+ now.getMonth() + periods[O]);
832
+ if (now.getDate() > lastDay) {
833
+ now.setDate(lastDay);
834
+ }
835
+ now.setFullYear(now.getFullYear() + periods[Y]);
836
+ now.setMonth(now.getMonth() + periods[O]);
837
+ if (wasLastDay) {
838
+ now.setDate(lastDay);
839
+ }
840
+ }
841
+ var diff = Math.floor((until.getTime() - now.getTime()) / 1000);
842
+ var extractPeriod = function(period, numSecs) {
843
+ periods[period] = (show[period] ? Math.floor(diff / numSecs) : 0);
844
+ diff -= periods[period] * numSecs;
845
+ };
846
+ extractPeriod(W, 604800);
847
+ extractPeriod(D, 86400);
848
+ extractPeriod(H, 3600);
849
+ extractPeriod(M, 60);
850
+ extractPeriod(S, 1);
851
+ if (diff > 0 && !inst._since) { // Round up if left overs
852
+ var multiplier = [1, 12, 4.3482, 7, 24, 60, 60];
853
+ var lastShown = S;
854
+ var max = 1;
855
+ for (var period = S; period >= Y; period--) {
856
+ if (show[period]) {
857
+ if (periods[lastShown] >= max) {
858
+ periods[lastShown] = 0;
859
+ diff = 1;
860
+ }
861
+ if (diff > 0) {
862
+ periods[period]++;
863
+ diff = 0;
864
+ lastShown = period;
865
+ max = 1;
866
+ }
867
+ }
868
+ max *= multiplier[period];
869
+ }
870
+ }
871
+ if (significant) { // Zero out insignificant periods
872
+ for (var period = Y; period <= S; period++) {
873
+ if (significant && periods[period]) {
874
+ significant--;
875
+ }
876
+ else if (!significant) {
877
+ periods[period] = 0;
878
+ }
879
+ }
880
+ }
881
+ return periods;
882
+ }
883
+ });
884
+
885
+ })(jQuery);
skin/frontend/base/default/dropfin/pricecountdown/type-1/js/jquery.plugin.js ADDED
@@ -0,0 +1,344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Simple JavaScript Inheritance
2
+ * By John Resig http://ejohn.org/
3
+ * MIT Licensed.
4
+ */
5
+ // Inspired by base2 and Prototype
6
+ (function(){
7
+ var initializing = false;
8
+
9
+ // The base JQClass implementation (does nothing)
10
+ window.JQClass = function(){};
11
+
12
+ // Collection of derived classes
13
+ JQClass.classes = {};
14
+
15
+ // Create a new JQClass that inherits from this class
16
+ JQClass.extend = function extender(prop) {
17
+ var base = this.prototype;
18
+
19
+ // Instantiate a base class (but only create the instance,
20
+ // don't run the init constructor)
21
+ initializing = true;
22
+ var prototype = new this();
23
+ initializing = false;
24
+
25
+ // Copy the properties over onto the new prototype
26
+ for (var name in prop) {
27
+ // Check if we're overwriting an existing function
28
+ prototype[name] = typeof prop[name] == 'function' &&
29
+ typeof base[name] == 'function' ?
30
+ (function(name, fn){
31
+ return function() {
32
+ var __super = this._super;
33
+
34
+ // Add a new ._super() method that is the same method
35
+ // but on the super-class
36
+ this._super = function(args) {
37
+ return base[name].apply(this, args || []);
38
+ };
39
+
40
+ var ret = fn.apply(this, arguments);
41
+
42
+ // The method only need to be bound temporarily, so we
43
+ // remove it when we're done executing
44
+ this._super = __super;
45
+
46
+ return ret;
47
+ };
48
+ })(name, prop[name]) :
49
+ prop[name];
50
+ }
51
+
52
+ // The dummy class constructor
53
+ function JQClass() {
54
+ // All construction is actually done in the init method
55
+ if (!initializing && this._init) {
56
+ this._init.apply(this, arguments);
57
+ }
58
+ }
59
+
60
+ // Populate our constructed prototype object
61
+ JQClass.prototype = prototype;
62
+
63
+ // Enforce the constructor to be what we expect
64
+ JQClass.prototype.constructor = JQClass;
65
+
66
+ // And make this class extendable
67
+ JQClass.extend = extender;
68
+
69
+ return JQClass;
70
+ };
71
+ })();
72
+
73
+ (function($) { // Ensure $, encapsulate
74
+
75
+ /** Abstract base class for collection plugins v1.0.1.
76
+ Written by Keith Wood (kbwood{at}iinet.com.au) December 2013.
77
+ Licensed under the MIT (http://keith-wood.name/licence.html) license.
78
+ @module $.JQPlugin
79
+ @abstract */
80
+ JQClass.classes.JQPlugin = JQClass.extend({
81
+
82
+ /** Name to identify this plugin.
83
+ @example name: 'tabs' */
84
+ name: 'plugin',
85
+
86
+ /** Default options for instances of this plugin (default: {}).
87
+ @example defaultOptions: {
88
+ selectedClass: 'selected',
89
+ triggers: 'click'
90
+ } */
91
+ defaultOptions: {},
92
+
93
+ /** Options dependent on the locale.
94
+ Indexed by language and (optional) country code, with '' denoting the default language (English/US).
95
+ @example regionalOptions: {
96
+ '': {
97
+ greeting: 'Hi'
98
+ }
99
+ } */
100
+ regionalOptions: {},
101
+
102
+ /** Names of getter methods - those that can't be chained (default: []).
103
+ @example _getters: ['activeTab'] */
104
+ _getters: [],
105
+
106
+ /** Retrieve a marker class for affected elements.
107
+ @private
108
+ @return {string} The marker class. */
109
+ _getMarker: function() {
110
+ return 'is-' + this.name;
111
+ },
112
+
113
+ /** Initialise the plugin.
114
+ Create the jQuery bridge - plugin name <code>xyz</code>
115
+ produces <code>$.xyz</code> and <code>$.fn.xyz</code>. */
116
+ _init: function() {
117
+ // Apply default localisations
118
+ $.extend(this.defaultOptions, (this.regionalOptions && this.regionalOptions['']) || {});
119
+ // Camel-case the name
120
+ var jqName = camelCase(this.name);
121
+ // Expose jQuery singleton manager
122
+ $[jqName] = this;
123
+ // Expose jQuery collection plugin
124
+ $.fn[jqName] = function(options) {
125
+ var otherArgs = Array.prototype.slice.call(arguments, 1);
126
+ if ($[jqName]._isNotChained(options, otherArgs)) {
127
+ return $[jqName][options].apply($[jqName], [this[0]].concat(otherArgs));
128
+ }
129
+ return this.each(function() {
130
+ if (typeof options === 'string') {
131
+ if (options[0] === '_' || !$[jqName][options]) {
132
+ throw 'Unknown method: ' + options;
133
+ }
134
+ $[jqName][options].apply($[jqName], [this].concat(otherArgs));
135
+ }
136
+ else {
137
+ $[jqName]._attach(this, options);
138
+ }
139
+ });
140
+ };
141
+ },
142
+
143
+ /** Set default values for all subsequent instances.
144
+ @param options {object} The new default options.
145
+ @example $.plugin.setDefauls({name: value}) */
146
+ setDefaults: function(options) {
147
+ $.extend(this.defaultOptions, options || {});
148
+ },
149
+
150
+ /** Determine whether a method is a getter and doesn't permit chaining.
151
+ @private
152
+ @param name {string} The method name.
153
+ @param otherArgs {any[]} Any other arguments for the method.
154
+ @return {boolean} True if this method is a getter, false otherwise. */
155
+ _isNotChained: function(name, otherArgs) {
156
+ if (name === 'option' && (otherArgs.length === 0 ||
157
+ (otherArgs.length === 1 && typeof otherArgs[0] === 'string'))) {
158
+ return true;
159
+ }
160
+ return $.inArray(name, this._getters) > -1;
161
+ },
162
+
163
+ /** Initialise an element. Called internally only.
164
+ Adds an instance object as data named for the plugin.
165
+ @param elem {Element} The element to enhance.
166
+ @param options {object} Overriding settings. */
167
+ _attach: function(elem, options) {
168
+ elem = $(elem);
169
+ if (elem.hasClass(this._getMarker())) {
170
+ return;
171
+ }
172
+ elem.addClass(this._getMarker());
173
+ options = $.extend({}, this.defaultOptions, this._getMetadata(elem), options || {});
174
+ var inst = $.extend({name: this.name, elem: elem, options: options},
175
+ this._instSettings(elem, options));
176
+ elem.data(this.name, inst); // Save instance against element
177
+ this._postAttach(elem, inst);
178
+ this.option(elem, options);
179
+ },
180
+
181
+ /** Retrieve additional instance settings.
182
+ Override this in a sub-class to provide extra settings.
183
+ @param elem {jQuery} The current jQuery element.
184
+ @param options {object} The instance options.
185
+ @return {object} Any extra instance values.
186
+ @example _instSettings: function(elem, options) {
187
+ return {nav: elem.find(options.navSelector)};
188
+ } */
189
+ _instSettings: function(elem, options) {
190
+ return {};
191
+ },
192
+
193
+ /** Plugin specific post initialisation.
194
+ Override this in a sub-class to perform extra activities.
195
+ @param elem {jQuery} The current jQuery element.
196
+ @param inst {object} The instance settings.
197
+ @example _postAttach: function(elem, inst) {
198
+ elem.on('click.' + this.name, function() {
199
+ ...
200
+ });
201
+ } */
202
+ _postAttach: function(elem, inst) {
203
+ },
204
+
205
+ /** Retrieve metadata configuration from the element.
206
+ Metadata is specified as an attribute:
207
+ <code>data-&lt;plugin name>="&lt;setting name>: '&lt;value>', ..."</code>.
208
+ Dates should be specified as strings in this format: 'new Date(y, m-1, d)'.
209
+ @private
210
+ @param elem {jQuery} The source element.
211
+ @return {object} The inline configuration or {}. */
212
+ _getMetadata: function(elem) {
213
+ try {
214
+ var data = elem.data(this.name.toLowerCase()) || '';
215
+ data = data.replace(/'/g, '"');
216
+ data = data.replace(/([a-zA-Z0-9]+):/g, function(match, group, i) {
217
+ var count = data.substring(0, i).match(/"/g); // Handle embedded ':'
218
+ return (!count || count.length % 2 === 0 ? '"' + group + '":' : group + ':');
219
+ });
220
+ data = $.parseJSON('{' + data + '}');
221
+ for (var name in data) { // Convert dates
222
+ var value = data[name];
223
+ if (typeof value === 'string' && value.match(/^new Date\((.*)\)$/)) {
224
+ data[name] = eval(value);
225
+ }
226
+ }
227
+ return data;
228
+ }
229
+ catch (e) {
230
+ return {};
231
+ }
232
+ },
233
+
234
+ /** Retrieve the instance data for element.
235
+ @param elem {Element} The source element.
236
+ @return {object} The instance data or {}. */
237
+ _getInst: function(elem) {
238
+ return $(elem).data(this.name) || {};
239
+ },
240
+
241
+ /** Retrieve or reconfigure the settings for a plugin.
242
+ @param elem {Element} The source element.
243
+ @param name {object|string} The collection of new option values or the name of a single option.
244
+ @param [value] {any} The value for a single named option.
245
+ @return {any|object} If retrieving a single value or all options.
246
+ @example $(selector).plugin('option', 'name', value)
247
+ $(selector).plugin('option', {name: value, ...})
248
+ var value = $(selector).plugin('option', 'name')
249
+ var options = $(selector).plugin('option') */
250
+ option: function(elem, name, value) {
251
+ elem = $(elem);
252
+ var inst = elem.data(this.name);
253
+ if (!name || (typeof name === 'string' && value == null)) {
254
+ var options = (inst || {}).options;
255
+ return (options && name ? options[name] : options);
256
+ }
257
+ if (!elem.hasClass(this._getMarker())) {
258
+ return;
259
+ }
260
+ var options = name || {};
261
+ if (typeof name === 'string') {
262
+ options = {};
263
+ options[name] = value;
264
+ }
265
+ this._optionsChanged(elem, inst, options);
266
+ $.extend(inst.options, options);
267
+ },
268
+
269
+ /** Plugin specific options processing.
270
+ Old value available in <code>inst.options[name]</code>, new value in <code>options[name]</code>.
271
+ Override this in a sub-class to perform extra activities.
272
+ @param elem {jQuery} The current jQuery element.
273
+ @param inst {object} The instance settings.
274
+ @param options {object} The new options.
275
+ @example _optionsChanged: function(elem, inst, options) {
276
+ if (options.name != inst.options.name) {
277
+ elem.removeClass(inst.options.name).addClass(options.name);
278
+ }
279
+ } */
280
+ _optionsChanged: function(elem, inst, options) {
281
+ },
282
+
283
+ /** Remove all trace of the plugin.
284
+ Override <code>_preDestroy</code> for plugin-specific processing.
285
+ @param elem {Element} The source element.
286
+ @example $(selector).plugin('destroy') */
287
+ destroy: function(elem) {
288
+ elem = $(elem);
289
+ if (!elem.hasClass(this._getMarker())) {
290
+ return;
291
+ }
292
+ this._preDestroy(elem, this._getInst(elem));
293
+ elem.removeData(this.name).removeClass(this._getMarker());
294
+ },
295
+
296
+ /** Plugin specific pre destruction.
297
+ Override this in a sub-class to perform extra activities and undo everything that was
298
+ done in the <code>_postAttach</code> or <code>_optionsChanged</code> functions.
299
+ @param elem {jQuery} The current jQuery element.
300
+ @param inst {object} The instance settings.
301
+ @example _preDestroy: function(elem, inst) {
302
+ elem.off('.' + this.name);
303
+ } */
304
+ _preDestroy: function(elem, inst) {
305
+ }
306
+ });
307
+
308
+ /** Convert names from hyphenated to camel-case.
309
+ @private
310
+ @param value {string} The original hyphenated name.
311
+ @return {string} The camel-case version. */
312
+ function camelCase(name) {
313
+ return name.replace(/-([a-z])/g, function(match, group) {
314
+ return group.toUpperCase();
315
+ });
316
+ }
317
+
318
+ /** Expose the plugin base.
319
+ @namespace "$.JQPlugin" */
320
+ $.JQPlugin = {
321
+
322
+ /** Create a new collection plugin.
323
+ @memberof "$.JQPlugin"
324
+ @param [superClass='JQPlugin'] {string} The name of the parent class to inherit from.
325
+ @param overrides {object} The property/function overrides for the new class.
326
+ @example $.JQPlugin.createPlugin({
327
+ name: 'tabs',
328
+ defaultOptions: {selectedClass: 'selected'},
329
+ _initSettings: function(elem, options) { return {...}; },
330
+ _postAttach: function(elem, inst) { ... }
331
+ }); */
332
+ createPlugin: function(superClass, overrides) {
333
+ if (typeof superClass === 'object') {
334
+ overrides = superClass;
335
+ superClass = 'JQPlugin';
336
+ }
337
+ superClass = camelCase(superClass);
338
+ var className = camelCase(overrides.name);
339
+ JQClass.classes[className] = JQClass.classes[superClass].extend(overrides);
340
+ new JQClass.classes[className]();
341
+ }
342
+ };
343
+
344
+ })(jQuery);
skin/frontend/base/default/dropfin/pricecountdown/type-2/css/timeTo.css ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ figure, figcaption {
2
+ display: block;
3
+ }
4
+
5
+ .transition {
6
+ -webkit-transition: top 400ms linear;
7
+ -moz-transition: top 400ms linear;
8
+ -ms-transition: top 400ms linear;
9
+ -o-transition: top 400ms linear;
10
+ transition: top 400ms linear;
11
+ }
12
+
13
+ .timeTo {
14
+ font-family: Tahoma, Verdana, Aial, sans-serif;
15
+ font-size: 28px;
16
+ line-height: 108%;
17
+ font-weight: bold;
18
+ /*height: 32px;*/
19
+ }
20
+
21
+ .timeTo span {
22
+ vertical-align: top;
23
+ }
24
+
25
+ .timeTo.timeTo-white div {
26
+ color: black;
27
+ background: #ffffff; /* Old browsers */
28
+ background: -moz-linear-gradient(top, #ffffff 38%, #cccccc 100%); /* FF3.6+ */
29
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(38%,#ffffff), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
30
+ background: -webkit-linear-gradient(top, #ffffff 38%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
31
+ background: -o-linear-gradient(top, #ffffff 38%,#cccccc 100%); /* Opera 11.10+ */
32
+ background: -ms-linear-gradient(top, #ffffff 38%,#cccccc 100%); /* IE10+ */
33
+ background: linear-gradient(to bottom, #ffffff 38%,#cccccc 100%); /* W3C */
34
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
35
+ }
36
+ .timeTo.timeTo-black div {
37
+ color: white;
38
+ background: #45484d; /* Old browsers */
39
+ background: -moz-linear-gradient(top, #45484d 0%, #000000 100%); /* FF3.6+ */
40
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000)); /* Chrome,Safari4+ */
41
+ background: -webkit-linear-gradient(top, #45484d 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
42
+ background: -o-linear-gradient(top, #45484d 0%,#000000 100%); /* Opera 11.10+ */
43
+ background: -ms-linear-gradient(top, #45484d 0%,#000000 100%); /* IE10+ */
44
+ background: linear-gradient(to bottom, #45484d 0%,#000000 100%); /* W3C */
45
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
46
+ }
47
+
48
+ .timeTo.timeTo-black .timeTo-alert {
49
+ background: #a74444; /* Old browsers */
50
+ background: -moz-linear-gradient(top, #a74444 0%, #3f0000 67%); /* FF3.6+ */
51
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a74444), color-stop(67%,#3f0000)); /* Chrome,Safari4+ */
52
+ background: -webkit-linear-gradient(top, #a74444 0%,#3f0000 67%); /* Chrome10+,Safari5.1+ */
53
+ background: -o-linear-gradient(top, #a74444 0%,#3f0000 67%); /* Opera 11.10+ */
54
+ background: -ms-linear-gradient(top, #a74444 0%,#3f0000 67%); /* IE10+ */
55
+ background: linear-gradient(to bottom, #a74444 0%,#3f0000 67%); /* W3C */
56
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a74444', endColorstr='#3f0000',GradientType=0 ); /* IE6-9 */
57
+ }
58
+
59
+ .timeTo.timeTo-white .timeTo-alert {
60
+ background: #ffffff; /* Old browsers */
61
+ background: -moz-linear-gradient(top, #ffffff 35%, #e17373 100%); /* FF3.6+ */
62
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(35%,#ffffff), color-stop(100%,#e17373)); /* Chrome,Safari4+ */
63
+ background: -webkit-linear-gradient(top, #ffffff 35%,#e17373 100%); /* Chrome10+,Safari5.1+ */
64
+ background: -o-linear-gradient(top, #ffffff 35%,#e17373 100%); /* Opera 11.10+ */
65
+ background: -ms-linear-gradient(top, #ffffff 35%,#e17373 100%); /* IE10+ */
66
+ background: linear-gradient(to bottom, #ffffff 35%,#e17373 100%); /* W3C */
67
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e17373',GradientType=0 ); /* IE6-9 */
68
+ }
69
+
70
+ .timeTo figure {
71
+ display: inline-block;
72
+ margin: 0;
73
+ padding: 0;
74
+ }
75
+ .timeTo figcaption {
76
+ text-align: center;
77
+ /*font-size: 12px;*/
78
+ line-height: 80%;
79
+ font-weight: normal;
80
+ color: #888;
81
+ }
82
+
83
+ .timeTo div {
84
+ position: relative;
85
+ display: inline-block;
86
+ width: 25px;
87
+ height: 30px;
88
+ border-top: 1px solid silver;
89
+ border-right: 1px solid silver;
90
+ border-bottom: 1px solid silver;
91
+ overflow: hidden;
92
+ }
93
+ .timeTo div.first {
94
+ border-left: 1px solid silver;
95
+ }
96
+
97
+ .timeTo ul {
98
+ list-style-type: none;
99
+ margin: 0;
100
+ padding: 0;
101
+ position: absolute;
102
+ left: 3px;
103
+ }
104
+
105
+ .timeTo ul li {
106
+ margin: 0;
107
+ padding: 0;
108
+ list-style: none;
109
+ }
skin/frontend/base/default/dropfin/pricecountdown/type-2/js/jquery.1.11.0.min.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1);else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L="undefined",M;for(M in n(l))break;l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f
3
+ }}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},W=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a>",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=$.test(e)?this.mouseHooks:Z.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||z),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||z,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==db()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===db()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=z.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===L&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?bb:cb):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submitBubbles||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?b.form:void 0;c&&!n._data(c,"submitBubbles")&&(n.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),n._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.changeBubbles||(n.event.special.change={setup:function(){return Y.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),n.event.simulate("change",this,a,!0)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;Y.test(b.nodeName)&&!n._data(b,"changeBubbles")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a,!0)}),n._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!Y.test(this.nodeName)}}),l.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=cb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return n().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=cb),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});function eb(a){var b=fb.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var fb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gb=/ jQuery\d+="(?:null|\d+)"/g,hb=new RegExp("<(?:"+fb+")[\\s/>]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/<tbody/i,mb=/<|&#?\w+;/,nb=/<(?:script|style|link)/i,ob=/checked\s*(?:[^=]|=\s*.checked.)/i,pb=/^$|\/(?:java|ecma)script/i,qb=/^true\/(.*)/,rb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,sb={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if("object"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1></$2>")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?"<table>"!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0;if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")));i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Db[0].contentWindow||Db[0].contentDocument).document,b.write(),b.close(),c=Fb(a,b),Db.detach()),Eb[a]=c),c}!function(){var a,b,c=z.createElement("div"),d="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],a.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(a.style.opacity),l.cssFloat=!!a.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===c.style.backgroundClip,a=c=null,l.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=z.getElementsByTagName("body")[0],!a)return;f="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",c=z.createElement("div"),e=z.createElement("div"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==L&&(e.style.cssText=d+";width:1px;padding:1px;zoom:1",e.innerHTML="<div></div>",e.firstChild.style.width="5px",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var Hb=/^margin/,Ib=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Jb,Kb,Lb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Jb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),Ib.test(g)&&Hb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):z.documentElement.currentStyle&&(Jb=function(a){return a.currentStyle},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ib.test(g)&&!Lb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Mb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h=z.createElement("div"),i="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",j="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";h.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",b=h.getElementsByTagName("a")[0],b.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(b.style.opacity),l.cssFloat=!!b.style.cssFloat,h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,b=h=null,n.extend(l,{reliableHiddenOffsets:function(){if(null!=c)return c;var a,b,d,e=z.createElement("div"),f=z.getElementsByTagName("body")[0];if(f)return e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=z.createElement("div"),a.style.cssText=i,f.appendChild(a).appendChild(e),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=e.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",d=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",c=d&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,c},boxSizing:function(){return null==d&&k(),d},boxSizingReliable:function(){return null==e&&k(),e},pixelPosition:function(){return null==f&&k(),f},reliableMarginRight:function(){var b,c,d,e;if(null==g&&a.getComputedStyle){if(b=z.getElementsByTagName("body")[0],!b)return;c=z.createElement("div"),d=z.createElement("div"),c.style.cssText=i,b.appendChild(c).appendChild(d),e=d.appendChild(z.createElement("div")),e.style.cssText=d.style.cssText=j,e.style.marginRight=e.style.width="0",d.style.width="1px",g=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return g}});function k(){var b,c,h=z.getElementsByTagName("body")[0];h&&(b=z.createElement("div"),c=z.createElement("div"),b.style.cssText=i,h.appendChild(b).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",n.swap(h,null!=h.style.zoom?{zoom:1}:{},function(){d=4===c.offsetWidth}),e=!0,f=!1,g=!0,a.getComputedStyle&&(f="1%"!==(a.getComputedStyle(c,null)||{}).top,e="4px"===(a.getComputedStyle(c,null)||{width:"4px"}).width),h.removeChild(b),c=h=null)}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Nb=/alpha\([^)]*\)/i,Ob=/opacity\s*=\s*([^)]*)/,Pb=/^(none|table(?!-c[ea]).+)/,Qb=new RegExp("^("+T+")(.*)$","i"),Rb=new RegExp("^([+-])=("+T+")","i"),Sb={position:"absolute",visibility:"hidden",display:"block"},Tb={letterSpacing:0,fontWeight:400},Ub=["Webkit","O","Moz","ms"];function Vb(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ub.length;while(e--)if(b=Ub[e]+c,b in a)return b;return d}function Wb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=n._data(d,"olddisplay",Gb(d.nodeName)))):f[g]||(e=V(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Xb(a,b,c){var d=Qb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Yb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Zb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Jb(a),g=l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Kb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ib.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Yb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Kb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=Vb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Rb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]="",i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Vb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Kb(a,b,d)),"normal"===f&&b in Tb&&(f=Tb[b]),""===c||c?(e=parseFloat(f),c===!0||n.isNumeric(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&Pb.test(n.css(a,"display"))?n.swap(a,Sb,function(){return Zb(a,b,d)}):Zb(a,b,d):void 0},set:function(a,c,d){var e=d&&Jb(a);return Xb(a,c,d?Yb(a,b,d,l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Ob.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Nb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Nb.test(f)?f.replace(Nb,e):f+" "+e)}}),n.cssHooks.marginRight=Mb(l.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},Kb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Hb.test(a)||(n.cssHooks[a+b].set=Xb)}),n.fn.extend({css:function(a,b){return W(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Jb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)
4
+ },a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function $b(a,b,c,d,e){return new $b.prototype.init(a,b,c,d,e)}n.Tween=$b,$b.prototype={constructor:$b,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=$b.propHooks[this.prop];return a&&a.get?a.get(this):$b.propHooks._default.get(this)},run:function(a){var b,c=$b.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):$b.propHooks._default.set(this),this}},$b.prototype.init.prototype=$b.prototype,$b.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},$b.propHooks.scrollTop=$b.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=$b.prototype.init,n.fx.step={};var _b,ac,bc=/^(?:toggle|show|hide)$/,cc=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),dc=/queueHooks$/,ec=[jc],fc={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=cc.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&cc.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function gc(){return setTimeout(function(){_b=void 0}),_b=n.now()}function hc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=U[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function ic(a,b,c){for(var d,e=(fc[b]||[]).concat(fc["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function jc(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k=Gb(a.nodeName),"none"===j&&(j=k),"inline"===j&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==k?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],bc.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}if(!n.isEmptyObject(o)){r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=ic(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function kc(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function lc(a,b,c){var d,e,f=0,g=ec.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=_b||gc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:_b||gc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(kc(k,j.opts.specialEasing);g>f;f++)if(d=ec[f].call(j,a,k,j.opts))return d;return n.map(k,ic,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(lc,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],fc[c]=fc[c]||[],fc[c].unshift(b)},prefilter:function(a,b){b?ec.unshift(a):ec.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=lc(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&dc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(hc(b,!0),a,d,e)}}),n.each({slideDown:hc("show"),slideUp:hc("hide"),slideToggle:hc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(_b=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),_b=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ac||(ac=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(ac),ac=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=z.createElement("div");e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=e.getElementsByTagName("a")[0],c=z.createElement("select"),d=c.appendChild(z.createElement("option")),b=e.getElementsByTagName("input")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==e.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=d.selected,l.enctype=!!z.createElement("form").enctype,c.disabled=!0,l.optDisabled=!d.disabled,b=z.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value,a=b=c=d=e=null}();var mc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(mc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var nc,oc,pc=n.expr.attrHandle,qc=/^(?:checked|selected)$/i,rc=l.getSetAttribute,sc=l.input;n.fn.extend({attr:function(a,b){return W(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===L?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?oc:nc)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?sc&&rc||!qc.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(rc?c:d)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),oc={set:function(a,b,c){return b===!1?n.removeAttr(a,c):sc&&rc||!qc.test(c)?a.setAttribute(!rc&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=pc[b]||n.find.attr;pc[b]=sc&&rc||!qc.test(b)?function(a,b,d){var e,f;return d||(f=pc[b],pc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,pc[b]=f),e}:function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),sc&&rc||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):nc&&nc.set(a,b,c)}}),rc||(nc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},pc.id=pc.name=pc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:nc.set},n.attrHooks.contenteditable={set:function(a,b,c){nc.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var tc=/^(?:input|select|textarea|button|object)$/i,uc=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return W(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):tc.test(a.nodeName)||uc.test(a.nodeName)&&a.href?0:-1}}}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var vc=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===L||"boolean"===c)&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||a===!1?"":n._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(vc," ").indexOf(b)>=0)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var wc=n.now(),xc=/\?/,yc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(yc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var zc,Ac,Bc=/#.*$/,Cc=/([?&])_=[^&]*/,Dc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ec=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fc=/^(?:GET|HEAD)$/,Gc=/^\/\//,Hc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ic={},Jc={},Kc="*/".concat("*");try{Ac=location.href}catch(Lc){Ac=z.createElement("a"),Ac.href="",Ac=Ac.href}zc=Hc.exec(Ac.toLowerCase())||[];function Mc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nc(a,b,c,d){var e={},f=a===Jc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Oc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Pc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Qc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ac,type:"GET",isLocal:Ec.test(zc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Oc(Oc(a,n.ajaxSettings),b):Oc(n.ajaxSettings,a)},ajaxPrefilter:Mc(Ic),ajaxTransport:Mc(Jc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Dc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||Ac)+"").replace(Bc,"").replace(Gc,zc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(F)||[""],null==k.crossDomain&&(c=Hc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===zc[1]&&c[2]===zc[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(zc[3]||("http:"===zc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),Nc(Ic,k,b,v),2===t)return v;h=k.global,h&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Fc.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(xc.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Cc.test(e)?e.replace(Cc,"$1_="+wc++):e+(xc.test(e)?"&":"?")+"_="+wc++)),k.ifModified&&(n.lastModified[e]&&v.setRequestHeader("If-Modified-Since",n.lastModified[e]),n.etag[e]&&v.setRequestHeader("If-None-Match",n.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Kc+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Nc(Jc,k,b,v)){v.readyState=1,h&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Pc(k,v,c)),u=Qc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(n.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!l.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||n.css(a,"display"))},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Rc=/%20/g,Sc=/\[\]$/,Tc=/\r?\n/g,Uc=/^(?:submit|button|image|reset|file)$/i,Vc=/^(?:input|select|textarea|keygen)/i;function Wc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Sc.test(a)?d(a,e):Wc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Wc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Wc(c,a[c],b,e);return d.join("&").replace(Rc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Vc.test(this.nodeName)&&!Uc.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Tc,"\r\n")}}):{name:b.name,value:c.replace(Tc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$c()||_c()}:$c;var Xc=0,Yc={},Zc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Yc)Yc[a](void 0,!0)}),l.cors=!!Zc&&"withCredentials"in Zc,Zc=l.ajax=!!Zc,Zc&&n.ajaxTransport(function(a){if(!a.crossDomain||l.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Yc[g],b=void 0,f.onreadystatechange=n.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function $c(){try{return new a.XMLHttpRequest}catch(b){}}function _c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=z.head||n("head")[0]||z.documentElement;return{send:function(d,e){b=z.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ad=[],bd=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ad.pop()||n.expando+"_"+wc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bd.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&bd.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bd,"$1"+e):b.jsonp!==!1&&(b.url+=(xc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ad.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||z;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var cd=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&cd)return cd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&n.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});
skin/frontend/base/default/dropfin/pricecountdown/type-2/js/jquery.time-to.js ADDED
@@ -0,0 +1,487 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Time-To jQuery plug-in
3
+ * Show countdown timer or realtime clock
4
+ *
5
+ * @author Alexey Teterin <altmoc@gmail.com>
6
+ * @version 1.1.2
7
+ * @license MIT http://opensource.org/licenses/MIT
8
+ * @date 2015-11-26
9
+ */
10
+ 'use strict';
11
+
12
+ (function(factory) {
13
+ if(typeof exports === 'object') {
14
+ // CommonJS (Node)
15
+ var jQuery = require('jquery');
16
+ module.exports = factory(jQuery || $);
17
+ } else if(typeof define === 'function' && define.amd) {
18
+ // AMD (RequireJS)
19
+ define(['jquery'], factory);
20
+ } else {
21
+ // globals
22
+ factory(jQuery || $);
23
+ }
24
+ }(function($) {
25
+
26
+ var SECONDS_PER_DAY = 86400,
27
+ SECONDS_PER_HOUR = 3600;
28
+
29
+ var defaults = {
30
+ callback: null, // callback function for exec when timer out
31
+ captionSize: 0, // font-size by pixels for captions, if 0 then calculate automaticaly
32
+ countdown: true, // is countdown or real clock
33
+ countdownAlertLimit: 10, // limit in seconds when display red background
34
+ displayCaptions: false, // display captions under digit groups
35
+ displayDays: 0, // display day timer, count of days digits
36
+ displayHours: true, // display hours
37
+ fontFamily: 'Verdana, sans-serif',
38
+ fontSize: 0, // font-size of a digit by pixels (0 - use CSS instead)
39
+ lang: 'en', // language of caption
40
+ seconds: 0, // timer's countdown value in seconds
41
+ start: true, // true to start timer immediately
42
+ theme: 'white', // 'white' or 'black' theme fo timer's view
43
+
44
+ width: 25, // width of a digit area
45
+ height: 30, // height of a digit area
46
+ gap: 11, // gap size between numbers
47
+ vals: [0, 0, 0, 0, 0, 0, 0, 0, 0], // private, current value of each digit
48
+ limits: [9, 9, 9, 2, 9, 5, 9, 5, 9],// private, max value of each digit
49
+ iSec: 8, // private, index of second digit
50
+ iHour: 4, // private, index of hour digit
51
+ tickTimeout: 1000, // timeout betweet each timer tick in miliseconds
52
+ intervalId: null // private
53
+ };
54
+
55
+ var methods = {
56
+ start: function(sec) {
57
+ var me = this,
58
+ intervalId;
59
+
60
+ if(sec) {
61
+ init.call(this, sec);
62
+ intervalId = setTimeout(function() { tick.call(me); }, 1000);
63
+
64
+ // save start time
65
+ this.data('ttStartTime', $.now());
66
+ this.data('intervalId', intervalId);
67
+ }
68
+ },
69
+
70
+ stop: function() {
71
+ var data = this.data();
72
+
73
+ if(data.intervalId) {
74
+ clearTimeout(data.intervalId);
75
+ this.data('intervalId', null);
76
+ }
77
+ return data;
78
+ },
79
+
80
+ reset: function(sec) {
81
+ var data = methods.stop.call(this);
82
+
83
+ this.find('div').css({ backgroundPosition: 'left center' });
84
+ this.find('ul').parent().removeClass('timeTo-alert');
85
+
86
+ if(typeof sec === 'undefined') {
87
+ sec = data.seconds;
88
+ }
89
+ init.call(this, sec, true);
90
+ }
91
+ };
92
+
93
+ var dictionary = {
94
+ en:{days:'Days', hours:'Hours', min:'Mins', sec:'Secs'},
95
+ ru:{days:'дней', hours:'часов', min:'минут', sec:'секунд'},
96
+ ua:{days:'днiв', hours:'годин', min:'хвилин', sec:'секунд'},
97
+ de:{days:'Tag', hours:'Uhr', min:'Minuten', sec:'Secunden'},
98
+ fr:{days:'jours', hours:'heures', min:'Mins', sec:'Secs'},
99
+ sp:{days:'días', hours:'horas', min:'minutos', sec:'segundos'},
100
+ it:{days:'giorni', hours:'ore', min:'minuti', sec:'secondi'},
101
+ nl:{days:'dagen', hours:'uren', min:'minuten', sec:'seconden'},
102
+ no:{days:'dager', hours:'timer', min:'minutter', sec:'sekunder'},
103
+ pt:{days:'dias', hours:'horas', min:'minutos', sec:'segundos'},
104
+ tr:{days:'gün', hours:'saat', min:'dakika', sec:'saniye'}
105
+ };
106
+
107
+ if(typeof $.support.transition === 'undefined') {
108
+ $.support.transition = (function() {
109
+ var thisBody = document.body || document.documentElement,
110
+ thisStyle = thisBody.style,
111
+ support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined;
112
+
113
+ return support;
114
+ })();
115
+ }
116
+
117
+
118
+ $.fn.timeTo = function() {
119
+ var method, options = {};
120
+ var i, arg, num;
121
+ var time, days, now = $.now();
122
+ var tt, sec, m, t;
123
+
124
+ for(i = 0; arg = arguments[i]; ++i) {
125
+ if(i == 0 && typeof arg === 'string') {
126
+ method = arg;
127
+ }
128
+ else {
129
+ if(typeof arg === 'object') {
130
+ // arg is a Date object
131
+ if(typeof arg.getTime === 'function') {
132
+ options.timeTo = arg;
133
+ }
134
+ else { // arg is an options object
135
+ options = $.extend(options, arg);
136
+ }
137
+ }
138
+ else {
139
+ // arg is callback
140
+ if(typeof arg === 'function') {
141
+ options.callback = arg;
142
+ }
143
+ else {
144
+ num = parseInt(arg, 10);
145
+ // arg is seconds of timeout
146
+ if(!isNaN(num)) {
147
+ options.seconds = num;
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+
154
+ // set time to countdown to
155
+ if(options.timeTo) {
156
+ if(options.timeTo.getTime) { // set time as date object
157
+ time = options.timeTo.getTime();
158
+ }
159
+ else if(typeof options.timeTo === 'number') { // set time as integer in millisec
160
+ time = options.timeTo;
161
+ }
162
+ if(time > now) {
163
+ options.seconds = Math.floor((time - now) / 1000);
164
+ }
165
+ else {
166
+ options.seconds = 0;
167
+ }
168
+ } else if(options.time || !options.seconds) {
169
+ time = options.time;
170
+
171
+ if(!time) {
172
+ time = new Date();
173
+ }
174
+
175
+ if(typeof time === 'object' && time.getTime) {
176
+ options.seconds = time.getHours()*SECONDS_PER_HOUR + time.getMinutes()*60 + time.getSeconds();
177
+ options.countdown = false;
178
+ }
179
+ else if(typeof time === 'string') {
180
+ tt = time.split(':');
181
+ sec = 0;
182
+ m = 1;
183
+
184
+ while(t = tt.pop()) {
185
+ sec += t * m;
186
+ m *= 60;
187
+ }
188
+ options.seconds = sec;
189
+ options.countdown = false;
190
+ }
191
+ }
192
+
193
+ if(options.countdown !== false && options.seconds > SECONDS_PER_DAY && typeof options.displayDays === 'undefined') {
194
+ days = Math.floor(options.seconds / SECONDS_PER_DAY);
195
+ options.displayDays = days < 10 && 1 || days < 100 && 2 || 3;
196
+ }
197
+ else if(options.displayDays === true) {
198
+ options.displayDays = 3;
199
+ }
200
+ else if(options.displayDays) {
201
+ options.displayDays = options.displayDays > 0 ? Math.floor(options.displayDays) : 3;
202
+ }
203
+
204
+ return this.each(function() {
205
+ var $this = $(this),
206
+ data = $this.data(),
207
+ opt, defs = {}, i, css;
208
+
209
+ if(data.intervalId) {
210
+ clearInterval(data.intervalId);
211
+ data.intervalId = null;
212
+ }
213
+
214
+ if(!data.vals) { // new clock
215
+ if(data.opt) {
216
+ opt = data.options;
217
+ }
218
+ else {
219
+ opt = options;
220
+ }
221
+
222
+ // clone the defaults object
223
+ for(i in defaults) {
224
+ if($.isArray(defaults[i])) {
225
+ defs[i] = defaults[i].slice(0);
226
+ }
227
+ else {
228
+ defs[i] = defaults[i];
229
+ }
230
+ }
231
+
232
+ data = $.extend(defs, opt);
233
+ data.options = opt;
234
+
235
+ data.height = Math.round(data.fontSize * 100 / 93) || data.height;
236
+ data.width = Math.round(data.fontSize * 0.8 + data.height * 0.13) || data.width;
237
+ data.displayHours = !!(data.displayDays || data.displayHours);
238
+
239
+ css = {
240
+ fontFamily: data.fontFamily
241
+ };
242
+ if(data.fontSize > 0) {
243
+ css.fontSize = data.fontSize +'px';
244
+ }
245
+
246
+ $this
247
+ .addClass('timeTo')
248
+ .addClass('timeTo-'+ data.theme)
249
+ .css(css);
250
+
251
+ var left = Math.round(data.height / 10),
252
+ ulhtml = '<ul style="left:'+ left +'px; top:-'+ data.height +'px"><li>0</li><li>0</li></ul></div>',
253
+ style = data.fontSize ? ' style="width:'+ data.width +'px; height:'+ data.height +'px;"' : ' style=""',
254
+ dhtml1 = '<div class="first"'+ style +'>'+ ulhtml,
255
+ dhtml2 = '<div'+ style +'>'+ ulhtml,
256
+ dot2 = '<span>:</span>',
257
+ maxWidth = Math.round(data.width * 2 + 3),
258
+ captionSize = data.captionSize || data.fontSize && Math.round(data.fontSize * 0.43),
259
+ fsStyleVal = captionSize ? 'font-size:'+ captionSize +'px;' : '',
260
+ fsStyle = captionSize ? ' style="'+ fsStyleVal +'"' : '',
261
+
262
+ thtml = (data.displayCaptions ?
263
+ (data.displayHours
264
+ ? '<figure style="max-width:'+ maxWidth +'px">$1<figcaption'+ fsStyle +'>'+ dictionary[data.lang].hours +'</figcaption></figure>'+ dot2
265
+ : '') +
266
+ '<figure style="max-width:'+ maxWidth +'px">$1<figcaption'+ fsStyle +'>'+ dictionary[data.lang].min +'</figcaption></figure>'+ dot2 +
267
+ '<figure style="max-width:'+ maxWidth +'px">$1<figcaption'+ fsStyle +'>'+ dictionary[data.lang].sec +'</figcaption></figure>'
268
+ : (data.displayHours ? '$1'+ dot2 : '') +'$1'+ dot2 +'$1'
269
+ ).replace(/\$1/g, dhtml1 + dhtml2);
270
+
271
+ if(data.displayDays > 0) {
272
+ var marginRight = data.fontSize * 0.4 || defaults.gap,
273
+ dhtml = dhtml1;
274
+ for(i = data.displayDays - 1; i > 0; i--) {
275
+ dhtml += i === 1 ? dhtml2.replace('">', 'margin-right:'+ Math.round(marginRight) +'px">') : dhtml2;
276
+ }
277
+ thtml = (data.displayCaptions ?
278
+ '<figure style="width:'+ Math.round(data.width*data.displayDays + marginRight + 4) +'px">$1'
279
+ + '<figcaption style="'+ fsStyleVal +'padding-right:'+ Math.round(marginRight) +'px">'
280
+ + dictionary[data.lang].days +'</figcaption></figure>'
281
+ : '$1').replace(
282
+ /\$1/, dhtml
283
+ ) + thtml;
284
+ }
285
+ $this.html(thtml);
286
+ }
287
+ else if(method !== 'reset') { // exists clock
288
+ $.extend(data, options);
289
+ }
290
+
291
+ var $digits = $this.find('div');
292
+
293
+ if($digits.length < data.vals.length) {
294
+ var dif = data.vals.length - $digits.length,
295
+ vals = data.vals, limits = data.limits;
296
+
297
+ data.vals = [];
298
+ data.limits = [];
299
+ for(i = 0; i < $digits.length; i++) {
300
+ data.vals[i] = vals[dif + i];
301
+ data.limits[i] = limits[dif + i];
302
+ }
303
+ data.iSec = data.vals.length - 1;
304
+ data.iHour = data.vals.length - 5;
305
+ }
306
+ data.sec = data.seconds;
307
+ $this.data(data);
308
+
309
+ if(method && methods[method]) {
310
+ methods[ method ].call($this, data.seconds);
311
+ }
312
+ else if(data.start) {
313
+ methods.start.call($this, data.seconds);
314
+ }
315
+ else {
316
+ init.call($this, data.seconds);
317
+ }
318
+ });
319
+ };
320
+
321
+
322
+ function init(sec, force) {
323
+ var data = this.data(),
324
+ $digits = this.find('ul'),
325
+ isInterval = false;
326
+
327
+ if(!data.vals || $digits.length === 0) {
328
+ return;
329
+ }
330
+
331
+ if(!sec) {
332
+ sec = data.seconds;
333
+ }
334
+
335
+ if(data.intervalId) {
336
+ isInterval = true;
337
+ clearTimeout(data.intervalId);
338
+ }
339
+
340
+ var days = Math.floor(sec / SECONDS_PER_DAY),
341
+ rest = days * SECONDS_PER_DAY,
342
+ h = Math.floor((sec - rest) / SECONDS_PER_HOUR);
343
+
344
+ rest += h * SECONDS_PER_HOUR;
345
+
346
+ var m = Math.floor((sec - rest) / 60);
347
+
348
+ rest += m * 60;
349
+
350
+ var s = sec - rest,
351
+ str = (days < 100 ? '0' + (days < 10 ? '0' : '') : '') + days + (h < 10 ? '0' : '') + h + (m < 10 ? '0' : '') + m + (s < 10 ? '0' : '') + s;
352
+
353
+ for(var i = data.vals.length - 1, j = str.length - 1, v; i >= 0; i--, j--) {
354
+ v = parseInt(str.substr(j, 1));
355
+ data.vals[i] = v;
356
+ $digits.eq(i).children().html(v);
357
+ }
358
+ if(isInterval || force) {
359
+ var me = this;
360
+ data.ttStartTime = $.now();
361
+ data.intervalId = setTimeout(function() { tick.call(me); }, 1000);
362
+ this.data('intervalId', data.intervalId);
363
+ }
364
+ }
365
+
366
+ /**
367
+ * Switch specified digit by digit index
368
+ * @param {number} - digit index
369
+ */
370
+ function tick(digit) {
371
+ var $digits = this.find('ul'),
372
+ data = this.data();
373
+
374
+ if(!data.vals || $digits.length == 0) {
375
+ if(data.intervalId) {
376
+ clearTimeout(data.intervalId);
377
+ this.data('intervalId', null);
378
+ }
379
+ if(data.callback) {
380
+ data.callback();
381
+ }
382
+
383
+ return;
384
+ }
385
+ if(digit == undefined) {
386
+ digit = data.iSec;
387
+ }
388
+
389
+ var n = data.vals[digit],
390
+ $ul = $digits.eq(digit),
391
+ $li = $ul.children(),
392
+ step = data.countdown ? -1 : 1;
393
+
394
+ $li.eq(1).html(n);
395
+ n += step;
396
+
397
+ if(digit == data.iSec) {
398
+ var tickTimeout = data.tickTimeout,
399
+ timeDiff = $.now() - data.ttStartTime;
400
+
401
+ data.sec += step;
402
+
403
+ tickTimeout += Math.abs(data.seconds - data.sec) * tickTimeout - timeDiff;
404
+
405
+ data.intervalId = setTimeout(function() { tick.call(me); }, tickTimeout);
406
+ }
407
+
408
+ if(n < 0 || n > data.limits[digit]) {
409
+ if(n < 0) {
410
+ n = data.limits[digit];
411
+ if(digit == data.iHour && data.displayDays > 0 && digit > 0 && data.vals[digit-1] == 0) // fix for hours when day changing
412
+ n = 3;
413
+ }
414
+ else {
415
+ n = 0;
416
+ }
417
+
418
+ if(digit > 0) {
419
+ tick.call(this, digit-1);
420
+ }
421
+ }
422
+ $li.eq(0).html(n);
423
+
424
+ var me = this;
425
+
426
+ if($.support.transition) {
427
+ $ul.addClass('transition');
428
+ $ul.css({top:0});
429
+
430
+ setTimeout(function() {
431
+ $ul.removeClass('transition');
432
+ $li.eq(1).html(n);
433
+ $ul.css({top:"-"+ data.height +"px"});
434
+
435
+ if(step > 0 || digit != data.iSec) {
436
+ return;
437
+ }
438
+
439
+ if(data.sec == data.countdownAlertLimit) {
440
+ $digits.parent().addClass('timeTo-alert');
441
+ }
442
+
443
+ if(data.sec === 0) {
444
+ $digits.parent().removeClass('timeTo-alert');
445
+
446
+ if(data.intervalId) {
447
+ clearTimeout(data.intervalId);
448
+ me.data('intervalId', null);
449
+ }
450
+
451
+ if(typeof data.callback === 'function') {
452
+ data.callback();
453
+ }
454
+ }
455
+ }, 410);
456
+ }
457
+ else {
458
+ $ul.stop().animate({top:0}, 400, digit != data.iSec ? null : function() {
459
+ $li.eq(1).html(n);
460
+ $ul.css({top:"-"+ data.height +"px"});
461
+ if(step > 0 || digit != data.iSec) {
462
+ return;
463
+ }
464
+
465
+ if(data.sec == data.countdownAlertLimit) {
466
+ $digits.parent().addClass('timeTo-alert');
467
+ }
468
+ else if(data.sec == 0) {
469
+ $digits.parent().removeClass('timeTo-alert');
470
+
471
+ if(data.intervalId) {
472
+ clearTimeout(data.intervalId);
473
+ me.data('intervalId', null);
474
+ }
475
+
476
+ if(typeof data.callback === 'function') {
477
+ data.callback();
478
+ }
479
+ }
480
+ });
481
+ }
482
+ data.vals[digit] = n;
483
+ }
484
+
485
+ return jQuery;
486
+
487
+ }));
skin/frontend/base/default/dropfin/pricecountdown/type-2/js/jquery.time-to.min.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Time-To jQuery plug-in
3
+ * Show countdown timer or realtime clock
4
+ *
5
+ * @author Alexey Teterin <altmoc@gmail.com>
6
+ * @version 1.1.2
7
+ * @license MIT http://opensource.org/licenses/MIT
8
+ * @date 2015-11-26
9
+ */
10
+ "use strict";!function(t){if("object"==typeof exports){var i=require("jquery");module.exports=t(i||$)}else"function"==typeof define&&define.amd?define(["jquery"],t):t(i||$)}(function(t){function i(i,n){var o=this.data(),l=this.find("ul"),r=!1;if(o.vals&&0!==l.length){i||(i=o.seconds),o.intervalId&&(r=!0,clearTimeout(o.intervalId));var d=Math.floor(i/s),c=d*s,u=Math.floor((i-c)/a);c+=u*a;var h=Math.floor((i-c)/60);c+=60*h;for(var f,p=i-c,m=(100>d?"0"+(10>d?"0":""):"")+d+(10>u?"0":"")+u+(10>h?"0":"")+h+(10>p?"0":"")+p,y=o.vals.length-1,v=m.length-1;y>=0;y--,v--)f=parseInt(m.substr(v,1)),o.vals[y]=f,l.eq(y).children().html(f);if(r||n){var g=this;o.ttStartTime=t.now(),o.intervalId=setTimeout(function(){e.call(g)},1e3),this.data("intervalId",o.intervalId)}}}function e(i){var s=this.find("ul"),a=this.data();if(!a.vals||0==s.length)return a.intervalId&&(clearTimeout(a.intervalId),this.data("intervalId",null)),void(a.callback&&a.callback());void 0==i&&(i=a.iSec);var n=a.vals[i],o=s.eq(i),l=o.children(),r=a.countdown?-1:1;if(l.eq(1).html(n),n+=r,i==a.iSec){var d=a.tickTimeout,c=t.now()-a.ttStartTime;a.sec+=r,d+=Math.abs(a.seconds-a.sec)*d-c,a.intervalId=setTimeout(function(){e.call(u)},d)}(0>n||n>a.limits[i])&&(0>n?(n=a.limits[i],i==a.iHour&&a.displayDays>0&&i>0&&0==a.vals[i-1]&&(n=3)):n=0,i>0&&e.call(this,i-1)),l.eq(0).html(n);var u=this;t.support.transition?(o.addClass("transition"),o.css({top:0}),setTimeout(function(){o.removeClass("transition"),l.eq(1).html(n),o.css({top:"-"+a.height+"px"}),r>0||i!=a.iSec||(a.sec==a.countdownAlertLimit&&s.parent().addClass("timeTo-alert"),0===a.sec&&(s.parent().removeClass("timeTo-alert"),a.intervalId&&(clearTimeout(a.intervalId),u.data("intervalId",null)),"function"==typeof a.callback&&a.callback()))},410)):o.stop().animate({top:0},400,i!=a.iSec?null:function(){l.eq(1).html(n),o.css({top:"-"+a.height+"px"}),r>0||i!=a.iSec||(a.sec==a.countdownAlertLimit?s.parent().addClass("timeTo-alert"):0==a.sec&&(s.parent().removeClass("timeTo-alert"),a.intervalId&&(clearTimeout(a.intervalId),u.data("intervalId",null)),"function"==typeof a.callback&&a.callback()))}),a.vals[i]=n}var s=86400,a=3600,n={callback:null,captionSize:0,countdown:!0,countdownAlertLimit:10,displayCaptions:!1,displayDays:0,displayHours:!0,fontFamily:"Verdana, sans-serif",fontSize:0,lang:"en",seconds:0,start:!0,theme:"white",width:25,height:30,gap:11,vals:[0,0,0,0,0,0,0,0,0],limits:[9,9,9,2,9,5,9,5,9],iSec:8,iHour:4,tickTimeout:1e3,intervalId:null},o={start:function(s){var a,n=this;s&&(i.call(this,s),a=setTimeout(function(){e.call(n)},1e3),this.data("ttStartTime",t.now()),this.data("intervalId",a))},stop:function(){var t=this.data();return t.intervalId&&(clearTimeout(t.intervalId),this.data("intervalId",null)),t},reset:function(t){var e=o.stop.call(this);this.find("div").css({backgroundPosition:"left center"}),this.find("ul").parent().removeClass("timeTo-alert"),"undefined"==typeof t&&(t=e.seconds),i.call(this,t,!0)}},l={en:{days:"days",hours:"hours",min:"minutes",sec:"seconds"},ru:{days:"дней",hours:"часов",min:"минут",sec:"секунд"},ua:{days:"днiв",hours:"годин",min:"хвилин",sec:"секунд"},de:{days:"Tag",hours:"Uhr",min:"Minuten",sec:"Secunden"},fr:{days:"jours",hours:"heures",min:"minutes",sec:"secondes"},sp:{days:"días",hours:"horas",min:"minutos",sec:"segundos"},it:{days:"giorni",hours:"ore",min:"minuti",sec:"secondi"},nl:{days:"dagen",hours:"uren",min:"minuten",sec:"seconden"},no:{days:"dager",hours:"timer",min:"minutter",sec:"sekunder"},pt:{days:"dias",hours:"horas",min:"minutos",sec:"segundos"},tr:{days:"gün",hours:"saat",min:"dakika",sec:"saniye"}};return"undefined"==typeof t.support.transition&&(t.support.transition=function(){var t=document.body||document.documentElement,i=t.style,e=void 0!==i.transition||void 0!==i.WebkitTransition||void 0!==i.MozTransition||void 0!==i.MsTransition||void 0!==i.OTransition;return e}()),t.fn.timeTo=function(){var e,r,d,c,u,h,f,p,m,y,v={},g=t.now();for(r=0;d=arguments[r];++r)0==r&&"string"==typeof d?e=d:"object"==typeof d?"function"==typeof d.getTime?v.timeTo=d:v=t.extend(v,d):"function"==typeof d?v.callback=d:(c=parseInt(d,10),isNaN(c)||(v.seconds=c));if(v.timeTo)v.timeTo.getTime?u=v.timeTo.getTime():"number"==typeof v.timeTo&&(u=v.timeTo),u>g?v.seconds=Math.floor((u-g)/1e3):v.seconds=0;else if(v.time||!v.seconds)if(u=v.time,u||(u=new Date),"object"==typeof u&&u.getTime)v.seconds=u.getHours()*a+60*u.getMinutes()+u.getSeconds(),v.countdown=!1;else if("string"==typeof u){for(f=u.split(":"),p=0,m=1;y=f.pop();)p+=y*m,m*=60;v.seconds=p,v.countdown=!1}return v.countdown!==!1&&v.seconds>s&&"undefined"==typeof v.displayDays?(h=Math.floor(v.seconds/s),v.displayDays=10>h&&1||100>h&&2||3):v.displayDays===!0?v.displayDays=3:v.displayDays&&(v.displayDays=v.displayDays>0?Math.floor(v.displayDays):3),this.each(function(){var s,a,r,d=t(this),c=d.data(),u={};if(c.intervalId&&(clearInterval(c.intervalId),c.intervalId=null),c.vals)"reset"!==e&&t.extend(c,v);else{s=c.opt?c.options:v;for(a in n)t.isArray(n[a])?u[a]=n[a].slice(0):u[a]=n[a];c=t.extend(u,s),c.options=s,c.height=Math.round(100*c.fontSize/93)||c.height,c.width=Math.round(.8*c.fontSize+.13*c.height)||c.width,c.displayHours=!(!c.displayDays&&!c.displayHours),r={fontFamily:c.fontFamily},c.fontSize>0&&(r.fontSize=c.fontSize+"px"),d.addClass("timeTo").addClass("timeTo-"+c.theme).css(r);var h=Math.round(c.height/10),f='<ul style="left:'+h+"px; top:-"+c.height+'px"><li>0</li><li>0</li></ul></div>',p=c.fontSize?' style="width:'+c.width+"px; height:"+c.height+'px;"':' style=""',m='<div class="first"'+p+">"+f,y="<div"+p+">"+f,g="<span>:</span>",T=Math.round(2*c.width+3),I=c.captionSize||c.fontSize&&Math.round(.43*c.fontSize),w=I?"font-size:"+I+"px;":"",S=I?' style="'+w+'"':"",x=(c.displayCaptions?(c.displayHours?'<figure style="max-width:'+T+'px">$1<figcaption'+S+">"+l[c.lang].hours+"</figcaption></figure>"+g:"")+'<figure style="max-width:'+T+'px">$1<figcaption'+S+">"+l[c.lang].min+"</figcaption></figure>"+g+'<figure style="max-width:'+T+'px">$1<figcaption'+S+">"+l[c.lang].sec+"</figcaption></figure>":(c.displayHours?"$1"+g:"")+"$1"+g+"$1").replace(/\$1/g,m+y);if(c.displayDays>0){var M=.4*c.fontSize||n.gap,b=m;for(a=c.displayDays-1;a>0;a--)b+=1===a?y.replace('">',"margin-right:"+Math.round(M)+'px">'):y;x=(c.displayCaptions?'<figure style="width:'+Math.round(c.width*c.displayDays+M+4)+'px">$1<figcaption style="'+w+"padding-right:"+Math.round(M)+'px">'+l[c.lang].days+"</figcaption></figure>":"$1").replace(/\$1/,b)+x}d.html(x)}var k=d.find("div");if(k.length<c.vals.length){var D=c.vals.length-k.length,z=c.vals,C=c.limits;for(c.vals=[],c.limits=[],a=0;a<k.length;a++)c.vals[a]=z[D+a],c.limits[a]=C[D+a];c.iSec=c.vals.length-1,c.iHour=c.vals.length-5}c.sec=c.seconds,d.data(c),e&&o[e]?o[e].call(d,c.seconds):c.start?o.start.call(d,c.seconds):i.call(d,c.seconds)})},jQuery});
skin/frontend/base/default/dropfin/pricecountdown/type-4/css/flipclock.css ADDED
@@ -0,0 +1,492 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Get the bourbon mixin from http://bourbon.io */
2
+ /* Reset */
3
+ .flip-clock-wrapper * {
4
+ -webkit-box-sizing: border-box;
5
+ -moz-box-sizing: border-box;
6
+ -ms-box-sizing: border-box;
7
+ -o-box-sizing: border-box;
8
+ box-sizing: border-box;
9
+ -webkit-backface-visibility: hidden;
10
+ -moz-backface-visibility: hidden;
11
+ -ms-backface-visibility: hidden;
12
+ -o-backface-visibility: hidden;
13
+ backface-visibility: hidden;
14
+ }
15
+
16
+ .flip-clock-wrapper a {
17
+ cursor: pointer;
18
+ text-decoration: none;
19
+ color: #ccc; }
20
+
21
+ .flip-clock-wrapper a:hover {
22
+ color: #fff; }
23
+
24
+ .flip-clock-wrapper ul {
25
+ list-style: none; }
26
+
27
+ .flip-clock-wrapper.clearfix:before,
28
+ .flip-clock-wrapper.clearfix:after {
29
+ content: " ";
30
+ display: table; }
31
+
32
+ .flip-clock-wrapper.clearfix:after {
33
+ clear: both; }
34
+
35
+ .flip-clock-wrapper.clearfix {
36
+ *zoom: 1; }
37
+
38
+ /* Main */
39
+ .flip-clock-wrapper {
40
+ font: normal 11px "Helvetica Neue", Helvetica, sans-serif;
41
+ -webkit-user-select: none; }
42
+
43
+ .flip-clock-meridium {
44
+ background: none !important;
45
+ box-shadow: 0 0 0 !important;
46
+ font-size: 36px !important; }
47
+
48
+ .flip-clock-meridium a { color: #313333; }
49
+
50
+ .flip-clock-wrapper {
51
+ text-align: center;
52
+ position: relative;
53
+ width: 100%;
54
+ /*margin: 1em;*/
55
+ }
56
+
57
+ .flip-clock-wrapper:before,
58
+ .flip-clock-wrapper:after {
59
+ content: " "; /* 1 */
60
+ display: table; /* 2 */
61
+ }
62
+ .flip-clock-wrapper:after {
63
+ clear: both;
64
+ }
65
+
66
+ /* Skeleton */
67
+ .flip-clock-wrapper ul {
68
+ position: relative;
69
+ float: left;
70
+ margin: 5px;
71
+ width: 50px;
72
+ height: 80px;
73
+ font-size: 50px;
74
+ font-weight: bold;
75
+ line-height: 87px;
76
+ border-radius: 6px;
77
+ background: #000;
78
+ }
79
+
80
+ .flip-clock-wrapper ul li {
81
+ z-index: 1;
82
+ position: absolute;
83
+ left: 0;
84
+ top: 0;
85
+ width: 100%;
86
+ height: 100%;
87
+ line-height: 87px;
88
+ text-decoration: none !important;
89
+ }
90
+
91
+ .flip-clock-wrapper ul li:first-child {
92
+ z-index: 2; }
93
+
94
+ .flip-clock-wrapper ul li a {
95
+ display: block;
96
+ height: 100%;
97
+ -webkit-perspective: 200px;
98
+ -moz-perspective: 200px;
99
+ perspective: 200px;
100
+ margin: 0 !important;
101
+ overflow: visible !important;
102
+ cursor: default !important; }
103
+
104
+ .flip-clock-wrapper ul li a div {
105
+ z-index: 1;
106
+ position: absolute;
107
+ left: 0;
108
+ width: 100%;
109
+ height: 50%;
110
+ font-size: 80px;
111
+ overflow: hidden;
112
+ outline: 1px solid transparent; }
113
+
114
+ .flip-clock-wrapper ul li a div .shadow {
115
+ position: absolute;
116
+ width: 100%;
117
+ height: 100%;
118
+ z-index: 2; }
119
+
120
+ .flip-clock-wrapper ul li a div.up {
121
+ -webkit-transform-origin: 50% 100%;
122
+ -moz-transform-origin: 50% 100%;
123
+ -ms-transform-origin: 50% 100%;
124
+ -o-transform-origin: 50% 100%;
125
+ transform-origin: 50% 100%;
126
+ top: 0; }
127
+
128
+ .flip-clock-wrapper ul li a div.up:after {
129
+ content: "";
130
+ position: absolute;
131
+ top: 44px;
132
+ left: 0;
133
+ z-index: 5;
134
+ width: 100%;
135
+ height: 3px;
136
+ background-color: #000;
137
+ background-color: rgba(0, 0, 0, 0.4); }
138
+
139
+ .flip-clock-wrapper ul li a div.down {
140
+ -webkit-transform-origin: 50% 0;
141
+ -moz-transform-origin: 50% 0;
142
+ -ms-transform-origin: 50% 0;
143
+ -o-transform-origin: 50% 0;
144
+ transform-origin: 50% 0;
145
+ bottom: 0;
146
+ border-bottom-left-radius: 6px;
147
+ border-bottom-right-radius: 6px;
148
+ }
149
+
150
+ .flip-clock-wrapper ul li a div div.inn {
151
+ position: absolute;
152
+ left: 0;
153
+ z-index: 1;
154
+ width: 100%;
155
+ height: 200%;
156
+ color: #ccc;
157
+ text-shadow: 0 1px 2px #000;
158
+ text-align: center;
159
+ background-color: #333;
160
+ border-radius: 6px;
161
+ font-size: 50px; }
162
+
163
+ .flip-clock-wrapper ul li a div.up div.inn {
164
+ top: 0; }
165
+
166
+ .flip-clock-wrapper ul li a div.down div.inn {
167
+ bottom: 0; }
168
+
169
+ /* PLAY */
170
+ .flip-clock-wrapper ul.play li.flip-clock-before {
171
+ z-index: 3; }
172
+
173
+ .flip-clock-wrapper .flip { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); }
174
+
175
+ .flip-clock-wrapper ul.play li.flip-clock-active {
176
+ -webkit-animation: asd 0.5s 0.5s linear both;
177
+ -moz-animation: asd 0.5s 0.5s linear both;
178
+ animation: asd 0.5s 0.5s linear both;
179
+ z-index: 5; }
180
+
181
+ .flip-clock-divider {
182
+ float: left;
183
+ display: inline-block;
184
+ position: relative;
185
+ width: 20px;
186
+ height: 100px; }
187
+
188
+ .flip-clock-divider:first-child {
189
+ width: 0; }
190
+
191
+ .flip-clock-dot {
192
+ display: block;
193
+ background: #323434;
194
+ width: 10px;
195
+ height: 10px;
196
+ position: absolute;
197
+ border-radius: 50%;
198
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
199
+ left: 5px; }
200
+
201
+ .flip-clock-divider .flip-clock-label {
202
+ position: absolute;
203
+ top: 7em;
204
+ right: -77px;
205
+ color: black;
206
+ text-shadow: none; }
207
+
208
+ .flip-clock-divider.minutes .flip-clock-label {
209
+ right: -88px; }
210
+
211
+ .flip-clock-divider.hours .flip-clock-label {
212
+ right: -80px; }
213
+
214
+ .flip-clock-divider.mins .flip-clock-label {
215
+ right: -76px; }
216
+
217
+ .flip-clock-divider.seconds .flip-clock-label {
218
+ right: -76px; }
219
+
220
+ .flip-clock-dot.top {
221
+ top: 30px; }
222
+
223
+ .flip-clock-dot.bottom {
224
+ bottom: 30px; }
225
+
226
+ @-webkit-keyframes asd {
227
+ 0% {
228
+ z-index: 2; }
229
+
230
+ 20% {
231
+ z-index: 4; }
232
+
233
+ 100% {
234
+ z-index: 4; } }
235
+
236
+ @-moz-keyframes asd {
237
+ 0% {
238
+ z-index: 2; }
239
+
240
+ 20% {
241
+ z-index: 4; }
242
+
243
+ 100% {
244
+ z-index: 4; } }
245
+
246
+ @-o-keyframes asd {
247
+ 0% {
248
+ z-index: 2; }
249
+
250
+ 20% {
251
+ z-index: 4; }
252
+
253
+ 100% {
254
+ z-index: 4; } }
255
+
256
+ @keyframes asd {
257
+ 0% {
258
+ z-index: 2; }
259
+
260
+ 20% {
261
+ z-index: 4; }
262
+
263
+ 100% {
264
+ z-index: 4; } }
265
+
266
+ .flip-clock-wrapper ul.play li.flip-clock-active .down {
267
+ z-index: 2;
268
+ -webkit-animation: turn 0.5s 0.5s linear both;
269
+ -moz-animation: turn 0.5s 0.5s linear both;
270
+ animation: turn 0.5s 0.5s linear both; }
271
+
272
+ @-webkit-keyframes turn {
273
+ 0% {
274
+ -webkit-transform: rotateX(90deg); }
275
+
276
+ 100% {
277
+ -webkit-transform: rotateX(0deg); } }
278
+
279
+ @-moz-keyframes turn {
280
+ 0% {
281
+ -moz-transform: rotateX(90deg); }
282
+
283
+ 100% {
284
+ -moz-transform: rotateX(0deg); } }
285
+
286
+ @-o-keyframes turn {
287
+ 0% {
288
+ -o-transform: rotateX(90deg); }
289
+
290
+ 100% {
291
+ -o-transform: rotateX(0deg); } }
292
+
293
+ @keyframes turn {
294
+ 0% {
295
+ transform: rotateX(90deg); }
296
+
297
+ 100% {
298
+ transform: rotateX(0deg); } }
299
+
300
+ .flip-clock-wrapper ul.play li.flip-clock-before .up {
301
+ z-index: 2;
302
+ -webkit-animation: turn2 0.5s linear both;
303
+ -moz-animation: turn2 0.5s linear both;
304
+ animation: turn2 0.5s linear both; }
305
+
306
+ @-webkit-keyframes turn2 {
307
+ 0% {
308
+ -webkit-transform: rotateX(0deg); }
309
+
310
+ 100% {
311
+ -webkit-transform: rotateX(-90deg); } }
312
+
313
+ @-moz-keyframes turn2 {
314
+ 0% {
315
+ -moz-transform: rotateX(0deg); }
316
+
317
+ 100% {
318
+ -moz-transform: rotateX(-90deg); } }
319
+
320
+ @-o-keyframes turn2 {
321
+ 0% {
322
+ -o-transform: rotateX(0deg); }
323
+
324
+ 100% {
325
+ -o-transform: rotateX(-90deg); } }
326
+
327
+ @keyframes turn2 {
328
+ 0% {
329
+ transform: rotateX(0deg); }
330
+
331
+ 100% {
332
+ transform: rotateX(-90deg); } }
333
+
334
+ .flip-clock-wrapper ul li.flip-clock-active {
335
+ z-index: 3; }
336
+
337
+ /* SHADOW */
338
+ .flip-clock-wrapper ul.play li.flip-clock-before .up .shadow {
339
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
340
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, black));
341
+ background: linear, top, rgba(0, 0, 0, 0.1) 0%, black 100%;
342
+ background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
343
+ background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
344
+ background: linear, to bottom, rgba(0, 0, 0, 0.1) 0%, black 100%;
345
+ -webkit-animation: show 0.5s linear both;
346
+ -moz-animation: show 0.5s linear both;
347
+ animation: show 0.5s linear both; }
348
+
349
+ .flip-clock-wrapper ul.play li.flip-clock-active .up .shadow {
350
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
351
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, black));
352
+ background: linear, top, rgba(0, 0, 0, 0.1) 0%, black 100%;
353
+ background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
354
+ background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
355
+ background: linear, to bottom, rgba(0, 0, 0, 0.1) 0%, black 100%;
356
+ -webkit-animation: hide 0.5s 0.3s linear both;
357
+ -moz-animation: hide 0.5s 0.3s linear both;
358
+ animation: hide 0.5s 0.3s linear both; }
359
+
360
+ /*DOWN*/
361
+ .flip-clock-wrapper ul.play li.flip-clock-before .down .shadow {
362
+ background: -moz-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
363
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, black), color-stop(100%, rgba(0, 0, 0, 0.1)));
364
+ background: linear, top, black 0%, rgba(0, 0, 0, 0.1) 100%;
365
+ background: -o-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
366
+ background: -ms-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
367
+ background: linear, to bottom, black 0%, rgba(0, 0, 0, 0.1) 100%;
368
+ -webkit-animation: show 0.5s linear both;
369
+ -moz-animation: show 0.5s linear both;
370
+ animation: show 0.5s linear both; }
371
+
372
+ .flip-clock-wrapper ul.play li.flip-clock-active .down .shadow {
373
+ background: -moz-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
374
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, black), color-stop(100%, rgba(0, 0, 0, 0.1)));
375
+ background: linear, top, black 0%, rgba(0, 0, 0, 0.1) 100%;
376
+ background: -o-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
377
+ background: -ms-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
378
+ background: linear, to bottom, black 0%, rgba(0, 0, 0, 0.1) 100%;
379
+ -webkit-animation: hide 0.5s 0.3s linear both;
380
+ -moz-animation: hide 0.5s 0.3s linear both;
381
+ animation: hide 0.5s 0.2s linear both; }
382
+
383
+ @-webkit-keyframes show {
384
+ 0% {
385
+ opacity: 0; }
386
+
387
+ 100% {
388
+ opacity: 1; } }
389
+
390
+ @-moz-keyframes show {
391
+ 0% {
392
+ opacity: 0; }
393
+
394
+ 100% {
395
+ opacity: 1; } }
396
+
397
+ @-o-keyframes show {
398
+ 0% {
399
+ opacity: 0; }
400
+
401
+ 100% {
402
+ opacity: 1; } }
403
+
404
+ @keyframes show {
405
+ 0% {
406
+ opacity: 0; }
407
+
408
+ 100% {
409
+ opacity: 1; } }
410
+
411
+ @-webkit-keyframes hide {
412
+ 0% {
413
+ opacity: 1; }
414
+
415
+ 100% {
416
+ opacity: 0; } }
417
+
418
+ @-moz-keyframes hide {
419
+ 0% {
420
+ opacity: 1; }
421
+
422
+ 100% {
423
+ opacity: 0; } }
424
+
425
+ @-o-keyframes hide {
426
+ 0% {
427
+ opacity: 1; }
428
+
429
+ 100% {
430
+ opacity: 0; } }
431
+
432
+ @keyframes hide {
433
+ 0% {
434
+ opacity: 1; }
435
+
436
+ 100% {
437
+ opacity: 0; } }
438
+
439
+ .base-theme.pdp-clock-4 {
440
+ padding-bottom: 20px;
441
+ }
442
+
443
+ .base-theme.flip-clock-wrapper ul {
444
+ width: 30px;
445
+ height: 50px;
446
+ font-size: 30px;
447
+ line-height: 50px;
448
+ margin: 3px;
449
+ }
450
+
451
+ .base-theme.flip-clock-wrapper ul li {
452
+ line-height: 50px;
453
+ }
454
+
455
+ .base-theme.flip-clock-wrapper ul li a div div.inn {
456
+ font-size: 30px;
457
+ }
458
+
459
+ .base-theme span.flip-clock-dot {
460
+ width: 5px;
461
+ height: 5px;
462
+ left: 3px;
463
+ }
464
+
465
+ .base-theme span.flip-clock-divider {
466
+ width: 10px;
467
+ height: 60px;
468
+ }
469
+
470
+ .base-theme span.flip-clock-divider.days {
471
+ width: 0px;
472
+ }
473
+
474
+ .base-theme span.flip-clock-dot.top {
475
+ top: 20px;
476
+ }
477
+
478
+ .base-theme span.flip-clock-dot.bottom {
479
+ bottom: 23px;
480
+ }
481
+
482
+ .base-theme .flip-clock-divider .flip-clock-label {
483
+ top: 4.5em;
484
+ }
485
+
486
+ .base-theme .flip-clock-divider .flip-clock-label {
487
+ right: -55px;
488
+ }
489
+
490
+ .base-theme .flip-clock-divider.mins .flip-clock-label, .base-theme .flip-clock-divider.seconds .flip-clock-label {
491
+ right: -52px;
492
+ }
skin/frontend/base/default/dropfin/pricecountdown/type-4/css/flipclock_for_plp.css ADDED
@@ -0,0 +1,469 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Get the bourbon mixin from http://bourbon.io */
2
+ /* Reset */
3
+ .flip-clock-wrapper * {
4
+ -webkit-box-sizing: border-box;
5
+ -moz-box-sizing: border-box;
6
+ -ms-box-sizing: border-box;
7
+ -o-box-sizing: border-box;
8
+ box-sizing: border-box;
9
+ -webkit-backface-visibility: hidden;
10
+ -moz-backface-visibility: hidden;
11
+ -ms-backface-visibility: hidden;
12
+ -o-backface-visibility: hidden;
13
+ backface-visibility: hidden;
14
+ }
15
+
16
+ .flip-clock-wrapper a {
17
+ cursor: pointer;
18
+ text-decoration: none;
19
+ color: #ccc; }
20
+
21
+ .flip-clock-wrapper a:hover {
22
+ color: #fff; }
23
+
24
+ .flip-clock-wrapper ul {
25
+ list-style: none; }
26
+
27
+ .flip-clock-wrapper.clearfix:before,
28
+ .flip-clock-wrapper.clearfix:after {
29
+ content: " ";
30
+ display: table; }
31
+
32
+ .flip-clock-wrapper.clearfix:after {
33
+ clear: both; }
34
+
35
+ .flip-clock-wrapper.clearfix {
36
+ *zoom: 1; }
37
+
38
+ /* Main */
39
+ .flip-clock-wrapper {
40
+ font: normal 11px "Helvetica Neue", Helvetica, sans-serif;
41
+ -webkit-user-select: none; }
42
+
43
+ .flip-clock-meridium {
44
+ background: none !important;
45
+ box-shadow: 0 0 0 !important;
46
+ font-size: 36px !important; }
47
+
48
+ .flip-clock-meridium a { color: #313333; }
49
+
50
+ .flip-clock-wrapper {
51
+ text-align: center;
52
+ position: relative;
53
+ width: 100%;
54
+ /* margin: 1em; */
55
+ padding-bottom: 15px;
56
+ }
57
+
58
+ .flip-clock-wrapper:before,
59
+ .flip-clock-wrapper:after {
60
+ content: " "; /* 1 */
61
+ display: table; /* 2 */
62
+ }
63
+ .flip-clock-wrapper:after {
64
+ clear: both;
65
+ }
66
+
67
+ /* Skeleton */
68
+ .flip-clock-wrapper ul {
69
+ position: relative;
70
+ float: left;
71
+ margin: 2px;
72
+ width: 15px;
73
+ height: 30px;
74
+ font-size: 15px;
75
+ /* font-weight: bold; */
76
+ /* line-height: 87px; */
77
+ border-radius: 3px;
78
+ background: #000;
79
+ }
80
+
81
+ .flip-clock-wrapper ul li {
82
+ z-index: 1;
83
+ position: absolute;
84
+ left: 0;
85
+ top: 0;
86
+ width: 100%;
87
+ height: 100%;
88
+ line-height: 29px;
89
+ text-decoration: none !important;
90
+ }
91
+
92
+ .flip-clock-wrapper ul li:first-child {
93
+ z-index: 2;
94
+ }
95
+
96
+ .flip-clock-wrapper ul li a {
97
+ display: block;
98
+ height: 100%;
99
+ -webkit-perspective: 200px;
100
+ -moz-perspective: 200px;
101
+ perspective: 200px;
102
+ margin: 0 !important;
103
+ overflow: visible !important;
104
+ cursor: default !important;
105
+ }
106
+
107
+ .flip-clock-wrapper ul li a div {
108
+ z-index: 1;
109
+ position: absolute;
110
+ left: 0;
111
+ width: 100%;
112
+ height: 50%;
113
+ font-size: 15px;
114
+ overflow: hidden;
115
+ outline: 1px solid transparent;
116
+ }
117
+
118
+ .flip-clock-wrapper ul li a div .shadow {
119
+ position: absolute;
120
+ width: 100%;
121
+ height: 100%;
122
+ z-index: 2; }
123
+
124
+ .flip-clock-wrapper ul li a div.up {
125
+ -webkit-transform-origin: 50% 100%;
126
+ -moz-transform-origin: 50% 100%;
127
+ -ms-transform-origin: 50% 100%;
128
+ -o-transform-origin: 50% 100%;
129
+ transform-origin: 50% 100%;
130
+ top: 0; }
131
+
132
+ .flip-clock-wrapper ul li a div.up:after {
133
+ content: "";
134
+ position: absolute;
135
+ top: 44px;
136
+ left: 0;
137
+ z-index: 5;
138
+ width: 100%;
139
+ height: 3px;
140
+ background-color: #000;
141
+ background-color: rgba(0, 0, 0, 0.4); }
142
+
143
+ .flip-clock-wrapper ul li a div.down {
144
+ -webkit-transform-origin: 50% 0;
145
+ -moz-transform-origin: 50% 0;
146
+ -ms-transform-origin: 50% 0;
147
+ -o-transform-origin: 50% 0;
148
+ transform-origin: 50% 0;
149
+ bottom: 0;
150
+ border-bottom-left-radius: 6px;
151
+ border-bottom-right-radius: 6px;
152
+ }
153
+
154
+ .flip-clock-wrapper ul li a div div.inn {
155
+ position: absolute;
156
+ left: 0;
157
+ z-index: 1;
158
+ width: 100%;
159
+ height: 200%;
160
+ color: #ccc;
161
+ text-shadow: 0 1px 2px #000;
162
+ text-align: center;
163
+ background-color: #333;
164
+ border-radius: 6px;
165
+ font-size: 15px;
166
+ }
167
+
168
+ .flip-clock-wrapper ul li a div.up div.inn {
169
+ top: 0; }
170
+
171
+ .flip-clock-wrapper ul li a div.down div.inn {
172
+ bottom: 0; }
173
+
174
+ /* PLAY */
175
+ .flip-clock-wrapper ul.play li.flip-clock-before {
176
+ z-index: 3; }
177
+
178
+ .flip-clock-wrapper .flip {/* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); */}
179
+
180
+ .flip-clock-wrapper ul.play li.flip-clock-active {
181
+ -webkit-animation: asd 0.5s 0.5s linear both;
182
+ -moz-animation: asd 0.5s 0.5s linear both;
183
+ animation: asd 0.5s 0.5s linear both;
184
+ z-index: 5; }
185
+
186
+ .flip-clock-divider {
187
+ float: left;
188
+ display: inline-block;
189
+ position: relative;
190
+ width: 2px;
191
+ height: 26px;
192
+ }
193
+
194
+ .flip-clock-divider:first-child {
195
+ width: 0; }
196
+
197
+ .flip-clock-dot {
198
+ display: block;
199
+ background: #323434;
200
+ width: 2px;
201
+ height: 2px;
202
+ position: absolute;
203
+ border-radius: 50%;
204
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
205
+ /* left: 1px; */
206
+ }
207
+
208
+ .flip-clock-divider .flip-clock-label {
209
+ position: absolute;
210
+ top: 28px;
211
+ right: -31px;
212
+ color: black;
213
+ text-shadow: none;
214
+ }
215
+
216
+ .flip-clock-divider.minutes .flip-clock-label {
217
+ right: -42px;
218
+ }
219
+
220
+ .flip-clock-divider.hours .flip-clock-label {
221
+ right: -33px;
222
+ }
223
+
224
+ .flip-clock-divider.mins .flip-clock-label {
225
+ right: -30px;
226
+ }
227
+
228
+ .flip-clock-divider.seconds .flip-clock-label {
229
+ right: -30px;
230
+ }
231
+
232
+ .flip-clock-dot.top {
233
+ top: 10px;
234
+ }
235
+
236
+ .flip-clock-dot.bottom {
237
+ bottom: 7px;
238
+ }
239
+
240
+ @-webkit-keyframes asd {
241
+ 0% {
242
+ z-index: 2; }
243
+
244
+ 20% {
245
+ z-index: 4; }
246
+
247
+ 100% {
248
+ z-index: 4; } }
249
+
250
+ @-moz-keyframes asd {
251
+ 0% {
252
+ z-index: 2; }
253
+
254
+ 20% {
255
+ z-index: 4; }
256
+
257
+ 100% {
258
+ z-index: 4; } }
259
+
260
+ @-o-keyframes asd {
261
+ 0% {
262
+ z-index: 2; }
263
+
264
+ 20% {
265
+ z-index: 4; }
266
+
267
+ 100% {
268
+ z-index: 4; } }
269
+
270
+ @keyframes asd {
271
+ 0% {
272
+ z-index: 2; }
273
+
274
+ 20% {
275
+ z-index: 4; }
276
+
277
+ 100% {
278
+ z-index: 4; } }
279
+
280
+ .flip-clock-wrapper ul.play li.flip-clock-active .down {
281
+ z-index: 2;
282
+ -webkit-animation: turn 0.5s 0.5s linear both;
283
+ -moz-animation: turn 0.5s 0.5s linear both;
284
+ animation: turn 0.5s 0.5s linear both; }
285
+
286
+ @-webkit-keyframes turn {
287
+ 0% {
288
+ -webkit-transform: rotateX(90deg); }
289
+
290
+ 100% {
291
+ -webkit-transform: rotateX(0deg); } }
292
+
293
+ @-moz-keyframes turn {
294
+ 0% {
295
+ -moz-transform: rotateX(90deg); }
296
+
297
+ 100% {
298
+ -moz-transform: rotateX(0deg); } }
299
+
300
+ @-o-keyframes turn {
301
+ 0% {
302
+ -o-transform: rotateX(90deg); }
303
+
304
+ 100% {
305
+ -o-transform: rotateX(0deg); } }
306
+
307
+ @keyframes turn {
308
+ 0% {
309
+ transform: rotateX(90deg); }
310
+
311
+ 100% {
312
+ transform: rotateX(0deg); } }
313
+
314
+ .flip-clock-wrapper ul.play li.flip-clock-before .up {
315
+ z-index: 2;
316
+ -webkit-animation: turn2 0.5s linear both;
317
+ -moz-animation: turn2 0.5s linear both;
318
+ animation: turn2 0.5s linear both; }
319
+
320
+ @-webkit-keyframes turn2 {
321
+ 0% {
322
+ -webkit-transform: rotateX(0deg); }
323
+
324
+ 100% {
325
+ -webkit-transform: rotateX(-90deg); } }
326
+
327
+ @-moz-keyframes turn2 {
328
+ 0% {
329
+ -moz-transform: rotateX(0deg); }
330
+
331
+ 100% {
332
+ -moz-transform: rotateX(-90deg); } }
333
+
334
+ @-o-keyframes turn2 {
335
+ 0% {
336
+ -o-transform: rotateX(0deg); }
337
+
338
+ 100% {
339
+ -o-transform: rotateX(-90deg); } }
340
+
341
+ @keyframes turn2 {
342
+ 0% {
343
+ transform: rotateX(0deg); }
344
+
345
+ 100% {
346
+ transform: rotateX(-90deg); } }
347
+
348
+ .flip-clock-wrapper ul li.flip-clock-active {
349
+ z-index: 3; }
350
+
351
+ /* SHADOW */
352
+ .flip-clock-wrapper ul.play li.flip-clock-before .up .shadow {
353
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
354
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, black));
355
+ background: linear, top, rgba(0, 0, 0, 0.1) 0%, black 100%;
356
+ background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
357
+ background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
358
+ background: linear, to bottom, rgba(0, 0, 0, 0.1) 0%, black 100%;
359
+ -webkit-animation: show 0.5s linear both;
360
+ -moz-animation: show 0.5s linear both;
361
+ animation: show 0.5s linear both; }
362
+
363
+ .flip-clock-wrapper ul.play li.flip-clock-active .up .shadow {
364
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
365
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, black));
366
+ background: linear, top, rgba(0, 0, 0, 0.1) 0%, black 100%;
367
+ background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
368
+ background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
369
+ background: linear, to bottom, rgba(0, 0, 0, 0.1) 0%, black 100%;
370
+ -webkit-animation: hide 0.5s 0.3s linear both;
371
+ -moz-animation: hide 0.5s 0.3s linear both;
372
+ animation: hide 0.5s 0.3s linear both; }
373
+
374
+ /*DOWN*/
375
+ .flip-clock-wrapper ul.play li.flip-clock-before .down .shadow {
376
+ background: -moz-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
377
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, black), color-stop(100%, rgba(0, 0, 0, 0.1)));
378
+ background: linear, top, black 0%, rgba(0, 0, 0, 0.1) 100%;
379
+ background: -o-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
380
+ background: -ms-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
381
+ background: linear, to bottom, black 0%, rgba(0, 0, 0, 0.1) 100%;
382
+ -webkit-animation: show 0.5s linear both;
383
+ -moz-animation: show 0.5s linear both;
384
+ animation: show 0.5s linear both; }
385
+
386
+ .flip-clock-wrapper ul.play li.flip-clock-active .down .shadow {
387
+ background: -moz-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
388
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, black), color-stop(100%, rgba(0, 0, 0, 0.1)));
389
+ background: linear, top, black 0%, rgba(0, 0, 0, 0.1) 100%;
390
+ background: -o-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
391
+ background: -ms-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
392
+ background: linear, to bottom, black 0%, rgba(0, 0, 0, 0.1) 100%;
393
+ -webkit-animation: hide 0.5s 0.3s linear both;
394
+ -moz-animation: hide 0.5s 0.3s linear both;
395
+ animation: hide 0.5s 0.2s linear both; }
396
+
397
+ @-webkit-keyframes show {
398
+ 0% {
399
+ opacity: 0; }
400
+
401
+ 100% {
402
+ opacity: 1; } }
403
+
404
+ @-moz-keyframes show {
405
+ 0% {
406
+ opacity: 0; }
407
+
408
+ 100% {
409
+ opacity: 1; } }
410
+
411
+ @-o-keyframes show {
412
+ 0% {
413
+ opacity: 0; }
414
+
415
+ 100% {
416
+ opacity: 1; } }
417
+
418
+ @keyframes show {
419
+ 0% {
420
+ opacity: 0; }
421
+
422
+ 100% {
423
+ opacity: 1; } }
424
+
425
+ @-webkit-keyframes hide {
426
+ 0% {
427
+ opacity: 1; }
428
+
429
+ 100% {
430
+ opacity: 0; } }
431
+
432
+ @-moz-keyframes hide {
433
+ 0% {
434
+ opacity: 1; }
435
+
436
+ 100% {
437
+ opacity: 0; } }
438
+
439
+ @-o-keyframes hide {
440
+ 0% {
441
+ opacity: 1; }
442
+
443
+ 100% {
444
+ opacity: 0; } }
445
+
446
+ @keyframes hide {
447
+ 0% {
448
+ opacity: 1; }
449
+
450
+ 100% {
451
+ opacity: 0; } }
452
+
453
+ .plp-countdown.flip-clock-wrapper ul {
454
+ margin: 1px;
455
+ width: 14px;
456
+ height: 25px;
457
+ }
458
+
459
+ .plp-countdown.base-theme .flip-clock-divider .flip-clock-label {
460
+ right: -29px;
461
+ }
462
+
463
+ .plp-countdown.base-theme .flip-clock-divider.hours .flip-clock-label {
464
+ right: -30px;
465
+ }
466
+
467
+ .plp-countdown.flip-clock-wrapper ul li {
468
+ line-height: 25px;
469
+ }
skin/frontend/base/default/dropfin/pricecountdown/type-4/js/flipclock.js ADDED
@@ -0,0 +1,2782 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Base.js, version 1.1a
3
+ Copyright 2006-2010, Dean Edwards
4
+ License: http://www.opensource.org/licenses/mit-license.php
5
+ */
6
+
7
+ var Base = function() {
8
+ // dummy
9
+ };
10
+
11
+ Base.extend = function(_instance, _static) { // subclass
12
+
13
+ "use strict";
14
+
15
+ var extend = Base.prototype.extend;
16
+
17
+ // build the prototype
18
+ Base._prototyping = true;
19
+
20
+ var proto = new this();
21
+
22
+ extend.call(proto, _instance);
23
+
24
+ proto.base = function() {
25
+ // call this method from any other method to invoke that method's ancestor
26
+ };
27
+
28
+ delete Base._prototyping;
29
+
30
+ // create the wrapper for the constructor function
31
+ //var constructor = proto.constructor.valueOf(); //-dean
32
+ var constructor = proto.constructor;
33
+ var klass = proto.constructor = function() {
34
+ if (!Base._prototyping) {
35
+ if (this._constructing || this.constructor == klass) { // instantiation
36
+ this._constructing = true;
37
+ constructor.apply(this, arguments);
38
+ delete this._constructing;
39
+ } else if (arguments[0] !== null) { // casting
40
+ return (arguments[0].extend || extend).call(arguments[0], proto);
41
+ }
42
+ }
43
+ };
44
+
45
+ // build the class interface
46
+ klass.ancestor = this;
47
+ klass.extend = this.extend;
48
+ klass.forEach = this.forEach;
49
+ klass.implement = this.implement;
50
+ klass.prototype = proto;
51
+ klass.toString = this.toString;
52
+ klass.valueOf = function(type) {
53
+ //return (type == "object") ? klass : constructor; //-dean
54
+ return (type == "object") ? klass : constructor.valueOf();
55
+ };
56
+ extend.call(klass, _static);
57
+ // class initialisation
58
+ if (typeof klass.init == "function") klass.init();
59
+ return klass;
60
+ };
61
+
62
+ Base.prototype = {
63
+ extend: function(source, value) {
64
+ if (arguments.length > 1) { // extending with a name/value pair
65
+ var ancestor = this[source];
66
+ if (ancestor && (typeof value == "function") && // overriding a method?
67
+ // the valueOf() comparison is to avoid circular references
68
+ (!ancestor.valueOf || ancestor.valueOf() != value.valueOf()) &&
69
+ /\bbase\b/.test(value)) {
70
+ // get the underlying method
71
+ var method = value.valueOf();
72
+ // override
73
+ value = function() {
74
+ var previous = this.base || Base.prototype.base;
75
+ this.base = ancestor;
76
+ var returnValue = method.apply(this, arguments);
77
+ this.base = previous;
78
+ return returnValue;
79
+ };
80
+ // point to the underlying method
81
+ value.valueOf = function(type) {
82
+ return (type == "object") ? value : method;
83
+ };
84
+ value.toString = Base.toString;
85
+ }
86
+ this[source] = value;
87
+ } else if (source) { // extending with an object literal
88
+ var extend = Base.prototype.extend;
89
+ // if this object has a customised extend method then use it
90
+ if (!Base._prototyping && typeof this != "function") {
91
+ extend = this.extend || extend;
92
+ }
93
+ var proto = {toSource: null};
94
+ // do the "toString" and other methods manually
95
+ var hidden = ["constructor", "toString", "valueOf"];
96
+ // if we are prototyping then include the constructor
97
+ var i = Base._prototyping ? 0 : 1;
98
+ while (key = hidden[i++]) {
99
+ if (source[key] != proto[key]) {
100
+ extend.call(this, key, source[key]);
101
+
102
+ }
103
+ }
104
+ // copy each of the source object's properties to this object
105
+ for (var key in source) {
106
+ if (!proto[key]) extend.call(this, key, source[key]);
107
+ }
108
+ }
109
+ return this;
110
+ }
111
+ };
112
+
113
+ // initialise
114
+ Base = Base.extend({
115
+ constructor: function() {
116
+ this.extend(arguments[0]);
117
+ }
118
+ }, {
119
+ ancestor: Object,
120
+ version: "1.1",
121
+
122
+ forEach: function(object, block, context) {
123
+ for (var key in object) {
124
+ if (this.prototype[key] === undefined) {
125
+ block.call(context, object[key], key, object);
126
+ }
127
+ }
128
+ },
129
+
130
+ implement: function() {
131
+ for (var i = 0; i < arguments.length; i++) {
132
+ if (typeof arguments[i] == "function") {
133
+ // if it's a function, call it
134
+ arguments[i](this.prototype);
135
+ } else {
136
+ // add the interface using the extend method
137
+ this.prototype.extend(arguments[i]);
138
+ }
139
+ }
140
+ return this;
141
+ },
142
+
143
+ toString: function() {
144
+ return String(this.valueOf());
145
+ }
146
+ });
147
+ /*jshint smarttabs:true */
148
+
149
+ var FlipClock;
150
+
151
+ /**
152
+ * FlipClock.js
153
+ *
154
+ * @author Justin Kimbrell
155
+ * @copyright 2013 - Objective HTML, LLC
156
+ * @licesnse http://www.opensource.org/licenses/mit-license.php
157
+ */
158
+
159
+ (function($) {
160
+
161
+ "use strict";
162
+
163
+ /**
164
+ * FlipFlock Helper
165
+ *
166
+ * @param object A jQuery object or CSS select
167
+ * @param int An integer used to start the clock (no. seconds)
168
+ * @param object An object of properties to override the default
169
+ */
170
+
171
+ FlipClock = function(obj, digit, options) {
172
+ if(digit instanceof Object && digit instanceof Date === false) {
173
+ options = digit;
174
+ digit = 0;
175
+ }
176
+
177
+ return new FlipClock.Factory(obj, digit, options);
178
+ };
179
+
180
+ /**
181
+ * The global FlipClock.Lang object
182
+ */
183
+
184
+ FlipClock.Lang = {};
185
+
186
+ /**
187
+ * The Base FlipClock class is used to extend all other FlipFlock
188
+ * classes. It handles the callbacks and the basic setters/getters
189
+ *
190
+ * @param object An object of the default properties
191
+ * @param object An object of properties to override the default
192
+ */
193
+
194
+ FlipClock.Base = Base.extend({
195
+
196
+ /**
197
+ * Build Date
198
+ */
199
+
200
+ buildDate: '2014-12-12',
201
+
202
+ /**
203
+ * Version
204
+ */
205
+
206
+ version: '0.7.7',
207
+
208
+ /**
209
+ * Sets the default options
210
+ *
211
+ * @param object The default options
212
+ * @param object The override options
213
+ */
214
+
215
+ constructor: function(_default, options) {
216
+ if(typeof _default !== "object") {
217
+ _default = {};
218
+ }
219
+ if(typeof options !== "object") {
220
+ options = {};
221
+ }
222
+ this.setOptions($.extend(true, {}, _default, options));
223
+ },
224
+
225
+ /**
226
+ * Delegates the callback to the defined method
227
+ *
228
+ * @param object The default options
229
+ * @param object The override options
230
+ */
231
+
232
+ callback: function(method) {
233
+ if(typeof method === "function") {
234
+ var args = [];
235
+
236
+ for(var x = 1; x <= arguments.length; x++) {
237
+ if(arguments[x]) {
238
+ args.push(arguments[x]);
239
+ }
240
+ }
241
+
242
+ method.apply(this, args);
243
+ }
244
+ },
245
+
246
+ /**
247
+ * Log a string into the console if it exists
248
+ *
249
+ * @param string The name of the option
250
+ * @return mixed
251
+ */
252
+
253
+ log: function(str) {
254
+ if(window.console && console.log) {
255
+ console.log(str);
256
+ }
257
+ },
258
+
259
+ /**
260
+ * Get an single option value. Returns false if option does not exist
261
+ *
262
+ * @param string The name of the option
263
+ * @return mixed
264
+ */
265
+
266
+ getOption: function(index) {
267
+ if(this[index]) {
268
+ return this[index];
269
+ }
270
+ return false;
271
+ },
272
+
273
+ /**
274
+ * Get all options
275
+ *
276
+ * @return bool
277
+ */
278
+
279
+ getOptions: function() {
280
+ return this;
281
+ },
282
+
283
+ /**
284
+ * Set a single option value
285
+ *
286
+ * @param string The name of the option
287
+ * @param mixed The value of the option
288
+ */
289
+
290
+ setOption: function(index, value) {
291
+ this[index] = value;
292
+ },
293
+
294
+ /**
295
+ * Set a multiple options by passing a JSON object
296
+ *
297
+ * @param object The object with the options
298
+ * @param mixed The value of the option
299
+ */
300
+
301
+ setOptions: function(options) {
302
+ for(var key in options) {
303
+ if(typeof options[key] !== "undefined") {
304
+ this.setOption(key, options[key]);
305
+ }
306
+ }
307
+ }
308
+
309
+ });
310
+
311
+ }(jQuery));
312
+
313
+ /*jshint smarttabs:true */
314
+
315
+ /**
316
+ * FlipClock.js
317
+ *
318
+ * @author Justin Kimbrell
319
+ * @copyright 2013 - Objective HTML, LLC
320
+ * @licesnse http://www.opensource.org/licenses/mit-license.php
321
+ */
322
+
323
+ (function($) {
324
+
325
+ "use strict";
326
+
327
+ /**
328
+ * The FlipClock Face class is the base class in which to extend
329
+ * all other FlockClock.Face classes.
330
+ *
331
+ * @param object The parent FlipClock.Factory object
332
+ * @param object An object of properties to override the default
333
+ */
334
+
335
+ FlipClock.Face = FlipClock.Base.extend({
336
+
337
+ /**
338
+ * Sets whether or not the clock should start upon instantiation
339
+ */
340
+
341
+ autoStart: true,
342
+
343
+ /**
344
+ * An array of jQuery objects used for the dividers (the colons)
345
+ */
346
+
347
+ dividers: [],
348
+
349
+ /**
350
+ * An array of FlipClock.List objects
351
+ */
352
+
353
+ factory: false,
354
+
355
+ /**
356
+ * An array of FlipClock.List objects
357
+ */
358
+
359
+ lists: [],
360
+
361
+ /**
362
+ * Constructor
363
+ *
364
+ * @param object The parent FlipClock.Factory object
365
+ * @param object An object of properties to override the default
366
+ */
367
+
368
+ constructor: function(factory, options) {
369
+ this.dividers = [];
370
+ this.lists = [];
371
+ this.base(options);
372
+ this.factory = factory;
373
+ },
374
+
375
+ /**
376
+ * Build the clock face
377
+ */
378
+
379
+ build: function() {
380
+ if(this.autoStart) {
381
+ this.start();
382
+ }
383
+ },
384
+
385
+ /**
386
+ * Creates a jQuery object used for the digit divider
387
+ *
388
+ * @param mixed The divider label text
389
+ * @param mixed Set true to exclude the dots in the divider.
390
+ * If not set, is false.
391
+ */
392
+
393
+ createDivider: function(label, css, excludeDots) {
394
+ if(typeof css == "boolean" || !css) {
395
+ excludeDots = css;
396
+ css = label;
397
+ }
398
+
399
+ var dots = [
400
+ '<span class="'+this.factory.classes.dot+' top"></span>',
401
+ '<span class="'+this.factory.classes.dot+' bottom"></span>'
402
+ ].join('');
403
+
404
+ if(excludeDots) {
405
+ dots = '';
406
+ }
407
+
408
+ label = this.factory.localize(label);
409
+
410
+ var html = [
411
+ '<span class="'+this.factory.classes.divider+' '+(css ? css : '').toLowerCase()+'">',
412
+ '<span class="'+this.factory.classes.label+'">'+(label ? label : '')+'</span>',
413
+ dots,
414
+ '</span>'
415
+ ];
416
+
417
+ var $html = $(html.join(''));
418
+
419
+ this.dividers.push($html);
420
+
421
+ return $html;
422
+ },
423
+
424
+ /**
425
+ * Creates a FlipClock.List object and appends it to the DOM
426
+ *
427
+ * @param mixed The digit to select in the list
428
+ * @param object An object to override the default properties
429
+ */
430
+
431
+ createList: function(digit, options) {
432
+ if(typeof digit === "object") {
433
+ options = digit;
434
+ digit = 0;
435
+ }
436
+
437
+ var obj = new FlipClock.List(this.factory, digit, options);
438
+
439
+ this.lists.push(obj);
440
+
441
+ return obj;
442
+ },
443
+
444
+ /**
445
+ * Triggers when the clock is reset
446
+ */
447
+
448
+ reset: function() {
449
+ this.factory.time = new FlipClock.Time(
450
+ this.factory,
451
+ this.factory.original ? Math.round(this.factory.original) : 0,
452
+ {
453
+ minimumDigits: this.factory.minimumDigits
454
+ }
455
+ );
456
+
457
+ this.flip(this.factory.original, false);
458
+ },
459
+
460
+ /**
461
+ * Append a newly created list to the clock
462
+ */
463
+
464
+ appendDigitToClock: function(obj) {
465
+ obj.$el.append(false);
466
+ },
467
+
468
+ /**
469
+ * Add a digit to the clock face
470
+ */
471
+
472
+ addDigit: function(digit) {
473
+ var obj = this.createList(digit, {
474
+ classes: {
475
+ active: this.factory.classes.active,
476
+ before: this.factory.classes.before,
477
+ flip: this.factory.classes.flip
478
+ }
479
+ });
480
+
481
+ this.appendDigitToClock(obj);
482
+ },
483
+
484
+ /**
485
+ * Triggers when the clock is started
486
+ */
487
+
488
+ start: function() {},
489
+
490
+ /**
491
+ * Triggers when the time on the clock stops
492
+ */
493
+
494
+ stop: function() {},
495
+
496
+ /**
497
+ * Auto increments/decrements the value of the clock face
498
+ */
499
+
500
+ autoIncrement: function() {
501
+ if(!this.factory.countdown) {
502
+ this.increment();
503
+ }
504
+ else {
505
+ this.decrement();
506
+ }
507
+ },
508
+
509
+ /**
510
+ * Increments the value of the clock face
511
+ */
512
+
513
+ increment: function() {
514
+ this.factory.time.addSecond();
515
+ },
516
+
517
+ /**
518
+ * Decrements the value of the clock face
519
+ */
520
+
521
+ decrement: function() {
522
+ if(this.factory.time.getTimeSeconds() == 0) {
523
+ this.factory.stop()
524
+ }
525
+ else {
526
+ this.factory.time.subSecond();
527
+ }
528
+ },
529
+
530
+ /**
531
+ * Triggers when the numbers on the clock flip
532
+ */
533
+
534
+ flip: function(time, doNotAddPlayClass) {
535
+ var t = this;
536
+
537
+ $.each(time, function(i, digit) {
538
+ var list = t.lists[i];
539
+
540
+ if(list) {
541
+ if(!doNotAddPlayClass && digit != list.digit) {
542
+ list.play();
543
+ }
544
+
545
+ list.select(digit);
546
+ }
547
+ else {
548
+ t.addDigit(digit);
549
+ }
550
+ });
551
+ }
552
+
553
+ });
554
+
555
+ }(jQuery));
556
+
557
+ /*jshint smarttabs:true */
558
+
559
+ /**
560
+ * FlipClock.js
561
+ *
562
+ * @author Justin Kimbrell
563
+ * @copyright 2013 - Objective HTML, LLC
564
+ * @licesnse http://www.opensource.org/licenses/mit-license.php
565
+ */
566
+
567
+ (function($) {
568
+
569
+ "use strict";
570
+
571
+ /**
572
+ * The FlipClock Factory class is used to build the clock and manage
573
+ * all the public methods.
574
+ *
575
+ * @param object A jQuery object or CSS selector used to fetch
576
+ the wrapping DOM nodes
577
+ * @param mixed This is the digit used to set the clock. If an
578
+ object is passed, 0 will be used.
579
+ * @param object An object of properties to override the default
580
+ */
581
+
582
+ FlipClock.Factory = FlipClock.Base.extend({
583
+
584
+ /**
585
+ * The clock's animation rate.
586
+ *
587
+ * Note, currently this property doesn't do anything.
588
+ * This property is here to be used in the future to
589
+ * programmaticaly set the clock's animation speed
590
+ */
591
+
592
+ animationRate: 1000,
593
+
594
+ /**
595
+ * Auto start the clock on page load (True|False)
596
+ */
597
+
598
+ autoStart: true,
599
+
600
+ /**
601
+ * The callback methods
602
+ */
603
+
604
+ callbacks: {
605
+ destroy: false,
606
+ create: false,
607
+ init: false,
608
+ interval: false,
609
+ start: false,
610
+ stop: false,
611
+ reset: false
612
+ },
613
+
614
+ /**
615
+ * The CSS classes
616
+ */
617
+
618
+ classes: {
619
+ active: 'flip-clock-active',
620
+ before: 'flip-clock-before',
621
+ divider: 'flip-clock-divider',
622
+ dot: 'flip-clock-dot',
623
+ label: 'flip-clock-label',
624
+ flip: 'flip',
625
+ play: 'play',
626
+ wrapper: 'flip-clock-wrapper'
627
+ },
628
+
629
+ /**
630
+ * The name of the clock face class in use
631
+ */
632
+
633
+ clockFace: 'HourlyCounter',
634
+
635
+ /**
636
+ * The name of the clock face class in use
637
+ */
638
+
639
+ countdown: false,
640
+
641
+ /**
642
+ * The name of the default clock face class to use if the defined
643
+ * clockFace variable is not a valid FlipClock.Face object
644
+ */
645
+
646
+ defaultClockFace: 'HourlyCounter',
647
+
648
+ /**
649
+ * The default language
650
+ */
651
+
652
+ defaultLanguage: 'english',
653
+
654
+ /**
655
+ * The jQuery object
656
+ */
657
+
658
+ $el: false,
659
+
660
+ /**
661
+ * The FlipClock.Face object
662
+ */
663
+
664
+ face: true,
665
+
666
+ /**
667
+ * The language object after it has been loaded
668
+ */
669
+
670
+ lang: false,
671
+
672
+ /**
673
+ * The language being used to display labels (string)
674
+ */
675
+
676
+ language: 'english',
677
+
678
+ /**
679
+ * The minimum digits the clock must have
680
+ */
681
+
682
+ minimumDigits: 0,
683
+
684
+ /**
685
+ * The original starting value of the clock. Used for the reset method.
686
+ */
687
+
688
+ original: false,
689
+
690
+ /**
691
+ * Is the clock running? (True|False)
692
+ */
693
+
694
+ running: false,
695
+
696
+ /**
697
+ * The FlipClock.Time object
698
+ */
699
+
700
+ time: false,
701
+
702
+ /**
703
+ * The FlipClock.Timer object
704
+ */
705
+
706
+ timer: false,
707
+
708
+ /**
709
+ * The jQuery object (depcrecated)
710
+ */
711
+
712
+ $wrapper: false,
713
+
714
+ /**
715
+ * Constructor
716
+ *
717
+ * @param object The wrapping jQuery object
718
+ * @param object Number of seconds used to start the clock
719
+ * @param object An object override options
720
+ */
721
+
722
+ constructor: function(obj, digit, options) {
723
+
724
+ if(!options) {
725
+ options = {};
726
+ }
727
+
728
+ this.lists = [];
729
+ this.running = false;
730
+ this.base(options);
731
+
732
+ this.$el = $(obj).addClass(this.classes.wrapper);
733
+
734
+ // Depcrated support of the $wrapper property.
735
+ this.$wrapper = this.$el;
736
+
737
+ this.original = (digit instanceof Date) ? digit : (digit ? Math.round(digit) : 0);
738
+
739
+ this.time = new FlipClock.Time(this, this.original, {
740
+ minimumDigits: this.minimumDigits,
741
+ animationRate: this.animationRate
742
+ });
743
+
744
+ this.timer = new FlipClock.Timer(this, options);
745
+
746
+ this.loadLanguage(this.language);
747
+
748
+ this.loadClockFace(this.clockFace, options);
749
+
750
+ if(this.autoStart) {
751
+ this.start();
752
+ }
753
+
754
+ },
755
+
756
+ /**
757
+ * Load the FlipClock.Face object
758
+ *
759
+ * @param object The name of the FlickClock.Face class
760
+ * @param object An object override options
761
+ */
762
+
763
+ loadClockFace: function(name, options) {
764
+ var face, suffix = 'Face', hasStopped = false;
765
+
766
+ name = name.ucfirst()+suffix;
767
+
768
+ if(this.face.stop) {
769
+ this.stop();
770
+ hasStopped = true;
771
+ }
772
+
773
+ this.$el.html('');
774
+
775
+ this.time.minimumDigits = this.minimumDigits;
776
+
777
+ if(FlipClock[name]) {
778
+ face = new FlipClock[name](this, options);
779
+ }
780
+ else {
781
+ face = new FlipClock[this.defaultClockFace+suffix](this, options);
782
+ }
783
+
784
+ face.build();
785
+
786
+ this.face = face
787
+
788
+ if(hasStopped) {
789
+ this.start();
790
+ }
791
+
792
+ return this.face;
793
+ },
794
+
795
+ /**
796
+ * Load the FlipClock.Lang object
797
+ *
798
+ * @param object The name of the language to load
799
+ */
800
+
801
+ loadLanguage: function(name) {
802
+ var lang;
803
+
804
+ if(FlipClock.Lang[name.ucfirst()]) {
805
+ lang = FlipClock.Lang[name.ucfirst()];
806
+ }
807
+ else if(FlipClock.Lang[name]) {
808
+ lang = FlipClock.Lang[name];
809
+ }
810
+ else {
811
+ lang = FlipClock.Lang[this.defaultLanguage];
812
+ }
813
+
814
+ return this.lang = lang;
815
+ },
816
+
817
+ /**
818
+ * Localize strings into various languages
819
+ *
820
+ * @param string The index of the localized string
821
+ * @param object Optionally pass a lang object
822
+ */
823
+
824
+ localize: function(index, obj) {
825
+ var lang = this.lang;
826
+
827
+ if(!index) {
828
+ return null;
829
+ }
830
+
831
+ var lindex = index.toLowerCase();
832
+
833
+ if(typeof obj == "object") {
834
+ lang = obj;
835
+ }
836
+
837
+ if(lang && lang[lindex]) {
838
+ return lang[lindex];
839
+ }
840
+
841
+ return index;
842
+ },
843
+
844
+
845
+ /**
846
+ * Starts the clock
847
+ */
848
+
849
+ start: function(callback) {
850
+ var t = this;
851
+
852
+ if(!t.running && (!t.countdown || t.countdown && t.time.time > 0)) {
853
+ t.face.start(t.time);
854
+ t.timer.start(function() {
855
+ t.flip();
856
+
857
+ if(typeof callback === "function") {
858
+ callback();
859
+ }
860
+ });
861
+ }
862
+ else {
863
+ t.log('Trying to start timer when countdown already at 0');
864
+ }
865
+ },
866
+
867
+ /**
868
+ * Stops the clock
869
+ */
870
+
871
+ stop: function(callback) {
872
+ this.face.stop();
873
+ this.timer.stop(callback);
874
+
875
+ for(var x in this.lists) {
876
+ if (this.lists.hasOwnProperty(x)) {
877
+ this.lists[x].stop();
878
+ }
879
+ }
880
+ },
881
+
882
+ /**
883
+ * Reset the clock
884
+ */
885
+
886
+ reset: function(callback) {
887
+ this.timer.reset(callback);
888
+ this.face.reset();
889
+ },
890
+
891
+ /**
892
+ * Sets the clock time
893
+ */
894
+
895
+ setTime: function(time) {
896
+ this.time.time = time;
897
+ this.flip(true);
898
+ },
899
+
900
+ /**
901
+ * Get the clock time
902
+ *
903
+ * @return object Returns a FlipClock.Time object
904
+ */
905
+
906
+ getTime: function(time) {
907
+ return this.time;
908
+ },
909
+
910
+ /**
911
+ * Changes the increment of time to up or down (add/sub)
912
+ */
913
+
914
+ setCountdown: function(value) {
915
+ var running = this.running;
916
+
917
+ this.countdown = value ? true : false;
918
+
919
+ if(running) {
920
+ this.stop();
921
+ this.start();
922
+ }
923
+ },
924
+
925
+ /**
926
+ * Flip the digits on the clock
927
+ *
928
+ * @param array An array of digits
929
+ */
930
+ flip: function(doNotAddPlayClass) {
931
+ this.face.flip(false, doNotAddPlayClass);
932
+ }
933
+
934
+ });
935
+
936
+ }(jQuery));
937
+
938
+ /*jshint smarttabs:true */
939
+
940
+ /**
941
+ * FlipClock.js
942
+ *
943
+ * @author Justin Kimbrell
944
+ * @copyright 2013 - Objective HTML, LLC
945
+ * @licesnse http://www.opensource.org/licenses/mit-license.php
946
+ */
947
+
948
+ (function($) {
949
+
950
+ "use strict";
951
+
952
+ /**
953
+ * The FlipClock List class is used to build the list used to create
954
+ * the card flip effect. This object fascilates selecting the correct
955
+ * node by passing a specific digit.
956
+ *
957
+ * @param object A FlipClock.Factory object
958
+ * @param mixed This is the digit used to set the clock. If an
959
+ * object is passed, 0 will be used.
960
+ * @param object An object of properties to override the default
961
+ */
962
+
963
+ FlipClock.List = FlipClock.Base.extend({
964
+
965
+ /**
966
+ * The digit (0-9)
967
+ */
968
+
969
+ digit: 0,
970
+
971
+ /**
972
+ * The CSS classes
973
+ */
974
+
975
+ classes: {
976
+ active: 'flip-clock-active',
977
+ before: 'flip-clock-before',
978
+ flip: 'flip'
979
+ },
980
+
981
+ /**
982
+ * The parent FlipClock.Factory object
983
+ */
984
+
985
+ factory: false,
986
+
987
+ /**
988
+ * The jQuery object
989
+ */
990
+
991
+ $el: false,
992
+
993
+ /**
994
+ * The jQuery object (deprecated)
995
+ */
996
+
997
+ $obj: false,
998
+
999
+ /**
1000
+ * The items in the list
1001
+ */
1002
+
1003
+ items: [],
1004
+
1005
+ /**
1006
+ * The last digit
1007
+ */
1008
+
1009
+ lastDigit: 0,
1010
+
1011
+ /**
1012
+ * Constructor
1013
+ *
1014
+ * @param object A FlipClock.Factory object
1015
+ * @param int An integer use to select the correct digit
1016
+ * @param object An object to override the default properties
1017
+ */
1018
+
1019
+ constructor: function(factory, digit, options) {
1020
+ this.factory = factory;
1021
+ this.digit = digit;
1022
+ this.lastDigit = digit;
1023
+ this.$el = this.createList();
1024
+
1025
+ // Depcrated support of the $obj property.
1026
+ this.$obj = this.$el;
1027
+
1028
+ if(digit > 0) {
1029
+ this.select(digit);
1030
+ }
1031
+
1032
+ this.factory.$el.append(this.$el);
1033
+ },
1034
+
1035
+ /**
1036
+ * Select the digit in the list
1037
+ *
1038
+ * @param int A digit 0-9
1039
+ */
1040
+
1041
+ select: function(digit) {
1042
+ if(typeof digit === "undefined") {
1043
+ digit = this.digit;
1044
+ }
1045
+ else {
1046
+ this.digit = digit;
1047
+ }
1048
+
1049
+ if(this.digit != this.lastDigit) {
1050
+ var $delete = this.$el.find('.'+this.classes.before).removeClass(this.classes.before);
1051
+
1052
+ this.$el.find('.'+this.classes.active).removeClass(this.classes.active)
1053
+ .addClass(this.classes.before);
1054
+
1055
+ this.appendListItem(this.classes.active, this.digit);
1056
+
1057
+ $delete.remove();
1058
+
1059
+ this.lastDigit = this.digit;
1060
+ }
1061
+ },
1062
+
1063
+ /**
1064
+ * Adds the play class to the DOM object
1065
+ */
1066
+
1067
+ play: function() {
1068
+ this.$el.addClass(this.factory.classes.play);
1069
+ },
1070
+
1071
+ /**
1072
+ * Removes the play class to the DOM object
1073
+ */
1074
+
1075
+ stop: function() {
1076
+ var t = this;
1077
+
1078
+ setTimeout(function() {
1079
+ t.$el.removeClass(t.factory.classes.play);
1080
+ }, this.factory.timer.interval);
1081
+ },
1082
+
1083
+ /**
1084
+ * Creates the list item HTML and returns as a string
1085
+ */
1086
+
1087
+ createListItem: function(css, value) {
1088
+ return [
1089
+ '<li class="'+(css ? css : '')+'">',
1090
+ '<a href="#">',
1091
+ '<div class="up">',
1092
+ '<div class="shadow"></div>',
1093
+ '<div class="inn">'+(value ? value : '')+'</div>',
1094
+ '</div>',
1095
+ '<div class="down">',
1096
+ '<div class="shadow"></div>',
1097
+ '<div class="inn">'+(value ? value : '')+'</div>',
1098
+ '</div>',
1099
+ '</a>',
1100
+ '</li>'
1101
+ ].join('');
1102
+ },
1103
+
1104
+ /**
1105
+ * Append the list item to the parent DOM node
1106
+ */
1107
+
1108
+ appendListItem: function(css, value) {
1109
+ var html = this.createListItem(css, value);
1110
+
1111
+ this.$el.append(html);
1112
+ },
1113
+
1114
+ /**
1115
+ * Create the list of digits and appends it to the DOM object
1116
+ */
1117
+
1118
+ createList: function() {
1119
+
1120
+ var lastDigit = this.getPrevDigit() ? this.getPrevDigit() : this.digit;
1121
+
1122
+ var html = $([
1123
+ '<ul class="'+this.classes.flip+' '+(this.factory.running ? this.factory.classes.play : '')+'">',
1124
+ this.createListItem(this.classes.before, lastDigit),
1125
+ this.createListItem(this.classes.active, this.digit),
1126
+ '</ul>'
1127
+ ].join(''));
1128
+
1129
+ return html;
1130
+ },
1131
+
1132
+ getNextDigit: function() {
1133
+ return this.digit == 9 ? 0 : this.digit + 1;
1134
+ },
1135
+
1136
+ getPrevDigit: function() {
1137
+ return this.digit == 0 ? 9 : this.digit - 1;
1138
+ }
1139
+
1140
+ });
1141
+
1142
+
1143
+ }(jQuery));
1144
+
1145
+ /*jshint smarttabs:true */
1146
+
1147
+ /**
1148
+ * FlipClock.js
1149
+ *
1150
+ * @author Justin Kimbrell
1151
+ * @copyright 2013 - Objective HTML, LLC
1152
+ * @licesnse http://www.opensource.org/licenses/mit-license.php
1153
+ */
1154
+
1155
+ (function($) {
1156
+
1157
+ "use strict";
1158
+
1159
+ /**
1160
+ * Capitalize the first letter in a string
1161
+ *
1162
+ * @return string
1163
+ */
1164
+
1165
+ String.prototype.ucfirst = function() {
1166
+ return this.substr(0, 1).toUpperCase() + this.substr(1);
1167
+ };
1168
+
1169
+ /**
1170
+ * jQuery helper method
1171
+ *
1172
+ * @param int An integer used to start the clock (no. seconds)
1173
+ * @param object An object of properties to override the default
1174
+ */
1175
+
1176
+ $.fn.FlipClock = function(digit, options) {
1177
+ return new FlipClock($(this), digit, options);
1178
+ };
1179
+
1180
+ /**
1181
+ * jQuery helper method
1182
+ *
1183
+ * @param int An integer used to start the clock (no. seconds)
1184
+ * @param object An object of properties to override the default
1185
+ */
1186
+
1187
+ $.fn.flipClock = function(digit, options) {
1188
+ return $.fn.FlipClock(digit, options);
1189
+ };
1190
+
1191
+ }(jQuery));
1192
+
1193
+ /*jshint smarttabs:true */
1194
+
1195
+ /**
1196
+ * FlipClock.js
1197
+ *
1198
+ * @author Justin Kimbrell
1199
+ * @copyright 2013 - Objective HTML, LLC
1200
+ * @licesnse http://www.opensource.org/licenses/mit-license.php
1201
+ */
1202
+
1203
+ (function($) {
1204
+
1205
+ "use strict";
1206
+
1207
+ /**
1208
+ * The FlipClock Time class is used to manage all the time
1209
+ * calculations.
1210
+ *
1211
+ * @param object A FlipClock.Factory object
1212
+ * @param mixed This is the digit used to set the clock. If an
1213
+ * object is passed, 0 will be used.
1214
+ * @param object An object of properties to override the default
1215
+ */
1216
+
1217
+ FlipClock.Time = FlipClock.Base.extend({
1218
+
1219
+ /**
1220
+ * The time (in seconds) or a date object
1221
+ */
1222
+
1223
+ time: 0,
1224
+
1225
+ /**
1226
+ * The parent FlipClock.Factory object
1227
+ */
1228
+
1229
+ factory: false,
1230
+
1231
+ /**
1232
+ * The minimum number of digits the clock face must have
1233
+ */
1234
+
1235
+ minimumDigits: 0,
1236
+
1237
+ /**
1238
+ * Constructor
1239
+ *
1240
+ * @param object A FlipClock.Factory object
1241
+ * @param int An integer use to select the correct digit
1242
+ * @param object An object to override the default properties
1243
+ */
1244
+
1245
+ constructor: function(factory, time, options) {
1246
+ if(typeof options != "object") {
1247
+ options = {};
1248
+ }
1249
+
1250
+ if(!options.minimumDigits) {
1251
+ options.minimumDigits = factory.minimumDigits;
1252
+ }
1253
+
1254
+ this.base(options);
1255
+ this.factory = factory;
1256
+
1257
+ if(time) {
1258
+ this.time = time;
1259
+ }
1260
+ },
1261
+
1262
+ /**
1263
+ * Convert a string or integer to an array of digits
1264
+ *
1265
+ * @param mixed String or Integer of digits
1266
+ * @return array An array of digits
1267
+ */
1268
+
1269
+ convertDigitsToArray: function(str) {
1270
+ var data = [];
1271
+
1272
+ str = str.toString();
1273
+
1274
+ for(var x = 0;x < str.length; x++) {
1275
+ if(str[x].match(/^\d*$/g)) {
1276
+ data.push(str[x]);
1277
+ }
1278
+ }
1279
+
1280
+ return data;
1281
+ },
1282
+
1283
+ /**
1284
+ * Get a specific digit from the time integer
1285
+ *
1286
+ * @param int The specific digit to select from the time
1287
+ * @return mixed Returns FALSE if no digit is found, otherwise
1288
+ * the method returns the defined digit
1289
+ */
1290
+
1291
+ digit: function(i) {
1292
+ var timeStr = this.toString();
1293
+ var length = timeStr.length;
1294
+
1295
+ if(timeStr[length - i]) {
1296
+ return timeStr[length - i];
1297
+ }
1298
+
1299
+ return false;
1300
+ },
1301
+
1302
+ /**
1303
+ * Formats any array of digits into a valid array of digits
1304
+ *
1305
+ * @param mixed An array of digits
1306
+ * @return array An array of digits
1307
+ */
1308
+
1309
+ digitize: function(obj) {
1310
+ var data = [];
1311
+
1312
+ $.each(obj, function(i, value) {
1313
+ value = value.toString();
1314
+
1315
+ if(value.length == 1) {
1316
+ value = '0'+value;
1317
+ }
1318
+
1319
+ for(var x = 0; x < value.length; x++) {
1320
+ data.push(value.charAt(x));
1321
+ }
1322
+ });
1323
+
1324
+ if(data.length > this.minimumDigits) {
1325
+ this.minimumDigits = data.length;
1326
+ }
1327
+
1328
+ if(this.minimumDigits > data.length) {
1329
+ for(var x = data.length; x < this.minimumDigits; x++) {
1330
+ data.unshift('0');
1331
+ }
1332
+ }
1333
+
1334
+ return data;
1335
+ },
1336
+
1337
+ /**
1338
+ * Gets a new Date object for the current time
1339
+ *
1340
+ * @return array Returns a Date object
1341
+ */
1342
+
1343
+ getDateObject: function() {
1344
+ if(this.time instanceof Date) {
1345
+ return this.time;
1346
+ }
1347
+
1348
+ return new Date((new Date()).getTime() + this.getTimeSeconds() * 1000);
1349
+ },
1350
+
1351
+ /**
1352
+ * Gets a digitized daily counter
1353
+ *
1354
+ * @return object Returns a digitized object
1355
+ */
1356
+
1357
+ getDayCounter: function(includeSeconds) {
1358
+ var digits = [
1359
+ this.getDays(),
1360
+ this.getHours(true),
1361
+ this.getMinutes(true)
1362
+ ];
1363
+
1364
+ if(includeSeconds) {
1365
+ digits.push(this.getSeconds(true));
1366
+ }
1367
+
1368
+ return this.digitize(digits);
1369
+ },
1370
+
1371
+ /**
1372
+ * Gets number of days
1373
+ *
1374
+ * @param bool Should perform a modulus? If not sent, then no.
1375
+ * @return int Retuns a floored integer
1376
+ */
1377
+
1378
+ getDays: function(mod) {
1379
+ var days = this.getTimeSeconds() / 60 / 60 / 24;
1380
+
1381
+ if(mod) {
1382
+ days = days % 7;
1383
+ }
1384
+
1385
+ return Math.floor(days);
1386
+ },
1387
+
1388
+ /**
1389
+ * Gets an hourly breakdown
1390
+ *
1391
+ * @return object Returns a digitized object
1392
+ */
1393
+
1394
+ getHourCounter: function() {
1395
+ var obj = this.digitize([
1396
+ this.getHours(),
1397
+ this.getMinutes(true),
1398
+ this.getSeconds(true)
1399
+ ]);
1400
+
1401
+ return obj;
1402
+ },
1403
+
1404
+ /**
1405
+ * Gets an hourly breakdown
1406
+ *
1407
+ * @return object Returns a digitized object
1408
+ */
1409
+
1410
+ getHourly: function() {
1411
+ return this.getHourCounter();
1412
+ },
1413
+
1414
+ /**
1415
+ * Gets number of hours
1416
+ *
1417
+ * @param bool Should perform a modulus? If not sent, then no.
1418
+ * @return int Retuns a floored integer
1419
+ */
1420
+
1421
+ getHours: function(mod) {
1422
+ var hours = this.getTimeSeconds() / 60 / 60;
1423
+
1424
+ if(mod) {
1425
+ hours = hours % 24;
1426
+ }
1427
+
1428
+ return Math.floor(hours);
1429
+ },
1430
+
1431
+ /**
1432
+ * Gets the twenty-four hour time
1433
+ *
1434
+ * @return object returns a digitized object
1435
+ */
1436
+
1437
+ getMilitaryTime: function(date, showSeconds) {
1438
+ if(typeof showSeconds === "undefined") {
1439
+ showSeconds = true;
1440
+ }
1441
+
1442
+ if(!date) {
1443
+ date = this.getDateObject();
1444
+ }
1445
+
1446
+ var data = [
1447
+ date.getHours(),
1448
+ date.getMinutes()
1449
+ ];
1450
+
1451
+ if(showSeconds === true) {
1452
+ data.push(date.getSeconds());
1453
+ }
1454
+
1455
+ return this.digitize(data);
1456
+ },
1457
+
1458
+ /**
1459
+ * Gets number of minutes
1460
+ *
1461
+ * @param bool Should perform a modulus? If not sent, then no.
1462
+ * @return int Retuns a floored integer
1463
+ */
1464
+
1465
+ getMinutes: function(mod) {
1466
+ var minutes = this.getTimeSeconds() / 60;
1467
+
1468
+ if(mod) {
1469
+ minutes = minutes % 60;
1470
+ }
1471
+
1472
+ return Math.floor(minutes);
1473
+ },
1474
+
1475
+ /**
1476
+ * Gets a minute breakdown
1477
+ */
1478
+
1479
+ getMinuteCounter: function() {
1480
+ var obj = this.digitize([
1481
+ this.getMinutes(),
1482
+ this.getSeconds(true)
1483
+ ]);
1484
+
1485
+ return obj;
1486
+ },
1487
+
1488
+ /**
1489
+ * Gets time count in seconds regardless of if targetting date or not.
1490
+ *
1491
+ * @return int Returns a floored integer
1492
+ */
1493
+
1494
+ getTimeSeconds: function(date) {
1495
+ if(!date) {
1496
+ date = new Date();
1497
+ }
1498
+
1499
+ if (this.time instanceof Date) {
1500
+ if (this.factory.countdown) {
1501
+ return Math.max(this.time.getTime()/1000 - date.getTime()/1000,0);
1502
+ } else {
1503
+ return date.getTime()/1000 - this.time.getTime()/1000 ;
1504
+ }
1505
+ } else {
1506
+ return this.time;
1507
+ }
1508
+ },
1509
+
1510
+ /**
1511
+ * Gets the current twelve hour time
1512
+ *
1513
+ * @return object Returns a digitized object
1514
+ */
1515
+
1516
+ getTime: function(date, showSeconds) {
1517
+ if(typeof showSeconds === "undefined") {
1518
+ showSeconds = true;
1519
+ }
1520
+
1521
+ if(!date) {
1522
+ date = this.getDateObject();
1523
+ }
1524
+
1525
+ console.log(date);
1526
+
1527
+
1528
+ var hours = date.getHours();
1529
+ var merid = hours > 12 ? 'PM' : 'AM';
1530
+ var data = [
1531
+ hours > 12 ? hours - 12 : (hours === 0 ? 12 : hours),
1532
+ date.getMinutes()
1533
+ ];
1534
+
1535
+ if(showSeconds === true) {
1536
+ data.push(date.getSeconds());
1537
+ }
1538
+
1539
+ return this.digitize(data);
1540
+ },
1541
+
1542
+ /**
1543
+ * Gets number of seconds
1544
+ *
1545
+ * @param bool Should perform a modulus? If not sent, then no.
1546
+ * @return int Retuns a ceiled integer
1547
+ */
1548
+
1549
+ getSeconds: function(mod) {
1550
+ var seconds = this.getTimeSeconds();
1551
+
1552
+ if(mod) {
1553
+ if(seconds == 60) {
1554
+ seconds = 0;
1555
+ }
1556
+ else {
1557
+ seconds = seconds % 60;
1558
+ }
1559
+ }
1560
+
1561
+ return Math.ceil(seconds);
1562
+ },
1563
+
1564
+ /**
1565
+ * Gets number of weeks
1566
+ *
1567
+ * @param bool Should perform a modulus? If not sent, then no.
1568
+ * @return int Retuns a floored integer
1569
+ */
1570
+
1571
+ getWeeks: function(mod) {
1572
+ var weeks = this.getTimeSeconds() / 60 / 60 / 24 / 7;
1573
+
1574
+ if(mod) {
1575
+ weeks = weeks % 52;
1576
+ }
1577
+
1578
+ return Math.floor(weeks);
1579
+ },
1580
+
1581
+ /**
1582
+ * Removes a specific number of leading zeros from the array.
1583
+ * This method prevents you from removing too many digits, even
1584
+ * if you try.
1585
+ *
1586
+ * @param int Total number of digits to remove
1587
+ * @return array An array of digits
1588
+ */
1589
+
1590
+ removeLeadingZeros: function(totalDigits, digits) {
1591
+ var total = 0;
1592
+ var newArray = [];
1593
+
1594
+ $.each(digits, function(i, digit) {
1595
+ if(i < totalDigits) {
1596
+ total += parseInt(digits[i], 10);
1597
+ }
1598
+ else {
1599
+ newArray.push(digits[i]);
1600
+ }
1601
+ });
1602
+
1603
+ if(total === 0) {
1604
+ return newArray;
1605
+ }
1606
+
1607
+ return digits;
1608
+ },
1609
+
1610
+ /**
1611
+ * Adds X second to the current time
1612
+ */
1613
+
1614
+ addSeconds: function(x) {
1615
+ if(this.time instanceof Date) {
1616
+ this.time.setSeconds(this.time.getSeconds() + x);
1617
+ }
1618
+ else {
1619
+ this.time += x;
1620
+ }
1621
+ },
1622
+
1623
+ /**
1624
+ * Adds 1 second to the current time
1625
+ */
1626
+
1627
+ addSecond: function() {
1628
+ this.addSeconds(1);
1629
+ },
1630
+
1631
+ /**
1632
+ * Substracts X seconds from the current time
1633
+ */
1634
+
1635
+ subSeconds: function(x) {
1636
+ if(this.time instanceof Date) {
1637
+ this.time.setSeconds(this.time.getSeconds() - x);
1638
+ }
1639
+ else {
1640
+ this.time -= x;
1641
+ }
1642
+ },
1643
+
1644
+ /**
1645
+ * Substracts 1 second from the current time
1646
+ */
1647
+
1648
+ subSecond: function() {
1649
+ this.subSeconds(1);
1650
+ },
1651
+
1652
+ /**
1653
+ * Converts the object to a human readable string
1654
+ */
1655
+
1656
+ toString: function() {
1657
+ return this.getTimeSeconds().toString();
1658
+ }
1659
+
1660
+ /*
1661
+ getYears: function() {
1662
+ return Math.floor(this.time / 60 / 60 / 24 / 7 / 52);
1663
+ },
1664
+
1665
+ getDecades: function() {
1666
+ return Math.floor(this.getWeeks() / 10);
1667
+ }*/
1668
+ });
1669
+
1670
+ }(jQuery));
1671
+
1672
+ /*jshint smarttabs:true */
1673
+
1674
+ /**
1675
+ * FlipClock.js
1676
+ *
1677
+ * @author Justin Kimbrell
1678
+ * @copyright 2013 - Objective HTML, LLC
1679
+ * @licesnse http://www.opensource.org/licenses/mit-license.php
1680
+ */
1681
+
1682
+ (function($) {
1683
+
1684
+ "use strict";
1685
+
1686
+ /**
1687
+ * The FlipClock.Timer object managers the JS timers
1688
+ *
1689
+ * @param object The parent FlipClock.Factory object
1690
+ * @param object Override the default options
1691
+ */
1692
+
1693
+ FlipClock.Timer = FlipClock.Base.extend({
1694
+
1695
+ /**
1696
+ * Callbacks
1697
+ */
1698
+
1699
+ callbacks: {
1700
+ destroy: false,
1701
+ create: false,
1702
+ init: false,
1703
+ interval: false,
1704
+ start: false,
1705
+ stop: false,
1706
+ reset: false
1707
+ },
1708
+
1709
+ /**
1710
+ * FlipClock timer count (how many intervals have passed)
1711
+ */
1712
+
1713
+ count: 0,
1714
+
1715
+ /**
1716
+ * The parent FlipClock.Factory object
1717
+ */
1718
+
1719
+ factory: false,
1720
+
1721
+ /**
1722
+ * Timer interval (1 second by default)
1723
+ */
1724
+
1725
+ interval: 1000,
1726
+
1727
+ /**
1728
+ * The rate of the animation in milliseconds (not currently in use)
1729
+ */
1730
+
1731
+ animationRate: 1000,
1732
+
1733
+ /**
1734
+ * Constructor
1735
+ *
1736
+ * @return void
1737
+ */
1738
+
1739
+ constructor: function(factory, options) {
1740
+ this.base(options);
1741
+ this.factory = factory;
1742
+ this.callback(this.callbacks.init);
1743
+ this.callback(this.callbacks.create);
1744
+ },
1745
+
1746
+ /**
1747
+ * This method gets the elapsed the time as an interger
1748
+ *
1749
+ * @return void
1750
+ */
1751
+
1752
+ getElapsed: function() {
1753
+ return this.count * this.interval;
1754
+ },
1755
+
1756
+ /**
1757
+ * This method gets the elapsed the time as a Date object
1758
+ *
1759
+ * @return void
1760
+ */
1761
+
1762
+ getElapsedTime: function() {
1763
+ return new Date(this.time + this.getElapsed());
1764
+ },
1765
+
1766
+ /**
1767
+ * This method is resets the timer
1768
+ *
1769
+ * @param callback This method resets the timer back to 0
1770
+ * @return void
1771
+ */
1772
+
1773
+ reset: function(callback) {
1774
+ clearInterval(this.timer);
1775
+ this.count = 0;
1776
+ this._setInterval(callback);
1777
+ this.callback(this.callbacks.reset);
1778
+ },
1779
+
1780
+ /**
1781
+ * This method is starts the timer
1782
+ *
1783
+ * @param callback A function that is called once the timer is destroyed
1784
+ * @return void
1785
+ */
1786
+
1787
+ start: function(callback) {
1788
+ this.factory.running = true;
1789
+ this._createTimer(callback);
1790
+ this.callback(this.callbacks.start);
1791
+ },
1792
+
1793
+ /**
1794
+ * This method is stops the timer
1795
+ *
1796
+ * @param callback A function that is called once the timer is destroyed
1797
+ * @return void
1798
+ */
1799
+
1800
+ stop: function(callback) {
1801
+ this.factory.running = false;
1802
+ this._clearInterval(callback);
1803
+ this.callback(this.callbacks.stop);
1804
+ this.callback(callback);
1805
+ },
1806
+
1807
+ /**
1808
+ * Clear the timer interval
1809
+ *
1810
+ * @return void
1811
+ */
1812
+
1813
+ _clearInterval: function() {
1814
+ clearInterval(this.timer);
1815
+ },
1816
+
1817
+ /**
1818
+ * Create the timer object
1819
+ *
1820
+ * @param callback A function that is called once the timer is created
1821
+ * @return void
1822
+ */
1823
+
1824
+ _createTimer: function(callback) {
1825
+ this._setInterval(callback);
1826
+ },
1827
+
1828
+ /**
1829
+ * Destroy the timer object
1830
+ *
1831
+ * @param callback A function that is called once the timer is destroyed
1832
+ * @return void
1833
+ */
1834
+
1835
+ _destroyTimer: function(callback) {
1836
+ this._clearInterval();
1837
+ this.timer = false;
1838
+ this.callback(callback);
1839
+ this.callback(this.callbacks.destroy);
1840
+ },
1841
+
1842
+ /**
1843
+ * This method is called each time the timer interval is ran
1844
+ *
1845
+ * @param callback A function that is called once the timer is destroyed
1846
+ * @return void
1847
+ */
1848
+
1849
+ _interval: function(callback) {
1850
+ this.callback(this.callbacks.interval);
1851
+ this.callback(callback);
1852
+ this.count++;
1853
+ },
1854
+
1855
+ /**
1856
+ * This sets the timer interval
1857
+ *
1858
+ * @param callback A function that is called once the timer is destroyed
1859
+ * @return void
1860
+ */
1861
+
1862
+ _setInterval: function(callback) {
1863
+ var t = this;
1864
+
1865
+ t._interval(callback);
1866
+
1867
+ t.timer = setInterval(function() {
1868
+ t._interval(callback);
1869
+ }, this.interval);
1870
+ }
1871
+
1872
+ });
1873
+
1874
+ }(jQuery));
1875
+
1876
+ (function($) {
1877
+
1878
+ /**
1879
+ * Twenty-Four Hour Clock Face
1880
+ *
1881
+ * This class will generate a twenty-four our clock for FlipClock.js
1882
+ *
1883
+ * @param object The parent FlipClock.Factory object
1884
+ * @param object An object of properties to override the default
1885
+ */
1886
+
1887
+ FlipClock.TwentyFourHourClockFace = FlipClock.Face.extend({
1888
+
1889
+ /**
1890
+ * Constructor
1891
+ *
1892
+ * @param object The parent FlipClock.Factory object
1893
+ * @param object An object of properties to override the default
1894
+ */
1895
+
1896
+ constructor: function(factory, options) {
1897
+ this.base(factory, options);
1898
+ },
1899
+
1900
+ /**
1901
+ * Build the clock face
1902
+ *
1903
+ * @param object Pass the time that should be used to display on the clock.
1904
+ */
1905
+
1906
+ build: function(time) {
1907
+ var t = this;
1908
+ var children = this.factory.$el.find('ul');
1909
+
1910
+ if(!this.factory.time.time) {
1911
+ this.factory.original = new Date();
1912
+
1913
+ this.factory.time = new FlipClock.Time(this.factory, this.factory.original);
1914
+ }
1915
+
1916
+ var time = time ? time : this.factory.time.getMilitaryTime(false, this.showSeconds);
1917
+
1918
+ if(time.length > children.length) {
1919
+ $.each(time, function(i, digit) {
1920
+ t.createList(digit);
1921
+ });
1922
+ }
1923
+
1924
+ this.createDivider();
1925
+ this.createDivider();
1926
+
1927
+ $(this.dividers[0]).insertBefore(this.lists[this.lists.length - 2].$el);
1928
+ $(this.dividers[1]).insertBefore(this.lists[this.lists.length - 4].$el);
1929
+
1930
+ this.base();
1931
+ },
1932
+
1933
+ /**
1934
+ * Flip the clock face
1935
+ */
1936
+
1937
+ flip: function(time, doNotAddPlayClass) {
1938
+ this.autoIncrement();
1939
+
1940
+ time = time ? time : this.factory.time.getMilitaryTime(false, this.showSeconds);
1941
+
1942
+ this.base(time, doNotAddPlayClass);
1943
+ }
1944
+
1945
+ });
1946
+
1947
+ }(jQuery));
1948
+ (function($) {
1949
+
1950
+ /**
1951
+ * Counter Clock Face
1952
+ *
1953
+ * This class will generate a generice flip counter. The timer has been
1954
+ * disabled. clock.increment() and clock.decrement() have been added.
1955
+ *
1956
+ * @param object The parent FlipClock.Factory object
1957
+ * @param object An object of properties to override the default
1958
+ */
1959
+
1960
+ FlipClock.CounterFace = FlipClock.Face.extend({
1961
+
1962
+ /**
1963
+ * Tells the counter clock face if it should auto-increment
1964
+ */
1965
+
1966
+ shouldAutoIncrement: false,
1967
+
1968
+ /**
1969
+ * Constructor
1970
+ *
1971
+ * @param object The parent FlipClock.Factory object
1972
+ * @param object An object of properties to override the default
1973
+ */
1974
+
1975
+ constructor: function(factory, options) {
1976
+
1977
+ if(typeof options != "object") {
1978
+ options = {};
1979
+ }
1980
+
1981
+ factory.autoStart = options.autoStart ? true : false;
1982
+
1983
+ if(options.autoStart) {
1984
+ this.shouldAutoIncrement = true;
1985
+ }
1986
+
1987
+ factory.increment = function() {
1988
+ factory.countdown = false;
1989
+ factory.setTime(factory.getTime().getTimeSeconds() + 1);
1990
+ };
1991
+
1992
+ factory.decrement = function() {
1993
+ factory.countdown = true;
1994
+ var time = factory.getTime().getTimeSeconds();
1995
+ if(time > 0) {
1996
+ factory.setTime(time - 1);
1997
+ }
1998
+ };
1999
+
2000
+ factory.setValue = function(digits) {
2001
+ factory.setTime(digits);
2002
+ };
2003
+
2004
+ factory.setCounter = function(digits) {
2005
+ factory.setTime(digits);
2006
+ };
2007
+
2008
+ this.base(factory, options);
2009
+ },
2010
+
2011
+ /**
2012
+ * Build the clock face
2013
+ */
2014
+
2015
+ build: function() {
2016
+ var t = this;
2017
+ var children = this.factory.$el.find('ul');
2018
+ var time = this.factory.getTime().digitize([this.factory.getTime().time]);
2019
+
2020
+ if(time.length > children.length) {
2021
+ $.each(time, function(i, digit) {
2022
+ var list = t.createList(digit);
2023
+
2024
+ list.select(digit);
2025
+ });
2026
+
2027
+ }
2028
+
2029
+ $.each(this.lists, function(i, list) {
2030
+ list.play();
2031
+ });
2032
+
2033
+ this.base();
2034
+ },
2035
+
2036
+ /**
2037
+ * Flip the clock face
2038
+ */
2039
+
2040
+ flip: function(time, doNotAddPlayClass) {
2041
+ if(this.shouldAutoIncrement) {
2042
+ this.autoIncrement();
2043
+ }
2044
+
2045
+ if(!time) {
2046
+ time = this.factory.getTime().digitize([this.factory.getTime().time]);
2047
+ }
2048
+
2049
+ this.base(time, doNotAddPlayClass);
2050
+ },
2051
+
2052
+ /**
2053
+ * Reset the clock face
2054
+ */
2055
+
2056
+ reset: function() {
2057
+ this.factory.time = new FlipClock.Time(
2058
+ this.factory,
2059
+ this.factory.original ? Math.round(this.factory.original) : 0
2060
+ );
2061
+
2062
+ this.flip();
2063
+ }
2064
+ });
2065
+
2066
+ }(jQuery));
2067
+ (function($) {
2068
+
2069
+ /**
2070
+ * Daily Counter Clock Face
2071
+ *
2072
+ * This class will generate a daily counter for FlipClock.js. A
2073
+ * daily counter will track days, hours, minutes, and seconds. If
2074
+ * the number of available digits is exceeded in the count, a new
2075
+ * digit will be created.
2076
+ *
2077
+ * @param object The parent FlipClock.Factory object
2078
+ * @param object An object of properties to override the default
2079
+ */
2080
+
2081
+ FlipClock.DailyCounterFace = FlipClock.Face.extend({
2082
+
2083
+ showSeconds: true,
2084
+
2085
+ /**
2086
+ * Constructor
2087
+ *
2088
+ * @param object The parent FlipClock.Factory object
2089
+ * @param object An object of properties to override the default
2090
+ */
2091
+
2092
+ constructor: function(factory, options) {
2093
+ this.base(factory, options);
2094
+ },
2095
+
2096
+ /**
2097
+ * Build the clock face
2098
+ */
2099
+
2100
+ build: function(time) {
2101
+ var t = this;
2102
+ var children = this.factory.$el.find('ul');
2103
+ var offset = 0;
2104
+
2105
+ time = time ? time : this.factory.time.getDayCounter(this.showSeconds);
2106
+
2107
+ if(time.length > children.length) {
2108
+ $.each(time, function(i, digit) {
2109
+ t.createList(digit);
2110
+ });
2111
+ }
2112
+
2113
+ if(this.showSeconds) {
2114
+ $(this.createDivider('Seconds')).insertBefore(this.lists[this.lists.length - 2].$el);
2115
+ }
2116
+ else
2117
+ {
2118
+ offset = 2;
2119
+ }
2120
+
2121
+ $(this.createDivider('Mins')).insertBefore(this.lists[this.lists.length - 4 + offset].$el);
2122
+ $(this.createDivider('Hours')).insertBefore(this.lists[this.lists.length - 6 + offset].$el);
2123
+ $(this.createDivider('Days', true)).insertBefore(this.lists[0].$el);
2124
+
2125
+ this.base();
2126
+ },
2127
+
2128
+ /**
2129
+ * Flip the clock face
2130
+ */
2131
+
2132
+ flip: function(time, doNotAddPlayClass) {
2133
+ if(!time) {
2134
+ time = this.factory.time.getDayCounter(this.showSeconds);
2135
+ }
2136
+
2137
+ this.autoIncrement();
2138
+
2139
+ this.base(time, doNotAddPlayClass);
2140
+ }
2141
+
2142
+ });
2143
+
2144
+ }(jQuery));
2145
+ (function($) {
2146
+
2147
+ /**
2148
+ * Hourly Counter Clock Face
2149
+ *
2150
+ * This class will generate an hourly counter for FlipClock.js. An
2151
+ * hour counter will track hours, minutes, and seconds. If number of
2152
+ * available digits is exceeded in the count, a new digit will be
2153
+ * created.
2154
+ *
2155
+ * @param object The parent FlipClock.Factory object
2156
+ * @param object An object of properties to override the default
2157
+ */
2158
+
2159
+ FlipClock.HourlyCounterFace = FlipClock.Face.extend({
2160
+
2161
+ // clearExcessDigits: true,
2162
+
2163
+ /**
2164
+ * Constructor
2165
+ *
2166
+ * @param object The parent FlipClock.Factory object
2167
+ * @param object An object of properties to override the default
2168
+ */
2169
+
2170
+ constructor: function(factory, options) {
2171
+ this.base(factory, options);
2172
+ },
2173
+
2174
+ /**
2175
+ * Build the clock face
2176
+ */
2177
+
2178
+ build: function(excludeHours, time) {
2179
+ var t = this;
2180
+ var children = this.factory.$el.find('ul');
2181
+
2182
+ time = time ? time : this.factory.time.getHourCounter();
2183
+
2184
+ if(time.length > children.length) {
2185
+ $.each(time, function(i, digit) {
2186
+ t.createList(digit);
2187
+ });
2188
+ }
2189
+
2190
+ $(this.createDivider('Secs')).insertBefore(this.lists[this.lists.length - 2].$el);
2191
+ $(this.createDivider('Mins')).insertBefore(this.lists[this.lists.length - 4].$el);
2192
+
2193
+ if(!excludeHours) {
2194
+ $(this.createDivider('Hours', true)).insertBefore(this.lists[0].$el);
2195
+ }
2196
+
2197
+ this.base();
2198
+ },
2199
+
2200
+ /**
2201
+ * Flip the clock face
2202
+ */
2203
+
2204
+ flip: function(time, doNotAddPlayClass) {
2205
+ if(!time) {
2206
+ time = this.factory.time.getHourCounter();
2207
+ }
2208
+
2209
+ this.autoIncrement();
2210
+
2211
+ this.base(time, doNotAddPlayClass);
2212
+ },
2213
+
2214
+ /**
2215
+ * Append a newly created list to the clock
2216
+ */
2217
+
2218
+ appendDigitToClock: function(obj) {
2219
+ this.base(obj);
2220
+
2221
+ this.dividers[0].insertAfter(this.dividers[0].next());
2222
+ }
2223
+
2224
+ });
2225
+
2226
+ }(jQuery));
2227
+ (function($) {
2228
+
2229
+ /**
2230
+ * Minute Counter Clock Face
2231
+ *
2232
+ * This class will generate a minute counter for FlipClock.js. A
2233
+ * minute counter will track minutes and seconds. If an hour is
2234
+ * reached, the counter will reset back to 0. (4 digits max)
2235
+ *
2236
+ * @param object The parent FlipClock.Factory object
2237
+ * @param object An object of properties to override the default
2238
+ */
2239
+
2240
+ FlipClock.MinuteCounterFace = FlipClock.HourlyCounterFace.extend({
2241
+
2242
+ clearExcessDigits: false,
2243
+
2244
+ /**
2245
+ * Constructor
2246
+ *
2247
+ * @param object The parent FlipClock.Factory object
2248
+ * @param object An object of properties to override the default
2249
+ */
2250
+
2251
+ constructor: function(factory, options) {
2252
+ this.base(factory, options);
2253
+ },
2254
+
2255
+ /**
2256
+ * Build the clock face
2257
+ */
2258
+
2259
+ build: function() {
2260
+ this.base(true, this.factory.time.getMinuteCounter());
2261
+ },
2262
+
2263
+ /**
2264
+ * Flip the clock face
2265
+ */
2266
+
2267
+ flip: function(time, doNotAddPlayClass) {
2268
+ if(!time) {
2269
+ time = this.factory.time.getMinuteCounter();
2270
+ }
2271
+
2272
+ this.base(time, doNotAddPlayClass);
2273
+ }
2274
+
2275
+ });
2276
+
2277
+ }(jQuery));
2278
+ (function($) {
2279
+
2280
+ /**
2281
+ * Twelve Hour Clock Face
2282
+ *
2283
+ * This class will generate a twelve hour clock for FlipClock.js
2284
+ *
2285
+ * @param object The parent FlipClock.Factory object
2286
+ * @param object An object of properties to override the default
2287
+ */
2288
+
2289
+ FlipClock.TwelveHourClockFace = FlipClock.TwentyFourHourClockFace.extend({
2290
+
2291
+ /**
2292
+ * The meridium jQuery DOM object
2293
+ */
2294
+
2295
+ meridium: false,
2296
+
2297
+ /**
2298
+ * The meridium text as string for easy access
2299
+ */
2300
+
2301
+ meridiumText: 'AM',
2302
+
2303
+ /**
2304
+ * Build the clock face
2305
+ *
2306
+ * @param object Pass the time that should be used to display on the clock.
2307
+ */
2308
+
2309
+ build: function() {
2310
+ var t = this;
2311
+
2312
+ var time = this.factory.time.getTime(false, this.showSeconds);
2313
+
2314
+ this.base(time);
2315
+ this.meridiumText = this.getMeridium();
2316
+ this.meridium = $([
2317
+ '<ul class="flip-clock-meridium">',
2318
+ '<li>',
2319
+ '<a href="#">'+this.meridiumText+'</a>',
2320
+ '</li>',
2321
+ '</ul>'
2322
+ ].join(''));
2323
+
2324
+ this.meridium.insertAfter(this.lists[this.lists.length-1].$el);
2325
+ },
2326
+
2327
+ /**
2328
+ * Flip the clock face
2329
+ */
2330
+
2331
+ flip: function(time, doNotAddPlayClass) {
2332
+ if(this.meridiumText != this.getMeridium()) {
2333
+ this.meridiumText = this.getMeridium();
2334
+ this.meridium.find('a').html(this.meridiumText);
2335
+ }
2336
+ this.base(this.factory.time.getTime(false, this.showSeconds), doNotAddPlayClass);
2337
+ },
2338
+
2339
+ /**
2340
+ * Get the current meridium
2341
+ *
2342
+ * @return string Returns the meridium (AM|PM)
2343
+ */
2344
+
2345
+ getMeridium: function() {
2346
+ return new Date().getHours() >= 12 ? 'PM' : 'AM';
2347
+ },
2348
+
2349
+ /**
2350
+ * Is it currently in the post-medirium?
2351
+ *
2352
+ * @return bool Returns true or false
2353
+ */
2354
+
2355
+ isPM: function() {
2356
+ return this.getMeridium() == 'PM' ? true : false;
2357
+ },
2358
+
2359
+ /**
2360
+ * Is it currently before the post-medirium?
2361
+ *
2362
+ * @return bool Returns true or false
2363
+ */
2364
+
2365
+ isAM: function() {
2366
+ return this.getMeridium() == 'AM' ? true : false;
2367
+ }
2368
+
2369
+ });
2370
+
2371
+ }(jQuery));
2372
+ (function($) {
2373
+
2374
+ /**
2375
+ * FlipClock Arabic Language Pack
2376
+ *
2377
+ * This class will be used to translate tokens into the Arabic language.
2378
+ *
2379
+ */
2380
+
2381
+ FlipClock.Lang.Arabic = {
2382
+
2383
+ 'years' : 'سنوات',
2384
+ 'months' : 'شهور',
2385
+ 'days' : 'أيام',
2386
+ 'hours' : 'ساعات',
2387
+ 'minutes' : 'دقائق',
2388
+ 'seconds' : 'ثواني'
2389
+
2390
+ };
2391
+
2392
+ /* Create various aliases for convenience */
2393
+
2394
+ FlipClock.Lang['ar'] = FlipClock.Lang.Arabic;
2395
+ FlipClock.Lang['ar-ar'] = FlipClock.Lang.Arabic;
2396
+ FlipClock.Lang['arabic'] = FlipClock.Lang.Arabic;
2397
+
2398
+ }(jQuery));
2399
+ (function($) {
2400
+
2401
+ /**
2402
+ * FlipClock Danish Language Pack
2403
+ *
2404
+ * This class will used to translate tokens into the Danish language.
2405
+ *
2406
+ */
2407
+
2408
+ FlipClock.Lang.Danish = {
2409
+
2410
+ 'years' : 'År',
2411
+ 'months' : 'Måneder',
2412
+ 'days' : 'Dage',
2413
+ 'hours' : 'Timer',
2414
+ 'minutes' : 'Minutter',
2415
+ 'seconds' : 'Sekunder'
2416
+
2417
+ };
2418
+
2419
+ /* Create various aliases for convenience */
2420
+
2421
+ FlipClock.Lang['da'] = FlipClock.Lang.Danish;
2422
+ FlipClock.Lang['da-dk'] = FlipClock.Lang.Danish;
2423
+ FlipClock.Lang['danish'] = FlipClock.Lang.Danish;
2424
+
2425
+ }(jQuery));
2426
+ (function($) {
2427
+
2428
+ /**
2429
+ * FlipClock German Language Pack
2430
+ *
2431
+ * This class will used to translate tokens into the German language.
2432
+ *
2433
+ */
2434
+
2435
+ FlipClock.Lang.German = {
2436
+
2437
+ 'years' : 'Jahre',
2438
+ 'months' : 'Monate',
2439
+ 'days' : 'Tage',
2440
+ 'hours' : 'Stunden',
2441
+ 'minutes' : 'Minuten',
2442
+ 'seconds' : 'Sekunden'
2443
+
2444
+ };
2445
+
2446
+ /* Create various aliases for convenience */
2447
+
2448
+ FlipClock.Lang['de'] = FlipClock.Lang.German;
2449
+ FlipClock.Lang['de-de'] = FlipClock.Lang.German;
2450
+ FlipClock.Lang['german'] = FlipClock.Lang.German;
2451
+
2452
+ }(jQuery));
2453
+ (function($) {
2454
+
2455
+ /**
2456
+ * FlipClock English Language Pack
2457
+ *
2458
+ * This class will used to translate tokens into the English language.
2459
+ *
2460
+ */
2461
+
2462
+ FlipClock.Lang.English = {
2463
+
2464
+ 'years' : 'Years',
2465
+ 'months' : 'Months',
2466
+ 'days' : 'Days',
2467
+ 'hours' : 'Hours',
2468
+ 'minutes' : 'Mins',
2469
+ 'seconds' : 'Secs'
2470
+
2471
+ };
2472
+
2473
+ /* Create various aliases for convenience */
2474
+
2475
+ FlipClock.Lang['en'] = FlipClock.Lang.English;
2476
+ FlipClock.Lang['en-us'] = FlipClock.Lang.English;
2477
+ FlipClock.Lang['english'] = FlipClock.Lang.English;
2478
+
2479
+ }(jQuery));
2480
+ (function($) {
2481
+
2482
+ /**
2483
+ * FlipClock Spanish Language Pack
2484
+ *
2485
+ * This class will used to translate tokens into the Spanish language.
2486
+ *
2487
+ */
2488
+
2489
+ FlipClock.Lang.Spanish = {
2490
+
2491
+ 'years' : 'A&#241;os',
2492
+ 'months' : 'Meses',
2493
+ 'days' : 'D&#205;as',
2494
+ 'hours' : 'Horas',
2495
+ 'minutes' : 'Minutos',
2496
+ 'seconds' : 'Segundo'
2497
+
2498
+ };
2499
+
2500
+ /* Create various aliases for convenience */
2501
+
2502
+ FlipClock.Lang['es'] = FlipClock.Lang.Spanish;
2503
+ FlipClock.Lang['es-es'] = FlipClock.Lang.Spanish;
2504
+ FlipClock.Lang['spanish'] = FlipClock.Lang.Spanish;
2505
+
2506
+ }(jQuery));
2507
+ (function($) {
2508
+
2509
+ /**
2510
+ * FlipClock Finnish Language Pack
2511
+ *
2512
+ * This class will used to translate tokens into the Finnish language.
2513
+ *
2514
+ */
2515
+
2516
+ FlipClock.Lang.Finnish = {
2517
+
2518
+ 'years' : 'Vuotta',
2519
+ 'months' : 'Kuukautta',
2520
+ 'days' : 'Päivää',
2521
+ 'hours' : 'Tuntia',
2522
+ 'minutes' : 'Minuuttia',
2523
+ 'seconds' : 'Sekuntia'
2524
+
2525
+ };
2526
+
2527
+ /* Create various aliases for convenience */
2528
+
2529
+ FlipClock.Lang['fi'] = FlipClock.Lang.Finnish;
2530
+ FlipClock.Lang['fi-fi'] = FlipClock.Lang.Finnish;
2531
+ FlipClock.Lang['finnish'] = FlipClock.Lang.Finnish;
2532
+
2533
+ }(jQuery));
2534
+
2535
+ (function($) {
2536
+
2537
+ /**
2538
+ * FlipClock Canadian French Language Pack
2539
+ *
2540
+ * This class will used to translate tokens into the Canadian French language.
2541
+ *
2542
+ */
2543
+
2544
+ FlipClock.Lang.French = {
2545
+
2546
+ 'years' : 'Ans',
2547
+ 'months' : 'Mois',
2548
+ 'days' : 'Jours',
2549
+ 'hours' : 'Heures',
2550
+ 'minutes' : 'Mins',
2551
+ 'seconds' : 'Secs'
2552
+
2553
+ };
2554
+
2555
+ /* Create various aliases for convenience */
2556
+
2557
+ FlipClock.Lang['fr'] = FlipClock.Lang.French;
2558
+ FlipClock.Lang['fr-ca'] = FlipClock.Lang.French;
2559
+ FlipClock.Lang['french'] = FlipClock.Lang.French;
2560
+
2561
+ }(jQuery));
2562
+
2563
+ (function($) {
2564
+
2565
+ /**
2566
+ * FlipClock Italian Language Pack
2567
+ *
2568
+ * This class will used to translate tokens into the Italian language.
2569
+ *
2570
+ */
2571
+
2572
+ FlipClock.Lang.Italian = {
2573
+
2574
+ 'years' : 'Anni',
2575
+ 'months' : 'Mesi',
2576
+ 'days' : 'Giorni',
2577
+ 'hours' : 'Ore',
2578
+ 'minutes' : 'Minuti',
2579
+ 'seconds' : 'Secondi'
2580
+
2581
+ };
2582
+
2583
+ /* Create various aliases for convenience */
2584
+
2585
+ FlipClock.Lang['it'] = FlipClock.Lang.Italian;
2586
+ FlipClock.Lang['it-it'] = FlipClock.Lang.Italian;
2587
+ FlipClock.Lang['italian'] = FlipClock.Lang.Italian;
2588
+
2589
+ }(jQuery));
2590
+
2591
+ (function($) {
2592
+
2593
+ /**
2594
+ * FlipClock Latvian Language Pack
2595
+ *
2596
+ * This class will used to translate tokens into the Latvian language.
2597
+ *
2598
+ */
2599
+
2600
+ FlipClock.Lang.Latvian = {
2601
+
2602
+ 'years' : 'Gadi',
2603
+ 'months' : 'Mēneši',
2604
+ 'days' : 'Dienas',
2605
+ 'hours' : 'Stundas',
2606
+ 'minutes' : 'Minūtes',
2607
+ 'seconds' : 'Sekundes'
2608
+
2609
+ };
2610
+
2611
+ /* Create various aliases for convenience */
2612
+
2613
+ FlipClock.Lang['lv'] = FlipClock.Lang.Latvian;
2614
+ FlipClock.Lang['lv-lv'] = FlipClock.Lang.Latvian;
2615
+ FlipClock.Lang['latvian'] = FlipClock.Lang.Latvian;
2616
+
2617
+ }(jQuery));
2618
+ (function($) {
2619
+
2620
+ /**
2621
+ * FlipClock Dutch Language Pack
2622
+ *
2623
+ * This class will used to translate tokens into the Dutch language.
2624
+ */
2625
+
2626
+ FlipClock.Lang.Dutch = {
2627
+
2628
+ 'years' : 'Jaren',
2629
+ 'months' : 'Maanden',
2630
+ 'days' : 'Dagen',
2631
+ 'hours' : 'Uren',
2632
+ 'minutes' : 'Minuten',
2633
+ 'seconds' : 'Seconden'
2634
+
2635
+ };
2636
+
2637
+ /* Create various aliases for convenience */
2638
+
2639
+ FlipClock.Lang['nl'] = FlipClock.Lang.Dutch;
2640
+ FlipClock.Lang['nl-be'] = FlipClock.Lang.Dutch;
2641
+ FlipClock.Lang['dutch'] = FlipClock.Lang.Dutch;
2642
+
2643
+ }(jQuery));
2644
+
2645
+ (function($) {
2646
+
2647
+ /**
2648
+ * FlipClock Norwegian-Bokmål Language Pack
2649
+ *
2650
+ * This class will used to translate tokens into the Norwegian language.
2651
+ *
2652
+ */
2653
+
2654
+ FlipClock.Lang.Norwegian = {
2655
+
2656
+ 'years' : 'År',
2657
+ 'months' : 'Måneder',
2658
+ 'days' : 'Dager',
2659
+ 'hours' : 'Timer',
2660
+ 'minutes' : 'Minutter',
2661
+ 'seconds' : 'Sekunder'
2662
+
2663
+ };
2664
+
2665
+ /* Create various aliases for convenience */
2666
+
2667
+ FlipClock.Lang['no'] = FlipClock.Lang.Norwegian;
2668
+ FlipClock.Lang['nb'] = FlipClock.Lang.Norwegian;
2669
+ FlipClock.Lang['no-nb'] = FlipClock.Lang.Norwegian;
2670
+ FlipClock.Lang['norwegian'] = FlipClock.Lang.Norwegian;
2671
+
2672
+ }(jQuery));
2673
+
2674
+ (function($) {
2675
+
2676
+ /**
2677
+ * FlipClock Portuguese Language Pack
2678
+ *
2679
+ * This class will used to translate tokens into the Portuguese language.
2680
+ *
2681
+ */
2682
+
2683
+ FlipClock.Lang.Portuguese = {
2684
+
2685
+ 'years' : 'Anos',
2686
+ 'months' : 'Meses',
2687
+ 'days' : 'Dias',
2688
+ 'hours' : 'Horas',
2689
+ 'minutes' : 'Minutos',
2690
+ 'seconds' : 'Segundos'
2691
+
2692
+ };
2693
+
2694
+ /* Create various aliases for convenience */
2695
+
2696
+ FlipClock.Lang['pt'] = FlipClock.Lang.Portuguese;
2697
+ FlipClock.Lang['pt-br'] = FlipClock.Lang.Portuguese;
2698
+ FlipClock.Lang['portuguese'] = FlipClock.Lang.Portuguese;
2699
+
2700
+ }(jQuery));
2701
+ (function($) {
2702
+
2703
+ /**
2704
+ * FlipClock Russian Language Pack
2705
+ *
2706
+ * This class will used to translate tokens into the Russian language.
2707
+ *
2708
+ */
2709
+
2710
+ FlipClock.Lang.Russian = {
2711
+
2712
+ 'years' : 'лет',
2713
+ 'months' : 'месяцев',
2714
+ 'days' : 'дней',
2715
+ 'hours' : 'часов',
2716
+ 'minutes' : 'минут',
2717
+ 'seconds' : 'секунд'
2718
+
2719
+ };
2720
+
2721
+ /* Create various aliases for convenience */
2722
+
2723
+ FlipClock.Lang['ru'] = FlipClock.Lang.Russian;
2724
+ FlipClock.Lang['ru-ru'] = FlipClock.Lang.Russian;
2725
+ FlipClock.Lang['russian'] = FlipClock.Lang.Russian;
2726
+
2727
+ }(jQuery));
2728
+ (function($) {
2729
+
2730
+ /**
2731
+ * FlipClock Swedish Language Pack
2732
+ *
2733
+ * This class will used to translate tokens into the Swedish language.
2734
+ *
2735
+ */
2736
+
2737
+ FlipClock.Lang.Swedish = {
2738
+
2739
+ 'years' : 'År',
2740
+ 'months' : 'Månader',
2741
+ 'days' : 'Dagar',
2742
+ 'hours' : 'Timmar',
2743
+ 'minutes' : 'Minuter',
2744
+ 'seconds' : 'Sekunder'
2745
+
2746
+ };
2747
+
2748
+ /* Create various aliases for convenience */
2749
+
2750
+ FlipClock.Lang['sv'] = FlipClock.Lang.Swedish;
2751
+ FlipClock.Lang['sv-se'] = FlipClock.Lang.Swedish;
2752
+ FlipClock.Lang['swedish'] = FlipClock.Lang.Swedish;
2753
+
2754
+ }(jQuery));
2755
+
2756
+ (function($) {
2757
+
2758
+ /**
2759
+ * FlipClock Chinese Language Pack
2760
+ *
2761
+ * This class will used to translate tokens into the Chinese language.
2762
+ *
2763
+ */
2764
+
2765
+ FlipClock.Lang.Chinese = {
2766
+
2767
+ 'years' : '年',
2768
+ 'months' : '月',
2769
+ 'days' : '日',
2770
+ 'hours' : '时',
2771
+ 'minutes' : '分',
2772
+ 'seconds' : '秒'
2773
+
2774
+ };
2775
+
2776
+ /* Create various aliases for convenience */
2777
+
2778
+ FlipClock.Lang['zh'] = FlipClock.Lang.Chinese;
2779
+ FlipClock.Lang['zh-cn'] = FlipClock.Lang.Chinese;
2780
+ FlipClock.Lang['chinese'] = FlipClock.Lang.Chinese;
2781
+
2782
+ }(jQuery));
skin/frontend/base/default/dropfin/pricecountdown/type-4/js/flipclock.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! flipclock 2015-01-19 */
2
+ var Base=function(){};Base.extend=function(a,b){"use strict";var c=Base.prototype.extend;Base._prototyping=!0;var d=new this;c.call(d,a),d.base=function(){},delete Base._prototyping;var e=d.constructor,f=d.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==f)this._constructing=!0,e.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||c).call(arguments[0],d)};return f.ancestor=this,f.extend=this.extend,f.forEach=this.forEach,f.implement=this.implement,f.prototype=d,f.toString=this.toString,f.valueOf=function(a){return"object"==a?f:e.valueOf()},c.call(f,b),"function"==typeof f.init&&f.init(),f},Base.prototype={extend:function(a,b){if(arguments.length>1){var c=this[a];if(c&&"function"==typeof b&&(!c.valueOf||c.valueOf()!=b.valueOf())&&/\bbase\b/.test(b)){var d=b.valueOf();b=function(){var a=this.base||Base.prototype.base;this.base=c;var b=d.apply(this,arguments);return this.base=a,b},b.valueOf=function(a){return"object"==a?b:d},b.toString=Base.toString}this[a]=b}else if(a){var e=Base.prototype.extend;Base._prototyping||"function"==typeof this||(e=this.extend||e);for(var f={toSource:null},g=["constructor","toString","valueOf"],h=Base._prototyping?0:1;i=g[h++];)a[i]!=f[i]&&e.call(this,i,a[i]);for(var i in a)f[i]||e.call(this,i,a[i])}return this}},Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(a,b,c){for(var d in a)void 0===this.prototype[d]&&b.call(c,a[d],d,a)},implement:function(){for(var a=0;a<arguments.length;a++)"function"==typeof arguments[a]?arguments[a](this.prototype):this.prototype.extend(arguments[a]);return this},toString:function(){return String(this.valueOf())}});var FlipClock;!function(a){"use strict";FlipClock=function(a,b,c){return b instanceof Object&&b instanceof Date==!1&&(c=b,b=0),new FlipClock.Factory(a,b,c)},FlipClock.Lang={},FlipClock.Base=Base.extend({buildDate:"2014-12-12",version:"0.7.7",constructor:function(b,c){"object"!=typeof b&&(b={}),"object"!=typeof c&&(c={}),this.setOptions(a.extend(!0,{},b,c))},callback:function(a){if("function"==typeof a){for(var b=[],c=1;c<=arguments.length;c++)arguments[c]&&b.push(arguments[c]);a.apply(this,b)}},log:function(a){window.console&&console.log&&console.log(a)},getOption:function(a){return this[a]?this[a]:!1},getOptions:function(){return this},setOption:function(a,b){this[a]=b},setOptions:function(a){for(var b in a)"undefined"!=typeof a[b]&&this.setOption(b,a[b])}})}(jQuery),function(a){"use strict";FlipClock.Face=FlipClock.Base.extend({autoStart:!0,dividers:[],factory:!1,lists:[],constructor:function(a,b){this.dividers=[],this.lists=[],this.base(b),this.factory=a},build:function(){this.autoStart&&this.start()},createDivider:function(b,c,d){"boolean"!=typeof c&&c||(d=c,c=b);var e=['<span class="'+this.factory.classes.dot+' top"></span>','<span class="'+this.factory.classes.dot+' bottom"></span>'].join("");d&&(e=""),b=this.factory.localize(b);var f=['<span class="'+this.factory.classes.divider+" "+(c?c:"").toLowerCase()+'">','<span class="'+this.factory.classes.label+'">'+(b?b:"")+"</span>",e,"</span>"],g=a(f.join(""));return this.dividers.push(g),g},createList:function(a,b){"object"==typeof a&&(b=a,a=0);var c=new FlipClock.List(this.factory,a,b);return this.lists.push(c),c},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0,{minimumDigits:this.factory.minimumDigits}),this.flip(this.factory.original,!1)},appendDigitToClock:function(a){a.$el.append(!1)},addDigit:function(a){var b=this.createList(a,{classes:{active:this.factory.classes.active,before:this.factory.classes.before,flip:this.factory.classes.flip}});this.appendDigitToClock(b)},start:function(){},stop:function(){},autoIncrement:function(){this.factory.countdown?this.decrement():this.increment()},increment:function(){this.factory.time.addSecond()},decrement:function(){0==this.factory.time.getTimeSeconds()?this.factory.stop():this.factory.time.subSecond()},flip:function(b,c){var d=this;a.each(b,function(a,b){var e=d.lists[a];e?(c||b==e.digit||e.play(),e.select(b)):d.addDigit(b)})}})}(jQuery),function(a){"use strict";FlipClock.Factory=FlipClock.Base.extend({animationRate:1e3,autoStart:!0,callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},classes:{active:"flip-clock-active",before:"flip-clock-before",divider:"flip-clock-divider",dot:"flip-clock-dot",label:"flip-clock-label",flip:"flip",play:"play",wrapper:"flip-clock-wrapper"},clockFace:"HourlyCounter",countdown:!1,defaultClockFace:"HourlyCounter",defaultLanguage:"english",$el:!1,face:!0,lang:!1,language:"english",minimumDigits:0,original:!1,running:!1,time:!1,timer:!1,$wrapper:!1,constructor:function(b,c,d){d||(d={}),this.lists=[],this.running=!1,this.base(d),this.$el=a(b).addClass(this.classes.wrapper),this.$wrapper=this.$el,this.original=c instanceof Date?c:c?Math.round(c):0,this.time=new FlipClock.Time(this,this.original,{minimumDigits:this.minimumDigits,animationRate:this.animationRate}),this.timer=new FlipClock.Timer(this,d),this.loadLanguage(this.language),this.loadClockFace(this.clockFace,d),this.autoStart&&this.start()},loadClockFace:function(a,b){var c,d="Face",e=!1;return a=a.ucfirst()+d,this.face.stop&&(this.stop(),e=!0),this.$el.html(""),this.time.minimumDigits=this.minimumDigits,c=FlipClock[a]?new FlipClock[a](this,b):new FlipClock[this.defaultClockFace+d](this,b),c.build(),this.face=c,e&&this.start(),this.face},loadLanguage:function(a){var b;return b=FlipClock.Lang[a.ucfirst()]?FlipClock.Lang[a.ucfirst()]:FlipClock.Lang[a]?FlipClock.Lang[a]:FlipClock.Lang[this.defaultLanguage],this.lang=b},localize:function(a,b){var c=this.lang;if(!a)return null;var d=a.toLowerCase();return"object"==typeof b&&(c=b),c&&c[d]?c[d]:a},start:function(a){var b=this;b.running||b.countdown&&!(b.countdown&&b.time.time>0)?b.log("Trying to start timer when countdown already at 0"):(b.face.start(b.time),b.timer.start(function(){b.flip(),"function"==typeof a&&a()}))},stop:function(a){this.face.stop(),this.timer.stop(a);for(var b in this.lists)this.lists.hasOwnProperty(b)&&this.lists[b].stop()},reset:function(a){this.timer.reset(a),this.face.reset()},setTime:function(a){this.time.time=a,this.flip(!0)},getTime:function(){return this.time},setCountdown:function(a){var b=this.running;this.countdown=a?!0:!1,b&&(this.stop(),this.start())},flip:function(a){this.face.flip(!1,a)}})}(jQuery),function(a){"use strict";FlipClock.List=FlipClock.Base.extend({digit:0,classes:{active:"flip-clock-active",before:"flip-clock-before",flip:"flip"},factory:!1,$el:!1,$obj:!1,items:[],lastDigit:0,constructor:function(a,b){this.factory=a,this.digit=b,this.lastDigit=b,this.$el=this.createList(),this.$obj=this.$el,b>0&&this.select(b),this.factory.$el.append(this.$el)},select:function(a){if("undefined"==typeof a?a=this.digit:this.digit=a,this.digit!=this.lastDigit){var b=this.$el.find("."+this.classes.before).removeClass(this.classes.before);this.$el.find("."+this.classes.active).removeClass(this.classes.active).addClass(this.classes.before),this.appendListItem(this.classes.active,this.digit),b.remove(),this.lastDigit=this.digit}},play:function(){this.$el.addClass(this.factory.classes.play)},stop:function(){var a=this;setTimeout(function(){a.$el.removeClass(a.factory.classes.play)},this.factory.timer.interval)},createListItem:function(a,b){return['<li class="'+(a?a:"")+'">','<a href="#">','<div class="up">','<div class="shadow"></div>','<div class="inn">'+(b?b:"")+"</div>","</div>",'<div class="down">','<div class="shadow"></div>','<div class="inn">'+(b?b:"")+"</div>","</div>","</a>","</li>"].join("")},appendListItem:function(a,b){var c=this.createListItem(a,b);this.$el.append(c)},createList:function(){var b=this.getPrevDigit()?this.getPrevDigit():this.digit,c=a(['<ul class="'+this.classes.flip+" "+(this.factory.running?this.factory.classes.play:"")+'">',this.createListItem(this.classes.before,b),this.createListItem(this.classes.active,this.digit),"</ul>"].join(""));return c},getNextDigit:function(){return 9==this.digit?0:this.digit+1},getPrevDigit:function(){return 0==this.digit?9:this.digit-1}})}(jQuery),function(a){"use strict";String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)},a.fn.FlipClock=function(b,c){return new FlipClock(a(this),b,c)},a.fn.flipClock=function(b,c){return a.fn.FlipClock(b,c)}}(jQuery),function(a){"use strict";FlipClock.Time=FlipClock.Base.extend({time:0,factory:!1,minimumDigits:0,constructor:function(a,b,c){"object"!=typeof c&&(c={}),c.minimumDigits||(c.minimumDigits=a.minimumDigits),this.base(c),this.factory=a,b&&(this.time=b)},convertDigitsToArray:function(a){var b=[];a=a.toString();for(var c=0;c<a.length;c++)a[c].match(/^\d*$/g)&&b.push(a[c]);return b},digit:function(a){var b=this.toString(),c=b.length;return b[c-a]?b[c-a]:!1},digitize:function(b){var c=[];if(a.each(b,function(a,b){b=b.toString(),1==b.length&&(b="0"+b);for(var d=0;d<b.length;d++)c.push(b.charAt(d))}),c.length>this.minimumDigits&&(this.minimumDigits=c.length),this.minimumDigits>c.length)for(var d=c.length;d<this.minimumDigits;d++)c.unshift("0");return c},getDateObject:function(){return this.time instanceof Date?this.time:new Date((new Date).getTime()+1e3*this.getTimeSeconds())},getDayCounter:function(a){var b=[this.getDays(),this.getHours(!0),this.getMinutes(!0)];return a&&b.push(this.getSeconds(!0)),this.digitize(b)},getDays:function(a){var b=this.getTimeSeconds()/60/60/24;return a&&(b%=7),Math.floor(b)},getHourCounter:function(){var a=this.digitize([this.getHours(),this.getMinutes(!0),this.getSeconds(!0)]);return a},getHourly:function(){return this.getHourCounter()},getHours:function(a){var b=this.getTimeSeconds()/60/60;return a&&(b%=24),Math.floor(b)},getMilitaryTime:function(a,b){"undefined"==typeof b&&(b=!0),a||(a=this.getDateObject());var c=[a.getHours(),a.getMinutes()];return b===!0&&c.push(a.getSeconds()),this.digitize(c)},getMinutes:function(a){var b=this.getTimeSeconds()/60;return a&&(b%=60),Math.floor(b)},getMinuteCounter:function(){var a=this.digitize([this.getMinutes(),this.getSeconds(!0)]);return a},getTimeSeconds:function(a){return a||(a=new Date),this.time instanceof Date?this.factory.countdown?Math.max(this.time.getTime()/1e3-a.getTime()/1e3,0):a.getTime()/1e3-this.time.getTime()/1e3:this.time},getTime:function(a,b){"undefined"==typeof b&&(b=!0),a||(a=this.getDateObject()),console.log(a);var c=a.getHours(),d=[c>12?c-12:0===c?12:c,a.getMinutes()];return b===!0&&d.push(a.getSeconds()),this.digitize(d)},getSeconds:function(a){var b=this.getTimeSeconds();return a&&(60==b?b=0:b%=60),Math.ceil(b)},getWeeks:function(a){var b=this.getTimeSeconds()/60/60/24/7;return a&&(b%=52),Math.floor(b)},removeLeadingZeros:function(b,c){var d=0,e=[];return a.each(c,function(a){b>a?d+=parseInt(c[a],10):e.push(c[a])}),0===d?e:c},addSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()+a):this.time+=a},addSecond:function(){this.addSeconds(1)},subSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()-a):this.time-=a},subSecond:function(){this.subSeconds(1)},toString:function(){return this.getTimeSeconds().toString()}})}(jQuery),function(){"use strict";FlipClock.Timer=FlipClock.Base.extend({callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},count:0,factory:!1,interval:1e3,animationRate:1e3,constructor:function(a,b){this.base(b),this.factory=a,this.callback(this.callbacks.init),this.callback(this.callbacks.create)},getElapsed:function(){return this.count*this.interval},getElapsedTime:function(){return new Date(this.time+this.getElapsed())},reset:function(a){clearInterval(this.timer),this.count=0,this._setInterval(a),this.callback(this.callbacks.reset)},start:function(a){this.factory.running=!0,this._createTimer(a),this.callback(this.callbacks.start)},stop:function(a){this.factory.running=!1,this._clearInterval(a),this.callback(this.callbacks.stop),this.callback(a)},_clearInterval:function(){clearInterval(this.timer)},_createTimer:function(a){this._setInterval(a)},_destroyTimer:function(a){this._clearInterval(),this.timer=!1,this.callback(a),this.callback(this.callbacks.destroy)},_interval:function(a){this.callback(this.callbacks.interval),this.callback(a),this.count++},_setInterval:function(a){var b=this;b._interval(a),b.timer=setInterval(function(){b._interval(a)},this.interval)}})}(jQuery),function(a){FlipClock.TwentyFourHourClockFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul");this.factory.time.time||(this.factory.original=new Date,this.factory.time=new FlipClock.Time(this.factory,this.factory.original));var b=b?b:this.factory.time.getMilitaryTime(!1,this.showSeconds);b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.createDivider(),this.createDivider(),a(this.dividers[0]).insertBefore(this.lists[this.lists.length-2].$el),a(this.dividers[1]).insertBefore(this.lists[this.lists.length-4].$el),this.base()},flip:function(a,b){this.autoIncrement(),a=a?a:this.factory.time.getMilitaryTime(!1,this.showSeconds),this.base(a,b)}})}(jQuery),function(a){FlipClock.CounterFace=FlipClock.Face.extend({shouldAutoIncrement:!1,constructor:function(a,b){"object"!=typeof b&&(b={}),a.autoStart=b.autoStart?!0:!1,b.autoStart&&(this.shouldAutoIncrement=!0),a.increment=function(){a.countdown=!1,a.setTime(a.getTime().getTimeSeconds()+1)},a.decrement=function(){a.countdown=!0;var b=a.getTime().getTimeSeconds();b>0&&a.setTime(b-1)},a.setValue=function(b){a.setTime(b)},a.setCounter=function(b){a.setTime(b)},this.base(a,b)},build:function(){var b=this,c=this.factory.$el.find("ul"),d=this.factory.getTime().digitize([this.factory.getTime().time]);d.length>c.length&&a.each(d,function(a,c){var d=b.createList(c);d.select(c)}),a.each(this.lists,function(a,b){b.play()}),this.base()},flip:function(a,b){this.shouldAutoIncrement&&this.autoIncrement(),a||(a=this.factory.getTime().digitize([this.factory.getTime().time])),this.base(a,b)},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0),this.flip()}})}(jQuery),function(a){FlipClock.DailyCounterFace=FlipClock.Face.extend({showSeconds:!0,constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul"),e=0;b=b?b:this.factory.time.getDayCounter(this.showSeconds),b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.showSeconds?a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el):e=2,a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4+e].$el),a(this.createDivider("Hours")).insertBefore(this.lists[this.lists.length-6+e].$el),a(this.createDivider("Days",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getDayCounter(this.showSeconds)),this.autoIncrement(),this.base(a,b)}})}(jQuery),function(a){FlipClock.HourlyCounterFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b,c){var d=this,e=this.factory.$el.find("ul");c=c?c:this.factory.time.getHourCounter(),c.length>e.length&&a.each(c,function(a,b){d.createList(b)}),a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el),a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4].$el),b||a(this.createDivider("Hours",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getHourCounter()),this.autoIncrement(),this.base(a,b)},appendDigitToClock:function(a){this.base(a),this.dividers[0].insertAfter(this.dividers[0].next())}})}(jQuery),function(){FlipClock.MinuteCounterFace=FlipClock.HourlyCounterFace.extend({clearExcessDigits:!1,constructor:function(a,b){this.base(a,b)},build:function(){this.base(!0,this.factory.time.getMinuteCounter())},flip:function(a,b){a||(a=this.factory.time.getMinuteCounter()),this.base(a,b)}})}(jQuery),function(a){FlipClock.TwelveHourClockFace=FlipClock.TwentyFourHourClockFace.extend({meridium:!1,meridiumText:"AM",build:function(){var b=this.factory.time.getTime(!1,this.showSeconds);this.base(b),this.meridiumText=this.getMeridium(),this.meridium=a(['<ul class="flip-clock-meridium">',"<li>",'<a href="#">'+this.meridiumText+"</a>","</li>","</ul>"].join("")),this.meridium.insertAfter(this.lists[this.lists.length-1].$el)},flip:function(a,b){this.meridiumText!=this.getMeridium()&&(this.meridiumText=this.getMeridium(),this.meridium.find("a").html(this.meridiumText)),this.base(this.factory.time.getTime(!1,this.showSeconds),b)},getMeridium:function(){return(new Date).getHours()>=12?"PM":"AM"},isPM:function(){return"PM"==this.getMeridium()?!0:!1},isAM:function(){return"AM"==this.getMeridium()?!0:!1}})}(jQuery),function(){FlipClock.Lang.Arabic={years:"سنوات",months:"شهور",days:"أيام",hours:"ساعات",minutes:"دقائق",seconds:"ثواني"},FlipClock.Lang.ar=FlipClock.Lang.Arabic,FlipClock.Lang["ar-ar"]=FlipClock.Lang.Arabic,FlipClock.Lang.arabic=FlipClock.Lang.Arabic}(jQuery),function(){FlipClock.Lang.Danish={years:"År",months:"Måneder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.da=FlipClock.Lang.Danish,FlipClock.Lang["da-dk"]=FlipClock.Lang.Danish,FlipClock.Lang.danish=FlipClock.Lang.Danish}(jQuery),function(){FlipClock.Lang.German={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},FlipClock.Lang.de=FlipClock.Lang.German,FlipClock.Lang["de-de"]=FlipClock.Lang.German,FlipClock.Lang.german=FlipClock.Lang.German}(jQuery),function(){FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}(jQuery),function(){FlipClock.Lang.Spanish={years:"A&#241;os",months:"Meses",days:"D&#205;as",hours:"Horas",minutes:"Minutos",seconds:"Segundo"},FlipClock.Lang.es=FlipClock.Lang.Spanish,FlipClock.Lang["es-es"]=FlipClock.Lang.Spanish,FlipClock.Lang.spanish=FlipClock.Lang.Spanish}(jQuery),function(){FlipClock.Lang.Finnish={years:"Vuotta",months:"Kuukautta",days:"Päivää",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},FlipClock.Lang.fi=FlipClock.Lang.Finnish,FlipClock.Lang["fi-fi"]=FlipClock.Lang.Finnish,FlipClock.Lang.finnish=FlipClock.Lang.Finnish}(jQuery),function(){FlipClock.Lang.French={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},FlipClock.Lang.fr=FlipClock.Lang.French,FlipClock.Lang["fr-ca"]=FlipClock.Lang.French,FlipClock.Lang.french=FlipClock.Lang.French}(jQuery),function(){FlipClock.Lang.Italian={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},FlipClock.Lang.it=FlipClock.Lang.Italian,FlipClock.Lang["it-it"]=FlipClock.Lang.Italian,FlipClock.Lang.italian=FlipClock.Lang.Italian}(jQuery),function(){FlipClock.Lang.Latvian={years:"Gadi",months:"Mēneši",days:"Dienas",hours:"Stundas",minutes:"Minūtes",seconds:"Sekundes"},FlipClock.Lang.lv=FlipClock.Lang.Latvian,FlipClock.Lang["lv-lv"]=FlipClock.Lang.Latvian,FlipClock.Lang.latvian=FlipClock.Lang.Latvian}(jQuery),function(){FlipClock.Lang.Dutch={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},FlipClock.Lang.nl=FlipClock.Lang.Dutch,FlipClock.Lang["nl-be"]=FlipClock.Lang.Dutch,FlipClock.Lang.dutch=FlipClock.Lang.Dutch}(jQuery),function(){FlipClock.Lang.Norwegian={years:"År",months:"Måneder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.no=FlipClock.Lang.Norwegian,FlipClock.Lang.nb=FlipClock.Lang.Norwegian,FlipClock.Lang["no-nb"]=FlipClock.Lang.Norwegian,FlipClock.Lang.norwegian=FlipClock.Lang.Norwegian}(jQuery),function(){FlipClock.Lang.Portuguese={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.pt=FlipClock.Lang.Portuguese,FlipClock.Lang["pt-br"]=FlipClock.Lang.Portuguese,FlipClock.Lang.portuguese=FlipClock.Lang.Portuguese}(jQuery),function(){FlipClock.Lang.Russian={years:"лет",months:"месяцев",days:"дней",hours:"часов",minutes:"минут",seconds:"секунд"},FlipClock.Lang.ru=FlipClock.Lang.Russian,FlipClock.Lang["ru-ru"]=FlipClock.Lang.Russian,FlipClock.Lang.russian=FlipClock.Lang.Russian}(jQuery),function(){FlipClock.Lang.Swedish={years:"År",months:"Månader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},FlipClock.Lang.sv=FlipClock.Lang.Swedish,FlipClock.Lang["sv-se"]=FlipClock.Lang.Swedish,FlipClock.Lang.swedish=FlipClock.Lang.Swedish}(jQuery),function(){FlipClock.Lang.Chinese={years:"年",months:"月",days:"日",hours:"时",minutes:"分",seconds:"秒"},FlipClock.Lang.zh=FlipClock.Lang.Chinese,FlipClock.Lang["zh-cn"]=FlipClock.Lang.Chinese,FlipClock.Lang.chinese=FlipClock.Lang.Chinese}(jQuery);
skin/frontend/base/default/dropfin/pricecountdown/type-4/js/jquery.1.11.0.min.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1);else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L="undefined",M;for(M in n(l))break;l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f
3
+ }}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},W=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a>",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=$.test(e)?this.mouseHooks:Z.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||z),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||z,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==db()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===db()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=z.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===L&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?bb:cb):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submitBubbles||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?b.form:void 0;c&&!n._data(c,"submitBubbles")&&(n.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),n._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.changeBubbles||(n.event.special.change={setup:function(){return Y.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),n.event.simulate("change",this,a,!0)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;Y.test(b.nodeName)&&!n._data(b,"changeBubbles")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a,!0)}),n._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!Y.test(this.nodeName)}}),l.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=cb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return n().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=cb),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});function eb(a){var b=fb.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var fb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gb=/ jQuery\d+="(?:null|\d+)"/g,hb=new RegExp("<(?:"+fb+")[\\s/>]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/<tbody/i,mb=/<|&#?\w+;/,nb=/<(?:script|style|link)/i,ob=/checked\s*(?:[^=]|=\s*.checked.)/i,pb=/^$|\/(?:java|ecma)script/i,qb=/^true\/(.*)/,rb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,sb={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if("object"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1></$2>")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?"<table>"!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0;if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")));i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Db[0].contentWindow||Db[0].contentDocument).document,b.write(),b.close(),c=Fb(a,b),Db.detach()),Eb[a]=c),c}!function(){var a,b,c=z.createElement("div"),d="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],a.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(a.style.opacity),l.cssFloat=!!a.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===c.style.backgroundClip,a=c=null,l.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=z.getElementsByTagName("body")[0],!a)return;f="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",c=z.createElement("div"),e=z.createElement("div"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==L&&(e.style.cssText=d+";width:1px;padding:1px;zoom:1",e.innerHTML="<div></div>",e.firstChild.style.width="5px",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var Hb=/^margin/,Ib=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Jb,Kb,Lb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Jb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),Ib.test(g)&&Hb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):z.documentElement.currentStyle&&(Jb=function(a){return a.currentStyle},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ib.test(g)&&!Lb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Mb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h=z.createElement("div"),i="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",j="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";h.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",b=h.getElementsByTagName("a")[0],b.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(b.style.opacity),l.cssFloat=!!b.style.cssFloat,h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,b=h=null,n.extend(l,{reliableHiddenOffsets:function(){if(null!=c)return c;var a,b,d,e=z.createElement("div"),f=z.getElementsByTagName("body")[0];if(f)return e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=z.createElement("div"),a.style.cssText=i,f.appendChild(a).appendChild(e),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=e.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",d=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",c=d&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,c},boxSizing:function(){return null==d&&k(),d},boxSizingReliable:function(){return null==e&&k(),e},pixelPosition:function(){return null==f&&k(),f},reliableMarginRight:function(){var b,c,d,e;if(null==g&&a.getComputedStyle){if(b=z.getElementsByTagName("body")[0],!b)return;c=z.createElement("div"),d=z.createElement("div"),c.style.cssText=i,b.appendChild(c).appendChild(d),e=d.appendChild(z.createElement("div")),e.style.cssText=d.style.cssText=j,e.style.marginRight=e.style.width="0",d.style.width="1px",g=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return g}});function k(){var b,c,h=z.getElementsByTagName("body")[0];h&&(b=z.createElement("div"),c=z.createElement("div"),b.style.cssText=i,h.appendChild(b).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",n.swap(h,null!=h.style.zoom?{zoom:1}:{},function(){d=4===c.offsetWidth}),e=!0,f=!1,g=!0,a.getComputedStyle&&(f="1%"!==(a.getComputedStyle(c,null)||{}).top,e="4px"===(a.getComputedStyle(c,null)||{width:"4px"}).width),h.removeChild(b),c=h=null)}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Nb=/alpha\([^)]*\)/i,Ob=/opacity\s*=\s*([^)]*)/,Pb=/^(none|table(?!-c[ea]).+)/,Qb=new RegExp("^("+T+")(.*)$","i"),Rb=new RegExp("^([+-])=("+T+")","i"),Sb={position:"absolute",visibility:"hidden",display:"block"},Tb={letterSpacing:0,fontWeight:400},Ub=["Webkit","O","Moz","ms"];function Vb(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ub.length;while(e--)if(b=Ub[e]+c,b in a)return b;return d}function Wb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=n._data(d,"olddisplay",Gb(d.nodeName)))):f[g]||(e=V(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Xb(a,b,c){var d=Qb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Yb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Zb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Jb(a),g=l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Kb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ib.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Yb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Kb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=Vb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Rb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]="",i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Vb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Kb(a,b,d)),"normal"===f&&b in Tb&&(f=Tb[b]),""===c||c?(e=parseFloat(f),c===!0||n.isNumeric(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&Pb.test(n.css(a,"display"))?n.swap(a,Sb,function(){return Zb(a,b,d)}):Zb(a,b,d):void 0},set:function(a,c,d){var e=d&&Jb(a);return Xb(a,c,d?Yb(a,b,d,l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Ob.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Nb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Nb.test(f)?f.replace(Nb,e):f+" "+e)}}),n.cssHooks.marginRight=Mb(l.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},Kb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Hb.test(a)||(n.cssHooks[a+b].set=Xb)}),n.fn.extend({css:function(a,b){return W(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Jb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)
4
+ },a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function $b(a,b,c,d,e){return new $b.prototype.init(a,b,c,d,e)}n.Tween=$b,$b.prototype={constructor:$b,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=$b.propHooks[this.prop];return a&&a.get?a.get(this):$b.propHooks._default.get(this)},run:function(a){var b,c=$b.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):$b.propHooks._default.set(this),this}},$b.prototype.init.prototype=$b.prototype,$b.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},$b.propHooks.scrollTop=$b.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=$b.prototype.init,n.fx.step={};var _b,ac,bc=/^(?:toggle|show|hide)$/,cc=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),dc=/queueHooks$/,ec=[jc],fc={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=cc.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&cc.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function gc(){return setTimeout(function(){_b=void 0}),_b=n.now()}function hc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=U[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function ic(a,b,c){for(var d,e=(fc[b]||[]).concat(fc["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function jc(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k=Gb(a.nodeName),"none"===j&&(j=k),"inline"===j&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==k?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],bc.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}if(!n.isEmptyObject(o)){r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=ic(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function kc(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function lc(a,b,c){var d,e,f=0,g=ec.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=_b||gc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:_b||gc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(kc(k,j.opts.specialEasing);g>f;f++)if(d=ec[f].call(j,a,k,j.opts))return d;return n.map(k,ic,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(lc,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],fc[c]=fc[c]||[],fc[c].unshift(b)},prefilter:function(a,b){b?ec.unshift(a):ec.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=lc(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&dc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(hc(b,!0),a,d,e)}}),n.each({slideDown:hc("show"),slideUp:hc("hide"),slideToggle:hc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(_b=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),_b=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ac||(ac=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(ac),ac=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=z.createElement("div");e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=e.getElementsByTagName("a")[0],c=z.createElement("select"),d=c.appendChild(z.createElement("option")),b=e.getElementsByTagName("input")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==e.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=d.selected,l.enctype=!!z.createElement("form").enctype,c.disabled=!0,l.optDisabled=!d.disabled,b=z.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value,a=b=c=d=e=null}();var mc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(mc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var nc,oc,pc=n.expr.attrHandle,qc=/^(?:checked|selected)$/i,rc=l.getSetAttribute,sc=l.input;n.fn.extend({attr:function(a,b){return W(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===L?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?oc:nc)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?sc&&rc||!qc.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(rc?c:d)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),oc={set:function(a,b,c){return b===!1?n.removeAttr(a,c):sc&&rc||!qc.test(c)?a.setAttribute(!rc&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=pc[b]||n.find.attr;pc[b]=sc&&rc||!qc.test(b)?function(a,b,d){var e,f;return d||(f=pc[b],pc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,pc[b]=f),e}:function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),sc&&rc||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):nc&&nc.set(a,b,c)}}),rc||(nc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},pc.id=pc.name=pc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:nc.set},n.attrHooks.contenteditable={set:function(a,b,c){nc.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var tc=/^(?:input|select|textarea|button|object)$/i,uc=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return W(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):tc.test(a.nodeName)||uc.test(a.nodeName)&&a.href?0:-1}}}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var vc=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===L||"boolean"===c)&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||a===!1?"":n._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(vc," ").indexOf(b)>=0)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var wc=n.now(),xc=/\?/,yc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(yc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var zc,Ac,Bc=/#.*$/,Cc=/([?&])_=[^&]*/,Dc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ec=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fc=/^(?:GET|HEAD)$/,Gc=/^\/\//,Hc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ic={},Jc={},Kc="*/".concat("*");try{Ac=location.href}catch(Lc){Ac=z.createElement("a"),Ac.href="",Ac=Ac.href}zc=Hc.exec(Ac.toLowerCase())||[];function Mc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nc(a,b,c,d){var e={},f=a===Jc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Oc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Pc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Qc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ac,type:"GET",isLocal:Ec.test(zc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Oc(Oc(a,n.ajaxSettings),b):Oc(n.ajaxSettings,a)},ajaxPrefilter:Mc(Ic),ajaxTransport:Mc(Jc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Dc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||Ac)+"").replace(Bc,"").replace(Gc,zc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(F)||[""],null==k.crossDomain&&(c=Hc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===zc[1]&&c[2]===zc[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(zc[3]||("http:"===zc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),Nc(Ic,k,b,v),2===t)return v;h=k.global,h&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Fc.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(xc.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Cc.test(e)?e.replace(Cc,"$1_="+wc++):e+(xc.test(e)?"&":"?")+"_="+wc++)),k.ifModified&&(n.lastModified[e]&&v.setRequestHeader("If-Modified-Since",n.lastModified[e]),n.etag[e]&&v.setRequestHeader("If-None-Match",n.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Kc+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Nc(Jc,k,b,v)){v.readyState=1,h&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Pc(k,v,c)),u=Qc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(n.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!l.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||n.css(a,"display"))},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Rc=/%20/g,Sc=/\[\]$/,Tc=/\r?\n/g,Uc=/^(?:submit|button|image|reset|file)$/i,Vc=/^(?:input|select|textarea|keygen)/i;function Wc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Sc.test(a)?d(a,e):Wc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Wc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Wc(c,a[c],b,e);return d.join("&").replace(Rc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Vc.test(this.nodeName)&&!Uc.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Tc,"\r\n")}}):{name:b.name,value:c.replace(Tc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$c()||_c()}:$c;var Xc=0,Yc={},Zc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Yc)Yc[a](void 0,!0)}),l.cors=!!Zc&&"withCredentials"in Zc,Zc=l.ajax=!!Zc,Zc&&n.ajaxTransport(function(a){if(!a.crossDomain||l.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Yc[g],b=void 0,f.onreadystatechange=n.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function $c(){try{return new a.XMLHttpRequest}catch(b){}}function _c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=z.head||n("head")[0]||z.documentElement;return{send:function(d,e){b=z.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ad=[],bd=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ad.pop()||n.expando+"_"+wc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bd.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&bd.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bd,"$1"+e):b.jsonp!==!1&&(b.url+=(xc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ad.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||z;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var cd=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&cd)return cd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&n.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});