DD_Customsitemaintanance - Version 0.1.0

Version Notes

It is stable version.

Download this release

Release Info

Developer Magento Core Team
Extension DD_Customsitemaintanance
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/community/DD/Customsitemaintanance/Block/Adminhtml/System/Config/Date.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class DD_Customsitemaintanance_Block_Adminhtml_System_Config_Date extends Mage_Adminhtml_Block_System_Config_Form_Field
3
+ {
4
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
5
+ {
6
+ $date = new Varien_Data_Form_Element_Date;
7
+ $format = 'M/dd/yy';
8
+
9
+ $data = array(
10
+ 'name' => $element->getName(),
11
+ 'html_id' => $element->getId(),
12
+ 'image' => $this->getSkinUrl('images/grid-cal.gif'),
13
+ );
14
+ $date->setData($data);
15
+ $date->setValue($element->getValue(), $format);
16
+ $date->setFormat($format);
17
+ $date->setClass($element->getFieldConfig()->validate->asArray());
18
+ $date->setForm($element->getForm());
19
+
20
+ return $date->getElementHtml();
21
+ }
22
+ }
app/code/community/DD/Customsitemaintanance/Block/Adminhtml/System/Config/Editor.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ class DD_Customsitemaintanance_Block_Adminhtml_System_Config_Editor extends Mage_Adminhtml_Block_System_Config_Form_Field implements Varien_Data_Form_Element_Renderer_Interface {
11
+
12
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
13
+
14
+ $element->setWysiwyg(true);
15
+ $element->setConfig(Mage::getSingleton('cms/wysiwyg_config')->getConfig());
16
+ return parent::_getElementHtml($element);
17
+ }
18
+
19
+ }
app/code/community/DD/Customsitemaintanance/Block/Index.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ class DD_Customsitemaintanance_Block_Index extends Mage_Core_Block_Template {
11
+
12
+ }
app/code/community/DD/Customsitemaintanance/Helper/Data.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ class DD_Customsitemaintanance_Helper_Data extends Mage_Core_Helper_Abstract {
11
+
12
+ }
app/code/community/DD/Customsitemaintanance/Model/Observer.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ class DD_Customsitemaintanance_Model_Observer {
11
+
12
+ /**
13
+ * Checks whether the maintanance mode is enabled on every page load
14
+ */
15
+ public function initFirstLoad() {
16
+
17
+ $switchSessionName = 'adminhtml';
18
+ $currentSessionId = Mage::getSingleton('core/session')->getSessionId();
19
+ $currentSessionName = Mage::getSingleton('core/session')->getSessionName();
20
+ if ($currentSessionId && $currentSessionName && isset($_COOKIE[$currentSessionName])) {
21
+ $switchSessionId = $_COOKIE[$switchSessionName];
22
+ $this->_switchSession($switchSessionName, $switchSessionId);
23
+ $whateverData = Mage::getModel('admin/session')->getData();
24
+ $this->_switchSession($currentSessionName, $currentSessionId);
25
+ }
26
+ $red_url = explode("\n", Mage::getStoreConfig('customsitemaintanance/general/redirecturl', Mage::app()->getStore()));
27
+ $redirect_url = array_map('trim', $red_url);
28
+ $adminFrontName = Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
29
+ $area = Mage::app()->getRequest()->getOriginalPathInfo();
30
+ if ((!in_array($area, $redirect_url))) {
31
+ $storeId = Mage::app()->getStore()->getStoreId();
32
+ $allowedIPs = Mage::getStoreConfig('customsitemaintanance/general/allowedIPs', $storeId);
33
+ $allowedIPs = preg_replace('/ /', '', $allowedIPs);
34
+ $isEnabled = Mage::getStoreConfig('customsitemaintanance/general/enabled', $storeId);
35
+ $newBlock = Mage::app()->getLayout()
36
+ ->createBlock('customsitemaintanance/index')
37
+ ->setTemplate('customsitemaintanance/customsitemaintanance.phtml')
38
+ ->toHtml();
39
+ if ($isEnabled == '1') {
40
+ $IPs = array();
41
+ if ('' !== trim($allowedIPs)) {
42
+ $IPs = explode(',', $allowedIPs);
43
+ }
44
+ $currentIP = $_SERVER['REMOTE_ADDR'];
45
+ $allowForAdmin = Mage::getStoreConfig('customsitemaintanance/general/allowforadmin', $storeId);
46
+ $adminIp = null;
47
+ Mage::getSingleton('core/session', array('name' => 'adminhtml'));
48
+ $adminSession = Mage::getSingleton('admin/session');
49
+ if ($allowForAdmin == 1) {
50
+ if ($adminSession->isLoggedIn()) {
51
+ $adminIp = $adminSession['_session_validator_data']['remote_addr'];
52
+ }
53
+ }
54
+ if (!in_array($currentIP, $IPs) && ((!$whateverData[user][is_active]) || ($whateverData[user][is_active]) && ($allowForAdmin == '0'))) {
55
+ echo $newBlock;
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+ /**
62
+ *
63
+ * @param type $namespace
64
+ * @param type $id
65
+ */
66
+ protected function _switchSession($namespace, $id = null) {
67
+ session_write_close();
68
+ $GLOBALS['_SESSION'] = null;
69
+ $session = Mage::getSingleton('core/session');
70
+ if ($id) {
71
+ $session->setSessionId($id);
72
+ }
73
+ $session->start($namespace);
74
+ }
75
+
76
+ }
77
+ ?>
78
+
app/code/community/DD/Customsitemaintanance/controllers/IndexController.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ class DD_Customsitemaintanance_IndexController extends Mage_Core_Controller_Front_Action {
11
+
12
+ public function IndexAction() {
13
+ $storeId = Mage::app()->getStore()->getStoreId();
14
+ $title = Mage::getStoreConfig('customsitemaintanance/general/page_title', $storeId);
15
+ $this->loadLayout();
16
+
17
+ $this->getLayout()->getBlock("head")->setTitle($this->__($title));
18
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
19
+ $breadcrumbs->addCrumb("home", array(
20
+ "label" => $this->__("Home Page"),
21
+ "title" => $this->__("Home Page"),
22
+ "link" => Mage::getBaseUrl()
23
+ ));
24
+
25
+ $breadcrumbs->addCrumb("Site Maintanance", array(
26
+ "label" => $this->__("Site Maintanance"),
27
+ "title" => $this->__("Site Maintanance")
28
+ ));
29
+
30
+ $this->renderLayout();
31
+ }
32
+
33
+ }
app/code/community/DD/Customsitemaintanance/etc/config.xml ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ -->
11
+ <config>
12
+ <modules>
13
+ <DD_Customsitemaintanance>
14
+ <version>0.1.0</version>
15
+ </DD_Customsitemaintanance>
16
+ </modules>
17
+ <frontend>
18
+ <routers>
19
+ <customsitemaintanance>
20
+ <use>standard</use>
21
+ <args>
22
+ <module>DD_Customsitemaintanance</module>
23
+ <frontName>customsitemaintanance</frontName>
24
+ </args>
25
+ </customsitemaintanance>
26
+ </routers>
27
+ <layout>
28
+ <updates>
29
+ <customsitemaintanance>
30
+ <file>customsitemaintanance.xml</file>
31
+ </customsitemaintanance>
32
+ </updates>
33
+ </layout>
34
+ </frontend>
35
+ <admin>
36
+ <routers>
37
+ <customsitemaintanance>
38
+ <use>admin</use>
39
+ <args>
40
+ <module>DD_Customsitemaintanance</module>
41
+ <frontName>customsitemaintanance</frontName>
42
+ </args>
43
+ </customsitemaintanance>
44
+ </routers>
45
+ </admin>
46
+ <adminhtml>
47
+ <acl>
48
+ <resources>
49
+ <all>
50
+ <title>Allow Everything</title>
51
+ </all>
52
+ <admin>
53
+ <children>
54
+ <DD_Customsitemaintanance>
55
+ <title>Customsitemaintanance Module</title>
56
+ <sort_order>10</sort_order>
57
+ </DD_Customsitemaintanance>
58
+ <system>
59
+ <children>
60
+ <config>
61
+ <children>
62
+ <customsitemaintanance>
63
+ <title>Easymaintanance</title>
64
+ </customsitemaintanance>
65
+ </children>
66
+ </config>
67
+ </children>
68
+ </system>
69
+ </children>
70
+ </admin>
71
+ </resources>
72
+ </acl>
73
+ <layout>
74
+ <updates>
75
+ <customsitemaintanance>
76
+ <file>customsitemaintanance.xml</file>
77
+ </customsitemaintanance>
78
+ </updates>
79
+ </layout>
80
+ </adminhtml>
81
+ <global>
82
+ <helpers>
83
+ <customsitemaintanance>
84
+ <class>DD_Customsitemaintanance_Helper</class>
85
+ </customsitemaintanance>
86
+ </helpers>
87
+ <blocks>
88
+ <customsitemaintanance>
89
+ <class>DD_Customsitemaintanance_Block</class>
90
+ </customsitemaintanance>
91
+ </blocks>
92
+ <models>
93
+ <customsitemaintanance>
94
+ <class>DD_Customsitemaintanance_Model</class>
95
+ </customsitemaintanance>
96
+ </models>
97
+ <resources>
98
+ <customsitemaintanance_setup>
99
+ <setup>
100
+ <module>DD_Customsitemaintanance</module>
101
+ </setup>
102
+ <connection>
103
+ <use>core_setup</use>
104
+ </connection>
105
+ </customsitemaintanance_setup>
106
+ <customsitemaintanance_write>
107
+ <connection>
108
+ <use>core_write</use>
109
+ </connection>
110
+ </customsitemaintanance_write>
111
+ <customsitemaintanance_read>
112
+ <connection>
113
+ <use>core_read</use>
114
+ </connection>
115
+ </customsitemaintanance_read>
116
+ </resources>
117
+ <events>
118
+ <controller_front_send_response_before>
119
+ <observers>
120
+ <customsitemaintanance>
121
+ <type>singleton</type>
122
+ <class>customsitemaintanance/observer</class>
123
+ <method>initFirstLoad</method>
124
+ </customsitemaintanance>
125
+ </observers>
126
+ </controller_front_send_response_before>
127
+ </events>
128
+ </global>
129
+ </config>
app/code/community/DD/Customsitemaintanance/etc/system.xml ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ -->
11
+
12
+ <config>
13
+
14
+ <tabs><!--creates a tab DD_Customsite_Maintanance on the adminhtml page-->
15
+ <dd translate="label" module="customsitemaintanance">
16
+ <label>Dynamic Dreamz Extensions</label>
17
+ <sort_order>0</sort_order><!--the order of the tab-->
18
+ </dd>
19
+ </tabs>
20
+ <sections><!--creates a section Custom Site Maintenance under the tab DD_Customsite_Maintanance-->
21
+ <customsitemaintanance translate="label" module="customsitemaintanance">
22
+ <label>Custom Site Maintenance</label>
23
+ <tab>dd</tab>
24
+ <frontend_type>text</frontend_type>
25
+ <sort_order>0</sort_order>
26
+ <show_in_default>1</show_in_default>
27
+ <show_in_website>1</show_in_website>
28
+ <show_in_store>1</show_in_store>
29
+ <groups><!--creates a group Maintanance Configuration under the section Custom Site Maintenance-->
30
+ <general translate="label">
31
+ <label>Maintanance Configuration</label>
32
+ <frontend_type>text</frontend_type>
33
+ <sort_order>1</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ <fields>
38
+ <enabled translate="label"><!--creates a field Site Maintanance under the group Maintanance Configuration-->
39
+ <label>Site Maintanance</label>
40
+ <comment>Enable or disable Site Maintanance</comment>
41
+ <frontend_type>select</frontend_type>
42
+ <source_model>adminhtml/system_config_source_yesno</source_model>
43
+ <sort_order>1</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ </enabled>
48
+ <allowforadmin translate="label"><!--creates a field Allow Frontend for Admin under the group Maintanance Configuration-->
49
+ <label>Allow Frontend for Admin</label>
50
+ <comment>Frontend is allow for logged admin user</comment>
51
+ <frontend_type>select</frontend_type>
52
+ <source_model>adminhtml/system_config_source_yesno</source_model>
53
+ <sort_order>2</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>1</show_in_store>
57
+ </allowforadmin>
58
+ <page_title translate="label"><!--creates a field Page Title under the group Maintanance Configuration-->
59
+ <label>Page Title</label>
60
+ <comment>Add Site Maintanance page Title</comment>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>5</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ </page_title>
67
+ <allowedIPs translate="label"><!--creates a field Allowed IPs under the group Maintanance Configuration-->
68
+ <label>Allowed IPs</label>
69
+ <comment>Enter multiple IPs with comma seperated.For Ex:192.168.1.66,192.168.1.67</comment>
70
+ <frontend_type>text</frontend_type>
71
+ <sort_order>6</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ </allowedIPs>
76
+ <logo translate="label comment"><!--creates a field Logo under the group Maintanance Configuration-->
77
+ <label>Logo</label>
78
+ <comment>Allowed file types: jpeg, gif, png.Preferable file type: png</comment>
79
+ <frontend_type>image</frontend_type>
80
+ <backend_model>adminhtml/system_config_backend_image</backend_model>
81
+ <upload_dir config="system/filesystem/media" scope_info="1">customsitemaintanance</upload_dir>
82
+ <base_url type="media" scope_info="1">customsitemaintanance</base_url>
83
+ <sort_order>8</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ </logo>
88
+ <background_image translate="label comment"><!--creates a field Background Image under the group Maintanance Configuration-->
89
+ <label>Background Image</label>
90
+ <comment>Allowed file types: jpeg, gif, png.</comment>
91
+ <frontend_type>image</frontend_type>
92
+ <backend_model>adminhtml/system_config_backend_image</backend_model>
93
+ <upload_dir config="system/filesystem/media" scope_info="1">customsitemaintanance</upload_dir>
94
+ <base_url type="media" scope_info="1">customsitemaintanance</base_url>
95
+ <sort_order>9</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ </background_image>
100
+ <contact_details_enabled translate="label"><!--creates a field Contactus Information under the group Maintanance Configuration-->
101
+ <label>Contactus Information</label>
102
+ <comment>Enable or disable Contactus info</comment>
103
+ <frontend_type>select</frontend_type>
104
+ <source_model>adminhtml/system_config_source_yesno</source_model>
105
+ <sort_order>10</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </contact_details_enabled>
110
+ <phone_number translate="label"><!--creates a field Contact Number under the group Maintanance Configuration-->
111
+ <label>Contact Number</label>
112
+ <comment>Add your contact number</comment>
113
+ <frontend_type>text</frontend_type>
114
+ <sort_order>11</sort_order>
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
+ <validate>validate-phoneLax required-entry</validate>
119
+ <depends>
120
+ <contact_details_enabled>1</contact_details_enabled>
121
+ </depends>
122
+ </phone_number>
123
+ <email_id translate="label"><!--creates a field Email Id under the group Maintanance Configuration-->
124
+ <label>Email Id</label>
125
+ <comment>Add your email id</comment>
126
+ <frontend_type>text</frontend_type>
127
+ <sort_order>12</sort_order>
128
+ <show_in_default>1</show_in_default>
129
+ <show_in_website>1</show_in_website>
130
+ <show_in_store>1</show_in_store>
131
+ <validate>validate-email</validate>
132
+ <depends>
133
+ <contact_details_enabled>1</contact_details_enabled>
134
+ </depends>
135
+ </email_id>
136
+ <address translate="label"><!--creates a field Address under the group Maintanance Configuration-->
137
+ <label>Address</label>
138
+ <comment>Add your address</comment>
139
+ <frontend_type>textarea</frontend_type>
140
+ <sort_order>13</sort_order>
141
+ <show_in_default>1</show_in_default>
142
+ <show_in_website>1</show_in_website>
143
+ <show_in_store>1</show_in_store>
144
+ <validate>validate-street</validate>
145
+ <depends>
146
+ <contact_details_enabled>1</contact_details_enabled>
147
+ </depends>
148
+ </address>
149
+ <redirecturl translate="label"><!--creates a field ByPass Url under the group Maintanance Configuration-->
150
+ <label>ByPass Url</label>
151
+ <comment> Admin can allow access to specific URL for their customers if added here.Write each url in new line.For Ex:1stline-/customer/account/login/ 2ndline-/checkout/cart/</comment>
152
+ <frontend_type>textarea</frontend_type>
153
+ <sort_order>14</sort_order>
154
+ <show_in_default>1</show_in_default>
155
+ <show_in_website>0</show_in_website>
156
+ <show_in_store>1</show_in_store>
157
+ </redirecturl>
158
+ <maintenanceHtml translate="label"><!--creates a field Maintenance Page Display Message under the group Maintanance Configuration-->
159
+ <label>Maintenance Page Display Message</label>
160
+ <comment>Show this content when site is under maintanance</comment>
161
+ <frontend_type>editor</frontend_type>
162
+ <frontend_model>customsitemaintanance/adminhtml_system_config_editor</frontend_model>
163
+ <sort_order>15</sort_order>
164
+ <show_in_default>1</show_in_default>
165
+ <show_in_website>0</show_in_website>
166
+ <show_in_store>1</show_in_store>
167
+ </maintenanceHtml>
168
+ </fields>
169
+ </general>
170
+ </groups>
171
+ </customsitemaintanance>
172
+ </sections>
173
+ </config>
174
+
app/design/adminhtml/default/default/layout/customsitemaintanance.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category design
6
+ * @package default_default
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */ -->
10
+ <layout version="0.1.0">
11
+ <adminhtml_system_config_edit>
12
+ <update handle="editor"/>
13
+ <reference name="head">
14
+ <action method="setCanLoadTinyMce">
15
+ <load>1</load>
16
+ </action>
17
+ </reference>
18
+ </adminhtml_system_config_edit>
19
+ </layout>
app/design/frontend/base/default/layout/customsitemaintanance.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category design
6
+ * @package base_default
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */ -->
10
+ <layout version="0.1.0">
11
+ <customsitemaintanance_index_index>
12
+ <reference name="root">
13
+ <action method="setTemplate">
14
+ <template>page/1column.phtml</template>
15
+ </action>
16
+ </reference>
17
+ <reference name="content">
18
+ <block type="customsitemaintanance/index" name="customsitemaintanance_customsitemaintanance" template="customsitemaintanance/customsitemaintanance.phtml"/>
19
+ </reference>
20
+ </customsitemaintanance_index_index>
21
+ </layout>
22
+
app/design/frontend/base/default/template/customsitemaintanance/customsitemaintanance.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Dynamic Dreamz
4
+ * @category design
5
+ * @package base_default
6
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
8
+ */
9
+ $storeId = Mage::app()->getStore()->getStoreId();
10
+ $allowedIPs = Mage::getStoreConfig('customsitemaintanance/general/allowedIPs', $storeId);
11
+ $bg_image = Mage::getStoreConfig('customsitemaintanance/general/background_image', $storeId);
12
+ ?>
13
+ <html>
14
+ <head>
15
+ <title>
16
+ <?php
17
+ if (Mage::getStoreConfig('customsitemaintanance/general/page_title', $storeId) != '') {
18
+ echo strip_tags(Mage::getStoreConfig('customsitemaintanance/general/page_title', $storeId), NULL);
19
+ } else {
20
+ echo $this->__('Store Maintenance');
21
+ }
22
+ ?>
23
+ </title>
24
+ <script type="text/javascript" src="<?php echo $this->getJsUrl(); ?>customsitemaintanance/jquery-1.10.1.min.js"></script>
25
+ <script type="text/javascript">
26
+ jQuery(document).ready(function () {
27
+ jQuery(".wrapper").remove();
28
+ });
29
+ </script>
30
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("customsitemaintanance/css/customsitemaintanance.css") ?>">
31
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("customsitemaintanance/css/responsive.css") ?>">
32
+ <meta name="viewport" content="width=device-width, initial-scale=1">
33
+ </head>
34
+ <?php if ($bg_image) { ?>
35
+ <body style="background-image: url(<?php echo Mage::getBaseUrl('media') . 'customsitemaintanance/' . Mage::getStoreConfig('customsitemaintanance/general/background_image'); ?>); background-size: cover;height: 600px !important;position: relative;">
36
+ <?php } else { ?>
37
+ <body style="background-image: url(<?php echo Mage::getBaseUrl('media') . 'customsitemaintanance/' . 'ht-effect.jpg'; ?>) ; background-size: cover; background-size: cover;height: 600px !important;position: relative;">
38
+ <?php } ?>
39
+ <div id="clearer"></div>
40
+ <div class="main-containers">
41
+ <div class="comingsoon">
42
+ <div class="logo-container">
43
+
44
+ <?php if (Mage::getStoreConfig('customsitemaintanance/general/logo')): ?>
45
+ <img src="<?php echo Mage::getBaseUrl('media') . 'customsitemaintanance/' . Mage::getStoreConfig('customsitemaintanance/general/logo'); ?>" alt="Customsitemaintanance Logo">
46
+ <?php else: ?>
47
+ <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'customsitemaintanance/' . 'under-maintenance.png'; ?>">
48
+ <?php endif; ?>
49
+ </div>
50
+ <div class="rest">
51
+ <?php
52
+ $helper = Mage::helper('cms');
53
+ $processor = $helper->getPageTemplateProcessor();
54
+ $maintenanceMes = $processor->filter(trim(Mage::getStoreConfig('customsitemaintanance/general/maintenanceHtml', $storeId)));
55
+ echo $maintenanceMes;
56
+ if (!$maintenanceMes):
57
+ ?>
58
+ <h2><span><?php echo $this->__('Our website is</span><br/>Coming Soon') ?></h2>
59
+ <?php endif; ?>
60
+ <?php
61
+ $contactDetails_enabled = Mage::getStoreConfig('customsitemaintanance/general/contact_details_enabled');
62
+ $phoneNumber = Mage::getStoreConfig('customsitemaintanance/general/phone_number');
63
+ $address = Mage::getStoreConfig('customsitemaintanance/general/address');
64
+ $emailId = Mage::getStoreConfig('customsitemaintanance/general/email_id');
65
+ if ($contactDetails_enabled == '1'):
66
+ ?>
67
+ <p><?php echo $this->__('In the mean time connect with us with the information provided') ?></p>
68
+ <ul class="info">
69
+ <?php if ($phoneNumber != ''): ?>
70
+ <li ><span class="ph"></span><?php echo $phoneNumber; ?></li>
71
+ <?php endif; ?>
72
+ <?php if ($address != ''): ?>
73
+ <li><span class="ad"></span><?php echo $address; ?></li>
74
+ <?php endif; ?>
75
+ <?php if ($emailId != ''): ?>
76
+ <li><span class="mail"></span><a href="#"><?php echo $emailId; ?></a></li>
77
+ <?php endif; ?>
78
+ </ul>
79
+ <?php endif; ?>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </body>
84
+ </html>
85
+
app/etc/modules/DD_Customsitemaintanance.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <DD_Customsitemaintanance>
5
+ <active>1</active>
6
+ <codePool>community</codePool>
7
+ <version>0.1.0</version>
8
+ </DD_Customsitemaintanance>
9
+ </modules>
10
+ </config>
js/customsitemaintanance/jquery-1.10.1.min.js ADDED
@@ -0,0 +1,2490 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
2
+ //@ sourceMappingURL=jquery-1.10.1.min.map
3
+ */
4
+ (function (e, t) {
5
+ var n, r, i = typeof t, o = e.location, a = e.document, s = a.documentElement, l = e.jQuery, u = e.$, c = {}, p = [], f = "1.10.1", d = p.concat, h = p.push, g = p.slice, m = p.indexOf, y = c.toString, v = c.hasOwnProperty, b = f.trim, x = function (e, t) {
6
+ return new x.fn.init(e, t, r)
7
+ }, w = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, T = /\S+/g, C = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, N = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, k = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, E = /^[\],:{}\s]*$/, S = /(?:^|:|,)(?:\s*\[)+/g, A = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, j = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, D = /^-ms-/, L = /-([\da-z])/gi, H = function (e, t) {
8
+ return t.toUpperCase()
9
+ }, q = function (e) {
10
+ (a.addEventListener || "load" === e.type || "complete" === a.readyState) && (_(), x.ready())
11
+ }, _ = function () {
12
+ a.addEventListener ? (a.removeEventListener("DOMContentLoaded", q, !1), e.removeEventListener("load", q, !1)) : (a.detachEvent("onreadystatechange", q), e.detachEvent("onload", q))
13
+ };
14
+ x.fn = x.prototype = {jquery: f, constructor: x, init: function (e, n, r) {
15
+ var i, o;
16
+ if (!e)
17
+ return this;
18
+ if ("string" == typeof e) {
19
+ if (i = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : N.exec(e), !i || !i[1] && n)
20
+ return!n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e);
21
+ if (i[1]) {
22
+ if (n = n instanceof x ? n[0] : n, x.merge(this, x.parseHTML(i[1], n && n.nodeType ? n.ownerDocument || n : a, !0)), k.test(i[1]) && x.isPlainObject(n))
23
+ for (i in n)
24
+ x.isFunction(this[i]) ? this[i](n[i]) : this.attr(i, n[i]);
25
+ return this
26
+ }
27
+ if (o = a.getElementById(i[2]), o && o.parentNode) {
28
+ if (o.id !== i[2])
29
+ return r.find(e);
30
+ this.length = 1, this[0] = o
31
+ }
32
+ return this.context = a, this.selector = e, this
33
+ }
34
+ return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : x.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), x.makeArray(e, this))
35
+ }, selector: "", length: 0, toArray: function () {
36
+ return g.call(this)
37
+ }, get: function (e) {
38
+ return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e]
39
+ }, pushStack: function (e) {
40
+ var t = x.merge(this.constructor(), e);
41
+ return t.prevObject = this, t.context = this.context, t
42
+ }, each: function (e, t) {
43
+ return x.each(this, e, t)
44
+ }, ready: function (e) {
45
+ return x.ready.promise().done(e), this
46
+ }, slice: function () {
47
+ return this.pushStack(g.apply(this, arguments))
48
+ }, first: function () {
49
+ return this.eq(0)
50
+ }, last: function () {
51
+ return this.eq(-1)
52
+ }, eq: function (e) {
53
+ var t = this.length, n = +e + (0 > e ? t : 0);
54
+ return this.pushStack(n >= 0 && t > n ? [this[n]] : [])
55
+ }, map: function (e) {
56
+ return this.pushStack(x.map(this, function (t, n) {
57
+ return e.call(t, n, t)
58
+ }))
59
+ }, end: function () {
60
+ return this.prevObject || this.constructor(null)
61
+ }, push: h, sort: [].sort, splice: [].splice}, x.fn.init.prototype = x.fn, x.extend = x.fn.extend = function () {
62
+ var e, n, r, i, o, a, s = arguments[0] || {}, l = 1, u = arguments.length, c = !1;
63
+ for ("boolean" == typeof s && (c = s, s = arguments[1] || {}, l = 2), "object" == typeof s || x.isFunction(s) || (s = {}), u === l && (s = this, --l); u > l; l++)
64
+ if (null != (o = arguments[l]))
65
+ for (i in o)
66
+ e = s[i], r = o[i], s !== r && (c && r && (x.isPlainObject(r) || (n = x.isArray(r))) ? (n ? (n = !1, a = e && x.isArray(e) ? e : []) : a = e && x.isPlainObject(e) ? e : {}, s[i] = x.extend(c, a, r)) : r !== t && (s[i] = r));
67
+ return s
68
+ }, x.extend({expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""), noConflict: function (t) {
69
+ return e.$ === x && (e.$ = u), t && e.jQuery === x && (e.jQuery = l), x
70
+ }, isReady: !1, readyWait: 1, holdReady: function (e) {
71
+ e ? x.readyWait++ : x.ready(!0)
72
+ }, ready: function (e) {
73
+ if (e === !0 ? !--x.readyWait : !x.isReady) {
74
+ if (!a.body)
75
+ return setTimeout(x.ready);
76
+ x.isReady = !0, e !== !0 && --x.readyWait > 0 || (n.resolveWith(a, [x]), x.fn.trigger && x(a).trigger("ready").off("ready"))
77
+ }
78
+ }, isFunction: function (e) {
79
+ return"function" === x.type(e)
80
+ }, isArray: Array.isArray || function (e) {
81
+ return"array" === x.type(e)
82
+ }, isWindow: function (e) {
83
+ return null != e && e == e.window
84
+ }, isNumeric: function (e) {
85
+ return!isNaN(parseFloat(e)) && isFinite(e)
86
+ }, type: function (e) {
87
+ return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? c[y.call(e)] || "object" : typeof e
88
+ }, isPlainObject: function (e) {
89
+ var n;
90
+ if (!e || "object" !== x.type(e) || e.nodeType || x.isWindow(e))
91
+ return!1;
92
+ try {
93
+ if (e.constructor && !v.call(e, "constructor") && !v.call(e.constructor.prototype, "isPrototypeOf"))
94
+ return!1
95
+ } catch (r) {
96
+ return!1
97
+ }
98
+ if (x.support.ownLast)
99
+ for (n in e)
100
+ return v.call(e, n);
101
+ for (n in e)
102
+ ;
103
+ return n === t || v.call(e, n)
104
+ }, isEmptyObject: function (e) {
105
+ var t;
106
+ for (t in e)
107
+ return!1;
108
+ return!0
109
+ }, error: function (e) {
110
+ throw Error(e)
111
+ }, parseHTML: function (e, t, n) {
112
+ if (!e || "string" != typeof e)
113
+ return null;
114
+ "boolean" == typeof t && (n = t, t = !1), t = t || a;
115
+ var r = k.exec(e), i = !n && [];
116
+ return r ? [t.createElement(r[1])] : (r = x.buildFragment([e], t, i), i && x(i).remove(), x.merge([], r.childNodes))
117
+ }, parseJSON: function (n) {
118
+ return e.JSON && e.JSON.parse ? e.JSON.parse(n) : null === n ? n : "string" == typeof n && (n = x.trim(n), n && E.test(n.replace(A, "@").replace(j, "]").replace(S, ""))) ? Function("return " + n)() : (x.error("Invalid JSON: " + n), t)
119
+ }, parseXML: function (n) {
120
+ var r, i;
121
+ if (!n || "string" != typeof n)
122
+ return null;
123
+ try {
124
+ e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n))
125
+ } catch (o) {
126
+ r = t
127
+ }
128
+ return r && r.documentElement && !r.getElementsByTagName("parsererror").length || x.error("Invalid XML: " + n), r
129
+ }, noop: function () {
130
+ }, globalEval: function (t) {
131
+ t && x.trim(t) && (e.execScript || function (t) {
132
+ e.eval.call(e, t)
133
+ })(t)
134
+ }, camelCase: function (e) {
135
+ return e.replace(D, "ms-").replace(L, H)
136
+ }, nodeName: function (e, t) {
137
+ return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
138
+ }, each: function (e, t, n) {
139
+ var r, i = 0, o = e.length, a = M(e);
140
+ if (n) {
141
+ if (a) {
142
+ for (; o > i; i++)
143
+ if (r = t.apply(e[i], n), r === !1)
144
+ break
145
+ } else
146
+ for (i in e)
147
+ if (r = t.apply(e[i], n), r === !1)
148
+ break
149
+ } else if (a) {
150
+ for (; o > i; i++)
151
+ if (r = t.call(e[i], i, e[i]), r === !1)
152
+ break
153
+ } else
154
+ for (i in e)
155
+ if (r = t.call(e[i], i, e[i]), r === !1)
156
+ break;
157
+ return e
158
+ }, trim: b && !b.call("\ufeff\u00a0") ? function (e) {
159
+ return null == e ? "" : b.call(e)
160
+ } : function (e) {
161
+ return null == e ? "" : (e + "").replace(C, "")
162
+ }, makeArray: function (e, t) {
163
+ var n = t || [];
164
+ return null != e && (M(Object(e)) ? x.merge(n, "string" == typeof e ? [e] : e) : h.call(n, e)), n
165
+ }, inArray: function (e, t, n) {
166
+ var r;
167
+ if (t) {
168
+ if (m)
169
+ return m.call(t, e, n);
170
+ for (r = t.length, n = n?0 > n?Math.max(0, r + n):n:0; r > n; n++)
171
+ if (n in t && t[n] === e)
172
+ return n
173
+ }
174
+ return-1
175
+ }, merge: function (e, n) {
176
+ var r = n.length, i = e.length, o = 0;
177
+ if ("number" == typeof r)
178
+ for (; r > o; o++)
179
+ e[i++] = n[o];
180
+ else
181
+ while (n[o] !== t)
182
+ e[i++] = n[o++];
183
+ return e.length = i, e
184
+ }, grep: function (e, t, n) {
185
+ var r, i = [], o = 0, a = e.length;
186
+ for (n = !!n; a > o; o++)
187
+ r = !!t(e[o], o), n !== r && i.push(e[o]);
188
+ return i
189
+ }, map: function (e, t, n) {
190
+ var r, i = 0, o = e.length, a = M(e), s = [];
191
+ if (a)
192
+ for (; o > i; i++)
193
+ r = t(e[i], i, n), null != r && (s[s.length] = r);
194
+ else
195
+ for (i in e)
196
+ r = t(e[i], i, n), null != r && (s[s.length] = r);
197
+ return d.apply([], s)
198
+ }, guid: 1, proxy: function (e, n) {
199
+ var r, i, o;
200
+ return"string" == typeof n && (o = e[n], n = e, e = o), x.isFunction(e) ? (r = g.call(arguments, 2), i = function () {
201
+ return e.apply(n || this, r.concat(g.call(arguments)))
202
+ }, i.guid = e.guid = e.guid || x.guid++, i) : t
203
+ }, access: function (e, n, r, i, o, a, s) {
204
+ var l = 0, u = e.length, c = null == r;
205
+ if ("object" === x.type(r)) {
206
+ o = !0;
207
+ for (l in r)
208
+ x.access(e, n, l, r[l], !0, a, s)
209
+ } else if (i !== t && (o = !0, x.isFunction(i) || (s = !0), c && (s ? (n.call(e, i), n = null) : (c = n, n = function (e, t, n) {
210
+ return c.call(x(e), n)
211
+ })), n))
212
+ for (; u > l; l++)
213
+ n(e[l], r, s ? i : i.call(e[l], l, n(e[l], r)));
214
+ return o ? e : c ? n.call(e) : u ? n(e[0], r) : a
215
+ }, now: function () {
216
+ return(new Date).getTime()
217
+ }, swap: function (e, t, n, r) {
218
+ var i, o, a = {};
219
+ for (o in t)
220
+ a[o] = e.style[o], e.style[o] = t[o];
221
+ i = n.apply(e, r || []);
222
+ for (o in t)
223
+ e.style[o] = a[o];
224
+ return i
225
+ }}), x.ready.promise = function (t) {
226
+ if (!n)
227
+ if (n = x.Deferred(), "complete" === a.readyState)
228
+ setTimeout(x.ready);
229
+ else if (a.addEventListener)
230
+ a.addEventListener("DOMContentLoaded", q, !1), e.addEventListener("load", q, !1);
231
+ else {
232
+ a.attachEvent("onreadystatechange", q), e.attachEvent("onload", q);
233
+ var r = !1;
234
+ try {
235
+ r = null == e.frameElement && a.documentElement
236
+ } catch (i) {
237
+ }
238
+ r && r.doScroll && function o() {
239
+ if (!x.isReady) {
240
+ try {
241
+ r.doScroll("left")
242
+ } catch (e) {
243
+ return setTimeout(o, 50)
244
+ }
245
+ _(), x.ready()
246
+ }
247
+ }()
248
+ }
249
+ return n.promise(t)
250
+ }, x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (e, t) {
251
+ c["[object " + t + "]"] = t.toLowerCase()
252
+ });
253
+ function M(e) {
254
+ var t = e.length, n = x.type(e);
255
+ return x.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e)
256
+ }
257
+ r = x(a), function (e, t) {
258
+ var n, r, i, o, a, s, l, u, c, p, f, d, h, g, m, y, v, b = "sizzle" + -new Date, w = e.document, T = 0, C = 0, N = lt(), k = lt(), E = lt(), S = !1, A = function () {
259
+ return 0
260
+ }, j = typeof t, D = 1 << 31, L = {}.hasOwnProperty, H = [], q = H.pop, _ = H.push, M = H.push, O = H.slice, F = H.indexOf || function (e) {
261
+ var t = 0, n = this.length;
262
+ for (; n > t; t++)
263
+ if (this[t] === e)
264
+ return t;
265
+ return-1
266
+ }, B = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", P = "[\\x20\\t\\r\\n\\f]", R = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", W = R.replace("w", "w#"), $ = "\\[" + P + "*(" + R + ")" + P + "*(?:([*^$|!~]?=)" + P + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + W + ")|)|)" + P + "*\\]", I = ":(" + R + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + $.replace(3, 8) + ")*)|.*)\\)|)", z = RegExp("^" + P + "+|((?:^|[^\\\\])(?:\\\\.)*)" + P + "+$", "g"), X = RegExp("^" + P + "*," + P + "*"), U = RegExp("^" + P + "*([>+~]|" + P + ")" + P + "*"), V = RegExp(P + "*[+~]"), Y = RegExp("=" + P + "*([^\\]'\"]*)" + P + "*\\]", "g"), J = RegExp(I), G = RegExp("^" + W + "$"), Q = {ID: RegExp("^#(" + R + ")"), CLASS: RegExp("^\\.(" + R + ")"), TAG: RegExp("^(" + R.replace("w", "w*") + ")"), ATTR: RegExp("^" + $), PSEUDO: RegExp("^" + I), CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + P + "*(even|odd|(([+-]|)(\\d*)n|)" + P + "*(?:([+-]|)" + P + "*(\\d+)|))" + P + "*\\)|)", "i"), bool: RegExp("^(?:" + B + ")$", "i"), needsContext: RegExp("^" + P + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + P + "*((?:-\\d)?\\d*)" + P + "*\\)|)(?=[^-]|$)", "i")}, K = /^[^{]+\{\s*\[native \w/, Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, et = /^(?:input|select|textarea|button)$/i, tt = /^h\d$/i, nt = /'|\\/g, rt = RegExp("\\\\([\\da-f]{1,6}" + P + "?|(" + P + ")|.)", "ig"), it = function (e, t, n) {
267
+ var r = "0x" + t - 65536;
268
+ return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r)
269
+ };
270
+ try {
271
+ M.apply(H = O.call(w.childNodes), w.childNodes), H[w.childNodes.length].nodeType
272
+ } catch (ot) {
273
+ M = {apply: H.length ? function (e, t) {
274
+ _.apply(e, O.call(t))
275
+ } : function (e, t) {
276
+ var n = e.length, r = 0;
277
+ while (e[n++] = t[r++])
278
+ ;
279
+ e.length = n - 1
280
+ }}
281
+ }
282
+ function at(e, t, n, i) {
283
+ var o, a, s, l, u, c, d, m, y, x;
284
+ if ((t ? t.ownerDocument || t : w) !== f && p(t), t = t || f, n = n || [], !e || "string" != typeof e)
285
+ return n;
286
+ if (1 !== (l = t.nodeType) && 9 !== l)
287
+ return[];
288
+ if (h && !i) {
289
+ if (o = Z.exec(e))
290
+ if (s = o[1]) {
291
+ if (9 === l) {
292
+ if (a = t.getElementById(s), !a || !a.parentNode)
293
+ return n;
294
+ if (a.id === s)
295
+ return n.push(a), n
296
+ } else if (t.ownerDocument && (a = t.ownerDocument.getElementById(s)) && v(t, a) && a.id === s)
297
+ return n.push(a), n
298
+ } else {
299
+ if (o[2])
300
+ return M.apply(n, t.getElementsByTagName(e)), n;
301
+ if ((s = o[3]) && r.getElementsByClassName && t.getElementsByClassName)
302
+ return M.apply(n, t.getElementsByClassName(s)), n
303
+ }
304
+ if (r.qsa && (!g || !g.test(e))) {
305
+ if (m = d = b, y = t, x = 9 === l && e, 1 === l && "object" !== t.nodeName.toLowerCase()) {
306
+ c = bt(e), (d = t.getAttribute("id")) ? m = d.replace(nt, "\\$&") : t.setAttribute("id", m), m = "[id='" + m + "'] ", u = c.length;
307
+ while (u--)
308
+ c[u] = m + xt(c[u]);
309
+ y = V.test(e) && t.parentNode || t, x = c.join(",")
310
+ }
311
+ if (x)
312
+ try {
313
+ return M.apply(n, y.querySelectorAll(x)), n
314
+ } catch (T) {
315
+ } finally {
316
+ d || t.removeAttribute("id")
317
+ }
318
+ }
319
+ }
320
+ return At(e.replace(z, "$1"), t, n, i)
321
+ }
322
+ function st(e) {
323
+ return K.test(e + "")
324
+ }
325
+ function lt() {
326
+ var e = [];
327
+ function t(n, r) {
328
+ return e.push(n += " ") > o.cacheLength && delete t[e.shift()], t[n] = r
329
+ }
330
+ return t
331
+ }
332
+ function ut(e) {
333
+ return e[b] = !0, e
334
+ }
335
+ function ct(e) {
336
+ var t = f.createElement("div");
337
+ try {
338
+ return!!e(t)
339
+ } catch (n) {
340
+ return!1
341
+ } finally {
342
+ t.parentNode && t.parentNode.removeChild(t), t = null
343
+ }
344
+ }
345
+ function pt(e, t, n) {
346
+ e = e.split("|");
347
+ var r, i = e.length, a = n ? null : t;
348
+ while (i--)
349
+ (r = o.attrHandle[e[i]]) && r !== t || (o.attrHandle[e[i]] = a)
350
+ }
351
+ function ft(e, t) {
352
+ var n = e.getAttributeNode(t);
353
+ return n && n.specified ? n.value : e[t] === !0 ? t.toLowerCase() : null
354
+ }
355
+ function dt(e, t) {
356
+ return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2)
357
+ }
358
+ function ht(e) {
359
+ return"input" === e.nodeName.toLowerCase() ? e.defaultValue : t
360
+ }
361
+ function gt(e, t) {
362
+ var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || D) - (~e.sourceIndex || D);
363
+ if (r)
364
+ return r;
365
+ if (n)
366
+ while (n = n.nextSibling)
367
+ if (n === t)
368
+ return-1;
369
+ return e ? 1 : -1
370
+ }
371
+ function mt(e) {
372
+ return function (t) {
373
+ var n = t.nodeName.toLowerCase();
374
+ return"input" === n && t.type === e
375
+ }
376
+ }
377
+ function yt(e) {
378
+ return function (t) {
379
+ var n = t.nodeName.toLowerCase();
380
+ return("input" === n || "button" === n) && t.type === e
381
+ }
382
+ }
383
+ function vt(e) {
384
+ return ut(function (t) {
385
+ return t = +t, ut(function (n, r) {
386
+ var i, o = e([], n.length, t), a = o.length;
387
+ while (a--)
388
+ n[i = o[a]] && (n[i] = !(r[i] = n[i]))
389
+ })
390
+ })
391
+ }
392
+ s = at.isXML = function (e) {
393
+ var t = e && (e.ownerDocument || e).documentElement;
394
+ return t ? "HTML" !== t.nodeName : !1
395
+ }, r = at.support = {}, p = at.setDocument = function (e) {
396
+ var n = e ? e.ownerDocument || e : w, i = n.parentWindow;
397
+ return n !== f && 9 === n.nodeType && n.documentElement ? (f = n, d = n.documentElement, h = !s(n), i && i.frameElement && i.attachEvent("onbeforeunload", function () {
398
+ p()
399
+ }), r.attributes = ct(function (e) {
400
+ return e.innerHTML = "<a href='#'></a>", pt("type|href|height|width", dt, "#" === e.firstChild.getAttribute("href")), pt(B, ft, null == e.getAttribute("disabled")), e.className = "i", !e.getAttribute("className")
401
+ }), r.input = ct(function (e) {
402
+ return e.innerHTML = "<input>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
403
+ }), pt("value", ht, r.attributes && r.input), r.getElementsByTagName = ct(function (e) {
404
+ return e.appendChild(n.createComment("")), !e.getElementsByTagName("*").length
405
+ }), r.getElementsByClassName = ct(function (e) {
406
+ return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length
407
+ }), r.getById = ct(function (e) {
408
+ return d.appendChild(e).id = b, !n.getElementsByName || !n.getElementsByName(b).length
409
+ }), r.getById ? (o.find.ID = function (e, t) {
410
+ if (typeof t.getElementById !== j && h) {
411
+ var n = t.getElementById(e);
412
+ return n && n.parentNode ? [n] : []
413
+ }
414
+ }, o.filter.ID = function (e) {
415
+ var t = e.replace(rt, it);
416
+ return function (e) {
417
+ return e.getAttribute("id") === t
418
+ }
419
+ }) : (delete o.find.ID, o.filter.ID = function (e) {
420
+ var t = e.replace(rt, it);
421
+ return function (e) {
422
+ var n = typeof e.getAttributeNode !== j && e.getAttributeNode("id");
423
+ return n && n.value === t
424
+ }
425
+ }), o.find.TAG = r.getElementsByTagName ? function (e, n) {
426
+ return typeof n.getElementsByTagName !== j ? n.getElementsByTagName(e) : t
427
+ } : function (e, t) {
428
+ var n, r = [], i = 0, o = t.getElementsByTagName(e);
429
+ if ("*" === e) {
430
+ while (n = o[i++])
431
+ 1 === n.nodeType && r.push(n);
432
+ return r
433
+ }
434
+ return o
435
+ }, o.find.CLASS = r.getElementsByClassName && function (e, n) {
436
+ return typeof n.getElementsByClassName !== j && h ? n.getElementsByClassName(e) : t
437
+ }, m = [], g = [], (r.qsa = st(n.querySelectorAll)) && (ct(function (e) {
438
+ e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || g.push("\\[" + P + "*(?:value|" + B + ")"), e.querySelectorAll(":checked").length || g.push(":checked")
439
+ }), ct(function (e) {
440
+ var t = n.createElement("input");
441
+ t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && g.push("[*^$]=" + P + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || g.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), g.push(",.*:")
442
+ })), (r.matchesSelector = st(y = d.webkitMatchesSelector || d.mozMatchesSelector || d.oMatchesSelector || d.msMatchesSelector)) && ct(function (e) {
443
+ r.disconnectedMatch = y.call(e, "div"), y.call(e, "[s!='']:x"), m.push("!=", I)
444
+ }), g = g.length && RegExp(g.join("|")), m = m.length && RegExp(m.join("|")), v = st(d.contains) || d.compareDocumentPosition ? function (e, t) {
445
+ var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode;
446
+ return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
447
+ } : function (e, t) {
448
+ if (t)
449
+ while (t = t.parentNode)
450
+ if (t === e)
451
+ return!0;
452
+ return!1
453
+ }, r.sortDetached = ct(function (e) {
454
+ return 1 & e.compareDocumentPosition(n.createElement("div"))
455
+ }), A = d.compareDocumentPosition ? function (e, t) {
456
+ if (e === t)
457
+ return S = !0, 0;
458
+ var i = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t);
459
+ return i ? 1 & i || !r.sortDetached && t.compareDocumentPosition(e) === i ? e === n || v(w, e) ? -1 : t === n || v(w, t) ? 1 : c ? F.call(c, e) - F.call(c, t) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1
460
+ } : function (e, t) {
461
+ var r, i = 0, o = e.parentNode, a = t.parentNode, s = [e], l = [t];
462
+ if (e === t)
463
+ return S = !0, 0;
464
+ if (!o || !a)
465
+ return e === n ? -1 : t === n ? 1 : o ? -1 : a ? 1 : c ? F.call(c, e) - F.call(c, t) : 0;
466
+ if (o === a)
467
+ return gt(e, t);
468
+ r = e;
469
+ while (r = r.parentNode)
470
+ s.unshift(r);
471
+ r = t;
472
+ while (r = r.parentNode)
473
+ l.unshift(r);
474
+ while (s[i] === l[i])
475
+ i++;
476
+ return i ? gt(s[i], l[i]) : s[i] === w ? -1 : l[i] === w ? 1 : 0
477
+ }, n) : f
478
+ }, at.matches = function (e, t) {
479
+ return at(e, null, null, t)
480
+ }, at.matchesSelector = function (e, t) {
481
+ if ((e.ownerDocument || e) !== f && p(e), t = t.replace(Y, "='$1']"), !(!r.matchesSelector || !h || m && m.test(t) || g && g.test(t)))
482
+ try {
483
+ var n = y.call(e, t);
484
+ if (n || r.disconnectedMatch || e.document && 11 !== e.document.nodeType)
485
+ return n
486
+ } catch (i) {
487
+ }
488
+ return at(t, f, null, [e]).length > 0
489
+ }, at.contains = function (e, t) {
490
+ return(e.ownerDocument || e) !== f && p(e), v(e, t)
491
+ }, at.attr = function (e, n) {
492
+ (e.ownerDocument || e) !== f && p(e);
493
+ var i = o.attrHandle[n.toLowerCase()], a = i && L.call(o.attrHandle, n.toLowerCase()) ? i(e, n, !h) : t;
494
+ return a === t ? r.attributes || !h ? e.getAttribute(n) : (a = e.getAttributeNode(n)) && a.specified ? a.value : null : a
495
+ }, at.error = function (e) {
496
+ throw Error("Syntax error, unrecognized expression: " + e)
497
+ }, at.uniqueSort = function (e) {
498
+ var t, n = [], i = 0, o = 0;
499
+ if (S = !r.detectDuplicates, c = !r.sortStable && e.slice(0), e.sort(A), S) {
500
+ while (t = e[o++])
501
+ t === e[o] && (i = n.push(o));
502
+ while (i--)
503
+ e.splice(n[i], 1)
504
+ }
505
+ return e
506
+ }, a = at.getText = function (e) {
507
+ var t, n = "", r = 0, i = e.nodeType;
508
+ if (i) {
509
+ if (1 === i || 9 === i || 11 === i) {
510
+ if ("string" == typeof e.textContent)
511
+ return e.textContent;
512
+ for (e = e.firstChild; e; e = e.nextSibling)
513
+ n += a(e)
514
+ } else if (3 === i || 4 === i)
515
+ return e.nodeValue
516
+ } else
517
+ for (; t = e[r]; r++)
518
+ n += a(t);
519
+ return n
520
+ }, o = at.selectors = {cacheLength: 50, createPseudo: ut, match: Q, attrHandle: {}, find: {}, relative: {">": {dir: "parentNode", first: !0}, " ": {dir: "parentNode"}, "+": {dir: "previousSibling", first: !0}, "~": {dir: "previousSibling"}}, preFilter: {ATTR: function (e) {
521
+ return e[1] = e[1].replace(rt, it), e[3] = (e[4] || e[5] || "").replace(rt, it), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
522
+ }, CHILD: function (e) {
523
+ return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || at.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && at.error(e[0]), e
524
+ }, PSEUDO: function (e) {
525
+ var n, r = !e[5] && e[2];
526
+ return Q.CHILD.test(e[0]) ? null : (e[3] && e[4] !== t ? e[2] = e[4] : r && J.test(r) && (n = bt(r, !0)) && (n = r.indexOf(")", r.length - n) - r.length) && (e[0] = e[0].slice(0, n), e[2] = r.slice(0, n)), e.slice(0, 3))
527
+ }}, filter: {TAG: function (e) {
528
+ var t = e.replace(rt, it).toLowerCase();
529
+ return"*" === e ? function () {
530
+ return!0
531
+ } : function (e) {
532
+ return e.nodeName && e.nodeName.toLowerCase() === t
533
+ }
534
+ }, CLASS: function (e) {
535
+ var t = N[e + " "];
536
+ return t || (t = RegExp("(^|" + P + ")" + e + "(" + P + "|$)")) && N(e, function (e) {
537
+ return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== j && e.getAttribute("class") || "")
538
+ })
539
+ }, ATTR: function (e, t, n) {
540
+ return function (r) {
541
+ var i = at.attr(r, e);
542
+ return null == i ? "!=" === t : t ? (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i + " ").indexOf(n) > -1 : "|=" === t ? i === n || i.slice(0, n.length + 1) === n + "-" : !1) : !0
543
+ }
544
+ }, CHILD: function (e, t, n, r, i) {
545
+ var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t;
546
+ return 1 === r && 0 === i ? function (e) {
547
+ return!!e.parentNode
548
+ } : function (t, n, l) {
549
+ var u, c, p, f, d, h, g = o !== a ? "nextSibling" : "previousSibling", m = t.parentNode, y = s && t.nodeName.toLowerCase(), v = !l && !s;
550
+ if (m) {
551
+ if (o) {
552
+ while (g) {
553
+ p = t;
554
+ while (p = p[g])
555
+ if (s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType)
556
+ return!1;
557
+ h = g = "only" === e && !h && "nextSibling"
558
+ }
559
+ return!0
560
+ }
561
+ if (h = [a ? m.firstChild : m.lastChild], a && v) {
562
+ c = m[b] || (m[b] = {}), u = c[e] || [], d = u[0] === T && u[1], f = u[0] === T && u[2], p = d && m.childNodes[d];
563
+ while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
564
+ if (1 === p.nodeType && ++f && p === t) {
565
+ c[e] = [T, d, f];
566
+ break
567
+ }
568
+ } else if (v && (u = (t[b] || (t[b] = {}))[e]) && u[0] === T)
569
+ f = u[1];
570
+ else
571
+ while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
572
+ if ((s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) && ++f && (v && ((p[b] || (p[b] = {}))[e] = [T, f]), p === t))
573
+ break;
574
+ return f -= i, f === r || 0 === f % r && f / r >= 0
575
+ }
576
+ }
577
+ }, PSEUDO: function (e, t) {
578
+ var n, r = o.pseudos[e] || o.setFilters[e.toLowerCase()] || at.error("unsupported pseudo: " + e);
579
+ return r[b] ? r(t) : r.length > 1 ? (n = [e, e, "", t], o.setFilters.hasOwnProperty(e.toLowerCase()) ? ut(function (e, n) {
580
+ var i, o = r(e, t), a = o.length;
581
+ while (a--)
582
+ i = F.call(e, o[a]), e[i] = !(n[i] = o[a])
583
+ }) : function (e) {
584
+ return r(e, 0, n)
585
+ }) : r
586
+ }}, pseudos: {not: ut(function (e) {
587
+ var t = [], n = [], r = l(e.replace(z, "$1"));
588
+ return r[b] ? ut(function (e, t, n, i) {
589
+ var o, a = r(e, null, i, []), s = e.length;
590
+ while (s--)
591
+ (o = a[s]) && (e[s] = !(t[s] = o))
592
+ }) : function (e, i, o) {
593
+ return t[0] = e, r(t, null, o, n), !n.pop()
594
+ }
595
+ }), has: ut(function (e) {
596
+ return function (t) {
597
+ return at(e, t).length > 0
598
+ }
599
+ }), contains: ut(function (e) {
600
+ return function (t) {
601
+ return(t.textContent || t.innerText || a(t)).indexOf(e) > -1
602
+ }
603
+ }), lang: ut(function (e) {
604
+ return G.test(e || "") || at.error("unsupported lang: " + e), e = e.replace(rt, it).toLowerCase(), function (t) {
605
+ var n;
606
+ do
607
+ if (n = h ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang"))
608
+ return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-");
609
+ while ((t = t.parentNode) && 1 === t.nodeType);
610
+ return!1
611
+ }
612
+ }), target: function (t) {
613
+ var n = e.location && e.location.hash;
614
+ return n && n.slice(1) === t.id
615
+ }, root: function (e) {
616
+ return e === d
617
+ }, focus: function (e) {
618
+ return e === f.activeElement && (!f.hasFocus || f.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
619
+ }, enabled: function (e) {
620
+ return e.disabled === !1
621
+ }, disabled: function (e) {
622
+ return e.disabled === !0
623
+ }, checked: function (e) {
624
+ var t = e.nodeName.toLowerCase();
625
+ return"input" === t && !!e.checked || "option" === t && !!e.selected
626
+ }, selected: function (e) {
627
+ return e.parentNode && e.parentNode.selectedIndex, e.selected === !0
628
+ }, empty: function (e) {
629
+ for (e = e.firstChild; e; e = e.nextSibling)
630
+ if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType)
631
+ return!1;
632
+ return!0
633
+ }, parent: function (e) {
634
+ return!o.pseudos.empty(e)
635
+ }, header: function (e) {
636
+ return tt.test(e.nodeName)
637
+ }, input: function (e) {
638
+ return et.test(e.nodeName)
639
+ }, button: function (e) {
640
+ var t = e.nodeName.toLowerCase();
641
+ return"input" === t && "button" === e.type || "button" === t
642
+ }, text: function (e) {
643
+ var t;
644
+ return"input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type)
645
+ }, first: vt(function () {
646
+ return[0]
647
+ }), last: vt(function (e, t) {
648
+ return[t - 1]
649
+ }), eq: vt(function (e, t, n) {
650
+ return[0 > n ? n + t : n]
651
+ }), even: vt(function (e, t) {
652
+ var n = 0;
653
+ for (; t > n; n += 2)
654
+ e.push(n);
655
+ return e
656
+ }), odd: vt(function (e, t) {
657
+ var n = 1;
658
+ for (; t > n; n += 2)
659
+ e.push(n);
660
+ return e
661
+ }), lt: vt(function (e, t, n) {
662
+ var r = 0 > n ? n + t : n;
663
+ for (; --r >= 0; )
664
+ e.push(r);
665
+ return e
666
+ }), gt: vt(function (e, t, n) {
667
+ var r = 0 > n ? n + t : n;
668
+ for (; t > ++r; )
669
+ e.push(r);
670
+ return e
671
+ })}};
672
+ for (n in{radio:!0, checkbox:!0, file:!0, password:!0, image:!0})
673
+ o.pseudos[n] = mt(n);
674
+ for (n in{submit:!0, reset:!0})
675
+ o.pseudos[n] = yt(n);
676
+ function bt(e, t) {
677
+ var n, r, i, a, s, l, u, c = k[e + " "];
678
+ if (c)
679
+ return t ? 0 : c.slice(0);
680
+ s = e, l = [], u = o.preFilter;
681
+ while (s) {
682
+ (!n || (r = X.exec(s))) && (r && (s = s.slice(r[0].length) || s), l.push(i = [])), n = !1, (r = U.exec(s)) && (n = r.shift(), i.push({value: n, type: r[0].replace(z, " ")}), s = s.slice(n.length));
683
+ for (a in o.filter)
684
+ !(r = Q[a].exec(s)) || u[a] && !(r = u[a](r)) || (n = r.shift(), i.push({value: n, type: a, matches: r}), s = s.slice(n.length));
685
+ if (!n)
686
+ break
687
+ }
688
+ return t ? s.length : s ? at.error(e) : k(e, l).slice(0)
689
+ }
690
+ function xt(e) {
691
+ var t = 0, n = e.length, r = "";
692
+ for (; n > t; t++)
693
+ r += e[t].value;
694
+ return r
695
+ }
696
+ function wt(e, t, n) {
697
+ var r = t.dir, o = n && "parentNode" === r, a = C++;
698
+ return t.first ? function (t, n, i) {
699
+ while (t = t[r])
700
+ if (1 === t.nodeType || o)
701
+ return e(t, n, i)
702
+ } : function (t, n, s) {
703
+ var l, u, c, p = T + " " + a;
704
+ if (s) {
705
+ while (t = t[r])
706
+ if ((1 === t.nodeType || o) && e(t, n, s))
707
+ return!0
708
+ } else
709
+ while (t = t[r])
710
+ if (1 === t.nodeType || o)
711
+ if (c = t[b] || (t[b] = {}), (u = c[r]) && u[0] === p) {
712
+ if ((l = u[1]) === !0 || l === i)
713
+ return l === !0
714
+ } else if (u = c[r] = [p], u[1] = e(t, n, s) || i, u[1] === !0)
715
+ return!0
716
+ }
717
+ }
718
+ function Tt(e) {
719
+ return e.length > 1 ? function (t, n, r) {
720
+ var i = e.length;
721
+ while (i--)
722
+ if (!e[i](t, n, r))
723
+ return!1;
724
+ return!0
725
+ } : e[0]
726
+ }
727
+ function Ct(e, t, n, r, i) {
728
+ var o, a = [], s = 0, l = e.length, u = null != t;
729
+ for (; l > s; s++)
730
+ (o = e[s]) && (!n || n(o, r, i)) && (a.push(o), u && t.push(s));
731
+ return a
732
+ }
733
+ function Nt(e, t, n, r, i, o) {
734
+ return r && !r[b] && (r = Nt(r)), i && !i[b] && (i = Nt(i, o)), ut(function (o, a, s, l) {
735
+ var u, c, p, f = [], d = [], h = a.length, g = o || St(t || "*", s.nodeType ? [s] : s, []), m = !e || !o && t ? g : Ct(g, f, e, s, l), y = n ? i || (o ? e : h || r) ? [] : a : m;
736
+ if (n && n(m, y, s, l), r) {
737
+ u = Ct(y, d), r(u, [], s, l), c = u.length;
738
+ while (c--)
739
+ (p = u[c]) && (y[d[c]] = !(m[d[c]] = p))
740
+ }
741
+ if (o) {
742
+ if (i || e) {
743
+ if (i) {
744
+ u = [], c = y.length;
745
+ while (c--)
746
+ (p = y[c]) && u.push(m[c] = p);
747
+ i(null, y = [], u, l)
748
+ }
749
+ c = y.length;
750
+ while (c--)
751
+ (p = y[c]) && (u = i ? F.call(o, p) : f[c]) > -1 && (o[u] = !(a[u] = p))
752
+ }
753
+ } else
754
+ y = Ct(y === a ? y.splice(h, y.length) : y), i ? i(null, a, y, l) : M.apply(a, y)
755
+ })
756
+ }
757
+ function kt(e) {
758
+ var t, n, r, i = e.length, a = o.relative[e[0].type], s = a || o.relative[" "], l = a ? 1 : 0, c = wt(function (e) {
759
+ return e === t
760
+ }, s, !0), p = wt(function (e) {
761
+ return F.call(t, e) > -1
762
+ }, s, !0), f = [function (e, n, r) {
763
+ return!a && (r || n !== u) || ((t = n).nodeType ? c(e, n, r) : p(e, n, r))
764
+ }];
765
+ for (; i > l; l++)
766
+ if (n = o.relative[e[l].type])
767
+ f = [wt(Tt(f), n)];
768
+ else {
769
+ if (n = o.filter[e[l].type].apply(null, e[l].matches), n[b]) {
770
+ for (r = ++l; i > r; r++)
771
+ if (o.relative[e[r].type])
772
+ break;
773
+ return Nt(l > 1 && Tt(f), l > 1 && xt(e.slice(0, l - 1).concat({value: " " === e[l - 2].type ? "*" : ""})).replace(z, "$1"), n, r > l && kt(e.slice(l, r)), i > r && kt(e = e.slice(r)), i > r && xt(e))
774
+ }
775
+ f.push(n)
776
+ }
777
+ return Tt(f)
778
+ }
779
+ function Et(e, t) {
780
+ var n = 0, r = t.length > 0, a = e.length > 0, s = function (s, l, c, p, d) {
781
+ var h, g, m, y = [], v = 0, b = "0", x = s && [], w = null != d, C = u, N = s || a && o.find.TAG("*", d && l.parentNode || l), k = T += null == C ? 1 : Math.random() || .1;
782
+ for (w && (u = l !== f && l, i = n); null != (h = N[b]); b++) {
783
+ if (a && h) {
784
+ g = 0;
785
+ while (m = e[g++])
786
+ if (m(h, l, c)) {
787
+ p.push(h);
788
+ break
789
+ }
790
+ w && (T = k, i = ++n)
791
+ }
792
+ r && ((h = !m && h) && v--, s && x.push(h))
793
+ }
794
+ if (v += b, r && b !== v) {
795
+ g = 0;
796
+ while (m = t[g++])
797
+ m(x, y, l, c);
798
+ if (s) {
799
+ if (v > 0)
800
+ while (b--)
801
+ x[b] || y[b] || (y[b] = q.call(p));
802
+ y = Ct(y)
803
+ }
804
+ M.apply(p, y), w && !s && y.length > 0 && v + t.length > 1 && at.uniqueSort(p)
805
+ }
806
+ return w && (T = k, u = C), x
807
+ };
808
+ return r ? ut(s) : s
809
+ }
810
+ l = at.compile = function (e, t) {
811
+ var n, r = [], i = [], o = E[e + " "];
812
+ if (!o) {
813
+ t || (t = bt(e)), n = t.length;
814
+ while (n--)
815
+ o = kt(t[n]), o[b] ? r.push(o) : i.push(o);
816
+ o = E(e, Et(i, r))
817
+ }
818
+ return o
819
+ };
820
+ function St(e, t, n) {
821
+ var r = 0, i = t.length;
822
+ for (; i > r; r++)
823
+ at(e, t[r], n);
824
+ return n
825
+ }
826
+ function At(e, t, n, i) {
827
+ var a, s, u, c, p, f = bt(e);
828
+ if (!i && 1 === f.length) {
829
+ if (s = f[0] = f[0].slice(0), s.length > 2 && "ID" === (u = s[0]).type && r.getById && 9 === t.nodeType && h && o.relative[s[1].type]) {
830
+ if (t = (o.find.ID(u.matches[0].replace(rt, it), t) || [])[0], !t)
831
+ return n;
832
+ e = e.slice(s.shift().value.length)
833
+ }
834
+ a = Q.needsContext.test(e) ? 0 : s.length;
835
+ while (a--) {
836
+ if (u = s[a], o.relative[c = u.type])
837
+ break;
838
+ if ((p = o.find[c]) && (i = p(u.matches[0].replace(rt, it), V.test(s[0].type) && t.parentNode || t))) {
839
+ if (s.splice(a, 1), e = i.length && xt(s), !e)
840
+ return M.apply(n, i), n;
841
+ break
842
+ }
843
+ }
844
+ }
845
+ return l(e, f)(i, t, !h, n, V.test(e)), n
846
+ }
847
+ o.pseudos.nth = o.pseudos.eq;
848
+ function jt() {
849
+ }
850
+ jt.prototype = o.filters = o.pseudos, o.setFilters = new jt, r.sortStable = b.split("").sort(A).join("") === b, p(), [0, 0].sort(A), r.detectDuplicates = S, x.find = at, x.expr = at.selectors, x.expr[":"] = x.expr.pseudos, x.unique = at.uniqueSort, x.text = at.getText, x.isXMLDoc = at.isXML, x.contains = at.contains
851
+ }(e);
852
+ var O = {};
853
+ function F(e) {
854
+ var t = O[e] = {};
855
+ return x.each(e.match(T) || [], function (e, n) {
856
+ t[n] = !0
857
+ }), t
858
+ }
859
+ x.Callbacks = function (e) {
860
+ e = "string" == typeof e ? O[e] || F(e) : x.extend({}, e);
861
+ var n, r, i, o, a, s, l = [], u = !e.once && [], c = function (t) {
862
+ for (r = e.memory && t, i = !0, a = s || 0, s = 0, o = l.length, n = !0; l && o > a; a++)
863
+ if (l[a].apply(t[0], t[1]) === !1 && e.stopOnFalse) {
864
+ r = !1;
865
+ break
866
+ }
867
+ n = !1, l && (u ? u.length && c(u.shift()) : r ? l = [] : p.disable())
868
+ }, p = {add: function () {
869
+ if (l) {
870
+ var t = l.length;
871
+ (function i(t) {
872
+ x.each(t, function (t, n) {
873
+ var r = x.type(n);
874
+ "function" === r ? e.unique && p.has(n) || l.push(n) : n && n.length && "string" !== r && i(n)
875
+ })
876
+ })(arguments), n ? o = l.length : r && (s = t, c(r))
877
+ }
878
+ return this
879
+ }, remove: function () {
880
+ return l && x.each(arguments, function (e, t) {
881
+ var r;
882
+ while ((r = x.inArray(t, l, r)) > - 1)
883
+ l.splice(r, 1), n && (o >= r && o--, a >= r && a--)
884
+ }), this
885
+ }, has: function (e) {
886
+ return e ? x.inArray(e, l) > -1 : !(!l || !l.length)
887
+ }, empty: function () {
888
+ return l = [], o = 0, this
889
+ }, disable: function () {
890
+ return l = u = r = t, this
891
+ }, disabled: function () {
892
+ return!l
893
+ }, lock: function () {
894
+ return u = t, r || p.disable(), this
895
+ }, locked: function () {
896
+ return!u
897
+ }, fireWith: function (e, t) {
898
+ return t = t || [], t = [e, t.slice ? t.slice() : t], !l || i && !u || (n ? u.push(t) : c(t)), this
899
+ }, fire: function () {
900
+ return p.fireWith(this, arguments), this
901
+ }, fired: function () {
902
+ return!!i
903
+ }};
904
+ return p
905
+ }, x.extend({Deferred: function (e) {
906
+ var t = [["resolve", "done", x.Callbacks("once memory"), "resolved"], ["reject", "fail", x.Callbacks("once memory"), "rejected"], ["notify", "progress", x.Callbacks("memory")]], n = "pending", r = {state: function () {
907
+ return n
908
+ }, always: function () {
909
+ return i.done(arguments).fail(arguments), this
910
+ }, then: function () {
911
+ var e = arguments;
912
+ return x.Deferred(function (n) {
913
+ x.each(t, function (t, o) {
914
+ var a = o[0], s = x.isFunction(e[t]) && e[t];
915
+ i[o[1]](function () {
916
+ var e = s && s.apply(this, arguments);
917
+ e && x.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[a + "With"](this === r ? n.promise() : this, s ? [e] : arguments)
918
+ })
919
+ }), e = null
920
+ }).promise()
921
+ }, promise: function (e) {
922
+ return null != e ? x.extend(e, r) : r
923
+ }}, i = {};
924
+ return r.pipe = r.then, x.each(t, function (e, o) {
925
+ var a = o[2], s = o[3];
926
+ r[o[1]] = a.add, s && a.add(function () {
927
+ n = s
928
+ }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function () {
929
+ return i[o[0] + "With"](this === i ? r : this, arguments), this
930
+ }, i[o[0] + "With"] = a.fireWith
931
+ }), r.promise(i), e && e.call(i, i), i
932
+ }, when: function (e) {
933
+ var t = 0, n = g.call(arguments), r = n.length, i = 1 !== r || e && x.isFunction(e.promise) ? r : 0, o = 1 === i ? e : x.Deferred(), a = function (e, t, n) {
934
+ return function (r) {
935
+ t[e] = this, n[e] = arguments.length > 1 ? g.call(arguments) : r, n === s ? o.notifyWith(t, n) : --i || o.resolveWith(t, n)
936
+ }
937
+ }, s, l, u;
938
+ if (r > 1)
939
+ for (s = Array(r), l = Array(r), u = Array(r); r > t; t++)
940
+ n[t] && x.isFunction(n[t].promise) ? n[t].promise().done(a(t, u, n)).fail(o.reject).progress(a(t, l, s)) : --i;
941
+ return i || o.resolveWith(u, n), o.promise()
942
+ }}), x.support = function (t) {
943
+ var n, r, o, s, l, u, c, p, f, d = a.createElement("div");
944
+ if (d.setAttribute("className", "t"), d.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = d.getElementsByTagName("*") || [], r = d.getElementsByTagName("a")[0], !r || !r.style || !n.length)
945
+ return t;
946
+ s = a.createElement("select"), u = s.appendChild(a.createElement("option")), o = d.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t.getSetAttribute = "t" !== d.className, t.leadingWhitespace = 3 === d.firstChild.nodeType, t.tbody = !d.getElementsByTagName("tbody").length, t.htmlSerialize = !!d.getElementsByTagName("link").length, t.style = /top/.test(r.getAttribute("style")), t.hrefNormalized = "/a" === r.getAttribute("href"), t.opacity = /^0.5/.test(r.style.opacity), t.cssFloat = !!r.style.cssFloat, t.checkOn = !!o.value, t.optSelected = u.selected, t.enctype = !!a.createElement("form").enctype, t.html5Clone = "<:nav></:nav>" !== a.createElement("nav").cloneNode(!0).outerHTML, t.inlineBlockNeedsLayout = !1, t.shrinkWrapBlocks = !1, t.pixelPosition = !1, t.deleteExpando = !0, t.noCloneEvent = !0, t.reliableMarginRight = !0, t.boxSizingReliable = !0, o.checked = !0, t.noCloneChecked = o.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !u.disabled;
947
+ try {
948
+ delete d.test
949
+ } catch (h) {
950
+ t.deleteExpando = !1
951
+ }
952
+ o = a.createElement("input"), o.setAttribute("value", ""), t.input = "" === o.getAttribute("value"), o.value = "t", o.setAttribute("type", "radio"), t.radioValue = "t" === o.value, o.setAttribute("checked", "t"), o.setAttribute("name", "t"), l = a.createDocumentFragment(), l.appendChild(o), t.appendChecked = o.checked, t.checkClone = l.cloneNode(!0).cloneNode(!0).lastChild.checked, d.attachEvent && (d.attachEvent("onclick", function () {
953
+ t.noCloneEvent = !1
954
+ }), d.cloneNode(!0).click());
955
+ for (f in{submit:!0, change:!0, focusin:!0})
956
+ d.setAttribute(c = "on" + f, "t"), t[f + "Bubbles"] = c in e || d.attributes[c].expando === !1;
957
+ d.style.backgroundClip = "content-box", d.cloneNode(!0).style.backgroundClip = "", t.clearCloneStyle = "content-box" === d.style.backgroundClip;
958
+ for (f in x(t))
959
+ break;
960
+ return t.ownLast = "0" !== f, x(function () {
961
+ var n, r, o, s = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", l = a.getElementsByTagName("body")[0];
962
+ l && (n = a.createElement("div"), n.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", l.appendChild(n).appendChild(d), d.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", o = d.getElementsByTagName("td"), o[0].style.cssText = "padding:0;margin:0;border:0;display:none", p = 0 === o[0].offsetHeight, o[0].style.display = "", o[1].style.display = "none", t.reliableHiddenOffsets = p && 0 === o[0].offsetHeight, d.innerHTML = "", d.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", x.swap(l, null != l.style.zoom ? {zoom: 1} : {}, function () {
963
+ t.boxSizing = 4 === d.offsetWidth
964
+ }), e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(d, null) || {}).top, t.boxSizingReliable = "4px" === (e.getComputedStyle(d, null) || {width: "4px"}).width, r = d.appendChild(a.createElement("div")), r.style.cssText = d.style.cssText = s, r.style.marginRight = r.style.width = "0", d.style.width = "1px", t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)), typeof d.style.zoom !== i && (d.innerHTML = "", d.style.cssText = s + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = 3 === d.offsetWidth, d.style.display = "block", d.innerHTML = "<div></div>", d.firstChild.style.width = "5px", t.shrinkWrapBlocks = 3 !== d.offsetWidth, t.inlineBlockNeedsLayout && (l.style.zoom = 1)), l.removeChild(n), n = d = o = r = null)
965
+ }), n = s = l = u = r = o = null, t
966
+ }({});
967
+ var B = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, P = /([A-Z])/g;
968
+ function R(e, n, r, i) {
969
+ if (x.acceptData(e)) {
970
+ var o, a, s = x.expando, l = e.nodeType, u = l ? x.cache : e, c = l ? e[s] : e[s] && s;
971
+ if (c && u[c] && (i || u[c].data) || r !== t || "string" != typeof n)
972
+ return c || (c = l ? e[s] = p.pop() || x.guid++ : s), u[c] || (u[c] = l ? {} : {toJSON: x.noop}), ("object" == typeof n || "function" == typeof n) && (i ? u[c] = x.extend(u[c], n) : u[c].data = x.extend(u[c].data, n)), a = u[c], i || (a.data || (a.data = {}), a = a.data), r !== t && (a[x.camelCase(n)] = r), "string" == typeof n ? (o = a[n], null == o && (o = a[x.camelCase(n)])) : o = a, o
973
+ }
974
+ }
975
+ function W(e, t, n) {
976
+ if (x.acceptData(e)) {
977
+ var r, i, o = e.nodeType, a = o ? x.cache : e, s = o ? e[x.expando] : x.expando;
978
+ if (a[s]) {
979
+ if (t && (r = n ? a[s] : a[s].data)) {
980
+ x.isArray(t) ? t = t.concat(x.map(t, x.camelCase)) : t in r ? t = [t] : (t = x.camelCase(t), t = t in r ? [t] : t.split(" ")), i = t.length;
981
+ while (i--)
982
+ delete r[t[i]];
983
+ if (n ? !I(r) : !x.isEmptyObject(r))
984
+ return
985
+ }
986
+ (n || (delete a[s].data, I(a[s]))) && (o ? x.cleanData([e], !0) : x.support.deleteExpando || a != a.window ? delete a[s] : a[s] = null)
987
+ }
988
+ }
989
+ }
990
+ x.extend({cache: {}, noData: {applet: !0, embed: !0, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"}, hasData: function (e) {
991
+ return e = e.nodeType ? x.cache[e[x.expando]] : e[x.expando], !!e && !I(e)
992
+ }, data: function (e, t, n) {
993
+ return R(e, t, n)
994
+ }, removeData: function (e, t) {
995
+ return W(e, t)
996
+ }, _data: function (e, t, n) {
997
+ return R(e, t, n, !0)
998
+ }, _removeData: function (e, t) {
999
+ return W(e, t, !0)
1000
+ }, acceptData: function (e) {
1001
+ if (e.nodeType && 1 !== e.nodeType && 9 !== e.nodeType)
1002
+ return!1;
1003
+ var t = e.nodeName && x.noData[e.nodeName.toLowerCase()];
1004
+ return!t || t !== !0 && e.getAttribute("classid") === t
1005
+ }}), x.fn.extend({data: function (e, n) {
1006
+ var r, i, o = null, a = 0, s = this[0];
1007
+ if (e === t) {
1008
+ if (this.length && (o = x.data(s), 1 === s.nodeType && !x._data(s, "parsedAttrs"))) {
1009
+ for (r = s.attributes; r.length > a; a++)
1010
+ i = r[a].name, 0 === i.indexOf("data-") && (i = x.camelCase(i.slice(5)), $(s, i, o[i]));
1011
+ x._data(s, "parsedAttrs", !0)
1012
+ }
1013
+ return o
1014
+ }
1015
+ return"object" == typeof e ? this.each(function () {
1016
+ x.data(this, e)
1017
+ }) : arguments.length > 1 ? this.each(function () {
1018
+ x.data(this, e, n)
1019
+ }) : s ? $(s, e, x.data(s, e)) : null
1020
+ }, removeData: function (e) {
1021
+ return this.each(function () {
1022
+ x.removeData(this, e)
1023
+ })
1024
+ }});
1025
+ function $(e, n, r) {
1026
+ if (r === t && 1 === e.nodeType) {
1027
+ var i = "data-" + n.replace(P, "-$1").toLowerCase();
1028
+ if (r = e.getAttribute(i), "string" == typeof r) {
1029
+ try {
1030
+ r = "true" === r ? !0 : "false" === r ? !1 : "null" === r ? null : +r + "" === r ? +r : B.test(r) ? x.parseJSON(r) : r
1031
+ } catch (o) {
1032
+ }
1033
+ x.data(e, n, r)
1034
+ } else
1035
+ r = t
1036
+ }
1037
+ return r
1038
+ }
1039
+ function I(e) {
1040
+ var t;
1041
+ for (t in e)
1042
+ if (("data" !== t || !x.isEmptyObject(e[t])) && "toJSON" !== t)
1043
+ return!1;
1044
+ return!0
1045
+ }
1046
+ x.extend({queue: function (e, n, r) {
1047
+ var i;
1048
+ return e ? (n = (n || "fx") + "queue", i = x._data(e, n), r && (!i || x.isArray(r) ? i = x._data(e, n, x.makeArray(r)) : i.push(r)), i || []) : t
1049
+ }, dequeue: function (e, t) {
1050
+ t = t || "fx";
1051
+ var n = x.queue(e, t), r = n.length, i = n.shift(), o = x._queueHooks(e, t), a = function () {
1052
+ x.dequeue(e, t)
1053
+ };
1054
+ "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire()
1055
+ }, _queueHooks: function (e, t) {
1056
+ var n = t + "queueHooks";
1057
+ return x._data(e, n) || x._data(e, n, {empty: x.Callbacks("once memory").add(function () {
1058
+ x._removeData(e, t + "queue"), x._removeData(e, n)
1059
+ })})
1060
+ }}), x.fn.extend({queue: function (e, n) {
1061
+ var r = 2;
1062
+ return"string" != typeof e && (n = e, e = "fx", r--), r > arguments.length ? x.queue(this[0], e) : n === t ? this : this.each(function () {
1063
+ var t = x.queue(this, e, n);
1064
+ x._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && x.dequeue(this, e)
1065
+ })
1066
+ }, dequeue: function (e) {
1067
+ return this.each(function () {
1068
+ x.dequeue(this, e)
1069
+ })
1070
+ }, delay: function (e, t) {
1071
+ return e = x.fx ? x.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function (t, n) {
1072
+ var r = setTimeout(t, e);
1073
+ n.stop = function () {
1074
+ clearTimeout(r)
1075
+ }
1076
+ })
1077
+ }, clearQueue: function (e) {
1078
+ return this.queue(e || "fx", [])
1079
+ }, promise: function (e, n) {
1080
+ var r, i = 1, o = x.Deferred(), a = this, s = this.length, l = function () {
1081
+ --i || o.resolveWith(a, [a])
1082
+ };
1083
+ "string" != typeof e && (n = e, e = t), e = e || "fx";
1084
+ while (s--)
1085
+ r = x._data(a[s], e + "queueHooks"), r && r.empty && (i++, r.empty.add(l));
1086
+ return l(), o.promise(n)
1087
+ }});
1088
+ var z, X, U = /[\t\r\n\f]/g, V = /\r/g, Y = /^(?:input|select|textarea|button|object)$/i, J = /^(?:a|area)$/i, G = /^(?:checked|selected)$/i, Q = x.support.getSetAttribute, K = x.support.input;
1089
+ x.fn.extend({attr: function (e, t) {
1090
+ return x.access(this, x.attr, e, t, arguments.length > 1)
1091
+ }, removeAttr: function (e) {
1092
+ return this.each(function () {
1093
+ x.removeAttr(this, e)
1094
+ })
1095
+ }, prop: function (e, t) {
1096
+ return x.access(this, x.prop, e, t, arguments.length > 1)
1097
+ }, removeProp: function (e) {
1098
+ return e = x.propFix[e] || e, this.each(function () {
1099
+ try {
1100
+ this[e] = t, delete this[e]
1101
+ } catch (n) {
1102
+ }
1103
+ })
1104
+ }, addClass: function (e) {
1105
+ var t, n, r, i, o, a = 0, s = this.length, l = "string" == typeof e && e;
1106
+ if (x.isFunction(e))
1107
+ return this.each(function (t) {
1108
+ x(this).addClass(e.call(this, t, this.className))
1109
+ });
1110
+ if (l)
1111
+ for (t = (e || "").match(T) || []; s > a; a++)
1112
+ if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : " ")) {
1113
+ o = 0;
1114
+ while (i = t[o++])
1115
+ 0 > r.indexOf(" " + i + " ") && (r += i + " ");
1116
+ n.className = x.trim(r)
1117
+ }
1118
+ return this
1119
+ }, removeClass: function (e) {
1120
+ var t, n, r, i, o, a = 0, s = this.length, l = 0 === arguments.length || "string" == typeof e && e;
1121
+ if (x.isFunction(e))
1122
+ return this.each(function (t) {
1123
+ x(this).removeClass(e.call(this, t, this.className))
1124
+ });
1125
+ if (l)
1126
+ for (t = (e || "").match(T) || []; s > a; a++)
1127
+ if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : "")) {
1128
+ o = 0;
1129
+ while (i = t[o++])
1130
+ while (r.indexOf(" " + i + " ") >= 0)
1131
+ r = r.replace(" " + i + " ", " ");
1132
+ n.className = e ? x.trim(r) : ""
1133
+ }
1134
+ return this
1135
+ }, toggleClass: function (e, t) {
1136
+ var n = typeof e, r = "boolean" == typeof t;
1137
+ return x.isFunction(e) ? this.each(function (n) {
1138
+ x(this).toggleClass(e.call(this, n, this.className, t), t)
1139
+ }) : this.each(function () {
1140
+ if ("string" === n) {
1141
+ var o, a = 0, s = x(this), l = t, u = e.match(T) || [];
1142
+ while (o = u[a++])
1143
+ l = r ? l : !s.hasClass(o), s[l ? "addClass" : "removeClass"](o)
1144
+ } else
1145
+ (n === i || "boolean" === n) && (this.className && x._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : x._data(this, "__className__") || "")
1146
+ })
1147
+ }, hasClass: function (e) {
1148
+ var t = " " + e + " ", n = 0, r = this.length;
1149
+ for (; r > n; n++)
1150
+ if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(U, " ").indexOf(t) >= 0)
1151
+ return!0;
1152
+ return!1
1153
+ }, val: function (e) {
1154
+ var n, r, i, o = this[0];
1155
+ {
1156
+ if (arguments.length)
1157
+ return i = x.isFunction(e), this.each(function (n) {
1158
+ var o;
1159
+ 1 === this.nodeType && (o = i ? e.call(this, n, x(this).val()) : e, null == o ? o = "" : "number" == typeof o ? o += "" : x.isArray(o) && (o = x.map(o, function (e) {
1160
+ return null == e ? "" : e + ""
1161
+ })), r = x.valHooks[this.type] || x.valHooks[this.nodeName.toLowerCase()], r && "set"in r && r.set(this, o, "value") !== t || (this.value = o))
1162
+ });
1163
+ if (o)
1164
+ return r = x.valHooks[o.type] || x.valHooks[o.nodeName.toLowerCase()], r && "get"in r && (n = r.get(o, "value")) !== t ? n : (n = o.value, "string" == typeof n ? n.replace(V, "") : null == n ? "" : n)
1165
+ }
1166
+ }}), x.extend({valHooks: {option: {get: function (e) {
1167
+ var t = x.find.attr(e, "value");
1168
+ return null != t ? t : e.text
1169
+ }}, select: {get: function (e) {
1170
+ var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || 0 > i, a = o ? null : [], s = o ? i + 1 : r.length, l = 0 > i ? s : o ? i : 0;
1171
+ for (; s > l; l++)
1172
+ if (n = r[l], !(!n.selected && l !== i || (x.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && x.nodeName(n.parentNode, "optgroup"))) {
1173
+ if (t = x(n).val(), o)
1174
+ return t;
1175
+ a.push(t)
1176
+ }
1177
+ return a
1178
+ }, set: function (e, t) {
1179
+ var n, r, i = e.options, o = x.makeArray(t), a = i.length;
1180
+ while (a--)
1181
+ r = i[a], (r.selected = x.inArray(x(r).val(), o) >= 0) && (n = !0);
1182
+ return n || (e.selectedIndex = -1), o
1183
+ }}}, attr: function (e, n, r) {
1184
+ var o, a, s = e.nodeType;
1185
+ if (e && 3 !== s && 8 !== s && 2 !== s)
1186
+ return typeof e.getAttribute === i ? x.prop(e, n, r) : (1 === s && x.isXMLDoc(e) || (n = n.toLowerCase(), o = x.attrHooks[n] || (x.expr.match.bool.test(n) ? X : z)), r === t ? o && "get"in o && null !== (a = o.get(e, n)) ? a : (a = x.find.attr(e, n), null == a ? t : a) : null !== r ? o && "set"in o && (a = o.set(e, r, n)) !== t ? a : (e.setAttribute(n, r + ""), r) : (x.removeAttr(e, n), t))
1187
+ }, removeAttr: function (e, t) {
1188
+ var n, r, i = 0, o = t && t.match(T);
1189
+ if (o && 1 === e.nodeType)
1190
+ while (n = o[i++])
1191
+ r = x.propFix[n] || n, x.expr.match.bool.test(n) ? K && Q || !G.test(n) ? e[r] = !1 : e[x.camelCase("default-" + n)] = e[r] = !1 : x.attr(e, n, ""), e.removeAttribute(Q ? n : r)
1192
+ }, attrHooks: {type: {set: function (e, t) {
1193
+ if (!x.support.radioValue && "radio" === t && x.nodeName(e, "input")) {
1194
+ var n = e.value;
1195
+ return e.setAttribute("type", t), n && (e.value = n), t
1196
+ }
1197
+ }}}, propFix: {"for": "htmlFor", "class": "className"}, prop: function (e, n, r) {
1198
+ var i, o, a, s = e.nodeType;
1199
+ if (e && 3 !== s && 8 !== s && 2 !== s)
1200
+ return a = 1 !== s || !x.isXMLDoc(e), a && (n = x.propFix[n] || n, o = x.propHooks[n]), r !== t ? o && "set"in o && (i = o.set(e, r, n)) !== t ? i : e[n] = r : o && "get"in o && null !== (i = o.get(e, n)) ? i : e[n]
1201
+ }, propHooks: {tabIndex: {get: function (e) {
1202
+ var t = x.find.attr(e, "tabindex");
1203
+ return t ? parseInt(t, 10) : Y.test(e.nodeName) || J.test(e.nodeName) && e.href ? 0 : -1
1204
+ }}}}), X = {set: function (e, t, n) {
1205
+ return t === !1 ? x.removeAttr(e, n) : K && Q || !G.test(n) ? e.setAttribute(!Q && x.propFix[n] || n, n) : e[x.camelCase("default-" + n)] = e[n] = !0, n
1206
+ }}, x.each(x.expr.match.bool.source.match(/\w+/g), function (e, n) {
1207
+ var r = x.expr.attrHandle[n] || x.find.attr;
1208
+ x.expr.attrHandle[n] = K && Q || !G.test(n) ? function (e, n, i) {
1209
+ var o = x.expr.attrHandle[n], a = i ? t : (x.expr.attrHandle[n] = t) != r(e, n, i) ? n.toLowerCase() : null;
1210
+ return x.expr.attrHandle[n] = o, a
1211
+ } : function (e, n, r) {
1212
+ return r ? t : e[x.camelCase("default-" + n)] ? n.toLowerCase() : null
1213
+ }
1214
+ }), K && Q || (x.attrHooks.value = {set: function (e, n, r) {
1215
+ return x.nodeName(e, "input") ? (e.defaultValue = n, t) : z && z.set(e, n, r)
1216
+ }}), Q || (z = {set: function (e, n, r) {
1217
+ var i = e.getAttributeNode(r);
1218
+ return i || e.setAttributeNode(i = e.ownerDocument.createAttribute(r)), i.value = n += "", "value" === r || n === e.getAttribute(r) ? n : t
1219
+ }}, x.expr.attrHandle.id = x.expr.attrHandle.name = x.expr.attrHandle.coords = function (e, n, r) {
1220
+ var i;
1221
+ return r ? t : (i = e.getAttributeNode(n)) && "" !== i.value ? i.value : null
1222
+ }, x.valHooks.button = {get: function (e, n) {
1223
+ var r = e.getAttributeNode(n);
1224
+ return r && r.specified ? r.value : t
1225
+ }, set: z.set}, x.attrHooks.contenteditable = {set: function (e, t, n) {
1226
+ z.set(e, "" === t ? !1 : t, n)
1227
+ }}, x.each(["width", "height"], function (e, n) {
1228
+ x.attrHooks[n] = {set: function (e, r) {
1229
+ return"" === r ? (e.setAttribute(n, "auto"), r) : t
1230
+ }}
1231
+ })), x.support.hrefNormalized || x.each(["href", "src"], function (e, t) {
1232
+ x.propHooks[t] = {get: function (e) {
1233
+ return e.getAttribute(t, 4)
1234
+ }}
1235
+ }), x.support.style || (x.attrHooks.style = {get: function (e) {
1236
+ return e.style.cssText || t
1237
+ }, set: function (e, t) {
1238
+ return e.style.cssText = t + ""
1239
+ }}), x.support.optSelected || (x.propHooks.selected = {get: function (e) {
1240
+ var t = e.parentNode;
1241
+ return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null
1242
+ }}), x.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
1243
+ x.propFix[this.toLowerCase()] = this
1244
+ }), x.support.enctype || (x.propFix.enctype = "encoding"), x.each(["radio", "checkbox"], function () {
1245
+ x.valHooks[this] = {set: function (e, n) {
1246
+ return x.isArray(n) ? e.checked = x.inArray(x(e).val(), n) >= 0 : t
1247
+ }}, x.support.checkOn || (x.valHooks[this].get = function (e) {
1248
+ return null === e.getAttribute("value") ? "on" : e.value
1249
+ })
1250
+ });
1251
+ var Z = /^(?:input|select|textarea)$/i, et = /^key/, tt = /^(?:mouse|contextmenu)|click/, nt = /^(?:focusinfocus|focusoutblur)$/, rt = /^([^.]*)(?:\.(.+)|)$/;
1252
+ function it() {
1253
+ return!0
1254
+ }
1255
+ function ot() {
1256
+ return!1
1257
+ }
1258
+ function at() {
1259
+ try {
1260
+ return a.activeElement
1261
+ } catch (e) {
1262
+ }
1263
+ }
1264
+ x.event = {global: {}, add: function (e, n, r, o, a) {
1265
+ var s, l, u, c, p, f, d, h, g, m, y, v = x._data(e);
1266
+ if (v) {
1267
+ r.handler && (c = r, r = c.handler, a = c.selector), r.guid || (r.guid = x.guid++), (l = v.events) || (l = v.events = {}), (f = v.handle) || (f = v.handle = function (e) {
1268
+ return typeof x === i || e && x.event.triggered === e.type ? t : x.event.dispatch.apply(f.elem, arguments)
1269
+ }, f.elem = e), n = (n || "").match(T) || [""], u = n.length;
1270
+ while (u--)
1271
+ s = rt.exec(n[u]) || [], g = y = s[1], m = (s[2] || "").split(".").sort(), g && (p = x.event.special[g] || {}, g = (a ? p.delegateType : p.bindType) || g, p = x.event.special[g] || {}, d = x.extend({type: g, origType: y, data: o, handler: r, guid: r.guid, selector: a, needsContext: a && x.expr.match.needsContext.test(a), namespace: m.join(".")}, c), (h = l[g]) || (h = l[g] = [], h.delegateCount = 0, p.setup && p.setup.call(e, o, m, f) !== !1 || (e.addEventListener ? e.addEventListener(g, f, !1) : e.attachEvent && e.attachEvent("on" + g, f))), p.add && (p.add.call(e, d), d.handler.guid || (d.handler.guid = r.guid)), a ? h.splice(h.delegateCount++, 0, d) : h.push(d), x.event.global[g] = !0);
1272
+ e = null
1273
+ }
1274
+ }, remove: function (e, t, n, r, i) {
1275
+ var o, a, s, l, u, c, p, f, d, h, g, m = x.hasData(e) && x._data(e);
1276
+ if (m && (c = m.events)) {
1277
+ t = (t || "").match(T) || [""], u = t.length;
1278
+ while (u--)
1279
+ if (s = rt.exec(t[u]) || [], d = g = s[1], h = (s[2] || "").split(".").sort(), d) {
1280
+ p = x.event.special[d] || {}, d = (r ? p.delegateType : p.bindType) || d, f = c[d] || [], s = s[2] && RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), l = o = f.length;
1281
+ while (o--)
1282
+ a = f[o], !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (f.splice(o, 1), a.selector && f.delegateCount--, p.remove && p.remove.call(e, a));
1283
+ l && !f.length && (p.teardown && p.teardown.call(e, h, m.handle) !== !1 || x.removeEvent(e, d, m.handle), delete c[d])
1284
+ } else
1285
+ for (d in c)
1286
+ x.event.remove(e, d + t[u], n, r, !0);
1287
+ x.isEmptyObject(c) && (delete m.handle, x._removeData(e, "events"))
1288
+ }
1289
+ }, trigger: function (n, r, i, o) {
1290
+ var s, l, u, c, p, f, d, h = [i || a], g = v.call(n, "type") ? n.type : n, m = v.call(n, "namespace") ? n.namespace.split(".") : [];
1291
+ if (u = f = i = i || a, 3 !== i.nodeType && 8 !== i.nodeType && !nt.test(g + x.event.triggered) && (g.indexOf(".") >= 0 && (m = g.split("."), g = m.shift(), m.sort()), l = 0 > g.indexOf(":") && "on" + g, n = n[x.expando] ? n : new x.Event(g, "object" == typeof n && n), n.isTrigger = o ? 2 : 3, n.namespace = m.join("."), n.namespace_re = n.namespace ? RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, n.result = t, n.target || (n.target = i), r = null == r ? [n] : x.makeArray(r, [n]), p = x.event.special[g] || {}, o || !p.trigger || p.trigger.apply(i, r) !== !1)) {
1292
+ if (!o && !p.noBubble && !x.isWindow(i)) {
1293
+ for (c = p.delegateType || g, nt.test(c + g) || (u = u.parentNode); u; u = u.parentNode)
1294
+ h.push(u), f = u;
1295
+ f === (i.ownerDocument || a) && h.push(f.defaultView || f.parentWindow || e)
1296
+ }
1297
+ d = 0;
1298
+ while ((u = h[d++]) && !n.isPropagationStopped())
1299
+ n.type = d > 1 ? c : p.bindType || g, s = (x._data(u, "events") || {})[n.type] && x._data(u, "handle"), s && s.apply(u, r), s = l && u[l], s && x.acceptData(u) && s.apply && s.apply(u, r) === !1 && n.preventDefault();
1300
+ if (n.type = g, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(h.pop(), r) === !1) && x.acceptData(i) && l && i[g] && !x.isWindow(i)) {
1301
+ f = i[l], f && (i[l] = null), x.event.triggered = g;
1302
+ try {
1303
+ i[g]()
1304
+ } catch (y) {
1305
+ }
1306
+ x.event.triggered = t, f && (i[l] = f)
1307
+ }
1308
+ return n.result
1309
+ }
1310
+ }, dispatch: function (e) {
1311
+ e = x.event.fix(e);
1312
+ var n, r, i, o, a, s = [], l = g.call(arguments), u = (x._data(this, "events") || {})[e.type] || [], c = x.event.special[e.type] || {};
1313
+ if (l[0] = e, e.delegateTarget = this, !c.preDispatch || c.preDispatch.call(this, e) !== !1) {
1314
+ s = x.event.handlers.call(this, e, u), n = 0;
1315
+ while ((o = s[n++]) && !e.isPropagationStopped()) {
1316
+ e.currentTarget = o.elem, a = 0;
1317
+ while ((i = o.handlers[a++]) && !e.isImmediatePropagationStopped())
1318
+ (!e.namespace_re || e.namespace_re.test(i.namespace)) && (e.handleObj = i, e.data = i.data, r = ((x.event.special[i.origType] || {}).handle || i.handler).apply(o.elem, l), r !== t && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()))
1319
+ }
1320
+ return c.postDispatch && c.postDispatch.call(this, e), e.result
1321
+ }
1322
+ }, handlers: function (e, n) {
1323
+ var r, i, o, a, s = [], l = n.delegateCount, u = e.target;
1324
+ if (l && u.nodeType && (!e.button || "click" !== e.type))
1325
+ for (; u != this; u = u.parentNode || this)
1326
+ if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {
1327
+ for (o = [], a = 0; l > a; a++)
1328
+ i = n[a], r = i.selector + " ", o[r] === t && (o[r] = i.needsContext ? x(r, this).index(u) >= 0 : x.find(r, this, null, [u]).length), o[r] && o.push(i);
1329
+ o.length && s.push({elem: u, handlers: o})
1330
+ }
1331
+ return n.length > l && s.push({elem: this, handlers: n.slice(l)}), s
1332
+ }, fix: function (e) {
1333
+ if (e[x.expando])
1334
+ return e;
1335
+ var t, n, r, i = e.type, o = e, s = this.fixHooks[i];
1336
+ s || (this.fixHooks[i] = s = tt.test(i) ? this.mouseHooks : et.test(i) ? this.keyHooks : {}), r = s.props ? this.props.concat(s.props) : this.props, e = new x.Event(o), t = r.length;
1337
+ while (t--)
1338
+ n = r[t], e[n] = o[n];
1339
+ return e.target || (e.target = o.srcElement || a), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, s.filter ? s.filter(e, o) : e
1340
+ }, 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 (e, t) {
1341
+ return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e
1342
+ }}, mouseHooks: {props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function (e, n) {
1343
+ var r, i, o, s = n.button, l = n.fromElement;
1344
+ return null == e.pageX && null != n.clientX && (i = e.target.ownerDocument || a, o = i.documentElement, r = i.body, e.pageX = n.clientX + (o && o.scrollLeft || r && r.scrollLeft || 0) - (o && o.clientLeft || r && r.clientLeft || 0), e.pageY = n.clientY + (o && o.scrollTop || r && r.scrollTop || 0) - (o && o.clientTop || r && r.clientTop || 0)), !e.relatedTarget && l && (e.relatedTarget = l === e.target ? n.toElement : l), e.which || s === t || (e.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0), e
1345
+ }}, special: {load: {noBubble: !0}, focus: {trigger: function () {
1346
+ if (this !== at() && this.focus)
1347
+ try {
1348
+ return this.focus(), !1
1349
+ } catch (e) {
1350
+ }
1351
+ }, delegateType: "focusin"}, blur: {trigger: function () {
1352
+ return this === at() && this.blur ? (this.blur(), !1) : t
1353
+ }, delegateType: "focusout"}, click: {trigger: function () {
1354
+ return x.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : t
1355
+ }, _default: function (e) {
1356
+ return x.nodeName(e.target, "a")
1357
+ }}, beforeunload: {postDispatch: function (e) {
1358
+ e.result !== t && (e.originalEvent.returnValue = e.result)
1359
+ }}}, simulate: function (e, t, n, r) {
1360
+ var i = x.extend(new x.Event, n, {type: e, isSimulated: !0, originalEvent: {}});
1361
+ r ? x.event.trigger(i, null, t) : x.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault()
1362
+ }}, x.removeEvent = a.removeEventListener ? function (e, t, n) {
1363
+ e.removeEventListener && e.removeEventListener(t, n, !1)
1364
+ } : function (e, t, n) {
1365
+ var r = "on" + t;
1366
+ e.detachEvent && (typeof e[r] === i && (e[r] = null), e.detachEvent(r, n))
1367
+ }, x.Event = function (e, n) {
1368
+ return this instanceof x.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? it : ot) : this.type = e, n && x.extend(this, n), this.timeStamp = e && e.timeStamp || x.now(), this[x.expando] = !0, t) : new x.Event(e, n)
1369
+ }, x.Event.prototype = {isDefaultPrevented: ot, isPropagationStopped: ot, isImmediatePropagationStopped: ot, preventDefault: function () {
1370
+ var e = this.originalEvent;
1371
+ this.isDefaultPrevented = it, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)
1372
+ }, stopPropagation: function () {
1373
+ var e = this.originalEvent;
1374
+ this.isPropagationStopped = it, e && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0)
1375
+ }, stopImmediatePropagation: function () {
1376
+ this.isImmediatePropagationStopped = it, this.stopPropagation()
1377
+ }}, x.each({mouseenter: "mouseover", mouseleave: "mouseout"}, function (e, t) {
1378
+ x.event.special[e] = {delegateType: t, bindType: t, handle: function (e) {
1379
+ var n, r = this, i = e.relatedTarget, o = e.handleObj;
1380
+ return(!i || i !== r && !x.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n
1381
+ }}
1382
+ }), x.support.submitBubbles || (x.event.special.submit = {setup: function () {
1383
+ return x.nodeName(this, "form") ? !1 : (x.event.add(this, "click._submit keypress._submit", function (e) {
1384
+ var n = e.target, r = x.nodeName(n, "input") || x.nodeName(n, "button") ? n.form : t;
1385
+ r && !x._data(r, "submitBubbles") && (x.event.add(r, "submit._submit", function (e) {
1386
+ e._submit_bubble = !0
1387
+ }), x._data(r, "submitBubbles", !0))
1388
+ }), t)
1389
+ }, postDispatch: function (e) {
1390
+ e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && x.event.simulate("submit", this.parentNode, e, !0))
1391
+ }, teardown: function () {
1392
+ return x.nodeName(this, "form") ? !1 : (x.event.remove(this, "._submit"), t)
1393
+ }}), x.support.changeBubbles || (x.event.special.change = {setup: function () {
1394
+ return Z.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (x.event.add(this, "propertychange._change", function (e) {
1395
+ "checked" === e.originalEvent.propertyName && (this._just_changed = !0)
1396
+ }), x.event.add(this, "click._change", function (e) {
1397
+ this._just_changed && !e.isTrigger && (this._just_changed = !1), x.event.simulate("change", this, e, !0)
1398
+ })), !1) : (x.event.add(this, "beforeactivate._change", function (e) {
1399
+ var t = e.target;
1400
+ Z.test(t.nodeName) && !x._data(t, "changeBubbles") && (x.event.add(t, "change._change", function (e) {
1401
+ !this.parentNode || e.isSimulated || e.isTrigger || x.event.simulate("change", this.parentNode, e, !0)
1402
+ }), x._data(t, "changeBubbles", !0))
1403
+ }), t)
1404
+ }, handle: function (e) {
1405
+ var n = e.target;
1406
+ return this !== n || e.isSimulated || e.isTrigger || "radio" !== n.type && "checkbox" !== n.type ? e.handleObj.handler.apply(this, arguments) : t
1407
+ }, teardown: function () {
1408
+ return x.event.remove(this, "._change"), !Z.test(this.nodeName)
1409
+ }}), x.support.focusinBubbles || x.each({focus: "focusin", blur: "focusout"}, function (e, t) {
1410
+ var n = 0, r = function (e) {
1411
+ x.event.simulate(t, e.target, x.event.fix(e), !0)
1412
+ };
1413
+ x.event.special[t] = {setup: function () {
1414
+ 0 === n++ && a.addEventListener(e, r, !0)
1415
+ }, teardown: function () {
1416
+ 0 === --n && a.removeEventListener(e, r, !0)
1417
+ }}
1418
+ }), x.fn.extend({on: function (e, n, r, i, o) {
1419
+ var a, s;
1420
+ if ("object" == typeof e) {
1421
+ "string" != typeof n && (r = r || n, n = t);
1422
+ for (a in e)
1423
+ this.on(a, n, r, e[a], o);
1424
+ return this
1425
+ }
1426
+ if (null == r && null == i ? (i = n, r = n = t) : null == i && ("string" == typeof n ? (i = r, r = t) : (i = r, r = n, n = t)), i === !1)
1427
+ i = ot;
1428
+ else if (!i)
1429
+ return this;
1430
+ return 1 === o && (s = i, i = function (e) {
1431
+ return x().off(e), s.apply(this, arguments)
1432
+ }, i.guid = s.guid || (s.guid = x.guid++)), this.each(function () {
1433
+ x.event.add(this, e, i, r, n)
1434
+ })
1435
+ }, one: function (e, t, n, r) {
1436
+ return this.on(e, t, n, r, 1)
1437
+ }, off: function (e, n, r) {
1438
+ var i, o;
1439
+ if (e && e.preventDefault && e.handleObj)
1440
+ return i = e.handleObj, x(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
1441
+ if ("object" == typeof e) {
1442
+ for (o in e)
1443
+ this.off(o, n, e[o]);
1444
+ return this
1445
+ }
1446
+ return(n === !1 || "function" == typeof n) && (r = n, n = t), r === !1 && (r = ot), this.each(function () {
1447
+ x.event.remove(this, e, r, n)
1448
+ })
1449
+ }, trigger: function (e, t) {
1450
+ return this.each(function () {
1451
+ x.event.trigger(e, t, this)
1452
+ })
1453
+ }, triggerHandler: function (e, n) {
1454
+ var r = this[0];
1455
+ return r ? x.event.trigger(e, n, r, !0) : t
1456
+ }});
1457
+ var st = /^.[^:#\[\.,]*$/, lt = /^(?:parents|prev(?:Until|All))/, ut = x.expr.match.needsContext, ct = {children: !0, contents: !0, next: !0, prev: !0};
1458
+ x.fn.extend({find: function (e) {
1459
+ var t, n = [], r = this, i = r.length;
1460
+ if ("string" != typeof e)
1461
+ return this.pushStack(x(e).filter(function () {
1462
+ for (t = 0; i > t; t++)
1463
+ if (x.contains(r[t], this))
1464
+ return!0
1465
+ }));
1466
+ for (t = 0; i > t; t++)
1467
+ x.find(e, r[t], n);
1468
+ return n = this.pushStack(i > 1 ? x.unique(n) : n), n.selector = this.selector ? this.selector + " " + e : e, n
1469
+ }, has: function (e) {
1470
+ var t, n = x(e, this), r = n.length;
1471
+ return this.filter(function () {
1472
+ for (t = 0; r > t; t++)
1473
+ if (x.contains(this, n[t]))
1474
+ return!0
1475
+ })
1476
+ }, not: function (e) {
1477
+ return this.pushStack(ft(this, e || [], !0))
1478
+ }, filter: function (e) {
1479
+ return this.pushStack(ft(this, e || [], !1))
1480
+ }, is: function (e) {
1481
+ return!!ft(this, "string" == typeof e && ut.test(e) ? x(e) : e || [], !1).length
1482
+ }, closest: function (e, t) {
1483
+ var n, r = 0, i = this.length, o = [], a = ut.test(e) || "string" != typeof e ? x(e, t || this.context) : 0;
1484
+ for (; i > r; r++)
1485
+ for (n = this[r]; n && n !== t; n = n.parentNode)
1486
+ if (11 > n.nodeType && (a ? a.index(n) > -1 : 1 === n.nodeType && x.find.matchesSelector(n, e))) {
1487
+ n = o.push(n);
1488
+ break
1489
+ }
1490
+ return this.pushStack(o.length > 1 ? x.unique(o) : o)
1491
+ }, index: function (e) {
1492
+ return e ? "string" == typeof e ? x.inArray(this[0], x(e)) : x.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
1493
+ }, add: function (e, t) {
1494
+ var n = "string" == typeof e ? x(e, t) : x.makeArray(e && e.nodeType ? [e] : e), r = x.merge(this.get(), n);
1495
+ return this.pushStack(x.unique(r))
1496
+ }, addBack: function (e) {
1497
+ return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
1498
+ }});
1499
+ function pt(e, t) {
1500
+ do
1501
+ e = e[t];
1502
+ while (e && 1 !== e.nodeType);
1503
+ return e
1504
+ }
1505
+ x.each({parent: function (e) {
1506
+ var t = e.parentNode;
1507
+ return t && 11 !== t.nodeType ? t : null
1508
+ }, parents: function (e) {
1509
+ return x.dir(e, "parentNode")
1510
+ }, parentsUntil: function (e, t, n) {
1511
+ return x.dir(e, "parentNode", n)
1512
+ }, next: function (e) {
1513
+ return pt(e, "nextSibling")
1514
+ }, prev: function (e) {
1515
+ return pt(e, "previousSibling")
1516
+ }, nextAll: function (e) {
1517
+ return x.dir(e, "nextSibling")
1518
+ }, prevAll: function (e) {
1519
+ return x.dir(e, "previousSibling")
1520
+ }, nextUntil: function (e, t, n) {
1521
+ return x.dir(e, "nextSibling", n)
1522
+ }, prevUntil: function (e, t, n) {
1523
+ return x.dir(e, "previousSibling", n)
1524
+ }, siblings: function (e) {
1525
+ return x.sibling((e.parentNode || {}).firstChild, e)
1526
+ }, children: function (e) {
1527
+ return x.sibling(e.firstChild)
1528
+ }, contents: function (e) {
1529
+ return x.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : x.merge([], e.childNodes)
1530
+ }}, function (e, t) {
1531
+ x.fn[e] = function (n, r) {
1532
+ var i = x.map(this, t, n);
1533
+ return"Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = x.filter(r, i)), this.length > 1 && (ct[e] || (i = x.unique(i)), lt.test(e) && (i = i.reverse())), this.pushStack(i)
1534
+ }
1535
+ }), x.extend({filter: function (e, t, n) {
1536
+ var r = t[0];
1537
+ return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? x.find.matchesSelector(r, e) ? [r] : [] : x.find.matches(e, x.grep(t, function (e) {
1538
+ return 1 === e.nodeType
1539
+ }))
1540
+ }, dir: function (e, n, r) {
1541
+ var i = [], o = e[n];
1542
+ while (o && 9 !== o.nodeType && (r === t || 1 !== o.nodeType || !x(o).is(r)))
1543
+ 1 === o.nodeType && i.push(o), o = o[n];
1544
+ return i
1545
+ }, sibling: function (e, t) {
1546
+ var n = [];
1547
+ for (; e; e = e.nextSibling)
1548
+ 1 === e.nodeType && e !== t && n.push(e);
1549
+ return n
1550
+ }});
1551
+ function ft(e, t, n) {
1552
+ if (x.isFunction(t))
1553
+ return x.grep(e, function (e, r) {
1554
+ return!!t.call(e, r, e) !== n
1555
+ });
1556
+ if (t.nodeType)
1557
+ return x.grep(e, function (e) {
1558
+ return e === t !== n
1559
+ });
1560
+ if ("string" == typeof t) {
1561
+ if (st.test(t))
1562
+ return x.filter(t, e, n);
1563
+ t = x.filter(t, e)
1564
+ }
1565
+ return x.grep(e, function (e) {
1566
+ return x.inArray(e, t) >= 0 !== n
1567
+ })
1568
+ }
1569
+ function dt(e) {
1570
+ var t = ht.split("|"), n = e.createDocumentFragment();
1571
+ if (n.createElement)
1572
+ while (t.length)
1573
+ n.createElement(t.pop());
1574
+ return n
1575
+ }
1576
+ var ht = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", gt = / jQuery\d+="(?:null|\d+)"/g, mt = RegExp("<(?:" + ht + ")[\\s/>]", "i"), yt = /^\s+/, vt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, bt = /<([\w:]+)/, xt = /<tbody/i, wt = /<|&#?\w+;/, Tt = /<(?:script|style|link)/i, Ct = /^(?:checkbox|radio)$/i, Nt = /checked\s*(?:[^=]|=\s*.checked.)/i, kt = /^$|\/(?:java|ecma)script/i, Et = /^true\/(.*)/, St = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, At = {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: x.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]}, jt = dt(a), Dt = jt.appendChild(a.createElement("div"));
1577
+ At.optgroup = At.option, At.tbody = At.tfoot = At.colgroup = At.caption = At.thead, At.th = At.td, x.fn.extend({text: function (e) {
1578
+ return x.access(this, function (e) {
1579
+ return e === t ? x.text(this) : this.empty().append((this[0] && this[0].ownerDocument || a).createTextNode(e))
1580
+ }, null, e, arguments.length)
1581
+ }, append: function () {
1582
+ return this.domManip(arguments, function (e) {
1583
+ if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
1584
+ var t = Lt(this, e);
1585
+ t.appendChild(e)
1586
+ }
1587
+ })
1588
+ }, prepend: function () {
1589
+ return this.domManip(arguments, function (e) {
1590
+ if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
1591
+ var t = Lt(this, e);
1592
+ t.insertBefore(e, t.firstChild)
1593
+ }
1594
+ })
1595
+ }, before: function () {
1596
+ return this.domManip(arguments, function (e) {
1597
+ this.parentNode && this.parentNode.insertBefore(e, this)
1598
+ })
1599
+ }, after: function () {
1600
+ return this.domManip(arguments, function (e) {
1601
+ this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)
1602
+ })
1603
+ }, remove: function (e, t) {
1604
+ var n, r = e ? x.filter(e, this) : this, i = 0;
1605
+ for (; null != (n = r[i]); i++)
1606
+ t || 1 !== n.nodeType || x.cleanData(Ft(n)), n.parentNode && (t && x.contains(n.ownerDocument, n) && _t(Ft(n, "script")), n.parentNode.removeChild(n));
1607
+ return this
1608
+ }, empty: function () {
1609
+ var e, t = 0;
1610
+ for (; null != (e = this[t]); t++) {
1611
+ 1 === e.nodeType && x.cleanData(Ft(e, !1));
1612
+ while (e.firstChild)
1613
+ e.removeChild(e.firstChild);
1614
+ e.options && x.nodeName(e, "select") && (e.options.length = 0)
1615
+ }
1616
+ return this
1617
+ }, clone: function (e, t) {
1618
+ return e = null == e ? !1 : e, t = null == t ? e : t, this.map(function () {
1619
+ return x.clone(this, e, t)
1620
+ })
1621
+ }, html: function (e) {
1622
+ return x.access(this, function (e) {
1623
+ var n = this[0] || {}, r = 0, i = this.length;
1624
+ if (e === t)
1625
+ return 1 === n.nodeType ? n.innerHTML.replace(gt, "") : t;
1626
+ if (!("string" != typeof e || Tt.test(e) || !x.support.htmlSerialize && mt.test(e) || !x.support.leadingWhitespace && yt.test(e) || At[(bt.exec(e) || ["", ""])[1].toLowerCase()])) {
1627
+ e = e.replace(vt, "<$1></$2>");
1628
+ try {
1629
+ for (; i > r; r++)
1630
+ n = this[r] || {}, 1 === n.nodeType && (x.cleanData(Ft(n, !1)), n.innerHTML = e);
1631
+ n = 0
1632
+ } catch (o) {
1633
+ }
1634
+ }
1635
+ n && this.empty().append(e)
1636
+ }, null, e, arguments.length)
1637
+ }, replaceWith: function () {
1638
+ var e = x.map(this, function (e) {
1639
+ return[e.nextSibling, e.parentNode]
1640
+ }), t = 0;
1641
+ return this.domManip(arguments, function (n) {
1642
+ var r = e[t++], i = e[t++];
1643
+ i && (r && r.parentNode !== i && (r = this.nextSibling), x(this).remove(), i.insertBefore(n, r))
1644
+ }, !0), t ? this : this.remove()
1645
+ }, detach: function (e) {
1646
+ return this.remove(e, !0)
1647
+ }, domManip: function (e, t, n) {
1648
+ e = d.apply([], e);
1649
+ var r, i, o, a, s, l, u = 0, c = this.length, p = this, f = c - 1, h = e[0], g = x.isFunction(h);
1650
+ if (g || !(1 >= c || "string" != typeof h || x.support.checkClone) && Nt.test(h))
1651
+ return this.each(function (r) {
1652
+ var i = p.eq(r);
1653
+ g && (e[0] = h.call(this, r, i.html())), i.domManip(e, t, n)
1654
+ });
1655
+ if (c && (l = x.buildFragment(e, this[0].ownerDocument, !1, !n && this), r = l.firstChild, 1 === l.childNodes.length && (l = r), r)) {
1656
+ for (a = x.map(Ft(l, "script"), Ht), o = a.length; c > u; u++)
1657
+ i = l, u !== f && (i = x.clone(i, !0, !0), o && x.merge(a, Ft(i, "script"))), t.call(this[u], i, u);
1658
+ if (o)
1659
+ for (s = a[a.length - 1].ownerDocument, x.map(a, qt), u = 0; o > u; u++)
1660
+ i = a[u], kt.test(i.type || "") && !x._data(i, "globalEval") && x.contains(s, i) && (i.src ? x._evalUrl(i.src) : x.globalEval((i.text || i.textContent || i.innerHTML || "").replace(St, "")));
1661
+ l = r = null
1662
+ }
1663
+ return this
1664
+ }});
1665
+ function Lt(e, t) {
1666
+ return x.nodeName(e, "table") && x.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e
1667
+ }
1668
+ function Ht(e) {
1669
+ return e.type = (null !== x.find.attr(e, "type")) + "/" + e.type, e
1670
+ }
1671
+ function qt(e) {
1672
+ var t = Et.exec(e.type);
1673
+ return t ? e.type = t[1] : e.removeAttribute("type"), e
1674
+ }
1675
+ function _t(e, t) {
1676
+ var n, r = 0;
1677
+ for (; null != (n = e[r]); r++)
1678
+ x._data(n, "globalEval", !t || x._data(t[r], "globalEval"))
1679
+ }
1680
+ function Mt(e, t) {
1681
+ if (1 === t.nodeType && x.hasData(e)) {
1682
+ var n, r, i, o = x._data(e), a = x._data(t, o), s = o.events;
1683
+ if (s) {
1684
+ delete a.handle, a.events = {};
1685
+ for (n in s)
1686
+ for (r = 0, i = s[n].length; i > r; r++)
1687
+ x.event.add(t, n, s[n][r])
1688
+ }
1689
+ a.data && (a.data = x.extend({}, a.data))
1690
+ }
1691
+ }
1692
+ function Ot(e, t) {
1693
+ var n, r, i;
1694
+ if (1 === t.nodeType) {
1695
+ if (n = t.nodeName.toLowerCase(), !x.support.noCloneEvent && t[x.expando]) {
1696
+ i = x._data(t);
1697
+ for (r in i.events)
1698
+ x.removeEvent(t, r, i.handle);
1699
+ t.removeAttribute(x.expando)
1700
+ }
1701
+ "script" === n && t.text !== e.text ? (Ht(t).text = e.text, qt(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), x.support.html5Clone && e.innerHTML && !x.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && Ct.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue)
1702
+ }
1703
+ }
1704
+ x.each({appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith"}, function (e, t) {
1705
+ x.fn[e] = function (e) {
1706
+ var n, r = 0, i = [], o = x(e), a = o.length - 1;
1707
+ for (; a >= r; r++)
1708
+ n = r === a ? this : this.clone(!0), x(o[r])[t](n), h.apply(i, n.get());
1709
+ return this.pushStack(i)
1710
+ }
1711
+ });
1712
+ function Ft(e, n) {
1713
+ var r, o, a = 0, s = typeof e.getElementsByTagName !== i ? e.getElementsByTagName(n || "*") : typeof e.querySelectorAll !== i ? e.querySelectorAll(n || "*") : t;
1714
+ if (!s)
1715
+ for (s = [], r = e.childNodes || e; null != (o = r[a]); a++)
1716
+ !n || x.nodeName(o, n) ? s.push(o) : x.merge(s, Ft(o, n));
1717
+ return n === t || n && x.nodeName(e, n) ? x.merge([e], s) : s
1718
+ }
1719
+ function Bt(e) {
1720
+ Ct.test(e.type) && (e.defaultChecked = e.checked)
1721
+ }
1722
+ x.extend({clone: function (e, t, n) {
1723
+ var r, i, o, a, s, l = x.contains(e.ownerDocument, e);
1724
+ if (x.support.html5Clone || x.isXMLDoc(e) || !mt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (Dt.innerHTML = e.outerHTML, Dt.removeChild(o = Dt.firstChild)), !(x.support.noCloneEvent && x.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || x.isXMLDoc(e)))
1725
+ for (r = Ft(o), s = Ft(e), a = 0; null != (i = s[a]); ++a)
1726
+ r[a] && Ot(i, r[a]);
1727
+ if (t)
1728
+ if (n)
1729
+ for (s = s || Ft(e), r = r || Ft(o), a = 0; null != (i = s[a]); a++)
1730
+ Mt(i, r[a]);
1731
+ else
1732
+ Mt(e, o);
1733
+ return r = Ft(o, "script"), r.length > 0 && _t(r, !l && Ft(e, "script")), r = s = i = null, o
1734
+ }, buildFragment: function (e, t, n, r) {
1735
+ var i, o, a, s, l, u, c, p = e.length, f = dt(t), d = [], h = 0;
1736
+ for (; p > h; h++)
1737
+ if (o = e[h], o || 0 === o)
1738
+ if ("object" === x.type(o))
1739
+ x.merge(d, o.nodeType ? [o] : o);
1740
+ else if (wt.test(o)) {
1741
+ s = s || f.appendChild(t.createElement("div")), l = (bt.exec(o) || ["", ""])[1].toLowerCase(), c = At[l] || At._default, s.innerHTML = c[1] + o.replace(vt, "<$1></$2>") + c[2], i = c[0];
1742
+ while (i--)
1743
+ s = s.lastChild;
1744
+ if (!x.support.leadingWhitespace && yt.test(o) && d.push(t.createTextNode(yt.exec(o)[0])), !x.support.tbody) {
1745
+ o = "table" !== l || xt.test(o) ? "<table>" !== c[1] || xt.test(o) ? 0 : s : s.firstChild, i = o && o.childNodes.length;
1746
+ while (i--)
1747
+ x.nodeName(u = o.childNodes[i], "tbody") && !u.childNodes.length && o.removeChild(u)
1748
+ }
1749
+ x.merge(d, s.childNodes), s.textContent = "";
1750
+ while (s.firstChild)
1751
+ s.removeChild(s.firstChild);
1752
+ s = f.lastChild
1753
+ } else
1754
+ d.push(t.createTextNode(o));
1755
+ s && f.removeChild(s), x.support.appendChecked || x.grep(Ft(d, "input"), Bt), h = 0;
1756
+ while (o = d[h++])
1757
+ if ((!r || -1 === x.inArray(o, r)) && (a = x.contains(o.ownerDocument, o), s = Ft(f.appendChild(o), "script"), a && _t(s), n)) {
1758
+ i = 0;
1759
+ while (o = s[i++])
1760
+ kt.test(o.type || "") && n.push(o)
1761
+ }
1762
+ return s = null, f
1763
+ }, cleanData: function (e, t) {
1764
+ var n, r, o, a, s = 0, l = x.expando, u = x.cache, c = x.support.deleteExpando, f = x.event.special;
1765
+ for (; null != (n = e[s]); s++)
1766
+ if ((t || x.acceptData(n)) && (o = n[l], a = o && u[o])) {
1767
+ if (a.events)
1768
+ for (r in a.events)
1769
+ f[r] ? x.event.remove(n, r) : x.removeEvent(n, r, a.handle);
1770
+ u[o] && (delete u[o], c ? delete n[l] : typeof n.removeAttribute !== i ? n.removeAttribute(l) : n[l] = null, p.push(o))
1771
+ }
1772
+ }, _evalUrl: function (e) {
1773
+ return x.ajax({url: e, type: "GET", dataType: "script", async: !1, global: !1, "throws": !0})
1774
+ }}), x.fn.extend({wrapAll: function (e) {
1775
+ if (x.isFunction(e))
1776
+ return this.each(function (t) {
1777
+ x(this).wrapAll(e.call(this, t))
1778
+ });
1779
+ if (this[0]) {
1780
+ var t = x(e, this[0].ownerDocument).eq(0).clone(!0);
1781
+ this[0].parentNode && t.insertBefore(this[0]), t.map(function () {
1782
+ var e = this;
1783
+ while (e.firstChild && 1 === e.firstChild.nodeType)
1784
+ e = e.firstChild;
1785
+ return e
1786
+ }).append(this)
1787
+ }
1788
+ return this
1789
+ }, wrapInner: function (e) {
1790
+ return x.isFunction(e) ? this.each(function (t) {
1791
+ x(this).wrapInner(e.call(this, t))
1792
+ }) : this.each(function () {
1793
+ var t = x(this), n = t.contents();
1794
+ n.length ? n.wrapAll(e) : t.append(e)
1795
+ })
1796
+ }, wrap: function (e) {
1797
+ var t = x.isFunction(e);
1798
+ return this.each(function (n) {
1799
+ x(this).wrapAll(t ? e.call(this, n) : e)
1800
+ })
1801
+ }, unwrap: function () {
1802
+ return this.parent().each(function () {
1803
+ x.nodeName(this, "body") || x(this).replaceWith(this.childNodes)
1804
+ }).end()
1805
+ }});
1806
+ var Pt, Rt, Wt, $t = /alpha\([^)]*\)/i, It = /opacity\s*=\s*([^)]*)/, zt = /^(top|right|bottom|left)$/, Xt = /^(none|table(?!-c[ea]).+)/, Ut = /^margin/, Vt = RegExp("^(" + w + ")(.*)$", "i"), Yt = RegExp("^(" + w + ")(?!px)[a-z%]+$", "i"), Jt = RegExp("^([+-])=(" + w + ")", "i"), Gt = {BODY: "block"}, Qt = {position: "absolute", visibility: "hidden", display: "block"}, Kt = {letterSpacing: 0, fontWeight: 400}, Zt = ["Top", "Right", "Bottom", "Left"], en = ["Webkit", "O", "Moz", "ms"];
1807
+ function tn(e, t) {
1808
+ if (t in e)
1809
+ return t;
1810
+ var n = t.charAt(0).toUpperCase() + t.slice(1), r = t, i = en.length;
1811
+ while (i--)
1812
+ if (t = en[i] + n, t in e)
1813
+ return t;
1814
+ return r
1815
+ }
1816
+ function nn(e, t) {
1817
+ return e = t || e, "none" === x.css(e, "display") || !x.contains(e.ownerDocument, e)
1818
+ }
1819
+ function rn(e, t) {
1820
+ var n, r, i, o = [], a = 0, s = e.length;
1821
+ for (; s > a; a++)
1822
+ r = e[a], r.style && (o[a] = x._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && nn(r) && (o[a] = x._data(r, "olddisplay", ln(r.nodeName)))) : o[a] || (i = nn(r), (n && "none" !== n || !i) && x._data(r, "olddisplay", i ? n : x.css(r, "display"))));
1823
+ for (a = 0; s > a; a++)
1824
+ r = e[a], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
1825
+ return e
1826
+ }
1827
+ x.fn.extend({css: function (e, n) {
1828
+ return x.access(this, function (e, n, r) {
1829
+ var i, o, a = {}, s = 0;
1830
+ if (x.isArray(n)) {
1831
+ for (o = Rt(e), i = n.length; i > s; s++)
1832
+ a[n[s]] = x.css(e, n[s], !1, o);
1833
+ return a
1834
+ }
1835
+ return r !== t ? x.style(e, n, r) : x.css(e, n)
1836
+ }, e, n, arguments.length > 1)
1837
+ }, show: function () {
1838
+ return rn(this, !0)
1839
+ }, hide: function () {
1840
+ return rn(this)
1841
+ }, toggle: function (e) {
1842
+ var t = "boolean" == typeof e;
1843
+ return this.each(function () {
1844
+ (t ? e : nn(this)) ? x(this).show() : x(this).hide()
1845
+ })
1846
+ }}), x.extend({cssHooks: {opacity: {get: function (e, t) {
1847
+ if (t) {
1848
+ var n = Wt(e, "opacity");
1849
+ return"" === n ? "1" : n
1850
+ }
1851
+ }}}, cssNumber: {columnCount: !0, fillOpacity: !0, fontWeight: !0, lineHeight: !0, opacity: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0}, cssProps: {"float": x.support.cssFloat ? "cssFloat" : "styleFloat"}, style: function (e, n, r, i) {
1852
+ if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
1853
+ var o, a, s, l = x.camelCase(n), u = e.style;
1854
+ if (n = x.cssProps[l] || (x.cssProps[l] = tn(u, l)), s = x.cssHooks[n] || x.cssHooks[l], r === t)
1855
+ return s && "get"in s && (o = s.get(e, !1, i)) !== t ? o : u[n];
1856
+ if (a = typeof r, "string" === a && (o = Jt.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(x.css(e, n)), a = "number"), !(null == r || "number" === a && isNaN(r) || ("number" !== a || x.cssNumber[l] || (r += "px"), x.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (u[n] = "inherit"), s && "set"in s && (r = s.set(e, r, i)) === t)))
1857
+ try {
1858
+ u[n] = r
1859
+ } catch (c) {
1860
+ }
1861
+ }
1862
+ }, css: function (e, n, r, i) {
1863
+ var o, a, s, l = x.camelCase(n);
1864
+ return n = x.cssProps[l] || (x.cssProps[l] = tn(e.style, l)), s = x.cssHooks[n] || x.cssHooks[l], s && "get"in s && (a = s.get(e, !0, r)), a === t && (a = Wt(e, n, i)), "normal" === a && n in Kt && (a = Kt[n]), "" === r || r ? (o = parseFloat(a), r === !0 || x.isNumeric(o) ? o || 0 : a) : a
1865
+ }}), e.getComputedStyle ? (Rt = function (t) {
1866
+ return e.getComputedStyle(t, null)
1867
+ }, Wt = function (e, n, r) {
1868
+ var i, o, a, s = r || Rt(e), l = s ? s.getPropertyValue(n) || s[n] : t, u = e.style;
1869
+ return s && ("" !== l || x.contains(e.ownerDocument, e) || (l = x.style(e, n)), Yt.test(l) && Ut.test(n) && (i = u.width, o = u.minWidth, a = u.maxWidth, u.minWidth = u.maxWidth = u.width = l, l = s.width, u.width = i, u.minWidth = o, u.maxWidth = a)), l
1870
+ }) : a.documentElement.currentStyle && (Rt = function (e) {
1871
+ return e.currentStyle
1872
+ }, Wt = function (e, n, r) {
1873
+ var i, o, a, s = r || Rt(e), l = s ? s[n] : t, u = e.style;
1874
+ return null == l && u && u[n] && (l = u[n]), Yt.test(l) && !zt.test(n) && (i = u.left, o = e.runtimeStyle, a = o && o.left, a && (o.left = e.currentStyle.left), u.left = "fontSize" === n ? "1em" : l, l = u.pixelLeft + "px", u.left = i, a && (o.left = a)), "" === l ? "auto" : l
1875
+ });
1876
+ function on(e, t, n) {
1877
+ var r = Vt.exec(t);
1878
+ return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
1879
+ }
1880
+ function an(e, t, n, r, i) {
1881
+ var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0, a = 0;
1882
+ for (; 4 > o; o += 2)
1883
+ "margin" === n && (a += x.css(e, n + Zt[o], !0, i)), r ? ("content" === n && (a -= x.css(e, "padding" + Zt[o], !0, i)), "margin" !== n && (a -= x.css(e, "border" + Zt[o] + "Width", !0, i))) : (a += x.css(e, "padding" + Zt[o], !0, i), "padding" !== n && (a += x.css(e, "border" + Zt[o] + "Width", !0, i)));
1884
+ return a
1885
+ }
1886
+ function sn(e, t, n) {
1887
+ var r = !0, i = "width" === t ? e.offsetWidth : e.offsetHeight, o = Rt(e), a = x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, o);
1888
+ if (0 >= i || null == i) {
1889
+ if (i = Wt(e, t, o), (0 > i || null == i) && (i = e.style[t]), Yt.test(i))
1890
+ return i;
1891
+ r = a && (x.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0
1892
+ }
1893
+ return i + an(e, t, n || (a ? "border" : "content"), r, o) + "px"
1894
+ }
1895
+ function ln(e) {
1896
+ var t = a, n = Gt[e];
1897
+ return n || (n = un(e, t), "none" !== n && n || (Pt = (Pt || x("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (Pt[0].contentWindow || Pt[0].contentDocument).document, t.write("<!doctype html><html><body>"), t.close(), n = un(e, t), Pt.detach()), Gt[e] = n), n
1898
+ }
1899
+ function un(e, t) {
1900
+ var n = x(t.createElement(e)).appendTo(t.body), r = x.css(n[0], "display");
1901
+ return n.remove(), r
1902
+ }
1903
+ x.each(["height", "width"], function (e, n) {
1904
+ x.cssHooks[n] = {get: function (e, r, i) {
1905
+ return r ? 0 === e.offsetWidth && Xt.test(x.css(e, "display")) ? x.swap(e, Qt, function () {
1906
+ return sn(e, n, i)
1907
+ }) : sn(e, n, i) : t
1908
+ }, set: function (e, t, r) {
1909
+ var i = r && Rt(e);
1910
+ return on(e, t, r ? an(e, n, r, x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, i), i) : 0)
1911
+ }}
1912
+ }), x.support.opacity || (x.cssHooks.opacity = {get: function (e, t) {
1913
+ return It.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""
1914
+ }, set: function (e, t) {
1915
+ var n = e.style, r = e.currentStyle, i = x.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "", o = r && r.filter || n.filter || "";
1916
+ n.zoom = 1, (t >= 1 || "" === t) && "" === x.trim(o.replace($t, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = $t.test(o) ? o.replace($t, i) : o + " " + i)
1917
+ }}), x(function () {
1918
+ x.support.reliableMarginRight || (x.cssHooks.marginRight = {get: function (e, n) {
1919
+ return n ? x.swap(e, {display: "inline-block"}, Wt, [e, "marginRight"]) : t
1920
+ }}), !x.support.pixelPosition && x.fn.position && x.each(["top", "left"], function (e, n) {
1921
+ x.cssHooks[n] = {get: function (e, r) {
1922
+ return r ? (r = Wt(e, n), Yt.test(r) ? x(e).position()[n] + "px" : r) : t
1923
+ }}
1924
+ })
1925
+ }), x.expr && x.expr.filters && (x.expr.filters.hidden = function (e) {
1926
+ return 0 >= e.offsetWidth && 0 >= e.offsetHeight || !x.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || x.css(e, "display"))
1927
+ }, x.expr.filters.visible = function (e) {
1928
+ return!x.expr.filters.hidden(e)
1929
+ }), x.each({margin: "", padding: "", border: "Width"}, function (e, t) {
1930
+ x.cssHooks[e + t] = {expand: function (n) {
1931
+ var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n];
1932
+ for (; 4 > r; r++)
1933
+ i[e + Zt[r] + t] = o[r] || o[r - 2] || o[0];
1934
+ return i
1935
+ }}, Ut.test(e) || (x.cssHooks[e + t].set = on)
1936
+ });
1937
+ var cn = /%20/g, pn = /\[\]$/, fn = /\r?\n/g, dn = /^(?:submit|button|image|reset|file)$/i, hn = /^(?:input|select|textarea|keygen)/i;
1938
+ x.fn.extend({serialize: function () {
1939
+ return x.param(this.serializeArray())
1940
+ }, serializeArray: function () {
1941
+ return this.map(function () {
1942
+ var e = x.prop(this, "elements");
1943
+ return e ? x.makeArray(e) : this
1944
+ }).filter(function () {
1945
+ var e = this.type;
1946
+ return this.name && !x(this).is(":disabled") && hn.test(this.nodeName) && !dn.test(e) && (this.checked || !Ct.test(e))
1947
+ }).map(function (e, t) {
1948
+ var n = x(this).val();
1949
+ return null == n ? null : x.isArray(n) ? x.map(n, function (e) {
1950
+ return{name: t.name, value: e.replace(fn, "\r\n")}
1951
+ }) : {name: t.name, value: n.replace(fn, "\r\n")}
1952
+ }).get()
1953
+ }}), x.param = function (e, n) {
1954
+ var r, i = [], o = function (e, t) {
1955
+ t = x.isFunction(t) ? t() : null == t ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
1956
+ };
1957
+ if (n === t && (n = x.ajaxSettings && x.ajaxSettings.traditional), x.isArray(e) || e.jquery && !x.isPlainObject(e))
1958
+ x.each(e, function () {
1959
+ o(this.name, this.value)
1960
+ });
1961
+ else
1962
+ for (r in e)
1963
+ gn(r, e[r], n, o);
1964
+ return i.join("&").replace(cn, "+")
1965
+ };
1966
+ function gn(e, t, n, r) {
1967
+ var i;
1968
+ if (x.isArray(t))
1969
+ x.each(t, function (t, i) {
1970
+ n || pn.test(e) ? r(e, i) : gn(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
1971
+ });
1972
+ else if (n || "object" !== x.type(t))
1973
+ r(e, t);
1974
+ else
1975
+ for (i in t)
1976
+ gn(e + "[" + i + "]", t[i], n, r)
1977
+ }
1978
+ x.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 (e, t) {
1979
+ x.fn[t] = function (e, n) {
1980
+ return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
1981
+ }
1982
+ }), x.fn.extend({hover: function (e, t) {
1983
+ return this.mouseenter(e).mouseleave(t || e)
1984
+ }, bind: function (e, t, n) {
1985
+ return this.on(e, null, t, n)
1986
+ }, unbind: function (e, t) {
1987
+ return this.off(e, null, t)
1988
+ }, delegate: function (e, t, n, r) {
1989
+ return this.on(t, e, n, r)
1990
+ }, undelegate: function (e, t, n) {
1991
+ return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
1992
+ }});
1993
+ var mn, yn, vn = x.now(), bn = /\?/, xn = /#.*$/, wn = /([?&])_=[^&]*/, Tn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, Cn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Nn = /^(?:GET|HEAD)$/, kn = /^\/\//, En = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, Sn = x.fn.load, An = {}, jn = {}, Dn = "*/".concat("*");
1994
+ try {
1995
+ yn = o.href
1996
+ } catch (Ln) {
1997
+ yn = a.createElement("a"), yn.href = "", yn = yn.href
1998
+ }
1999
+ mn = En.exec(yn.toLowerCase()) || [];
2000
+ function Hn(e) {
2001
+ return function (t, n) {
2002
+ "string" != typeof t && (n = t, t = "*");
2003
+ var r, i = 0, o = t.toLowerCase().match(T) || [];
2004
+ if (x.isFunction(n))
2005
+ while (r = o[i++])
2006
+ "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
2007
+ }
2008
+ }
2009
+ function qn(e, n, r, i) {
2010
+ var o = {}, a = e === jn;
2011
+ function s(l) {
2012
+ var u;
2013
+ return o[l] = !0, x.each(e[l] || [], function (e, l) {
2014
+ var c = l(n, r, i);
2015
+ return"string" != typeof c || a || o[c] ? a ? !(u = c) : t : (n.dataTypes.unshift(c), s(c), !1)
2016
+ }), u
2017
+ }
2018
+ return s(n.dataTypes[0]) || !o["*"] && s("*")
2019
+ }
2020
+ function _n(e, n) {
2021
+ var r, i, o = x.ajaxSettings.flatOptions || {};
2022
+ for (i in n)
2023
+ n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
2024
+ return r && x.extend(!0, e, r), e
2025
+ }
2026
+ x.fn.load = function (e, n, r) {
2027
+ if ("string" != typeof e && Sn)
2028
+ return Sn.apply(this, arguments);
2029
+ var i, o, a, s = this, l = e.indexOf(" ");
2030
+ return l >= 0 && (i = e.slice(l, e.length), e = e.slice(0, l)), x.isFunction(n) ? (r = n, n = t) : n && "object" == typeof n && (a = "POST"), s.length > 0 && x.ajax({url: e, type: a, dataType: "html", data: n}).done(function (e) {
2031
+ o = arguments, s.html(i ? x("<div>").append(x.parseHTML(e)).find(i) : e)
2032
+ }).complete(r && function (e, t) {
2033
+ s.each(r, o || [e.responseText, t, e])
2034
+ }), this
2035
+ }, x.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (e, t) {
2036
+ x.fn[t] = function (e) {
2037
+ return this.on(t, e)
2038
+ }
2039
+ }), x.extend({active: 0, lastModified: {}, etag: {}, ajaxSettings: {url: yn, type: "GET", isLocal: Cn.test(mn[1]), global: !0, processData: !0, async: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", accepts: {"*": Dn, 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": x.parseJSON, "text xml": x.parseXML}, flatOptions: {url: !0, context: !0}}, ajaxSetup: function (e, t) {
2040
+ return t ? _n(_n(e, x.ajaxSettings), t) : _n(x.ajaxSettings, e)
2041
+ }, ajaxPrefilter: Hn(An), ajaxTransport: Hn(jn), ajax: function (e, n) {
2042
+ "object" == typeof e && (n = e, e = t), n = n || {};
2043
+ var r, i, o, a, s, l, u, c, p = x.ajaxSetup({}, n), f = p.context || p, d = p.context && (f.nodeType || f.jquery) ? x(f) : x.event, h = x.Deferred(), g = x.Callbacks("once memory"), m = p.statusCode || {}, y = {}, v = {}, b = 0, w = "canceled", C = {readyState: 0, getResponseHeader: function (e) {
2044
+ var t;
2045
+ if (2 === b) {
2046
+ if (!c) {
2047
+ c = {};
2048
+ while (t = Tn.exec(a))
2049
+ c[t[1].toLowerCase()] = t[2]
2050
+ }
2051
+ t = c[e.toLowerCase()]
2052
+ }
2053
+ return null == t ? null : t
2054
+ }, getAllResponseHeaders: function () {
2055
+ return 2 === b ? a : null
2056
+ }, setRequestHeader: function (e, t) {
2057
+ var n = e.toLowerCase();
2058
+ return b || (e = v[n] = v[n] || e, y[e] = t), this
2059
+ }, overrideMimeType: function (e) {
2060
+ return b || (p.mimeType = e), this
2061
+ }, statusCode: function (e) {
2062
+ var t;
2063
+ if (e)
2064
+ if (2 > b)
2065
+ for (t in e)
2066
+ m[t] = [m[t], e[t]];
2067
+ else
2068
+ C.always(e[C.status]);
2069
+ return this
2070
+ }, abort: function (e) {
2071
+ var t = e || w;
2072
+ return u && u.abort(t), k(0, t), this
2073
+ }};
2074
+ if (h.promise(C).complete = g.add, C.success = C.done, C.error = C.fail, p.url = ((e || p.url || yn) + "").replace(xn, "").replace(kn, mn[1] + "//"), p.type = n.method || n.type || p.method || p.type, p.dataTypes = x.trim(p.dataType || "*").toLowerCase().match(T) || [""], null == p.crossDomain && (r = En.exec(p.url.toLowerCase()), p.crossDomain = !(!r || r[1] === mn[1] && r[2] === mn[2] && (r[3] || ("http:" === r[1] ? "80" : "443")) === (mn[3] || ("http:" === mn[1] ? "80" : "443")))), p.data && p.processData && "string" != typeof p.data && (p.data = x.param(p.data, p.traditional)), qn(An, p, n, C), 2 === b)
2075
+ return C;
2076
+ l = p.global, l && 0 === x.active++ && x.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !Nn.test(p.type), o = p.url, p.hasContent || (p.data && (o = p.url += (bn.test(o) ? "&" : "?") + p.data, delete p.data), p.cache === !1 && (p.url = wn.test(o) ? o.replace(wn, "$1_=" + vn++) : o + (bn.test(o) ? "&" : "?") + "_=" + vn++)), p.ifModified && (x.lastModified[o] && C.setRequestHeader("If-Modified-Since", x.lastModified[o]), x.etag[o] && C.setRequestHeader("If-None-Match", x.etag[o])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && C.setRequestHeader("Content-Type", p.contentType), C.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Dn + "; q=0.01" : "") : p.accepts["*"]);
2077
+ for (i in p.headers)
2078
+ C.setRequestHeader(i, p.headers[i]);
2079
+ if (p.beforeSend && (p.beforeSend.call(f, C, p) === !1 || 2 === b))
2080
+ return C.abort();
2081
+ w = "abort";
2082
+ for (i in{success:1, error:1, complete:1})
2083
+ C[i](p[i]);
2084
+ if (u = qn(jn, p, n, C)) {
2085
+ C.readyState = 1, l && d.trigger("ajaxSend", [C, p]), p.async && p.timeout > 0 && (s = setTimeout(function () {
2086
+ C.abort("timeout")
2087
+ }, p.timeout));
2088
+ try {
2089
+ b = 1, u.send(y, k)
2090
+ } catch (N) {
2091
+ if (!(2 > b))
2092
+ throw N;
2093
+ k(-1, N)
2094
+ }
2095
+ } else
2096
+ k(-1, "No Transport");
2097
+ function k(e, n, r, i) {
2098
+ var c, y, v, w, T, N = n;
2099
+ 2 !== b && (b = 2, s && clearTimeout(s), u = t, a = i || "", C.readyState = e > 0 ? 4 : 0, c = e >= 200 && 300 > e || 304 === e, r && (w = Mn(p, C, r)), w = On(p, w, C, c), c ? (p.ifModified && (T = C.getResponseHeader("Last-Modified"), T && (x.lastModified[o] = T), T = C.getResponseHeader("etag"), T && (x.etag[o] = T)), 204 === e || "HEAD" === p.type ? N = "nocontent" : 304 === e ? N = "notmodified" : (N = w.state, y = w.data, v = w.error, c = !v)) : (v = N, (e || !N) && (N = "error", 0 > e && (e = 0))), C.status = e, C.statusText = (n || N) + "", c ? h.resolveWith(f, [y, N, C]) : h.rejectWith(f, [C, N, v]), C.statusCode(m), m = t, l && d.trigger(c ? "ajaxSuccess" : "ajaxError", [C, p, c ? y : v]), g.fireWith(f, [C, N]), l && (d.trigger("ajaxComplete", [C, p]), --x.active || x.event.trigger("ajaxStop")))
2100
+ }
2101
+ return C
2102
+ }, getJSON: function (e, t, n) {
2103
+ return x.get(e, t, n, "json")
2104
+ }, getScript: function (e, n) {
2105
+ return x.get(e, t, n, "script")
2106
+ }}), x.each(["get", "post"], function (e, n) {
2107
+ x[n] = function (e, r, i, o) {
2108
+ return x.isFunction(r) && (o = o || i, i = r, r = t), x.ajax({url: e, type: n, dataType: o, data: r, success: i})
2109
+ }
2110
+ });
2111
+ function Mn(e, n, r) {
2112
+ var i, o, a, s, l = e.contents, u = e.dataTypes;
2113
+ while ("*" === u[0])
2114
+ u.shift(), o === t && (o = e.mimeType || n.getResponseHeader("Content-Type"));
2115
+ if (o)
2116
+ for (s in l)
2117
+ if (l[s] && l[s].test(o)) {
2118
+ u.unshift(s);
2119
+ break
2120
+ }
2121
+ if (u[0]in r)
2122
+ a = u[0];
2123
+ else {
2124
+ for (s in r) {
2125
+ if (!u[0] || e.converters[s + " " + u[0]]) {
2126
+ a = s;
2127
+ break
2128
+ }
2129
+ i || (i = s)
2130
+ }
2131
+ a = a || i
2132
+ }
2133
+ return a ? (a !== u[0] && u.unshift(a), r[a]) : t
2134
+ }
2135
+ function On(e, t, n, r) {
2136
+ var i, o, a, s, l, u = {}, c = e.dataTypes.slice();
2137
+ if (c[1])
2138
+ for (a in e.converters)
2139
+ u[a.toLowerCase()] = e.converters[a];
2140
+ o = c.shift();
2141
+ while (o)
2142
+ if (e.responseFields[o] && (n[e.responseFields[o]] = t), !l && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), l = o, o = c.shift())
2143
+ if ("*" === o)
2144
+ o = l;
2145
+ else if ("*" !== l && l !== o) {
2146
+ if (a = u[l + " " + o] || u["* " + o], !a)
2147
+ for (i in u)
2148
+ if (s = i.split(" "), s[1] === o && (a = u[l + " " + s[0]] || u["* " + s[0]])) {
2149
+ a === !0 ? a = u[i] : u[i] !== !0 && (o = s[0], c.unshift(s[1]));
2150
+ break
2151
+ }
2152
+ if (a !== !0)
2153
+ if (a && e["throws"])
2154
+ t = a(t);
2155
+ else
2156
+ try {
2157
+ t = a(t)
2158
+ } catch (p) {
2159
+ return{state: "parsererror", error: a ? p : "No conversion from " + l + " to " + o}
2160
+ }
2161
+ }
2162
+ return{state: "success", data: t}
2163
+ }
2164
+ x.ajaxSetup({accepts: {script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"}, contents: {script: /(?:java|ecma)script/}, converters: {"text script": function (e) {
2165
+ return x.globalEval(e), e
2166
+ }}}), x.ajaxPrefilter("script", function (e) {
2167
+ e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1)
2168
+ }), x.ajaxTransport("script", function (e) {
2169
+ if (e.crossDomain) {
2170
+ var n, r = a.head || x("head")[0] || a.documentElement;
2171
+ return{send: function (t, i) {
2172
+ n = a.createElement("script"), n.async = !0, e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function (e, t) {
2173
+ (t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n), n = null, t || i(200, "success"))
2174
+ }, r.insertBefore(n, r.firstChild)
2175
+ }, abort: function () {
2176
+ n && n.onload(t, !0)
2177
+ }}
2178
+ }
2179
+ });
2180
+ var Fn = [], Bn = /(=)\?(?=&|$)|\?\?/;
2181
+ x.ajaxSetup({jsonp: "callback", jsonpCallback: function () {
2182
+ var e = Fn.pop() || x.expando + "_" + vn++;
2183
+ return this[e] = !0, e
2184
+ }}), x.ajaxPrefilter("json jsonp", function (n, r, i) {
2185
+ var o, a, s, l = n.jsonp !== !1 && (Bn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Bn.test(n.data) && "data");
2186
+ return l || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = x.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, l ? n[l] = n[l].replace(Bn, "$1" + o) : n.jsonp !== !1 && (n.url += (bn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o), n.converters["script json"] = function () {
2187
+ return s || x.error(o + " was not called"), s[0]
2188
+ }, n.dataTypes[0] = "json", a = e[o], e[o] = function () {
2189
+ s = arguments
2190
+ }, i.always(function () {
2191
+ e[o] = a, n[o] && (n.jsonpCallback = r.jsonpCallback, Fn.push(o)), s && x.isFunction(a) && a(s[0]), s = a = t
2192
+ }), "script") : t
2193
+ });
2194
+ var Pn, Rn, Wn = 0, $n = e.ActiveXObject && function () {
2195
+ var e;
2196
+ for (e in Pn)
2197
+ Pn[e](t, !0)
2198
+ };
2199
+ function In() {
2200
+ try {
2201
+ return new e.XMLHttpRequest
2202
+ } catch (t) {
2203
+ }
2204
+ }
2205
+ function zn() {
2206
+ try {
2207
+ return new e.ActiveXObject("Microsoft.XMLHTTP")
2208
+ } catch (t) {
2209
+ }
2210
+ }
2211
+ x.ajaxSettings.xhr = e.ActiveXObject ? function () {
2212
+ return!this.isLocal && In() || zn()
2213
+ } : In, Rn = x.ajaxSettings.xhr(), x.support.cors = !!Rn && "withCredentials"in Rn, Rn = x.support.ajax = !!Rn, Rn && x.ajaxTransport(function (n) {
2214
+ if (!n.crossDomain || x.support.cors) {
2215
+ var r;
2216
+ return{send: function (i, o) {
2217
+ var a, s, l = n.xhr();
2218
+ if (n.username ? l.open(n.type, n.url, n.async, n.username, n.password) : l.open(n.type, n.url, n.async), n.xhrFields)
2219
+ for (s in n.xhrFields)
2220
+ l[s] = n.xhrFields[s];
2221
+ n.mimeType && l.overrideMimeType && l.overrideMimeType(n.mimeType), n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
2222
+ try {
2223
+ for (s in i)
2224
+ l.setRequestHeader(s, i[s])
2225
+ } catch (u) {
2226
+ }
2227
+ l.send(n.hasContent && n.data || null), r = function (e, i) {
2228
+ var s, u, c, p;
2229
+ try {
2230
+ if (r && (i || 4 === l.readyState))
2231
+ if (r = t, a && (l.onreadystatechange = x.noop, $n && delete Pn[a]), i)
2232
+ 4 !== l.readyState && l.abort();
2233
+ else {
2234
+ p = {}, s = l.status, u = l.getAllResponseHeaders(), "string" == typeof l.responseText && (p.text = l.responseText);
2235
+ try {
2236
+ c = l.statusText
2237
+ } catch (f) {
2238
+ c = ""
2239
+ }
2240
+ s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = p.text ? 200 : 404
2241
+ }
2242
+ } catch (d) {
2243
+ i || o(-1, d)
2244
+ }
2245
+ p && o(s, c, p, u)
2246
+ }, n.async ? 4 === l.readyState ? setTimeout(r) : (a = ++Wn, $n && (Pn || (Pn = {}, x(e).unload($n)), Pn[a] = r), l.onreadystatechange = r) : r()
2247
+ }, abort: function () {
2248
+ r && r(t, !0)
2249
+ }}
2250
+ }
2251
+ });
2252
+ var Xn, Un, Vn = /^(?:toggle|show|hide)$/, Yn = RegExp("^(?:([+-])=|)(" + w + ")([a-z%]*)$", "i"), Jn = /queueHooks$/, Gn = [nr], Qn = {"*": [function (e, t) {
2253
+ var n = this.createTween(e, t), r = n.cur(), i = Yn.exec(t), o = i && i[3] || (x.cssNumber[e] ? "" : "px"), a = (x.cssNumber[e] || "px" !== o && +r) && Yn.exec(x.css(n.elem, e)), s = 1, l = 20;
2254
+ if (a && a[3] !== o) {
2255
+ o = o || a[3], i = i || [], a = +r || 1;
2256
+ do
2257
+ s = s || ".5", a /= s, x.style(n.elem, e, a + o);
2258
+ while (s !== (s = n.cur() / r) && 1 !== s && --l)
2259
+ }
2260
+ return i && (a = n.start = +a || +r || 0, n.unit = o, n.end = i[1] ? a + (i[1] + 1) * i[2] : +i[2]), n
2261
+ }]};
2262
+ function Kn() {
2263
+ return setTimeout(function () {
2264
+ Xn = t
2265
+ }), Xn = x.now()
2266
+ }
2267
+ function Zn(e, t, n) {
2268
+ var r, i = (Qn[t] || []).concat(Qn["*"]), o = 0, a = i.length;
2269
+ for (; a > o; o++)
2270
+ if (r = i[o].call(n, t, e))
2271
+ return r
2272
+ }
2273
+ function er(e, t, n) {
2274
+ var r, i, o = 0, a = Gn.length, s = x.Deferred().always(function () {
2275
+ delete l.elem
2276
+ }), l = function () {
2277
+ if (i)
2278
+ return!1;
2279
+ var t = Xn || Kn(), n = Math.max(0, u.startTime + u.duration - t), r = n / u.duration || 0, o = 1 - r, a = 0, l = u.tweens.length;
2280
+ for (; l > a; a++)
2281
+ u.tweens[a].run(o);
2282
+ return s.notifyWith(e, [u, o, n]), 1 > o && l ? n : (s.resolveWith(e, [u]), !1)
2283
+ }, u = s.promise({elem: e, props: x.extend({}, t), opts: x.extend(!0, {specialEasing: {}}, n), originalProperties: t, originalOptions: n, startTime: Xn || Kn(), duration: n.duration, tweens: [], createTween: function (t, n) {
2284
+ var r = x.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing);
2285
+ return u.tweens.push(r), r
2286
+ }, stop: function (t) {
2287
+ var n = 0, r = t ? u.tweens.length : 0;
2288
+ if (i)
2289
+ return this;
2290
+ for (i = !0; r > n; n++)
2291
+ u.tweens[n].run(1);
2292
+ return t ? s.resolveWith(e, [u, t]) : s.rejectWith(e, [u, t]), this
2293
+ }}), c = u.props;
2294
+ for (tr(c, u.opts.specialEasing); a > o; o++)
2295
+ if (r = Gn[o].call(u, e, c, u.opts))
2296
+ return r;
2297
+ return x.map(c, Zn, u), x.isFunction(u.opts.start) && u.opts.start.call(e, u), x.fx.timer(x.extend(l, {elem: e, anim: u, queue: u.opts.queue})), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always)
2298
+ }
2299
+ function tr(e, t) {
2300
+ var n, r, i, o, a;
2301
+ for (n in e)
2302
+ if (r = x.camelCase(n), i = t[r], o = e[n], x.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), a = x.cssHooks[r], a && "expand"in a) {
2303
+ o = a.expand(o), delete e[r];
2304
+ for (n in o)
2305
+ n in e || (e[n] = o[n], t[n] = i)
2306
+ } else
2307
+ t[r] = i
2308
+ }
2309
+ x.Animation = x.extend(er, {tweener: function (e, t) {
2310
+ x.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" ");
2311
+ var n, r = 0, i = e.length;
2312
+ for (; i > r; r++)
2313
+ n = e[r], Qn[n] = Qn[n] || [], Qn[n].unshift(t)
2314
+ }, prefilter: function (e, t) {
2315
+ t ? Gn.unshift(e) : Gn.push(e)
2316
+ }});
2317
+ function nr(e, t, n) {
2318
+ var r, i, o, a, s, l, u = this, c = {}, p = e.style, f = e.nodeType && nn(e), d = x._data(e, "fxshow");
2319
+ n.queue || (s = x._queueHooks(e, "fx"), null == s.unqueued && (s.unqueued = 0, l = s.empty.fire, s.empty.fire = function () {
2320
+ s.unqueued || l()
2321
+ }), s.unqueued++, u.always(function () {
2322
+ u.always(function () {
2323
+ s.unqueued--, x.queue(e, "fx").length || s.empty.fire()
2324
+ })
2325
+ })), 1 === e.nodeType && ("height"in t || "width"in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], "inline" === x.css(e, "display") && "none" === x.css(e, "float") && (x.support.inlineBlockNeedsLayout && "inline" !== ln(e.nodeName) ? p.zoom = 1 : p.display = "inline-block")), n.overflow && (p.overflow = "hidden", x.support.shrinkWrapBlocks || u.always(function () {
2326
+ p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2]
2327
+ }));
2328
+ for (r in t)
2329
+ if (i = t[r], Vn.exec(i)) {
2330
+ if (delete t[r], o = o || "toggle" === i, i === (f ? "hide" : "show"))
2331
+ continue;
2332
+ c[r] = d && d[r] || x.style(e, r)
2333
+ }
2334
+ if (!x.isEmptyObject(c)) {
2335
+ d ? "hidden"in d && (f = d.hidden) : d = x._data(e, "fxshow", {}), o && (d.hidden = !f), f ? x(e).show() : u.done(function () {
2336
+ x(e).hide()
2337
+ }), u.done(function () {
2338
+ var t;
2339
+ x._removeData(e, "fxshow");
2340
+ for (t in c)
2341
+ x.style(e, t, c[t])
2342
+ });
2343
+ for (r in c)
2344
+ a = Zn(f ? d[r] : 0, r, u), r in d || (d[r] = a.start, f && (a.end = a.start, a.start = "width" === r || "height" === r ? 1 : 0))
2345
+ }
2346
+ }
2347
+ function rr(e, t, n, r, i) {
2348
+ return new rr.prototype.init(e, t, n, r, i)
2349
+ }
2350
+ x.Tween = rr, rr.prototype = {constructor: rr, init: function (e, t, n, r, i, o) {
2351
+ this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (x.cssNumber[n] ? "" : "px")
2352
+ }, cur: function () {
2353
+ var e = rr.propHooks[this.prop];
2354
+ return e && e.get ? e.get(this) : rr.propHooks._default.get(this)
2355
+ }, run: function (e) {
2356
+ var t, n = rr.propHooks[this.prop];
2357
+ return this.pos = t = this.options.duration ? x.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : rr.propHooks._default.set(this), this
2358
+ }}, rr.prototype.init.prototype = rr.prototype, rr.propHooks = {_default: {get: function (e) {
2359
+ var t;
2360
+ return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = x.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop]
2361
+ }, set: function (e) {
2362
+ x.fx.step[e.prop] ? x.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[x.cssProps[e.prop]] || x.cssHooks[e.prop]) ? x.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
2363
+ }}}, rr.propHooks.scrollTop = rr.propHooks.scrollLeft = {set: function (e) {
2364
+ e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
2365
+ }}, x.each(["toggle", "show", "hide"], function (e, t) {
2366
+ var n = x.fn[t];
2367
+ x.fn[t] = function (e, r, i) {
2368
+ return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ir(t, !0), e, r, i)
2369
+ }
2370
+ }), x.fn.extend({fadeTo: function (e, t, n, r) {
2371
+ return this.filter(nn).css("opacity", 0).show().end().animate({opacity: t}, e, n, r)
2372
+ }, animate: function (e, t, n, r) {
2373
+ var i = x.isEmptyObject(e), o = x.speed(t, n, r), a = function () {
2374
+ var t = er(this, x.extend({}, e), o);
2375
+ (i || x._data(this, "finish")) && t.stop(!0)
2376
+ };
2377
+ return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
2378
+ }, stop: function (e, n, r) {
2379
+ var i = function (e) {
2380
+ var t = e.stop;
2381
+ delete e.stop, t(r)
2382
+ };
2383
+ return"string" != typeof e && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function () {
2384
+ var t = !0, n = null != e && e + "queueHooks", o = x.timers, a = x._data(this);
2385
+ if (n)
2386
+ a[n] && a[n].stop && i(a[n]);
2387
+ else
2388
+ for (n in a)
2389
+ a[n] && a[n].stop && Jn.test(n) && i(a[n]);
2390
+ for (n = o.length; n--; )
2391
+ o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r), t = !1, o.splice(n, 1));
2392
+ (t || !r) && x.dequeue(this, e)
2393
+ })
2394
+ }, finish: function (e) {
2395
+ return e !== !1 && (e = e || "fx"), this.each(function () {
2396
+ var t, n = x._data(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = x.timers, a = r ? r.length : 0;
2397
+ for (n.finish = !0, x.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--; )
2398
+ o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
2399
+ for (t = 0; a > t; t++)
2400
+ r[t] && r[t].finish && r[t].finish.call(this);
2401
+ delete n.finish
2402
+ })
2403
+ }});
2404
+ function ir(e, t) {
2405
+ var n, r = {height: e}, i = 0;
2406
+ for (t = t?1:0; 4 > i; i += 2 - t)
2407
+ n = Zt[i], r["margin" + n] = r["padding" + n] = e;
2408
+ return t && (r.opacity = r.width = e), r
2409
+ }
2410
+ x.each({slideDown: ir("show"), slideUp: ir("hide"), slideToggle: ir("toggle"), fadeIn: {opacity: "show"}, fadeOut: {opacity: "hide"}, fadeToggle: {opacity: "toggle"}}, function (e, t) {
2411
+ x.fn[e] = function (e, n, r) {
2412
+ return this.animate(t, e, n, r)
2413
+ }
2414
+ }), x.speed = function (e, t, n) {
2415
+ var r = e && "object" == typeof e ? x.extend({}, e) : {complete: n || !n && t || x.isFunction(e) && e, duration: e, easing: n && t || t && !x.isFunction(t) && t};
2416
+ return r.duration = x.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in x.fx.speeds ? x.fx.speeds[r.duration] : x.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function () {
2417
+ x.isFunction(r.old) && r.old.call(this), r.queue && x.dequeue(this, r.queue)
2418
+ }, r
2419
+ }, x.easing = {linear: function (e) {
2420
+ return e
2421
+ }, swing: function (e) {
2422
+ return.5 - Math.cos(e * Math.PI) / 2
2423
+ }}, x.timers = [], x.fx = rr.prototype.init, x.fx.tick = function () {
2424
+ var e, n = x.timers, r = 0;
2425
+ for (Xn = x.now(); n.length > r; r++)
2426
+ e = n[r], e() || n[r] !== e || n.splice(r--, 1);
2427
+ n.length || x.fx.stop(), Xn = t
2428
+ }, x.fx.timer = function (e) {
2429
+ e() && x.timers.push(e) && x.fx.start()
2430
+ }, x.fx.interval = 13, x.fx.start = function () {
2431
+ Un || (Un = setInterval(x.fx.tick, x.fx.interval))
2432
+ }, x.fx.stop = function () {
2433
+ clearInterval(Un), Un = null
2434
+ }, x.fx.speeds = {slow: 600, fast: 200, _default: 400}, x.fx.step = {}, x.expr && x.expr.filters && (x.expr.filters.animated = function (e) {
2435
+ return x.grep(x.timers, function (t) {
2436
+ return e === t.elem
2437
+ }).length
2438
+ }), x.fn.offset = function (e) {
2439
+ if (arguments.length)
2440
+ return e === t ? this : this.each(function (t) {
2441
+ x.offset.setOffset(this, e, t)
2442
+ });
2443
+ var n, r, o = {top: 0, left: 0}, a = this[0], s = a && a.ownerDocument;
2444
+ if (s)
2445
+ return n = s.documentElement, x.contains(n, a) ? (typeof a.getBoundingClientRect !== i && (o = a.getBoundingClientRect()), r = or(s), {top: o.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0), left: o.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0)}) : o
2446
+ }, x.offset = {setOffset: function (e, t, n) {
2447
+ var r = x.css(e, "position");
2448
+ "static" === r && (e.style.position = "relative");
2449
+ var i = x(e), o = i.offset(), a = x.css(e, "top"), s = x.css(e, "left"), l = ("absolute" === r || "fixed" === r) && x.inArray("auto", [a, s]) > -1, u = {}, c = {}, p, f;
2450
+ l ? (c = i.position(), p = c.top, f = c.left) : (p = parseFloat(a) || 0, f = parseFloat(s) || 0), x.isFunction(t) && (t = t.call(e, n, o)), null != t.top && (u.top = t.top - o.top + p), null != t.left && (u.left = t.left - o.left + f), "using"in t ? t.using.call(e, u) : i.css(u)
2451
+ }}, x.fn.extend({position: function () {
2452
+ if (this[0]) {
2453
+ var e, t, n = {top: 0, left: 0}, r = this[0];
2454
+ return"fixed" === x.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), x.nodeName(e[0], "html") || (n = e.offset()), n.top += x.css(e[0], "borderTopWidth", !0), n.left += x.css(e[0], "borderLeftWidth", !0)), {top: t.top - n.top - x.css(r, "marginTop", !0), left: t.left - n.left - x.css(r, "marginLeft", !0)}
2455
+ }
2456
+ }, offsetParent: function () {
2457
+ return this.map(function () {
2458
+ var e = this.offsetParent || s;
2459
+ while (e && !x.nodeName(e, "html") && "static" === x.css(e, "position"))
2460
+ e = e.offsetParent;
2461
+ return e || s
2462
+ })
2463
+ }}), x.each({scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function (e, n) {
2464
+ var r = /Y/.test(n);
2465
+ x.fn[e] = function (i) {
2466
+ return x.access(this, function (e, i, o) {
2467
+ var a = or(e);
2468
+ return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? x(a).scrollLeft() : o, r ? o : x(a).scrollTop()) : e[i] = o, t)
2469
+ }, e, i, arguments.length, null)
2470
+ }
2471
+ });
2472
+ function or(e) {
2473
+ return x.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1
2474
+ }
2475
+ x.each({Height: "height", Width: "width"}, function (e, n) {
2476
+ x.each({padding: "inner" + e, content: n, "": "outer" + e}, function (r, i) {
2477
+ x.fn[i] = function (i, o) {
2478
+ var a = arguments.length && (r || "boolean" != typeof i), s = r || (i === !0 || o === !0 ? "margin" : "border");
2479
+ return x.access(this, function (n, r, i) {
2480
+ var o;
2481
+ return x.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement, Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? x.css(n, r, s) : x.style(n, r, i, s)
2482
+ }, n, a ? i : t, a, null)
2483
+ }
2484
+ })
2485
+ }), x.fn.size = function () {
2486
+ return this.length
2487
+ }, x.fn.andSelf = x.fn.addBack, "object" == typeof module && module && "object" == typeof module.exports ? module.exports = x : (e.jQuery = e.$ = x, "function" == typeof define && define.amd && define("jquery", [], function () {
2488
+ return x
2489
+ }))
2490
+ })(window);
media/customsitemaintanance/ht-effect.jpg ADDED
Binary file
media/customsitemaintanance/under-maintenance.png ADDED
Binary file
package.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>DD_Customsitemaintanance</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This extension provides under maintenance page for your website which is accessible to allowed IP(s) or admin.</summary>
10
+ <description>1.No Access to Website-Keeps your website/online store under maintenance mode for any technical reason.&#xD;
11
+ 2.Full access to admin-Except admin no one else can access site when it is on maintenance mode.&#xD;
12
+ 3.Access from Limited IP Address -Admin can specify the IPs that can access the site while it being under maintenance.&#xD;
13
+ 4.Bypass specific URL(s)-Admin can allow access to specific URL for his/her customers when site is under maintenance mode.&#xD;
14
+ 5.Admin can display his/her contact information when site is under maintenance mode.&#xD;
15
+ 6.Custom Message -Although a custom message for the maintenance page is available but you can also create and display your own custom message. If you want to display your own custom message then you just need to add the html code.&#xD;
16
+ 7. No need to create a separate page or redirect the maintenance page on another page. In addition, admin can also display images.&#xD;
17
+ 8.Customized Page Title-Admin can also customize the maintenance page title with some personalized message to make it more approachable to his/her visitors.&#xD;
18
+ 9.Upload Logo-You can also upload your business logo from backend for the maintenance page to display for your visitors.</description>
19
+ <notes>It is stable version.</notes>
20
+ <authors><author><name>Virag shah</name><user>auto-converted</user><email>info@dynamicdreamz.com</email></author></authors>
21
+ <date>2015-09-23</date>
22
+ <time>11:10:44</time>
23
+ <contents><target name="magecommunity"><dir name="DD"><dir name="Customsitemaintanance"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Date.php" hash="8f1dc84788df4387af1f3269348ed356"/><file name="Editor.php" hash="cc1e2c70bf0bb8c161a551197e553590"/></dir></dir></dir><file name="Index.php" hash="f77c42c32475cf2c297e6cc8bec7270c"/></dir><dir name="Helper"><file name="Data.php" hash="2a2ea38afa268015cff07cdcd4341781"/></dir><dir name="Model"><file name="Observer.php" hash="d880644ef9a92777ec8f3d750f41799a"/></dir><dir name="controllers"><file name="IndexController.php" hash="67050279a276bf36b19987e8d5ff634b"/></dir><dir name="etc"><file name="config.xml" hash="faadcf4419e352d53fe9ef1387a96fb9"/><file name="system.xml" hash="d61c1533e7a49d8944e343598a6903db"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="customsitemaintanance.xml" hash="06abd7e20a53b27572f3d84cbdaf5ad2"/></dir><dir name="template"><dir name="customsitemaintanance"><file name="customsitemaintanance.phtml" hash="cd8755c5f31d0d5d350fb41163ed7abf"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="customsitemaintanance.xml" hash="2ddd803c94f821acc9c8b02c5f01ba25"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DD_Customsitemaintanance.xml" hash="2fbb7915cb23fb42e479fba9f6bfb7fb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="customsitemaintanance"><dir name="css"><file name="customsitemaintanance.css" hash="4e0064feeeeb144ad78f6b4fb6f2a698"/><file name="responsive.css" hash="5bf302ea7cbe86c26a752a6bb66cb386"/></dir><dir name="images"><file name="icons.png" hash="cc7fa73334b7c3e945b7c63c8bebb500"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="customsitemaintanance"><file name="ht-effect.jpg" hash="685615bc710373e2e32cb64b22a57a86"/><file name="under-maintenance.png" hash="39d8da51baf87a405c09bb7351569c28"/></dir></target><target name="mage"><dir name="js"><dir name="customsitemaintanance"><file name="jquery-1.10.1.min.js" hash="d01d03e4e13e9b0433b63e9673526941"/></dir></dir></target></contents>
24
+ <compatible/>
25
+ <dependencies><required><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.4</min><max>1.9</max></package></required></dependencies>
26
+ </package>
skin/frontend/base/default/customsitemaintanance/css/customsitemaintanance.css ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Dynamic Dreamz
3
+ * @category design
4
+ * @package base_default
5
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
7
+ */
8
+
9
+ *{ margin:0px auto;
10
+ padding: 0;
11
+ font-size:17px;
12
+ font-family:Arial, Helvetica, sans-serif;
13
+ font-weight: bold;
14
+ font-style: italic;
15
+ text-align:center;
16
+
17
+ }
18
+
19
+
20
+ body {
21
+ background-size: cover;
22
+ background-repeat: no-repeat;
23
+ position: fixed;
24
+ }
25
+
26
+
27
+ .logo-container {
28
+ float: left;
29
+ margin: 20px 20px 0 50px;
30
+ width: 41%;
31
+ }
32
+
33
+ .rest{width:50%; float:left; text-align:left;}
34
+
35
+
36
+ div#clearer{
37
+ visibility: hidden;
38
+ width: 100%;
39
+ height: 50%;
40
+ margin-top: -250px;
41
+ float: left;
42
+ }
43
+ @media (min-width: 0px) {
44
+
45
+ .main-containers{ position: fixed; height:100%; width:100%; margin-top: -142px;top: 40%;}
46
+
47
+ }
48
+
49
+
50
+ .comingsoon{
51
+
52
+ margin: 0 auto;
53
+ top: -250px;
54
+ width: 960px;
55
+
56
+ }
57
+ .comingsoon img { display: block; max-width: 100%;width: 100%;}
58
+
59
+ .rest h2 {
60
+ color: #396f90;
61
+ font-family: "Oswald",sans-serif;
62
+ font-size: 60px;
63
+ font-weight: 700;
64
+ letter-spacing: 0;
65
+ line-height: 55px;
66
+ margin-bottom: 20px;
67
+ text-align: left;
68
+ text-transform: uppercase;
69
+ }
70
+ .rest p {
71
+ color: brown;
72
+ font-size: 16px;
73
+ margin: 0 0 20px;
74
+ text-align: left;
75
+ }
76
+
77
+
78
+ ul.info li {
79
+ color: brown;
80
+ display: inline-flex;
81
+ float: left;
82
+ font-family: "Oswald",sans-serif;
83
+ font-size: 14px;
84
+ letter-spacing: 1px;
85
+ margin-bottom: 10px;
86
+ text-align: left;
87
+ vertical-align: middle;
88
+ }
89
+
90
+
91
+ ul.info li span.ph, ul.info li span.mail, ul.info li span.ad {
92
+ display: inline-block;
93
+ height: 24px;
94
+ padding-top: 0;
95
+ vertical-align: middle;
96
+ width: 30px;
97
+ }
98
+
99
+ ul.info li span.ph {
100
+ background: rgba(0, 0, 0, 0) url("../images/icons.png") no-repeat scroll 0 0px;
101
+
102
+ }
103
+
104
+ ul.info li span.mail {
105
+ background: rgba(0, 0, 0, 0) url("../images/icons.png") no-repeat scroll left -101px;
106
+
107
+ }
108
+
109
+ ul.info li span.ad {
110
+ background: rgba(0, 0, 0, 0) url("../images/icons.png") no-repeat scroll left -208px;
111
+
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
skin/frontend/base/default/customsitemaintanance/css/responsive.css ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Dynamic Dreamz
3
+ * @category design
4
+ * @package base_default
5
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
7
+ */
8
+
9
+
10
+ @media (min-width:1980px) {
11
+
12
+ }
13
+
14
+
15
+ @media (min-width:980px) and (max-width:1024px) {
16
+
17
+
18
+
19
+ }
20
+
21
+ /* Portrait tablet to landscape and desktop */
22
+
23
+ @media (min-width: 768px) and (max-width:979px) {
24
+
25
+ .comingsoon { top: 0px; width: 100%;}
26
+ .logo-container {
27
+ float: left;
28
+ margin: 0 27px 0 0;
29
+ width: 44%;
30
+ }
31
+ .rest { width: 50%;}
32
+ .rest h2 { font-size: 39px; line-height: 39px; margin-bottom: 10px;}
33
+
34
+ }
35
+
36
+ /* Landscape phone to portrait tablet */
37
+
38
+ @media (max-width:767px){
39
+
40
+ .comingsoon {
41
+ display: inline-block;
42
+ top: 0;
43
+ width: 100%;
44
+ }
45
+
46
+ .rest {width: 67% ;}
47
+ .rest h2 {font-size: 30px; line-height: 30px;margin: 10px 0;}
48
+ .rest p {line-height: normal;margin: 0 0 15px;width: 66%;}
49
+ .logo-container {
50
+ float: left;
51
+ margin-left: 0;
52
+ margin-top: 0px;
53
+ width: 80%;
54
+ }
55
+ .comingsoon img {
56
+ display: inline-block;
57
+ float: left;
58
+ max-width: 100%;
59
+ width: 66%;
60
+ }
61
+
62
+ }
63
+
64
+
65
+ @media (max-width:640px){
66
+ .rest {
67
+ width: 85%;
68
+ }
69
+ .rest h2 {
70
+ font-size: 28px;
71
+ line-height: 25px;
72
+ margin: 10px 0;
73
+ }
74
+ .logo-container {
75
+
76
+ width: 32%;
77
+ }
78
+
79
+ }
80
+
81
+ @media (min-width:480px) and (max-width:639px){
82
+
83
+ .logo-container {width: 29%;}
84
+
85
+ .rest h2 {
86
+ font-size: 28px;
87
+ line-height: 25px;
88
+ margin: 10px 0;
89
+ }
90
+ .rest p {
91
+
92
+ width: 100%;
93
+ }
94
+ .rest {
95
+ width: 100%;
96
+ }
97
+ }
98
+
99
+
skin/frontend/base/default/customsitemaintanance/images/icons.png ADDED
Binary file